/* General styling for the Nổ Hũ page */
.page-no-hu {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF3E6; /* Main text color for dark background */
    background-color: #0D0E12; /* Page background color */
}

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

.page-no-hu__section-title {
    font-size: 2.5em;
    color: #FF8C1A; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-no-hu__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #FFF3E6;
}

.page-no-hu__text-link {
    color: #FFA53A; /* Auxiliary color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-no-hu__text-link:hover {
    color: #FFB04D; /* Glow color on hover */
    text-decoration: underline;
}

/* Hero Section */
.page-no-hu__hero-section {
    padding-top: 10px; /* Small top padding, relying on shared body padding */
    position: relative;
    overflow: hidden;
    background-color: #0D0E12;
}

.page-no-hu__hero-content-wrapper {
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-no-hu__hero-image {
    width: 100%;
    height: auto;
    max-height: 675px; /* Max height for hero image */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(255, 140, 26, 0.4); /* Orange glow */
}

.page-no-hu__hero-text-block {
    text-align: center;
    padding: 0 20px;
    max-width: 900px;
}

.page-no-hu__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    color: #FF8C1A;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.page-no-hu__hero-description {
    font-size: 1.2em;
    color: #FFF3E6;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.page-no-hu__btn-primary,
.page-no-hu__btn-secondary,
.page-no-hu__btn-outline {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
}

.page-no-hu__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.3);
}

.page-no-hu__btn-primary:hover {
    background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%);
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.5);
    transform: translateY(-2px);
}

.page-no-hu__btn-secondary {
    background: transparent;
    color: #FF8C1A;
    border: 2px solid #A84F0C; /* Border color from custom palette */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-no-hu__btn-secondary:hover {
    background-color: rgba(255, 140, 26, 0.1);
    color: #FFA53A;
    border-color: #FFA53A;
    transform: translateY(-2px);
}

.page-no-hu__btn-outline {
    background: transparent;
    color: #FFA53A;
    border: 1px solid #A84F0C;
    padding: 10px 20px;
    font-size: 0.95em;
    margin-top: 15px; /* Added for card buttons */
}

.page-no-hu__btn-outline:hover {
    background-color: rgba(255, 165, 58, 0.1);
    color: #FFB04D;
    border-color: #FFB04D;
}

.page-no-hu__cta-buttons--center {
    justify-content: center;
    margin-top: 40px;
    display: flex; /* Ensure flex for centering */
    gap: 20px;
}

/* Dark section styling */
.page-no-hu__dark-section {
    background-color: #0D0E12; /* Dark background from custom palette */
    padding: 60px 0;
}

/* Intro Section */
.page-no-hu__intro-section {
    padding: 60px 0;
}

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

.page-no-hu__content-block {
    background-color: #17191F; /* Card BG color */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #A84F0C; /* Border color */
}

.page-no-hu__content-subtitle {
    font-size: 1.8em;
    color: #FFA53A; /* Auxiliary color for subtitles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-no-hu__content-block p {
    color: #FFF3E6;
    margin-bottom: 15px;
}

.page-no-hu__content-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    object-fit: cover;
}

/* Game Types Section */
.page-no-hu__game-types-section {
    padding: 60px 0;
    background-color: #0D0E12;
}

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

.page-no-hu__game-type-card,
.page-no-hu__promo-card {
    background-color: #17191F; /* Card BG color */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #A84F0C; /* Border color */
    height: 100%; /* Ensure cards are same height */
}

.page-no-hu__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-no-hu__card-title {
    font-size: 1.5em;
    color: #FF8C1A;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-no-hu__card-text {
    color: #FFF3E6;
    flex-grow: 1; /* Allow text to grow and push button down */
    margin-bottom: 20px;
}

/* Guide Section */
.page-no-hu__guide-section {
    padding: 60px 0;
}

.page-no-hu__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.page-no-hu__guide-step {
    background-color: #17191F; /* Card BG color */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #A84F0C;
}

.page-no-hu__guide-step-title {
    font-size: 1.7em;
    color: #FFA53A;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-no-hu__guide-step p {
    color: #FFF3E6;
    margin-bottom: 10px;
}

/* Promotions Section */
.page-no-hu__promotions-section {
    padding: 60px 0;
    background-color: #0D0E12;
}

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

/* Tips Section */
.page-no-hu__tips-section {
    padding: 60px 0;
}

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

.page-no-hu__tip-item {
    background-color: #17191F; /* Card BG color */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #A84F0C;
}

.page-no-hu__tip-title {
    font-size: 1.7em;
    color: #FFA53A;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-no-hu__tip-item p {
    color: #FFF3E6;
    margin-bottom: 10px;
}

/* FAQ Section */
.page-no-hu__faq-section {
    padding: 60px 0;
    background-color: #0D0E12;
}

.page-no-hu__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-no-hu__faq-item {
    background-color: #17191F; /* Card BG color */
    border: 1px solid #A84F0C;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-no-hu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #FF8C1A;
    background-color: #17191F;
    position: relative;
    list-style: none; /* Hide default marker for details summary */
}

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

.page-no-hu__faq-qtext {
    flex-grow: 1;
    pointer-events: none; /* Allow click on summary, not just text */
}

.page-no-hu__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #FFA53A;
    transition: transform 0.3s ease;
    pointer-events: none; /* Allow click on summary, not just toggle */
}

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

.page-no-hu__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1.05em;
    color: #FFF3E6;
    background-color: #17191F;
}

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

/* Conclusion Section */
.page-no-hu__conclusion-section {
    padding: 60px 0;
    text-align: center;
}

/* Images responsive base */
.page-no-hu img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Media Queries for Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .page-no-hu {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-no-hu__container {
        padding: 15px;
    }

    /* HERO 主图区域 */
    .page-no-hu__hero-section {
        padding-top: 10px; /* Small top padding for mobile */
    }
    .page-no-hu__hero-image {
        border-radius: 5px;
        margin-bottom: 20px;
    }
    .page-no-hu__hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem); /* Smaller font size for mobile */
        margin-bottom: 10px;
    }
    .page-no-hu__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-no-hu__hero-cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100%; /* Ensure container takes full width */
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to prevent overflow */
    }

    /* All buttons and their containers */
    .page-no-hu__btn-primary,
    .page-no-hu__btn-secondary,
    .page-no-hu__btn-outline {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important; /* Ensure inner padding is maintained */
        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;
    }
    .page-no-hu__cta-buttons {
        display: flex;
        flex-direction: column; /* Default to column for CTA groups */
    }

    /* Sections padding */
    .page-no-hu__intro-section,
    .page-no-hu__game-types-section,
    .page-no-hu__guide-section,
    .page-no-hu__promotions-section,
    .page-no-hu__tips-section,
    .page-no-hu__faq-section,
    .page-no-hu__conclusion-section {
        padding: 30px 0;
    }

    /* Section titles and descriptions */
    .page-no-hu__section-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-no-hu__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    /* Content Grid (Intro, Game Types, Guide, Promotions, Tips) */
    .page-no-hu__content-grid,
    .page-no-hu__game-type-grid,
    .page-no-hu__guide-steps,
    .page-no-hu__promo-grid,
    .page-no-hu__tips-grid {
        grid-template-columns: 1fr; /* Single column for all grids */
        gap: 20px;
    }

    /* Content Blocks and Cards */
    .page-no-hu__content-block,
    .page-no-hu__game-type-card,
    .page-no-hu__promo-card,
    .page-no-hu__guide-step,
    .page-no-hu__tip-item {
        padding: 20px;
        border-radius: 8px;
    }

    .page-no-hu__content-subtitle,
    .page-no-hu__card-title,
    .page-no-hu__guide-step-title,
    .page-no-hu__tip-title {
        font-size: 1.4em;
        margin-bottom: 10px;
    }

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

    /* Universal image responsive override */
    .page-no-hu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* FAQ Section */
    .page-no-hu__faq-list {
        margin-top: 20px;
    }
    .page-no-hu__faq-item {
        margin-bottom: 10px;
    }
    .page-no-hu__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-no-hu__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 1em;
    }
}