/* General Styles for Nổ Hũ Page */
.page-no-hu {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --card-bg: #111111;
    --main-bg: #0A0A0A;
    --text-main: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    background-color: var(--main-bg);
    color: var(--text-main);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

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

.page-no-hu__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.page-no-hu__sub-title {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-weight: 600;
}

.page-no-hu__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-main);
}

.page-no-hu__text-center {
    text-align: center;
}

.page-no-hu__inline-link {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-no-hu__dark-section {
    background-color: var(--card-bg);
    color: var(--text-main);
}

/* Buttons */
.page-no-hu__btn-primary,
.page-no-hu__btn-secondary,
.page-no-hu__btn-small {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-no-hu__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #333333; /* Dark text for contrast on bright gradient */
    border: none;
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-no-hu__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
}

.page-no-hu__btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 10px rgba(255, 211, 107, 0.2);
}

.page-no-hu__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--main-bg);
    box-shadow: 0 0 15px rgba(255, 211, 107, 0.4);
}

.page-no-hu__btn-small {
    padding: 8px 18px;
    font-size: 0.95em;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #333333;
    border: none;
    border-radius: 5px;
}

.page-no-hu__btn-small:hover {
    opacity: 0.9;
}

.page-no-hu__cta-wrapper {
    margin-top: 30px;
    text-align: center;
}

.page-no-hu__cta-wrapper--center {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Hero Section */
.page-no-hu__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    overflow: hidden;
}

.page-no-hu__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    position: relative;
}

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

.page-no-hu__hero-content {
    position: relative;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    z-index: 1;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for readability */
    border-radius: 10px;
    margin-top: -100px; /* Overlap slightly with image for visual appeal */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

.page-no-hu__hero-title {
    font-size: 3.2em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(255, 211, 107, 0.8);
}

.page-no-hu__hero-description {
    font-size: 1.3em;
    color: var(--text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Introduction Section */
.page-no-hu__introduction-section .page-no-hu__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* How to Play Section */
.page-no-hu__how-to-play-section {
    background-color: var(--card-bg);
}

.page-no-hu__content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
}

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

.page-no-hu__image-wrapper {
    flex: 1;
    min-width: 300px;
}

.page-no-hu__responsive-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-no-hu__steps-list {
    flex: 1;
}

.page-no-hu__ordered-list {
    list-style-type: decimal;
    padding-left: 25px;
    margin-bottom: 20px;
}

.page-no-hu__list-item {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: var(--text-main);
}

.page-no-hu__list-item strong {
    color: var(--secondary-color);
}

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

.page-no-hu__game-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    color: var(--text-main);
}

.page-no-hu__card-image-wrapper {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
}

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

.page-no-hu__card-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin: 15px 15px 10px;
    font-weight: 600;
}

.page-no-hu__card-description {
    font-size: 0.95em;
    color: var(--text-main);
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-no-hu__game-card .page-no-hu__btn-small {
    align-self: flex-start;
    margin: 0 15px 15px;
}

/* Tips Section */
.page-no-hu__tips-section .page-no-hu__unordered-list {
    list-style-type: disc;
    padding-left: 25px;
    margin-bottom: 20px;
}

.page-no-hu__tips-section .page-no-hu__list-item {
    margin-bottom: 10px;
}

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

.page-no-hu__promotion-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    color: var(--text-main);
}

.page-no-hu__promotion-card .page-no-hu__card-image-wrapper {
    height: 220px;
}

.page-no-hu__promotion-card .page-no-hu__card-title {
    margin-top: 20px;
}

.page-no-hu__promotion-card .page-no-hu__btn-small {
    margin-top: auto;
}

/* Why Choose 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-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.page-no-hu__feature-title {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

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

/* FAQ Section */
.page-no-hu__faq-list {
    margin-top: 30px;
}

.page-no-hu__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main);
}

.page-no-hu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    list-style: none;
    position: relative;
}

.page-no-hu__faq-question::-webkit-details-marker {
    display: none;
}

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

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

.page-no-hu__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--text-main);
}

/* Final CTA Section */
.page-no-hu__final-cta-section {
    background-color: var(--card-bg);
    text-align: center;
}

.page-no-hu__final-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

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

    .page-no-hu__hero-description {
        font-size: 1.2em;
    }

    .page-no-hu__section-title {
        font-size: 2em;
    }

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

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

    .page-no-hu__image-wrapper {
        order: -1; /* Image appears above text on smaller screens */
    }

    .page-no-hu__steps-list,
    .page-no-hu__tips-list {
        order: 1;
    }
}

@media (max-width: 768px) {
    .page-no-hu {
        font-size: 15px;
        line-height: 1.5;
    }

    .page-no-hu__container {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-no-hu__hero-section {
        padding-top: 10px; /* Ensure small top padding */
        min-height: auto;
    }

    .page-no-hu__hero-content {
        padding: 30px 15px;
        margin-top: -80px; /* Adjust overlap */
    }

    .page-no-hu__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-no-hu__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-no-hu__hero-buttons,
    .page-no-hu__final-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-no-hu__btn-primary,
    .page-no-hu__btn-secondary,
    .page-no-hu__btn-small {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 15px !important;
        font-size: 1em !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-no-hu__cta-wrapper--center {
        flex-direction: column;
        gap: 15px;
    }

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

    .page-no-hu__sub-title {
        font-size: 1.5em;
    }

    .page-no-hu__text-block {
        font-size: 1em;
    }

    .page-no-hu__ordered-list,
    .page-no-hu__unordered-list {
        padding-left: 20px;
    }

    .page-no-hu__list-item {
        font-size: 1em;
    }

    .page-no-hu img,
    .page-no-hu__responsive-image,
    .page-no-hu__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .page-no-hu__image-wrapper,
    .page-no-hu__card-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden;
        height: auto; /* Allow height to adjust for mobile */
    }

    .page-no-hu__game-cards-grid,
    .page-no-hu__promotion-cards-grid,
    .page-no-hu__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-no-hu__card-image-wrapper {
        height: 180px; /* Adjust card image height for mobile */
    }

    .page-no-hu__card-title {
        font-size: 1.3em;
    }

    .page-no-hu__card-description {
        font-size: 0.9em;
    }

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

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