/* style/nh.css */

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

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

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

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

.page-nh__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.page-nh__text-block strong {
    color: var(--text-main);
}

.page-nh__text-link {
    color: var(--glow-color);
    text-decoration: underline;
}

/* Color Contrast System */
.page-nh__dark-bg {
    background-color: var(--background-color-deep);
    color: var(--text-main);
}

.page-nh__light-bg {
    background-color: var(--text-main);
    color: #333333;
}

.page-nh__light-bg .page-nh__section-title {
    color: var(--deep-green);
}

.page-nh__light-bg .page-nh__text-block,
.page-nh__light-bg .page-nh__card-text,
.page-nh__light-bg .page-nh__faq-answer p {
    color: #333333;
}

.page-nh__light-bg .page-nh__text-block strong {
    color: #000000;
}

.page-nh__light-bg .page-nh__text-link {
    color: var(--primary-color);
}

/* Hero Section */
.page-nh__hero-section {
    position: relative;
    width: 100%;
    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;
}

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

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

.page-nh__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin-top: 60px; /* Space from header */
}

.page-nh__main-title {
    font-size: clamp(2em, 5vw, 3.5em);
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: 900;
    text-shadow: 0 0 15px rgba(242, 193, 78, 0.8);
}

.page-nh__subtitle {
    font-size: clamp(1em, 2vw, 1.3em);
    color: var(--text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.page-nh__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.page-nh__btn-primary,
.page-nh__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Ensure text wrapping */
}

.page-nh__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-nh__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
    transform: translateY(-2px);
}

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

.page-nh__btn-secondary:hover {
    background-color: var(--glow-color);
    color: var(--background-color-deep);
    transform: translateY(-2px);
}

/* Introduction Section */
.page-nh__introduction-section {
    padding: 60px 0;
}

/* Why Choose Section */
.page-nh__why-choose-section {
    padding: 60px 0;
}

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

.page-nh__feature-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-nh__feature-icon {
    width: 100%;
    max-width: 200px; /* Adjust as needed, but not less than 200px */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

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

.page-nh__card-text {
    font-size: 1em;
    color: var(--text-secondary);
}

/* How to Play Section */
.page-nh__how-to-play-section {
    padding: 60px 0;
}

.page-nh__numbered-list {
    list-style-type: none;
    counter-reset: step-counter;
    padding: 0;
    margin-top: 30px;
}

.page-nh__numbered-list li {
    counter-increment: step-counter;
    margin-bottom: 25px;
    padding-left: 50px;
    position: relative;
    font-size: 1.1em;
    color: #333333;
}

.page-nh__numbered-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--primary-color);
    color: #ffffff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2em;
}

.page-nh__numbered-list li strong {
    color: #000000;
}

/* Game Types Section */
.page-nh__game-types-section {
    padding: 60px 0;
}

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

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

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

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

.page-nh__game-card .page-nh__card-title {
    padding: 20px 15px 0;
    margin-bottom: 10px;
    text-align: left;
}

.page-nh__game-card .page-nh__card-text {
    padding: 0 15px 20px;
    text-align: left;
}

/* Promotions Section */
.page-nh__promotions-section {
    padding: 60px 0;
}

.page-nh__promo-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-nh__promo-list li {
    background-color: #f0f0f0;
    color: #333333;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 1.1em;
}

.page-nh__promo-list li strong {
    color: #000000;
}

/* Security Section */
.page-nh__security-section {
    padding: 60px 0;
}

.page-nh__security-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-nh__security-list li {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 1.1em;
    position: relative;
    padding-left: 45px; /* For icon */
}

.page-nh__security-list li::before {
    content: '✓'; /* Or use an icon font */
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--glow-color);
    font-weight: bold;
    font-size: 1.3em;
}

.page-nh__security-list li strong {
    color: var(--text-main);
}

/* FAQ Section */
.page-nh__faq-section {
    padding: 60px 0;
}

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

.page-nh__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-nh__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    color: #333333;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

.page-nh__faq-question:hover {
    background-color: #f0f0f0;
}

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

.page-nh__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-left: 15px;
}

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

.page-nh__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1.05em;
    color: #555555;
    background-color: #f9f9f9;
}

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

/* CTA Bottom Section */
.page-nh__cta-bottom-section {
    padding: 60px 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-nh__section-title {
        font-size: 2em;
    }

    .page-nh__main-title {
        font-size: clamp(1.8em, 4.5vw, 3em);
    }

    .page-nh__subtitle {
        font-size: clamp(0.9em, 1.8vw, 1.2em);
    }

    .page-nh__hero-content {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .page-nh__hero-section {
        padding-bottom: 40px;
    }
    .page-nh__hero-content {
        padding: 15px;
        margin-top: 20px;
    }

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

    .page-nh__text-block,
    .page-nh__card-text,
    .page-nh__numbered-list li,
    .page-nh__promo-list li,
    .page-nh__security-list li,
    .page-nh__faq-answer p {
        font-size: 1em;
    }

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

    .page-nh__btn-primary,
    .page-nh__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
    }

    .page-nh__features-grid,
    .page-nh__game-cards-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-nh__feature-card,
    .page-nh__game-card {
        padding: 25px;
    }

    .page-nh__numbered-list li {
        padding-left: 45px;
    }

    .page-nh__numbered-list li::before {
        width: 30px;
        height: 30px;
        font-size: 1.1em;
    }

    .page-nh__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-nh__faq-toggle {
        font-size: 1.3em;
    }
    
    /* Mobile image responsiveness */
    .page-nh img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-nh__section,
    .page-nh__card,
    .page-nh__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    
    .page-nh__hero-image-wrapper {
        position: relative; /* Adjust hero image wrapper for mobile stacking */
        height: auto;
    }

    .page-nh__hero-image {
        height: auto;
        min-height: 250px; /* Ensure image is visible */
    }

    .page-nh__hero-content {
        background: none; /* Remove background on mobile for better readability */
        border-radius: 0;
        padding: 0;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .page-nh__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
    }

    .page-nh__subtitle {
        font-size: clamp(0.9em, 3.5vw, 1em);
    }

    .page-nh__section-title {
        font-size: 1.5em;
    }
}