/* style/ban-ca.css */
.page-ban-ca {
    font-family: Arial, sans-serif;
    color: #333333;
    background-color: #F5F7FA;
}

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

.page-ban-ca__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding as body handles header offset */
    background-color: #F5F7FA;
    text-align: center;
    overflow: hidden;
}

.page-ban-ca__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

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

.page-ban-ca__hero-content {
    padding: 40px 20px;
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
}

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

.page-ban-ca__subtitle {
    font-size: 1.2rem;
    color: #333333;
    margin-bottom: 30px;
    line-height: 1.6;
}

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

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    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 {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

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

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

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

.page-ban-ca__about-section,
.page-ban-ca__game-showcase,
.page-ban-ca__how-to-play,
.page-ban-ca__promo-section,
.page-ban-ca__faq-section,
.page-ban-ca__cta-final {
    padding: 60px 0;
    background-color: #F5F7FA;
}

.page-ban-ca__dark-bg {
    background-color: #E53935;
    color: #ffffff;
}

.page-ban-ca__dark-bg .page-ban-ca__section-title,
.page-ban-ca__dark-bg .page-ban-ca__section-description,
.page-ban-ca__dark-bg p,
.page-ban-ca__dark-bg li,
.page-ban-ca__dark-bg a {
    color: #ffffff;
}

.page-ban-ca__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #E53935;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-ban-ca__dark-bg .page-ban-ca__section-title {
    color: #ffffff;
}

.page-ban-ca__section-description {
    font-size: 1.1rem;
    color: #333333;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.page-ban-ca__text-block {
    font-size: 1rem;
    line-height: 1.7;
    color: #333333;
}

.page-ban-ca__text-block p {
    margin-bottom: 1em;
}

.page-ban-ca__text-block a {
    color: #E53935;
    text-decoration: underline;
}

.page-ban-ca__text-block a:hover {
    color: #FF5A4F;
}

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

.page-ban-ca__game-tile {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #E0E0E0;
}

.page-ban-ca__game-tile img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

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

.page-ban-ca__game-description {
    font-size: 0.95rem;
    color: #333333;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-ban-ca__btn-play {
    display: inline-block;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-ban-ca__cta-full-width {
    text-align: center;
    margin-top: 50px;
}

.page-ban-ca__how-to-play .page-ban-ca__content-wrapper,
.page-ban-ca__tips-section .page-ban-ca__content-wrapper,
.page-ban-ca__promo-section .page-ban-ca__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-ban-ca__how-to-play .page-ban-ca__image-block,
.page-ban-ca__tips-section .page-ban-ca__image-block,
.page-ban-ca__promo-section .page-ban-ca__image-block {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
}

.page-ban-ca__how-to-play .page-ban-ca__text-block,
.page-ban-ca__tips-section .page-ban-ca__text-block,
.page-ban-ca__promo-section .page-ban-ca__text-block {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
}

.page-ban-ca__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.page-ban-ca__step-list,
.page-ban-ca__tip-list,
.page-ban-ca__promo-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-ban-ca__step-list li,
.page-ban-ca__tip-list li,
.page-ban-ca__promo-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: #333333;
}

.page-ban-ca__step-list li:before,
.page-ban-ca__tip-list li:before,
.page-ban-ca__promo-list li:before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #E53935;
}

.page-ban-ca__dark-bg .page-ban-ca__step-list li,
.page-ban-ca__dark-bg .page-ban-ca__tip-list li,
.page-ban-ca__dark-bg .page-ban-ca__promo-list li {
    color: #ffffff;
}

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

.page-ban-ca__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    padding: 0;
}

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #F5F7FA;
    border-bottom: 1px solid #E0E0E0;
    list-style: none;
}

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

.page-ban-ca__faq-question:hover {
    background-color: #e0e0e0;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-question {
    border-bottom: 1px solid #E0E0E0;
}

.page-ban-ca__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: #E53935;
    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: 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: #333333;
    background-color: #FFFFFF;
}

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

.page-ban-ca__cta-final {
    text-align: center;
    padding: 80px 0;
}

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

    .page-ban-ca__hero-content {
        padding: 30px 20px;
    }

    .page-ban-ca__section-title {
        margin-bottom: 15px;
    }

    .page-ban-ca__section-description {
        margin-bottom: 30px;
    }

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

    .page-ban-ca__how-to-play .page-ban-ca__content-wrapper,
    .page-ban-ca__tips-section .page-ban-ca__content-wrapper,
    .page-ban-ca__promo-section .page-ban-ca__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .page-ban-ca__how-to-play .page-ban-ca__image-block,
    .page-ban-ca__tips-section .page-ban-ca__image-block,
    .page-ban-ca__promo-section .page-ban-ca__image-block {
        max-width: 100%;
    }

    .page-ban-ca__how-to-play .page-ban-ca__text-block,
    .page-ban-ca__tips-section .page-ban-ca__text-block,
    .page-ban-ca__promo-section .page-ban-ca__text-block {
        max-width: 100%;
    }

    .page-ban-ca__about-section,
    .page-ban-ca__game-showcase,
    .page-ban-ca__how-to-play,
    .page-ban-ca__promo-section,
    .page-ban-ca__faq-section,
    .page-ban-ca__cta-final {
        padding: 40px 0;
    }

    .page-ban-ca__cta-final {
        padding: 60px 0;
    }
}

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

    /* Hero Section */
    .page-ban-ca__hero-section {
        padding-top: 10px !important;
    }

    .page-ban-ca__hero-image {
        object-fit: contain !important; /* Mobile hero image should contain, not cover */
        aspect-ratio: unset !important;
        max-height: none !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-ban-ca__hero-content {
        padding: 20px 15px;
    }

    .page-ban-ca__main-title {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }

    .page-ban-ca__subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-ban-ca__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-ban-ca__btn-primary,
    .page-ban-ca__btn-secondary,
    .page-ban-ca__btn-play,
    .page-ban-ca a[class*="button"],
    .page-ban-ca a[class*="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;
    }

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

    .page-ban-ca__hero-image-wrapper,
    .page-ban-ca__image-block,
    .page-ban-ca__game-tile {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Game Grid */
    .page-ban-ca__game-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-ban-ca__game-tile img {
        height: auto !important;
        aspect-ratio: 1/1 !important;
        object-fit: cover !important;
    }

    /* Sections */
    .page-ban-ca__about-section,
    .page-ban-ca__game-showcase,
    .page-ban-ca__how-to-play,
    .page-ban-ca__promo-section,
    .page-ban-ca__faq-section,
    .page-ban-ca__cta-final {
        padding: 30px 0;
    }

    .page-ban-ca__section-title {
        font-size: 1.5rem;
    }

    .page-ban-ca__section-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .page-ban-ca__how-to-play .page-ban-ca__content-wrapper,
    .page-ban-ca__tips-section .page-ban-ca__content-wrapper,
    .page-ban-ca__promo-section .page-ban-ca__content-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .page-ban-ca__tips-section .page-ban-ca__content-wrapper {
        flex-direction: column-reverse; /* For tips section to put image below text */
    }

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

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

    .page-ban-ca__cta-final {
        padding: 40px 0;
    }
}