/* style/ban-ca.css */

.page-ban-ca {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light body background */
    background-color: #FFFFFF; /* Default body background is white */
}

/* Hero Section */
.page-ban-ca__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding as shared.css handles body padding */
    padding-bottom: 40px;
    background-color: #f0f8ff; /* Light background for the section */
}

.page-ban-ca__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 30px;
    overflow: hidden; /* Ensure image fits */
}

.page-ban-ca__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.page-ban-ca__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-ban-ca__main-title {
    color: #26A9E0;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.page-ban-ca__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #555555;
}

.page-ban-ca__hero-cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-ban-ca__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-ban-ca__btn--primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-ban-ca__btn--primary:hover {
    background-color: #1e87c0;
    border-color: #1e87c0;
}

.page-ban-ca__btn--secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-ban-ca__btn--secondary:hover {
    background-color: #e0f2f7;
    color: #26A9E0;
}

.page-ban-ca__btn--small {
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 20px;
}

/* General Section Styling */
.page-ban-ca__section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.page-ban-ca__section:nth-of-type(even) {
    background-color: #f9f9f9;
}

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

.page-ban-ca__section-title {
    font-size: 2.2em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-ban-ca__text-block {
    margin-bottom: 20px;
    font-size: 1.05em;
    line-height: 1.7;
    color: #444444;
}

.page-ban-ca__highlight {
    color: #26A9E0;
    font-weight: bold;
}

/* Why Choose Section */
.page-ban-ca__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-ban-ca__feature-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-ban-ca__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

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

.page-ban-ca__feature-description {
    font-size: 0.95em;
    color: #555555;
}

/* Popular Games Section */
.page-ban-ca__game-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-ban-ca__game-card {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-ban-ca__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

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

.page-ban-ca__game-title {
    font-size: 1.3em;
    color: #26A9E0;
    padding: 15px 20px 0;
    font-weight: bold;
}

.page-ban-ca__game-description {
    font-size: 0.9em;
    color: #555555;
    padding: 10px 20px;
    flex-grow: 1;
}

.page-ban-ca__game-card .page-ban-ca__btn {
    margin: 0 20px 20px;
    text-align: center;
}

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

.page-ban-ca__guide-step {
    background-color: #f0f8ff;
    border-left: 5px solid #26A9E0;
    padding: 25px;
    border-radius: 8px;
}

.page-ban-ca__guide-step-title {
    font-size: 1.3em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-ban-ca__guide-step-description {
    font-size: 0.95em;
    color: #555555;
}

.page-ban-ca__link {
    color: #26A9E0;
    text-decoration: underline;
}

.page-ban-ca__link:hover {
    color: #1e87c0;
}

/* Figure Styling */
.page-ban-ca__figure {
    margin: 40px auto;
    max-width: 800px;
    text-align: center;
}

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

.page-ban-ca__figure-caption {
    font-size: 0.9em;
    color: #777777;
    margin-top: 15px;
}

/* Tips & Strategies Section */
.page-ban-ca__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-ban-ca__tips-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.page-ban-ca__tips-description {
    font-size: 0.95em;
    color: #555555;
}

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

/* FAQ Section */
.page-ban-ca__faq-list {
    margin-top: 30px;
}

.page-ban-ca__faq-question {
    font-size: 1.2em;
    color: #26A9E0;
    background-color: #f0f8ff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    font-weight: bold;
}

.page-ban-ca__faq-answer {
    font-size: 0.95em;
    color: #555555;
    padding: 10px 20px 20px;
    margin-bottom: 20px;
    background-color: #FFFFFF;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

/* Conclusion Section */
.page-ban-ca__conclusion {
    background-color: #26A9E0; /* Brand color as background */
    color: #FFFFFF; /* White text for brand color background */
    padding: 60px 0;
    text-align: center;
}

.page-ban-ca__conclusion .page-ban-ca__section-title {
    color: #FFFFFF;
    font-size: 2.5em;
    margin-bottom: 30px;
}

.page-ban-ca__conclusion .page-ban-ca__text-block {
    color: #f0f8ff;
    font-size: 1.1em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-ban-ca__conclusion .page-ban-ca__highlight {
    color: #FFFFFF;
}

.page-ban-ca__conclusion .page-ban-ca__cta-group {
    margin-top: 40px;
}

.page-ban-ca__conclusion .page-ban-ca__btn--primary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border-color: #FFFFFF;
}

.page-ban-ca__conclusion .page-ban-ca__btn--primary:hover {
    background-color: #e0f2f7;
    color: #26A9E0;
    border-color: #e0f2f7;
}

.page-ban-ca__conclusion .page-ban-ca__btn--secondary {
    background-color: transparent;
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.page-ban-ca__conclusion .page-ban-ca__btn--secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

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

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

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

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

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

@media (max-width: 768px) {
    /* 1. Top section title + dual CTA */
    .page-ban-ca__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 30px;
    }

    .page-ban-ca__main-title {
        font-size: clamp(1.8em, 5vw, 2.5em); /* Use clamp for H1 */
        margin-bottom: 15px;
    }

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

    .page-ban-ca__hero-cta-group {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .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: 40px 0;
    }

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

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

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

    .page-ban-ca__feature-grid,
    .page-ban-ca__game-list,
    .page-ban-ca__guide-steps {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-ban-ca__feature-item,
    .page-ban-ca__game-card,
    .page-ban-ca__guide-step,
    .page-ban-ca__tips-item,
    .page-ban-ca__faq-question,
    .page-ban-ca__faq-answer {
        padding: 20px;
    }

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

    /* 3. General images and figure */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .page-ban-ca__figure {
        margin: 30px auto;
    }

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

    /* 4. Buttons and button containers (already covered by .page-ban-ca__btn and .page-ban-ca__hero-cta-group) */
    .page-ban-ca__cta-center .page-ban-ca__btn {
        width: auto;
        max-width: 80%; /* But limit it */
        margin-left: auto;
        margin-right: auto;
    }

    .page-ban-ca__conclusion .page-ban-ca__cta-group {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* 5. Registration tutorial and FAQ blocks */
    .page-ban-ca__guide-step-title {
        font-size: 1.2em;
    }

    .page-ban-ca__faq-question {
        font-size: 1.1em;
    }

    .page-ban-ca__faq-answer {
        font-size: 0.9em;
    }

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