/* style/nh.css */

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

/* Base styles for the page */
.page-nh {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Light text on dark body background */
    background-color: var(--background-color); /* Body background is handled by shared.css var(--background-color) */
    line-height: 1.6;
}

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

.page-nh__section-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-nh__section-text {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    text-align: center;
}

.page-nh__highlight {
    color: var(--gold-color);
    font-weight: 700;
}

/* Hero Section */
.page-nh__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, main offset from body padding-top */
    padding-bottom: 60px;
    background-color: var(--deep-green);
    overflow: hidden;
}

.page-nh__hero-image-wrapper {
    width: 100%;
    max-height: 70vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-nh__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px;
    max-width: 900px;
    margin-top: 30px; /* Space between image and content */
}

.page-nh__main-title {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 900;
    color: var(--gold-color);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(87, 227, 141, 0.7);
}

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

.page-nh__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    text-align: center;
}

.page-nh__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 20px var(--glow-color);
}

.page-nh__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 25px var(--glow-color);
}

.page-nh__btn-secondary {
    background-color: var(--card-bg);
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-nh__btn-secondary:hover {
    background-color: var(--gold-color);
    color: var(--card-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-nh__intro-section, .page-nh__popular-games-section, .page-nh__how-to-play-section, .page-nh__security-section, .page-nh__conclusion-section {
    padding: 60px 0;
    background-color: var(--background-color);
    color: var(--text-main);
}

.page-nh__dark-section {
    background-color: var(--card-bg);
    color: var(--text-main);
    padding: 60px 0;
}

/* Why Choose Section */
.page-nh__why-choose-section .page-nh__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-nh__feature-item {
    background-color: var(--deep-green);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    text-align: center;
}

.page-nh__feature-title {
    font-size: 24px;
    color: var(--gold-color);
    margin-bottom: 15px;
}

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

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

.page-nh__game-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-bottom: 20px;
}

.page-nh__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-nh__game-title {
    font-size: 22px;
    color: var(--gold-color);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-nh__game-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
    padding: 0 15px;
}

.page-nh__game-card .page-nh__cta-button {
    margin: 0 15px;
}

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

.page-nh__promotion-item {
    background-color: var(--deep-green);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    text-align: center;
}

.page-nh__promotion-title {
    font-size: 24px;
    color: var(--gold-color);
    margin-bottom: 15px;
}

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

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

.page-nh__step-item {
    background-color: var(--card-bg);
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--primary-color);
}

.page-nh__step-item:last-child {
    margin-bottom: 0;
}

.page-nh__step-title {
    font-size: 22px;
    color: var(--gold-color);
    margin-bottom: 10px;
}

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

/* Tips Section */
.page-nh__tip-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-nh__tip-item {
    background-color: var(--deep-green);
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--secondary-color);
}

.page-nh__tip-item:last-child {
    margin-bottom: 0;
}

.page-nh__tip-title {
    font-size: 22px;
    color: var(--gold-color);
    margin-bottom: 10px;
}

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

/* Security Section */
.page-nh__security-section .page-nh__section-text {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-nh__security-section .page-nh__cta-button {
    margin-top: 30px;
}

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

.page-nh__faq-item {
    background-color: var(--deep-green);
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

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

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

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

.page-nh__faq-toggle {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-left: 15px;
}

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

/* Conclusion Section */
.page-nh__conclusion-section .page-nh__section-text {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-nh__conclusion-section .page-nh__cta-button {
    margin-top: 30px;
}

.page-nh__section-image {
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    max-width: 100%;
    height: auto;
}

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

    .page-nh__main-title {
        font-size: clamp(28px, 4.5vw, 56px);
    }

    .page-nh__hero-description {
        font-size: 18px;
    }

    .page-nh__section-title {
        font-size: clamp(24px, 3.5vw, 40px);
    }
}

@media (max-width: 768px) {
    .page-nh__hero-section {
        padding-bottom: 40px;
    }

    .page-nh__hero-content {
        margin-top: 20px;
    }

    .page-nh__main-title {
        font-size: clamp(26px, 6vw, 48px);
    }

    .page-nh__hero-description {
        font-size: 16px;
    }

    .page-nh__section-title {
        font-size: clamp(22px, 5vw, 36px);
    }

    .page-nh__section-text, .page-nh__feature-text, .page-nh__game-description, .page-nh__promotion-description, .page-nh__step-description, .page-nh__tip-description, .page-nh__faq-answer p {
        font-size: 15px;
    }

    .page-nh__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0;
        margin-right: 0;
    }

    .page-nh__feature-grid, .page-nh__game-grid, .page-nh__promotion-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-nh__game-card {
        padding-bottom: 15px;
    }

    .page-nh__game-image {
        height: 180px;
    }

    .page-nh__game-title, .page-nh__feature-title, .page-nh__promotion-title, .page-nh__step-title, .page-nh__tip-title {
        font-size: 20px;
    }

    .page-nh__step-item, .page-nh__tip-item, .page-nh__faq-item {
        padding: 20px;
    }

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

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

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

    /* Mobile image and video responsive rules */
    .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-image-wrapper, .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; /* Ensure no overflow */
    }
    
    .page-nh__hero-section, .page-nh__intro-section, .page-nh__why-choose-section, .page-nh__popular-games-section, .page-nh__promotions-section, .page-nh__how-to-play-section, .page-nh__tips-section, .page-nh__security-section, .page-nh__faq-section, .page-nh__conclusion-section {
        padding-left: 0;
        padding-right: 0;
    }

    .page-nh__hero-section {
        padding-top: 10px !important;
    }
}