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

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

.page-no-hu__section-spacing {
    padding: 60px 0;
}

.page-no-hu__section-title {
    font-size: 2.5em;
    color: #017439;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-no-hu__section-subtitle {
    font-size: 1.2em;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-no-hu__text-block p {
    margin-bottom: 1em;
}

/* Hero Intro Section */
.page-no-hu__hero-intro {
    padding-top: 10px; /* Small top padding, not var(--header-offset) */
    padding-bottom: 60px;
    background: linear-gradient(135deg, #e0ffe0, #ffffff);
    color: #333333;
}

.page-no-hu__hero-intro .page-no-hu__container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-no-hu__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
}

.page-no-hu__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Clamp for H1 */
    color: #017439;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-no-hu__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.7;
}

.page-no-hu__cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%; /* Ensure container takes full width for mobile */
    max-width: 100%;
    box-sizing: border-box;
}

.page-no-hu__btn-primary,
.page-no-hu__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    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: #a00606;
    border-color: #a00606;
}

.page-no-hu__btn-secondary {
    background-color: #017439; /* Main brand color */
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-no-hu__btn-secondary:hover {
    background-color: #005f2e;
    border-color: #005f2e;
}

.page-no-hu__hero-image-wrapper {
    flex: 1 1 40%;
    min-width: 300px;
    text-align: center;
}

.page-no-hu__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure it behaves as a block element */
    margin: 0 auto;
}

/* Content Sections (About, How to Play, Why Choose Us, Tips) */
.page-no-hu__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-no-hu__content-wrapper--reversed {
    flex-direction: row-reverse;
}

.page-no-hu__text-block {
    flex: 1 1 55%;
    min-width: 300px;
}

.page-no-hu__image-block {
    flex: 1 1 35%;
    min-width: 300px;
    text-align: center;
}

.page-no-hu__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

.page-no-hu__dark-section {
    background-color: #017439;
    color: #ffffff;
}

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

.page-no-hu__dark-section a {
    color: #FFFF00; /* Yellow for links on dark background */
    text-decoration: underline;
}

.page-no-hu__dark-section a:hover {
    color: #FFF;
}

.page-no-hu__steps-list,
.page-no-hu__benefits-list,
.page-no-hu__tips-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-no-hu__steps-list li,
.page-no-hu__benefits-list li,
.page-no-hu__tips-list li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path fill="%23017439" d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
    background-size: 20px;
    padding-left: 30px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.page-no-hu__dark-section .page-no-hu__steps-list li,
.page-no-hu__dark-section .page-no-hu__benefits-list li,
.page-no-hu__dark-section .page-no-hu__tips-list li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path fill="%23FFFF00" d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
    background-size: 20px;
}

.page-no-hu__steps-list li strong {
    color: #017439;
}
.page-no-hu__dark-section .page-no-hu__steps-list li strong {
    color: #FFFF00;
}

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

.page-no-hu__feature-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.page-no-hu__feature-icon {
    width: 100%; /* Take full width of card */
    max-width: 400px; /* Max width for image */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-no-hu__feature-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-no-hu__feature-description {
    font-size: 1em;
    color: #555555;
}

/* CTA Banner Section */
.page-no-hu__cta-banner {
    background-color: #f5f5f5;
    padding: 80px 0;
    text-align: center;
}

.page-no-hu__cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-no-hu__cta-title {
    font-size: 2.2em;
    color: #017439;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-no-hu__cta-description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 40px;
}

/* FAQ Section */
.page-no-hu__faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.page-no-hu__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-no-hu__faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 20px;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

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

.page-no-hu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 1.1em;
    color: #017439;
}

.page-no-hu__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #017439;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-no-hu__faq-item[open] .page-no-hu__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-no-hu__faq-answer {
    padding: 20px;
    background-color: #ffffff;
    color: #555555;
    border-top: 1px solid #eee;
}

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

/* General image and button responsive styles */
.page-no-hu img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-no-hu__section,
.page-no-hu__card,
.page-no-hu__container,
.page-no-hu__cta-buttons,
.page-no-hu__button-group,
.page-no-hu__btn-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Prevent horizontal scroll */
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-no-hu__hero-intro .page-no-hu__container {
        flex-direction: column;
        text-align: center;
    }

    .page-no-hu__hero-image-wrapper {
        order: -1; /* Image above content on smaller screens */
    }

    .page-no-hu__hero-content {
        flex: 1 1 100%;
        text-align: center;
    }

    .page-no-hu__cta-buttons {
        justify-content: center;
    }

    .page-no-hu__content-wrapper {
        flex-direction: column;
    }

    .page-no-hu__content-wrapper--reversed {
        flex-direction: column; /* Reset to column for reversed */
    }

    .page-no-hu__text-block,
    .page-no-hu__image-block {
        flex: 1 1 100%;
    }

    .page-no-hu__faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* HERO Intro Section */
    .page-no-hu__hero-intro {
        padding-top: 10px !important; /* Specific top padding */
        padding-bottom: 40px !important;
    }
    .page-no-hu__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em) !important;
        margin-bottom: 15px !important;
    }
    .page-no-hu__hero-description {
        font-size: 1em !important;
        margin-bottom: 25px !important;
    }
    .page-no-hu__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 0 15px !important; /* Add padding to button container */
    }
    .page-no-hu__btn-primary,
    .page-no-hu__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px !important;
    }
    .page-no-hu__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* General Section Titles & Subtitles */
    .page-no-hu__section-spacing {
        padding: 40px 0 !important;
    }
    .page-no-hu__section-title {
        font-size: 2em !important;
        margin-bottom: 15px !important;
    }
    .page-no-hu__section-subtitle {
        font-size: 1em !important;
        margin-bottom: 30px !important;
    }

    /* Content Wrapper (About, How to Play, Why Choose Us, Tips) */
    .page-no-hu__content-wrapper {
        flex-direction: column !important;
        gap: 30px !important;
    }
    .page-no-hu__content-wrapper--reversed {
        flex-direction: column !important; /* Ensure it stays column */
    }
    .page-no-hu__text-block,
    .page-no-hu__image-block {
        flex: 1 1 100% !important;
        min-width: unset !important;
    }
    .page-no-hu__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Features Grid */
    .page-no-hu__features-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .page-no-hu__feature-card {
        padding: 20px !important;
    }
    .page-no-hu__feature-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-no-hu__feature-title {
        font-size: 1.3em !important;
    }

    /* CTA Banner Section */
    .page-no-hu__cta-banner {
        padding: 50px 0 !important;
    }
    .page-no-hu__cta-title {
        font-size: 1.8em !important;
    }
    .page-no-hu__cta-description {
        font-size: 1em !important;
        margin-bottom: 30px !important;
    }

    /* FAQ Section */
    .page-no-hu__faq-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .page-no-hu__faq-item summary {
        padding: 15px !important;
        font-size: 1em !important;
    }
    .page-no-hu__faq-answer {
        padding: 15px !important;
    }

    /* Universal Image & Container Mobile Rules */
    .page-no-hu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-no-hu__section,
    .page-no-hu__card,
    .page-no-hu__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-no-hu__cta-buttons,
    .page-no-hu__button-group,
    .page-no-hu__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        justify-content: center !important; /* Center buttons if they wrap */
    }
    .page-no-hu__btn-primary,
    .page-no-hu__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
}