/* style/ban-ca.css */

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

.page-ban-ca {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Default text color for the page, based on dark body bg */
    background-color: var(--bg-color); /* Ensure consistency if body bg is not fully covered by shared */
    line-height: 1.6;
}

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

.page-ban-ca__section-title {
    font-size: 2.8em;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

.page-ban-ca__card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-ban-ca__dark-bg {
    background-color: var(--deep-green); /* Slightly darker for contrast sections */
    padding: 60px 0;
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca a[class*="button"],
.page-ban-ca a[class*="btn"] {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* For responsiveness */
    box-sizing: border-box; /* For responsiveness */
    white-space: normal; /* For responsiveness */
    word-wrap: break-word; /* For responsiveness */
}

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

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

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

.page-ban-ca__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

/* --- Hero Section --- */
.page-ban-ca__hero-section {
    padding-top: 10px; /* Rely on body padding-top for header offset */
    padding-bottom: 60px;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    overflow: hidden;
}

.page-ban-ca__hero-content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-ban-ca__hero-image-container {
    flex: 1;
    min-width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-ban-ca__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    object-fit: cover; /* Desktop: cover to fill space */
}

.page-ban-ca__hero-text-content {
    flex: 1;
    min-width: 40%;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-ban-ca__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Use clamp for H1 font size */
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-ban-ca__subtitle {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.page-ban-ca__cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%;
}

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

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

.page-ban-ca__feature-item {
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: 12px;
}

.page-ban-ca__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

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

.page-ban-ca__feature-item p {
    color: var(--text-secondary);
    font-size: 1em;
}

/* --- Game Showcase Section --- */
.page-ban-ca__game-showcase-section {
    padding: 80px 0;
    background-color: var(--bg-color);
    text-align: center;
}

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

.page-ban-ca__game-card {
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.page-ban-ca__game-thumbnail {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.page-ban-ca__game-description {
    color: var(--text-secondary);
    font-size: 0.95em;
    flex-grow: 1; /* Push button to bottom */
    margin-bottom: 20px;
}

.page-ban-ca__btn-play {
    margin-top: auto; /* Push button to bottom */
    background: var(--btn-gradient);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    display: block; /* Make button full width of card */
    max-width: 200px; /* Limit button width */
    margin-left: auto;
    margin-right: auto;
}

.page-ban-ca__btn-play:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.page-ban-ca__view-all-games {
    margin-top: 50px;
}

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

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

.page-ban-ca__step-item {
    position: relative;
    padding-top: 60px; /* Space for number */
}

.page-ban-ca__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    font-weight: bold;
    border: 3px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-ban-ca__step-item p {
    color: var(--text-secondary);
}

.page-ban-ca__cta-register {
    margin-top: 50px;
}

/* --- Tips Section --- */
.page-ban-ca__tips-section {
    padding: 80px 0;
    background-color: var(--bg-color);
    text-align: center;
}

.page-ban-ca__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-ban-ca__tip-item {
    text-align: left;
    padding: 25px;
}

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

.page-ban-ca__tip-item p {
    color: var(--text-secondary);
}

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

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

.page-ban-ca__promo-card {
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 12px;
}

.page-ban-ca__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.page-ban-ca__promo-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.page-ban-ca__all-promotions {
    margin-top: 50px;
}

/* --- FAQ Section --- */
.page-ban-ca__faq-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

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

.page-ban-ca__faq-item {
    margin-bottom: 20px;
    text-align: left;
    padding: 0; /* Padding moved to summary and answer */
    background-color: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

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

.page-ban-ca__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

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

.page-ban-ca__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
    transform: rotate(45deg); /* Rotate + to become X or similar */
}

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

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

.page-ban-ca__more-faq {
    margin-top: 50px;
    text-align: center;
}

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

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

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .page-ban-ca__hero-content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .page-ban-ca__hero-text-content {
        align-items: center;
        text-align: center;
    }
    .page-ban-ca__cta-buttons {
        justify-content: center;
    }
    .page-ban-ca__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-ban-ca__section-title {
        font-size: 2.2em;
    }
    .page-ban-ca__features-grid,
    .page-ban-ca__game-grid,
    .page-ban-ca__steps-grid,
    .page-ban-ca__tips-list,
    .page-ban-ca__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* General styles for mobile */
    .page-ban-ca__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-ban-ca__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-ban-ca__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-ban-ca__hero-section {
        padding-top: 10px !important; /* Ensure minimal padding-top for mobile */
        padding-bottom: 40px;
        min-height: unset;
    }
    .page-ban-ca__hero-content-wrapper {
        flex-direction: column;
        gap: 30px;
        padding: 15px;
    }
    .page-ban-ca__hero-image {
        object-fit: contain !important; /* Mobile: contain to prevent cropping */
        aspect-ratio: unset !important; /* Remove fixed aspect ratio if any */
        max-height: none !important; /* Remove max-height constraint if any */
        width: 100% !important;
        height: auto !important;
    }
    .page-ban-ca__hero-text-content {
        align-items: center;
        text-align: center;
    }
    .page-ban-ca__main-title {
        font-size: 2em !important; /* Ensure H1 is not too large */
        line-height: 1.3;
    }
    .page-ban-ca__subtitle {
        font-size: 1em;
        margin-bottom: 20px;
    }
}