/* style/ban-ca.css */

:root {
    --primary-color: #C91F17;
    --secondary-color: #E53935;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    --card-bg: #D32F2F;
    --background-dark: #B71C1C;
    --text-main: #FFF5E1;
    --border-gold: #F2B544;
    --glow-color: #FFCC66;
    --gold-color: #F4D34D;
    --deep-red: #7A0E0E;
    --text-light-contrast: #333333;
    --text-dark-contrast: #ffffff;
}

.page-ban-ca {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light-contrast); /* Default for light bg, will be overridden by section-specific */
}

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

/* Text Colors based on section background */
.page-ban-ca__light-bg {
    background-color: #ffffff; /* Assuming shared body is light, or this section is explicitly light */
    color: var(--text-light-contrast);
}

.page-ban-ca__dark-bg {
    background-color: var(--background-dark);
    color: var(--text-dark-contrast);
}

.page-ban-ca__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: inherit; /* Inherit from parent section bg */
    line-height: 1.2;
}

.page-ban-ca__text-block {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
    color: inherit;
}

.page-ban-ca__main-title {
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-dark-contrast);
    max-width: 800px;
    margin: 0 auto 20px auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca__btn-play,
.page-ban-ca__btn-guide,
.page-ban-ca__btn-promo {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05em;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-ban-ca__btn-primary {
    background: var(--button-gradient);
    color: var(--text-light-contrast);
    border: 2px solid var(--border-gold);
    box-shadow: 0 4px 15px rgba(244, 211, 77, 0.4);
}

.page-ban-ca__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(244, 211, 77, 0.6);
}

.page-ban-ca__btn-secondary {
    background: var(--deep-red);
    color: var(--text-dark-contrast);
    border: 2px solid var(--border-gold);
    margin-left: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__btn-secondary:hover {
    transform: translateY(-3px);
    background-color: var(--primary-color);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-ban-ca__hero-cta-buttons,
.page-ban-ca__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Hero Section */
.page-ban-ca__hero-section {
    padding-top: 10px; /* body handles --header-offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.page-ban-ca__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    margin-bottom: 40px;
}

.page-ban-ca__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-ban-ca__hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

/* About Section */
.page-ban-ca__about-section {
    padding: 80px 0;
    text-align: center;
}

.page-ban-ca__about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-ban-ca__feature-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: var(--text-dark-contrast);
    border: 1px solid var(--border-gold);
    overflow: hidden;
}

.page-ban-ca__feature-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-ban-ca__feature-title {
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--gold-color);
}

.page-ban-ca__feature-description {
    font-size: 1em;
    line-height: 1.5;
}

/* Games Showcase Section */
.page-ban-ca__games-showcase {
    padding: 80px 0;
    text-align: center;
}

.page-ban-ca__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-ban-ca__game-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: var(--text-dark-contrast);
    border: 1px solid var(--border-gold);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-ban-ca__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-ban-ca__game-title {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gold-color);
}

.page-ban-ca__game-description {
    font-size: 0.95em;
    line-height: 1.4;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-ban-ca__btn-play {
    background: var(--button-gradient);
    color: var(--text-light-contrast);
    border: 2px solid var(--border-gold);
    box-shadow: 0 2px 10px rgba(244, 211, 77, 0.4);
    margin-top: 15px;
}

.page-ban-ca__btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 211, 77, 0.6);
}

.page-ban-ca__game-trial-frame {
    border: none;
    border-radius: 8px;
    margin-top: 20px;
}

/* How to Play Section */
.page-ban-ca__how-to-play {
    padding: 80px 0;
    text-align: center;
}

.page-ban-ca__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.page-ban-ca__guide-item {
    display: flex;
    align-items: center;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: var(--text-dark-contrast);
    border: 1px solid var(--border-gold);
    padding: 30px;
    text-align: left;
    overflow: hidden;
}

.page-ban-ca__guide-image {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 25px;
    flex-shrink: 0;
}

.page-ban-ca__guide-content {
    flex-grow: 1;
}

.page-ban-ca__guide-title {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gold-color);
}

.page-ban-ca__guide-description {
    font-size: 0.95em;
    line-height: 1.4;
    margin-bottom: 15px;
}

.page-ban-ca__btn-guide {
    background: var(--deep-red);
    color: var(--text-dark-contrast);
    border: 1px solid var(--border-gold);
    padding: 8px 20px;
    font-size: 0.9em;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__btn-guide:hover {
    background-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Tips Section */
.page-ban-ca__tips-section {
    padding: 80px 0;
    text-align: center;
}

.page-ban-ca__tips-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
}

.page-ban-ca__tips-list {
    flex: 1;
    text-align: left;
}

.page-ban-ca__tip-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-gold);
}

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

.page-ban-ca__tip-description {
    font-size: 0.95em;
    line-height: 1.4;
    color: var(--text-dark-contrast);
}

.page-ban-ca__tips-image {
    flex: 1;
    max-width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Promotions Section */
.page-ban-ca__promotions-section {
    padding: 80px 0;
    text-align: center;
}

.page-ban-ca__promotion-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-ban-ca__promotion-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: var(--text-dark-contrast);
    border: 1px solid var(--border-gold);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-ban-ca__promotion-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-ban-ca__promotion-title {
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gold-color);
}

.page-ban-ca__promotion-description {
    font-size: 0.95em;
    line-height: 1.4;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-ban-ca__btn-promo {
    background: var(--deep-red);
    color: var(--text-dark-contrast);
    border: 1px solid var(--border-gold);
    padding: 10px 25px;
    font-size: 0.95em;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__btn-promo:hover {
    background-color: var(--primary-color);
    transform: translateY(-1px);
}

.page-ban-ca__view-all-promos {
    margin-top: 50px;
    text-align: center;
}

/* FAQ Section */
.page-ban-ca__faq-section {
    padding: 80px 0;
    text-align: center;
}

.page-ban-ca__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
    text-align: left;
}

.page-ban-ca__faq-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-gold);
    color: var(--text-dark-contrast);
    overflow: hidden;
}

.page-ban-ca__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3em;
    font-weight: 600;
    color: var(--gold-color);
    position: relative;
}

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

.page-ban-ca__faq-qtext {
    flex-grow: 1;
    padding-right: 15px;
}

.page-ban-ca__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--gold-color);
}

.page-ban-ca__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-dark-contrast);
}

/* Final CTA Section */
.page-ban-ca__cta-final {
    padding: 80px 0;
    text-align: center;
}

/* General image responsiveness */
.page-ban-ca img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .page-ban-ca__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-ban-ca__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

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

    .page-ban-ca__hero-description {
        font-size: 1em;
    }

    .page-ban-ca__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 20px;
    }

    .page-ban-ca__hero-image {
        object-fit: contain !important; /* Important for mobile hero image */
        aspect-ratio: unset !important;
        max-height: none !important;
    }

    .page-ban-ca__hero-cta-buttons,
    .page-ban-ca__cta-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-ban-ca__btn-primary,
    .page-ban-ca__btn-secondary,
    .page-ban-ca__btn-play,
    .page-ban-ca__btn-guide,
    .page-ban-ca__btn-promo {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        padding: 12px 15px !important;
        font-size: 1em !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-ban-ca__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

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

    /* About Section */
    .page-ban-ca__about-section {
        padding: 50px 0;
    }

    .page-ban-ca__about-features {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-ban-ca__feature-item {
        padding: 20px;
    }

    .page-ban-ca__feature-image {
        height: 150px;
        margin-bottom: 15px;
    }

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

    /* Games Showcase Section */
    .page-ban-ca__games-showcase {
        padding: 50px 0;
    }

    .page-ban-ca__game-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-ban-ca__game-card {
        padding: 20px;
    }

    .page-ban-ca__game-image {
        height: 180px;
    }

    .page-ban-ca__game-title {
        font-size: 1.6em;
    }

    /* How to Play Section */
    .page-ban-ca__how-to-play {
        padding: 50px 0;
    }

    .page-ban-ca__guide-steps {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }

    .page-ban-ca__guide-item {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .page-ban-ca__guide-image {
        width: 100%;
        height: 180px;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .page-ban-ca__guide-title {
        font-size: 1.3em;
    }

    /* Tips Section */
    .page-ban-ca__tips-section {
        padding: 50px 0;
    }

    .page-ban-ca__tips-content {
        flex-direction: column;
        margin-top: 30px;
        gap: 30px;
    }

    .page-ban-ca__tips-image {
        max-width: 100%;
        height: auto;
    }

    .page-ban-ca__tip-item {
        padding: 15px;
        margin-bottom: 15px;
    }

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

    /* Promotions Section */
    .page-ban-ca__promotions-section {
        padding: 50px 0;
    }

    .page-ban-ca__promotion-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-ban-ca__promotion-card {
        padding: 20px;
    }

    .page-ban-ca__promotion-image {
        height: 160px;
    }

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

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

    .page-ban-ca__faq-list {
        margin-top: 30px;
    }

    .page-ban-ca__faq-item summary {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-ban-ca__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95em;
    }

    /* Final CTA Section */
    .page-ban-ca__cta-final {
        padding: 50px 0;
    }

    /* Ensure all images and containers are responsive */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-ban-ca__section,
    .page-ban-ca__card,
    .page-ban-ca__container,
    .page-ban-ca__hero-section,
    .page-ban-ca__about-section,
    .page-ban-ca__games-showcase,
    .page-ban-ca__how-to-play,
    .page-ban-ca__tips-section,
    .page-ban-ca__promotions-section,
    .page-ban-ca__faq-section,
    .page-ban-ca__cta-final {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Desktop specific H1 font size */
@media (min-width: 769px) {
    .page-ban-ca__main-title {
        font-size: 3.5em; /* Larger on desktop */
    }
}