/* style/ban-ca.css */
/* Base styles for page-ban-ca */
.page-ban-ca {
    font-family: Arial, sans-serif;
    color: #333333; /* Text Main */
    background-color: #F5F7FA; /* Background */
    line-height: 1.6;
}

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

.page-ban-ca__section-title {
    font-size: 2.5em;
    color: #E53935; /* Main color */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Hero Section */
.page-ban-ca__hero-section {
    padding-top: 10px; /* Small top padding, relying on body padding-top from shared */
    padding-bottom: 60px;
    background-color: #F5F7FA; /* Background */
}

.page-ban-ca__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 16px;
}

.page-ban-ca__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    color: #333333;
}

.page-ban-ca__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* H1 font size with clamp */
    color: #E53935;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-ban-ca__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #333333;
}

.page-ban-ca__hero-image {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: center;
}

.page-ban-ca__hero-side-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* CTA Buttons */
.page-ban-ca__cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca__btn-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-ban-ca__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
}

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

.page-ban-ca__btn-secondary {
    background-color: #ffffff; /* Card BG */
    color: #E53935; /* Main color */
    border-color: #E53935;
}

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

/* Intro Section */
.page-ban-ca__intro-section {
    padding: 60px 0;
    background-color: #F5F7FA; /* Background */
}

.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 {
    background-color: #ffffff; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid #E0E0E0; /* Border */
}

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

.page-ban-ca__icon-box-media {
    width: 160px; /* Smaller for desktop, will be 200px for mobile */
    height: 160px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FF5A4F; /* Auxiliary color for background of icon box */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.page-ban-ca__feature-title {
    font-size: 1.4em;
    color: #E53935;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-ban-ca__feature-text {
    font-size: 1em;
    color: #333333;
}

/* Game Showcase Section */
.page-ban-ca__game-showcase-section {
    padding: 60px 0;
    background-color: #F5F7FA; /* Background */
}

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

.page-ban-ca__game-card {
    background-color: #ffffff; /* Card BG */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #E0E0E0; /* Border */
    display: flex;
    flex-direction: column;
}

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

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

.page-ban-ca__game-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

.page-ban-ca__game-title a {
    color: #E53935;
    text-decoration: none;
}

.page-ban-ca__game-title a:hover {
    text-decoration: underline;
}

.page-ban-ca__game-description {
    font-size: 0.95em;
    color: #333333;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-ban-ca__btn-play {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
    border-radius: 6px;
}

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

/* Guide Section */
.page-ban-ca__guide-section {
    padding: 60px 0;
    background-color: #F5F7FA; /* Background */
}

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

.page-ban-ca__guide-step {
    background-color: #ffffff; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #E0E0E0; /* Border */
    text-align: center;
}

.page-ban-ca__step-icon {
    width: 60px;
    height: 60px;
    background-color: #E53935; /* Main color */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    margin: 0 auto 20px;
}

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

.page-ban-ca__step-text {
    font-size: 1em;
    color: #333333;
}

.page-ban-ca__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* FAQ Section */
.page-ban-ca__faq-section {
    padding: 60px 0;
    background-color: #F5F7FA; /* Background */
}

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

.page-ban-ca__faq-item {
    background-color: #ffffff; /* Card BG */
    border: 1px solid #E0E0E0; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: #E53935;
    cursor: pointer;
    background-color: #fcfcfc;
    position: relative;
    list-style: none; /* For details/summary */
}

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

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

.page-ban-ca__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #E53935;
    transition: transform 0.3s ease;
}

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

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

/* Final CTA Section (dark background) */
.page-ban-ca__cta-section {
    padding: 80px 0;
    background-color: #E53935; /* Main color as dark background */
    color: #ffffff;
    text-align: center;
}

.page-ban-ca__cta-content .page-ban-ca__section-title,
.page-ban-ca__cta-content .page-ban-ca__section-description {
    color: #ffffff; /* White text on dark background */
}

.page-ban-ca__cta-content .page-ban-ca__btn-primary {
    background: #ffffff;
    color: #E53935;
    border-color: #ffffff;
}

.page-ban-ca__cta-content .page-ban-ca__btn-primary:hover {
    background: #f0f0f0;
    color: #E53935;
}

.page-ban-ca__cta-content .page-ban-ca__btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.page-ban-ca__cta-content .page-ban-ca__btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}


/* Responsive styles for mobile */
@media (max-width: 768px) {
    .page-ban-ca__container {
        padding: 15px;
    }

    /* Hero Section */
    .page-ban-ca__hero-section {
        padding-top: 10px !important; /* Small top padding, relying on body padding-top from shared */
        padding-bottom: 40px;
    }
    
    .page-ban-ca__hero-container {
        flex-direction: column;
        padding: 20px 15px;
        gap: 20px;
    }

    .page-ban-ca__hero-content,
    .page-ban-ca__hero-image {
        flex: 1 1 100%;
        min-width: unset;
        width: 100%;
    }

    .page-ban-ca__main-title {
        font-size: 2em;
        text-align: center;
    }

    .page-ban-ca__description {
        font-size: 1em;
        text-align: center;
    }

    .page-ban-ca__cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to contain buttons */
    }

    .page-ban-ca__btn-primary,
    .page-ban-ca__btn-secondary,
    .page-ban-ca__btn-play {
        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;
        font-size: 1em;
    }

    /* Intro Section */
    .page-ban-ca__intro-section {
        padding: 40px 0;
    }

    .page-ban-ca__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-ban-ca__icon-box-media {
        width: 200px; /* Enlarge for mobile, maintain square */
        height: 200px;
        margin-bottom: 15px;
    }
    
    /* Game Showcase Section */
    .page-ban-ca__game-showcase-section {
        padding: 40px 0;
    }

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

    .page-ban-ca__game-image {
        height: 180px; /* Adjust height for mobile */
    }

    /* Guide Section */
    .page-ban-ca__guide-section {
        padding: 40px 0;
    }

    .page-ban-ca__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-ban-ca__guide-step {
        padding: 20px;
    }

    .page-ban-ca__step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5em;
        margin-bottom: 15px;
    }

    .page-ban-ca__cta-center {
        margin-top: 30px;
        padding: 0 15px; /* Add padding to contain button */
    }

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

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

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

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

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

    .page-ban-ca__cta-content .page-ban-ca__section-title {
        font-size: 2em;
    }
    
    /* General image and container responsive styles */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Specific override for icon-box-media img to maintain circular shape */
    .page-ban-ca__icon-box-media img {
        height: 100% !important; /* Override auto to maintain aspect ratio with object-fit */
        object-fit: cover !important;
    }

    .page-ban-ca__section,
    .page-ban-ca__card,
    .page-ban-ca__container,
    .page-ban-ca__game-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Add horizontal padding to prevent content from touching edges */
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Re-adjust padding for .page-ban-ca__container as it already has 15px */
    .page-ban-ca__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Ensure no horizontal overflow */
    .page-ban-ca {
        overflow-x: hidden;
    }
}