/* style/no-hu.css */

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

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

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

.page-no-hu__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-no-hu__description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.page-no-hu__highlight {
    color: #26A9E0;
    font-weight: bold;
}

/* Hero Carousel Section */
.page-no-hu__hero-carousel-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    margin-bottom: 40px;
}

.page-no-hu__hero-slider {
    position: relative;
    width: 100%;
    height: 351px; /* Fixed height as per 1020x351 recommendation */
    overflow: hidden;
}

.page-no-hu__hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.page-no-hu__hero-slide.is-active {
    opacity: 1;
}

.page-no-hu__hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image covers the area */
    display: block;
}

.page-no-hu__hero-slider-prev,
.page-no-hu__hero-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5em;
    z-index: 10;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.page-no-hu__hero-slider-prev:hover,
.page-no-hu__hero-slider-next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.page-no-hu__hero-slider-prev {
    left: 10px;
}

.page-no-hu__hero-slider-next {
    right: 10px;
}

.page-no-hu__hero-content {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    position: relative;
    z-index: 5;
    margin-top: -80px; /* Overlap slightly with carousel for visual flow */
    border-radius: 10px 10px 0 0;
}

.page-no-hu__main-title {
    font-size: clamp(2.2em, 3.5vw, 2.8em); /* Using clamp as per H1 rule */
    color: #26A9E0;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-no-hu__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* For mobile button wrap */
}

.page-no-hu__btn-primary,
.page-no-hu__btn-secondary,
.page-no-hu__btn-small,
.page-no-hu__btn-large {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-no-hu__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-no-hu__btn-primary:hover {
    background-color: #1a7fb8;
    border-color: #1a7fb8;
}

.page-no-hu__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-no-hu__btn-secondary:hover {
    background-color: #e0f2f7;
    color: #1a7fb8;
}

.page-no-hu__btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
    border-radius: 5px;
}

.page-no-hu__btn-small:hover {
    background-color: #1a7fb8;
    border-color: #1a7fb8;
}

.page-no-hu__btn-large {
    padding: 15px 30px;
    font-size: 1.2em;
}

.page-no-hu__cta-center {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Game Types Section */
.page-no-hu__game-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-no-hu__game-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-no-hu__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-no-hu__game-card img {
    width: 100%;
    height: 200px; /* Ensure minimum size */
    object-fit: cover;
    display: block;
}

.page-no-hu__game-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin: 20px 0 10px;
    padding: 0 15px;
}

.page-no-hu__game-card p {
    padding: 0 15px 20px;
    color: #555555;
}

/* How to Play Section */
.page-no-hu__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-no-hu__step-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
}

.page-no-hu__step-item img {
    width: 100%;
    height: 220px; /* Ensure minimum size */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-no-hu__step-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-no-hu__step-item p {
    color: #555555;
    padding: 0 15px;
}

/* Winning Tips Section */
.page-no-hu__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-no-hu__tips-list li {
    background-color: #ffffff;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-left: 5px solid #26A9E0;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #333333;
    font-size: 1.1em;
}

.page-no-hu__tips-list li strong {
    color: #26A9E0;
}

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

.page-no-hu__promo-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-no-hu__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-no-hu__promo-card img {
    width: 100%;
    height: 220px; /* Ensure minimum size */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-no-hu__promo-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-no-hu__promo-card p {
    color: #555555;
    padding: 0 15px 15px;
}

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

.page-no-hu__feature-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
}

.page-no-hu__feature-item img {
    width: 100%;
    height: 200px; /* Ensure minimum size */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-no-hu__feature-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-no-hu__feature-item p {
    color: #555555;
    padding: 0 15px;
}

/* FAQ Section */
.page-no-hu__faq-list {
    max-width: 800px;
    margin: 30px auto 0;
}

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

.page-no-hu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    background-color: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
    list-style: none; /* For details/summary */
}

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

.page-no-hu__faq-question:hover {
    background-color: #eef7fb;
}

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

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

.page-no-hu__faq-answer {
    padding: 15px 20px;
    color: #555555;
    font-size: 1em;
}

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

.page-no-hu__faq-answer .page-no-hu__link {
    color: #26A9E0;
    text-decoration: underline;
}

/* Call to Action Section */
.page-no-hu__call-to-action {
    background-color: #26A9E0;
    color: #ffffff;
    text-align: center;
    padding: 60px 20px;
}

.page-no-hu__call-to-action .page-no-hu__section-title {
    color: #ffffff;
    margin-bottom: 20px;
}

.page-no-hu__cta-final p {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 40px;
}

/* General image styling to ensure minimum size and no filter */
.page-no-hu img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: none; /* Ensure no filter is applied */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-no-hu__container {
        padding: 20px;
    }

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

    .page-no-hu__main-title {
        font-size: clamp(2em, 4vw, 2.5em);
    }

    .page-no-hu__hero-slider {
        height: 300px;
    }
}

@media (max-width: 768px) {
    /* 1. Top Carousel */
    .page-no-hu__hero-carousel-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        margin-bottom: 20px;
    }
    .page-no-hu__hero-slider {
        height: 250px;
    }
    .page-no-hu__hero-slider-prev,
    .page-no-hu__hero-slider-next {
        padding: 8px 12px;
        font-size: 1.2em;
    }
    .page-no-hu__hero-content {
        margin-top: -50px; /* Adjust overlap */
        padding: 20px 15px;
    }
    .page-no-hu__main-title {
        font-size: clamp(1.8em, 5vw, 2.2em) !important;
        margin-bottom: 15px;
    }
    .page-no-hu__description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-no-hu__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }
    .page-no-hu__btn-primary,
    .page-no-hu__btn-secondary,
    .page-no-hu__btn-large {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* No guide box (team cards) on this page, so section 2 is not applicable */

    /* 3. Home Content Box (Adapting general content sections) */
    /* No specific .page-no-hu__home-content-box, but general sections need width adjustment */
    .page-no-hu__section {
        padding: 30px 0;
        margin-bottom: 15px;
    }
    .page-no-hu__container {
        padding: 0 15px !important; /* Apply padding to container directly */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-no-hu__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-no-hu__game-list,
    .page-no-hu__steps-grid,
    .page-no-hu__promo-grid,
    .page-no-hu__features-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }
    .page-no-hu__game-card img,
    .page-no-hu__step-item img,
    .page-no-hu__promo-card img,
    .page-no-hu__feature-item img {
        height: 200px; /* Maintain minimum height for content images */
    }

    /* 4. Blog Card Area (Adapting promo/game cards for general list) */
    /* No specific blog section, but game/promo/feature grids adapt to single column */
    .page-no-hu__promo-card,
    .page-no-hu__game-card,
    .page-no-hu__step-item,
    .page-no-hu__feature-item {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Lighter shadow for mobile */
    }

    /* 5. General Images and Buttons */
    .page-no-hu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}