/* style/cockfighting.css */

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

.page-cockfighting {
    background-color: var(--sodo99-bg-dark);
    color: var(--sodo99-text-main);
    font-family: 'Arial', sans-serif;
}

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

.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: var(--sodo99-card-bg);
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-cockfighting__hero-content {
    position: relative; /* Ensure content is above any potential background elements */
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    z-index: 10;
    background-color: var(--sodo99-card-bg); /* Use card bg to ensure text contrast */
    border-radius: 8px;
    margin-top: -80px; /* Overlap slightly with image */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--sodo99-border);
}

.page-cockfighting__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
    font-weight: bold;
    color: var(--sodo99-gold);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-cockfighting__description {
    font-size: 1.1em;
    color: var(--sodo99-text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-cockfighting__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-cockfighting__btn-primary {
    background: var(--sodo99-btn-gradient);
    color: #ffffff; /* Always white text for primary button */
    border: 2px solid var(--sodo99-primary);
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-cockfighting__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--sodo99-primary);
    border: 2px solid var(--sodo99-primary);
    box-shadow: 0 4px 10px rgba(17, 168, 78, 0.2);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--sodo99-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(17, 168, 78, 0.4);
}

.page-cockfighting__intro-section,
.page-cockfighting__registration-section,
.page-cockfighting__promotions-section,
.page-cockfighting__cta-final-section {
    background-color: var(--sodo99-bg-dark);
    padding: 60px 0;
    color: var(--sodo99-text-main);
}

.page-cockfighting__rules-section,
.page-cockfighting__tips-section,
.page-cockfighting__faq-section {
    background-color: var(--sodo99-card-bg);
    padding: 60px 0;
    color: var(--sodo99-text-main);
    border-top: 1px solid var(--sodo99-divider);
    border-bottom: 1px solid var(--sodo99-divider);
}

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

.page-cockfighting__sub-title {
    font-size: 1.8em;
    color: var(--sodo99-primary);
    margin-top: 40px;
    margin-bottom: 20px;
    border-left: 5px solid var(--sodo99-gold);
    padding-left: 15px;
}

.page-cockfighting__text-block {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--sodo99-text-secondary);
}

.page-cockfighting__image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--sodo99-border);
    min-width: 200px;
    min-height: 200px;
}

.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.05em;
    line-height: 1.8;
    margin-bottom: 10px;
    color: var(--sodo99-text-main);
    position: relative;
    padding-left: 30px;
}

.page-cockfighting__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--sodo99-primary);
}

.page-cockfighting__ordered-list .page-cockfighting__list-item::before {
    content: none; /* Remove custom bullet for ordered list */
}

.page-cockfighting__faq-list {
    margin-top: 30px;
}

.page-cockfighting__faq-item {
    background-color: var(--sodo99-bg-dark);
    border: 1px solid var(--sodo99-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--sodo99-gold);
    cursor: pointer;
    background-color: var(--sodo99-deep-green);
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: var(--sodo99-primary);
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--sodo99-gold);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    content: '−';
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    color: var(--sodo99-text-secondary);
    font-size: 1.05em;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
    max-height: 500px; /* Adjust as needed for content length */
    padding-top: 15px;
}

.page-cockfighting__faq-item details > summary {
    list-style: none; /* Remove default marker */
}

.page-cockfighting__faq-item details > summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit browsers */
}

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

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

.page-cockfighting__link:hover {
    color: var(--sodo99-gold);
}

.page-cockfighting__cta-final-section {
    text-align: center;
    padding: 80px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-cockfighting__container {
        padding: 0 15px;
    }

    .page-cockfighting__hero-content {
        padding: 30px 15px;
        margin-top: -60px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 10px;
    }

    .page-cockfighting__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100%;
        padding: 12px 20px;
        font-size: 1em;
        max-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__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

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

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

    .page-cockfighting__hero-image,
    .page-cockfighting__image {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-cockfighting__intro-section,
    .page-cockfighting__rules-section,
    .page-cockfighting__registration-section,
    .page-cockfighting__tips-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-final-section {
        padding: 40px 0;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-cockfighting__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    
    .page-cockfighting__video-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    .page-cockfighting video,
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
        max-height: 1000px; /* Adjust for mobile content */
    }
}