/* style/no-hu.css */

/* Base styles for the Nổ Hũ page */
.page-no-hu {
    font-family: 'Arial', sans-serif;
    color: #1F2D3D; /* Text Main from custom scheme */
    background-color: #F4F7FB; /* Background from custom scheme */
    line-height: 1.6;
    font-size: 16px;
    box-sizing: border-box;
}

/* Header offset - Rely on shared.css body padding-top */
/* The first section will have a small top padding */

.page-no-hu__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, not --header-offset */
    padding-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff; /* White text for hero section */
    background: linear-gradient(180deg, #2F6BFF 0%, #6FA3FF 100%); /* Blue gradient background */
}

.page-no-hu__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.page-no-hu__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-width: 100%; /* Ensure image is responsive */
}

.page-no-hu__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1; /* Ensure content is above any background elements if layered */
}

.page-no-hu__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
    max-width: 100%;
}

.page-no-hu__description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-no-hu__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
}

.page-no-hu__btn-primary,
.page-no-hu__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
    min-width: 180px; /* Minimum width for buttons */
    text-align: center;
}

.page-no-hu__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Custom button gradient */
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

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

.page-no-hu__btn-secondary {
    background: #ffffff;
    color: #2F6BFF; /* Main brand color for text */
    border: 2px solid #2F6BFF;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.page-no-hu__btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.5);
}

/* General section styling */
.page-no-hu__section {
    padding: 60px 0;
    background-color: #F4F7FB; /* Background from custom scheme */
    color: #1F2D3D; /* Text Main from custom scheme */
}

.page-no-hu__section:nth-of-type(even) {
    background-color: #f8fafd; /* Slightly different background for visual separation */
}

.page-no-hu__article-wrap {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-no-hu__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #1F2D3D;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-no-hu__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2F6BFF, #6FA3FF);
    border-radius: 2px;
}

.page-no-hu p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #1F2D3D;
}

.page-no-hu strong {
    color: #2F6BFF; /* Highlight important keywords with main color */
}

.page-no-hu a {
    color: #2F6BFF; /* Link color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-no-hu a:hover {
    color: #4A8BFF; /* Lighter blue on hover */
    text-decoration: underline;
}

.page-no-hu__list {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
}

.page-no-hu__list li {
    margin-bottom: 10px;
    color: #1F2D3D;
}

.page-no-hu__figure {
    margin: 30px 0;
    text-align: center;
    background-color: #FFFFFF; /* Card BG from custom scheme */
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.page-no-hu__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 0 auto 15px auto;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-no-hu__figcaption {
    font-style: italic;
    color: #666;
    font-size: 0.95rem;
}

.page-no-hu__steps-list {
    list-style: decimal;
    padding-left: 25px;
    margin-bottom: 30px;
}

.page-no-hu__steps-list li {
    margin-bottom: 15px;
    font-size: 1.05rem;
    font-weight: 500;
    color: #1F2D3D;
}

.page-no-hu__info-card {
    background-color: #D6E2FF; /* Border color as info card background */
    color: #1F2D3D; /* Text Main color */
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
    border: 1px solid #A5C4FF; /* Glow color for border */
}

.page-no-hu__info-card p {
    margin-bottom: 0;
    font-weight: 500;
    color: #1F2D3D;
}

.page-no-hu__promo-box {
    background-color: #F4F7FB; /* Use a light background for promo box */
    border-left: 5px solid #6FA3FF; /* Auxiliary color accent */
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
    color: #1F2D3D;
}

.page-no-hu__promo-box p {
    margin-bottom: 0;
    color: #1F2D3D;
}

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

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

.page-no-hu__faq-item {
    background-color: #FFFFFF; /* Card BG from custom scheme */
    border: 1px solid #D6E2FF; /* Border from custom scheme */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-no-hu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1F2D3D; /* Text Main color */
    cursor: pointer;
    background-color: #ffffff;
    user-select: none;
    list-style: none; /* Remove default summary marker */
}

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

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

.page-no-hu__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2F6BFF;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

.page-no-hu__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-no-hu__faq-item[open] .page-no-hu__faq-answer {
    max-height: 500px; /* Adjust as needed for content length */
    padding-top: 10px;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-no-hu__hero-section {
        padding-bottom: 40px;
    }

    .page-no-hu__main-title {
        font-size: 3rem;
    }

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

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

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

    .page-no-hu__btn-primary,
    .page-no-hu__btn-secondary {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    /* --- 1. Top section title + dual CTA --- */
    .page-no-hu__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 30px;
    }

    .page-no-hu__main-title {
        font-size: 2.2rem !important;
        margin-bottom: 15px;
    }

    .page-no-hu__description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .page-no-hu__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-no-hu__btn-primary,
    .page-no-hu__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 15px !important;
        font-size: 1rem !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        min-width: unset;
    }

    /* --- 2. Single column long text container --- */
    .page-no-hu__section {
        padding: 40px 0;
    }

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

    .page-no-hu__section-title {
        font-size: 1.8rem !important;
        margin-bottom: 25px;
    }

    .page-no-hu p,
    .page-no-hu li {
        font-size: 15px;
    }

    /* --- 3. General images and figure --- */
    .page-no-hu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
        min-width: unset !important;
        min-height: unset !important;
    }

    .page-no-hu__figure {
        padding: 10px;
        margin: 20px 0;
        box-sizing: border-box !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* --- 4. Buttons and button containers (already covered in top section CTA) --- */
    .page-no-hu__cta-buttons {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* --- 5. Registration tutorial and FAQ block --- */
    .page-no-hu__steps-list {
        padding-left: 20px;
    }

    .page-no-hu__steps-list li {
        font-size: 1rem;
    }

    .page-no-hu__info-card,
    .page-no-hu__promo-box {
        padding: 20px;
        margin-top: 25px;
    }

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

    .page-no-hu__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95rem;
    }

    .page-no-hu__faq-item[open] .page-no-hu__faq-answer {
        padding-top: 8px;
    }

    .page-no-hu__conclusion-section {
        padding-bottom: 60px;
    }
}