:root {
    --page-nh-primary-color: #11A84E;
    --page-nh-secondary-color: #22C768;
    --page-nh-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-nh-card-bg: #11271B;
    --page-nh-background: #08160F; /* Background for the main sections */
    --page-nh-text-main: #F2FFF6;
    --page-nh-text-secondary: #A7D9B8;
    --page-nh-border-color: #2E7A4E;
    --page-nh-glow: #57E38D;
    --page-nh-gold: #F2C14E;
    --page-nh-divider: #1E3A2A;
    --page-nh-deep-green: #0A4B2C;
}

/* Base styles for the page content, assuming body background is dark (var(--background)) */
.page-nh {
    color: var(--page-nh-text-main); /* Default text color for the page */
    background-color: var(--page-nh-background); /* Background for the main sections */
    font-family: 'Arial', sans-serif; /* Example font */
    line-height: 1.6;
    font-size: 16px;
}

.page-nh a {
    color: var(--page-nh-gold); /* Links use gold for visibility */
    text-decoration: none;
}

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

.page-nh__section {
    padding: 60px 20px;
    background-color: var(--page-nh-background);
}

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

.page-nh__section-title {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--page-nh-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-nh__main-title {
    font-size: clamp(32px, 5vw, 56px); /* Clamp for H1 as per instructions */
    color: var(--page-nh-gold);
    text-align: center;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

.page-nh__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding as per instructions */
    display: flex;
    flex-direction: column; /* Stack image and content vertically */
    align-items: center;
    justify-content: flex-start; /* Align content to top of section */
    text-align: center;
    overflow: hidden;
    background-color: var(--page-nh-background); /* Ensure background for the section */
}

.page-nh__hero-image-container {
    width: 100%;
    max-height: 700px; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.page-nh__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7);
    min-height: 300px; /* Ensure minimum size */
}

.page-nh__hero-content {
    position: relative; /* No absolute positioning */
    z-index: 2;
    padding: 40px 20px; /* Standard padding */
    max-width: 900px;
    margin-top: 20px; /* Add margin to separate from image */
    background: transparent; /* No background here, let section handle it */
    border-radius: 10px;
}

.page-nh__hero-description {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--page-nh-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-nh__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-nh__btn-primary,
.page-nh__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-nh__btn-primary {
    background: var(--page-nh-button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

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

.page-nh__btn-secondary {
    background: transparent;
    color: var(--page-nh-gold);
    border: 2px solid var(--page-nh-gold);
    box-shadow: 0 0 10px rgba(242, 193, 78, 0.3);
}

.page-nh__btn-secondary:hover {
    background: var(--page-nh-gold);
    color: var(--page-nh-background);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-nh__text-block {
    color: var(--page-nh-text-main);
    margin-bottom: 20px;
    text-align: justify;
}

.page-nh__text-block strong {
    color: var(--page-nh-gold);
}

.page-nh__text-link {
    color: var(--page-nh-gold);
    text-decoration: underline;
}

.page-nh__text-link:hover {
    color: var(--page-nh-glow);
}

/* Card styles */
.page-nh__card {
    background-color: var(--page-nh-card-bg);
    border: 1px solid var(--page-nh-border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%; /* Ensure cards in grid have same height */
    box-sizing: border-box;
}

.page-nh__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

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

.page-nh__card-title {
    font-size: 22px;
    color: var(--page-nh-gold);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-nh__card-title a {
    color: inherit; /* Inherit gold color */
    text-decoration: none;
}

.page-nh__card-title a:hover {
    text-decoration: underline;
}

.page-nh__card-text {
    color: var(--page-nh-text-secondary);
    font-size: 15px;
    line-height: 1.6;
    flex-grow: 1; /* Allow text to take available space */
}

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

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

.page-nh__btn-small {
    padding: 10px 20px;
    font-size: 16px;
    margin-top: 15px;
}

/* How-to-play list */
.page-nh__step-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-nh__step-list .page-nh__list-item {
    background-color: var(--page-nh-card-bg);
    border: 1px solid var(--page-nh-border-color);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-nh__step-list .page-nh__list-title {
    font-size: 24px;
    color: var(--page-nh-gold);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.page-nh__step-list .page-nh__list-title::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    background: var(--page-nh-button-gradient);
    color: #ffffff;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.page-nh__step-list {
    counter-reset: step-counter;
}

.page-nh__list-text {
    color: var(--page-nh-text-secondary);
    font-size: 16px;
}

.page-nh__cta-block {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background-color: var(--page-nh-deep-green);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--page-nh-border-color);
}

.page-nh__cta-block--bottom {
    margin-bottom: 60px;
}

.page-nh__cta-text {
    font-size: 20px;
    color: var(--page-nh-text-main);
    margin-bottom: 25px;
    font-weight: 500;
}

/* Strategy list */
.page-nh__strategy-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-nh__strategy-list .page-nh__list-item {
    background-color: var(--page-nh-card-bg);
    border: 1px solid var(--page-nh-border-color);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-nh__strategy-list .page-nh__list-title {
    font-size: 22px;
    color: var(--page-nh-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

/* FAQ styles */
.page-nh__faq-list {
    margin-top: 40px;
}

.page-nh__faq-item {
    background-color: var(--page-nh-card-bg);
    border: 1px solid var(--page-nh-border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-nh__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: bold;
    color: var(--page-nh-text-main);
    cursor: pointer;
    background-color: var(--page-nh-deep-green);
    border-bottom: 1px solid var(--page-nh-divider);
    list-style: none; /* For details/summary */
    user-select: none;
}

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

.page-nh__faq-question:hover {
    background-color: var(--page-nh-deep-green);
    filter: brightness(1.1);
}

.page-nh__faq-toggle {
    font-size: 24px;
    line-height: 1;
    color: var(--page-nh-gold);
    transition: transform 0.3s ease;
}

.page-nh__faq-item[open] .page-nh__faq-toggle {
    transform: rotate(45deg);
}

.page-nh__faq-answer {
    padding: 20px 25px;
    background-color: var(--page-nh-card-bg);
    color: var(--page-nh-text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-nh__hero-content {
        margin-top: 0;
        padding: 30px 15px;
    }
    .page-nh__main-title {
        font-size: clamp(28px, 4.5vw, 48px);
    }
    .page-nh__hero-description {
        font-size: clamp(15px, 1.8vw, 18px);
    }
    .page-nh__section {
        padding: 40px 15px;
    }
    .page-nh__section-title {
        font-size: clamp(24px, 3.5vw, 36px);
    }
    .page-nh__card-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-nh {
        font-size: 15px;
        line-height: 1.6;
    }
    .page-nh__hero-section {
        padding-top: 10px !important; /* body already has padding-top, this is for visual spacing */
    }
    .page-nh__hero-image {
        max-height: 400px;
    }
    .page-nh__hero-content {
        margin-top: 0;
        padding: 20px 10px;
    }
    .page-nh__main-title {
        font-size: clamp(26px, 6vw, 38px);
        margin-bottom: 15px;
    }
    .page-nh__hero-description {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .page-nh__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .page-nh__btn-primary,
    .page-nh__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-nh__section {
        padding: 30px 15px;
    }
    .page-nh__section-title {
        font-size: clamp(22px, 5vw, 30px);
        margin-bottom: 30px;
    }
    .page-nh__text-block {
        font-size: 15px;
    }
    .page-nh__card {
        padding: 20px;
    }
    .page-nh__card-image {
        height: 150px;
        min-width: 200px;
        min-height: 150px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-nh__card-title {
        font-size: 20px;
    }
    .page-nh__card-text {
        font-size: 14px;
    }
    .page-nh__features-grid,
    .page-nh__game-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-nh__list-item {
        padding: 20px;
    }
    .page-nh__list-title {
        font-size: 20px;
    }
    .page-nh__list-title::before {
        width: 30px;
        height: 30px;
        font-size: 16px;
        margin-right: 10px;
    }
    .page-nh__list-text {
        font-size: 15px;
    }
    .page-nh__cta-block {
        padding: 20px;
    }
    .page-nh__cta-text {
        font-size: 18px;
    }
    .page-nh__faq-question {
        padding: 15px 20px;
        font-size: 16px;
    }
    .page-nh__faq-answer {
        padding: 15px 20px;
        font-size: 15px;
    }

    /* Mobile image and video responsiveness */
    .page-nh img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-nh video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-nh__section,
    .page-nh__card,
    .page-nh__container,
    .page-nh__hero-section,
    .page-nh__hero-image-container,
    .page-nh__hero-content,
    .page-nh__cta-buttons,
    .page-nh__cta-block,
    .page-nh__faq-item,
    .page-nh__faq-list,
    .page-nh__game-grid,
    .page-nh__features-grid,
    .page-nh__step-list,
    .page-nh__strategy-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    /* Specific override for hero section padding to avoid double padding */
    .page-nh__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-nh__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}