/* style/cockfighting.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --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;
}

.page-cockfighting {
    font-family: Arial, sans-serif;
    background-color: var(--color-background); /* #08160F */
    color: var(--color-text-main); /* #F2FFF6 for dark background */
    line-height: 1.6;
    font-size: 16px;
}

.page-cockfighting h1,
.page-cockfighting h2,
.page-cockfighting h3,
.page-cockfighting h4,
.page-cockfighting h5,
.page-cockfighting h6 {
    color: var(--color-text-main); /* Main titles are light on dark background */
    margin-bottom: 1em;
    line-height: 1.2;
}

.page-cockfighting__main-title {
    font-weight: bold;
    letter-spacing: -0.02em;
    max-width: 900px; /* Prevent H1 from being too wide */
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.page-cockfighting__section-title {
    font-size: 2.2em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1.5em;
    color: var(--color-text-main); /* Default for dark sections */
}

.page-cockfighting__light-bg .page-cockfighting__section-title {
    color: #333333; /* Dark text on light background */
}

.page-cockfighting__dark-bg {
    background-color: var(--color-background); /* #08160F */
    color: var(--color-text-main); /* #F2FFF6 */
}

.page-cockfighting__light-bg {
    background-color: #ffffff; /* White background for contrast */
    color: #333333; /* Dark text for contrast */
}

.page-cockfighting__text-main {
    color: var(--color-text-main); /* #F2FFF6 */
}

.page-cockfighting__text-secondary {
    color: var(--color-text-secondary); /* #A7D9B8 */
}

.page-cockfighting__text-block {
    margin-bottom: 1.5em;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* 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-top: 10px; /* Small padding, body handles header offset */
    background-color: var(--color-background); /* Ensure consistency */
    overflow: hidden; /* For image overflow */
}

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

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Ensure image is not too small */
    min-height: 200px; /* Ensure image is not too small */
}

.page-cockfighting__hero-content {
    padding: 40px 20px 60px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    background-color: var(--color-background); /* Ensure it's dark for text contrast */
}

.page-cockfighting__tagline {
    font-size: 1.2em;
    margin-bottom: 2em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px; /* Ensure buttons are not too small */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-cockfighting__btn-primary {
    background: var(--color-button-gradient); /* linear-gradient(180deg, #2AD16F 0%, #13994A 100%) */
    color: #ffffff; /* White text for contrast */
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--color-primary); /* #11A84E */
    border: 2px solid var(--color-primary); /* #11A84E */
    box-shadow: none;
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Intro Section */
.page-cockfighting__intro-section,
.page-cockfighting__bet-types-section,
.page-cockfighting__tips-section,
.page-cockfighting__security-section,
.page-cockfighting__contact-cta-section {
    padding: 80px 0;
}

.page-cockfighting__why-choose-section,
.page-cockfighting__how-to-start-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section {
    padding: 80px 0;
}

.page-cockfighting__image-full {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Ensure image is not too small */
    min-height: 200px; /* Ensure image is not too small */
}

.page-cockfighting__image-center {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Ensure image is not too small */
    min-height: 200px; /* Ensure image is not too small */
}

/* Features Grid */
.page-cockfighting__features-grid,
.page-cockfighting__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-cockfighting__card {
    background-color: var(--color-card-bg); /* #11271B */
    border: 1px solid var(--color-border); /* #2E7A4E */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--color-text-main); /* #F2FFF6 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px; /* Ensure cards have some height */
}

.page-cockfighting__card-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 0.8em;
    color: var(--color-text-main); /* #F2FFF6 */
}

.page-cockfighting__card-description {
    font-size: 0.95em;
    color: var(--color-text-secondary); /* #A7D9B8 */
}

/* Lists */
.page-cockfighting__list,
.page-cockfighting__numbered-list {
    list-style: none;
    padding: 0;
    margin: 2em auto;
    max-width: 800px;
    text-align: left;
    color: var(--color-text-main); /* Default for dark sections */
}

.page-cockfighting__light-bg .page-cockfighting__list,
.page-cockfighting__light-bg .page-cockfighting__numbered-list {
    color: #333333; /* Dark text on light background */
}

.page-cockfighting__list li,
.page-cockfighting__numbered-list li {
    background-color: rgba(255, 255, 255, 0.05); /* Slight background for list items on dark */
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary); /* #11A84E */
}

.page-cockfighting__light-bg .page-cockfighting__list li,
.page-cockfighting__light-bg .page-cockfighting__numbered-list li {
    background-color: #f9f9f9; /* Light background for list items on light */
    border-left-color: var(--color-primary);
}

.page-cockfighting__numbered-list {
    counter-reset: my-counter;
}

.page-cockfighting__numbered-list li {
    counter-increment: my-counter;
    position: relative;
    padding-left: 45px;
}

.page-cockfighting__numbered-list li::before {
    content: counter(my-counter);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--color-primary); /* #11A84E */
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
}

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

.page-cockfighting__faq-item {
    background-color: var(--color-card-bg); /* #11271B */
    border: 1px solid var(--color-border); /* #2E7A4E */
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--color-text-main); /* #F2FFF6 */
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--color-text-main); /* #F2FFF6 */
    user-select: none;
}

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

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

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--color-primary); /* #11A84E */
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    font-size: 0.95em;
    line-height: 1.8;
    color: var(--color-text-secondary); /* #A7D9B8 */
}

/* Contact CTA Section */
.page-cockfighting__contact-cta-content {
    text-align: center;
    padding: 60px 20px;
}

.page-cockfighting__cta-buttons--center {
    margin-top: 3em;
}

/* General image styling to ensure minimum size and responsive behavior */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Global minimum size for content images */
    min-height: 200px; /* Global minimum size for content images */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: 2.5em;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
    }
}

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

    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 7vw, 2.2em); /* Responsive font size */
        padding: 0 15px;
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.5em, 6vw, 1.8em);
        padding: 0 15px;
    }

    .page-cockfighting__tagline {
        font-size: 1em;
        padding: 0 15px;
    }

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

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

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-cockfighting__intro-section,
    .page-cockfighting__why-choose-section,
    .page-cockfighting__bet-types-section,
    .page-cockfighting__how-to-start-section,
    .page-cockfighting__tips-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__security-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__contact-cta-section {
        padding: 40px 0;
    }

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

    .page-cockfighting__features-grid,
    .page-cockfighting__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__card {
        padding: 25px;
    }

    .page-cockfighting__list,
    .page-cockfighting__numbered-list {
        margin: 1.5em auto;
        padding: 0 15px;
    }

    .page-cockfighting__list li,
    .page-cockfighting__numbered-list li {
        padding: 12px 15px;
        padding-left: 40px;
        margin-bottom: 8px;
    }

    .page-cockfighting__numbered-list li::before {
        left: 10px;
        width: 24px;
        height: 24px;
        font-size: 0.8em;
    }

    .page-cockfighting__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-cockfighting__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.9em;
    }

    /* Mobile forced image/video/button responsive styles */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure min size is still met */
        min-height: 200px !important; /* Ensure min size is still met */
    }

    .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__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}