:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B;
}

/* General styles for the Nổ Hũ page */
.page-no-hu {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* #F3F8FF */
    background-color: var(--deep-navy); /* #08162B */
    line-height: 1.6;
}

/* Container for consistent padding and max-width */
.page-no-hu__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    box-sizing: border-box;
}

/* Hero Section */
.page-no-hu__hero-section {
    padding-top: 10px; /* Small top padding, relying on shared.css for body padding-top */
    margin-bottom: 40px;
    text-align: center;
    background-color: var(--deep-navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-no-hu__hero-image {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

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

.page-no-hu__hero-content {
    max-width: 800px;
    padding: 0 15px;
}

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

.page-no-hu__hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary); /* #AFC4E8 */
    margin-bottom: 30px;
}

/* Buttons */
.page-no-hu__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width for responsive wrapping */
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
}

.page-no-hu__cta-buttons--center {
    margin-top: 30px;
    margin-bottom: 30px;
}

.page-no-hu__btn-primary,
.page-no-hu__btn-secondary,
.page-no-hu__btn-play {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Ensure long words break */
}

.page-no-hu__btn-primary {
    background: var(--button-gradient); /* linear-gradient(180deg, #2B73F6 0%, #1144A6 100%) */
    color: var(--text-main); /* #F3F8FF */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-no-hu__btn-secondary {
    background-color: transparent;
    color: var(--text-main); /* #F3F8FF */
    border: 2px solid var(--border-color); /* #244D84 */
    box-shadow: none;
}

.page-no-hu__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: var(--glow-color); /* #4FA8FF */
}

.page-no-hu__btn-play {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
    font-size: 0.95rem;
    padding: 10px 20px;
    margin-top: 15px;
}

.page-no-hu__btn-play:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

/* Section Titles */
.page-no-hu__section-title {
    font-size: 2.5rem;
    color: var(--gold); /* #F2C14E */
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
    font-weight: 700;
}

/* Text Blocks */
.page-no-hu__text-block {
    max-width: 900px;
    margin: 0 auto 25px auto;
    text-align: center;
    color: var(--text-secondary); /* #AFC4E8 */
    font-size: 1.05rem;
}

.page-no-hu__text-block a {
    color: var(--glow-color); /* #4FA8FF */
    text-decoration: none;
    font-weight: bold;
}

.page-no-hu__text-block a:hover {
    text-decoration: underline;
}

/* Cards */
.page-no-hu__card {
    background-color: var(--card-bg); /* #10233F */
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color); /* #244D84 */
    color: var(--text-main);
}

.page-no-hu__card-title {
    font-size: 1.5rem;
    color: var(--gold); /* #F2C14E */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-no-hu__card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* About Slots Section */
.page-no-hu__about-slots-section {
    padding: 60px 0;
}

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

/* Game Showcase Section */
.page-no-hu__game-showcase-section {
    padding: 60px 0;
}

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

.page-no-hu__game-card {
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-no-hu__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
    margin-bottom: 15px;
    border-radius: 8px;
    background-color: rgba(0,0,0,0.3); /* Placeholder background */
}

.page-no-hu__game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

/* How to Play Section */
.page-no-hu__how-to-play-section {
    padding: 60px 0;
}

.page-no-hu__step-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0 auto;
    max-width: 800px;
}

.page-no-hu__list-item {
    background-color: var(--card-bg); /* #10233F */
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--divider-color); /* #1B3357 */
}

.page-no-hu__list-title {
    font-size: 1.35rem;
    color: var(--glow-color); /* #4FA8FF */
    margin-bottom: 10px;
    font-weight: 600;
}

.page-no-hu__list-item p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.page-no-hu__list-item a {
    color: var(--gold); /* #F2C14E */
    text-decoration: none;
    font-weight: bold;
}

.page-no-hu__list-item a:hover {
    text-decoration: underline;
}

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

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

.page-no-hu__tip-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-no-hu__tip-icon {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-no-hu__tip-icon img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

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

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

.page-no-hu__promo-card {
    text-align: center;
}

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

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

.page-no-hu__faq-item {
    background-color: var(--card-bg); /* #10233F */
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--divider-color); /* #1B3357 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-no-hu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main); /* #F3F8FF */
    position: relative;
    list-style: none; /* Hide default marker for details/summary */
}

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

.page-no-hu__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-no-hu__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--glow-color); /* #4FA8FF */
    transition: transform 0.3s ease;
}

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

.page-no-hu__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--text-secondary); /* #AFC4E8 */
    text-align: left;
}

.page-no-hu__faq-answer p {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.page-no-hu__faq-answer a {
    color: var(--gold); /* #F2C14E */
    text-decoration: none;
    font-weight: bold;
}

.page-no-hu__faq-answer a:hover {
    text-decoration: underline;
}

/* Final CTA Section */
.page-no-hu__final-cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-no-hu__final-cta-content {
    max-width: 900px;
}

/* Helper classes for background colors */
.page-no-hu__dark-section {
    background-color: var(--deep-navy); /* Ensure consistency */
    color: var(--text-main);
}

/* Image responsive rules */
.page-no-hu img {
    max-width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-no-hu__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-no-hu__section-title {
        font-size: 2.2rem;
    }
    .page-no-hu__hero-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    /* General content area padding for mobile */
    .page-no-hu__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Hero Section */
    .page-no-hu__hero-section {
        padding-top: 10px; /* Small top padding for mobile */
        margin-bottom: 30px;
    }

    .page-no-hu__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .page-no-hu__hero-description {
        font-size: 1rem;
    }

    /* Buttons */
    .page-no-hu__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-no-hu__btn-primary,
    .page-no-hu__btn-secondary,
    .page-no-hu__btn-play {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Section Titles */
    .page-no-hu__section-title {
        font-size: 2rem;
        margin-bottom: 25px;
    }

    /* Text Blocks */
    .page-no-hu__text-block {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    /* Grids */
    .page-no-hu__features-grid,
    .page-no-hu__game-grid,
    .page-no-hu__tips-grid,
    .page-no-hu__promo-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
        margin-top: 30px;
    }

    /* List Items (How to Play) */
    .page-no-hu__list-item {
        padding: 20px;
        margin-bottom: 15px;
    }
    .page-no-hu__list-title {
        font-size: 1.2rem;
    }
    .page-no-hu__list-item p {
        font-size: 0.9rem;
    }

    /* Card Titles */
    .page-no-hu__card-title {
        font-size: 1.3rem;
    }
    .page-no-hu__card p {
        font-size: 0.9rem;
    }

    /* FAQ Section */
    .page-no-hu__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-no-hu__faq-toggle {
        font-size: 1.5rem;
    }
    .page-no-hu__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.9rem;
    }

    /* Image responsive overrides */
    .page-no-hu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-no-hu__hero-image,
    .page-no-hu__game-image,
    .page-no-hu__tip-icon {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-no-hu__game-image {
        height: auto; /* Allow height to adjust for mobile */
        aspect-ratio: 4/3; /* Maintain aspect ratio */
    }
}