/* style/cockfighting.css */

/* Base styles for the page content, ensuring contrast with default light body background */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: #ffffff; /* Explicitly set for clarity, though body is often white */
}

/* Fixed header offset for main content */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    padding-top: var(--header-offset, 120px); /* Desktop and mobile offset */
    padding-bottom: 60px;
    background-color: #017439; /* Brand primary color */
    color: #ffffff; /* Light text for dark background */
    text-align: center;
    overflow: hidden; /* Ensure content inside doesn't overflow */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page-cockfighting__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.page-cockfighting__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

.page-cockfighting__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

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

/* General container for sections */
.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Section specific styles */
.page-cockfighting__introduction-section,
.page-cockfighting__registration-section,
.page-cockfighting__safety-section,
.page-cockfighting__faq-section {
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text */
}

.page-cockfighting__gameplay-section,
.page-cockfighting__strategy-section,
.page-cockfighting__call-to-action {
    background-color: #017439; /* Primary brand color background */
    color: #ffffff; /* Light text */
}

.page-cockfighting__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    color: inherit; /* Inherit color from parent section */
}

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

.page-cockfighting__text-block {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-cockfighting__feature-list,
.page-cockfighting__game-types-list,
.page-cockfighting__betting-guide-list,
.page-cockfighting__registration-steps,
.page-cockfighting__strategy-list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
}

.page-cockfighting__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-cockfighting__image-content {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.page-cockfighting__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__image-caption,
.page-cockfighting__video-caption {
    font-size: 0.9em;
    color: inherit;
    margin-top: 10px;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-cockfighting__btn-primary {
    background-color: #C30808; /* Custom color for registration/login */
    color: #FFFF00; /* Custom font color for registration/login */
    border: 2px solid #C30808;
}

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

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

.page-cockfighting__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005f2e;
    border-color: #005f2e;
}

/* Video specific styles */
.page-cockfighting__video-wrapper {
    margin-top: 30px;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__video-wrapper a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Make the link clickable over the video */
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block; /* Ensure it behaves like a block element */
}

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

.page-cockfighting__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-item[open] {
    background-color: #e6f7ed; /* Lighter shade of brand green */
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: #017439; /* Brand primary color for questions */
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    border-bottom: 1px solid #cce8d9;
}

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

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #017439;
    transition: transform 0.3s ease;
}

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

.page-cockfighting__faq-answer {
    padding: 20px;
    font-size: 1.05em;
    color: #333333;
    background-color: #ffffff;
}

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

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
        padding-bottom: 40px;
    }

    .page-cockfighting__hero-title {
        font-size: 2em;
    }

    .page-cockfighting__hero-description {
        font-size: 1em;
    }

    .page-cockfighting__container {
        padding: 20px 15px;
    }

    .page-cockfighting__section-title {
        font-size: 1.8em;
    }

    .page-cockfighting__subsection-title {
        font-size: 1.4em;
    }

    .page-cockfighting__text-block,
    .page-cockfighting__list-item {
        font-size: 1em;
    }

    /* Images responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__hero-image {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }

    /* Video responsiveness */
    .page-cockfighting video,
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        height: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* Button responsiveness */
    .page-cockfighting__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important; /* Full width buttons */
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure containers for images/videos/buttons don't cause overflow */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__cta-buttons,
    .page-cockfighting__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow-x: hidden !important; /* Prevent horizontal scroll for the section itself */
    }
    .page-cockfighting__hero-image-wrapper {
        position: relative !important;
        height: 200px !important; /* Fixed height for hero image on mobile */
    }
    .page-cockfighting__hero-image {
        object-position: center top !important;
    }
    .page-cockfighting__hero-section {
        padding-bottom: 20px !important;
    }

    .page-cockfighting__faq-question {
        font-size: 1em;
        padding: 15px;
    }

    .page-cockfighting__faq-answer {
        font-size: 0.95em;
        padding: 15px;
    }
}

/* Ensure no filter is used on images by default */
.page-cockfighting img {
    filter: none;
}

/* Color contrast enforcement */
.page-cockfighting__dark-section {
    background: #017439;
    color: #ffffff;
}

.page-cockfighting__light-bg {
    background: #ffffff;
    color: #333333;
}

/* Specific contrast fixes if needed, though designed to avoid */
.page-cockfighting__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-cockfighting__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}