/* style/ban-ca.css */

:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --card-bg-color: #17191F;
    --background-color: #0D0E12;
    --text-main-color: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange-color: #D96800;
}

.page-ban-ca {
    font-family: Arial, sans-serif;
    color: var(--text-main-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

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

.page-ban-ca__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-ban-ca__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.page-ban-ca__text-block {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
}

/* Hero Section */
.page-ban-ca__hero-section {
    padding-top: 10px; /* Aligned with shared body padding, avoiding double padding */
    position: relative;
    text-align: center;
    overflow: hidden;
    background: var(--background-color);
}

.page-ban-ca__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-ban-ca__hero-content {
    position: relative;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
}

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

.page-ban-ca__hero-description {
    font-size: 1.2em;
    color: var(--text-main-color);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.page-ban-ca__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-ban-ca__cta-buttons--centered {
    margin-top: 40px;
}

.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: 1.1em;
    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: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange-color) 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-ban-ca__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 165, 58, 0.4);
}

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

.page-ban-ca__btn-secondary:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

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

/* Introduction Section */
.page-ban-ca__introduction-section,
.page-ban-ca__features-section,
.page-ban-ca__games-section,
.page-ban-ca__guide-section,
.page-ban-ca__strategy-section,
.page-ban-ca__promotion-section,
.page-ban-ca__faq-section,
.page-ban-ca__cta-final-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

/* Features Section */
.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-card,
.page-ban-ca__game-card,
.page-ban-ca__promo-card {
    background: var(--card-bg-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border-color);
}

.page-ban-ca__feature-card:hover,
.page-ban-ca__game-card:hover,
.page-ban-ca__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
}

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

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

.page-ban-ca__card-description {
    font-size: 1em;
    color: var(--text-main-color);
    line-height: 1.6;
    flex-grow: 1;
}

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

.page-ban-ca__game-card .page-ban-ca__card-image {
    max-height: 250px;
}

/* Guide Section */
.page-ban-ca__guide-box {
    background: var(--card-bg-color);
    border-radius: 15px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-color);
}

.page-ban-ca__guide-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-ban-ca__guide-card {
    flex: 0 0 auto;
    width: 250px;
    height: 350px; /* Fixed height for vertical card */
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
    text-decoration: none;
}

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

.page-ban-ca__guide-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

/* Adjust vertical position for aesthetic flow */
.page-ban-ca__guide-card--pos-1,
.page-ban-ca__guide-card--pos-5 {
    padding-top: 50px;
}

.page-ban-ca__guide-card--pos-2,
.page-ban-ca__guide-card--pos-4 {
    padding-top: 25px;
}

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

.page-ban-ca__strategy-list li {
    background: var(--card-bg-color);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--primary-color);
    color: var(--text-main-color);
}

.page-ban-ca__strategy-list li strong {
    color: var(--secondary-color);
}

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

.page-ban-ca__promo-card .page-ban-ca__card-image {
    max-height: 200px;
}

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

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

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--secondary-color);
    list-style: none;
}

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

.page-ban-ca__faq-question::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 20px 20px;
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--text-main-color);
}

/* Final CTA Section */
.page-ban-ca__cta-final-content {
    text-align: center;
    padding: 60px 20px;
}

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

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

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

    .page-ban-ca__hero-description {
        font-size: 1.1em;
    }

    .page-ban-ca__features-grid,
    .page-ban-ca__games-grid,
    .page-ban-ca__promotion-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .page-ban-ca__guide-grid {
        gap: 15px;
    }

    .page-ban-ca__guide-card {
        width: 200px;
        height: 280px;
    }

    .page-ban-ca__guide-card--pos-1,
    .page-ban-ca__guide-card--pos-5 {
        padding-top: 30px;
    }

    .page-ban-ca__guide-card--pos-2,
    .page-ban-ca__guide-card--pos-4 {
        padding-top: 15px;
    }

    .page-ban-ca__section-title {
        font-size: 2em;
    }
}

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

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

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

    .page-ban-ca__hero-image-wrapper {
        max-height: 300px;
    }

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

    .page-ban-ca__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

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

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

    .page-ban-ca__btn-primary,
    .page-ban-ca__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    /* Generic image and container responsive styles */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: unset !important; /* Allow smaller images if needed for layout, but still responsive */
        min-height: unset !important;
    }

    .page-ban-ca__section,
    .page-ban-ca__card,
    .page-ban-ca__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-ban-ca__features-grid,
    .page-ban-ca__games-grid,
    .page-ban-ca__promotion-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-ban-ca__feature-card,
    .page-ban-ca__game-card,
    .page-ban-ca__promo-card {
        padding: 20px;
    }

    .page-ban-ca__card-image {
        max-height: 180px;
    }

    /* Guide Box specific mobile rules (5 vertical team cards, 2+3 layout) */
    .page-ban-ca__guide-box {
        padding: 20px 15px;
    }

    .page-ban-ca__guide-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr); /* Base grid for flexible column spans */
        gap: 10px;
    }

    .page-ban-ca__guide-card {
        width: auto;
        height: auto;
        aspect-ratio: 250 / 350; /* Maintain aspect ratio */
        padding-top: 0 !important; /* Reset desktop padding for vertical flow */
    }

    .page-ban-ca__guide-card--pos-1,
    .page-ban-ca__guide-card--pos-2 {
        grid-column: span 3; /* Two cards per row */
    }

    .page-ban-ca__guide-card--pos-3,
    .page-ban-ca__guide-card--pos-4,
    .page-ban-ca__guide-card--pos-5 {
        grid-column: span 2; /* Three cards per row */
    }

    .page-ban-ca__guide-card img {
        border-radius: 8px;
    }

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

    .page-ban-ca__faq-answer {
        padding: 0 15px 15px;
        font-size: 1em;
    }

    /* home_content box (if used for long text with fixed height on desktop) */
    .page-ban-ca__home-content-box {
        max-width: 100%;
        height: auto !important; /* Auto height on mobile */
        overflow: visible !important;
        padding: 10px !important;
        border-radius: 10px;
        box-shadow: none;
    }

    .page-ban-ca__home-content-inner {
        height: auto !important;
        overflow: visible !important;
    }

    /* Blog card section (if present, general responsive for card grids) */
    .page-ban-ca__blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .page-ban-ca__section-title {
        font-size: 1.5em;
    }
    .page-ban-ca__guide-card--pos-1,
    .page-ban-ca__guide-card--pos-2,
    .page-ban-ca__guide-card--pos-3,
    .page-ban-ca__guide-card--pos-4,
    .page-ban-ca__guide-card--pos-5 {
        grid-column: span 6; /* One card per row on very small screens */
    }
}