/* style/cockfighting.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-cockfighting {
    color: #ffffff; /* Light text for dark body background */
    background-color: #1a1a2e; /* Inherited from shared, but for clarity */
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

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

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    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: #017439; /* Brand green accent */
    border-radius: 2px;
}

.page-cockfighting__subsection-title {
    font-size: 1.8em;
    color: #f0f0f0;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-cockfighting p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-cockfighting ul,
.page-cockfighting ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.page-cockfighting li {
    margin-bottom: 8px;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background-color: #017439; /* Ensure good contrast with image */
}

.page-cockfighting__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.7; /* Slightly dim image for text readability */
}

.page-cockfighting__hero-section .page-cockfighting__container {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 900px;
}

.page-cockfighting__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.page-cockfighting__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

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

/* Button Styles */
.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.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    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 */
}

.page-cockfighting__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-cockfighting__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-cockfighting__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

.page-cockfighting__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
}

.page-cockfighting__btn-full-width {
    width: 100%;
    max-width: 400px; /* Limit max width for full width button */
    margin: 20px auto;
    display: block;
}

/* General Content Sections */
.page-cockfighting__introduction-section,
.page-cockfighting__betting-types-section,
.page-cockfighting__live-stream-section,
.page-cockfighting__promotions-section,
.page-cockfighting__security-support-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-final-section {
    padding: 60px 0;
}

.page-cockfighting__introduction-section,
.page-cockfighting__live-stream-section,
.page-cockfighting__security-support-section,
.page-cockfighting__cta-final-section {
    background-color: #1a1a2e; /* Dark background */
    color: #ffffff; /* Light text */
}

.page-cockfighting__dark-section {
    background-color: #017439; /* Brand green background */
    color: #ffffff; /* Light text */
}
.page-cockfighting__dark-section .page-cockfighting__section-title,
.page-cockfighting__dark-section .page-cockfighting__subsection-title {
    color: #ffffff;
}
.page-cockfighting__dark-section .page-cockfighting__section-title::after {
    background-color: #ffffff;
}

/* Image styles */
.page-cockfighting__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* Video Section */
.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 100%; /* Ensure video does not overflow */
    display: block;
}

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

.page-cockfighting__card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark green */
    color: #ffffff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 450px; /* Ensure cards have some height */
}

.page-cockfighting__card-image {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-cockfighting__card-title {
    font-size: 1.5em;
    color: #FFFF00; /* Use accent color for titles */
    margin-bottom: 15px;
}

.page-cockfighting__card p {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-cockfighting__card .page-cockfighting__btn-primary {
    margin-top: auto; /* Push button to bottom */
    width: 100%;
}

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

.page-cockfighting__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark green */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #017439; /* Brand green for question background */
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: #005f2e;
}

.page-cockfighting__faq-question h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.2em; /* Ensure h3 inside is visible */
}

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

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
    color: #ffffff;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 20px;
}

.page-cockfighting__faq-answer p {
    margin-bottom: 15px;
    font-size: 1em;
}

.page-cockfighting__faq-answer .page-cockfighting__btn-primary {
    margin-top: 10px;
    display: inline-block;
}

/* Final CTA Section */
.page-cockfighting__cta-final-section {
    text-align: center;
    padding: 80px 0;
    background-color: #1a1a2e;
}

.page-cockfighting__cta-final-section .page-cockfighting__section-title {
    font-size: 3em;
    margin-bottom: 30px;
}

.page-cockfighting__cta-final-section p {
    max-width: 900px;
    margin: 0 auto 40px auto;
    font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 3em;
    }
    .page-cockfighting__hero-description {
        font-size: 1.2em;
    }
    .page-cockfighting__section-title {
        font-size: 2.2em;
    }
    .page-cockfighting__subsection-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-cockfighting__hero-title {
        font-size: 2.5em;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-cockfighting__subsection-title {
        font-size: 1.4em;
    }
    .page-cockfighting p,
    .page-cockfighting li {
        font-size: 1em;
    }

    /* Images responsive */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure min size on mobile */
        min-height: 200px !important; /* Ensure min size on mobile */
    }
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Ensure containers also don't overflow */
    }

    /* Video responsive */
    .page-cockfighting video,
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-cockfighting__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-cockfighting__promotion-cards {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__card {
        min-height: auto; /* Allow height to adjust on mobile */
    }

    .page-cockfighting__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-cockfighting__faq-question h3 {
        font-size: 1.1em;
    }
    .page-cockfighting__faq-answer {
        padding: 0 15px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-title {
        font-size: 2em;
    }
    .page-cockfighting__hero-description {
        font-size: 0.9em;
    }
    .page-cockfighting__section-title {
        font-size: 1.5em;
    }
    .page-cockfighting__cta-final-section .page-cockfighting__section-title {
        font-size: 2em;
    }
}