/* style/cockfighting.css */

/* Variables (from custom color scheme) */
:root {
    --cockfighting-primary-color: #11A84E;
    --cockfighting-secondary-color: #22C768;
    --cockfighting-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --cockfighting-card-bg: #11271B;
    --cockfighting-background: #08160F;
    --cockfighting-text-main: #F2FFF6;
    --cockfighting-text-secondary: #A7D9B8;
    --cockfighting-border-color: #2E7A4E;
    --cockfighting-glow-color: #57E38D;
    --cockfighting-gold-color: #F2C14E;
    --cockfighting-divider-color: #1E3A2A;
    --cockfighting-deep-green: #0A4B2C;
}

/* Base styles for the page content */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    background-color: var(--cockfighting-background); /* Dark background from custom scheme */
    color: var(--cockfighting-text-main); /* Light text for dark background */
    line-height: 1.6;
    padding-bottom: 60px; /* Add some padding at the bottom before footer */
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-cockfighting__hero-content {
    position: relative; /* Not absolute, for normal flow */
    z-index: 10;
    max-width: 900px;
    padding: 30px 20px;
    background-color: rgba(8, 22, 15, 0.8); /* Semi-transparent background for readability */
    border-radius: 10px;
    margin-top: -80px; /* Overlap slightly with the image for design */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    color: var(--cockfighting-gold-color);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

.page-cockfighting__tagline {
    font-size: 1.15rem;
    color: var(--cockfighting-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Section Styling */
.page-cockfighting__section {
    padding: 80px 0;
    text-align: center;
}

.page-cockfighting__dark-section {
    background-color: var(--cockfighting-card-bg); /* Darker green background for contrast */
    color: var(--cockfighting-text-main);
}

.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-cockfighting__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--cockfighting-gold-color);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--cockfighting-glow-color);
    border-radius: 2px;
}

.page-cockfighting__text-block {
    font-size: 1rem;
    color: var(--cockfighting-text-secondary);
    max-width: 800px;
    margin: 0 auto 20px auto;
    text-align: justify;
}

.page-cockfighting__text-link {
    color: var(--cockfighting-glow-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-cockfighting__text-link:hover {
    color: var(--cockfighting-gold-color);
    text-decoration: underline;
}

.page-cockfighting__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

/* Advantage Cards */
.page-cockfighting__grid-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-cockfighting__advantage-card {
    background-color: var(--cockfighting-background);
    border: 1px solid var(--cockfighting-border-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.page-cockfighting__advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__card-title {
    font-size: 1.5rem;
    color: var(--cockfighting-text-main);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__card-text {
    font-size: 0.95rem;
    color: var(--cockfighting-text-secondary);
    line-height: 1.7;
}

.page-cockfighting__cta-center {
    margin-top: 60px;
}

/* How-To-Play Section */
.page-cockfighting__step-by-step {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-cockfighting__step-card {
    background-color: var(--cockfighting-background);
    border: 1px solid var(--cockfighting-border-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.page-cockfighting__step-number {
    width: 50px;
    height: 50px;
    background-color: var(--cockfighting-glow-color);
    color: var(--cockfighting-deep-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(87, 227, 141, 0.6);
}

.page-cockfighting__step-card .page-cockfighting__card-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.page-cockfighting__step-card .page-cockfighting__card-text {
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-grow: 1; /* Push button to bottom */
}

/* Call to Action Box */
.page-cockfighting__contact-cta .page-cockfighting__cta-box {
    background: var(--cockfighting-card-bg);
    border-radius: 15px;
    padding: 60px 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--cockfighting-border-color);
    margin-top: 60px;
}

.page-cockfighting__contact-cta .page-cockfighting__section-title {
    margin-bottom: 25px;
    color: var(--cockfighting-text-main);
}

.page-cockfighting__contact-cta .page-cockfighting__section-title::after {
    background-color: var(--cockfighting-gold-color);
}

.page-cockfighting__contact-cta .page-cockfighting__text-block {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--cockfighting-text-secondary);
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-small,
.page-cockfighting__btn-large {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-cockfighting__btn-primary {
    background: var(--cockfighting-button-gradient);
    color: #ffffff; /* White text for gradient button */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--cockfighting-glow-color);
    border: 2px solid var(--cockfighting-glow-color);
    box-shadow: 0 2px 10px rgba(87, 227, 141, 0.3);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--cockfighting-glow-color);
    color: var(--cockfighting-deep-green);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(87, 227, 141, 0.5);
}

.page-cockfighting__btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
    background: var(--cockfighting-button-gradient);
    color: #ffffff;
    border: none;
    border-radius: 6px;
}

.page-cockfighting__btn-small:hover {
    opacity: 0.9;
}

.page-cockfighting__btn-large {
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 10px;
}

/* FAQ Section */
.page-cockfighting__faq-list {
    margin-top: 50px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__faq-item {
    background-color: var(--cockfighting-background);
    border: 1px solid var(--cockfighting-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-cockfighting__faq-item[open] {
    background-color: var(--cockfighting-deep-green);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cockfighting-text-main);
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    color: var(--cockfighting-glow-color);
}

.page-cockfighting__faq-question::-webkit-details-marker {
    display: none;
}
.page-cockfighting__faq-question::marker {
    display: none;
}

.page-cockfighting__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--cockfighting-glow-color);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 0.95rem;
    color: var(--cockfighting-text-secondary);
    line-height: 1.7;
    text-align: justify;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-content {
        margin-top: -60px;
        padding: 25px 20px;
    }
    .page-cockfighting__section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-bottom: 40px;
    }
    .page-cockfighting__hero-content {
        margin-top: -40px;
        padding: 20px 15px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-cockfighting__tagline {
        font-size: 1rem;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-small,
    .page-cockfighting__btn-large {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-cockfighting__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
        gap: 15px;
        flex-wrap: wrap !important; /* Ensure buttons wrap if multiple */
    }

    .page-cockfighting__section {
        padding: 40px 0;
    }
    .page-cockfighting__container {
        padding: 0 15px;
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        margin-bottom: 30px;
    }
    .page-cockfighting__text-block {
        font-size: 0.9rem;
    }
    .page-cockfighting__advantage-card,
    .page-cockfighting__step-card {
        padding: 25px;
    }
    .page-cockfighting__card-title {
        font-size: 1.3rem;
    }
    .page-cockfighting__card-text {
        font-size: 0.85rem;
    }
    .page-cockfighting__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px 15px 20px;
    }
    /* Mobile specific padding for sections/containers */
    .page-cockfighting__section,
    .page-cockfighting__container,
    .page-cockfighting__cta-box {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}

/* Ensure no filter on images */
.page-cockfighting img {
    filter: none !important;
}

/* Content area images must be at least 200x200px. */
.page-cockfighting img {
    min-width: 200px; /* Ensure content images are not tiny */
    min-height: 200px;
}