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

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

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

/* General Section Styling */
.page-cockfighting__hero-section,
.page-cockfighting__about-section,
.page-cockfighting__gameplay-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__promotions-section,
.page-cockfighting__mobile-section,
.page-cockfighting__faq-section {
    padding: 60px 0;
}

.page-cockfighting__dark-section {
    background-color: var(--jbo-deep-green);
}

.page-cockfighting__section-title {
    font-size: 2.8em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--jbo-text-main);
    line-height: 1.2;
}

.page-cockfighting__text-block {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--jbo-text-secondary);
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 12px 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;
    word-wrap: break-word;
    max-width: 100%;
}

.page-cockfighting__btn-primary {
    background: var(--jbo-button-gradient);
    color: var(--jbo-text-main);
    border: none;
}

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

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

.page-cockfighting__btn-secondary:hover {
    background: var(--jbo-primary);
    color: var(--jbo-text-main);
}

.page-cockfighting__btn-center {
    display: block;
    margin: 40px auto 0 auto;
    width: fit-content;
}

.page-cockfighting__btn-small {
    padding: 8px 20px;
    font-size: 0.9em;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px;
    min-height: 600px;
    overflow: hidden;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    position: relative; /* Changed from absolute to relative to ensure image-above-text */
    z-index: 1;
    max-height: 70vh; /* Limit height for better layout */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -80px; /* Pull content up slightly, but not over image */
    background: var(--jbo-bg-dark);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__main-title {
    font-weight: bold;
    color: var(--jbo-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
    font-size: clamp(2.2em, 4vw, 3.5em);
}

.page-cockfighting__subtitle {
    font-size: 1.2em;
    color: var(--jbo-text-secondary);
    margin-bottom: 40px;
}

.page-cockfighting__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

.page-cockfighting__feature-item {
    background-color: var(--jbo-card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--jbo-border);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__feature-title {
    font-size: 1.5em;
    color: var(--jbo-primary);
    margin-bottom: 15px;
}

.page-cockfighting__feature-description {
    color: var(--jbo-text-secondary);
}

/* Gameplay Section (Cards) */
.page-cockfighting__grid-2-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-cockfighting__card {
    background-color: var(--jbo-card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--jbo-border);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    color: var(--jbo-text-main);
}

.page-cockfighting__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-cockfighting__card-title {
    font-size: 1.4em;
    color: var(--jbo-primary);
    padding: 20px 20px 10px 20px;
}

.page-cockfighting__card-description {
    color: var(--jbo-text-secondary);
    padding: 0 20px 20px 20px;
    flex-grow: 1;
}

/* How-To-Play Section */
.page-cockfighting__step-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
}

.page-cockfighting__step-item {
    background-color: var(--jbo-card-bg);
    border: 1px solid var(--jbo-border);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__step-title {
    font-size: 1.6em;
    color: var(--jbo-gold);
    margin-bottom: 10px;
}

.page-cockfighting__step-description a {
    color: var(--jbo-primary);
    text-decoration: none;
}

.page-cockfighting__step-description a:hover {
    text-decoration: underline;
}

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

.page-cockfighting__promotion-grid .page-cockfighting__card-image {
    height: 220px;
}

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

/* Mobile Section */
.page-cockfighting__mobile-section {
    text-align: center;
}

.page-cockfighting__mobile-app-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 40px auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--jbo-primary);
    cursor: pointer;
    background-color: var(--jbo-card-bg);
    border-bottom: 1px solid var(--jbo-divider);
    transition: background-color 0.3s ease;
}

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

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

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

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

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

.page-cockfighting__faq-answer {
    padding: 0 25px 20px 25px;
    color: var(--jbo-text-secondary);
    font-size: 1em;
    line-height: 1.7;
}

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

/* Adjustments for <details> tag */
.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    border-bottom-color: transparent;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    content: '−';
}

.page-cockfighting__faq-item:not([open]) .page-cockfighting__faq-toggle {
    content: '+';
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-content {
        margin-top: -60px;
        padding: 30px 20px;
    }
    .page-cockfighting__section-title {
        font-size: 2.5em;
    }
}

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

    .page-cockfighting__hero-image {
        max-height: 50vh;
    }

    .page-cockfighting__hero-content {
        margin-top: -40px;
        padding: 25px 15px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-cockfighting__subtitle {
        font-size: 1em;
        margin-bottom: 30px;
    }

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

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

    .page-cockfighting__cta-buttons,
    .page-cockfighting__button-group,
    .page-cockfighting__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-cockfighting__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-cockfighting__text-block {
        font-size: 0.95em;
        margin-bottom: 25px;
    }

    .page-cockfighting__feature-grid,
    .page-cockfighting__grid-2-cols,
    .page-cockfighting__promotion-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__card-image {
        height: 180px;
    }

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

    .page-cockfighting__step-item {
        padding: 20px;
    }

    .page-cockfighting__step-title {
        font-size: 1.4em;
    }

    .page-cockfighting__mobile-app-image {
        max-width: 300px;
    }

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

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

    /* Image responsive overrides */
    .page-cockfighting img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__hero-section {
        padding-top: 10px !important;
    }
}