/* style/nh.css */

/* Custom Properties for Colors */
:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --card-bg: #FFFFFF;
    --page-bg: #F4F7FB;
    --text-main: #1F2D3D;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
    --light-text: #ffffff;
    --dark-text: #333333; /* Default for general content on light bg */
}

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

.page-nh__section {
    padding: 60px 0;
    position: relative;
}

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

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

.page-nh__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure full width within container */
}

.page-nh__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-nh__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-nh__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-nh__main-title {
    font-size: 3em;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.2;
    max-width: 900px; /* To prevent extremely long single lines */
    margin-left: auto;
    margin-right: auto;
}

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

.page-nh__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-nh__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-nh__cta-button--inverted {
    background: var(--card-bg);
    color: var(--primary-color);
}

.page-nh__cta-button--inverted:hover {
    background: var(--light-text);
    color: var(--primary-color);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.3);
}

.page-nh__cta-button--secondary {
    background: var(--secondary-color);
    color: var(--light-text);
    margin-left: 20px;
}

.page-nh__cta-button--secondary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
}

.page-nh__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

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

.page-nh__text-block {
    font-size: 1.1em;
    color: var(--dark-text); /* Ensure contrast on light background */
    margin-bottom: 20px;
    text-align: justify;
}

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

.page-nh__highlight-text {
    color: var(--primary-color);
    font-weight: bold;
}

/* Introduction Section */
.page-nh__introduction-section {
    background-color: var(--card-bg); /* light background */
}

/* Game Types Section */
.page-nh__game-types-section {
    background-color: var(--page-bg); /* light background */
}

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

.page-nh__game-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-nh__game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-nh__game-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-nh__game-card-title {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--text-main);
    padding: 20px 20px 10px;
}

.page-nh__game-card-description {
    font-size: 1em;
    color: var(--dark-text);
    padding: 0 20px 20px;
    line-height: 1.5;
}

/* Benefits Section */
.page-nh__benefits-section {
    background-color: var(--card-bg);
}

.page-nh__benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.page-nh__benefits-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-nh__benefits-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-nh__benefits-item-title {
    font-size: 1.6em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-nh__benefits-item-description {
    font-size: 1em;
    color: var(--dark-text);
    line-height: 1.6;
}

.page-nh__benefits-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-top: 20px;
}

/* Guide Section */
.page-nh__guide-section {
    background-color: var(--page-bg);
}

.page-nh__guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: guide-counter;
}

.page-nh__guide-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    padding: 30px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 80px;
    border: 1px solid var(--border-color);
}

.page-nh__guide-item::before {
    counter-increment: guide-counter;
    content: counter(guide-counter);
    position: absolute;
    left: 30px;
    top: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
}

.page-nh__guide-item-title {
    font-size: 1.6em;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 10px;
}

.page-nh__guide-item-description {
    font-size: 1em;
    color: var(--dark-text);
    line-height: 1.6;
}

/* Tips Section */
.page-nh__tips-section {
    background-color: var(--card-bg);
}

.page-nh__tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-nh__tips-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    padding: 30px;
    border: 1px solid var(--border-color);
}

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

.page-nh__tips-item-description {
    font-size: 1em;
    color: var(--dark-text);
    line-height: 1.6;
}

/* FAQ Section */
.page-nh__faq-section {
    background-color: var(--page-bg);
}

.page-nh__faq-list {
    margin-top: 40px;
}

details.page-nh__faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
details.page-nh__faq-item summary.page-nh__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    font-weight: bold;
    color: var(--text-main);
}
details.page-nh__faq-item summary.page-nh__faq-question::-webkit-details-marker {
    display: none;
}
details.page-nh__faq-item summary.page-nh__faq-question:hover {
    background: #f9f9f9;
}
.page-nh__faq-qtext {
    flex: 1;
    font-size: 1.1em;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main); /* Ensure contrast */
}
.page-nh__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-nh__faq-item .page-nh__faq-answer {
    padding: 0 25px 25px;
    background: #fdfdfd;
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 12px 12px;
    font-size: 1em;
    color: var(--dark-text);
    line-height: 1.6;
}

/* CTA Section */
.page-nh__cta-section {
    background: var(--button-gradient); /* Use gradient for dark section */
    text-align: center;
    padding: 80px 0;
}

.page-nh__dark-section .page-nh__section-title {
    color: var(--light-text);
}

.page-nh__dark-section .page-nh__text-block {
    color: var(--light-text);
}

.page-nh__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-nh__main-title {
        font-size: 2.5em;
    }
    .page-nh__section-title {
        font-size: 2em;
    }
    .page-nh__game-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-nh__benefits-list {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-nh__hero-section {
        padding-top: 10px !important; /* Enforce small top padding */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-nh__hero-image img {
        border-radius: 4px;
    }

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

    .page-nh__main-title {
        font-size: 2em;
        margin-bottom: 10px;
    }

    .page-nh__cta-button {
        padding: 12px 30px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-nh__cta-button--secondary {
        margin-left: 0;
        margin-top: 15px; /* Stack buttons vertically */
    }

    .page-nh__button-group {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-nh__section {
        padding: 40px 0;
    }

    .page-nh__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-nh__text-block {
        font-size: 0.95em;
        text-align: left;
    }

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

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

    .page-nh__game-card-title,
    .page-nh__benefits-item-title,
    .page-nh__guide-item-title,
    .page-nh__tips-item-title {
        font-size: 1.3em;
    }

    .page-nh__guide-item {
        padding: 20px 20px 20px 60px;
    }

    .page-nh__guide-item::before {
        left: 20px;
        top: 20px;
        width: 30px;
        height: 30px;
        font-size: 1.2em;
    }

    details.page-nh__faq-item summary.page-nh__faq-question {
        padding: 15px 20px;
    }
    .page-nh__faq-qtext {
        font-size: 1em;
    }
    .page-nh__faq-toggle {
        font-size: 20px;
        width: 24px;
    }
    details.page-nh__faq-item .page-nh__faq-answer {
        padding: 0 20px 20px;
    }

    /* Image responsive enforcement */
    .page-nh img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-nh__main-title {
        font-size: 1.8em;
    }
    .page-nh__section-title {
        font-size: 1.6em;
    }
    .page-nh__cta-button {
        font-size: 0.95em;
    }
}