:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --button-register: #C30808;
    --button-login: #C30808;
    --background-color: #FFFFFF;
    --font-register-login: #FFFF00;
}

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

.page-cockfighting__section-padding {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-cockfighting__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-cockfighting__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--text-dark);
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    overflow: hidden;
    background-color: var(--primary-color);
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Desktop: cover to fill space */
}

.page-cockfighting__hero-content {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    max-width: 900px;
    position: relative;
    z-index: 1; /* Ensure content is above any background layers if present */
}

.page-cockfighting__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: var(--font-register-login); /* Using #FFFF00 for title */
    font-size: clamp(2em, 4vw, 3.5em); /* Example clamp */
}

.page-cockfighting__subtitle {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    max-width: 100%; /* For responsive buttons */
    box-sizing: border-box; /* For responsive buttons */
    white-space: normal; /* For responsive buttons */
    word-wrap: break-word; /* For responsive buttons */
    text-align: center;
}

.page-cockfighting__btn-primary {
    background-color: var(--button-register); /* #C30808 */
    color: var(--font-register-login); /* #FFFF00 */
    border: 2px solid var(--button-register);
}

.page-cockfighting__btn-primary:hover {
    background-color: #a40707; /* Darken #C30808 */
    border-color: #a40707;
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--font-register-login); /* #FFFF00 */
    border: 2px solid var(--font-register-login);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--font-register-login);
    color: var(--button-register);
}

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

/* Why Choose Us Section */
.page-cockfighting__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__feature-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__feature-icon {
    width: 200px; /* Min size for image requirement */
    height: 200px; /* Min size for image requirement */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-cockfighting__card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-cockfighting__feature-card p {
    font-size: 1em;
    color: var(--text-dark);
}

/* Game Types Section */
.page-cockfighting__dark-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-cockfighting__dark-section .page-cockfighting__section-title,
.page-cockfighting__dark-section .page-cockfighting__section-description {
    color: var(--text-light);
}

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

.page-cockfighting__game-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
}

.page-cockfighting__game-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
}

.page-cockfighting__game-card .page-cockfighting__card-title {
    color: var(--font-register-login); /* Yellow for game titles on dark background */
}

.page-cockfighting__game-card p {
    color: var(--text-light);
    padding: 0 20px;
}

/* How To Play Section */
.page-cockfighting__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__step-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__step-card p {
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* Promotions Section */
.page-cockfighting__light-bg {
    background-color: #f8f8f8; /* A light grey for contrast with white cards */
}

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

.page-cockfighting__promo-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
}

.page-cockfighting__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
}

.page-cockfighting__promo-card .page-cockfighting__card-title {
    color: var(--primary-color);
}

.page-cockfighting__promo-card p {
    color: var(--text-dark);
    padding: 0 20px;
}

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

.page-cockfighting__tip-item {
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__tip-icon {
    width: 60px; /* Display size */
    height: 60px; /* Display size */
    object-fit: contain;
    margin-bottom: 20px;
}

.page-cockfighting__tip-item .page-cockfighting__card-title {
    color: var(--primary-color);
}

.page-cockfighting__tip-item p {
    color: var(--text-dark);
}

/* FAQ Section */
.page-cockfighting__faq-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-cockfighting__faq-section .page-cockfighting__section-title {
    color: var(--text-light);
}

.page-cockfighting__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.page-cockfighting__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-light);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--font-register-login); /* Yellow for FAQ questions */
    list-style: none; /* For <details> */
}

.page-cockfighting__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for <details> */
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--font-register-login);
    transition: transform 0.3s ease;
}

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

.page-cockfighting__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--text-light);
}

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

/* Conclusion CTA Section */
.page-cockfighting__conclusion-cta {
    text-align: center;
}

/* General image and container responsiveness */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
    .page-cockfighting__section-padding {
        padding: 30px 15px;
    }

    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-cockfighting__section-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* Hero Section */
    .page-cockfighting__hero-section {
        padding-top: 10px !important;
    }
    
    .page-cockfighting__hero-image {
        object-fit: contain !important;
        max-height: 300px !important;
        aspect-ratio: unset !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-cockfighting__hero-content {
        padding: 20px 15px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-cockfighting__subtitle {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column !important;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Why Choose Us Section */
    .page-cockfighting__features-grid {
        grid-template-columns: 1fr;
    }

    .page-cockfighting__feature-card {
        padding: 20px;
    }

    /* Game Types Section */
    .page-cockfighting__game-grid {
        grid-template-columns: 1fr;
        overflow-x: hidden;
    }

    .page-cockfighting__game-card {
        padding-bottom: 15px;
    }

    .page-cockfighting__game-image {
        height: 200px !important;
        object-fit: cover !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* How To Play Section */
    .page-cockfighting__steps-grid {
        grid-template-columns: 1fr;
    }

    .page-cockfighting__step-card {
        padding: 20px;
    }

    /* Promotions Section */
    .page-cockfighting__promo-grid {
        grid-template-columns: 1fr;
    }

    .page-cockfighting__promo-card {
        padding-bottom: 15px;
    }

    .page-cockfighting__promo-image {
        height: 180px !important;
        object-fit: cover !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Tips Section */
    .page-cockfighting__tips-list {
        grid-template-columns: 1fr;
    }

    .page-cockfighting__tip-item {
        padding: 20px;
    }

    .page-cockfighting__tip-icon {
        width: 60px !important;
        height: 60px !important;
    }

    /* FAQ Section */
    .page-cockfighting__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-cockfighting__faq-answer {
        padding: 0 20px 15px 20px;
    }

    /* General image and container responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__features-grid,
    .page-cockfighting__game-grid,
    .page-cockfighting__steps-grid,
    .page-cockfighting__promo-grid,
    .page-cockfighting__tips-list,
    .page-cockfighting__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}