/* style/nh.css */

:root {
    --primary-color: #C61F1F;
    --secondary-color: #E53030;
    --button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    --card-bg: #2A1212;
    --body-bg: #140C0C;
    --text-main: #FFF1E8;
    --border-color: #6A1E1E;
    --gold-color: #F3C54D;
    --deep-red-color: #7E0D0D;
    --light-bg-text: #333333; /* For light background sections */
}

.page-nh {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--body-bg); /* Use specified body background color */
}

.page-nh__section {
    padding: 60px 20px;
    text-align: center;
}

.page-nh__dark-bg {
    background-color: var(--body-bg);
    color: var(--text-main);
}

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

.page-nh__section-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 30px;
    color: var(--gold-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

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

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

.page-nh__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-nh__light-bg .page-nh__text-block {
    color: var(--light-bg-text);
}

/* Hero Section */
.page-nh__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden;
    background-color: var(--deep-red-color);
}

.page-nh__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-nh__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

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

.page-nh__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-nh__main-title {
    font-size: 48px;
    font-weight: 900;
    color: var(--gold-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
    padding: 0 15px;
}

.page-nh__intro-text {
    font-size: 19px;
    color: var(--text-main);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

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

.page-nh__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-nh__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
}

.page-nh__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-nh__btn-secondary {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-nh__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Introduction Section */
.page-nh__introduction .page-nh__image-wrapper {
    margin: 40px auto;
    max-width: 800px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-nh__introduction .page-nh__image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Game Collection Section */
.page-nh__list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 900px;
    text-align: left;
}

.page-nh__list-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    color: var(--text-main);
    font-size: 16px;
}

.page-nh__list-item strong {
    color: var(--gold-color);
    font-size: 18px;
}

.page-nh__game-collection .page-nh__image-wrapper {
    margin: 40px auto;
    max-width: 800px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-nh__game-collection .page-nh__image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

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

.page-nh__feature-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--light-bg-text);
}

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

.page-nh__feature-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Ensure min-size */
    min-height: 200px; /* Ensure min-size */
}

.page-nh__feature-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-nh__feature-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--light-bg-text);
}

/* Promotions Section */
.page-nh__promotions .page-nh__list-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.page-nh__promotions .page-nh__list-item strong {
    color: var(--gold-color);
}

/* Security Section */
.page-nh__security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-nh__security-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: left;
    color: var(--text-main);
}

.page-nh__security-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-nh__security-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-main);
}

/* FAQ Section */
details.page-nh__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: left;
}
details.page-nh__faq-item summary.page-nh__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
details.page-nh__faq-item summary.page-nh__faq-question::-webkit-details-marker {
    display: none;
}
details.page-nh__faq-item summary.page-nh__faq-question:hover {
    background: #f5f5f5;
}
.page-nh__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--light-bg-text);
}
.page-nh__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-nh__faq-item .page-nh__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 10px 10px;
    color: var(--light-bg-text);
}

.page-nh__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}

/* Blog Posts Section */
.page-nh__blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-nh__blog-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main);
}

.page-nh__blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-nh__blog-card img {
    width: 100%;
    height: 220px; /* Fixed height for blog card images */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Ensure min-size */
    min-height: 200px; /* Ensure min-size */
}

.page-nh__card-content {
    padding: 25px;
}

.page-nh__card-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}

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

.page-nh__card-title a:hover {
    color: var(--button-gradient);
}

.page-nh__card-excerpt {
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 15px;
}

.page-nh__blog-card time {
    font-size: 14px;
    color: #aaa;
    display: block;
}

.page-nh__view-all {
    margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-nh__main-title {
        font-size: 40px;
    }
    .page-nh__section-title {
        font-size: 32px;
    }
    .page-nh__intro-text {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .page-nh__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-nh__hero-image {
        margin-bottom: 20px;
        border-radius: 8px;
    }
    .page-nh__main-title {
        font-size: clamp(30px, 8vw, 40px); /* Use clamp for H1 */
        margin-bottom: 15px;
    }
    .page-nh__intro-text {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-nh__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Limit button group width */
        margin-left: auto;
        margin-right: auto;
    }
    .page-nh__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-nh__section {
        padding: 40px 15px;
    }
    .page-nh__section-title {
        font-size: 28px;
        margin-bottom: 25px;
    }
    .page-nh__text-block {
        font-size: 15px;
    }

    .page-nh__feature-card, .page-nh__security-item, .page-nh__blog-card {
        padding: 20px;
    }
    .page-nh__feature-title {
        font-size: 20px;
    }
    .page-nh__security-title {
        font-size: 20px;
    }
    .page-nh__card-title {
        font-size: 18px;
    }

    /* Images responsive */
    .page-nh img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset !important; /* Override min-width for mobile */
        min-height: unset !important; /* Override min-height for mobile */
    }
    .page-nh__image-wrapper,
    .page-nh__feature-card,
    .page-nh__blog-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* FAQ */
    details.page-nh__faq-item summary.page-nh__faq-question {
        padding: 15px;
    }
    .page-nh__faq-qtext {
        font-size: 16px;
    }
    .page-nh__faq-toggle {
        font-size: 20px;
    }
    details.page-nh__faq-item .page-nh__faq-answer {
        padding: 0 15px 15px;
    }
    .page-nh__faq-answer p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .page-nh__main-title {
        font-size: clamp(28px, 9vw, 36px);
    }
    .page-nh__section-title {
        font-size: 24px;
    }
    .page-nh__intro-text {
        font-size: 15px;
    }
    .page-nh__cta-button {
        padding: 10px 20px;
        font-size: 15px;
    }
    .page-nh__feature-title, .page-nh__security-title {
        font-size: 18px;
    }
    .page-nh__card-title {
        font-size: 16px;
    }
    .page-nh__blog-card img {
        
    }
}