.page-nh {
    font-family: Arial, sans-serif;
    color: #FFFFFF; /* Default text color on dark background */
    background-color: #100224; /* Main background */
    padding-top: 10px; /* Small top padding for first section */
}

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

/* Hero Section */
.page-nh__hero-section {
    position: relative;
    width: 100%;
    background-color: #017439; /* Fallback background */
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    padding-bottom: 40px;
}

.page-nh__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/5; /* Adjust aspect ratio for hero image */
}

.page-nh__hero-content {
    text-align: center;
    padding: 20px;
    max-width: 900px;
    margin-top: 20px; /* Space below image */
}

.page-nh__main-title {
    font-size: clamp(2rem, 5vw, 3rem); /* Responsive font size */
    font-weight: bold;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-nh__hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #E0E0E0;
}

.page-nh__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.page-nh__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: none;
}

.page-nh__btn--register {
    background-color: #C30808; /* Custom color for register */
    color: #FFFF00; /* Custom font color for register */
}

.page-nh__btn--register:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

.page-nh__btn--login {
    background-color: #C30808; /* Custom color for login */
    color: #FFFF00; /* Custom font color for login */
}

.page-nh__btn--login:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

.page-nh__btn--view-all,
.page-nh__btn--play-now,
.page-nh__btn--promo-details,
.page-nh__btn--view-all-promos {
    background-image: linear-gradient(to right, #ff9500, #ff5e3a); /* Orange-red gradient */
    color: #FFFFFF;
}

.page-nh__btn--view-all:hover,
.page-nh__btn--play-now:hover,
.page-nh__btn--promo-details:hover,
.page-nh__btn--view-all-promos:hover {
    background-image: linear-gradient(to right, #ff5e3a, #ff9500);
    transform: translateY(-2px);
}


/* Section Titles */
.page-nh__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
    position: relative;
}

.page-nh__section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-image: linear-gradient(to right, #ff9500, #ff5e3a);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-nh__text-content {
    font-size: 1rem;
    line-height: 1.7;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #E0E0E0;
}

/* Game Grid */
.page-nh__popular-games-section {
    background-color: #1a0833; /* Slightly lighter dark background */
    padding: 60px 0;
}

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

.page-nh__game-card {
    background-color: #2a1547;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #FFFFFF;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 15px;
}

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

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

.page-nh__game-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 15px;
    padding: 0 10px;
}

.page-nh__button-wrapper {
    text-align: center;
    margin-top: 50px;
}

/* Advantages Section */
.page-nh__advantages-section {
    padding: 60px 0;
    background-color: #100224;
}

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

.page-nh__advantage-item {
    background-color: #2a1547;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-nh__advantage-icon {
    width: 200px; /* Ensure minimum size */
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-nh__advantage-title {
    font-size: 1.4rem;
    color: #ff9500; /* Highlight title with accent color */
    margin-bottom: 15px;
}

.page-nh__advantage-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #E0E0E0;
}

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

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

.page-nh__step-item {
    background-color: #2a1547;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.page-nh__step-title {
    font-size: 1.3rem;
    color: #ff9500;
    margin-bottom: 15px;
    position: relative;
}

.page-nh__step-title::before {
    content: attr(data-step-number); /* Use custom attribute for step number */
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #83a1f2; /* Blue accent for step numbers */
    margin-bottom: 10px;
}
.page-nh__step-item:nth-child(1) .page-nh__step-title::before { content: "1"; }
.page-nh__step-item:nth-child(2) .page-nh__step-title::before { content: "2"; }
.page-nh__step-item:nth-child(3) .page-nh__step-title::before { content: "3"; }
.page-nh__step-item:nth-child(4) .page-nh__step-title::before { content: "4"; }


.page-nh__step-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #E0E0E0;
}

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

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

.page-nh__promotion-card {
    background-color: #2a1547;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.page-nh__promotion-image {
    width: 100%;
    height: 250px; /* Consistent height for promo images */
    object-fit: cover;
    display: block;
}

.page-nh__promotion-title {
    font-size: 1.3rem;
    color: #ff9500;
    margin: 20px 15px 10px;
}

.page-nh__promotion-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #E0E0E0;
    padding: 0 15px 20px;
    flex-grow: 1; /* Push button to bottom */
}

.page-nh__btn--promo-details {
    margin: 0 15px 20px;
    align-self: center;
}

/* FAQ Section */
.page-nh__faq-section {
    padding: 60px 0;
    background-color: #1a0833;
}

.page-nh__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-nh__faq-item {
    background-color: #2a1547;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-nh__faq-question {
    font-size: 1.2rem;
    color: #FFFFFF;
    padding: 20px;
    cursor: pointer;
    position: relative;
    margin: 0;
    background-color: #3a225a; /* Slightly different background for question */
}

.page-nh__faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.page-nh__faq-question.active::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.page-nh__faq-answer {
    font-size: 1rem;
    color: #E0E0E0;
    padding: 0 20px 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    line-height: 1.7;
}

.page-nh__faq-answer.active {
    max-height: 200px; /* Adjust as needed */
    padding: 0 20px 20px;
}


/* Responsive adjustments */
@media (max-width: 849px) {
    .page-nh__hero-content {
        padding: 15px;
    }

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

    .page-nh__hero-description {
        font-size: 1rem;
    }

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

    .page-nh__btn {
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
    }

    .page-nh__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 30px;
    }

    .page-nh__game-grid,
    .page-nh__advantages-grid,
    .page-nh__step-list,
    .page-nh__promotion-cards {
        grid-template-columns: 1fr;
    }

    .page-nh__game-image,
    .page-nh__promotion-image {
        height: auto;
        min-height: 200px; /* Ensure images are not too small */
    }

    /* Ensure all images are responsive and don't overflow */
    .page-nh img {
        max-width: 100%;
        height: auto;
        display: block;
    }
}

@media (max-width: 549px) {
    .page-nh__container {
        padding: 15px;
    }

    .page-nh__hero-image {
        aspect-ratio: 4/3; /* More square aspect ratio for mobile hero */
    }
    
    .page-nh__main-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    .page-nh__hero-description {
        font-size: 0.95rem;
    }

    .page-nh__game-card,
    .page-nh__advantage-item,
    .page-nh__step-item,
    .page-nh__promotion-card,
    .page-nh__faq-item {
        padding: 20px;
    }

    .page-nh__game-name,
    .page-nh__advantage-title,
    .page-nh__step-title,
    .page-nh__promotion-title,
    .page-nh__faq-question {
        font-size: 1.1rem;
    }

    .page-nh__advantage-icon {
        width: 150px; /* Adjust icon size for smaller screens if needed, but keep >= 200px for content */
        max-width: 100%;
    }

    /* Important: Content area images must be >= 200px */
    .page-nh__game-image,
    .page-nh__advantage-icon,
    .page-nh__promotion-image {
        min-width: 200px;
        min-height: 200px;
    }
}