/* 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 */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Body background is handled by shared.css */
}

/* Container for main content, ensuring proper spacing and centering */
.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section styling */
.page-cockfighting__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff; /* Default for dark sections */
    font-weight: bold;
    line-height: 1.2;
}

.page-cockfighting__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__sub-title {
    font-size: 2em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #017439; /* Brand color for subtitles on light background */
    font-weight: bold;
    text-align: left;
}

.page-cockfighting__text-block {
    margin-bottom: 15px;
    color: #333333; /* Dark text for light background */
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 100px 20px;
    padding-top: calc(100px + var(--header-offset, 120px)); /* Ensure space for fixed header */
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #017439, #1a1a2e); /* Brand color gradient */
}

.page-cockfighting__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3; /* Subtle background image */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    color: #ffffff;
}

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

.page-cockfighting__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

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

.page-cockfighting__cta-buttons--centered {
    margin-top: 40px;
    margin-bottom: 40px;
}

.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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

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

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

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

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

/* Video Section */
.page-cockfighting__video-section {
    padding: 60px 20px;
    background-color: #1a1a2e; /* Dark background */
    color: #ffffff;
    text-align: center;
}

.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 40px auto;
    max-width: 900px;
    background-color: #000;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

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

/* Content Area - Light Background */
.page-cockfighting__content-area {
    background-color: #ffffff; /* Light background for main content */
    color: #333333; /* Dark text for light background */
    padding: 60px 20px;
}

.page-cockfighting__content-area .page-cockfighting__section-title {
    color: #017439; /* Brand color for titles on light background */
}

.page-cockfighting__content-area .page-cockfighting__section-description {
    color: #555555;
}

/* Steps Section */
.page-cockfighting__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-cockfighting__step-item {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

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

.page-cockfighting__step-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-cockfighting__step-description {
    color: #555555;
}

/* List styles */
.page-cockfighting__list {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #333333;
}

.page-cockfighting__list-strong {
    color: #017439;
}

.page-cockfighting__list li {
    margin-bottom: 10px;
}

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

.page-cockfighting__feature-card {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid #e0e0e0;
    color: #333333; /* Dark text for light card background */
}

.page-cockfighting__feature-image {
    width: 100%;
    height: 200px;
    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.4em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-cockfighting__card-description {
    color: #555555;
}

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

.page-cockfighting__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333; /* Dark text for light FAQ background */
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #e6ffe6; /* Lighter brand color for summary */
    border-bottom: 1px solid #e0e0e0;
    list-style: none; /* For details/summary */
}

.page-cockfighting__faq-question::-webkit-details-marker {
    display: none; /* For details/summary */
}

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

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

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

.page-cockfighting__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: #555555;
}

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

/* Final CTA Section */
.page-cockfighting__final-cta {
    padding: 80px 20px;
    background-color: #017439; /* Brand color dark background */
    color: #ffffff;
    text-align: center;
}

.page-cockfighting__final-cta .page-cockfighting__section-title {
    color: #ffffff;
}

.page-cockfighting__final-cta .page-cockfighting__section-description {
    color: #f0f0f0;
}

.page-cockfighting__final-cta .page-cockfighting__btn-secondary {
    border-color: #FFFF00;
    color: #FFFF00;
}

.page-cockfighting__final-cta .page-cockfighting__btn-secondary:hover {
    background-color: #FFFF00;
    color: #017439;
}


/* --- Responsive Adjustments --- */

/* Mobile responsiveness for images, videos, and buttons */
@media (max-width: 768px) {
    /* General content area padding for mobile */
    .page-cockfighting__container {
        padding: 0 15px;
    }

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

    /* All containers with images/content */
    .page-cockfighting__hero-section,
    .page-cockfighting__video-section,
    .page-cockfighting__content-area,
    .page-cockfighting__final-cta,
    .page-cockfighting__steps,
    .page-cockfighting__features,
    .page-cockfighting__step-item,
    .page-cockfighting__feature-card,
    .page-cockfighting__faq-list,
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Hero Section */
    .page-cockfighting__hero-section {
        min-height: 450px;
        padding-top: calc(80px + var(--header-offset, 120px)) !important; /* Mobile header offset */
        padding-bottom: 80px;
    }

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

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

    /* Video Section */
    .page-cockfighting__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure video section starts below header */
        padding-bottom: 40px;
    }

    .page-cockfighting__video-wrapper {
        margin: 20px auto;
    }

    /* Buttons */
    .page-cockfighting__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    /* Section Titles */
    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-cockfighting__section-description {
        font-size: 0.95em;
        margin-bottom: 25px;
    }

    .page-cockfighting__sub-title {
        font-size: 1.5em;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    /* Steps and Features */
    .page-cockfighting__steps,
    .page-cockfighting__features {
        grid-template-columns: 1fr; /* Stack cards vertically */
        gap: 20px;
    }

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

    .page-cockfighting__step-image,
    .page-cockfighting__feature-image {
        height: 180px; /* Slightly smaller images on mobile */
    }

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

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

    /* Ensure text readability on mobile */
    .page-cockfighting p,
    .page-cockfighting li,
    .page-cockfighting__card-description,
    .page-cockfighting__step-description,
    .page-cockfighting__faq-answer p {
        font-size: 15px; /* Increase base font size for better readability */
        line-height: 1.6;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (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__sub-title {
        font-size: 1.8em;
    }

    .page-cockfighting__steps,
    .page-cockfighting__features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ensure no filter on images */
.page-cockfighting img {
    filter: none !important;
}

/* Ensure content area images are not too small */
.page-cockfighting__content-area img {
    min-width: 200px;
    min-height: 200px;
    width: auto;
    height: auto;
}