/* style/nh.css */

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

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

.page-nh__section {
    padding: 60px 0;
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-divider);
}

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

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

.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;
}

.page-nh__hero-content {
    position: relative;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    z-index: 10;
    margin-top: -100px; /* Pull content up slightly over the image for visual flow */
    background: rgba(8, 22, 15, 0.8); /* Semi-transparent background for readability */
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-border);
}

.page-nh__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    color: var(--color-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.7);
}

.page-nh__description {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    color: var(--color-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-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-nh__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-nh__btn-secondary {
    background: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.2);
}

.page-nh__btn-secondary:hover {
    background: var(--color-secondary);
    color: var(--color-background);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.4);
}

.page-nh__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.5);
}

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

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

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

.page-nh__card {
    background-color: var(--color-card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease;
    color: var(--color-text-main); /* Ensure text is visible on card background */
}

.page-nh__card:hover {
    transform: translateY(-5px);
}

.page-nh__feature-image,
.page-nh__game-image,
.page-nh__promo-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--color-border);
    display: block; /* Ensure it respects max-width: 100% */
}

.page-nh__feature-title,
.page-nh__game-title,
.page-nh__promo-title {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-nh__game-title a {
    color: var(--color-primary);
    text-decoration: none;
}

.page-nh__game-title a:hover {
    text-decoration: underline;
    color: var(--color-gold);
}

.page-nh__feature-description,
.page-nh__game-description,
.page-nh__promo-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.page-nh__guide-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

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

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

.page-nh__guide-step-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.page-nh__content-flex {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 30px;
}

.page-nh__content-flex--reverse {
    flex-direction: row-reverse;
}

.page-nh__content-text {
    flex: 1;
}

.page-nh__content-image-wrapper {
    flex: 0 0 40%; /* Adjust width as needed */
    max-width: 40%;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

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

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

.page-nh__promo-item {
    padding: 25px;
}

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

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

.page-nh__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: var(--color-deep-green);
    color: var(--color-text-main);
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    outline: none;
    border-bottom: 1px solid var(--color-divider);
    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(--color-primary);
}

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

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

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

.page-nh__faq-answer {
    padding: 20px 25px;
    background-color: var(--color-card-bg);
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.page-nh__btn-full-width {
    width: auto;
    min-width: 250px; /* Ensure a minimum width */
    margin-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-nh__hero-content {
        margin-top: -50px;
    }
    .page-nh__content-flex {
        flex-direction: column;
        align-items: center;
    }
    .page-nh__content-image-wrapper {
        max-width: 80%;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-nh {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-nh__section {
        padding: 40px 0;
    }
    .page-nh__hero-content {
        padding: 30px 15px;
        margin-top: -30px;
    }
    .page-nh__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-nh__description {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
    }
    .page-nh__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-nh__btn-primary,
    .page-nh__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-nh__container,
    .page-nh__hero-section,
    .page-nh__introduction-section,
    .page-nh__features-section,
    .page-nh__guide-section,
    .page-nh__popular-games-section,
    .page-nh__strategy-section,
    .page-nh__promotions-section,
    .page-nh__support-section,
    .page-nh__faq-section,
    .page-nh__conclusion-section,
    .page-nh__features-grid,
    .page-nh__game-grid,
    .page-nh__promo-list,
    .page-nh__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
    .page-nh img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-nh__feature-image,
    .page-nh__game-image,
    .page-nh__promo-image {
        height: auto;
        min-height: 200px;
    }
    .page-nh__content-image-wrapper {
        max-width: 100%;
        flex: 0 0 100%;
    }
    .page-nh__faq-item summary {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-nh__faq-answer {
        padding: 15px 20px;
    }
    .page-nh__guide-item {
        padding: 20px 25px;
    }
    .page-nh__guide-step-title {
        font-size: 1.2rem;
    }
    .page-nh__section-title {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
    }
}

@media (max-width: 480px) {
    .page-nh__hero-content {
        margin-top: -20px;
    }
    .page-nh__main-title {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
    }
    .page-nh__description {
        font-size: clamp(0.85rem, 3vw, 0.95rem);
    }
    .page-nh__btn-primary,
    .page-nh__btn-secondary {
        font-size: 0.9rem;
    }
    .page-nh__features-grid,
    .page-nh__game-grid,
    .page-nh__promo-list {
        grid-template-columns: 1fr;
    }
}