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

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for the page, based on dark body background */
    background-color: var(--page-bg); /* Ensure main content area respects the dark background */
    line-height: 1.6;
}

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

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

.page-cockfighting__text-block {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.page-cockfighting__highlight {
    color: var(--glow-color); /* Highlight important keywords */
    font-weight: bold;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Default to column for image above text */
    align-items: center;
    padding: 60px 0 40px; /* Small top padding, body handles --header-offset */
    background-color: var(--page-bg); /* Ensure hero section background matches body */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure it takes full width if needed */
    margin-bottom: 30px;
    overflow: hidden; /* Ensure no overflow */
    box-sizing: border-box;
}

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

.page-cockfighting__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
}

.page-cockfighting__main-title {
    /* No fixed font-size, rely on clamp if needed, otherwise use relative units */
    font-size: clamp(2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

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

.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width for flex-wrap to work */
    max-width: 500px; /* Limit max width for buttons group */
    margin: 0 auto;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for button width calculations */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

.page-cockfighting__btn-primary {
    background: var(--btn-gradient);
    color: var(--text-main); /* Light text on dark/gradient button */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__btn-secondary {
    background: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-secondary:hover {
    background: var(--gold-color);
    color: var(--page-bg); /* Dark text on gold hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-small {
    padding: 10px 20px;
    font-size: 0.95rem;
}

/* Sections */
.page-cockfighting__introduction-section,
.page-cockfighting__bet-types-section,
.page-cockfighting__promotions-section,
.page-cockfighting__guide-section,
.page-cockfighting__tips-section,
.page-cockfighting__faq-section,
.page-cockfighting__call-to-action {
    padding: 80px 0;
    position: relative;
    overflow: hidden; /* Ensure no content overflows */
}

.page-cockfighting__dark-section {
    background-color: var(--card-bg); /* Use card background for dark sections */
    color: var(--text-main);
}

.page-cockfighting__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    object-fit: cover;
}

.page-cockfighting__image-right {
    float: right;
    width: 40%;
    max-width: 400px;
    margin-left: 30px;
    margin-bottom: 20px;
}

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

.page-cockfighting__list-item {
    background-color: var(--card-bg);
    border-left: 4px solid var(--glow-color);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 1.05rem;
    color: var(--text-main);
}

.page-cockfighting__list-item strong {
    color: var(--gold-color);
}

/* Promotion Cards */
.page-cockfighting__promo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.page-cockfighting__promo-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main); /* Ensure card text is light */
}

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

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

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

.page-cockfighting__cta-section {
    text-align: center;
    margin-top: 50px;
}

.page-cockfighting__cta-text {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 30px;
}

/* Guide Steps */
.page-cockfighting__step-list {
    list-style: none;
    padding-left: 0;
    counter-reset: step-counter;
}

.page-cockfighting__step-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 20px;
    position: relative;
    color: var(--text-main);
}

.page-cockfighting__step-item::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--btn-gradient);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    border: 3px solid var(--page-bg);
    box-shadow: 0 0 0 5px var(--deep-green);
}

.page-cockfighting__step-title {
    font-size: 1.4rem;
    color: var(--gold-color);
    margin-bottom: 10px;
    padding-left: 30px; /* Offset for step number */
}

.page-cockfighting__step-description {
    font-size: 1rem;
    color: var(--text-secondary);
    padding-left: 30px;
}

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

.page-cockfighting__tip-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: var(--text-main);
}

.page-cockfighting__tip-card:hover {
    transform: translateY(-5px);
}

/* FAQ Section */
.page-cockfighting__faq-section {
    /* counter-reset: step-counter; Removed as it's for guide section */
}

.page-cockfighting__faq-list {
    margin-top: 40px;
    clear: both; /* Clear float from image-right */
}

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

.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 */
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--gold-color);
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--border-color);
}

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

.page-cockfighting__faq-qtext {
    flex-grow: 1;
}

.page-cockfighting__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--glow-color);
}

.page-cockfighting__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--divider-color); /* Added for separation */
}

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

/* Call to action */
.page-cockfighting__call-to-action {
    text-align: center;
    padding: 100px 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__section-title {
        font-size: 2rem;
    }
    .page-cockfighting__image-right {
        float: none;
        width: 100%;
        max-width: 600px;
        margin: 30px auto;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
        padding-bottom: 30px;
    }
    .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;
        padding: 0 15px; /* Add padding for buttons group */
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting a[class*="button"],
    .page-cockfighting a[class*="btn"] {
        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__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-cockfighting__text-block,
    .page-cockfighting__list-item,
    .page-cockfighting__card-description,
    .page-cockfighting__step-description,
    .page-cockfighting__faq-answer {
        font-size: 0.95rem;
    }
    .page-cockfighting__promo-cards,
    .page-cockfighting__tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__step-item::before {
        left: 50%;
        top: -20px;
        transform: translateX(-50%);
        border: 2px solid var(--page-bg);
        box-shadow: 0 0 0 3px var(--deep-green);
    }
    .page-cockfighting__step-title,
    .page-cockfighting__step-description {
        padding-left: 0;
        text-align: center;
    }
    .page-cockfighting__step-item {
        padding-top: 40px; /* Make space for top-positioned number */
    }
    .page-cockfighting__image-content {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__container,
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__promo-card,
    .page-cockfighting__tip-card,
    .page-cockfighting__faq-item,
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__cta-buttons,
    .page-cockfighting__button-group,
    .page-cockfighting__btn-container,
    .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; /* Crucial for preventing overflow */
    }
    /* Ensure no specific video styling overrides max-width:100% */
    .page-cockfighting video,
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-cockfighting__faq-toggle {
        font-size: 1.5rem;
    }
    .page-cockfighting__faq-answer {
        padding: 15px 20px;
    }
}