:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F; /* This will be the body background, so page-nh content needs light text */
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;

    /* Text colors for contrast based on body background --color-background (#08160F is dark) */
    --text-on-dark: var(--color-text-main); /* #F2FFF6 */
    --text-on-light: #333333; /* Standard dark text for light backgrounds */
}

.page-nh {
    font-family: Arial, sans-serif;
    color: var(--text-on-dark); /* Default text color for the page, assuming dark body background */
    background-color: var(--color-background); /* This will be overridden by shared.css body, but good to set as a fallback */
    line-height: 1.6;
}

/* Page sections */
.page-nh__hero-section,
.page-nh__intro-section,
.page-nh__features-section,
.page-nh__how-to-play-section,
.page-nh__promo-video-section,
.page-nh__faq-section,
.page-nh__cta-section {
    padding: 60px 20px;
    position: relative;
    overflow: hidden; /* Prevent content overflow */
}

/* Specific background colors for sections */
.page-nh__light-bg {
    background-color: #ffffff; /* Use a clear light background for light sections */
    color: var(--text-on-light);
}

.page-nh__dark-section {
    background-color: var(--color-deep-green); /* Example dark background */
    color: var(--text-on-dark);
}

/* Hero Section */
.page-nh__hero-section {
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--color-background); /* Ensure hero has a base dark background */
}

.page-nh__hero-image-wrapper {
    width: 100%;
    max-width: 1920px;
    overflow: hidden;
    margin-bottom: 20px;
}

.page-nh__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-nh__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.page-nh__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Use clamp for H1 font-size */
    font-weight: bold;
    color: var(--color-gold);
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-nh__hero-description {
    font-size: 1.1em;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

/* Section Titles */
.page-nh__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-primary);
}

.page-nh__section-title--white {
    color: var(--color-text-main);
}

/* Containers */
.page-nh__container {
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 15px; /* Add some padding for smaller screens */
}

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

.page-nh__btn-primary,
.page-nh__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    max-width: 100%; /* Ensure buttons adapt to width */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
}

.page-nh__btn-primary {
    background: var(--color-button-gradient-start); /* Fallback for gradient */
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main);
    border: 2px solid transparent;
}

.page-nh__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-nh__btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.page-nh__btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-main);
}

.page-nh__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

/* Text blocks and images */
.page-nh__text-block {
    margin-bottom: 20px;
    text-align: justify;
}

.page-nh__text-block--white {
    color: var(--color-text-main);
}

.page-nh__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    object-fit: cover;
}

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

.page-nh__feature-card {
    background-color: var(--color-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
}

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

.page-nh__card-text {
    font-size: 0.95em;
    color: var(--color-text-secondary);
}

/* How-to-play list */
.page-nh__step-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.page-nh__list-item {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: relative;
    color: var(--text-on-light);
    padding-left: 80px; /* Space for step number */
}

.page-nh__list-item::before {
    counter-increment: step-counter;
    content: "Bước " counter(step-counter);
    position: absolute;
    left: 20px;
    top: 30px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--color-primary);
    background-color: var(--color-glow);
    padding: 5px 10px;
    border-radius: 5px;
}

.page-nh__list-title {
    font-size: 1.3em;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.page-nh__list-text {
    font-size: 1em;
    color: #555555;
}

/* Video Section */
.page-nh__promo-video-section {
    background-color: var(--color-deep-green);
    text-align: center;
}

.page-nh__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    width: 100%; /* Ensure width is 100% on desktop */
}

.page-nh__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    cursor: pointer;
}

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

.page-nh__faq-item {
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-on-light);
}

.page-nh__faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    background-color: #f9f9f9;
    color: var(--color-primary);
}

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

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

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

.page-nh__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 0.95em;
    color: #555555;
    line-height: 1.8;
}

.page-nh__faq-answer p {
    margin-bottom: 10px;
}

/* CTA Section */
.page-nh__cta-section {
    background-color: var(--color-deep-green);
    text-align: center;
    padding: 80px 20px;
}

.page-nh__cta-container {
    max-width: 900px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-nh__hero-content {
        padding: 15px;
    }
    .page-nh__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-nh__section-title {
        font-size: clamp(1.5em, 4vw, 2.2em);
    }
    .page-nh__features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-nh {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-nh__hero-section,
    .page-nh__intro-section,
    .page-nh__features-section,
    .page-nh__how-to-play-section,
    .page-nh__promo-video-section,
.page-nh__faq-section,
.page-nh__cta-section {
        padding: 40px 15px;
    }

    .page-nh__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-nh__hero-description {
        font-size: 1em;
    }

    .page-nh__section-title {
        font-size: clamp(1.4em, 6vw, 2em);
        margin-bottom: 30px;
    }

    .page-nh__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-nh__btn-primary,
    .page-nh__btn-secondary,
    .page-nh a[class*="button"],
    .page-nh a[class*="btn"] {
        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-nh__cta-buttons,
    .page-nh__button-group,
    .page-nh__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    /* Images responsiveness */
    .page-nh img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-nh__section,
    .page-nh__card,
    .page-nh__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-nh__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    /* Video responsiveness */
    .page-nh video,
    .page-nh__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-nh__video-section,
    .page-nh__video-container,
    .page-nh__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-nh__video-section {
        padding-top: 10px !important;
    }
    .page-nh__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    }

    .page-nh__list-item {
        padding-left: 20px; /* Reduce padding for smaller screens */
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .page-nh__list-item::before {
        position: static; /* Stack step number above text */
        display: block;
        margin-bottom: 10px;
        text-align: left;
    }
    .page-nh__list-title {
        font-size: 1.2em;
    }
    .page-nh__faq-item summary {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-nh__faq-answer {
        padding: 0 20px 15px 20px;
    }
}