/* style/nh.css */

/* --- Base Styles & Variables --- */
.page-nh {
    /* Assuming body has var(--background) which is dark */
    color: var(--text-main, #F2FFF6); /* Default text color for dark backgrounds */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-dark, #08160F); /* Explicitly setting background for main content area if needed, or rely on body */
}

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

.page-nh__section-title {
    font-size: 2.5rem;
    color: var(--text-main, #F2FFF6);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-nh__text-block {
    font-size: 1rem;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 20px;
    text-align: center;
}

/* --- Hero Section --- */
.page-nh__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Stacks image and content vertically */
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensure image doesn't spill */
    padding-bottom: 60px; /* Space below content */
    background-color: var(--bg-dark, #08160F); /* Ensure dark background for hero */
    padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-nh__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 700px; /* Limit height for hero image */
    margin-bottom: 30px; /* Space between image and content */
}

.page-nh__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    z-index: 1; /* Ensure content is above any potential background layers */
}

.page-nh__hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size */
    color: var(--text-main, #F2FFF6);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-nh__hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-nh__hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* --- Buttons --- */
.page-nh__btn-primary,
.page-nh__btn-secondary,
.page-nh__btn-tertiary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap; /* Prevent text wrapping initially for desktop */
    box-sizing: border-box;
}

.page-nh__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-nh__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.page-nh__btn-secondary {
    background-color: transparent;
    color: var(--main-color, #11A84E);
    border: 2px solid var(--main-color, #11A84E);
}

.page-nh__btn-secondary:hover {
    background-color: var(--main-color, #11A84E);
    color: #ffffff;
    transform: translateY(-2px);
}

.page-nh__btn-tertiary {
    background-color: var(--deep-green, #0A4B2C);
    color: var(--text-main, #F2FFF6);
    border: 1px solid var(--divider, #1E3A2A);
    padding: 10px 20px;
    font-size: 0.95rem;
}

.page-nh__btn-tertiary:hover {
    background-color: var(--main-color, #11A84E);
    border-color: var(--main-color, #11A84E);
}

/* --- Section Styling --- */
.page-nh__introduction,
.page-nh__game-showcase,
.page-nh__how-to-play,
.page-nh__faq-section {
    background-color: var(--bg-light-variant, #F2FFF6); /* Lighter background for contrast */
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

.page-nh__introduction .page-nh__section-title,
.page-nh__introduction .page-nh__text-block,
.page-nh__game-showcase .page-nh__section-title,
.page-nh__game-showcase .page-nh__text-block,
.page-nh__how-to-play .page-nh__section-title,
.page-nh__how-to-play .page-nh__text-block,
.page-nh__faq-section .page-nh__section-title {
    color: #333333; /* Ensure dark text on light background */
}

.page-nh__why-choose,
.page-nh__promotions,
.page-nh__security,
.page-nh__cta-bottom {
    background-color: var(--bg-dark, #08160F); /* Darker background */
    color: var(--text-secondary, #A7D9B8);
    padding: 60px 0;
}

/* --- Features Grid --- */
.page-nh__features-grid,
.page-nh__game-grid,
.page-nh__promo-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-nh__card {
    background-color: var(--card-bg, #11271B);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--divider, #1E3A2A);
}

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

.page-nh__feature-icon,
.page-nh__game-thumbnail,
.page-nh__promo-image,
.page-nh__security-icon {
    width: 100%; /* Ensure images fill card width */
    height: auto;
    max-width: 400px; /* Max width for images within cards */
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Ensure all images are above minimum size */
.page-nh__feature-icon,
.page-nh__security-icon {
    min-width: 200px;
    min-height: 150px; /* Adjust min-height to match aspect ratio of 400x300 */
}

.page-nh__feature-title,
.page-nh__game-title,
.page-nh__promo-title,
.page-nh__security-feature {
    font-size: 1.4rem;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-nh__game-title a {
    color: var(--text-main, #F2FFF6);
    text-decoration: none;
}

.page-nh__game-title a:hover {
    color: var(--main-color, #11A84E);
}

.page-nh__feature-description,
.page-nh__game-description,
.page-nh__promo-description,
.page-nh__security-description {
    font-size: 0.95rem;
    color: var(--text-secondary, #A7D9B8);
}

.page-nh__view-all-games,
.page-nh__all-promos-cta,
.page-nh__play-cta {
    text-align: center;
    margin-top: 50px;
}

/* --- How to Play Steps --- */
.page-nh__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    counter-reset: step-counter;
}

.page-nh__step-item {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    color: #333333;
}

.page-nh__step-item::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    font-size: 2rem;
    font-weight: bold;
    color: var(--main-color, #11A84E);
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--main-color, #11A84E);
    border-radius: 50%;
    background-color: #f0fff0;
}

.page-nh__step-title {
    font-size: 1.3rem;
    color: #333333;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-nh__step-description {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 0;
}

.page-nh__step-description a {
    color: var(--main-color, #11A84E);
    text-decoration: none;
    font-weight: bold;
}

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

/* --- Security Section --- */
.page-nh__security-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-nh__security-item {
    background-color: var(--card-bg, #11271B);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--divider, #1E3A2A);
}

.page-nh__security-icon {
    width: 100px; /* Display size, not source size */
    height: 75px; /* Aspect ratio of 400x300 */
    margin-bottom: 20px;
    object-fit: contain; /* Ensure full icon is visible */
    min-width: 100px;
    min-height: 75px;
}


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

.page-nh__faq-item {
    background-color: #ffffff;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    color: #333333;
}

.page-nh__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: bold;
    cursor: pointer;
    list-style: none; /* Hide default marker */
    color: #333333;
}

.page-nh__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for Webkit */
}

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

.page-nh__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--main-color, #11A84E);
}

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

.page-nh__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    line-height: 1.7;
    color: #555555;
}

/* --- Call to Action Bottom --- */
.page-nh__cta-bottom {
    padding: 80px 0;
    text-align: center;
}

.page-nh__cta-bottom .page-nh__section-title {
    font-size: 2.2rem;
    color: var(--text-main, #F2FFF6);
}

.page-nh__cta-bottom .page-nh__text-block {
    font-size: 1.1rem;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 40px;
}


/* --- Responsive Design --- */
@media (max-width: 768px) {
    .page-nh {
        font-size: 16px;
        line-height: 1.6;
    }

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

    .page-nh__hero-section {
        padding-top: 10px !important; /* body handles header offset, this is for hero's own small top margin */
        padding-bottom: 40px;
    }

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

    .page-nh__hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-nh__hero-cta {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .page-nh__btn-primary,
    .page-nh__btn-secondary,
    .page-nh__btn-tertiary {
        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;
        font-size: 1rem;
    }

    .page-nh__section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .page-nh__features-grid,
    .page-nh__game-grid,
    .page-nh__promo-list,
    .page-nh__security-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-nh__card {
        padding: 25px;
    }

    .page-nh__feature-title,
    .page-nh__game-title,
    .page-nh__promo-title,
    .page-nh__security-feature {
        font-size: 1.2rem;
    }

    .page-nh__step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .page-nh__step-item::before {
        margin-bottom: 15px;
    }

    .page-nh__faq-item summary {
        padding: 15px 20px;
        font-size: 1rem;
    }

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

    /* Image responsive handling */
    .page-nh img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-nh__hero-image {
        max-height: 400px; /* Adjust max-height for mobile hero */
    }

    .page-nh__section,
    .page-nh__card,
    .page-nh__container,
    .page-nh__hero-section,
    .page-nh__introduction,
    .page-nh__why-choose,
    .page-nh__game-showcase,
    .page-nh__promotions,
    .page-nh__how-to-play,
    .page-nh__security,
    .page-nh__faq-section,
    .page-nh__cta-bottom {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    
    /* Ensure no content causes horizontal scroll */
    .page-nh__features-grid,
    .page-nh__game-grid,
    .page-nh__promo-list,
    .page-nh__security-list {
        overflow-x: hidden;
    }
}