/* style/ban-ca.css */

/* Custom Colors */
:root {
    --page-ban-ca-primary-color: #FF8C1A;
    --page-ban-ca-secondary-color: #FFA53A;
    --page-ban-ca-button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    --page-ban-ca-card-bg: #17191F;
    --page-ban-ca-background: #0D0E12;
    --page-ban-ca-text-main: #FFF3E6;
    --page-ban-ca-border-color: #A84F0C;
    --page-ban-ca-glow-color: #FFB04D;
    --page-ban-ca-deep-orange: #D96800;
}

.page-ban-ca {
    font-family: Arial, sans-serif;
    color: var(--page-ban-ca-text-main); /* Main text color for dark body background */
    background-color: var(--page-ban-ca-background); /* Ensure consistency if body background is not inherited */
}

/* Hero Section */
.page-ban-ca__hero-section {
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    padding-bottom: 40px;
    background-color: var(--page-ban-ca-background);
}

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

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

.page-ban-ca__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--page-ban-ca-primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-ban-ca__hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--page-ban-ca-text-main);
}

.page-ban-ca__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-ban-ca__btn-primary {
    background: var(--page-ban-ca-button-gradient);
    color: var(--page-ban-ca-text-main);
    border: none;
}

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

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

.page-ban-ca__btn-secondary:hover {
    background: var(--page-ban-ca-primary-color);
    color: var(--page-ban-ca-text-main);
}

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

.page-ban-ca__hero-side-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(255, 140, 26, 0.4);
}

/* General Content Sections */
.page-ban-ca__intro-section,
.page-ban-ca__features-section,
.page-ban-ca__guide-section,
.page-ban-ca__tips-section,
.page-ban-ca__trial-section,
.page-ban-ca__faq-section {
    padding: 60px 0;
}

.page-ban-ca__dark-section {
    background-color: var(--page-ban-ca-card-bg);
}

.page-ban-ca__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: var(--page-ban-ca-text-main);
}

.page-ban-ca__section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: var(--page-ban-ca-primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-ban-ca__text-block {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--page-ban-ca-text-main);
}

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

.page-ban-ca__feature-item {
    background-color: var(--page-ban-ca-card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-ban-ca-border-color);
    color: var(--page-ban-ca-text-main);
}

.page-ban-ca__icon-box-media {
    width: 200px; /* Fixed width for circular image */
    height: 200px; /* Fixed height for circular image */
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--page-ban-ca-primary-color);
    box-shadow: 0 0 20px var(--page-ban-ca-glow-color);
}

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

.page-ban-ca__feature-title {
    font-size: 1.5rem;
    color: var(--page-ban-ca-secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-ban-ca__feature-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--page-ban-ca-text-main);
}

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

.page-ban-ca__guide-item {
    background-color: var(--page-ban-ca-card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-ban-ca-border-color);
    color: var(--page-ban-ca-text-main);
    text-align: center;
}

.page-ban-ca__guide-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    object-fit: cover;
    width: 100%;
    min-height: 200px; /* Ensure minimum display size */
}

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

.page-ban-ca__guide-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--page-ban-ca-text-main);
}

/* Tips Section */
.page-ban-ca__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-ban-ca__list-item {
    background-color: var(--page-ban-ca-card-bg);
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    border-left: 5px solid var(--page-ban-ca-primary-color);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--page-ban-ca-text-main);
}

.page-ban-ca__list-item strong {
    color: var(--page-ban-ca-secondary-color);
}

/* Game Trial Section */
.page-ban-ca__game-iframe-wrapper {
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(255, 140, 26, 0.5);
    border: 2px solid var(--page-ban-ca-primary-color);
}

.page-ban-ca__game-trial-frame {
    border: none;
    display: block;
    width: 100%;
    height: 600px;
}

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

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

.page-ban-ca__faq-item {
    background-color: var(--page-ban-ca-card-bg);
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--page-ban-ca-border-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    color: var(--page-ban-ca-text-main);
}

.page-ban-ca__faq-item summary {
    list-style: none;
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--page-ban-ca-primary-color);
    background-color: rgba(255, 140, 26, 0.1);
    transition: background-color 0.3s ease;
}

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

.page-ban-ca__faq-item summary:hover {
    background-color: rgba(255, 140, 26, 0.2);
}

.page-ban-ca__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--page-ban-ca-secondary-color);
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
    transform: rotate(45deg);
}

.page-ban-ca__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--page-ban-ca-text-main);
    background-color: var(--page-ban-ca-card-bg);
}

/* Image responsiveness */
.page-ban-ca img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Default for all images */
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .page-ban-ca {
        font-size: 16px;
        line-height: 1.6;
    }

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

    .page-ban-ca__hero-container {
        flex-direction: column; /* Stack content vertically */
        padding: 30px 15px;
        gap: 30px;
    }

    .page-ban-ca__hero-content,
    .page-ban-ca__hero-image {
        flex: 1 1 100%; /* Full width */
        min-width: unset;
        text-align: center;
    }

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

    .page-ban-ca__hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-ban-ca__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }

    .page-ban-ca__btn-primary,
    .page-ban-ca__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    /* General Content Sections */
    .page-ban-ca__intro-section,
    .page-ban-ca__features-section,
    .page-ban-ca__guide-section,
    .page-ban-ca__tips-section,
    .page-ban-ca__trial-section,
    .page-ban-ca__faq-section {
        padding: 40px 0;
    }

    .page-ban-ca__content-area {
        padding: 0 15px; /* Adjust padding for mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-ban-ca__text-block {
        font-size: 0.95rem;
    }

    /* Features Section */
    .page-ban-ca__feature-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }

    .page-ban-ca__feature-item {
        padding: 25px;
    }

    .page-ban-ca__icon-box-media {
        width: 150px; /* Adjust size for mobile, maintain square */
        height: 150px;
        margin-bottom: 15px;
    }

    .page-ban-ca__feature-title {
        font-size: 1.3rem;
    }

    /* Guide Section */
    .page-ban-ca__guide-steps {
        grid-template-columns: 1fr; /* Single column */
        gap: 25px;
    }

    .page-ban-ca__guide-item {
        padding: 20px;
    }

    .page-ban-ca__guide-image {
        min-height: 150px; /* Adjust min height for mobile */
    }

    .page-ban-ca__guide-title {
        font-size: 1.2rem;
    }

    /* Tips Section */
    .page-ban-ca__list-item {
        padding: 15px 20px;
        font-size: 0.95rem;
    }

    /* Game Trial Section */
    .page-ban-ca__game-iframe-wrapper {
        margin-top: 25px;
        margin-bottom: 25px;
    }

    .page-ban-ca__game-trial-frame {
        height: 400px; /* Adjust iframe height for mobile */
    }

    /* FAQ Section */
    .page-ban-ca__faq-item summary {
        padding: 15px 20px;
        font-size: 1rem;
    }

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

    /* Universal image and container responsive styles */
    .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__guide-item,
    .page-ban-ca__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-ban-ca__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-ban-ca__cta-buttons--center {
        padding-left: 0;
        padding-right: 0;
    }
}