/* style/nh.css */

:root {
    --primary-color: #C91F17;
    --secondary-color: #E53935;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    --card-bg: #D32F2F;
    --background-color-nh: #B71C1C;
    --text-main-color: #FFF5E1;
    --border-color: #F2B544;
    --glow-color: #FFCC66;
    --gold-color: #F4D34D;
    --deep-red-color: #7A0E0E;
}

.page-nh {
    font-family: Arial, sans-serif;
    color: var(--text-main-color);
    background-color: var(--background-color-nh);
    line-height: 1.6;
}

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

.page-nh__section-title {
    font-size: 2.5em;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-nh__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--button-gradient);
    border-radius: 2px;
}

.page-nh__text-block {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

/* Hero Section */
.page-nh__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Specific padding-top for hero section */
    padding-bottom: 40px;
    background-color: var(--deep-red-color);
    position: relative;
    overflow: hidden;
}

.page-nh__hero-image-wrapper {
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
}

.page-nh__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-nh__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-nh__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em);
    color: var(--gold-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 204, 102, 0.7);
}

.page-nh__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-main-color);
}

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

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

.page-nh__btn-primary {
    background: var(--button-gradient);
    color: var(--deep-red-color); /* Dark text on gold button */
    border: 2px solid var(--gold-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-nh__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-nh__btn-secondary {
    background: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-nh__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Card Styles */
.page-nh__card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-main-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border-color);
}

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

.page-nh__card-text {
    font-size: 1em;
    line-height: 1.7;
    text-align: justify;
}

/* Introduction Section */
.page-nh__introduction-section {
    padding: 60px 0;
    background-color: var(--deep-red-color);
}

/* Why Choose Section */
.page-nh__why-choose-section {
    padding: 60px 0;
    background-color: var(--background-color-nh);
}

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

.page-nh__feature-card {
    text-align: center;
}

/* Popular Games Section */
.page-nh__popular-games-section {
    padding: 60px 0;
    background-color: var(--deep-red-color);
}

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

.page-nh__game-card {
    text-align: center;
    overflow: hidden;
}

.page-nh__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 2px solid var(--border-color);
}

.page-nh__game-title {
    font-size: 1.3em;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-nh__game-description {
    font-size: 0.95em;
    color: var(--text-main-color);
    margin-bottom: 20px;
}

.page-nh__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-nh__explore-more-cta {
    text-align: center;
    margin-top: 20px;
}

/* Guide Section */
.page-nh__guide-section {
    padding: 60px 0;
    background-color: var(--background-color-nh);
}

.page-nh__guide-list {
    list-style: none;
    padding: 0;
}

.page-nh__guide-item {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 25px 30px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.page-nh__guide-step-title {
    font-size: 1.4em;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-nh__guide-step-description {
    font-size: 1em;
    color: var(--text-main-color);
}

.page-nh__cta-block {
    text-align: center;
    margin-top: 40px;
}

/* Tips Section */
.page-nh__tips-section {
    padding: 60px 0;
    background-color: var(--deep-red-color);
}

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

.page-nh__tips-item {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 25px 30px;
    border: 1px solid var(--border-color);
}

.page-nh__tips-title {
    font-size: 1.4em;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-nh__tips-description {
    font-size: 1em;
    color: var(--text-main-color);
}

/* Promotions Section */
.page-nh__promotions-section {
    padding: 60px 0;
    background-color: var(--background-color-nh);
}

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

.page-nh__promotion-card {
    text-align: center;
}

.page-nh__promotion-image {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 2px solid var(--border-color);
}

/* FAQ Section */
.page-nh__faq-section {
    padding: 60px 0;
    background-color: var(--deep-red-color);
}

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

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

.page-nh__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--gold-color);
    cursor: pointer;
    list-style: none;
    transition: background-color 0.3s ease;
}

.page-nh__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-nh__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-nh__faq-item[open] .page-nh__faq-toggle {
    transform: rotate(45deg);
}

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

.page-nh__faq-item:not([open]) .page-nh__faq-answer {
    display: none;
}

/* Bottom CTA Section */
.page-nh__cta-bottom-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--background-color-nh);
}

/* Image specific styles */
.page-nh img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

    .page-nh__hero-description {
        font-size: 1.1em;
    }

    .page-nh__cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .page-nh__btn-primary,
    .page-nh__btn-secondary {
        width: 80%;
    }

    .page-nh__features-grid,
    .page-nh__games-grid,
    .page-nh__promotion-cards,
    .page-nh__tips-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

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

    .page-nh__hero-section {
        padding-top: 10px !important; /* Fixed header spacing */
        padding-bottom: 30px;
    }

    .page-nh__hero-image-wrapper {
        margin-bottom: 15px;
    }

    .page-nh__hero-image {
        border-radius: 0;
    }

    .page-nh__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-nh__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-nh__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
    }

    .page-nh__btn-primary,
    .page-nh__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        text-align: center !important;
    }

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

    .page-nh__section-title::after {
        width: 60px;
    }

    .page-nh__text-block {
        font-size: 0.95em;
    }

    .page-nh img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-nh__introduction-section,
    .page-nh__why-choose-section,
    .page-nh__popular-games-section,
    .page-nh__guide-section,
    .page-nh__tips-section,
    .page-nh__promotions-section,
    .page-nh__faq-section,
    .page-nh__cta-bottom-section {
        padding: 40px 0;
    }

    .page-nh__features-grid,
    .page-nh__games-grid,
    .page-nh__promotion-cards,
    .page-nh__tips-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-nh__game-image,
    .page-nh__promotion-image {
        height: 150px; /* Adjust height for smaller screens */
    }

    .page-nh__card-title,
    .page-nh__game-title,
    .page-nh__guide-step-title,
    .page-nh__tips-title {
        font-size: 1.2em;
    }

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

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

    .page-nh__explore-more-cta {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
    }
}