/* style/bnc.css */

/* Custom properties for colors */
:root {
    --bnc-bg-color: #08160F;
    --bnc-card-bg: #11271B;
    --bnc-text-main: #F2FFF6;
    --bnc-text-secondary: #A7D9B8;
    --bnc-border-color: #2E7A4E;
    --bnc-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --bnc-glow-color: #57E38D;
    --bnc-gold-color: #F2C14E;
    --bnc-divider-color: #1E3A2A;
    --bnc-deep-green: #0A4B2C;
}

.page-bnc {
    background-color: var(--bnc-bg-color);
    color: var(--bnc-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    /* body padding-top is handled by shared.css */
}

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

.page-bnc__section {
    padding: 60px 0;
    text-align: center;
}

.page-bnc__section-title {
    font-size: 2.8em;
    color: var(--bnc-gold-color);
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.page-bnc__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Using clamp as per instructions */
    color: var(--bnc-gold-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-bnc__description,
.page-bnc__text-block,
.page-bnc__card-text,
.page-bnc p,
.page-bnc li {
    font-size: 1.1em;
    color: var(--bnc-text-main);
    margin-bottom: 20px;
}

.page-bnc__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-bnc__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    box-sizing: border-box;
    overflow: hidden; /* Ensure content doesn't overflow */
}

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

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

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

/* Buttons */
.page-bnc__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-bnc__btn-primary,
.page-bnc__btn-secondary {
    display: inline-flex; /* Use inline-flex for better button alignment */
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure buttons adapt to container width */
    min-width: 180px; /* Minimum width for buttons */
}

.page-bnc__btn-primary {
    background: var(--bnc-button-gradient);
    color: var(--bnc-text-main);
    border: 2px solid transparent;
    box-shadow: 0 5px 20px rgba(42, 209, 111, 0.4);
}

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

.page-bnc__btn-secondary {
    background: transparent;
    color: var(--bnc-glow-color);
    border: 2px solid var(--bnc-glow-color);
    box-shadow: 0 5px 15px rgba(87, 227, 141, 0.2);
}

.page-bnc__btn-secondary:hover {
    background: rgba(87, 227, 141, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(87, 227, 141, 0.4);
}

/* Images */
.page-bnc__image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

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

.page-bnc__card {
    background-color: var(--bnc-card-bg);
    border: 1px solid var(--bnc-border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--bnc-text-main); /* Ensure text is visible on card background */
}

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

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

/* Lists */
.page-bnc__ordered-list,
.page-bnc__unordered-list {
    text-align: left;
    max-width: 900px;
    margin: 30px auto;
    padding-left: 25px;
    list-style-position: outside;
    color: var(--bnc-text-main);
}

.page-bnc__ordered-list li,
.page-bnc__unordered-list li {
    margin-bottom: 15px;
    line-height: 1.8;
}

.page-bnc__ordered-list li strong {
    color: var(--bnc-glow-color);
}

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

.page-bnc__faq-item {
    background-color: var(--bnc-card-bg);
    border: 1px solid var(--bnc-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-bnc__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--bnc-gold-color);
    transition: background-color 0.3s ease;
}

.page-bnc__faq-question:hover {
    background-color: rgba(46, 122, 78, 0.2); /* Lighter hover for dark background */
}

.page-bnc__faq-item[open] > .page-bnc__faq-question {
    background-color: var(--bnc-deep-green);
    color: var(--bnc-glow-color);
}

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

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

.page-bnc__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.0em;
    color: var(--bnc-text-secondary);
    line-height: 1.7;
}

/* Details element specific styling for FAQ */
.page-bnc__faq-item summary {
    list-style: none; /* Hide default marker */
}
.page-bnc__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-bnc__container {
        padding: 0 15px; /* Add side padding for mobile containers */
    }

    .page-bnc__section {
        padding: 40px 0;
    }

    .page-bnc__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-bnc__main-title {
        font-size: clamp(2em, 8vw, 2.5em);
    }

    .page-bnc__description,
    .page-bnc__text-block,
    .page-bnc__card-text,
    .page-bnc p,
    .page-bnc li {
        font-size: 1em;
        margin-bottom: 15px;
    }

    /* Images Mobile */
    .page-bnc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce minimum size */
        min-height: 200px !important; /* Enforce minimum size */
    }

    .page-bnc__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset, this is decorative */
    }

    .page-bnc__hero-image-wrapper {
        margin-bottom: 20px;
    }

    /* Buttons Mobile */
    .page-bnc__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        margin-top: 30px;
        padding-left: 15px; /* Ensure container has padding */
        padding-right: 15px;
    }

    .page-bnc__btn-primary,
    .page-bnc__btn-secondary {
        width: 100% !important; /* Full width for buttons */
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        min-width: unset !important; /* Remove min-width constraint on mobile */
    }

    /* Card Grid Mobile */
    .page-bnc__grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-bnc__card {
        padding: 20px;
    }

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

    /* FAQ Mobile */
    .page-bnc__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

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

    /* General content containers for mobile */
    .page-bnc__section,
    .page-bnc__card,
    .page-bnc__container,
    .page-bnc__intro-section,
    .page-bnc__features-section,
    .page-bnc__guide-section,
    .page-bnc__strategies-section,
    .page-bnc__promotions-section,
    .page-bnc__why-choose-section,
    .page-bnc__faq-section,
    .page-bnc__conclusion-section {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      /* Padding for sections is handled by .page-bnc__section and .page-bnc__container */
    }
}