/* style/ban-ca.css */
.page-ban-ca {
    font-family: Arial, sans-serif;
    color: #FFF6D6; /* Main text color for dark background */
    background-color: #0A0A0A; /* Body background */
    line-height: 1.6;
}

.page-ban-ca__section {
    padding: 40px 0;
    position: relative;
}

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

.page-ban-ca__section-title {
    font-size: 2.5em;
    color: #FFD36B; /* Auxiliary color for titles */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 1px;
}

.page-ban-ca__text-block {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

.page-ban-ca__hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 900px;
}

.page-ban-ca__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em);
    color: #FFD36B;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 1px;
}

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

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

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

.page-ban-ca__btn--primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #FFF6D6;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

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

.page-ban-ca__btn--secondary {
    background: #111111;
    color: #F2C14E;
    border: 2px solid #F2C14E;
    box-shadow: 0 4px 10px rgba(242, 193, 78, 0.2);
}

.page-ban-ca__btn--secondary:hover {
    transform: translateY(-3px);
    background: #F2C14E;
    color: #111111;
    box-shadow: 0 6px 15px rgba(242, 193, 78, 0.4);
}

/* Feature Grid */
.page-ban-ca__feature-grid,
.page-ban-ca__game-list,
.page-ban-ca__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-ban-ca__card {
    background: #111111;
    border: 1px solid #3A2A12;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 350px;
}

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

.page-ban-ca__feature-image,
.page-ban-ca__game-image,
.page-ban-ca__promo-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    object-fit: cover;
    min-height: 200px;
    min-width: 200px;
}

.page-ban-ca__card-title {
    font-size: 1.5em;
    color: #FFF6D6;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-ban-ca__card-description {
    font-size: 0.95em;
    color: #FFF6D6;
    flex-grow: 1;
}

/* Guide Section & Strategy Section */
.page-ban-ca__guide-list,
.page-ban-ca__strategy-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: left;
}

.page-ban-ca__guide-item,
.page-ban-ca__strategy-item {
    background: #111111;
    border: 1px solid #3A2A12;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__guide-title,
.page-ban-ca__strategy-title {
    font-size: 1.4em;
    color: #F2C14E;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-ban-ca__guide-description,
.page-ban-ca__strategy-description {
    font-size: 1em;
    color: #FFF6D6;
}

.page-ban-ca__text-link {
    color: #FFD36B;
    text-decoration: none;
    font-weight: bold;
}

.page-ban-ca__text-link:hover {
    text-decoration: underline;
}

.page-ban-ca__image-figure {
    margin: 30px auto;
    max-width: 680px;
    text-align: center;
    background: #111111;
    border: 1px solid #3A2A12;
    border-radius: 8px;
    padding: 15px;
    box-sizing: border-box;
}

.page-ban-ca__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
    min-width: 200px;
    min-height: 200px;
}

.page-ban-ca__figcaption {
    font-size: 0.9em;
    color: #FFF6D6;
    margin-top: 10px;
}

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

.page-ban-ca__benefit-item {
    background: #111111;
    border: 1px solid #3A2A12;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-ban-ca__benefit-item:hover {
    transform: translateY(-3px);
}

.page-ban-ca__benefit-title {
    font-size: 1.3em;
    color: #FFD36B;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-ban-ca__benefit-description {
    font-size: 0.95em;
    color: #FFF6D6;
}

/* FAQ Section */
.page-ban-ca__faq-list {
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-ban-ca__faq-item {
    background: #111111;
    border: 1px solid #3A2A12;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    color: #F2C14E;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

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

.page-ban-ca__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
    transform: rotate(45deg);
}

.page-ban-ca__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #FFF6D6;
    line-height: 1.6;
}

/* Responsive Styles */
/* Tablet & Mobile */
@media (max-width: 1024px) {
    .page-ban-ca__section-title {
        font-size: 2em;
    }

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

    .page-ban-ca__btn {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-ban-ca__feature-grid,
    .page-ban-ca__game-list,
    .page-ban-ca__promo-grid,
    .page-ban-ca__benefit-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }

    .page-ban-ca__card {
        padding: 20px;
        min-height: unset;
    }

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

    .page-ban-ca__guide-item,
    .page-ban-ca__strategy-item {
        padding: 20px;
    }

    .page-ban-ca__guide-title,
    .page-ban-ca__strategy-title {
        font-size: 1.2em;
    }

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

/* Mobile */
@media (max-width: 768px) {
    /* 1. Top Section (title + CTA) */
    .page-ban-ca__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

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

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

    .page-ban-ca__main-title {
        font-size: 2em; /* Smaller H1 for mobile */
        max-width: 100%;
        padding: 0 5px;
    }

    .page-ban-ca__hero-description {
        font-size: 1em;
        padding: 0 10px;
    }

    /* 4. Buttons and Button Containers */
    .page-ban-ca__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-ban-ca__btn {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* 2. Single Column Long Text Container */
    .page-ban-ca__section {
        padding: 30px 0;
    }

    .page-ban-ca__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-ban-ca__text-block {
        font-size: 0.95em;
        text-align: left;
        padding: 0 5px;
    }

    .page-ban-ca__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    /* 3. General Images and Figure */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-ban-ca__image-figure {
        max-width: 100%;
        padding: 10px;
    }

    .page-ban-ca__figcaption {
        font-size: 0.85em;
    }

    .page-ban-ca__feature-grid,
    .page-ban-ca__game-list,
    .page-ban-ca__promo-grid,
    .page-ban-ca__benefit-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .page-ban-ca__card {
        padding: 15px;
    }

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

    .page-ban-ca__guide-item,
    .page-ban-ca__strategy-item {
        padding: 15px;
        text-align: left;
    }

    .page-ban-ca__guide-title,
    .page-ban-ca__strategy-title {
        font-size: 1.1em;
    }

    /* 5. Registration Tutorial and FAQ Block */
    .page-ban-ca__faq-question {
        font-size: 0.95em;
        padding: 12px 15px;
    }

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