/* style/bnc.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --login-button-color: #EA7C07;
    --background-light: #FFFFFF;
    --background-dark: #26A9E0;
}

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

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

.page-bnc__text-center {
    text-align: center;
}

.page-bnc__section-title {
    font-size: clamp(2em, 2.5vw, 2.8em);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

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

/* Buttons */
.page-bnc__btn-primary,
.page-bnc__btn-secondary,
.page-bnc__btn-small {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
    text-align: center;
}

.page-bnc__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-bnc__btn-primary:hover {
    background-color: #1a7fb0; /* Darken primary color */
    border-color: #1a7fb0;
}

.page-bnc__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-bnc__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-bnc__btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-bnc__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

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

/* Sections */
.page-bnc__dark-section {
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: 60px 0;
}

.page-bnc__dark-section .page-bnc__section-title {
    color: var(--text-light);
}

.page-bnc__light-bg {
    background-color: var(--background-light);
    color: var(--text-dark);
    padding: 60px 0;
}

/* Hero Section */
.page-bnc__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding for fixed header */
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.page-bnc__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px;
}

.page-bnc__hero-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    padding: 40px 20px;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
    color: var(--text-light);
    margin-top: -150px; /* Overlap with image for visual effect, but text is not on image */
    z-index: 1;
    border-radius: 10px;
}

.page-bnc__main-title {
    font-size: clamp(2.5em, 4vw, 3.5em);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-bnc__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.7;
}

.page-bnc__hero-buttons .page-bnc__btn-primary,
.page-bnc__hero-buttons .page-bnc__btn-secondary {
    font-size: 1.1em;
    padding: 15px 30px;
}

/* Why Choose Section */
.page-bnc__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-bnc__feature-card {
    background-color: var(--background-light);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: var(--text-dark);
}

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

.page-bnc__feature-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

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

.page-bnc__feature-description {
    font-size: 1em;
    line-height: 1.7;
}

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

.page-bnc__game-card {
    background-color: var(--background-light);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--text-dark);
}

.page-bnc__game-image {
    width: 100%;
    height: 200px; /* Fixed height for game images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.page-bnc__game-title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-bnc__game-description {
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* How to Play Section */
.page-bnc__step-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-bnc__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-bnc__step-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-bnc__step-description {
    font-size: 1em;
    line-height: 1.7;
}

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

.page-bnc__promo-card {
    background-color: var(--background-light);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--text-dark);
}

.page-bnc__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for promo images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

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

.page-bnc__promo-description {
    font-size: 0.95em;
    line-height: 1.6;
}

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

.page-bnc__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    color: var(--text-light);
}

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

.page-bnc__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-bnc__faq-item .page-bnc__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    line-height: 1.7;
}

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

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

.page-bnc__faq-item[open] .page-bnc__faq-toggle {
    content: '−';
}

.page-bnc__faq-buttons {
    margin-top: 15px;
    text-align: center;
}

/* General image responsiveness */
.page-bnc img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .page-bnc {
        font-size: 15px;
    }

    .page-bnc__container {
        padding: 15px;
    }

    .page-bnc__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-bnc__text-block {
        font-size: 1em;
    }

    /* HERO Section */
    .page-bnc__hero-section {
        padding-top: 10px !important; /* Small top padding for fixed header */
        padding-bottom: 30px;
    }

    .page-bnc__hero-content {
        padding: 30px 15px;
        margin-top: -80px; /* Adjust overlap for mobile */
    }

    .page-bnc__main-title {
        font-size: 2em;
        line-height: 1.3;
    }

    .page-bnc__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-bnc__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-bnc__hero-buttons .page-bnc__btn-primary,
    .page-bnc__hero-buttons .page-bnc__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    /* Why Choose Section */
    .page-bnc__features-grid,
    .page-bnc__games-grid,
    .page-bnc__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-bnc__feature-card,
    .page-bnc__game-card,
    .page-bnc__promo-card {
        padding: 20px;
    }

    .page-bnc__feature-image,
    .page-bnc__game-image,
    .page-bnc__promo-image {
        height: 180px; /* Adjust image height for mobile cards */
    }

    .page-bnc__feature-title,
    .page-bnc__game-title,
    .page-bnc__promo-title {
        font-size: 1.3em;
    }

    /* How to Play Section */
    .page-bnc__step-item {
        padding: 20px;
    }

    .page-bnc__step-title {
        font-size: 1.3em;
    }

    /* FAQ Section */
    .page-bnc__faq-item summary {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-bnc__faq-item .page-bnc__faq-answer {
        padding: 0 20px 15px;
    }

    .page-bnc__faq-buttons .page-bnc__btn-primary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 10px 15px;
    }

    /* CTA Buttons */
    .page-bnc__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-bnc__cta-buttons .page-bnc__btn-primary,
    .page-bnc__cta-buttons .page-bnc__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
    }

    /* General image and container responsiveness */
    .page-bnc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    
    .page-bnc__section,
    .page-bnc__card,
    .page-bnc__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-bnc__cta-final-section .page-bnc__container {
        padding: 30px 15px;
    }
}