/* style/game-guides-ban-ca.css */

:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --card-bg: #FFFFFF;
    --background-color: #F4F7FB;
    --text-main-color: #1F2D3D;
    --text-black: #000000;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
}

.page-game-guides-ban-ca {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Default text color for light body background */
    background-color: var(--background-color); /* Matches #F4F7FB */
    line-height: 1.6;
}

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

/* Hero Carousel Section */
.page-game-guides-ban-ca__hero-carousel-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, relies on body padding-top from shared.css */
    background-color: var(--primary-color);
}

.page-game-guides-ban-ca__hero-slider {
    position: relative;
    width: 100%;
    height: 600px; /* Fixed height for desktop carousel */
}

.page-game-guides-ban-ca__hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /* Content at bottom */
    padding-bottom: 50px;
}

.page-game-guides-ban-ca__hero-slide.is-active {
    opacity: 1;
}

.page-game-guides-ban-ca__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-game-guides-ban-ca__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
    margin-bottom: 20px;
}

.page-game-guides-ban-ca__hero-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-game-guides-ban-ca__hero-subtitle {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-game-guides-ban-ca__hero-description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-guides-ban-ca__hero-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-guides-ban-ca__hero-button:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    transform: translateY(-2px);
}

.page-game-guides-ban-ca__hero-slider-prev,
.page-game-guides-ban-ca__hero-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 24px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.page-game-guides-ban-ca__hero-slider-prev:hover,
.page-game-guides-ban-ca__hero-slider-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.page-game-guides-ban-ca__hero-slider-prev {
    left: 20px;
}

.page-game-guides-ban-ca__hero-slider-next {
    right: 20px;
}

.page-game-guides-ban-ca__hero-slider-prev::before {
    content: '<';
}

.page-game-guides-ban-ca__hero-slider-next::before {
    content: '>';
}

.page-game-guides-ban-ca__hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.page-game-guides-ban-ca__hero-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-game-guides-ban-ca__hero-dot.is-active {
    background: #ffffff;
}

/* General Section Styles */
.page-game-guides-ban-ca__intro-section,
.page-game-guides-ban-ca__content-section,
.page-game-guides-ban-ca__strategy-section,
.page-game-guides-ban-ca__features-section,
.page-game-guides-ban-ca__promotion-cta-section,
.page-game-guides-ban-ca__conclusion-section {
    padding: 60px 0;
    text-align: center;
}

.page-game-guides-ban-ca__section-title {
    font-size: 2.5rem;
    color: var(--text-black);
    margin-bottom: 20px;
    font-weight: 700;
}

.page-game-guides-ban-ca__section-description {
    font-size: 1.1rem;
    color: #333333;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.page-game-guides-ban-ca__section-description--small {
    font-size: 0.95rem;
    margin-top: 20px;
}

.page-game-guides-ban-ca__subsection-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: left;
}

/* CTA Buttons */
.page-game-guides-ban-ca__cta-button {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-game-guides-ban-ca__cta-button--primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(47, 107, 255, 0.3);
}

.page-game-guides-ban-ca__cta-button--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(47, 107, 255, 0.4);
}

.page-game-guides-ban-ca__cta-button--secondary {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-game-guides-ban-ca__cta-button--secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: var(--primary-color);
    color: #ffffff;
}

.page-game-guides-ban-ca__cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Guide Box Section (5 vertical team cards) */
.page-game-guides-ban-ca__guide-box {
    background-color: #f4f4f4;
    padding: 80px 0;
}

.page-game-guides-ban-ca__guide-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.page-game-guides-ban-ca__guide-card {
    flex: 0 0 calc(20% - 16px); /* 5 cards per row, accounting for gap */
    max-width: calc(20% - 16px);
    text-decoration: none;
    color: var(--text-main-color);
    transition: transform 0.3s ease;
}

.page-game-guides-ban-ca__guide-card img {
    width: 100%;
    height: 350px; /* Fixed height for vertical image */
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

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

.page-game-guides-ban-ca__guide-card:hover img {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Vertical alignment for guide cards */
.page-game-guides-ban-ca__guide-card--pos-1 {
    padding-top: 50px;
}

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

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

.page-game-guides-ban-ca__guide-card--pos-5 {
    padding-top: 50px;
}

/* Content Section */
.page-game-guides-ban-ca__content-section .page-game-guides-ban-ca__container {
    text-align: left;
}

.page-game-guides-ban-ca__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 25px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-game-guides-ban-ca__image-figure {
    margin: 30px 0;
}

.page-game-guides-ban-ca__image-caption {
    font-style: italic;
    font-size: 0.95rem;
    color: #666666;
    text-align: center;
    margin-top: 10px;
}

.page-game-guides-ban-ca__list {
    list-style: disc inside;
    margin: 20px 0 20px 20px;
    text-align: left;
}

.page-game-guides-ban-ca__list-item {
    margin-bottom: 10px;
    font-size: 1.05rem;
    color: #333333;
}

/* Strategy Section */
.page-game-guides-ban-ca__strategy-section .page-game-guides-ban-ca__container {
    text-align: left;
}

/* Features Section */
.page-game-guides-ban-ca__features-section {
    background-color: var(--card-bg);
    padding: 80px 0;
}

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

.page-game-guides-ban-ca__feature-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-game-guides-ban-ca__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-game-guides-ban-ca__feature-image {
    width: 100%;
    height: 250px; /* Fixed height for feature images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-game-guides-ban-ca__feature-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-game-guides-ban-ca__feature-description {
    font-size: 1rem;
    color: #555555;
}

/* Promotion CTA Section */
.page-game-guides-ban-ca__promotion-cta-section {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    padding: 80px 0;
}

.page-game-guides-ban-ca__promotion-cta-section .page-game-guides-ban-ca__section-title,
.page-game-guides-ban-ca__promotion-cta-section .page-game-guides-ban-ca__section-description {
    color: #ffffff;
}

/* Conclusion Section */
.page-game-guides-ban-ca__conclusion-section {
    padding-bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-game-guides-ban-ca__hero-slider {
        height: 500px;
    }

    .page-game-guides-ban-ca__hero-content {
        padding: 15px;
        margin-bottom: 10px;
    }

    .page-game-guides-ban-ca__section-title {
        font-size: 2.2rem;
    }

    .page-game-guides-ban-ca__subsection-title {
        font-size: 1.6rem;
    }

    .page-game-guides-ban-ca__guide-card {
        flex: 0 0 calc(33.333% - 14px); /* 3 cards per row */
        max-width: calc(33.333% - 14px);
    }

    .page-game-guides-ban-ca__guide-card--pos-1,
    .page-game-guides-ban-ca__guide-card--pos-5 {
        padding-top: 0;
    }

    .page-game-guides-ban-ca__guide-card--pos-2,
    .page-game-guides-ban-ca__guide-card--pos-4 {
        padding-top: 0;
    }

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

@media (max-width: 768px) {
    .page-game-guides-ban-ca__hero-carousel-section {
        padding-top: 10px !important;
    }

    .page-game-guides-ban-ca__hero-slider {
        height: 400px;
    }

    .page-game-guides-ban-ca__hero-slider-prev,
    .page-game-guides-ban-ca__hero-slider-next {
        padding: 10px 8px;
        font-size: 20px;
        top: 45%;
    }

    .page-game-guides-ban-ca__hero-content {
        padding: 10px;
        margin-bottom: 5px;
        max-width: 90%;
    }

    .page-game-guides-ban-ca__hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 10px;
    }

    .page-game-guides-ban-ca__hero-subtitle {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 10px;
    }

    .page-game-guides-ban-ca__hero-description {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .page-game-guides-ban-ca__hero-button {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .page-game-guides-ban-ca__intro-section,
    .page-game-guides-ban-ca__content-section,
    .page-game-guides-ban-ca__strategy-section,
    .page-game-guides-ban-ca__features-section,
    .page-game-guides-ban-ca__promotion-cta-section,
    .page-game-guides-ban-ca__conclusion-section {
        padding: 40px 0;
    }

    .page-game-guides-ban-ca__container {
        padding: 0 15px; /* Add horizontal padding for mobile */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-game-guides-ban-ca__section-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .page-game-guides-ban-ca__subsection-title {
        font-size: 1.4rem;
        margin-top: 30px;
    }

    .page-game-guides-ban-ca__section-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    /* Guide Box - Mobile specific (上二下三) */
    .page-game-guides-ban-ca__guide-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
        margin-top: 30px;
    }

    .page-game-guides-ban-ca__guide-card {
        padding-top: 0 !important; /* Reset vertical alignment */
        flex: unset; /* Remove flex basis */
        max-width: unset; /* Remove max-width */
    }

    .page-game-guides-ban-ca__guide-card--pos-1,
    .page-game-guides-ban-ca__guide-card--pos-2 {
        grid-column: span 3;
    }

    .page-game-guides-ban-ca__guide-card--pos-3,
    .page-game-guides-ban-ca__guide-card--pos-4,
    .page-game-guides-ban-ca__guide-card--pos-5 {
        grid-column: span 2;
    }

    .page-game-guides-ban-ca__guide-card img {
        height: 250px; /* Adjust height for mobile vertical cards */
        object-fit: cover; /* Use cover for better fit on mobile */
    }

    /* General Images Responsive */
    .page-game-guides-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
        box-sizing: border-box !important;
    }

    /* Buttons Responsive */
    .page-game-guides-ban-ca__cta-button,
    .page-game-guides-ban-ca a[class*="button"],
    .page-game-guides-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 !important;
        padding-right: 15px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-game-guides-ban-ca__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }

    .page-game-guides-ban-ca__features-grid {
        grid-template-columns: 1fr;
    }

    .page-game-guides-ban-ca__feature-image {
        height: 200px; /* Adjust height for mobile */
    }
}