/* Base styles for the Bắn Cá page */
.page-ban-ca {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Light text on dark body background */
    background-color: transparent; /* Body background from shared.css */
}

/* Color variables based on provided palette */
:root {
    --color-primary: #113B7A;
    --color-secondary: #1D5FD1;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --color-deep-navy: #08162B; /* This is the body background color */
}

/* General typography */
.page-ban-ca__main-title,
.page-ban-ca__section-title,
.page-ban-ca__sub-title,
.page-ban-ca__feature-title,
.page-ban-ca__promo-card-title {
    color: var(--text-main);
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 15px;
}

.page-ban-ca__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive H1 font size */
    letter-spacing: -0.02em;
}

.page-ban-ca__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    text-align: center;
    margin-bottom: 25px;
}

.page-ban-ca__sub-title {
    font-size: clamp(1.4em, 2.5vw, 1.8em);
    margin-top: 30px;
}

.page-ban-ca__feature-title,
.page-ban-ca__promo-card-title {
    font-size: clamp(1.2em, 2vw, 1.5em);
    text-align: center;
}

.page-ban-ca__hero-description,
.page-ban-ca__section-description,
.page-ban-ca__paragraph,
.page-ban-ca__feature-text,
.page-ban-ca__promo-card-text,
.page-ban-ca__faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.1em;
    margin-bottom: 1em;
}

.page-ban-ca__section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

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

/* Button styles */
.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-ban-ca__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-ban-ca__btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--border-color);
    box-shadow: none;
}

.page-ban-ca__btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.page-ban-ca__cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
}

/* HERO Section */
.page-ban-ca__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--color-deep-navy); /* Dark background for hero */
}

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

.page-ban-ca__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    color: var(--text-main); /* Ensure light text on dark background */
}

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

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

/* Intro Section */
.page-ban-ca__intro-section {
    padding: 60px 0;
    background-color: var(--color-deep-navy); /* Use deep navy for dark section */
    color: var(--text-main);
}

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

.page-ban-ca__feature-item {
    text-align: center;
    padding: 25px;
    background-color: var(--card-bg); /* Card background */
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-ban-ca__feature-item:hover {
    transform: translateY(-5px);
}

.page-ban-ca__icon-box-media {
    width: 200px; /* Specific size for square/circle */
    height: 200px; /* Specific size for square/circle */
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold-color); /* Gold border for emphasis */
    box-shadow: 0 0 15px var(--glow-color);
    flex-shrink: 0;
}

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

/* Gameplay Section */
.page-ban-ca__gameplay-section {
    padding: 60px 0;
    background-color: var(--color-deep-navy); /* Consistent dark background */
}

.page-ban-ca__content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.page-ban-ca__content-text {
    flex: 1 1 55%;
    min-width: 300px;
}

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

.page-ban-ca__content-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__btn-inline {
    margin-top: 20px;
}

/* Promo Section */
.page-ban-ca__promo-section {
    padding: 60px 0;
    background-color: var(--color-deep-navy);
}

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

.page-ban-ca__promo-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding-bottom: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-ban-ca__promo-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistent card image */
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    margin-bottom: 20px;
    display: block; /* Ensure no extra space below image */
}

.page-ban-ca__promo-card-title {
    padding: 0 20px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.page-ban-ca__promo-card-text {
    padding: 0 20px;
    margin-bottom: 25px;
    flex-grow: 1; /* Push button to bottom */
}

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

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

.page-ban-ca__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--card-bg);
    position: relative;
    list-style: none; /* Hide default marker for details/summary */
}

.page-ban-ca__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-ban-ca__faq-qtext {
    flex-grow: 1;
}

.page-ban-ca__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    margin-left: 15px;
    color: var(--gold-color);
}

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

.page-ban-ca__faq-item[open] .page-ban-ca__faq-answer {
    max-height: 500px; /* Sufficiently large to show content */
    transition: max-height 0.5s ease-in;
}

/* Register CTA Section */
.page-ban-ca__register-cta {
    padding: 60px 0;
    background-color: var(--color-primary); /* Use primary color for CTA background */
    text-align: center;
    color: #ffffff;
}

.page-ban-ca__register-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* --- Responsive Styles --- */

/* Mobile general image and container rules */
@media (max-width: 768px) {
    .page-ban-ca__container {
        padding: 20px 15px;
    }

    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-ban-ca__hero-section,
    .page-ban-ca__intro-section,
    .page-ban-ca__gameplay-section,
    .page-ban-ca__promo-section,
    .page-ban-ca__faq-section,
    .page-ban-ca__register-cta {
        padding: 30px 0 !important;
    }

    /* HERO Section mobile */
    .page-ban-ca__hero-container {
        flex-direction: column;
        padding: 20px 15px;
        gap: 20px;
    }
    .page-ban-ca__hero-content {
        order: 2; /* Content below image on mobile */
        text-align: center;
    }
    .page-ban-ca__hero-image {
        order: 1; /* Image above content on mobile */
        min-width: unset;
    }
    .page-ban-ca__main-title {
        font-size: 2em !important;
    }
    .page-ban-ca__hero-description {
        font-size: 1em;
    }
    .page-ban-ca__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-ban-ca__btn-primary,
    .page-ban-ca__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        min-width: unset;
        font-size: 1em;
        padding: 12px 20px;
    }

    /* Module 1 (Intro Section) mobile */
    .page-ban-ca__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-ban-ca__icon-box-media {
        width: 150px; /* Adjust size for mobile */
        height: 150px; /* Adjust size for mobile */
        border-width: 2px;
    }
    .page-ban-ca__feature-title {
        font-size: 1.3em;
    }
    .page-ban-ca__feature-text {
        font-size: 0.95em;
    }

    /* Gameplay Section mobile */
    .page-ban-ca__content-grid {
        flex-direction: column;
        gap: 20px;
    }
    .page-ban-ca__content-text,
    .page-ban-ca__content-image {
        min-width: unset;
        width: 100%;
    }
    .page-ban-ca__sub-title {
        font-size: 1.5em;
    }
    .page-ban-ca__paragraph {
        font-size: 1em;
    }
    .page-ban-ca__btn-inline {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: auto;
        margin-right: auto;
    }

    /* Promo Section mobile */
    .page-ban-ca__promo-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-ban-ca__promo-card-image {
        height: 180px;
    }
    .page-ban-ca__promo-card-title {
        font-size: 1.3em;
    }
    .page-ban-ca__promo-card-text {
        font-size: 0.95em;
    }

    /* FAQ Section mobile */
    .page-ban-ca__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-ban-ca__faq-answer {
        padding: 0 20px 15px;
        font-size: 1em;
    }
    .page-ban-ca__faq-toggle {
        font-size: 1.3em;
    }

    /* Register CTA Section mobile */
    .page-ban-ca__register-flex {
        padding: 20px 15px;
    }
    .page-ban-ca__register-cta .page-ban-ca__section-title {
        font-size: 1.8em !important;
    }
    .page-ban-ca__register-cta .page-ban-ca__section-description {
        font-size: 1em;
    }
}