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

.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-cockfighting-text-main); /* Default text color for the page */
    background-color: var(--page-cockfighting-background); /* Page background */
}

/* Container for main content */
.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section Styling */
.page-cockfighting__hero-section,
.page-cockfighting__about-section,
.page-cockfighting__benefits-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__strategy-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-bottom {
    padding: 60px 0;
    text-align: center;
}

.page-cockfighting__dark-section {
    background-color: var(--page-cockfighting-deep-green); /* Use a darker custom green for contrast */
    color: var(--page-cockfighting-text-main);
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: var(--page-cockfighting-background);
    overflow: hidden; /* Ensure no overflow from image */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* 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;
    filter: brightness(0.7); /* Slightly dim the image to make text pop, not changing color */
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

.page-cockfighting__hero-content {
    position: relative; /* Relative for normal flow */
    z-index: 1;
    padding: 30px 20px;
    margin-top: -100px; /* Pull content up slightly over the image for better visual flow */
    background: var(--page-cockfighting-background); /* Background to ensure text readability */
    border-radius: 10px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__subtitle {
    font-size: 1.2em;
    color: var(--page-cockfighting-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-small,
.page-cockfighting__faq-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    min-width: 180px; /* Ensure buttons have a decent minimum width */
}

.page-cockfighting__btn-primary {
    background: var(--page-cockfighting-button-gradient);
    color: var(--page-cockfighting-text-main); /* White text for dark button */
    border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.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: var(--page-cockfighting-text-main);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.2);
}

.page-cockfighting__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
    background: var(--primary-color);
    color: var(--page-cockfighting-text-main);
    border: none;
    border-radius: 5px;
    margin-top: 15px;
}

.page-cockfighting__btn-small:hover {
    background: var(--secondary-color);
}

/* Section Titles */
.page-cockfighting__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    color: var(--page-cockfighting-gold);
    margin-bottom: 40px;
    font-weight: bold;
}

.page-cockfighting__text-block {
    font-size: 1.1em;
    color: var(--page-cockfighting-text-secondary);
    max-width: 900px;
    margin: 0 auto 20px auto;
}

/* Image content */
.page-cockfighting__image-content {
    max-width: 800px;
    width: 100%;
    height: auto;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: block; /* Ensure it behaves as a block element */
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

/* Benefits Section */
.page-cockfighting__benefits-grid,
.page-cockfighting__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__benefit-card,
.page-cockfighting__promotion-card,
.page-cockfighting__step-card {
    background-color: var(--page-cockfighting-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    border: 1px solid var(--page-cockfighting-border);
}

.page-cockfighting__card-title {
    font-size: 1.4em;
    color: var(--page-cockfighting-text-main);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cockfighting__card-text {
    color: var(--page-cockfighting-text-secondary);
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-cockfighting__promotion-card .page-cockfighting__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

/* How to Play Section */
.page-cockfighting__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__step-card {
    background-color: var(--page-cockfighting-card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    border: 1px solid var(--page-cockfighting-border);
}

/* Strategy Section */
.page-cockfighting__strategy-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0 auto;
    max-width: 900px;
    text-align: left;
}

.page-cockfighting__list-item {
    background-color: var(--page-cockfighting-card-bg);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__list-title {
    font-size: 1.2em;
    color: var(--page-cockfighting-text-main);
    margin-bottom: 5px;
    font-weight: bold;
}

.page-cockfighting__list-text {
    color: var(--page-cockfighting-text-secondary);
    font-size: 0.95em;
}

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

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

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.1em;
    color: var(--page-cockfighting-text-main);
    font-weight: bold;
    background-color: var(--page-cockfighting-card-bg);
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: var(--page-cockfighting-deep-green);
}

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

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

.page-cockfighting__faq-answer {
    padding: 0 20px 20px 20px;
    color: var(--page-cockfighting-text-secondary);
    font-size: 0.95em;
    line-height: 1.5;
}

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

.page-cockfighting__faq-link {
    color: var(--page-cockfighting-gold);
    text-decoration: underline;
}

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

/* Call to Action Bottom */
.page-cockfighting__cta-bottom {
    background-color: var(--page-cockfighting-deep-green);
    color: var(--page-cockfighting-text-main);
    padding: 80px 20px;
}

/* Highlight keyword for better readability/SEO */
.highlight-keyword {
    color: var(--page-cockfighting-gold);
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-content {
        margin-top: -80px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section,
    .page-cockfighting__about-section,
    .page-cockfighting__benefits-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__strategy-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-bottom {
        padding: 40px 0;
    }

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

    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }

    .page-cockfighting__subtitle {
        font-size: 1em;
    }

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

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-small,
    .page-cockfighting__faq-link {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        min-width: unset !important; /* Allow buttons to shrink on mobile if needed, but still full width */
    }

    .page-cockfighting__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.5em, 5vw, 2em);
    }

    .page-cockfighting__text-block {
        font-size: 0.95em;
    }

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

    .page-cockfighting__card-title,
    .page-cockfighting__list-title {
        font-size: 1.2em;
    }

    .page-cockfighting__card-text,
    .page-cockfighting__list-text {
        font-size: 0.9em;
    }

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

    .page-cockfighting__faq-answer {
        padding: 0 15px 15px 15px;
    }

    /* Mobile image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce min size even on mobile */
        min-height: 200px !important; /* Enforce min size even on mobile */
    }

    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-image-wrapper,
    .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; /* Prevent content overflow */
    }
    
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-content {
        margin-top: -40px;
    }
    .page-cockfighting__cta-buttons {
        gap: 10px;
    }
}