/* style/cockfighting.css */

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

/* Base styles for the page content, ensuring dark background and light text */
.page-cockfighting {
    background-color: var(--color-background);
    color: var(--color-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Section spacing and alignment */
.page-cockfighting__section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-cockfighting__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 10px 0 60px 0; /* body handles --header-offset, this is for visual padding */
    overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Adjust based on desired aspect ratio for 1920x1080 */
    overflow: hidden;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-cockfighting__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Pull content up slightly over the image for visual flow, but not covering text */
    position: relative; /* Ensure it stays above the image in z-index without explicit z-index */
    background: linear-gradient(0deg, var(--color-background) 0%, rgba(8, 22, 15, 0.8) 50%, rgba(8, 22, 15, 0) 100%);
    padding-top: 100px;
}

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--color-text-main);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

.page-cockfighting__section-title {
    font-size: 2.5rem;
    color: var(--color-text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-cockfighting__sub-title {
    font-size: 1.8rem;
    color: var(--color-text-main);
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-cockfighting__paragraph {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
}

.page-cockfighting__highlight {
    color: var(--color-text-main);
    font-weight: bold;
}

.page-cockfighting__text-secondary {
    color: var(--color-text-secondary);
}

.page-cockfighting__text-link {
    color: var(--color-glow);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-cockfighting__text-link:hover {
    color: var(--color-gold);
}

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

.page-cockfighting__list-item {
    color: var(--color-text-secondary);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.page-cockfighting__list-icon {
    color: var(--color-glow);
    position: absolute;
    left: 0;
    top: 0;
}

.page-cockfighting__image-content {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 30px 0;
    object-fit: cover;
    object-position: center;
    border: 1px solid var(--color-border);
}

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

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

.page-cockfighting__btn-primary {
    background: var(--color-button-gradient);
    color: var(--color-text-main);
    border: 2px solid transparent;
}

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

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

.page-cockfighting__btn-secondary:hover {
    background: var(--color-glow);
    color: var(--color-background);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(87, 227, 141, 0.4);
}

/* Video Section */
.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: var(--color-card-bg);
    border-radius: 8px;
    margin: 40px auto;
    border: 1px solid var(--color-border);
    box-sizing: border-box;
    width: 100%; /* Ensure desktop width is 100% */
}

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

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

/* FAQ Section */
.page-cockfighting__faq-list {
    max-width: 900px;
    margin: 40px auto;
}

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

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

.page-cockfighting__faq-question::-webkit-details-marker {
    display: none;
}

.page-cockfighting__faq-question:hover {
    background-color: rgba(46, 122, 78, 0.2); /* var(--color-border) with opacity */
}

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-glow);
    transition: transform 0.3s ease;
}

details[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg);
}

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

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

/* Final CTA Section */
.page-cockfighting__final-cta {
    text-align: center;
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

    .page-cockfighting__hero-content {
        padding: 30px 15px;
        margin-top: -60px; /* Adjust for mobile */
        padding-top: 80px;
    }

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

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

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

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

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

    .page-cockfighting__paragraph,
    .page-cockfighting__list-item,
    .page-cockfighting__faq-answer p {
        font-size: 0.95rem;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        padding: 12px 20px;
        font-size: 1rem;
        width: 100% !important; /* Ensure buttons take full width */
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Mobile image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

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

    .page-cockfighting__video-wrapper {
        margin: 20px auto;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
        overflow: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .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__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }

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

    .page-cockfighting__final-cta {
        padding: 50px 15px;
    }

    /* Ensure all containers with images/videos/buttons adapt */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .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;
        padding-right: 15px;
    }
}