/* style/bnc.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E; /* Main */
    --color-secondary: #22C768; /* Accent */
    --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
    --color-card-bg: #11271B; /* Card BG */
    --color-background: #08160F; /* Background */
    --color-text-main: #F2FFF6; /* Text Main */
    --color-text-secondary: #A7D9B8; /* Text Secondary */
    --color-border: #2E7A4E; /* Border */
    --color-glow: #57E38D; /* Glow */
    --color-gold: #F2C14E; /* Gold */
    --color-divider: #1E3A2A; /* Divider */
    --color-deep-green: #0A4B2C; /* Deep Green */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-dark-grey: #333333;
    --color-light-grey: #f0f0f0;
}

.page-bnc {
    background-color: var(--color-background); /* Overall page background */
    color: var(--color-text-main); /* Default text color for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Base container for content sections */
.page-bnc__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Section titles */
.page-bnc__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: var(--color-gold);
    text-shadow: 0 0 8px var(--color-glow);
}

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

/* Hero Section */
.page-bnc__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px; /* Small top padding, more bottom padding */
    background-color: var(--color-deep-green); /* Fallback/base for hero */
}

.page-bnc__hero-image-wrapper {
    width: 100%;
    max-height: 70vh; /* Limit height to prevent excessive space */
    overflow: hidden;
    margin-bottom: 20px; /* Space between image and text */
}

.page-bnc__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Darken image slightly for text readability */
}

.page-bnc__hero-content {
    position: relative;
    z-index: 1; /* Ensure content is above image */
    padding: 0 20px;
    max-width: 900px;
}

.page-bnc__main-title {
    font-size: clamp(2.5em, 5vw, 4em); /* Responsive font size */
    font-weight: 900;
    color: var(--color-gold);
    text-shadow: 0 0 15px var(--color-glow);
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-bnc__hero-description {
    font-size: 1.2em;
    color: var(--color-text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.page-bnc__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
    gap: 20px;
}

.page-bnc__btn-primary,
.page-bnc__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; /* Crucial for responsive buttons */
    max-width: 100%; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

.page-bnc__btn-primary {
    background: var(--color-button-gradient);
    color: var(--color-white);
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-bnc__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-bnc__btn-secondary {
    background: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
    box-shadow: 0 0 10px rgba(242, 193, 78, 0.3);
}

.page-bnc__btn-secondary:hover {
    background: var(--color-gold);
    color: var(--color-black);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

/* Section Styles */
.page-bnc__intro-section,
.page-bnc__promotions-section,
.page-bnc__ux-section {
    background-color: var(--color-white); /* Light background for contrast */
    color: var(--color-dark-grey); /* Dark text for light background */
}

.page-bnc__dark-bg {
    background-color: var(--color-background);
    color: var(--color-text-main);
}

.page-bnc__light-bg {
    background-color: var(--color-white);
    color: var(--color-dark-grey);
}

.page-bnc__intro-section .page-bnc__section-title,
.page-bnc__promotions-section .page-bnc__section-title,
.page-bnc__ux-section .page-bnc__section-title {
    color: var(--color-dark-grey);
    text-shadow: none;
}

.page-bnc__intro-section .page-bnc__section-description,
.page-bnc__promotions-section .page-bnc__section-description,
.page-bnc__ux-section .page-bnc__section-description {
    color: var(--color-dark-grey);
}

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

.page-bnc__feature-item {
    background-color: var(--color-white); /* Always light for features in light section */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
    color: var(--color-dark-grey);
}

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

.page-bnc__feature-image {
    width: 100%;
    height: auto;
    max-width: 300px;
    margin: 0 auto 20px;
    border-radius: 8px;
    display: block;
}

.page-bnc__feature-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.page-bnc__feature-text {
    font-size: 1em;
    color: var(--color-dark-grey);
}

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

.page-bnc__game-card {
    background-color: var(--color-card-bg); /* Dark card background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
}

.page-bnc__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-bnc__game-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-bottom: 1px solid var(--color-divider);
}

.page-bnc__game-title {
    font-size: 1.4em;
    font-weight: bold;
    margin: 20px 15px 10px;
    color: var(--color-gold);
}

.page-bnc__game-text {
    font-size: 0.95em;
    margin: 0 15px 20px;
    color: var(--color-text-secondary);
}

.page-bnc__game-card .page-bnc__btn-secondary {
    margin-bottom: 20px;
}

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

.page-bnc__promo-card {
    background-color: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
    color: var(--color-dark-grey);
}

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

.page-bnc__promo-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-bottom: 1px solid var(--color-light-grey);
}

.page-bnc__promo-title {
    font-size: 1.4em;
    font-weight: bold;
    margin: 20px 15px 10px;
    color: var(--color-primary);
}

.page-bnc__promo-text {
    font-size: 0.95em;
    margin: 0 15px 20px;
    color: var(--color-dark-grey);
}

.page-bnc__promo-card .page-bnc__btn-primary {
    margin-bottom: 20px;
}

.page-bnc__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Guide Section */
.page-bnc__guide-content {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 40px;
    margin-top: 40px;
    align-items: flex-start;
}

.page-bnc__guide-text {
    flex: 2;
    min-width: 300px;
    color: var(--color-text-main);
}

.page-bnc__guide-subtitle {
    font-size: 1.6em;
    font-weight: bold;
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--color-gold);
}

.page-bnc__guide-text p {
    margin-bottom: 15px;
    color: var(--color-text-secondary);
}

.page-bnc__guide-image-wrapper {
    flex: 1;
    min-width: 280px;
    max-width: 500px;
    margin: 0 auto; /* Center image on smaller screens */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
}

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

/* UX Section */
.page-bnc__ux-section .page-bnc__feature-item {
    background-color: var(--color-white);
    color: var(--color-dark-grey);
}
.page-bnc__ux-section .page-bnc__feature-title {
    color: var(--color-primary);
}
.page-bnc__ux-section .page-bnc__feature-text {
    color: var(--color-dark-grey);
}


/* FAQ Section */
.page-bnc__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-bnc__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--color-gold);
    background-color: var(--color-deep-green);
    transition: background-color 0.3s ease;
}

.page-bnc__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-bnc__faq-item summary:hover {
    background-color: var(--color-deep-green);
    filter: brightness(1.2);
}

.page-bnc__faq-qtext {
    flex-grow: 1;
}

.page-bnc__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

.page-bnc__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--color-text-secondary);
    background-color: var(--color-card-bg);
}

.page-bnc__faq-answer p {
    margin: 0;
}

/* Final CTA Section */
.page-bnc__cta-final {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--color-deep-green); /* Consistent dark background */
}

.page-bnc__cta-final .page-bnc__section-title {
    color: var(--color-gold);
}

.page-bnc__cta-final .page-bnc__section-description {
    color: var(--color-text-secondary);
    margin-bottom: 40px;
}

/* Responsive Images, Videos, Buttons (Strict Rules) */
.page-bnc img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure images cover their area without distortion */
}

.page-bnc video,
.page-bnc__video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

.page-bnc__video-section,
.page-bnc__video-container,
.page-bnc__video-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-bnc__cta-button,
.page-bnc__btn-primary,
.page-bnc__btn-secondary,
.page-bnc a[class*="button"],
.page-bnc a[class*="btn"] {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .page-bnc__container {
        padding: 20px 15px; /* Adjust padding for smaller screens */
    }

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

    .page-bnc__hero-section {
        padding: 10px 0 40px; /* Adjust hero padding */
    }

    .page-bnc__hero-content {
        padding: 0 15px;
    }

    .page-bnc__main-title {
        font-size: clamp(2em, 8vw, 3em); /* Adjust H1 for mobile */
    }

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

    .page-bnc__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
    }

    .page-bnc__btn-primary,
    .page-bnc__btn-secondary {
        width: 100%; /* Full width buttons on mobile */
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-bnc__feature-grid,
    .page-bnc__game-grid,
    .page-bnc__promotion-cards {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

    .page-bnc__guide-content {
        flex-direction: column; /* Stack guide content vertically */
    }

    .page-bnc__guide-image-wrapper {
        order: -1; /* Move image above text on mobile */
        margin-bottom: 20px;
    }

    /* Force responsive for all images */
    .page-bnc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* Force responsive for all videos */
    .page-bnc video,
    .page-bnc__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* Video containers mobile adaptation */
    .page-bnc__video-section,
    .page-bnc__video-container,
    .page-bnc__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-bnc__video-section {
        padding-top: 10px !important; /* Small top padding for video section */
    }

    /* Containers for general content */
    .page-bnc__section,
    .page-bnc__card,
    .page-bnc__container,
    .page-bnc__hero-image-wrapper,
    .page-bnc__guide-image-wrapper,
    .page-bnc__feature-item,
    .page-bnc__game-card,
    .page-bnc__promo-card,
    .page-bnc__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by .page-bnc__container or specific elements */
    }

    /* Ensure text elements within cards/features also respect padding */
    .page-bnc__feature-item,
    .page-bnc__game-card,
    .page-bnc__promo-card {
        padding: 20px; /* Adjust padding for mobile cards */
    }
}