/* style/cockfighting.css */

/* Base styles for the page content, ensuring text color contrasts with the body background */
/* Body background is #08160F (dark), so text should be light */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color, #F2FFF6); /* Light text on dark background */
    background-color: var(--background-color, #08160F); /* Page specific background color */
    line-height: 1.6;
    font-size: 16px;
}

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

/* 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: 20px;
    box-sizing: border-box;
    overflow: hidden;
    background-color: var(--background-color);
}

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

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

.page-cockfighting__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1; /* Ensure content is above any background elements */
}

.page-cockfighting__main-title {
    font-size: clamp(2rem, 4vw, 2.5rem); /* Using clamp for responsive H1 */
    font-weight: 700;
    color: var(--gold-color); /* Gold for main title */
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.4); /* Subtle glow */
}

.page-cockfighting__description {
    font-size: 1.1rem;
    color: var(--text-main-color);
    margin-bottom: 30px;
}

/* General Section Styling */
.page-cockfighting__section {
    padding: 60px 20px;
    background-color: var(--background-color);
    box-sizing: border-box;
}

.page-cockfighting__dark-section {
    background-color: var(--card-bg-color); /* Darker background for some sections */
}

.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Inner padding for content */
    box-sizing: border-box;
}

.page-cockfighting__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.2rem);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 0 5px rgba(17, 168, 78, 0.3);
}

.page-cockfighting__subsection-title {
    font-size: clamp(1.4rem, 2.8vw, 1.8rem);
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.page-cockfighting__content-wrapper {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.page-cockfighting__content-wrapper--reverse {
    flex-direction: row-reverse; /* For alternating image/text layout */
}

.page-cockfighting__text-block {
    flex: 1;
    min-width: 300px; /* Ensure text block doesn't get too small */
    color: var(--text-main-color);
    font-size: 1rem;
}

.page-cockfighting__image-content {
    flex: 1;
    min-width: 300px; /* Ensure image doesn't get too small */
    max-width: 50%; /* Limit image width in desktop view */
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__list {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
    color: var(--text-main-color);
}

.page-cockfighting__list li {
    margin-bottom: 10px;
    color: var(--text-secondary-color);
}

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

/* Buttons */
.page-cockfighting__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure button adapts to container */
}

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main-color); /* Light text on green button */
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-cockfighting__btn-secondary {
    background: var(--card-bg-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    background: var(--primary-color);
    color: var(--text-main-color);
}

.page-cockfighting__button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* FAQ Section */
.page-cockfighting__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.page-cockfighting__faq-item {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__faq-item summary {
    list-style: none; /* Remove default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main-color);
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-item summary::-webkit-details-marker {
    display: none; /* Hide Chrome/Safari default marker */
}

.page-cockfighting__faq-item summary:hover {
    background-color: rgba(var(--primary-color), 0.1);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    color: var(--text-secondary-color);
    font-size: 1rem;
    line-height: 1.6;
    max-height: 0; /* Hidden by default for JS fallback */
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

/* For details tag, the content is shown by default when open */
.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
    max-height: 1000px; /* A large enough value for content to expand */
    transition: max-height 0.5s ease-in;
}

/* For JS controlled (div-based) FAQ, if using */
.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px; /* A large enough value for content to expand */
    transition: max-height 0.5s ease-in;
}

/* Conclusion Section */
.page-cockfighting__conclusion-section {
    text-align: center;
    padding-bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__content-wrapper {
        flex-direction: column;
    }

    .page-cockfighting__content-wrapper--reverse {
        flex-direction: column;
    }

    .page-cockfighting__image-content {
        max-width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 15px;
    }

    .page-cockfighting__hero-section {
        padding: 10px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 8vw, 2.2rem);
    }

    .page-cockfighting__description {
        font-size: 1rem;
    }

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

    .page-cockfighting__section-title {
        font-size: clamp(1.5rem, 7vw, 1.8rem);
        margin-bottom: 30px;
    }

    .page-cockfighting__subsection-title {
        font-size: clamp(1.2rem, 6vw, 1.5rem);
    }

    .page-cockfighting__cta-button {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .page-cockfighting__button-group {
        flex-direction: column;
        gap: 15px;
    }

    /* Mobile specific image/video/button responsive rules with !important */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-cockfighting video,
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper,
    .page-cockfighting__cta-buttons,
    .page-cockfighting__button-group,
    .page-cockfighting__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }

    .page-cockfighting__cta-button,
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting a[class*="button"],
    .page-cockfighting a[class*="btn"] {
        max-width: 100% !important;
        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__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-cockfighting__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-cockfighting__faq-item summary {
        font-size: 1rem;
        padding: 15px 20px;
    }
}