/* style/nh.css */

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

/* Base styles for the page content, ensuring contrast with body background */
.page-nh {
    background-color: var(--page-nh-background); /* Dark background */
    color: var(--page-nh-text-main); /* Light text */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    /* padding-top: 1px; This is handled by body padding-top in shared.css, no need to add here */
}

/* Section general styling */
.page-nh__hero-section,
.page-nh__video-section,
.page-nh__about-section,
.page-nh__features-section,
.page-nh__games-section,
.page-nh__strategy-section,
.page-nh__promotions-section,
.page-nh__register-guide-section,
.page-nh__faq-section,
.page-nh__conclusion-section {
    padding: 60px 20px;
    position: relative;
    overflow: hidden; /* Ensure no content spills out */
}

/* Small padding for sections, body padding-top handles header offset */
.page-nh__hero-section,
.page-nh__video-section {
    padding-top: 10px; 
}

/* Container for content width */
.page-nh__container {
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 15px; /* Inner padding for containers */
}

/* Hero Section */
.page-nh__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
    position: relative;
}

.page-nh__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-nh__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    background-color: rgba(17, 39, 27, 0.7); /* Using Card BG color with transparency */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-top: 50px; /* Space from top */
}

.page-nh__main-title {
    color: var(--page-nh-gold);
    font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.7); /* Glow effect */
}

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

/* Video Section */
.page-nh__video-section {
    text-align: center;
}

.page-nh__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: var(--page-nh-deep-green);
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--page-nh-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    width: 100%; /* Desktop width: 100% */
}

.page-nh__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer; /* Indicate clickability */
}

.page-nh__video-caption {
    color: var(--page-nh-text-secondary);
    margin-top: 20px;
    font-style: italic;
}

/* Buttons */
.page-nh__cta-button {
    display: inline-block;
    background: var(--page-nh-button-gradient);
    color: #ffffff; /* White text for buttons */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding and border are included in the element's total width */
    max-width: 100%; /* Important for responsiveness */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-nh__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--page-nh-glow);
}

.page-nh__btn-small {
    padding: 10px 20px;
    font-size: 1rem;
}

/* Section titles */
.page-nh__section-title {
    color: var(--page-nh-gold);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.5);
}

.page-nh__text-block {
    color: var(--page-nh-text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

/* Feature Grid */
.page-nh__feature-grid,
.page-nh__game-type-grid,
.page-nh__promo-grid,
.page-nh__step-by-step {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-nh__feature-card,
.page-nh__game-type-card,
.page-nh__promo-card,
.page-nh__step-card {
    background-color: var(--page-nh-card-bg); /* Dark card background */
    border: 1px solid var(--page-nh-border);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--page-nh-text-main); /* Light text on dark card */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-nh__feature-card:hover,
.page-nh__game-type-card:hover,
.page-nh__promo-card:hover,
.page-nh__step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 10px var(--page-nh-glow);
}

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

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

.page-nh__card-description {
    color: var(--page-nh-text-secondary);
    font-size: 0.95rem;
    flex-grow: 1; /* Make description take available space */
}

/* Strategy List */
.page-nh__strategy-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

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

.page-nh__strategy-heading {
    color: var(--page-nh-gold);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.page-nh__strategy-item p {
    color: var(--page-nh-text-secondary);
}

/* Step-by-step guide */
.page-nh__step-card {
    position: relative;
    padding-top: 60px; /* Space for step number */
}

.page-nh__step-number {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--page-nh-primary-color);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    border: 2px solid var(--page-nh-gold);
    box-shadow: 0 0 10px rgba(87, 227, 141, 0.7);
}

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

.page-nh__faq-item {
    background-color: var(--page-nh-card-bg);
    border: 1px solid var(--page-nh-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--page-nh-text-main);
}

.page-nh__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--page-nh-gold);
    cursor: pointer;
    background-color: var(--page-nh-deep-green); /* Slightly different background for question */
    transition: background-color 0.3s ease;
}

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

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

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

.page-nh__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--page-nh-text-secondary);
    line-height: 1.7;
}

/* Remove default details arrow */
.page-nh__faq-item summary {
    list-style: none;
}
.page-nh__faq-item summary::-webkit-details-marker {
    display: none;
}

/* Copyright */
.page-nh__copyright {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--page-nh-deep-green);
    color: var(--page-nh-text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--page-nh-divider);
}

/* General image styling */
.page-nh img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-nh__main-title {
        font-size: clamp(1.8rem, 6vw, 3rem);
    }
    .page-nh__section-title {
        font-size: 2rem;
    }
    .page-nh__feature-grid,
    .page-nh__game-type-grid,
    .page-nh__promo-grid,
    .page-nh__step-by-step {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-nh__hero-section,
    .page-nh__video-section,
    .page-nh__about-section,
    .page-nh__features-section,
    .page-nh__games-section,
    .page-nh__strategy-section,
    .page-nh__promotions-section,
    .page-nh__register-guide-section,
    .page-nh__faq-section,
    .page-nh__conclusion-section {
        padding: 40px 15px;
    }

    .page-nh__container {
        padding: 0;
    }

    .page-nh__main-title {
        font-size: clamp(1.6rem, 7vw, 2.5rem);
    }
    .page-nh__section-title {
        font-size: 1.8rem;
    }
    .page-nh__description,
    .page-nh__text-block,
    .page-nh__card-description,
    .page-nh__strategy-item p,
    .page-nh__faq-answer p {
        font-size: 1rem;
    }
    .page-nh__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
        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.page-nh__btn-small {
        width: auto !important; /* Allow small buttons to be smaller than 100% */
        max-width: none !important;
    }

    .page-nh__feature-grid,
    .page-nh__game-type-grid,
    .page-nh__promo-grid,
    .page-nh__step-by-step {
        grid-template-columns: 1fr;
    }

    .page-nh__feature-card,
    .page-nh__game-type-card,
    .page-nh__promo-card,
    .page-nh__step-card,
    .page-nh__strategy-item,
    .page-nh__faq-item {
        padding: 20px;
    }

    .page-nh__feature-icon,
    .page-nh__game-type-image,
    .page-nh__promo-image {
        height: 180px;
    }

    /* Images responsive force */
    .page-nh img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Image/Video containers responsive force */
    .page-nh__hero-section,
    .page-nh__video-section,
    .page-nh__about-section,
    .page-nh__features-section,
    .page-nh__games-section,
    .page-nh__strategy-section,
    .page-nh__promotions-section,
    .page-nh__register-guide-section,
    .page-nh__faq-section,
    .page-nh__conclusion-section,
    .page-nh__container,
    .page-nh__feature-card,
    .page-nh__game-type-card,
    .page-nh__promo-card,
    .page-nh__step-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }

    .page-nh__video-wrapper {
        padding-bottom: 56.25% !important; /* Ensure aspect ratio on mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-nh__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-nh__video-section {
        padding-top: 10px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}