/* General Styles for .page-ban-ca scope */
.page-ban-ca {
    font-family: Arial, sans-serif;
    color: var(--text-main-color, #FFF3E6); /* Default text color for dark background */
    background-color: var(--background-color, #0D0E12); /* Default body background */
}

.page-ban-ca__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

.page-ban-ca__section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    color: #FFF3E6;
}

.page-ban-ca__text-block {
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 32px;
    color: #FFF3E6;
}

/* Buttons */
.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca__btn-play,
.page-ban-ca__btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 100%; /* Ensure button doesn't exceed container */
}

.page-ban-ca__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    color: #FFF3E6;
    box-shadow: 0 4px 15px rgba(255, 136, 26, 0.4);
}

.page-ban-ca__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 136, 26, 0.6);
}

.page-ban-ca__btn-secondary {
    background: transparent;
    color: #FFA53A;
    border: 2px solid #FFA53A;
    box-shadow: none;
}

.page-ban-ca__btn-secondary:hover {
    background: #FFA53A;
    color: #FFF3E6;
    box-shadow: 0 4px 15px rgba(255, 165, 58, 0.3);
}

.page-ban-ca__btn-play {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    color: #FFF3E6;
    font-size: 16px;
    padding: 10px 20px;
}

.page-ban-ca__btn-play:hover {
    opacity: 0.9;
}

.page-ban-ca__btn-link {
    background: transparent;
    color: #FFA53A;
    text-decoration: underline;
    padding: 0;
    font-size: 15px;
    font-weight: normal;
    text-align: left;
    display: block;
    margin-top: 8px;
}

.page-ban-ca__btn-link:hover {
    color: #D96800;
}

/* Images */
.page-ban-ca img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: none; /* Explicitly remove any filter */
}

/* Hero Section */
.page-ban-ca__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: #0D0E12; /* Match body background */
}

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

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

.page-ban-ca__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFF3E6;
}

.page-ban-ca__description {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #FFF3E6;
}

.page-ban-ca__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

.page-ban-ca__hero-side-image {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-ban-ca__intro-section .page-ban-ca__section-title,
.page-ban-ca__intro-section .page-ban-ca__text-block {
    color: #FFF3E6;
}

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

.page-ban-ca__feature-item {
    text-align: center;
    padding: 20px;
    background-color: #0D0E12; /* Background color for feature cards */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #FFF3E6;
}

.page-ban-ca__icon-box-media {
    width: 240px;
    height: 240px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #FFA53A;
    box-shadow: 0 0 0 8px rgba(255, 165, 58, 0.2);
}

.page-ban-ca__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; /* Ensure image is also round */
}

.page-ban-ca__feature-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #FFA53A;
}

.page-ban-ca__feature-description {
    font-size: 16px;
    line-height: 1.6;
    color: #FFF3E6;
}

/* Games Section */
.page-ban-ca__games-section {
    padding: 80px 0;
    background-color: #0D0E12;
}

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

.page-ban-ca__game-card {
    background-color: #17191F; /* Card BG color */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding-bottom: 20px;
    color: #FFF3E6;
    display: flex;
    flex-direction: column;
}

.page-ban-ca__game-thumbnail {
    width: 100%;
    height: 200px; /* Fixed height for thumbnails */
    object-fit: cover;
    border-bottom: 1px solid #A84F0C;
}

.page-ban-ca__game-title {
    font-size: 22px;
    font-weight: 700;
    margin: 20px 15px 10px;
    color: #FFA53A;
}

.page-ban-ca__game-title a {
    color: #FFA53A;
    text-decoration: none;
}

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

.page-ban-ca__game-description {
    font-size: 15px;
    line-height: 1.6;
    margin: 0 15px 20px;
    color: #FFF3E6;
}

.page-ban-ca__game-card .page-ban-ca__btn-play {
    margin-top: auto; /* Push button to bottom */
    margin-left: auto;
    margin-right: auto;
}

/* Guide Section */
.page-ban-ca__guide-section {
    background-color: #17191F; /* Card BG color */
    padding: 80px 0;
}

.page-ban-ca__guide-section .page-ban-ca__section-title,
.page-ban-ca__guide-section .page-ban-ca__text-block {
    color: #FFF3E6;
}

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

.page-ban-ca__step-item {
    background-color: #0D0E12; /* Background color for step cards */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #FFF3E6;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-ban-ca__step-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #FFA53A;
}

.page-ban-ca__step-description {
    font-size: 16px;
    line-height: 1.6;
    color: #FFF3E6;
    margin-bottom: 15px;
}

/* Tips Section */
.page-ban-ca__tips-section {
    padding: 80px 0;
    background-color: #0D0E12;
}

.page-ban-ca__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-ban-ca__tips-list li {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    color: #FFF3E6;
}

.page-ban-ca__tips-list li::before {
    content: '•';
    color: #FFA53A;
    font-size: 24px;
    position: absolute;
    left: 0;
    top: -2px;
}

.page-ban-ca__tips-list li strong {
    color: #FFA53A;
}

.page-ban-ca__cta-block {
    text-align: center;
    margin-top: 50px;
    padding: 40px;
    background-color: #17191F;
    border-radius: 12px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-ban-ca__cta-text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #FFF3E6;
}

/* FAQ Section */
.page-ban-ca__faq-section {
    background-color: #17191F; /* Card BG color */
    padding: 80px 0;
}

.page-ban-ca__faq-section .page-ban-ca__section-title {
    color: #FFF3E6;
}

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

.page-ban-ca__faq-item {
    background-color: #0D0E12; /* Background color for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #FFF3E6;
}

.page-ban-ca__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* Hide default marker */
    color: #FFA53A;
    position: relative;
}

.page-ban-ca__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for Webkit */
}

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.page-ban-ca__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    color: #FFF3E6;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
    content: '−';
}

.page-ban-ca__faq-answer {
    padding: 0 25px 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #FFF3E6;
}

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

/* Color contrast fixes if needed */
.page-ban-ca__dark-bg {
    background-color: #17191F; /* Card BG */
    color: #FFF3E6;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-ban-ca__hero-container {
        flex-direction: column;
        text-align: center;
    }

    .page-ban-ca__hero-content {
        text-align: center;
    }

    .page-ban-ca__cta-buttons {
        justify-content: center;
    }

    .page-ban-ca__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-ban-ca__hero-section {
        padding-top: 10px !important; /* Fixed top padding */
        padding-bottom: 40px;
    }
    .page-ban-ca__hero-container {
        padding: 30px 15px;
        flex-direction: column; /* Ensure vertical stack */
        gap: 20px;
    }
    .page-ban-ca__hero-content {
        text-align: center;
        min-width: unset;
        flex: 1 1 100%;
    }
    .page-ban-ca__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem); /* Smaller H1 on mobile */
        margin-bottom: 15px;
    }
    .page-ban-ca__description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-ban-ca__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding-left: 15px; /* Add padding to container */
        padding-right: 15px;
    }
    .page-ban-ca__btn-primary,
    .page-ban-ca__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px;
        font-size: 16px;
    }
    .page-ban-ca__hero-image {
        min-width: unset;
        flex: 1 1 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-ban-ca__hero-side-image {
        width: 100% !important;
        height: auto !important;
    }

    /* Intro Section - Three Column Icon Box */
    .page-ban-ca__intro-section,
    .page-ban-ca__games-section,
    .page-ban-ca__guide-section,
    .page-ban-ca__tips-section,
    .page-ban-ca__faq-section {
        padding: 50px 0; /* Reduced padding */
    }
    .page-ban-ca__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-ban-ca__section-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    .page-ban-ca__text-block {
        font-size: 15px;
        margin-bottom: 25px;
    }
    .page-ban-ca__features-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }
    .page-ban-ca__feature-item {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-ban-ca__icon-box-media {
        width: 200px; /* Maintain square ratio */
        height: 200px; /* Maintain square ratio */
        margin-bottom: 15px;
        border-width: 3px;
        box-shadow: 0 0 0 6px rgba(255, 165, 58, 0.15);
    }
    .page-ban-ca__feature-title {
        font-size: 20px;
        margin-bottom: 8px;
    }
    .page-ban-ca__feature-description {
        font-size: 15px;
    }

    /* Games Section */
    .page-ban-ca__game-list {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }
    .page-ban-ca__game-card {
        padding-bottom: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-ban-ca__game-thumbnail {
        height: 180px; /* Adjust thumbnail height */
    }
    .page-ban-ca__game-title {
        font-size: 20px;
        margin: 15px 0 8px; /* Adjusted margins */
    }
    .page-ban-ca__game-description {
        font-size: 14px;
        margin: 0 0 15px; /* Adjusted margins */
    }
    .page-ban-ca__game-card .page-ban-ca__btn-play {
        padding: 8px 15px;
        font-size: 15px;
        max-width: 100% !important; 
        width: 100% !important;
        margin-left: 0;
        margin-right: 0;
    }

    /* Guide Section */
    .page-ban-ca__guide-steps {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }
    .page-ban-ca__step-item {
        padding: 20px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-ban-ca__step-title {
        font-size: 20px;
    }
    .page-ban-ca__step-description {
        font-size: 15px;
    }
    .page-ban-ca__btn-link {
        font-size: 14px;
    }

    /* Tips Section */
    .page-ban-ca__tips-list {
        margin-top: 30px;
        padding: 0 15px; /* Add padding for list */
    }
    .page-ban-ca__tips-list li {
        font-size: 15px;
        padding-left: 25px;
    }
    .page-ban-ca__tips-list li::before {
        font-size: 20px;
        top: 0px;
    }
    .page-ban-ca__cta-block {
        margin-top: 40px;
        padding: 30px 15px;
    }
    .page-ban-ca__cta-text {
        font-size: 18px;
        margin-bottom: 20px;
    }

    /* FAQ Section */
    .page-ban-ca__faq-list {
        margin-top: 30px;
        padding: 0 15px; /* Add padding for list */
    }
    .page-ban-ca__faq-item summary {
        padding: 15px 20px;
        font-size: 16px;
    }
    .page-ban-ca__faq-qtext {
        font-size: 16px;
    }
    .page-ban-ca__faq-toggle {
        font-size: 20px;
    }
    .page-ban-ca__faq-answer {
        padding: 0 20px 15px;
        font-size: 15px;
    }

    /* Universal image and container rules for mobile */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-ban-ca__section,
    .page-ban-ca__card,
    .page-ban-ca__container,
    .page-ban-ca__feature-item,
    .page-ban-ca__game-card,
    .page-ban-ca__step-item,
    .page-ban-ca__faq-item,
    .page-ban-ca__cta-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}