/* style/nh.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

/* Base styles for the page content, assuming body has a dark background from shared.css */
.page-nh {
    font-family: 'Arial', sans-serif;
    color: var(--color-text-main); /* Default text color for dark background */
    background-color: var(--color-background); /* Explicit background for main content area */
    line-height: 1.6;
    font-size: 1rem;
}

/* Ensure all links within page-nh inherit color or have specific contrast */
.page-nh a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-nh a:hover {
    color: var(--color-glow);
}

/* Section styling */
.page-nh__section {
    padding: 60px 20px;
    text-align: center;
}

.page-nh__dark-section {
    background-color: var(--color-card-bg); /* Darker background for contrast */
    color: var(--color-text-main);
}

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

/* Titles */
.page-nh__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1, no fixed large size */
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Subtle glow */
}

.page-nh__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 40px;
    line-height: 1.3;
}

.page-nh__card-title,
.page-nh__step-title {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 15px;
}

/* Text elements */
.page-nh__description,
.page-nh__text-block,
.page-nh__card-text,
.page-nh__step-text {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-nh__btn-primary,
.page-nh__btn-secondary,
.page-nh__btn-play {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border: none;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    max-width: 100%; /* Ensure button doesn't exceed container */
}

.page-nh__btn-primary {
    background: var(--color-button-gradient-start); /* Fallback for gradient */
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

.page-nh__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(17, 168, 78, 0.6);
}

.page-nh__btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    margin-left: 20px;
}

.page-nh__btn-secondary:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

.page-nh__btn-play {
    background: var(--color-button-gradient-start); /* Fallback for gradient */
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 15px;
}

.page-nh__btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(17, 168, 78, 0.4);
}

.page-nh__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Hero Section */
.page-nh__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: var(--color-background);
}

.page-nh__video-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 30px auto; /* Margin below video */
    box-sizing: border-box;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background-color: #000; /* Fallback background for video */
}

.page-nh__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

.page-nh__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-nh__hero-content {
    max-width: 800px;
    text-align: center;
}

/* Images */
.page-nh__image,
.page-nh__feature-icon,
.page-nh__game-image,
.page-nh__promo-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Ensure images don't have filters */
.page-nh img {
    filter: none;
}

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

.page-nh__feature-card,
.page-nh__game-card,
.page-nh__promo-card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--color-border);
}

.page-nh__feature-card img,
.page-nh__game-card img,
.page-nh__promo-card img {
    margin-bottom: 20px;
    border-radius: 8px;
    width: 100%; /* Ensure images fill card width */
    height: 200px; /* Fixed height for consistency in cards */
    object-fit: cover;
}

.page-nh__game-card .page-nh__card-title,
.page-nh__promo-card .page-nh__card-title {
    color: var(--color-gold);
}


/* Steps List */
.page-nh__steps-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0 auto;
    max-width: 900px;
    text-align: left;
}

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

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

/* FAQ Section */
.page-nh__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-nh__faq-item {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--color-border);
}

.page-nh__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-main);
    user-select: none;
    transition: background-color 0.3s ease;
}

.page-nh__faq-question:hover {
    background-color: rgba(var(--color-primary), 0.1); /* Using rgba for hover effect */
}

.page-nh__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.page-nh__faq-item[open] .page-nh__faq-toggle {
    transform: rotate(45deg); /* Rotate + to become X or - */
}

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

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

.page-nh__faq-answer p {
    margin-bottom: 0; /* Remove default paragraph margin */
}

/* Footer CTA */
.page-nh__final-cta-section {
    padding-bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-nh__section {
        padding: 40px 15px;
    }

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

    .page-nh__section-title {
        font-size: clamp(1.6rem, 5vw, 2.5rem);
    }

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

    .page-nh__btn-secondary {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    /* Mobile-specific force responsiveness */
    .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__video-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .page-nh__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-nh__section,
    .page-nh__card,
    .page-nh__container,
    .page-nh__cta-buttons,
    .page-nh__button-group,
    .page-nh__btn-container,
    .page-nh__video-section,
    .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 */
    }

    /* Buttons */
    .page-nh__cta-button,
    .page-nh__btn-primary,
    .page-nh__btn-secondary,
    .page-nh a[class*="button"],
    .page-nh a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-left: 0 !important; /* Remove margin for secondary button */
    }
    
    .page-nh__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
    }

    .page-nh__feature-card img,
    .page-nh__game-card img,
    .page-nh__promo-card img {
         /* Adjust height for mobile cards */
    }

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

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

@media (max-width: 480px) {
    .page-nh__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .page-nh__section-title {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }

    .page-nh__description,
    .page-nh__text-block,
    .page-nh__card-text,
    .page-nh__step-text {
        font-size: 0.95rem;
    }

    .page-nh__btn-primary,
    .page-nh__btn-secondary,
    .page-nh__btn-play {
        padding: 12px 20px;
        font-size: 1rem;
    }
}