/* bnc.css */

:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --btn-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --card-bg-color: #FFFFFF;
    --bg-color: #F4F7FB;
    --text-main-color: #1F2D3D;
    --custom-color-1776249996415: #000000; /* Black */
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
}

.page-bnc {
    background-color: var(--bg-color);
    padding-bottom: 60px;
    color: var(--text-main-color);
}

.page-bnc__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--primary-color); /* Accent background for hero */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF; /* White text on dark hero background */
}

.page-bnc__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit hero image height */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-bnc__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    max-width: 1200px; /* Match content max-width */
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-bnc__hero-content {
    max-width: 900px;
    padding: 40px 20px 60px;
    position: relative;
    z-index: 1; /* Ensure content is above any background elements */
}

.page-bnc__main-title {
    font-size: clamp(2em, 3.5vw, 3.2em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-bnc__description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.page-bnc__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    background: var(--btn-gradient);
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-bnc__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

/* General Section Styling */
.page-bnc__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    font-weight: 700;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
    color: var(--text-main-color);
}

/* Features Section */
.page-bnc__features-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

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

.page-bnc__feature-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

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

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

.page-bnc__feature-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--custom-color-1776249996415);
}

.page-bnc__feature-text {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-main-color);
}

/* Popular Games Section */
.page-bnc__popular-games-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

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

.page-bnc__game-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.page-bnc__game-image {
    width: 100%;
    height: 250px; /* Fixed height for game images */
    object-fit: cover;
    display: block;
}

.page-bnc__game-title {
    font-size: 1.3em;
    font-weight: 600;
    padding: 15px 20px 5px;
    color: var(--custom-color-1776249996415);
}

.page-bnc__game-link {
    color: var(--custom-color-1776249996415);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-bnc__game-link:hover {
    color: var(--primary-color);
}

.page-bnc__game-description {
    font-size: 0.95em;
    line-height: 1.5;
    padding: 0 20px 15px;
    color: var(--text-main-color);
}

.page-bnc__game-cta {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 10px 15px;
    border-radius: 8px;
    background: var(--btn-gradient);
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.page-bnc__game-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.page-bnc__all-games-cta,
.page-bnc__all-promotions-cta {
    text-align: center;
    margin-top: 20px;
}


/* How to Play Section */
.page-bnc__how-to-play-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

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

.page-bnc__step-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.page-bnc__step-card::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background-color: var(--glow-color);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.page-bnc__step-number {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.page-bnc__step-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--custom-color-1776249996415);
    position: relative;
    z-index: 1;
}

.page-bnc__step-description {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-main-color);
    position: relative;
    z-index: 1;
}

.page-bnc__step-cta {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    background: var(--btn-gradient);
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.page-bnc__step-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Promotions Section */
.page-bnc__promotions-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.page-bnc__promotions-intro {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 40px;
    color: var(--text-main-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-bnc__promotion-item {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-bnc__promotion-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.page-bnc__promotion-image {
    width: 100%;
    height: 220px; /* Fixed height for promotion images */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-bnc__promotion-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
    padding: 0 20px;
    color: var(--custom-color-1776249996415);
}

.page-bnc__promotion-description {
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 20px;
    padding: 0 20px;
    color: var(--text-main-color);
}

.page-bnc__promotion-cta {
    display: inline-block;
    padding: 10px 25px;
    margin-bottom: 20px;
    border-radius: 6px;
    background: var(--btn-gradient);
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-bnc__promotion-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-bnc__hero-image-wrapper {
        max-height: 400px;
    }
    .page-bnc__hero-image {
        max-width: 100%;
    }
    .page-bnc__hero-content {
        padding: 30px 20px 40px;
    }
    .page-bnc__main-title {
        font-size: clamp(1.8em, 4.5vw, 2.8em);
    }
    .page-bnc__section-title {
        font-size: clamp(1.6em, 4vw, 2.2em);
    }
}

@media (max-width: 768px) {
    .page-bnc__hero-image-wrapper {
        max-height: 300px;
    }
    .page-bnc__hero-image {
        max-width: 100%; /* Ensure images don't overflow */
        height: auto;
    }
    .page-bnc__hero-content {
        padding: 20px 15px 30px;
    }
    .page-bnc__main-title {
        font-size: clamp(1.6em, 6vw, 2.2em);
    }
    .page-bnc__description {
        font-size: 1em;
    }
    .page-bnc__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-bnc__section-title {
        margin-top: 40px;
        margin-bottom: 30px;
        font-size: clamp(1.4em, 5vw, 2em);
    }

    .page-bnc__features-grid,
    .page-bnc__game-cards-grid,
    .page-bnc__steps-grid,
    .page-bnc__promotions-list {
        grid-template-columns: 1fr; /* Single column layout for mobile */
        gap: 20px;
    }

    .page-bnc__feature-image,
    .page-bnc__game-image,
    .page-bnc__promotion-image {
        max-width: 100%; /* Important for mobile overflow */
        height: auto;
        min-height: 200px; /* Ensure minimum size is met */
        object-fit: cover;
    }
    
    /* Enforce min-size for all images in content area for mobile */
    .page-bnc img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* enforce min size for mobile too */
        min-height: 200px; /* enforce min size for mobile too */
    }
}