/* style/ban-ca.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --button-register-bg: #C30808;
    --button-login-bg: #C30808;
    --button-font-color: #FFFF00;
    --body-bg: #FFFFFF;
    --border-color: #e0e0e0;
}

.page-ban-ca {
    font-family: Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--body-bg); /* Assuming body background is light based on default */
    line-height: 1.6;
}

.page-ban-ca__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.page-ban-ca__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Ensure image is above text */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding as shared.css handles body padding-top */
    padding-bottom: 40px;
    background-color: var(--primary-color);
    overflow: hidden;
}

.page-ban-ca__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-ban-ca__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensures image covers area, might crop sides */
}

.page-ban-ca__hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    color: var(--text-light);
    max-width: 900px;
    margin-top: 20px; /* Space between image and content */
}

.page-ban-ca__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--button-font-color); /* Yellow for highlight */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-ban-ca__hero-description {
    font-size: 1.25rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

.page-ban-ca__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* General Section Styles */
.page-ban-ca__section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-ban-ca__section-description {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-dark);
}

.page-ban-ca__intro-section,
.page-ban-ca__game-list-section,
.page-ban-ca__how-to-play-section,
.page-ban-ca__promotions-section,
.page-ban-ca__faq-section,
.page-ban-ca__cta-bottom-section {
    padding: 60px 0;
    background-color: var(--body-bg);
}

.page-ban-ca__dark-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-ban-ca__dark-section .page-ban-ca__section-title {
    color: var(--button-font-color);
}

.page-ban-ca__dark-section .page-ban-ca__section-description {
    color: var(--text-light);
}

/* Buttons */
.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca__btn-play,
.page-ban-ca__btn-promo,
.page-ban-ca__btn-step,
.page-ban-ca__faq-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box;
    max-width: 100%;
}

.page-ban-ca__btn-primary {
    background-color: var(--button-register-bg);
    color: var(--button-font-color);
    border: 2px solid var(--button-register-bg);
}

.page-ban-ca__btn-primary:hover {
    background-color: darken(var(--button-register-bg), 10%);
    border-color: darken(var(--button-register-bg), 10%);
}

.page-ban-ca__btn-secondary {
    background-color: transparent;
    color: var(--button-font-color);
    border: 2px solid var(--button-font-color);
}

.page-ban-ca__btn-secondary:hover {
    background-color: var(--button-font-color);
    color: var(--primary-color);
}

.page-ban-ca__btn-play,
.page-ban-ca__btn-step {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
    font-size: 1rem;
    padding: 10px 20px;
}

.page-ban-ca__btn-play:hover,
.page-ban-ca__btn-step:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

.page-ban-ca__btn-promo {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
    font-size: 0.9rem;
    padding: 8px 15px;
}

.page-ban-ca__btn-promo:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

.page-ban-ca__faq-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: normal;
    padding: 0;
    border: none;
}

.page-ban-ca__faq-link:hover {
    color: darken(var(--primary-color), 10%);
    background-color: transparent;
}

/* Intro Section - Features Grid */
.page-ban-ca__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-ban-ca__feature-item {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-ban-ca__feature-item:hover {
    transform: translateY(-5px);
}

.page-ban-ca__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-ban-ca__feature-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-ban-ca__feature-text {
    font-size: 1rem;
    color: var(--text-dark);
}

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

.page-ban-ca__game-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-ban-ca__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-ban-ca__game-title {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 20px 15px 10px;
}

.page-ban-ca__game-text {
    font-size: 1rem;
    color: var(--text-dark);
    padding: 0 15px 20px;
    flex-grow: 1;
}

.page-ban-ca__btn-play {
    margin: 0 15px 20px;
    width: calc(100% - 30px);
}

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

.page-ban-ca__step-item {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-ban-ca__step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-ban-ca__step-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-ban-ca__step-text {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-ban-ca__btn-step {
    width: auto;
}

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

.page-ban-ca__promo-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-ban-ca__promo-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-ban-ca__promo-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 20px 15px 10px;
}

.page-ban-ca__promo-text {
    font-size: 1rem;
    color: var(--text-dark);
    padding: 0 15px 20px;
    flex-grow: 1;
}

.page-ban-ca__btn-promo {
    margin: 0 15px 20px;
    width: calc(100% - 30px);
}

.page-ban-ca__all-promo-cta {
    text-align: center;
    margin-top: 40px;
}

/* Benefits Section - Benefits List */
.page-ban-ca__benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    list-style: none;
    padding: 0;
}

.page-ban-ca__benefit-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.page-ban-ca__benefit-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-ban-ca__benefit-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-ban-ca__benefit-title {
    font-size: 1.5rem;
    color: var(--button-font-color);
    margin-bottom: 10px;
}

.page-ban-ca__benefit-text {
    font-size: 1rem;
    color: var(--text-light);
}

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

.page-ban-ca__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-ban-ca__faq-item summary {
    list-style: none;
}

.page-ban-ca__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid var(--border-color);
}

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

.page-ban-ca__faq-qtext {
    flex-grow: 1;
}

.page-ban-ca__faq-toggle {
    font-size: 1.5rem;
    margin-left: 15px;
    color: var(--primary-color);
}

.page-ban-ca__faq-answer {
    padding: 0 20px 20px;
    font-size: 1rem;
    color: var(--text-dark);
}

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

.page-ban-ca__faq-answer a {
    margin-top: 10px;
    display: inline-block;
}

/* CTA Bottom Section */
.page-ban-ca__cta-bottom-section {
    background-color: #f0f0f0;
    text-align: center;
}

.page-ban-ca__cta-bottom-section .page-ban-ca__section-title {
    color: var(--primary-color);
}

.page-ban-ca__cta-bottom-section .page-ban-ca__section-description {
    color: var(--text-dark);
}

.page-ban-ca__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-ban-ca__container {
        padding: 15px;
    }

    .page-ban-ca__hero-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

    .page-ban-ca__hero-description {
        font-size: 1.1rem;
    }

    .page-ban-ca__section-title {
        font-size: 2rem;
    }

    .page-ban-ca__game-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .page-ban-ca__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-ban-ca__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Hero Section */
    .page-ban-ca__hero-section {
        flex-direction: column;
        padding-top: 10px !important;
        padding-bottom: 30px;
    }

    .page-ban-ca__hero-image-wrapper {
        max-height: none;
    }

    .page-ban-ca__hero-image {
        object-fit: contain !important; /* Mobile hero image: contain, not cover */
        aspect-ratio: unset !important;
        max-height: none !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-ban-ca__hero-content {
        margin-top: 20px;
        padding: 0 15px;
    }

    .page-ban-ca__hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 10px;
    }

    .page-ban-ca__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-ban-ca__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }

    /* General Section Styles */
    .page-ban-ca__intro-section,
    .page-ban-ca__game-list-section,
    .page-ban-ca__how-to-play-section,
    .page-ban-ca__promotions-section,
    .page-ban-ca__faq-section,
    .page-ban-ca__cta-bottom-section {
        padding: 40px 0;
    }

    .page-ban-ca__section-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
        padding: 0 15px;
    }

    .page-ban-ca__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    /* Buttons */
    .page-ban-ca__btn-primary,
    .page-ban-ca__btn-secondary,
    .page-ban-ca__btn-play,
    .page-ban-ca__btn-promo,
    .page-ban-ca__btn-step,
    .page-ban-ca__faq-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px !important;
        font-size: 1rem !important;
    }

    .page-ban-ca__all-promo-cta a {
        margin: 0 15px;
    }

    .page-ban-ca__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    /* Intro Section - Features Grid */
    .page-ban-ca__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .page-ban-ca__feature-icon {
        width: 80px;
        height: 80px;
    }

    /* Game List Section - Game Grid */
    .page-ban-ca__game-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
        overflow-x: hidden;
    }

    .page-ban-ca__game-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-ban-ca__game-image {
        height: 180px; /* Adjust height for mobile */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        object-fit: cover !important;
    }

    /* How to Play Section - Steps Grid */
    .page-ban-ca__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    /* Promotions Section - Promo Grid */
    .page-ban-ca__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .page-ban-ca__promo-image {
        width: 100% !important;
        max-width: 100% !important;
        height: 180px !important;
        object-fit: cover !important;
    }

    /* Benefits Section - Benefits List */
    .page-ban-ca__benefits-list {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .page-ban-ca__benefit-icon {
        width: 80px;
        height: 80px;
    }

    /* FAQ Section */
    .page-ban-ca__faq-list {
        padding: 0 15px;
    }

    .page-ban-ca__faq-question {
        font-size: 1.1rem;
        padding: 15px;
    }

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

    /* All images responsive */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    .page-ban-ca__section,
    .page-ban-ca__card,
    .page-ban-ca__container,
    .page-ban-ca__game-card,
    .page-ban-ca__promo-card,
    .page-ban-ca__feature-item,
    .page-ban-ca__step-item,
    .page-ban-ca__benefit-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }

    /* Text adjustments for readability */
    .page-ban-ca {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-ban-ca__card {
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
}