/* style/ban-ca.css */

/* Base Styles */
.page-ban-ca {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: #ffffff; /* Explicitly setting for clarity, though body is already white */
}

/* Hero Section */
.page-ban-ca__hero-section {
    padding-top: 10px; /* Small top padding as per rule, not var(--header-offset) */
    padding-bottom: 60px;
    background-color: #f8f8f8; /* Light background for the hero section */
}

.page-ban-ca__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding: 20px 15px;
}

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

.page-ban-ca__main-title {
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1.2;
    color: #017439; /* Brand primary color for H1 */
    margin-bottom: 20px;
    max-width: 600px; /* To help with title length */
}

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

.page-ban-ca__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%; /* Ensure container takes full width */
    box-sizing: border-box;
}

.page-ban-ca__btn-register,
.page-ban-ca__btn-login {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-ban-ca__btn-register {
    background-color: #C30808; /* Custom color for register */
    color: #FFFF00; /* Custom font color for register */
    border: 2px solid #C30808;
}

.page-ban-ca__btn-register:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

.page-ban-ca__btn-login {
    background-color: #C30808; /* Custom color for login */
    color: #FFFF00; /* Custom font color for login */
    border: 2px solid #C30808;
}

.page-ban-ca__btn-login:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

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

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

/* Content Area */
.page-ban-ca__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
}

.page-ban-ca__section-title {
    font-size: 2.2em;
    color: #017439;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

.page-ban-ca__content-area p {
    margin-bottom: 20px;
    font-size: 1.05em;
    color: #333333;
}

.page-ban-ca__image-wrapper {
    margin: 30px 0;
    text-align: center;
}

.page-ban-ca__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: block;
    margin: 0 auto;
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
}

/* Game Types Section */
.page-ban-ca__game-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

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

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

.page-ban-ca__game-subtitle {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Guide Section */
.page-ban-ca__guide-list {
    list-style: none;
    padding: 0;
    counter-reset: guide-step;
}

.page-ban-ca__guide-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 20px;
}

.page-ban-ca__guide-item::before {
    counter-increment: guide-step;
    content: "Bước " counter(guide-step);
    background-color: #017439;
    color: #ffffff;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(1, 116, 57, 0.3);
}

.page-ban-ca__guide-step-title {
    font-size: 1.4em;
    color: #017439;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

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

.page-ban-ca__tips-item {
    background-color: #f0fdf5; /* Light green background */
    border-left: 5px solid #017439;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__tips-subtitle {
    font-size: 1.3em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Promo Section */
.page-ban-ca__promo-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-ban-ca__promo-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__promo-subtitle {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: 600;
}

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

.page-ban-ca__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: #017439;
    cursor: pointer;
    list-style: none; /* For details/summary */
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-question {
    background-color: #f0fdf5; /* Light green for open FAQ */
    border-bottom: 1px solid #e0e0e0;
    border-radius: 8px 8px 0 0;
}

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

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

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross */
}

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

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

/* CTA Section */
.page-ban-ca__cta-section {
    text-align: center;
    padding-bottom: 60px;
}

.page-ban-ca__final-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Ensure buttons wrap on mobile */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    text-align: center;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-ban-ca__btn-primary {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

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

.page-ban-ca__btn-secondary {
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}

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

/* General Link Styling */
.page-ban-ca a {
    color: #017439;
    text-decoration: underline;
}

.page-ban-ca a:hover {
    color: #005a2e;
    text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-ban-ca__main-title {
        font-size: 2.5em;
    }
    .page-ban-ca__section-title {
        font-size: 2em;
    }
    .page-ban-ca__hero-container {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-ban-ca__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 40px;
    }
    .page-ban-ca__hero-container {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    .page-ban-ca__hero-content {
        flex: 1 1 100%;
        text-align: center;
    }
    .page-ban-ca__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em); /* Using clamp for H1 on mobile */
        margin-bottom: 15px;
    }
    .page-ban-ca__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-ban-ca__hero-image {
        flex: 1 1 100%;
    }
    .page-ban-ca__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding: 0 15px; /* Add padding to container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-ban-ca__btn-register,
    .page-ban-ca__btn-login {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Content Area & General Images */
    .page-ban-ca__content-area {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-ban-ca__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-ban-ca p,
    .page-ban-ca li {
        font-size: 1em;
    }
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important; /* Ensure box-sizing for images */
    }
    .page-ban-ca__image-wrapper {
        padding: 0 0px; /* Adjust padding for image wrapper */
        box-sizing: border-box !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    /* Game Types Section */
    .page-ban-ca__game-list {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }
    .page-ban-ca__game-item {
        padding: 20px;
    }
    .page-ban-ca__game-subtitle {
        font-size: 1.3em;
    }

    /* Guide Section */
    .page-ban-ca__guide-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    .page-ban-ca__guide-item::before {
        width: 60px;
        height: 60px;
        font-size: 1em;
    }
    .page-ban-ca__guide-step-title {
        font-size: 1.2em;
    }

    /* Tips Section */
    .page-ban-ca__tips-list {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }
    .page-ban-ca__tips-item {
        padding: 20px;
    }
    .page-ban-ca__tips-subtitle {
        font-size: 1.2em;
    }

    /* Promo Section */
    .page-ban-ca__promo-list {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }
    .page-ban-ca__promo-item {
        padding: 20px;
    }
    .page-ban-ca__promo-subtitle {
        font-size: 1.3em;
    }

    /* FAQ Section */
    .page-ban-ca__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-ban-ca__faq-toggle {
        font-size: 1.2em;
    }
    .page-ban-ca__faq-answer {
        padding: 0 20px 15px 20px;
    }

    /* Final CTA Section */
    .page-ban-ca__final-cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-ban-ca__btn-primary,
    .page-ban-ca__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
}