/* style/cockfighting.css */

/* Custom colors from prompt */
:root {
    --cockfighting-bg: #08160F;
    --cockfighting-card-bg: #11271B;
    --cockfighting-text-main: #F2FFF6;
    --cockfighting-text-secondary: #A7D9B8;
    --cockfighting-border: #2E7A4E;
    --cockfighting-glow: #57E38D;
    --cockfighting-gold: #F2C14E;
    --cockfighting-divider: #1E3A2A;
    --cockfighting-deep-green: #0A4B2C;
    --cockfighting-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --cockfighting-primary-color: #11A84E; /* Main color from prompt */
    --cockfighting-secondary-color: #22C768; /* Auxiliary color from prompt */
}

.page-cockfighting {
    background-color: var(--cockfighting-bg);
    color: var(--cockfighting-text-main); /* Dark background, so light text */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* HERO Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    text-align: center;
    overflow: hidden; /* Ensure content doesn't spill */
    background-color: var(--cockfighting-card-bg); /* Use a slightly different dark background for contrast */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and text */
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for better text readability if text were overlaid, though text is below */
}

.page-cockfighting__hero-content {
    max-width: 900px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.page-cockfighting__main-title {
    font-weight: bold;
    color: var(--cockfighting-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Example clamp for responsive H1 */
}

.page-cockfighting__hero-description {
    font-size: 1.1rem;
    color: var(--cockfighting-text-secondary);
    margin-bottom: 30px;
}

/* General Section Styling */
.page-cockfighting__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--cockfighting-divider);
}

.page-cockfighting__section:last-of-type {
    border-bottom: none;
}

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

.page-cockfighting__container--centered {
    text-align: center;
}

.page-cockfighting__section-title {
    color: var(--cockfighting-gold);
    font-size: 2.5rem;
    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: 3px;
    background-color: var(--cockfighting-primary-color);
    border-radius: 2px;
}

.page-cockfighting__text-block {
    font-size: 1rem;
    color: var(--cockfighting-text-main);
    margin-bottom: 20px;
}

.page-cockfighting__text-block strong {
    color: var(--cockfighting-gold);
}

.page-cockfighting__image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

.page-cockfighting__btn-primary {
    background: var(--cockfighting-btn-gradient);
    color: #ffffff; /* White text for contrast on green gradient */
    border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(var(--cockfighting-primary-color), 0.4);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--cockfighting-primary-color);
    border: 2px solid var(--cockfighting-primary-color);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--cockfighting-primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(var(--cockfighting-primary-color), 0.2);
}

.page-cockfighting__btn-primary--large,
.page-cockfighting__btn-secondary--large {
    padding: 18px 40px;
    font-size: 1.2rem;
    min-width: 200px;
}

/* Lists */
.page-cockfighting__list,
.page-cockfighting__ordered-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-cockfighting__list-item {
    font-size: 1rem;
    color: var(--cockfighting-text-main);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.page-cockfighting__list-item::before {
    content: '✅'; /* Green checkmark for list items */
    position: absolute;
    left: 0;
    color: var(--cockfighting-primary-color); /* Use primary brand color */
}

.page-cockfighting__ordered-list .page-cockfighting__list-item {
    counter-increment: list-counter;
}

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

/* FAQ Section */
.page-cockfighting__faq-list {
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-cockfighting__faq-item[open] {
    background-color: var(--cockfighting-deep-green);
    border-color: var(--cockfighting-primary-color);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--cockfighting-text-main);
    list-style: none; /* For <summary> */
    user-select: none;
}

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

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

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

.page-cockfighting__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 0.95rem;
    color: var(--cockfighting-text-secondary);
    line-height: 1.6;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .page-cockfighting__section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding: 10px 0 40px 0;
    }

    .page-cockfighting__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-cockfighting__hero-content {
        padding: 0 15px;
    }

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

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

    .page-cockfighting__section {
        padding: 40px 0;
    }

    .page-cockfighting__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-cockfighting__text-block {
        font-size: 0.95rem;
    }

    .page-cockfighting__list-item,
    .page-cockfighting__faq-answer {
        font-size: 0.9rem;
    }

    /* Images */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Videos (if any) - not explicitly in HTML for this page, but good to include */
    .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: 10px !important; /* body already handles --header-offset */
    }

    /* Buttons */
    .page-cockfighting__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        font-size: 1rem !important;
        padding: 12px 20px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-cockfighting__btn-primary--large,
    .page-cockfighting__btn-secondary--large {
        padding: 15px 25px !important;
        font-size: 1.1rem !important;
        min-width: unset; /* Remove min-width for mobile */
    }

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

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