/* style/bnc.css */

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

.page-bnc {
    background-color: var(--bnc-background);
    color: var(--bnc-text-main);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom for footer */
}

/* Hero Section */
.page-bnc__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    box-sizing: border-box;
    overflow: hidden; /* Ensure content does not overflow */
}

.page-bnc__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 30px; /* Space between image and content */
}

.page-bnc__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-bnc__hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.page-bnc__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp for H1 */
    color: var(--bnc-gold-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

.page-bnc__hero-description {
    font-size: 1.2rem;
    color: var(--bnc-text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.page-bnc__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

.page-bnc__btn-primary,
.page-bnc__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure button adapts to container */
    box-sizing: border-box;
    text-align: center;
}

.page-bnc__btn-primary {
    background: var(--bnc-button-gradient);
    color: var(--bnc-text-main); /* White text for dark button */
    border: 2px solid transparent;
}

.page-bnc__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

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

.page-bnc__btn-secondary:hover {
    background: var(--bnc-gold-color);
    color: var(--bnc-background);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* General Section Styling */
.page-bnc__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-bnc__section-title {
    font-size: 2.5rem;
    color: var(--bnc-gold-color);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-bnc__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--bnc-primary-color);
    border-radius: 2px;
}

.page-bnc__text-block {
    font-size: 1.1rem;
    color: var(--bnc-text-main);
    margin-bottom: 30px;
}

.page-bnc__text-block p {
    margin-bottom: 15px;
    color: var(--bnc-text-main); /* Ensure contrast */
}

.page-bnc__text-block strong {
    color: var(--bnc-gold-color);
}

.page-bnc__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px 0;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

/* About Section */
.page-bnc__about-section {
    padding: 80px 0;
    background-color: var(--bnc-card-bg); /* Dark background for this section */
    color: var(--bnc-text-main);
}

/* Features Section */
.page-bnc__features-section {
    padding: 80px 0;
    background-color: var(--bnc-background); /* Default background */
}

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

.page-bnc__card {
    background-color: var(--bnc-card-bg); /* Dark card background */
    color: var(--bnc-text-main);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--bnc-border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-bnc__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-bnc__card-title {
    font-size: 1.5rem;
    color: var(--bnc-gold-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-bnc__card-text {
    font-size: 1rem;
    color: var(--bnc-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-bnc__image-card {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin-top: 20px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

/* How To Play Section */
.page-bnc__how-to-play-section {
    padding: 80px 0;
    background-color: var(--bnc-background); /* Default background */
}

.page-bnc__ordered-list {
    list-style: none;
    counter-reset: item;
    padding-left: 0;
    margin-bottom: 30px;
}

.page-bnc__ordered-list li {
    counter-increment: item;
    margin-bottom: 15px;
    padding-left: 40px;
    position: relative;
    font-size: 1.1rem;
    color: var(--bnc-text-main);
}

.page-bnc__ordered-list li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--bnc-primary-color);
    color: var(--bnc-text-main);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Strategies Section */
.page-bnc__strategies-section {
    padding: 80px 0;
    background-color: var(--bnc-card-bg); /* Dark background for this section */
    color: var(--bnc-text-main);
}

.page-bnc__unordered-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.page-bnc__unordered-list li {
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
    font-size: 1.1rem;
    color: var(--bnc-text-main);
}

.page-bnc__unordered-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--bnc-gold-color);
    font-size: 1.5rem;
    line-height: 1;
}

/* Promotions Section */
.page-bnc__promotions-section {
    padding: 80px 0;
    background-color: var(--bnc-background); /* Default background */
}

/* FAQ Section */
.page-bnc__faq-section {
    padding: 80px 0;
    background-color: var(--bnc-card-bg); /* Dark background for this section */
    color: var(--bnc-text-main);
}

.page-bnc__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-bnc__faq-item {
    background-color: var(--bnc-deep-green);
    border: 1px solid var(--bnc-border-color);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.page-bnc__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--bnc-gold-color);
    background-color: var(--bnc-deep-green);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-bnc__faq-item[open] .page-bnc__faq-question {
    background-color: var(--bnc-primary-color);
    color: var(--bnc-text-main);
}

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

.page-bnc__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 20px;
    transition: transform 0.3s ease;
}

.page-bnc__faq-item[open] .page-bnc__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-bnc__faq-answer {
    padding: 0 30px 20px;
    font-size: 1rem;
    color: var(--bnc-text-secondary);
    line-height: 1.6;
}

.page-bnc__faq-answer p {
    margin-bottom: 10px;
}


/* Contact Section */
.page-bnc__contact-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--bnc-background); /* Default background */
}

.page-bnc__contact-text {
    font-size: 1.1rem;
    color: var(--bnc-text-main);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-bnc__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-bnc__section-title {
        font-size: 2rem;
    }
    .page-bnc__features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

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

    .page-bnc__hero-section {
        padding: 10px 15px 40px;
    }

    .page-bnc__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-bnc__hero-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .page-bnc__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 300px; /* Constrain buttons for mobile */
        padding: 0 15px;
    }

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

    .page-bnc__container {
        padding: 0 15px;
    }

    .page-bnc__section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .page-bnc__text-block,
    .page-bnc__text-block p,
    .page-bnc__ordered-list li,
    .page-bnc__unordered-list li {
        font-size: 1rem;
    }

    .page-bnc__card {
        padding: 20px;
    }

    .page-bnc__card-title {
        font-size: 1.3rem;
    }

    .page-bnc__card-text {
        font-size: 0.95rem;
    }

    .page-bnc__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }

    .page-bnc__faq-answer {
        font-size: 0.95rem;
        padding: 0 20px 15px;
    }

    /* Mobile Image/Video Adapation - Mandatory */
    .page-bnc img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-bnc video,
    .page-bnc__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-bnc__hero-section,
    .page-bnc__about-section,
    .page-bnc__features-section,
    .page-bnc__how-to-play-section,
    .page-bnc__strategies-section,
    .page-bnc__promotions-section,
    .page-bnc__faq-section,
    .page-bnc__contact-section,
    .page-bnc__container,
    .page-bnc__card,
    .page-bnc__cta-buttons,
    .page-bnc__button-group,
    .page-bnc__btn-container,
    .page-bnc__video-section,
    .page-bnc__video-container,
    .page-bnc__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Specific override for sections that might have default 0 padding */
    .page-bnc__hero-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-bnc__about-section,
    .page-bnc__features-section,
    .page-bnc__how-to-play-section,
    .page-bnc__strategies-section,
    .page-bnc__promotions-section,
    .page-bnc__faq-section,
    .page-bnc__contact-section {
        padding-left: 0 !important; /* Resetting container padding to allow full width for background */
        padding-right: 0 !important;
    }
    .page-bnc__about-section > .page-bnc__container,
    .page-bnc__features-section > .page-bnc__container,
    .page-bnc__how-to-play-section > .page-bnc__container,
    .page-bnc__strategies-section > .page-bnc__container,
    .page-bnc__promotions-section > .page-bnc__container,
    .page-bnc__faq-section > .page-bnc__container,
    .page-bnc__contact-section > .page-bnc__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}