/* style/cockfighting.css */

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

.page-cockfighting {
    font-family: 'Arial', sans-serif; /* Example font */
    background-color: var(--background-dark); /* Using custom background color */
    color: var(--text-main); /* Default text color for the page */
    line-height: 1.6;
    font-size: 1rem;
}

/* Ensure all images are responsive */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensures images cover their area without distortion */
    filter: none; /* Prohibit CSS filters on images */
}

/* Text colors for different backgrounds */
.page-cockfighting__dark-section {
    background-color: var(--background-dark);
    color: var(--text-main);
}

.page-cockfighting__light-bg {
    background-color: var(--card-bg); /* Using card background for light-bg sections */
    color: var(--text-main);
}

.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 60px; /* Space for content below image */
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 70vh; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
}

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

.page-cockfighting__hero-content {
    text-align: center;
    padding: 20px;
    max-width: 900px;
    margin-top: -100px; /* Pull content up over image a bit for design */
    position: relative;
    z-index: 10;
    background: linear-gradient(0deg, var(--background-dark) 50%, transparent 100%); /* Fades into dark background */
    padding-top: 120px; /* Compensate for negative margin to ensure text is below image */
    color: var(--text-main);
}

.page-cockfighting__main-title {
    color: var(--gold-color);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 800px;
    margin: 0 auto 15px auto;
    font-size: clamp(1.8rem, 4vw, 2.5rem); /* H1 font size constraint */
}

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

.page-cockfighting__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, var(--button-gradient-start) 0%, var(--button-gradient-end) 100%);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    white-space: normal; /* Allow text wrap for buttons */
    word-wrap: break-word; /* Allow text wrap for buttons */
    text-align: center;
}

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

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

.page-cockfighting__sub-title,
.page-cockfighting__card-title,
.page-cockfighting__step-title,
.page-cockfighting__tip-title {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 600;
}

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

.page-cockfighting__text-block p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.page-cockfighting__image-content {
    margin: 30px auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__grid-layout,
.page-cockfighting__promo-grid,
.page-cockfighting__tips-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-cockfighting__card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
}

.page-cockfighting__card p {
    color: var(--text-secondary);
}

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

.page-cockfighting__step-item {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__step-item p {
    color: var(--text-secondary);
}

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

/* FAQ Section */
.page-cockfighting__faq-list {
    margin-top: 30px;
}

.page-cockfighting__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
    background-color: var(--deep-green);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-cockfighting__faq-question:hover {
    background-color: var(--primary-color);
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
    font-size: 1.1rem;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold-color);
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    color: var(--text-secondary);
    font-size: 1rem;
    max-height: 0; /* For JS fallback */
    overflow: hidden; /* For JS fallback */
    transition: max-height 0.3s ease-out, padding 0.3s ease-out; /* For JS fallback */
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
    max-height: 500px; /* Arbitrary large value for open state */
    padding-top: 15px;
    transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer { /* For JS fallback */
    max-height: 2000px !important; /* Arbitrary large value for open state */
    padding-top: 15px;
}

/* Final CTA Section */
.page-cockfighting__cta-final-section {
    padding-top: 60px;
    padding-bottom: 80px;
    text-align: center;
}

.page-cockfighting__cta-final-section .page-cockfighting__text-block {
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-secondary);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 4vw, 2.2rem);
    }
    .page-cockfighting__section-title {
        font-size: 2rem;
    }
    .page-cockfighting__sub-title,
    .page-cockfighting__card-title,
    .page-cockfighting__step-title,
    .page-cockfighting__tip-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-cockfighting__hero-section {
        padding-bottom: 40px;
        padding-top: 10px !important; /* body handles --header-offset, small padding for content */
    }

    .page-cockfighting__hero-content {
        margin-top: -80px;
        padding-top: 100px;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.6rem, 5vw, 1.8rem); /* Adjust clamp for smaller screens */
        margin-bottom: 10px;
    }

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

    .page-cockfighting__btn-primary {
        padding: 12px 25px;
        font-size: 0.9rem;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0 !important; /* Ensure full width */
        margin-right: 0 !important; /* Ensure full width */
    }

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

    .page-cockfighting__sub-title,
    .page-cockfighting__card-title,
    .page-cockfighting__step-title,
    .page-cockfighting__tip-title {
        font-size: 1.4rem;
    }

    .page-cockfighting__container {
        padding: 20px 15px !important; /* Force padding for mobile containers */
    }

    .page-cockfighting__grid-layout,
    .page-cockfighting__promo-grid,
    .page-cockfighting__tips-list,
    .page-cockfighting__steps-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__card,
    .page-cockfighting__step-item {
        padding: 20px;
    }

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

    .page-cockfighting__faq-qtext {
        font-size: 1rem;
    }

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

    /* Mobile specific overrides for images, videos, buttons */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__image-content,
    .page-cockfighting__container,
    .page-cockfighting__introduction-section,
    .page-cockfighting__types-section,
    .page-cockfighting__registration-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__tips-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-final-section,
    .page-cockfighting__card,
    .page-cockfighting__promo-card,
    .page-cockfighting__step-item,
    .page-cockfighting__tip-item,
    .page-cockfighting__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding for sections/containers to prevent content touching edges, if not already set by .page-cockfighting__container */
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Buttons responsive */
    .page-cockfighting__cta-wrapper {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .page-cockfighting__cta-wrapper .page-cockfighting__btn-primary {
        margin: 0 auto; /* Center button if it's the only one, takes full width */
    }
}