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

.page-cockfighting {
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--color-bg-dark);
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Match container width for consistency */
    margin-bottom: 30px; /* Space between image and text */
}

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

.page-cockfighting__hero-content {
    max-width: 900px;
    z-index: 1; /* Ensure text is above any potential background layers */
}

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

.page-cockfighting__hero-description {
    font-size: 1.2em;
    color: var(--color-text-main);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    min-width: 150px;
}

.page-cockfighting__btn-primary {
    background: var(--btn-gradient);
    color: var(--color-text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

.page-cockfighting__btn-primary--large {
    padding: 18px 40px;
    font-size: 1.1em;
    min-width: 250px;
}

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

.page-cockfighting__btn-secondary:hover {
    background-color: var(--color-glow);
    color: var(--color-bg-dark);
    transform: translateY(-3px);
}

.page-cockfighting__btn-link {
    background-color: transparent;
    color: var(--color-glow);
    border: 1px solid var(--color-glow);
    padding: 8px 15px;
    font-size: 0.9em;
    min-width: unset;
}

.page-cockfighting__btn-link:hover {
    background-color: var(--color-glow);
    color: var(--color-bg-dark);
}

/* General Section Styles */
.page-cockfighting__intro-section,
.page-cockfighting__game-types-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__promotions-section,
.page-cockfighting__benefits-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-bottom-section {
    padding: 80px 0;
    background-color: var(--color-bg-dark);
    border-top: 1px solid var(--color-divider);
}

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

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

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

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

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

.page-cockfighting__card-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
    min-height: 200px; /* Min size for all images */
    object-fit: cover;
}

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

.page-cockfighting__card-description {
    font-size: 1em;
    color: var(--color-text-secondary);
}

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

.page-cockfighting__step-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-cockfighting__step-icon {
    width: 60px;
    height: 60px;
    background: var(--btn-gradient);
    color: var(--color-text-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(42, 209, 111, 0.5);
}

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

.page-cockfighting__step-description {
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Push button to bottom */
}

.page-cockfighting__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    min-height: 200px; /* Min size for all images */
    object-fit: cover;
}

.page-cockfighting__image-centered {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    min-height: 200px; /* Min size for all images */
    object-fit: cover;
}

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

.page-cockfighting__benefit-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.page-cockfighting__benefit-title {
    font-size: 1.4em;
    color: var(--color-gold);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-cockfighting__benefit-description {
    color: var(--color-text-secondary);
    margin-bottom: 15px;
    flex-grow: 1;
}

/* 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);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.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;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--color-text-main);
    cursor: pointer;
    background-color: var(--color-deep-green);
    border-bottom: 1px solid var(--color-divider);
    transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-qtext {
    flex-grow: 1;
    color: var(--color-text-main);
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--color-gold);
    margin-left: 15px;
    line-height: 1;
}

.page-cockfighting__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--color-text-secondary);
    line-height: 1.5;
    background-color: var(--color-card-bg);
    border-top: 1px solid var(--color-divider);
}

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

/* Bottom CTA Section */
.page-cockfighting__cta-bottom-section {
    text-align: center;
    padding-bottom: 100px;
}

.page-cockfighting__cta-buttons--single {
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__hero-description {
        font-size: 1.1em;
    }
    .page-cockfighting__grid,
    .page-cockfighting__steps-grid,
    .page-cockfighting__benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }
    .page-cockfighting__intro-section,
    .page-cockfighting__game-types-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__benefits-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-bottom-section {
        padding: 60px 0;
    }
    .page-cockfighting__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-link {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__btn-primary--large {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Images responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-height: 200px !important; /* Ensure minimum size */
    }

    /* Video responsiveness (if any, though not explicitly in current HTML) */
    .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; /* Small top padding for video section */
    }
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-cockfighting__grid,
    .page-cockfighting__steps-grid,
    .page-cockfighting__benefits-grid {
        grid-template-columns: 1fr; /* Single column layout */
    }

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

/* Ensure content images are not too small */
.page-cockfighting__card-image,
.page-cockfighting__image-full-width,
.page-cockfighting__image-centered {
    min-width: 200px;
    min-height: 200px;
}