/* style/cockfighting.css */
/* Custom colors from prompt */
:root {
    --page-cockfighting-bg: #08160F;
    --page-cockfighting-card-bg: #11271B;
    --page-cockfighting-text-main: #F2FFF6;
    --page-cockfighting-text-secondary: #A7D9B8;
    --page-cockfighting-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-cockfighting-border: #2E7A4E;
    --page-cockfighting-glow: #57E38D;
    --page-cockfighting-gold: #F2C14E;
    --page-cockfighting-divider: #1E3A2A;
    --page-cockfighting-deep-green: #0A4B2C;
}

/* Base styles for the page content, ensuring light text on dark body background */
.page-cockfighting {
    background-color: var(--page-cockfighting-bg); /* Dark background */
    color: var(--page-cockfighting-text-main); /* Light text for contrast */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: 0; /* body already handles --header-offset */
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 30px; /* Space between image and text */
}

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

.page-cockfighting__hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

.page-cockfighting__hero-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    color: var(--page-cockfighting-gold);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5); /* Subtle glow for gold text */
}

.page-cockfighting__hero-description {
    font-size: 1.25rem;
    color: var(--page-cockfighting-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.page-cockfighting__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 100%; /* Ensure button adapts to container width */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-cockfighting__btn-primary {
    background: var(--page-cockfighting-button-gradient);
    color: var(--page-cockfighting-text-main); /* White text for contrast */
    border: 2px solid var(--page-cockfighting-deep-green);
}

.page-cockfighting__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--page-cockfighting-gold); /* Gold text */
    border: 2px solid var(--page-cockfighting-gold);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--page-cockfighting-gold);
    color: var(--page-cockfighting-bg); /* Dark text on gold hover */
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.3);
    transform: translateY(-2px);
}

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

.page-cockfighting__section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--page-cockfighting-gold);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-cockfighting__text-block {
    font-size: 1.1rem;
    color: var(--page-cockfighting-text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

.page-cockfighting__highlight {
    color: var(--page-cockfighting-text-main); /* Brighter text for highlights */
    font-weight: bold;
}

.page-cockfighting__list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-cockfighting__ordered-list {
    list-style-type: decimal;
    padding-left: 25px;
    margin-bottom: 20px;
}

.page-cockfighting__list-item {
    font-size: 1.1rem;
    color: var(--page-cockfighting-text-secondary);
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px; /* Space for custom bullet */
}

.page-cockfighting__list-item strong {
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__list-item::before {
    content: '•'; /* Custom bullet point */
    color: var(--page-cockfighting-gold);
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: -5px;
    line-height: 1;
}

.page-cockfighting__ordered-list .page-cockfighting__list-item::before {
    content: counter(list-item) ".";
    counter-increment: list-item;
    color: var(--page-cockfighting-gold);
    font-weight: bold;
    font-size: 1.1em;
    position: absolute;
    left: 0;
    top: 0;
}


.page-cockfighting__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-cockfighting__link {
    color: var(--page-cockfighting-gold);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-cockfighting__link:hover {
    color: var(--page-cockfighting-glow);
}

/* Section specific backgrounds */
.page-cockfighting__dark-section {
    background-color: var(--page-cockfighting-card-bg); /* Slightly lighter dark green */
    padding: 60px 0;
}

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

.page-cockfighting__faq-item {
    background-color: var(--page-cockfighting-bg); /* Darker background for FAQ item */
    border: 1px solid var(--page-cockfighting-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-cockfighting__faq-item[open] {
    background-color: var(--page-cockfighting-deep-green); /* Darker green when open */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--page-cockfighting-text-main);
    cursor: pointer;
    background-color: var(--page-cockfighting-card-bg); /* Card BG for summary */
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for details/summary */
}

.page-cockfighting__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    background-color: var(--page-cockfighting-deep-green); /* Darker green when open */
}

.page-cockfighting__faq-question:hover {
    background-color: var(--page-cockfighting-deep-green);
}

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

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

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

.page-cockfighting__faq-answer {
    padding: 0 20px 20px;
    font-size: 1rem;
    color: var(--page-cockfighting-text-secondary);
    text-align: justify;
}

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

@media (max-width: 768px) {
    /* Mobile responsive for images, videos, and buttons */
    .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,
    .page-cockfighting__hero-section,
    .page-cockfighting__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important; /* Add padding to prevent content touching edges */
        padding-right: 15px !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 40px !important;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically on mobile */
        gap: 15px !important;
    }

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

    .page-cockfighting__hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 10px;
    }

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

    .page-cockfighting__section-title {
        font-size: clamp(1.5rem, 5.5vw, 2.2rem);
        margin-bottom: 20px;
    }

    .page-cockfighting__text-block,
    .page-cockfighting__list-item,
    .page-cockfighting__faq-question,
    .page-cockfighting__faq-answer {
        font-size: 1rem;
    }

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

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

@media (max-width: 480px) {
    .page-cockfighting__hero-section {
        padding: 30px 10px;
        padding-top: 10px;
    }
    .page-cockfighting__container {
        padding: 20px 10px;
    }
    .page-cockfighting__hero-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.3rem, 6.5vw, 1.8rem);
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        padding: 10px 15px !important;
        font-size: 0.9rem !important;
    }
}

/* Ensure content area images are at least 200px */
.page-cockfighting__introduction-section img,
.page-cockfighting__guide-section img,
.page-cockfighting__promotions-section img,
.page-cockfighting__faq-section img {
    min-width: 200px;
    min-height: 200px;
}