/* style/nh.css */

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

.page-nh {
    font-family: 'Arial', sans-serif;
    color: var(--nh-text-main); /* Default text color for the page */
    background-color: var(--nh-background); /* Overall page background, assuming body is dark */
}

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

/* Hero Section */
.page-nh__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--nh-background);
}

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

.page-nh__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-nh__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--nh-gold);
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-nh__description {
    font-size: 1.1rem;
    color: var(--nh-text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

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

.page-nh__btn-primary,
.page-nh__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-nh__btn-primary {
    background: var(--nh-btn-gradient);
    color: #FFFFFF;
    border: none;
}

.page-nh__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-nh__btn-secondary:hover {
    background-color: var(--nh-gold);
    color: var(--nh-background);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-nh__introduction-section,
.page-nh__benefits-section,
.page-nh__popular-games-section,
.page-nh__guide-section,
.page-nh__strategy-section,
.page-nh__faq-section,
.page-nh__conclusion-section {
    padding: 60px 0;
    background-color: var(--nh-background);
}

.page-nh__section-title {
    font-size: 2.5rem;
    color: var(--nh-gold);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
    font-weight: 700;
}

.page-nh__text-block {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--nh-text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

.page-nh__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

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

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

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

.page-nh__card-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

.page-nh__card-text {
    font-size: 0.95rem;
    color: var(--nh-text-secondary);
    line-height: 1.6;
}

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

/* List Styles */
.page-nh__game-list,
.page-nh__step-list,
.page-nh__strategy-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-nh__game-item,
.page-nh__step-item,
.page-nh__strategy-item {
    background-color: var(--nh-card-bg);
    border: 1px solid var(--nh-border);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--nh-text-main);
}

.page-nh__game-item-title,
.page-nh__step-title,
.page-nh__strategy-title {
    font-size: 1.4rem;
    color: var(--nh-primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-nh__game-item-description,
.page-nh__step-description,
.page-nh__strategy-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--nh-text-secondary);
}

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

.page-nh__faq-item {
    background-color: var(--nh-card-bg);
    border: 1px solid var(--nh-border);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--nh-text-main);
}

.page-nh__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    outline: none;
    list-style: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--nh-text-main);
    transition: background-color 0.3s ease;
}

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

.page-nh__faq-item summary:hover {
    background-color: var(--nh-deep-green);
}

.page-nh__faq-qtext {
    flex-grow: 1;
    color: var(--nh-gold);
}

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

.page-nh__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--nh-text-secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-nh__faq-item[open] .page-nh__faq-answer {
    max-height: 500px; /* Sufficiently large to cover content */
    padding-top: 10px;
}

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

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

.page-nh__faq-answer a {
    color: var(--nh-gold);
    text-decoration: underline;
}

.page-nh__faq-answer a:hover {
    color: var(--nh-primary-color);
}

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

    .page-nh__main-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .page-nh__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

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

    .page-nh__btn-primary,
    .page-nh__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }
    
    .page-nh__introduction-section,
    .page-nh__benefits-section,
    .page-nh__popular-games-section,
    .page-nh__guide-section,
    .page-nh__strategy-section,
    .page-nh__faq-section,
    .page-nh__conclusion-section {
        padding: 40px 0;
    }

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

    .page-nh__text-block {
        font-size: 0.95rem;
    }

    .page-nh__card-grid {
        grid-template-columns: 1fr;
    }

    .page-nh__card {
        padding: 25px;
    }

    .page-nh__card-title {
        font-size: 1.3rem;
    }

    .page-nh__game-item-title,
    .page-nh__step-title,
    .page-nh__strategy-title {
        font-size: 1.25rem;
    }

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

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

    /* Mobile image responsiveness */
    .page-nh img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-nh__hero-image {
        margin-bottom: 20px;
    }

    /* Ensure containers are responsive */
    .page-nh__container,
    .page-nh__card,
    .page-nh__game-item,
    .page-nh__step-item,
    .page-nh__strategy-item,
    .page-nh__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Specific override for hero content padding to prevent double padding */
    .page-nh__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}