/* General 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 backgrounds */
    background-color: var(--secondary-color); /* Inherit from shared, assuming light */
}

.page-no-hu__hero-section {
    padding-top: 10px; /* Minimal top padding, rely on body padding-top */
    padding-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: #017439; /* Brand color for hero background */
    color: #ffffff;
}

.page-no-hu__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.3; /* Subtle background image */
}

.page-no-hu__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-no-hu__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.page-no-hu__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFFF00; /* Yellow for main title */
    line-height: 1.2;
}

.page-no-hu__description {
    font-size: 1.05rem;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

.page-no-hu__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Ensure wrapping on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-no-hu__btn-primary,
.page-no-hu__btn-secondary,
.page-no-hu__btn-play,
.page-no-hu__btn-small,
.page-no-hu a[class*="button"],
.page-no-hu a[class*="btn"] {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-no-hu__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

.page-no-hu__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #FFFF00;
}

.page-no-hu__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
}

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

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

.page-no-hu__btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    margin-top: 10px;
}

.page-no-hu__content-area {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: #ffffff; /* Explicit white background for content areas */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-no-hu__section-title {
    font-size: 2.2rem;
    color: #017439;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
}

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

.page-no-hu__introduction-section p,
.page-no-hu__benefits-section p,
.page-no-hu__game-types-section p,
.page-no-hu__how-to-play-section p,
.page-no-hu__strategy-section p {
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.page-no-hu__image-container {
    margin: 30px 0;
    text-align: center;
}

.page-no-hu__image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block; /* Ensure it's a block element for proper centering/sizing */
    margin: 0 auto;
}

.page-no-hu__benefit-list,
.page-no-hu__instruction-list,
.page-no-hu__strategy-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-no-hu__benefit-item,
.page-no-hu__instruction-item,
.page-no-hu__strategy-item {
    background-color: #f9f9f9;
    border-left: 5px solid #017439;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 1rem;
    line-height: 1.5;
}

.page-no-hu__benefit-item strong,
.page-no-hu__instruction-item strong,
.page-no-hu__strategy-item strong {
    color: #017439;
}

.page-no-hu__game-grid,
.page-no-hu__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.page-no-hu__game-card,
.page-no-hu__promo-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-no-hu__game-card-title,
.page-no-hu__promo-card-title {
    font-size: 1.5rem;
    color: #017439;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-no-hu__game-card-image {
    margin-bottom: 15px;
}

.page-no-hu__game-card-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
    margin: 0 auto;
}

.page-no-hu__dark-section {
    background-color: #017439; /* Brand color */
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-no-hu__promo-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    color: #ffffff;
}

.page-no-hu__promo-card-title {
    color: #FFFF00; /* Yellow title on dark promo card */
}

.page-no-hu__cta-full-width {
    margin-top: 40px;
}

.page-no-hu__faq-section {
    margin-bottom: 40px;
}

.page-no-hu__faq-list {
    margin-top: 30px;
}

.page-no-hu__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-no-hu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #017439;
    cursor: pointer;
    background-color: #eaf7ed;
    position: relative;
    list-style: none; /* For <summary> */
}

.page-no-hu__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for <summary> */
}
.page-no-hu__faq-question::marker {
    display: none; /* Hide default marker for <summary> */
}

.page-no-hu__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-no-hu__faq-item[open] .page-no-hu__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-no-hu__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 1rem;
    line-height: 1.5;
    color: #555555;
}

.page-no-hu__faq-answer p {
    margin-bottom: 10px;
}

.page-no-hu__conclusion-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-no-hu__hero-content {
        max-width: 768px;
    }
    .page-no-hu__section-title {
        font-size: 2rem;
    }
    .page-no-hu__game-card,
    .page-no-hu__promo-card {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-no-hu__hero-section {
        padding-top: 10px; /* Minimal top padding */
        padding-bottom: 30px;
    }
    .page-no-hu__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-no-hu__description {
        font-size: 1rem;
        margin-bottom: 20px;
        padding: 0 15px;
    }
    .page-no-hu__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    /* 按钮与按钮容器 */
    .page-no-hu__btn-primary,
    .page-no-hu__btn-secondary,
    .page-no-hu__btn-play,
    .page-no-hu__btn-small,
    .page-no-hu a[class*="button"],
    .page-no-hu a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-no-hu__content-area,
    .page-no-hu__section,
    .page-no-hu__card,
    .page-no-hu__container {
        margin: 20px auto;
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    /* 长文区 */
    .page-no-hu__section-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
        padding: 0 10px;
    }
    .page-no-hu p,
    .page-no-hu li {
        font-size: 15px;
        line-height: 1.5;
    }
    /* 通用图片与容器 */
    .page-no-hu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-no-hu__image-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }
    .page-no-hu__game-grid,
    .page-no-hu__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    .page-no-hu__game-card,
    .page-no-hu__promo-card {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-no-hu__dark-section {
        padding: 40px 15px;
    }
    .page-no-hu__faq-question {
        font-size: 1rem;
        padding: 15px;
    }
    .page-no-hu__faq-answer {
        padding: 0 15px 10px 15px;
    }
    .page-no-hu__cta-full-width {
        padding: 0 15px;
    }
}