/* style/nh.css */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --bg-color: #08160F;
    --card-bg-color: #11271B;
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --border-color: #2E7A4E;
    --divider-color: #1E3A2A;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-nh {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Light text for dark background */
    background-color: var(--bg-color); /* Dark background */
    line-height: 1.6;
}

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

/* Hero Section */
.page-nh__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    background-color: var(--card-bg-color);
    text-align: center;
    overflow: hidden;
}

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

.page-nh__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    filter: brightness(0.7); /* Slightly dim the image to make text pop, not changing color */
}

.page-nh__hero-content {
    position: relative;
    z-index: 2;
    padding: 30px 15px;
    max-width: 900px;
    margin-top: -150px; /* Pull content up over the image a bit for visual flow */
    background: rgba(17, 39, 27, 0.85); /* Semi-transparent background for text readability */
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

.page-nh__main-title {
    font-size: clamp(2em, 5vw, 3.5em);
    color: var(--gold-color);
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-nh__hero-description {
    font-size: 1.1em;
    color: var(--text-main-color);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-nh__btn-primary,
.page-nh__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    text-align: center;
}

.page-nh__btn-primary {
    background: var(--btn-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-nh__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

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

.page-nh__btn-secondary:hover {
    background: var(--glow-color);
    color: var(--bg-color);
    transform: translateY(-3px);
}

.page-nh__btn-large {
    font-size: 1.1em;
    padding: 16px 35px;
}

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

/* Common Section Styles */
.page-nh__introduction-section,
.page-nh__why-choose-section,
.page-nh__popular-games-section,
.page-nh__how-to-play-section,
.page-nh__tips-strategies-section,
.page-nh__promotions-section,
.page-nh__faq-section,
.page-nh__cta-bottom-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.page-nh__introduction-section, .page-nh__how-to-play-section, .page-nh__faq-section {
    background-color: var(--bg-color);
}

.page-nh__why-choose-section, .page-nh__popular-games-section, .page-nh__tips-strategies-section, .page-nh__promotions-section {
    background-color: var(--card-bg-color);
}

.page-nh__cta-bottom-section {
    background: var(--btn-gradient);
}

.page-nh__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(17, 168, 78, 0.3);
}

.page-nh__section-title--gold {
    color: var(--gold-color);
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-nh__text-block {
    font-size: 1.05em;
    color: var(--text-secondary-color);
    margin-bottom: 20px;
    line-height: 1.8;
}

.page-nh__text-center {
    text-align: center;
}

.page-nh__text-link {
    color: var(--glow-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* 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(--bg-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-nh__feature-icon {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 8px;
}

.page-nh__feature-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

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

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

.page-nh__game-card,
.page-nh__promo-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-nh__game-card:hover,
.page-nh__promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-nh__game-thumbnail,
.page-nh__promo-thumbnail {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--divider-color);
}

.page-nh__game-card h3,
.page-nh__promo-card h3 {
    padding: 15px 20px 0;
    font-size: 1.4em;
    color: var(--primary-color);
    font-weight: bold;
}

.page-nh__game-card p,
.page-nh__promo-card p {
    padding: 0 20px 15px;
    color: var(--text-secondary-color);
    font-size: 0.95em;
    flex-grow: 1;
}

.page-nh__game-card .page-nh__btn-primary,
.page-nh__promo-card .page-nh__btn-primary {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
}

/* Numbered List for How to Play */
.page-nh__numbered-list {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    margin-top: 30px;
}

.page-nh__numbered-list li {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 70px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-nh__numbered-list li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 20px;
    top: 25px;
    background-color: var(--primary-color);
    color: #ffffff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    box-shadow: 0 0 10px rgba(17, 168, 78, 0.5);
}

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

.page-nh__numbered-list p {
    color: var(--text-secondary-color);
    font-size: 1em;
}

/* Bullet List for Tips */
.page-nh__bullet-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-nh__bullet-list li {
    background-color: var(--bg-color);
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-nh__bullet-list .page-nh__list-title {
    font-size: 1.2em;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: bold;
}

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

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

.page-nh__faq-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-nh__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-main-color);
    cursor: pointer;
    background-color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
}

.page-nh__faq-question:hover {
    background-color: var(--secondary-color);
}

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

.page-nh__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #ffffff;
}

.page-nh__faq-item[open] .page-nh__faq-toggle {
    content: '−';
}

.page-nh__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--text-secondary-color);
    background-color: var(--bg-color);
    border-top: 1px solid var(--divider-color);
}

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

/* CTA Bottom Section */
.page-nh__cta-bottom-section {
    padding: 100px 0;
    background: var(--btn-gradient);
    text-align: center;
}

.page-nh__cta-bottom-section .page-nh__section-title {
    color: #ffffff; /* Override for contrast on gradient */
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.page-nh__cta-bottom-section .page-nh__text-block {
    color: #ffffff;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-nh__cta-buttons--center {
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-nh__hero-content {
        margin-top: -100px;
        padding: 20px;
    }

    .page-nh__main-title {
        font-size: clamp(1.8em, 6vw, 3em);
    }

    .page-nh__section-title {
        font-size: 2em;
    }

    .page-nh__feature-card,
    .page-nh__game-card,
    .page-nh__promo-card {
        padding: 20px;
    }
    .page-nh__feature-title, .page-nh__game-title, .page-nh__promo-title {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .page-nh__hero-section {
        padding-top: 10px; /* Small top padding for hero on mobile */
        padding-bottom: 40px;
    }

    .page-nh__hero-image-wrapper {
        max-height: 400px;
    }

    .page-nh__hero-content {
        margin-top: -80px;
        padding: 15px;
        max-width: 95%;
    }

    .page-nh__main-title {
        font-size: clamp(1.5em, 8vw, 2.5em);
    }

    .page-nh__hero-description {
        font-size: 1em;
    }

    .page-nh__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Limit button width for better stacking */
        margin: 0 auto;
    }

    .page-nh__btn-primary,
    .page-nh__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px;
        font-size: 1em;
    }

    .page-nh__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-nh__introduction-section,
    .page-nh__why-choose-section,
    .page-nh__popular-games-section,
    .page-nh__how-to-play-section,
    .page-nh__tips-strategies-section,
    .page-nh__promotions-section,
    .page-nh__faq-section,
    .page-nh__cta-bottom-section {
        padding: 40px 0;
    }

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

    .page-nh__feature-card,
    .page-nh__game-card,
    .page-nh__promo-card {
        margin: 0 15px;
    }

    .page-nh__numbered-list li {
        padding: 20px 15px 20px 60px;
    }
    .page-nh__numbered-list li::before {
        top: 20px;
        left: 15px;
        width: 30px;
        height: 30px;
        font-size: 1.1em;
    }

    .page-nh__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-nh__faq-answer {
        padding: 15px 20px;
    }

    .page-nh img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-nh__hero-image-wrapper,
    .page-nh__feature-icon,
    .page-nh__game-thumbnail,
    .page-nh__promo-thumbnail,
    .page-nh__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-nh__container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-nh__hero-content {
        margin-top: -50px;
    }
    .page-nh__main-title {
        font-size: clamp(1.2em, 9vw, 2em);
    }
    .page-nh__section-title {
        font-size: 1.5em;
    }
    .page-nh__feature-title, .page-nh__game-title, .page-nh__promo-title {
        font-size: 1.2em;
    }
}