/* 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-color: #FFF5E1;
    --border-color: #F2B544;
    --glow-color: #FFCC66;
    --gold-color: #F4D34D;
    --deep-red-color: #7A0E0E;
}

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

.page-ban-ca__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

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

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

.page-ban-ca__section-title {
    font-size: 2.8em;
    color: var(--text-main-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.page-ban-ca__section-subtitle {
    font-size: 1.2em;
    color: rgba(255, 245, 225, 0.8);
    text-align: center;
    margin-bottom: 40px;
}

.page-ban-ca__card {
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    color: var(--text-main-color);
}

.page-ban-ca__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow-color);
}

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

.page-ban-ca__btn-primary {
    background: var(--button-gradient);
    color: var(--deep-red-color);
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.page-ban-ca__btn-secondary {
    background: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__btn-secondary:hover {
    background: rgba(244, 211, 77, 0.1);
    color: var(--glow-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.page-ban-ca__hero-section {
    padding-top: 10px; /* Assuming body handles shared-header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    min-height: 600px;
    background-color: var(--deep-red-color);
}

.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; /* Cover for desktop, will change to contain for mobile */
}

.page-ban-ca__hero-content {
    position: relative;
    padding: 40px 20px;
    max-width: 900px;
    z-index: 1;
    background-color: rgba(122, 14, 14, 0.8);
    border-radius: 15px;
    margin-top: -100px; /* Overlap slightly with image for visual effect */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border-color);
}

.page-ban-ca__hero-title {
    font-size: 3.5em;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

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

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

/* Introduction Section */
.page-ban-ca__introduction-section {
    background-color: var(--background-dark);
    padding-bottom: 80px;
}

.page-ban-ca__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-ban-ca__text-block {
    flex: 2;
    text-align: left;
}

.page-ban-ca__text-block p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--text-main-color);
}

.page-ban-ca__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
}

.page-ban-ca__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    display: block;
}

/* Games Section */
.page-ban-ca__games-section {
    background-color: var(--deep-red-color);
    padding-top: 80px;
}

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

.page-ban-ca__game-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-ban-ca__game-thumbnail-wrapper {
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    position: relative;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.page-ban-ca__game-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

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

.page-ban-ca__game-description {
    font-size: 0.95em;
    color: rgba(255, 245, 225, 0.85);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-ban-ca__game-play-button {
    margin-top: auto;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.page-ban-ca__game-trial-frame {
    width: 100%;
    height: 400px; /* Default height for trial frame */
    border: none;
    border-radius: 10px;
    margin-top: 20px;
    background-color: rgba(0,0,0,0.3);
}

/* How to Play Section */
.page-ban-ca__how-to-play-section {
    background-color: var(--background-dark);
    padding-bottom: 80px;
}

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

.page-ban-ca__step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
}

.page-ban-ca__step-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: block;
}

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

.page-ban-ca__step-description {
    font-size: 1em;
    color: rgba(255, 245, 225, 0.9);
    margin-bottom: 20px;
}

.page-ban-ca__tips {
    background-color: var(--deep-red-color);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-color);
}

.page-ban-ca__tips-title {
    font-size: 2em;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 25px;
    font-weight: bold;
}

.page-ban-ca__tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.page-ban-ca__tips-list li {
    font-size: 1.1em;
    color: var(--text-main-color);
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.page-ban-ca__tips-list li::before {
    content: '•';
    color: var(--gold-color);
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: -5px;
}

/* Promotions Section */
.page-ban-ca__promotions-section {
    background-color: var(--deep-red-color);
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-ban-ca__promo-card {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-ban-ca__promo-image {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    display: block;
}

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

.page-ban-ca__promo-description {
    font-size: 0.95em;
    color: rgba(255, 245, 225, 0.85);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-ban-ca__view-all-promos {
    text-align: center;
}

/* Benefits Section */
.page-ban-ca__benefits-section {
    background-color: var(--background-dark);
    padding-bottom: 80px;
}

.page-ban-ca__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-ban-ca__benefit-item {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-ban-ca__benefit-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-color);
    display: block;
}

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

.page-ban-ca__benefit-description {
    font-size: 1em;
    color: rgba(255, 245, 225, 0.9);
}

/* FAQ Section */
.page-ban-ca__faq-section {
    background-color: var(--deep-red-color);
    padding-top: 80px;
    padding-bottom: 80px;
}

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

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

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    color: var(--gold-color);
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(122, 14, 14, 0.7);
    border-bottom: 1px solid rgba(242, 181, 68, 0.3);
    list-style: none; /* For details/summary */
}

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

.page-ban-ca__faq-question .page-ban-ca__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-ban-ca__faq-toggle {
    font-size: 1.5em;
    margin-left: 20px;
    width: 20px;
    text-align: center;
    line-height: 1;
}

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

.page-ban-ca__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--text-main-color);
    text-align: left;
    line-height: 1.7;
    background-color: var(--card-bg);
}

.page-ban-ca__faq-answer p {
    margin: 0;
}

/* General image styling to prevent small icons and ensure responsiveness */
.page-ban-ca img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain; /* Default for general images */
}

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

    .page-ban-ca__section-title {
        font-size: 2.2em;
    }

    .page-ban-ca__hero-title {
        font-size: 2.8em;
    }

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

    .page-ban-ca__content-wrapper {
        flex-direction: column;
    }

    .page-ban-ca__text-block, .page-ban-ca__image-block {
        flex: none;
        width: 100%;
    }

    .page-ban-ca__image {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .page-ban-ca__section {
        padding: 40px 0;
    }

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

    .page-ban-ca__section-subtitle {
        font-size: 1em;
        margin-bottom: 25px;
    }

    /* Hero Section - Mobile */
    .page-ban-ca__hero-section {
        padding-top: 10px !important;
        min-height: auto;
    }

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

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

    .page-ban-ca__hero-content {
        margin-top: -50px;
        padding: 25px 15px;
    }

    .page-ban-ca__hero-title {
        font-size: 2em !important;
        margin-bottom: 15px;
    }

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

    .page-ban-ca__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .page-ban-ca__btn-primary,
    .page-ban-ca__btn-secondary,
    .page-ban-ca a[class*="button"],
    .page-ban-ca a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }

    /* Buttons container mobile adaptation */
    .page-ban-ca__hero-cta-buttons,
    .page-ban-ca__game-card .page-ban-ca__game-play-button,
    .page-ban-ca__promo-card .page-ban-ca__btn-primary,
    .page-ban-ca__view-all-promos .page-ban-ca__btn-secondary,
    .page-ban-ca__step-card .page-ban-ca__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    /* Introduction Section - Mobile */
    .page-ban-ca__content-wrapper {
        gap: 20px;
    }

    .page-ban-ca__text-block p {
        font-size: 1em;
    }

    .page-ban-ca__image-block {
        padding: 0 15px;
    }

    /* Games Section - Mobile */
    .page-ban-ca__game-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-ban-ca__game-thumbnail-wrapper {
        padding-top: 60%; /* Adjust aspect ratio for mobile game cards */
    }

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

    .page-ban-ca__game-description {
        font-size: 0.9em;
    }

    .page-ban-ca__game-trial-frame {
        height: 300px;
    }

    /* How to Play Section - Mobile */
    .page-ban-ca__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-ban-ca__step-card {
        padding: 25px 15px;
    }

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

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

    .page-ban-ca__tips {
        padding: 30px 20px;
    }

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

    .page-ban-ca__tips-list li {
        font-size: 1em;
        padding-left: 25px;
    }

    /* Promotions Section - Mobile */
    .page-ban-ca__promotion-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

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

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

    /* Benefits Section - Mobile */
    .page-ban-ca__benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-ban-ca__benefit-item {
        padding: 25px 15px;
    }

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

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

    /* FAQ Section - Mobile */
    .page-ban-ca__faq-item {
        margin-bottom: 10px;
    }

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

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

    /* Ensure all content containers are constrained */
    .page-ban-ca__section,
    .page-ban-ca__card,
    .page-ban-ca__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* All images must be responsive */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .page-ban-ca__hero-title {
        font-size: 1.8em !important;
    }
    .page-ban-ca__section-title {
        font-size: 1.5em !important;
    }
}