:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --bg-dark: #08160F; /* Custom Background */
    --card-bg: #11271B; /* Custom Card BG */
    --text-main: #F2FFF6; /* Custom Text Main */
    --text-secondary: #A7D9B8; /* Custom Text Secondary */
    --border-color: #2E7A4E; /* Custom Border */
    --glow-color: #57E38D; /* Custom Glow */
    --gold-color: #F2C14E; /* Custom Gold */
    --divider-color: #1E3A2A; /* Custom Divider */
    --deep-green: #0A4B2C; /* Custom Deep Green */
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button Gradient */
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--bg-dark); /* Default background for the page, will be overridden by sections */
    line-height: 1.6;
}

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

/* Section styling */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px; /* Small top padding, more bottom padding */
    overflow: hidden;
    background-color: var(--bg-dark);
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.8); /* Slightly dim the image to make text pop */
}

.page-cockfighting__hero-content {
    position: relative; /* Ensure content is above image filter */
    z-index: 10;
    max-width: 900px;
    padding: 20px;
    margin-top: -150px; /* Overlap with image for visual effect */
    background: rgba(8, 22, 15, 0.7); /* Semi-transparent background for readability */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

.page-cockfighting__hero-description {
    font-size: clamp(1em, 1.5vw, 1.2em);
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.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: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

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

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

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

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

/* Common section styles */
.page-cockfighting__introduction-section,
.page-cockfighting__rules-strategy-section,
.page-cockfighting__guide-section,
.page-cockfighting__tips-section {
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text */
    padding: 60px 0;
}

.page-cockfighting__bet-types-section,
.page-cockfighting__promotions-section,
.page-cockfighting__live-section,
.page-cockfighting__faq-section {
    background-color: var(--bg-dark); /* Dark background */
    color: var(--text-main); /* Light text */
    padding: 60px 0;
}

.page-cockfighting__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
}

.page-cockfighting__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--glow-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-cockfighting__sub-title {
    font-size: clamp(1.4em, 2.5vw, 1.8em);
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-cockfighting ul,
.page-cockfighting ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.page-cockfighting ul li,
.page-cockfighting ol li {
    margin-bottom: 8px;
    font-size: 1.1em;
}

/* Card styles */
.page-cockfighting__card-grid,
.page-cockfighting__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.page-cockfighting__card,
.page-cockfighting__promo-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.page-cockfighting__card:hover,
.page-cockfighting__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__card-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__promo-card .page-cockfighting__btn-primary,
.page-cockfighting__promo-card .page-cockfighting__btn-secondary {
    margin-top: 20px;
    width: 100%; /* Ensure buttons fill card width */
}

/* Image styling within content */
.page-cockfighting__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Video section */
.page-cockfighting__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 30px auto;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer; /* Indicate it's clickable */
}

/* FAQ section */
.page-cockfighting__faq-list {
    margin-top: 30px;
}

.page-cockfighting__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    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: 600;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--border-color);
    list-style: none; /* For details tag */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

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

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    border-bottom: 1px solid var(--divider-color);
}

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

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-cockfighting__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1.1em;
    color: var(--text-secondary);
    background-color: var(--card-bg);
}

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

/* Center CTA buttons */
.page-cockfighting__cta-buttons--center {
    margin-top: 30px;
    margin-bottom: 30px;
}

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

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

    .page-cockfighting__hero-content {
        margin-top: -100px; /* Adjust overlap for mobile */
        padding: 15px;
    }

    .page-cockfighting__main-title {
        font-size: 2em; /* Smaller H1 for mobile */
    }

    .page-cockfighting__hero-description {
        font-size: 1em;
    }

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

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        padding: 10px 15px;
        font-size: 1em;
        width: 100% !important; /* Force full width for buttons */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-cockfighting__section-title {
        font-size: 1.5em;
        margin-bottom: 25px;
    }

    .page-cockfighting__sub-title {
        font-size: 1.2em;
    }

    .page-cockfighting p,
    .page-cockfighting ul li,
    .page-cockfighting ol li,
    .page-cockfighting__faq-answer p {
        font-size: 0.95em;
    }

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

    .page-cockfighting__card,
    .page-cockfighting__promo-card {
        padding: 20px;
    }

    .page-cockfighting__card-title {
        font-size: 1.3em;
    }

    /* Images and Videos responsive */
    .page-cockfighting img,
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important; /* Ensure padding is included in width */
    }

    .page-cockfighting__introduction-section,
    .page-cockfighting__bet-types-section,
    .page-cockfighting__rules-strategy-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__live-section,
    .page-cockfighting__tips-section,
    .page-cockfighting__faq-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-x: hidden; /* Prevent horizontal scroll */
    }
    
    .page-cockfighting__hero-image-wrapper {
        max-height: 400px;
    }

    .page-cockfighting__live-section {
        padding-top: 10px !important; /* Small top padding for video section */
    }

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

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

/* Ensure no text on hero image */
.page-cockfighting__hero-section .page-cockfighting__hero-image-wrapper + .page-cockfighting__hero-content {
    /* This rule ensures the content is below the image in DOM order and visually */
    /* The negative margin is for visual overlap, not text on image */
    margin-top: -150px; /* Adjusted in mobile media query */
}

/* Contrast Fixes - applied to light background sections for dark text */
.page-cockfighting__introduction-section,
.page-cockfighting__rules-strategy-section,
.page-cockfighting__guide-section,
.page-cockfighting__tips-section {
  color: #333333; /* Ensure dark text on light background */
}

/* Contrast Fixes - applied to dark background sections for light text */
.page-cockfighting__bet-types-section,
.page-cockfighting__promotions-section,
.page-cockfighting__live-section,
.page-cockfighting__faq-section {
  color: var(--text-main); /* Ensure light text on dark background */
}