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

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--background-color); /* Page background from custom palette */
}

.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    box-sizing: border-box;
    overflow: hidden;
    background-color: var(--background-color);
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for the image wrapper */
    margin-bottom: 30px;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative; /* Ensure content is above any potential background elements */
    z-index: 2;
}

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--gold-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

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

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-small,
.page-cockfighting__btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: 2px solid var(--glow-color);
    box-shadow: 0 0 15px rgba(87, 227, 141, 0.5);
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(87, 227, 141, 0.8);
}

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

.page-cockfighting__btn-secondary:hover {
    background: rgba(87, 227, 141, 0.1);
    color: var(--text-main);
}

.page-cockfighting__btn-small {
    padding: 10px 20px;
    font-size: 0.95rem;
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
    border-radius: 5px;
}

.page-cockfighting__btn-small:hover {
    opacity: 0.9;
}

.page-cockfighting__btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

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

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

.page-cockfighting__section-description {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.page-cockfighting__about-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-banner {
    padding: 80px 0;
    background-color: var(--background-color);
}

.page-cockfighting__features-grid,
.page-cockfighting__steps-grid,
.page-cockfighting__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-cockfighting__card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main); /* Card text color */
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__feature-icon,
.page-cockfighting__step-icon,
.page-cockfighting__promo-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-cockfighting__feature-title,
.page-cockfighting__step-title,
.page-cockfighting__promo-title {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__feature-text,
.page-cockfighting__step-text,
.page-cockfighting__promo-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.page-cockfighting__faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-cockfighting__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

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

.page-cockfighting__faq-question::-webkit-details-marker {
    display: none; /* For details/summary */
}

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

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

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

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

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

.page-cockfighting__faq-answer a {
    color: var(--glow-color);
    text-decoration: underline;
}

.page-cockfighting__cta-banner {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--deep-green-color);
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

.page-cockfighting__cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.page-cockfighting__cta-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-cockfighting__hero-content {
        padding: 0 15px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(2.2rem, 4.5vw, 3rem);
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-small,
    .page-cockfighting__btn-large {
        font-size: 1rem;
        padding: 12px 25px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding: 10px 15px 40px; /* body handles top padding */
    }
    .page-cockfighting__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-cockfighting__hero-description {
        font-size: 1rem;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-small,
    .page-cockfighting__btn-large {
        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__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;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-cockfighting__container {
        padding: 0 15px;
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
        margin-bottom: 20px;
    }
    .page-cockfighting__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    .page-cockfighting__about-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-banner {
        padding: 50px 0;
    }
    .page-cockfighting__features-grid,
    .page-cockfighting__steps-grid,
    .page-cockfighting__promo-grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__card {
        padding: 25px;
    }
    .page-cockfighting__feature-title,
    .page-cockfighting__step-title,
    .page-cockfighting__promo-title {
        font-size: 1.2rem;
    }
    .page-cockfighting__feature-text,
    .page-cockfighting__step-text,
    .page-cockfighting__promo-text {
        font-size: 0.9rem;
    }
    .page-cockfighting__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.9rem;
    }
    .page-cockfighting__cta-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-cockfighting__cta-description {
        font-size: 1rem;
    }

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

    /* Mobile video responsiveness (if any video section was present, e.g., __video-section) */
    .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;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__main-title {
        font-size: clamp(1.6rem, 7vw, 2rem);
    }
    .page-cockfighting__hero-description {
        font-size: 0.9rem;
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-small,
    .page-cockfighting__btn-large {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}