/* style/ban-ca.css */

/* Variables from custom palette */
:root {
    --sh88-primary: #F2C14E;
    --sh88-secondary: #FFD36B;
    --sh88-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --sh88-card-bg: #111111;
    --sh88-background: #0A0A0A;
    --sh88-text-main: #FFF6D6;
    --sh88-border: #3A2A12;
    --sh88-glow: #FFD36B;
}

/* Base styles for the page content, assuming a dark body background from shared.css */
.page-ban-ca {
    background-color: var(--sh88-background);
    color: var(--sh88-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-ban-ca__section-title {
    font-size: clamp(2em, 5vw, 2.8em);
    font-weight: 700;
    color: var(--sh88-primary);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-ban-ca__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--sh88-text-main);
}

/* Buttons */
.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca__btn-small {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-ban-ca__btn-primary {
    background: var(--sh88-button-gradient);
    color: #000000; /* Ensuring dark text on the button gradient */
    border: none;
    box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
}

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

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

.page-ban-ca__btn-secondary:hover {
    background: var(--sh88-primary);
    color: #000000;
}

.page-ban-ca__btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
    background: var(--sh88-button-gradient);
    color: #000000;
    border: none;
}

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

/* Hero Section */
.page-ban-ca__hero-section {
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 60px;
    background-color: var(--sh88-background);
}

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

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

.page-ban-ca__hero-title {
    font-size: clamp(2.5em, 6vw, 3.5em);
    font-weight: 800;
    color: var(--sh88-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.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;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Intro Section - Feature Boxes */
.page-ban-ca__intro-section {
    padding: 60px 0;
    background-color: var(--sh88-card-bg);
}

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

.page-ban-ca__feature-item {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--sh88-border);
}

.page-ban-ca__icon-box-media {
    width: 200px;
    height: 200px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--sh88-primary);
    box-shadow: 0 0 15px var(--sh88-glow);
}

.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: var(--sh88-primary);
    margin-bottom: 15px;
}

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

/* Game Types Section */
.page-ban-ca__game-types-section {
    padding: 60px 0;
    background-color: var(--sh88-background);
}

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

.page-ban-ca__game-card {
    background-color: var(--sh88-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--sh88-border);
    display: flex;
    flex-direction: column;
}

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

.page-ban-ca__game-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-ban-ca__game-card-title {
    font-size: 1.4em;
    color: var(--sh88-primary);
    margin-bottom: 10px;
}

.page-ban-ca__game-card-text {
    color: var(--sh88-text-main);
    font-size: 0.95em;
    margin-bottom: 20px;
}

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

.page-ban-ca__guide-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 50px;
    align-items: center;
}

.page-ban-ca__guide-steps {
    flex: 2 1 55%;
    min-width: 300px;
}

.page-ban-ca__step-item {
    background-color: #1a1a1a;
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 5px solid var(--sh88-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-ban-ca__step-title {
    font-size: 1.3em;
    color: var(--sh88-primary);
    margin-bottom: 10px;
}

.page-ban-ca__step-text {
    color: var(--sh88-text-main);
    font-size: 0.95em;
}

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

.page-ban-ca__guide-illustration {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

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

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

.page-ban-ca__tip-item {
    background-color: var(--sh88-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--sh88-border);
}

.page-ban-ca__tip-title {
    font-size: 1.4em;
    color: var(--sh88-primary);
    margin-bottom: 15px;
}

.page-ban-ca__tip-text {
    color: var(--sh88-text-main);
    font-size: 0.95em;
}

.page-ban-ca__tips-illustration {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    margin-top: 40px;
}

/* Promo Section */
.page-ban-ca__promo-section {
    padding: 60px 0;
    background-color: var(--sh88-card-bg);
    text-align: center;
}

.page-ban-ca__promo-list {
    list-style: none;
    padding: 0;
    margin: 50px auto;
    max-width: 800px;
}

.page-ban-ca__promo-item {
    background-color: #1a1a1a;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--sh88-border);
    text-align: left;
}

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

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

.page-ban-ca__promo-illustration {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    margin-top: 40px;
}

/* Why Us Section */
.page-ban-ca__why-us-section {
    padding: 60px 0;
    background-color: var(--sh88-background);
}

.page-ban-ca__why-us-list {
    list-style: none;
    padding: 0;
    margin: 50px auto;
    max-width: 800px;
}

.page-ban-ca__why-us-item {
    background-color: var(--sh88-card-bg);
    padding: 20px 25px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--sh88-border);
    text-align: left;
    color: var(--sh88-text-main);
    font-size: 1em;
}

.page-ban-ca__why-us-item strong {
    color: var(--sh88-primary);
}

.page-ban-ca__why-us-illustration {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    margin-top: 40px;
}

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

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

.page-ban-ca__faq-item {
    background-color: #1a1a1a;
    border: 1px solid var(--sh88-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--sh88-text-main);
}

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

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

.page-ban-ca__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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(--sh88-text-main);
}

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

/* Conclusion Section */
.page-ban-ca__conclusion-section {
    padding: 60px 0;
    background-color: var(--sh88-background);
    text-align: center;
}

/* 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__hero-cta-buttons {
        justify-content: center;
    }
    .page-ban-ca__guide-content {
        flex-direction: column;
    }
    .page-ban-ca__guide-steps, .page-ban-ca__guide-image {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-ban-ca__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px !important;
    }
    .page-ban-ca__hero-container {
        padding: 20px 15px !important;
        gap: 20px;
    }
    .page-ban-ca__hero-title {
        font-size: 2em !important;
    }
    .page-ban-ca__hero-description {
        font-size: 1em !important;
    }
    .page-ban-ca__hero-cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-ban-ca__btn-primary, .page-ban-ca__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 10px 15px !important;
        font-size: 0.9em !important;
    }

    /* Intro Section (Module 1) */
    .page-ban-ca__intro-section {
        padding: 40px 0 !important;
    }
    .page-ban-ca__container {
        padding: 20px 15px !important;
    }
    .page-ban-ca__section-title {
        font-size: 1.8em !important;
    }
    .page-ban-ca__section-description {
        font-size: 0.95em !important;
        margin-bottom: 30px !important;
    }
    .page-ban-ca__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    .page-ban-ca__icon-box-media {
        width: 150px;
        height: 150px;
        border-width: 2px;
    }
    .page-ban-ca__icon-box-media img {
        height: 100% !important; /* Ensure perfect circle fill */
        object-fit: cover !important;
    }
    .page-ban-ca__feature-title {
        font-size: 1.3em !important;
    }

    /* Game Types Section */
    .page-ban-ca__game-types-section {
        padding: 40px 0 !important;
    }
    .page-ban-ca__game-list-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    .page-ban-ca__game-card-image {
        height: 180px; /* Adjust height for smaller screens */
    }
    .page-ban-ca__game-card-title {
        font-size: 1.2em !important;
    }
    .page-ban-ca__btn-small {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Guide Section */
    .page-ban-ca__guide-section {
        padding: 40px 0 !important;
    }
    .page-ban-ca__guide-content {
        gap: 20px;
        margin-top: 30px;
    }
    .page-ban-ca__step-title {
        font-size: 1.2em !important;
    }
    .page-ban-ca__guide-illustration {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Tips Section */
    .page-ban-ca__tips-section {
        padding: 40px 0 !important;
    }
    .page-ban-ca__tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    .page-ban-ca__tip-title {
        font-size: 1.2em !important;
    }
    .page-ban-ca__tips-illustration {
        max-width: 100% !important;
        height: auto !important;
        margin-top: 30px;
    }

    /* Promo Section */
    .page-ban-ca__promo-section {
        padding: 40px 0 !important;
    }
    .page-ban-ca__promo-list {
        margin-top: 30px;
    }
    .page-ban-ca__promo-title {
        font-size: 1.2em !important;
    }
    .page-ban-ca__promo-illustration {
        max-width: 100% !important;
        height: auto !important;
        margin-top: 30px;
    }

    /* Why Us Section */
    .page-ban-ca__why-us-section {
        padding: 40px 0 !important;
    }
    .page-ban-ca__why-us-list {
        margin-top: 30px;
    }
    .page-ban-ca__why-us-illustration {
        max-width: 100% !important;
        height: auto !important;
        margin-top: 30px;
    }

    /* FAQ Section */
    .page-ban-ca__faq-section {
        padding: 40px 0 !important;
    }
    .page-ban-ca__faq-list {
        margin-top: 30px;
    }
    .page-ban-ca__faq-question {
        font-size: 1em !important;
        padding: 15px 20px !important;
    }
    .page-ban-ca__faq-answer {
        padding: 0 20px 15px !important;
        font-size: 0.95em !important;
    }

    /* Conclusion Section */
    .page-ban-ca__conclusion-section {
        padding: 40px 0 !important;
    }

    /* General image and container rules for mobile */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-ban-ca__section, .page-ban-ca__card, .page-ban-ca__container, .page-ban-ca__hero-section, .page-ban-ca__intro-section, .page-ban-ca__game-types-section, .page-ban-ca__guide-section, .page-ban-ca__tips-section, .page-ban-ca__promo-section, .page-ban-ca__why-us-section, .page-ban-ca__faq-section, .page-ban-ca__conclusion-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}