:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --accent-color: #d6d604; /* Yellow-green/lemon yellow */
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --card-bg: #FFFFFF;
    --page-bg: #F4F7FB;
    --text-main: #1F2D3D;
    --text-black: #000000;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
    --deep-red-bg: #2d0000; /* Dark background */
    --dark-grey-bg: #0a0909; /* Darker background */
    --orange-accent: #ff9900; /* For blockquote or highlights */
}

/* Base styles for the page-nh class */
.page-nh {
    font-family: Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--dark-grey-bg); /* Deep red/wine background */
    padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-nh__hero-section {
    position: relative;
    text-align: center;
    padding-bottom: 40px;
    background-color: var(--deep-red-bg); /* Ensure hero has a dark background */
    color: var(--card-bg); /* White text on dark background */
}

.page-nh__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
}

.page-nh__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-nh__hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.page-nh__main-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 800px;
    margin: 20px auto 15px auto;
    color: var(--accent-color); /* Use accent color for H1 */
}

.page-nh__description {
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.page-nh__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 30px;
    background: var(--button-gradient);
    color: var(--card-bg);
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
    min-width: 200px; /* Enforce min size for buttons */
    min-height: 48px;
    line-height: 18px; /* Ensure text fits */
    text-align: center;
}

.page-nh__cta-button:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    transform: translateY(-2px);
}

.page-nh__section-title {
    font-size: 2.2em;
    font-weight: bold;
    text-align: center;
    margin: 60px auto 40px auto;
    color: var(--accent-color); /* Section titles use accent color */
    max-width: 1200px;
}

/* Game Showcase Section */
.page-nh__game-showcase {
    background-color: var(--page-bg);
    padding: 60px 20px;
    max-width: 1390px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 40px;
}

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

.page-nh__game-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-bottom: 20px;
}

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

.page-nh__game-card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-nh__game-card-title {
    font-size: 1.4em;
    font-weight: bold;
    margin: 0 15px 10px 15px;
    color: var(--text-main);
}

.page-nh__game-card-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-nh__game-card-title a:hover {
    color: var(--primary-color);
}

.page-nh__game-card-description {
    font-size: 0.95em;
    line-height: 1.5;
    color: var(--text-main);
    flex-grow: 1;
    margin: 0 15px 20px 15px;
}

.page-nh__game-card-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 20px;
    background: var(--button-gradient);
    color: var(--card-bg);
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
    margin-top: auto; /* Push button to bottom */
    min-width: 120px; /* Ensure button size */
    min-height: 40px;
    line-height: 20px;
    text-align: center;
}

.page-nh__game-card-button:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    transform: translateY(-2px);
}

.page-nh__view-all {
    text-align: center;
    margin-top: 40px;
}

.page-nh__view-all-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 25px;
    background: var(--primary-color);
    color: var(--card-bg);
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
    min-width: 200px; /* Enforce min size for buttons */
    min-height: 48px;
    line-height: 24px;
    text-align: center;
}

.page-nh__view-all-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Features Section */
.page-nh__features, .page-nh__how-to-play, .page-nh__faq-section {
    background-color: var(--dark-grey-bg);
    padding: 60px 20px;
    max-width: 1390px;
    margin: 0 auto;
    color: var(--card-bg); /* White text on dark background */
}

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

.page-nh__feature-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for cards */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-nh__feature-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1);
}

.page-nh__feature-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--accent-color); /* Feature titles use accent color */
}

.page-nh__feature-description {
    font-size: 1em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* How To Play Section */
.page-nh__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-nh__step-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-nh__step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--dark-grey-bg);
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
}

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

.page-nh__step-description {
    font-size: 1em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.page-nh__cta-bottom {
    text-align: center;
    margin-top: 50px;
}

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

.page-nh__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-nh__faq-question {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--primary-color); /* FAQ questions use primary color */
    margin-bottom: 10px;
}

.page-nh__faq-answer {
    font-size: 1em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-nh__main-title {
        font-size: 2.5em;
    }
    .page-nh__section-title {
        font-size: 2em;
    }
    .page-nh__game-card-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-nh__main-title {
        font-size: 2em;
        margin-top: 15px;
    }
    .page-nh__description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-nh__cta-button {
        padding: 12px 25px;
        font-size: 0.9em;
    }
    .page-nh__section-title {
        font-size: 1.8em;
        margin: 40px auto 30px auto;
    }
    .page-nh__game-grid,
    .page-nh__features-grid,
    .page-nh__steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-nh__game-card-image {
        height: auto; /* Allow height to be auto on mobile */
        max-width: 100%; /* Important for mobile overflow */
    }
    .page-nh__game-card-title {
        font-size: 1.2em;
    }
    .page-nh__game-card-description {
        font-size: 0.9em;
    }
    .page-nh__game-card-button {
        padding: 8px 15px;
        font-size: 0.85em;
    }
    .page-nh__view-all-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-nh__feature-title, .page-nh__step-title {
        font-size: 1.3em;
    }
    .page-nh__faq-question {
        font-size: 1.1em;
    }
    .page-nh__hero-image,
    .page-nh__game-card-image {
        max-width: 100%;
        height: auto;
    }
    /* Ensure all images within .page-nh follow responsive rules */
    .page-nh img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-nh__main-title {
        font-size: 1.8em;
    }
    .page-nh__section-title {
        font-size: 1.6em;
    }
    .page-nh__hero-content,
    .page-nh__game-showcase,
    .page-nh__features,
    .page-nh__how-to-play,
    .page-nh__faq-section {
        padding-left: 15px;
        padding-right: 15px;
    }
}