/* style/cockfighting.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-dark: #0a0a0a; /* Body background from shared.css */
    --register-btn-bg: #C30808;
    --login-btn-bg: #C30808;
    --register-login-font: #FFFF00;
}

.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--bg-dark); /* Ensure consistency if main elements don't set background */
}

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

.page-cockfighting__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-cockfighting__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    background: var(--primary-color);
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for aesthetic */
    overflow: hidden;
    margin-bottom: 20px; /* Space between image and text */
}

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

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-cockfighting__hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-promo,
.page-cockfighting__btn-overlay {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-cockfighting__btn-primary {
    background-color: var(--register-btn-bg); /* Custom color for Register */
    color: var(--register-login-font); /* Custom font color for Register */
    border: 2px solid var(--register-btn-bg);
}

.page-cockfighting__btn-primary:hover {
    background-color: darken(var(--register-btn-bg), 10%);
    border-color: darken(var(--register-btn-bg), 10%);
}

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

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

/* General Section Styling */
.page-cockfighting__section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    color: inherit;
}

.page-cockfighting__text-block {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: justify;
    color: inherit;
}

.page-cockfighting__highlight {
    font-weight: bold;
    color: var(--primary-color);
}

.page-cockfighting__light-bg .page-cockfighting__highlight {
    color: var(--primary-color);
}

.page-cockfighting__dark-bg .page-cockfighting__highlight {
    color: var(--secondary-color);
}

/* Introduction Section */
.page-cockfighting__introduction-section {
    padding: 60px 0;
}

/* How to Play Section */
.page-cockfighting__how-to-play-section {
    padding: 60px 0;
}

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

.page-cockfighting__step-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__step-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    object-fit: cover;
}

.page-cockfighting__step-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-light);
}

.page-cockfighting__step-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

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

/* Features Section */
.page-cockfighting__features-section {
    padding: 60px 0;
}

.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;
    text-align: center;
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.page-cockfighting__feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-cockfighting__feature-description {
    font-size: 1rem;
    color: var(--text-dark);
}

/* Game Gallery Section */
.page-cockfighting__game-gallery-section {
    padding: 60px 0;
}

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

.page-cockfighting__gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.page-cockfighting__gallery-item:hover .page-cockfighting__gallery-image {
    transform: scale(1.05);
}

.page-cockfighting__gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    padding: 20px;
    color: var(--text-light);
    text-align: center;
}

.page-cockfighting__gallery-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-light);
}

.page-cockfighting__btn-overlay {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.page-cockfighting__btn-overlay:hover {
    background-color: darken(var(--primary-color), 10%);
}

/* Promotions Section */
.page-cockfighting__promotions-section {
    padding: 60px 0;
}

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

.page-cockfighting__promo-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.page-cockfighting__promo-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-cockfighting__promo-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-cockfighting__promo-description {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.page-cockfighting__btn-promo {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
}

.page-cockfighting__btn-promo:hover {
    background-color: darken(var(--primary-color), 10%);
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 60px 0;
}

.page-cockfighting__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: 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: 18px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    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 rgba(255, 255, 255, 0.2);
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    width: 25px;
    text-align: center;
}

.page-cockfighting__faq-answer {
    padding: 15px 25px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.page-cockfighting__faq-item:not([open]) .page-cockfighting__faq-answer {
    display: none;
}

/* CTA Section */
.page-cockfighting__cta-section {
    padding: 60px 0;
    text-align: center;
}

.page-cockfighting__cta-section .page-cockfighting__section-title {
    color: var(--primary-color);
}

.page-cockfighting__cta-section .page-cockfighting__text-block {
    color: var(--text-dark);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__cta-section .page-cockfighting__cta-buttons {
    margin-top: 30px;
}

/* Copyright Section */
.page-cockfighting__copyright-section {
    padding: 25px 0;
    text-align: center;
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-image-wrapper {
        max-height: 500px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-cockfighting__hero-description {
        font-size: 1.1rem;
    }
    .page-cockfighting__section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* Small top padding, assuming shared.css handles body padding-top */
        padding-bottom: 30px;
    }
    .page-cockfighting__hero-image-wrapper {
        max-height: 400px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-cockfighting__hero-description {
        font-size: 1rem;
    }

    /* General content area padding for mobile */
    .page-cockfighting__container {
        padding: 0 15px;
    }

    /* General images and containers for mobile */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__step-card,
    .page-cockfighting__feature-card,
    .page-cockfighting__gallery-item,
    .page-cockfighting__promo-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }

    /* Buttons and button containers for mobile */
    .page-cockfighting__cta-buttons {
        flex-direction: column !important;
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-promo,
    .page-cockfighting__btn-overlay,
    .page-cockfighting a[class*="button"],
    .page-cockfighting a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Product/Gameshow Display Area for mobile (Gallery Grid) */
    .page-cockfighting__gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    .page-cockfighting__gallery-image {
        height: 200px;
    }

    /* Other Content Modules for mobile */
    .page-cockfighting__introduction-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__features-section,
    .page-cockfighting__game-gallery-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-section {
        padding: 40px 0;
    }
    .page-cockfighting__section-title {
        font-size: 1.8rem;
    }
    .page-cockfighting__text-block,
    .page-cockfighting__step-description,
    .page-cockfighting__feature-description,
    .page-cockfighting__promo-description,
    .page-cockfighting__faq-answer p {
        font-size: 1rem;
    }
    .page-cockfighting__steps-grid,
    .page-cockfighting__features-grid,
    .page-cockfighting__promotions-grid {
        gap: 20px;
        padding: 0 15px;
    }
    .page-cockfighting__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-cockfighting__faq-answer {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__main-title {
        font-size: clamp(1.5rem, 8vw, 2.2rem);
    }
    .page-cockfighting__hero-description {
        font-size: 0.95rem;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    .page-cockfighting__section-title {
        font-size: 1.5rem;
    }
    .page-cockfighting__text-block {
        font-size: 0.95rem;
    }
    .page-cockfighting__step-title,
    .page-cockfighting__feature-title,
    .page-cockfighting__gallery-title,
    .page-cockfighting__promo-title {
        font-size: 1.2rem;
    }
    .page-cockfighting__faq-question {
        font-size: 0.9rem;
    }
    .page-cockfighting__faq-answer p {
        font-size: 0.9rem;
    }
}