/* style/bnc.css */

/* Global styles for .page-bnc scope */
.page-bnc {
    background-color: #08160F; /* Background color from custom palette */
    color: #F2FFF6; /* Main text color for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom */
}

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

.page-bnc__section-title {
    font-size: 2.5em;
    color: #F2FFF6; /* Main text color */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    padding-top: 20px;
}

.page-bnc__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2AD16F, #13994A); /* Green gradient */
    margin: 10px auto 0;
    border-radius: 2px;
}

.page-bnc__section-description {
    font-size: 1.1em;
    color: #A7D9B8; /* Secondary text color */
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-bnc__text-block {
    font-size: 1.05em;
    color: #F2FFF6;
    margin-bottom: 20px;
}

.page-bnc__text-block strong {
    color: #F2C14E; /* Gold for emphasis */
}

.page-bnc__image-right {
    float: right;
    margin-left: 30px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-bnc__image-left {
    float: left;
    margin-right: 30px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.page-bnc__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
    background-color: #08160F; /* Ensure background matches body */
}

.page-bnc__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-bnc__hero-content {
    position: relative; /* Not absolute, to flow below image */
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.page-bnc__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
    color: #F2FFF6;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(34, 199, 104, 0.6); /* Glow effect */
}

.page-bnc__hero-description {
    font-size: 1.2em;
    color: #A7D9B8;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-bnc__cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-bnc__btn-primary,
.page-bnc__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
    text-align: center;
}

.page-bnc__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #F2FFF6; /* Text Main */
    border: none;
}

.page-bnc__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-3px);
}

.page-bnc__btn-secondary {
    background-color: transparent;
    color: #2AD16F; /* Primary green for text */
    border: 2px solid #2AD16F; /* Green border */
}

.page-bnc__btn-secondary:hover {
    background-color: #2AD16F;
    color: #F2FFF6;
    transform: translateY(-3px);
}

/* Intro Section */
.page-bnc__intro-section {
    padding: 80px 0;
    background-color: #0A4B2C; /* Deep Green for dark section */
    overflow: hidden;
    clear: both; /* Clear floats from image-left/right */
}

.page-bnc__content-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.page-bnc__content-wrapper p,
.page-bnc__content-wrapper ul {
    flex: 1;
    min-width: 300px; /* Allow wrapping on smaller screens */
    margin-bottom: 20px;
}

.page-bnc__content-wrapper img {
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Why Choose Section */
.page-bnc__why-choose-section {
    padding: 80px 0;
    background-color: #08160F; /* Use main background for consistency */
    color: #F2FFF6; /* Main text color */
}

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

.page-bnc__feature-card.page-bnc__card {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border color */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    color: #F2FFF6;
}

.page-bnc__feature-card.page-bnc__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

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

.page-bnc__card-title {
    font-size: 1.4em;
    color: #F2C14E; /* Gold for titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-bnc__card-description {
    font-size: 1em;
    color: #A7D9B8; /* Secondary text color */
}

/* Popular Games Section */
.page-bnc__popular-games-section {
    padding: 80px 0;
    background-color: #0A4B2C; /* Deep Green for dark section */
}

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

.page-bnc__game-card.page-bnc__card {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border color */
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    color: #F2FFF6;
}

.page-bnc__game-card.page-bnc__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

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

/* Tips and Strategy Section */
.page-bnc__tips-strategy-section {
    padding: 80px 0;
    background-color: #08160F; /* Main background */
    overflow: hidden;
    clear: both;
}

.page-bnc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #F2FFF6;
    flex: 1;
    min-width: 300px;
}

.page-bnc__list-item {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.page-bnc__list-item:hover {
    background-color: #1E3A2A; /* Darker green on hover */
}

.page-bnc__list-item strong {
    color: #F2C14E; /* Gold for emphasis */
}

/* How to Play Section */
.page-bnc__how-to-play-section {
    padding: 80px 0;
    background-color: #0A4B2C; /* Deep Green */
}

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

.page-bnc__step-card.page-bnc__card {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    color: #F2FFF6;
}

.page-bnc__step-number {
    font-size: 2.5em;
    color: #2AD16F; /* Primary green */
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(42, 209, 111, 0.5);
}

.page-bnc__step-description {
    font-size: 1.1em;
    color: #A7D9B8; /* Secondary text color */
}

.page-bnc__step-description a {
    color: #F2C14E; /* Gold for links */
    text-decoration: none;
    font-weight: bold;
}

.page-bnc__step-description a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.page-bnc__faq-section {
    padding: 80px 0;
    background-color: #08160F; /* Main background */
}

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

.page-bnc__faq-item {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: #F2FFF6;
}

.page-bnc__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #1E3A2A; /* Deep Green variant */
    color: #F2FFF6;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-bnc__faq-question:hover {
    background-color: #2E7A4E; /* Border color on hover */
}

.page-bnc__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #57E38D; /* Glow color */
    margin-left: 15px;
}

.page-bnc__faq-item[open] .page-bnc__faq-toggle {
    content: '−'; /* Change to minus when open */
}

.page-bnc__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.05em;
    color: #A7D9B8; /* Secondary text color */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-bnc__faq-item[open] .page-bnc__faq-answer {
    max-height: 500px; /* Sufficiently large for content */
    padding-top: 15px;
}

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

.page-bnc__faq-answer a {
    color: #F2C14E; /* Gold for links */
    text-decoration: none;
    font-weight: bold;
}

.page-bnc__faq-answer a:hover {
    text-decoration: underline;
}

/* Ensure images do not have filters */
.page-bnc img {
    filter: none !important;
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-bnc__hero-image-wrapper {
        max-height: 500px;
    }
    .page-bnc__section-title {
        font-size: 2em;
    }
    .page-bnc__hero-description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-bnc__hero-section {
        padding-bottom: 40px;
    }
    .page-bnc__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }
    .page-bnc__hero-image-wrapper {
        max-height: 400px;
    }
    .page-bnc__section-title {
        font-size: 1.8em;
    }
    .page-bnc__section-description {
        font-size: 1em;
    }

    /* Images responsiveness */
    .page-bnc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        float: none !important; /* Clear floats on mobile */
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 20px !important;
        min-width: 200px !important; /* Enforce minimum size for content images */
        min-height: 200px !important;
    }

    .page-bnc__content-wrapper {
        flex-direction: column;
    }
    .page-bnc__content-wrapper p,
    .page-bnc__content-wrapper ul {
        width: 100%;
        min-width: unset;
    }
    .page-bnc__content-wrapper img {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .page-bnc__features-grid,
    .page-bnc__game-cards-grid,
    .page-bnc__steps-grid {
        grid-template-columns: 1fr;
    }

    .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-left: 15px;
        padding-right: 15px;
    }

    .page-bnc__cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-bnc__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-bnc__faq-answer {
        padding: 0 20px 15px;
    }

    /* Ensure containers have max-width and padding */
    .page-bnc__section,
    .page-bnc__card,
    .page-bnc__container,
    .page-bnc__hero-section,
    .page-bnc__intro-section,
    .page-bnc__why-choose-section,
    .page-bnc__popular-games-section,
    .page-bnc__tips-strategy-section,
    .page-bnc__how-to-play-section,
    .page-bnc__faq-section {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-bnc__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-bnc__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Specific for content-wrapper images to ensure minimum size */
    .page-bnc__content-wrapper img {
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-bnc__card-image {
        min-width: 200px !important;
        min-height: 200px !important;
    }
}

@media (max-width: 480px) {
    .page-bnc__hero-image-wrapper {
        max-height: 300px;
    }
    .page-bnc__section-title {
        font-size: 1.5em;
    }
    .page-bnc__hero-description {
        font-size: 0.95em;
    }
    .page-bnc__btn-primary,
    .page-bnc__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-bnc__feature-card.page-bnc__card,
    .page-bnc__game-card.page-bnc__card,
    .page-bnc__step-card.page-bnc__card {
        padding: 20px;
    }
    .page-bnc__card-title {
        font-size: 1.2em;
    }
    .page-bnc__list-item {
        padding: 12px 15px;
        font-size: 0.95em;
    }
    .page-bnc__faq-question {
        font-size: 0.9em;
        padding: 12px 15px;
    }
    .page-bnc__faq-answer {
        font-size: 0.9em;
        padding: 0 15px 12px;
    }
}