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

.page-ban-ca__content-area {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 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; /* Text Main */
}

/* Button Styles */
.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca a[class*="button"],
.page-ban-ca a[class*="btn"] {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

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

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

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

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

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

/* Hero Section */
.page-ban-ca__hero-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
    background-color: #F5F7FA; /* Background */
    position: relative;
    overflow: hidden;
}

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

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

.page-ban-ca__main-title {
    font-size: clamp(2.2em, 4vw, 3.2em); /* Example clamp for responsive H1 */
    color: #E53935; /* Main Color */
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.2;
}

.page-ban-ca__hero-description {
    font-size: 1.15em;
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-ban-ca__hero-cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.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: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

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

.page-ban-ca__feature-item {
    text-align: center;
    padding: 25px;
    border-radius: 12px;
    background-color: #F5F7FA; /* Background */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.page-ban-ca__icon-box-media {
    width: 180px; /* Desktop size */
    height: 180px; /* Desktop size */
    aspect-ratio: 1/1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #E53935; /* Main Color */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FF5A4F; /* Auxiliary Color */
}

.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.5em;
    color: #E53935; /* Main Color */
    margin-bottom: 15px;
    font-weight: bold;
}

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

/* How-to-Play Section */
.page-ban-ca__how-to-play-section {
    padding: 60px 0;
    background-color: #F5F7FA; /* Background */
}

.page-ban-ca__background-pattern {
    position: relative;
    background-image: linear-gradient(45deg, rgba(229, 57, 53, 0.05) 25%, transparent 25%, transparent 75%, rgba(229, 57, 53, 0.05) 75%, rgba(229, 57, 53, 0.05)),
                      linear-gradient(45deg, rgba(229, 57, 53, 0.05) 25%, transparent 25%, transparent 75%, rgba(229, 57, 53, 0.05) 75%, rgba(229, 57, 53, 0.05));
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
}

.page-ban-ca__dark-text {
    color: #333333; /* Text Main */
}

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

.page-ban-ca__step-item {
    background-color: #ffffff; /* Card BG */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    position: relative;
    padding-top: 70px;
}

.page-ban-ca__step-number {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient */
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-ban-ca__step-title {
    font-size: 1.4em;
    color: #E53935; /* Main Color */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-ban-ca__step-text {
    font-size: 1em;
    margin-bottom: 20px;
    color: #333333; /* Text Main */
}

.page-ban-ca__step-link {
    color: #E53935; /* Main Color */
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #E53935; /* Main Color */
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-ban-ca__step-link:hover {
    color: #FF5A4F; /* Auxiliary Color */
    border-color: #FF5A4F; /* Auxiliary Color */
}

/* Popular Games Section */
.page-ban-ca__popular-games-section {
    padding: 60px 0;
    background-color: #ffffff; /* Card BG */
}

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

.page-ban-ca__game-card {
    background-color: #F5F7FA; /* Background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

.page-ban-ca__game-card-title {
    font-size: 1.5em;
    color: #E53935; /* Main Color */
    padding: 20px 20px 10px;
    font-weight: bold;
}

.page-ban-ca__game-card-text {
    font-size: 1em;
    color: #333333; /* Text Main */
    padding: 0 20px 20px;
    flex-grow: 1; /* Make text fill space */
}

.page-ban-ca__game-card .page-ban-ca__btn-primary {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
}

/* Promo Section */
.page-ban-ca__promo-section {
    padding: 60px 0;
    background-color: #E53935; /* Main Color */
    color: #ffffff;
}

.page-ban-ca__white-text {
    color: #ffffff;
}

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

.page-ban-ca__promo-item {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-ban-ca__promo-title {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-ban-ca__promo-text {
    font-size: 1em;
    color: #ffffff;
}

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

/* Tips Section */
.page-ban-ca__tips-section {
    padding: 60px 0;
    background-color: #ffffff; /* Card BG */
}

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

.page-ban-ca__tip-item {
    background-color: #F5F7FA; /* Background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

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

.page-ban-ca__tip-title {
    font-size: 1.5em;
    color: #E53935; /* Main Color */
    padding: 20px 20px 10px;
    font-weight: bold;
}

.page-ban-ca__tip-text {
    font-size: 1em;
    color: #333333; /* Text Main */
    padding: 0 20px 20px;
}

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

.page-ban-ca__faq-list {
    max-width: 900px;
    margin: 50px 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;
}

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #E53935; /* Main Color */
    cursor: pointer;
    background-color: #F5F7FA; /* Background */
    border-bottom: 1px solid #E0E0E0; /* Border */
}

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

.page-ban-ca__faq-item:last-child {
    margin-bottom: 0;
}

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

.page-ban-ca__faq-toggle {
    font-size: 1.5em;
    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: 20px;
    font-size: 1em;
    color: #333333; /* Text Main */
    line-height: 1.6;
}

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

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

/* CTA Bottom Section */
.page-ban-ca__cta-bottom-section {
    padding: 60px 0;
    background-color: #E53935; /* Main Color */
    text-align: center;
    color: #ffffff;
}

.page-ban-ca__cta-bottom-content {
    max-width: 900px;
}

.page-ban-ca__cta-bottom-section .page-ban-ca__section-title {
    color: #ffffff;
}

.page-ban-ca__cta-bottom-section .page-ban-ca__section-description {
    color: #ffffff;
    margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-ban-ca__hero-container {
        flex-direction: column;
        text-align: center;
    }
    .page-ban-ca__hero-content,
    .page-ban-ca__hero-image {
        flex: 1 1 100%;
    }
    .page-ban-ca__hero-cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* General mobile adjustments */
    .page-ban-ca {
        font-size: 15px;
        line-height: 1.5;
    }

    .page-ban-ca__content-area {
        padding: 25px 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

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

    /* HERO Section */
    .page-ban-ca__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 40px;
    }

    .page-ban-ca__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust clamp for smaller screens */
        text-align: center;
    }

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

    .page-ban-ca__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Constrain button group width */
        margin: 0 auto;
    }

    .page-ban-ca__btn-primary,
    .page-ban-ca__btn-secondary,
    .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;
    }

    .page-ban-ca__hero-side-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Intro Section */
    .page-ban-ca__intro-section,
    .page-ban-ca__how-to-play-section,
    .page-ban-ca__popular-games-section,
    .page-ban-ca__promo-section,
    .page-ban-ca__tips-section,
    .page-ban-ca__faq-section,
    .page-ban-ca__cta-bottom-section {
        padding: 40px 0;
    }

    .page-ban-ca__features-grid,
    .page-ban-ca__steps-grid,
    .page-ban-ca__game-cards-grid,
    .page-ban-ca__promo-grid,
    .page-ban-ca__tips-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }

    .page-ban-ca__icon-box-media {
        width: 150px; /* Smaller for mobile */
        height: 150px; /* Smaller for mobile */
        border-width: 3px;
    }

    .page-ban-ca__game-card-image,
    .page-ban-ca__tip-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* Override fixed height to be responsive */
    }
    
    /* Ensure all images are responsive */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* FAQ Section */
    .page-ban-ca__faq-question {
        padding: 15px;
        font-size: 1.1em;
    }

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

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

    /* Ensure all content containers are responsive on mobile */
    .page-ban-ca__section,
    .page-ban-ca__card,
    .page-ban-ca__container,
    .page-ban-ca__hero-container,
    .page-ban-ca__features-grid,
    .page-ban-ca__steps-grid,
    .page-ban-ca__game-cards-grid,
    .page-ban-ca__promo-grid,
    .page-ban-ca__tips-grid,
    .page-ban-ca__faq-list,
    .page-ban-ca__cta-bottom-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}