/* style/ban-ca.css */

:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --text-main-color: #333333;
    --card-bg-color: #FFFFFF;
    --background-color: #F5F7FA;
    --border-color: #E0E0E0;
}

.page-ban-ca {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Assuming light body background from shared.css */
    background-color: var(--background-color);
    line-height: 1.6;
}

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

.page-ban-ca__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-ban-ca__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-ban-ca__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding-top: 10px; /* Relying on body padding-top from shared.css */
    padding-bottom: 60px;
    background: linear-gradient(180deg, var(--background-color) 0%, var(--card-bg-color) 100%);
}

.page-ban-ca__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

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

.page-ban-ca__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Using clamp for H1 */
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800;
}

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

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

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca__promo-btn,
.page-ban-ca__game-play-btn,
.page-ban-ca__faq-link-btn,
.page-ban-ca__view-all-faq {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-ban-ca__btn-primary,
.page-ban-ca__game-play-btn,
.page-ban-ca__view-all-faq {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-ban-ca__btn-primary:hover,
.page-ban-ca__game-play-btn:hover,
.page-ban-ca__view-all-faq:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-color), 0.3);
}

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

.page-ban-ca__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(var(--primary-color), 0.3);
}

/* Features Section */
.page-ban-ca__features-section {
    padding: 60px 0;
    background-color: var(--card-bg-color);
}

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

.page-ban-ca__feature-card {
    background: var(--background-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-ban-ca__feature-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-ban-ca__feature-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

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

/* Games Showcase Section */
.page-ban-ca__games-showcase {
    padding: 60px 0;
    background-color: var(--background-color);
}

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

.page-ban-ca__game-card {
    background: var(--card-bg-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
}

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

.page-ban-ca__game-image {
    width: 100%;
    height: 250px; /* Fixed height for game images */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-ban-ca__game-title {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
    padding: 0 15px;
}

/* Guide Section */
.page-ban-ca__guide-section {
    padding: 60px 0;
    background-color: var(--card-bg-color);
}

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

.page-ban-ca__guide-item {
    background: var(--background-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-ban-ca__guide-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-ban-ca__guide-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.page-ban-ca__guide-text {
    font-size: 1em;
    color: var(--text-main-color);
}

.page-ban-ca__guide-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

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

/* Tips Section */
.page-ban-ca__tips-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

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

.page-ban-ca__tip-card {
    background: var(--card-bg-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-ban-ca__tip-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-ban-ca__tip-title {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
    padding: 0 15px;
}

.page-ban-ca__tip-text {
    font-size: 0.95em;
    color: var(--text-main-color);
    padding: 0 15px;
}

/* Promotions Section */
.page-ban-ca__promotions-section {
    padding: 60px 0;
    background-color: var(--card-bg-color);
}

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

.page-ban-ca__promo-card {
    background: var(--background-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-ban-ca__promo-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-ban-ca__promo-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
    padding: 0 15px;
}

.page-ban-ca__promo-text {
    font-size: 1em;
    color: var(--text-main-color);
    margin-bottom: 20px;
    padding: 0 15px;
}

.page-ban-ca__promo-btn {
    background: var(--primary-color);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: background-color 0.3s ease;
}

.page-ban-ca__promo-btn:hover {
    background-color: var(--secondary-color);
}

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

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

.page-ban-ca__faq-item {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none;
    position: relative;
}

.page-ban-ca__faq-question::-webkit-details-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;
    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: var(--text-main-color);
    line-height: 1.6;
}

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

.page-ban-ca__faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.page-ban-ca__faq-answer a:hover {
    text-decoration: underline;
}

.page-ban-ca__view-all-faq {
    margin-top: 30px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Conclusion Section */
.page-ban-ca__conclusion-section {
    padding: 60px 0;
    background: linear-gradient(0deg, var(--background-color) 0%, var(--card-bg-color) 100%);
    text-align: center;
}

.page-ban-ca__conclusion-section .page-ban-ca__btn-primary {
    margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-ban-ca__container {
        padding: 20px 30px;
    }

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

    .page-ban-ca__lead-text {
        font-size: 1.1em;
    }

    .page-ban-ca__feature-grid, 
    .page-ban-ca__game-grid, 
    .page-ban-ca__guide-steps, 
    .page-ban-ca__tips-grid, 
    .page-ban-ca__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .page-ban-ca__hero-section {
        padding-bottom: 40px;
    }
}

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

    .page-ban-ca__hero-section {
        flex-direction: column;
        gap: 20px;
        padding-top: 10px !important;
        padding-bottom: 30px;
    }

    .page-ban-ca__hero-image-wrapper {
        border-radius: 0;
    }

    .page-ban-ca__hero-image {
        object-fit: contain !important; /* Mobile hero image: contain */
        aspect-ratio: unset !important;
        max-height: none !important;
    }

    .page-ban-ca__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
        padding: 0 10px;
    }

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

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

    .page-ban-ca__btn-primary,
    .page-ban-ca__btn-secondary,
    .page-ban-ca__promo-btn,
    .page-ban-ca__game-play-btn,
    .page-ban-ca__faq-link-btn,
    .page-ban-ca__view-all-faq {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        font-size: 1em;
    }

    .page-ban-ca__section-title {
        font-size: 1.8em;
        padding: 0 15px;
    }

    .page-ban-ca__section-description {
        font-size: 0.95em;
        padding: 0 15px;
        margin-bottom: 20px;
    }

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

    .page-ban-ca__features-section,
    .page-ban-ca__games-showcase,
    .page-ban-ca__guide-section,
    .page-ban-ca__tips-section,
    .page-ban-ca__promotions-section,
    .page-ban-ca__faq-section,
    .page-ban-ca__conclusion-section {
        padding: 30px 0;
    }

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

    .page-ban-ca__feature-card, 
    .page-ban-ca__game-card, 
    .page-ban-ca__guide-item, 
    .page-ban-ca__tip-card, 
    .page-ban-ca__promo-card {
        padding: 20px;
        margin: 0 15px;
    }

    .page-ban-ca__game-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for game grid */
        gap: 15px;
        padding: 0 15px;
    }

    .page-ban-ca__game-image {
        height: 150px; /* Adjust height for mobile 2-column grid */
        object-fit: cover;
    }

    .page-ban-ca__game-title {
        font-size: 1.1em;
    }

    .page-ban-ca__game-play-btn {
        padding: 10px 15px;
        font-size: 0.9em;
    }

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

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

    /* Placeholder for winner list if it were present, ensuring no overflow */
    /* .page-ban-ca__winner-list { */
    /*     grid-template-columns: 1fr; */
    /*     overflow-x: hidden; */
    /*     padding: 0 15px; */
    /* } */
    /* .page-ban-ca__winner-item { */
    /*     flex-direction: column; */
    /*     align-items: flex-start; */
    /* } */
}

@media (max-width: 480px) {
    .page-ban-ca__game-grid {
        grid-template-columns: 1fr; /* Single column for very small screens */
    }
    .page-ban-ca__game-image {
        height: 200px;
    }
}