/* style/ban-ca.css */

:root {
    --primary-color: #C61F1F;
    --secondary-color: #E53030;
    --button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    --card-bg: #2A1212;
    --background-dark: #140C0C;
    --text-light: #FFF1E8;
    --border-color: #6A1E1E;
    --gold-color: #F3C54D;
    --deep-red-color: #7E0D0D;
}

.page-ban-ca {
    color: var(--text-light); /* Default text color for dark background */
    background-color: var(--background-dark);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-ban-ca__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--deep-red-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.page-ban-ca__hero-image-wrapper {
    width: 100%;
    height: auto;
    max-height: 675px; /* Aspect ratio 16:9 for 1200x675 */
    overflow: hidden;
}

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

.page-ban-ca__hero-content {
    padding: 40px 20px;
    max-width: 900px;
    position: relative; /* Ensure content is above any potential background effects */
    z-index: 2;
}

.page-ban-ca__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-ban-ca__subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.page-ban-ca__cta-button {
    display: inline-block;
    background: var(--button-gradient);
    color: var(--text-light);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* General Section Styles */
.page-ban-ca__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--gold-color);
    text-align: center;
    margin-top: 60px;
    margin-bottom: 30px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-ban-ca__section-description {
    font-size: 1rem;
    color: var(--text-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Advantages Section */
.page-ban-ca__advantages-section {
    padding: 60px 0;
    background-color: var(--background-dark);
}

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

.page-ban-ca__advantage-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.page-ban-ca__advantage-card:hover {
    transform: translateY(-10px);
}

.page-ban-ca__advantage-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-ban-ca__card-title {
    font-size: 1.4rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-ban-ca__advantage-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Games Showcase Section */
.page-ban-ca__games-showcase {
    padding: 60px 0;
    background-color: var(--deep-red-color);
}

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

.page-ban-ca__game-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.page-ban-ca__game-card:hover {
    transform: translateY(-10px);
}

.page-ban-ca__game-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-ban-ca__game-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.page-ban-ca__btn-secondary {
    display: inline-block;
    background-color: var(--gold-color);
    color: var(--background-dark);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-ban-ca__btn-secondary:hover {
    background-color: #e0b03a;
}

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

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

.page-ban-ca__step-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    padding-top: 60px; /* Space for step number */
}

.page-ban-ca__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    border: 3px solid var(--gold-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.page-ban-ca__step-title {
    font-size: 1.3rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-ban-ca__step-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.page-ban-ca__btn-small {
    display: inline-block;
    background: var(--button-gradient);
    color: var(--text-light);
    padding: 8px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: opacity 0.3s ease;
    border: none;
    cursor: pointer;
}

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

/* Strategy Section */
.page-ban-ca__strategy-section {
    padding: 60px 0;
    background-color: var(--deep-red-color);
}

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

.page-ban-ca__strategy-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-ban-ca__strategy-title {
    font-size: 1.4rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-ban-ca__strategy-item p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Promotions Section */
.page-ban-ca__promotions-section {
    padding: 60px 0;
    background-color: var(--background-dark);
}

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

.page-ban-ca__promo-list li {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--text-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__promo-list li strong {
    color: var(--gold-color);
}

.page-ban-ca__cta-button--small {
    margin-top: 20px;
    font-size: 1rem;
    padding: 12px 25px;
}

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

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

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

.page-ban-ca__faq-question {
    font-size: 1.2rem;
    color: var(--gold-color);
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    position: relative;
}

.page-ban-ca__faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--gold-color);
    position: absolute;
    right: 20px;
}

.page-ban-ca__faq-item.active .page-ban-ca__faq-question::after {
    content: '-';
}

.page-ban-ca__faq-answer {
    font-size: 1rem;
    color: var(--text-light);
    padding: 0 20px 20px 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-ban-ca__faq-item.active .page-ban-ca__faq-answer {
    max-height: 500px; /* Adjust as needed */
}

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

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

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

    .page-ban-ca__main-title {
        font-size: 2.5rem;
    }

    .page-ban-ca__subtitle {
        font-size: 1rem;
    }

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

    .page-ban-ca__advantages-grid, 
    .page-ban-ca__games-grid, 
    .page-ban-ca__guide-steps, 
    .page-ban-ca__strategy-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

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

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

    .page-ban-ca__hero-image-wrapper, .page-ban-ca__hero-image {
        max-height: 400px !important; /* Adjust height for mobile hero */
    }

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

    .page-ban-ca__main-title {
        font-size: 2rem;
    }

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

    .page-ban-ca__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
    }

    .page-ban-ca__section-title {
        font-size: 1.8rem;
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .page-ban-ca__section-description {
        margin-bottom: 30px;
    }

    .page-ban-ca__advantages-grid, 
    .page-ban-ca__games-grid, 
    .page-ban-ca__guide-steps, 
    .page-ban-ca__strategy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-ban-ca__advantage-card, 
    .page-ban-ca__game-card, 
    .page-ban-ca__step-card, 
    .page-ban-ca__strategy-item,
    .page-ban-ca__promo-list li,
    .page-ban-ca__faq-item {
        padding: 20px;
    }

    .page-ban-ca__advantage-image, .page-ban-ca__game-image {
        max-height: 200px !important;
    }

    .page-ban-ca__card-title, .page-ban-ca__game-title, .page-ban-ca__step-title, .page-ban-ca__strategy-title {
        font-size: 1.3rem;
    }

    .page-ban-ca__btn-secondary, .page-ban-ca__btn-small {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 10px 15px !important;
        font-size: 0.95rem !important;
    }

    /* Ensure all images are responsive */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-ban-ca__hero-section,
    .page-ban-ca__advantages-section .page-ban-ca__container,
    .page-ban-ca__games-showcase .page-ban-ca__container,
    .page-ban-ca__guide-section .page-ban-ca__container,
    .page-ban-ca__strategy-section .page-ban-ca__container,
    .page-ban-ca__promotions-section .page-ban-ca__container,
    .page-ban-ca__faq-section .page-ban-ca__container,
    .page-ban-ca__conclusion-section .page-ban-ca__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-ban-ca__guide-steps,
    .page-ban-ca__games-grid,
    .page-ban-ca__advantages-grid,
    .page-ban-ca__strategy-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .page-ban-ca__faq-question {
        font-size: 1.1rem;
    }
    .page-ban-ca__faq-answer {
        font-size: 0.95rem;
    }
}