/* Base styles for the Nổ Hũ page */
.page-no-hu {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Default body background */
}

.page-no-hu__hero-section {
    padding-top: 10px; /* Ensures minimal top padding, relying on body padding-top from shared.css */
    max-width: 1200px;
    margin: 0 auto 40px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.page-no-hu__hero-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 10px;
}

.page-no-hu__hero-image img {
    width: 100%;
    height: 675px; /* Fixed height for desktop to maintain aspect ratio */
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.page-no-hu__hero-content {
    position: relative;
    width: 100%;
    padding: 20px 15px 40px;
    z-index: 2;
    background-color: #ffffff; /* Explicit background for content area */
    border-radius: 0 0 10px 10px;
    margin-top: -20px; /* Slight overlap with image for design */
}

.page-no-hu__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: #017439;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-no-hu__description {
    font-size: 1.15rem;
    color: #555555;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-no-hu__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-no-hu__btn-primary,
.page-no-hu__btn-secondary,
.page-no-hu__btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box;
    text-align: center;
}

.page-no-hu__btn-primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #C30808;
}

.page-no-hu__btn-primary:hover {
    background-color: #e00a0a;
    border-color: #e00a0a;
}

.page-no-hu__btn-secondary {
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}

.page-no-hu__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2e;
}

.page-no-hu__btn-small {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #017439;
    color: #ffffff;
    border: 1px solid #017439;
    margin-top: 15px;
}

.page-no-hu__btn-small:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

.page-no-hu__content-area {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding: 20px 15px;
    background-color: #ffffff;
    box-sizing: border-box;
}

.page-no-hu__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #017439;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.3;
}

.page-no-hu__section-title--white {
    color: #ffffff;
}

.page-no-hu__about-section p,
.page-no-hu__how-to-play-section p,
.page-no-hu__popular-games p,
.page-no-hu__tips-section p {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: #444444;
}

.page-no-hu__dark-section {
    background-color: #017439;
    color: #ffffff;
    padding: 40px 15px;
    margin-bottom: 40px;
}

.page-no-hu__features-grid,
.page-no-hu__games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-no-hu__feature-card,
.page-no-hu__game-card,
.page-no-hu__step-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.page-no-hu__feature-card:hover,
.page-no-hu__game-card:hover,
.page-no-hu__step-card:hover {
    transform: translateY(-5px);
}

.page-no-hu__feature-card img,
.page-no-hu__game-card img {
    width: 100%;
    height: 250px; /* Consistent height for card images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.page-no-hu__game-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%; /* Ensure link covers entire card */
}

.page-no-hu__card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #017439;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-no-hu__feature-card p,
.page-no-hu__game-card p,
.page-no-hu__step-card p {
    font-size: 0.95rem;
    color: #666666;
    flex-grow: 1; /* Make paragraphs take available space */
}

.page-no-hu__steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-no-hu__tips-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.page-no-hu__tips-image {
    flex: 1;
    min-width: 400px; /* Ensure image doesn't get too small */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: auto;
    display: block;
}

.page-no-hu__tips-list {
    flex: 1;
    list-style: none;
    padding-left: 0;
    margin-top: 0;
}

.page-no-hu__tips-list li {
    font-size: 1.05rem;
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    color: #444444;
}