/* CSS variables for custom colors */
:root {
    --main-color: #C61F1F;
    --accent-color: #E53030;
    --button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    --card-bg-color: #2A1212;
    --background-color: #140C0C;
    --text-main-color: #FFF1E8;
    --border-color: #6A1E1E;
    --gold-color: #F3C54D;
    --deep-red-color: #7E0D0D;
}

/* General styles for the Nổ Hũ page content */
.page-no-hu {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main-color, #FFF1E8); /* Use custom text color, fallback to white */
    background-color: var(--background-color, #140C0C); /* Use custom background color */
}

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

.page-no-hu__section-title {
    font-size: 2.8em;
    color: var(--gold-color, #F3C54D); /* Gold color for main titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-no-hu__sub-title {
    font-size: 1.8em;
    color: var(--text-main-color, #FFF1E8);
    margin-bottom: 20px;
    font-weight: bold;
}

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

.page-no-hu__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-main-color, #FFF1E8);
}

.page-no-hu__list li {
    margin-bottom: 10px;
}

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

.page-no-hu__btn-primary {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Custom button gradient */
    color: #FFF1E8; /* Text Main color for contrast */
    border: none;
    box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

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

.page-no-hu__btn-secondary {
    background: transparent;
    color: #FFB04A; /* Gold color for text */
    border: 2px solid #FFB04A; /* Gold border */
}

.page-no-hu__btn-secondary:hover {
    background: #FFB04A;
    color: #140C0C; /* Background color for text on hover */
    transform: translateY(-2px);
}

.page-no-hu__btn-outline {
    background: transparent;
    color: var(--gold-color, #F3C54D);
    border: 1px solid var(--gold-color, #F3C54D);
    padding: 8px 15px;
    font-size: 0.95em;
    margin-top: auto; /* For flex containers */
}

.page-no-hu__btn-outline:hover {
    background: var(--gold-color, #F3C54D);
    color: #140C0C;
}

.page-no-hu__cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: flex-start;
    align-items: center;
    width: 100%; /* Ensure container adapts */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

/* Hero Section */
.page-no-hu__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    margin-bottom: 40px;
    overflow: hidden;
    background-color: var(--deep-red-color, #7E0D0D); /* Fallback background for hero */
}

.page-no-hu__hero-image-wrapper {
    width: 100%;
    height: auto;
    max-height: 70vh; /* Limit height for aesthetic */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-no-hu__hero-content-wrapper {
    padding: 40px 15px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.page-no-hu__hero-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Clamp for H1 font size */
    color: var(--gold-color, #F3C54D);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

/* Introduction Section */
.page-no-hu__introduction-section {
    padding: 40px 0;
}

.page-no-hu__image-text-block {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-top: 40px;
}

.page-no-hu__content-image {
    flex: 0 0 50%;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-no-hu__text-content {
    flex: 1;
}

/* Login Guide Section */
.page-no-hu__login-guide-section {
    padding: 60px 0;
    background-color: var(--card-bg-color, #2A1212); /* Custom card background color */
}

.page-no-hu__dark-section {
    background-color: var(--card-bg-color, #2A1212);
    color: #FFF1E8;
}

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

.page-no-hu__step-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color, #6A1E1E); /* Custom border color */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-no-hu__step-title {
    font-size: 1.5em;
    color: var(--gold-color, #F3C54D);
    margin-bottom: 15px;
}

.page-no-hu__step-description {
    font-size: 1em;
    color: var(--text-main-color, #FFF1E8);
}

.page-no-hu__login-tips {
    margin-top: 40px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid var(--border-color, #6A1E1E);
}

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

.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,
.page-no-hu__promotion-card {
    background-color: var(--card-bg-color, #2A1212);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-color, #6A1E1E);
}

.page-no-hu__game-card-image,
.page-no-hu__promotion-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
    display: block;
}

.page-no-hu__game-card-title,
.page-no-hu__promotion-card-title {
    font-size: 1.6em;
    color: var(--gold-color, #F3C54D);
    padding: 15px 20px 10px;
    font-weight: bold;
}

.page-no-hu__game-card-description,
.page-no-hu__promotion-card-description {
    font-size: 1em;
    color: var(--text-main-color, #FFF1E8);
    padding: 0 20px 15px;
    flex-grow: 1; /* Allow description to take available space */
}

.page-no-hu__game-card .page-no-hu__btn-outline,
.page-no-hu__promotion-card .page-no-hu__btn-outline {
    margin: 0 20px 20px;
    align-self: flex-start;
}

/* Strategy Section */
.page-no-hu__strategy-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 {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color, #6A1E1E);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    height: 100%;
}

.page-no-hu__tip-title {
    font-size: 1.5em;
    color: var(--gold-color, #F3C54D);
    margin-bottom: 15px;
}

.page-no-hu__tip-description {
    font-size: 1em;
    color: var(--text-main-color, #FFF1E8);
}

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

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

/* FAQ Section */
.page-no-hu__faq-section {
    padding: 60px 0;
    background-color: var(--card-bg-color, #2A1212);
}

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

.page-no-hu__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color, #6A1E1E);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-no-hu__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--gold-color, #F3C54D);
    cursor: pointer;
    outline: none;
    list-style: none; /* Remove default marker */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

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

.page-no-hu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.page-no-hu__faq-item[open] .page-no-hu__faq-toggle {
    transform: rotate(45deg); /* Change + to X or rotate for open state */
}

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

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

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

/* Global image styles (must meet 200x200px min, no filters) */
.page-no-hu img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevent extra space below images */
    object-fit: cover; /* Ensure images cover their area */
    filter: none; /* ABSOLUTELY NO FILTERS TO CHANGE COLOR */
}

/* --- Responsive Design --- */

@media (max-width: 1024px) {
    .page-no-hu__hero-title {
        font-size: clamp(2.2em, 4.5vw, 3em);
    }

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

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

    .page-no-hu__image-text-block {
        flex-direction: column;
        align-items: center;
    }

    .page-no-hu__content-image {
        max-width: 100%;
        flex: none;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-no-hu__hero-section {
        padding-top: 10px;
    }
    .page-no-hu__hero-content-wrapper {
        padding: 30px 15px;
    }
    .page-no-hu__hero-title {
        font-size: clamp(1.8em, 8vw, 2.5em) !important;
        max-width: 100%;
    }
    .page-no-hu__hero-description {
        font-size: 1.1em;
    }
    /* 按钮与按钮容器 */
    .page-no-hu__cta-buttons {
        flex-direction: column !important;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-no-hu__btn-primary,
    .page-no-hu__btn-secondary,
    .page-no-hu__btn-outline,
    .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 !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;
    }

    /* 通用图片与容器 */
    .page-no-hu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-no-hu__container,
    .page-no-hu__section,
    .page-no-hu__card,
    .page-no-hu__text-block,
    .page-no-hu__image-text-block,
    .page-no-hu__steps-grid,
    .page-no-hu__game-cards-grid,
    .page-no-hu__tips-grid,
    .page-no-hu__promotion-cards-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    /* Specific overrides for flex/grid items to ensure full width */
    .page-no-hu__content-image {
        max-width: 100% !important;
        flex: none !important;
    }
    .page-no-hu__steps-grid,
    .page-no-hu__game-cards-grid,
    .page-no-hu__tips-grid,
    .page-no-hu__promotion-cards-grid {
        grid-template-columns: 1fr !important;
    }
    .page-no-hu__game-card-image,
    .page-no-hu__promotion-card-image {
        height: auto !important;
        min-height: 200px !important;
    }

    /* 长文金框区 (general content blocks) */
    .page-no-hu__introduction-section .page-no-hu__text-block,
    .page-no-hu__login-guide-section .page-no-hu__text-block,
    .page-no-hu__game-types-section .page-no-hu__text-block,
    .page-no-hu__strategy-section .page-no-hu__text-block,
    .page-no-hu__promotions-section .page-no-hu__text-block,
    .page-no-hu__conclusion-section .page-no-hu__text-block {
        font-size: 1em;
        line-height: 1.6;
    }
    /* FAQ section */
    .page-no-hu__faq-item summary {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-no-hu__faq-answer {
        padding: 0 20px 15px;
    }

    /* No specific game/brand display or blog sections on this non-homepage, so skipping those specific mobile rules. */
}