:root {
    /* Custom Colors */
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text-main); /* Main text color for dark background */
    background-color: var(--color-background); /* Overall dark background */
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    color: var(--color-text-main);
}

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    color: var(--color-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--color-text-secondary);
    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 */
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Button responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-cockfighting__btn-primary {
    background: var(--color-button-gradient-start); /* Fallback for gradient */
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main);
    border: none;
}

.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(--color-primary);
    border: 2px solid var(--color-primary);
}

.page-cockfighting__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background-color: rgba(34, 199, 104, 0.1); /* Light transparent green */
}

/* General Content Sections */
.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-cockfighting__intro-section,
.page-cockfighting__types-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__register-cta-section {
    padding: 80px 0;
}

.page-cockfighting__dark-section {
    background-color: var(--color-background);
    color: var(--color-text-main);
}

.page-cockfighting__light-bg { /* Used for contrast in sections */
    background-color: var(--color-card-bg); /* Slightly lighter dark green */
    color: var(--color-text-main);
}

.page-cockfighting__deep-green-bg {
    background-color: var(--color-deep-green);
    color: var(--color-text-main);
}

.page-cockfighting__section-title {
    font-size: 2.5rem;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.3;
}

.page-cockfighting__sub-title {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-cockfighting__paragraph {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--color-text-secondary);
    text-align: justify;
}

.page-cockfighting__paragraph a {
    color: var(--color-gold);
    text-decoration: underline;
}

.page-cockfighting__image-text-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-cockfighting__image-left {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__image-left img {
    width: 100%;
    height: auto;
    display: block;
}

.page-cockfighting__text-content {
    flex: 2;
    min-width: 300px;
}

.page-cockfighting__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-cockfighting__list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}

.page-cockfighting__list li::before {
    content: '✅'; /* Green checkmark */
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-size: 1.2em;
    line-height: 1;
}

/* Card Grid */
.page-cockfighting__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__card,
.page-cockfighting__promo-card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__card:hover,
.page-cockfighting__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__card-image,
.page-cockfighting__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it behaves like a block element */
}

.page-cockfighting__card-title,
.page-cockfighting__promo-title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cockfighting__card-text,
.page-cockfighting__promo-text {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to grow and push button down */
    text-align: justify;
}

/* How to Play */
.page-cockfighting__ordered-list {
    list-style: none;
    padding-left: 0;
    counter-reset: step-counter;
    margin-top: 30px;
}

.page-cockfighting__ordered-list li {
    position: relative;
    padding-left: 50px;
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--color-text-main);
    line-height: 1.5;
}

.page-cockfighting__ordered-list li strong {
    color: var(--color-gold);
}

.page-cockfighting__ordered-list li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--color-primary);
    color: var(--color-text-main);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Promotions Section */
.page-cockfighting__promo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

.page-cockfighting__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-text-main);
    background-color: var(--color-deep-green); /* Slightly darker for question header */
    border-bottom: 1px solid var(--color-divider);
    list-style: none; /* For details/summary */
}

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

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    border-bottom: 1px solid var(--color-border);
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
    color: var(--color-gold);
}

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    width: 25px;
    text-align: center;
    color: var(--color-text-main);
    transition: transform 0.3s ease;
}

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

.page-cockfighting__faq-answer {
    padding: 20px 25px;
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    background-color: var(--color-card-bg);
    line-height: 1.6;
}

.page-cockfighting__faq-answer p {
    margin-bottom: 0;
}

/* Register CTA Section */
.page-cockfighting__register-cta-section {
    text-align: center;
    padding: 100px 0;
    border-top: 1px solid var(--color-divider);
}

.page-cockfighting__register-cta-section .page-cockfighting__section-title {
    margin-bottom: 20px;
    color: var(--color-gold);
}

.page-cockfighting__register-cta-section .page-cockfighting__paragraph {
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--color-text-secondary);
}

.page-cockfighting__cta-buttons--large a {
    padding: 18px 40px;
    font-size: 1.2rem;
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__section-title {
        font-size: 2.2rem;
    }
    .page-cockfighting__sub-title {
        font-size: 1.6rem;
    }
    .page-cockfighting__hero-description,
    .page-cockfighting__paragraph,
    .page-cockfighting__list li,
    .page-cockfighting__ordered-list li {
        font-size: 1rem;
    }
    .page-cockfighting__card-image,
    .page-cockfighting__promo-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-bottom: 40px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    .page-cockfighting__hero-description {
        font-size: 1rem;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100%;
        max-width: 100% !important; /* Enforce full width */
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important; /* Allow text wrap */
        word-wrap: break-word !important; /* Allow text wrap */
    }

    .page-cockfighting__intro-section,
    .page-cockfighting__types-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__register-cta-section {
        padding: 40px 0;
    }
    
    .page-cockfighting__image-text-block {
        flex-direction: column;
    }

    .page-cockfighting__image-left {
        min-width: unset;
        width: 100%;
    }

    .page-cockfighting__text-content {
        min-width: unset;
        width: 100%;
    }

    .page-cockfighting__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-cockfighting__sub-title {
        font-size: 1.4rem;
    }

    .page-cockfighting__card-grid,
    .page-cockfighting__promo-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__card-image,
    .page-cockfighting__promo-image {
        height: auto; /* Allow auto height for mobile */
        max-height: 250px; /* Max height to prevent overly tall images */
    }

    .page-cockfighting__card,
    .page-cockfighting__promo-card {
        padding: 20px;
    }

    .page-cockfighting__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    .page-cockfighting__faq-answer {
        font-size: 0.95rem;
        padding: 15px 20px;
    }

    /* Enforce image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-cockfighting__hero-image {
        width: 100% !important; /* Ensure hero image takes full width */
        height: 100% !important;
        object-fit: cover !important;
    }

    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-section,
    .page-cockfighting__intro-section,
    .page-cockfighting__types-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__register-cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Video section top padding, body handles --header-offset */
    /* No video section on this page, but keeping the rule for completeness if it were present */
    .page-cockfighting__video-section {
        padding-top: 10px !important; 
    }
}