/* style/huong-dan-choi.css */

:root {
    --main-color: #F2C14E;
    --accent-color: #FFD36B;
    --btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --card-bg: #111111;
    --bg-primary: #0A0A0A;
    --text-main: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
}

/* --- Base Styles --- */
.page-huong-dan-choi {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Using custom color #FFF6D6 */
    background: var(--bg-primary); /* Using custom color #0A0A0A */
}

/* --- Hero Section --- */
.page-huong-dan-choi__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.page-huong-dan-choi__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Max width for the image container */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-huong-dan-choi__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-huong-dan-choi__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp for H1 */
    font-weight: 700;
    color: var(--text-main); /* #FFF6D6 */
    margin-bottom: 15px;
    line-height: 1.2;
    max-width: 900px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-huong-dan-choi__intro-text {
    font-size: 1.1rem;
    color: rgba(255, 246, 214, 0.8); /* Slightly lighter text main */
    margin-bottom: 30px;
    max-width: 800px;
    line-height: 1.6;
}

.page-huong-dan-choi__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width for responsive buttons */
    max-width: 600px; /* Limit overall button group width */
    box-sizing: border-box;
}

.page-huong-dan-choi__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Important for button responsiveness */
    box-sizing: border-box; /* Include padding/border in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-huong-dan-choi__btn--primary {
    background: var(--btn-gradient); /* linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%) */
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-huong-dan-choi__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-huong-dan-choi__btn--secondary {
    background: transparent;
    color: var(--text-main); /* #FFF6D6 */
    border: 2px solid var(--border-color); /* #3A2A12 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-huong-dan-choi__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* --- General Content Sections --- */
.page-huong-dan-choi__section {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto 30px auto;
    background: var(--card-bg); /* #111111 */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color); /* #3A2A12 */
}

.page-huong-dan-choi__section:last-of-type {
    margin-bottom: 0;
}

.page-huong-dan-choi__section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--main-color); /* #F2C14E */
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-huong-dan-choi__step-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--accent-color); /* #FFD36B */
    margin-top: 30px;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-huong-dan-choi__paragraph {
    font-size: 1rem;
    color: rgba(255, 246, 214, 0.7);
    margin-bottom: 15px;
    line-height: 1.7;
}

.page-huong-dan-choi__paragraph a {
    color: var(--accent-color);
    text-decoration: underline;
}

.page-huong-dan-choi__paragraph a:hover {
    color: var(--main-color);
}

.page-huong-dan-choi__list {
    list-style-type: disc;
    padding-left: 25px;
    margin-bottom: 15px;
    color: rgba(255, 246, 214, 0.7);
}

.page-huong-dan-choi__list-item {
    margin-bottom: 8px;
    font-size: 1rem;
}

.page-huong-dan-choi__list-item strong {
    color: var(--text-main);
}

/* --- Image Styling --- */
.page-huong-dan-choi__image-container {
    margin: 30px auto;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color); /* #3A2A12 */
}

.page-huong-dan-choi__image {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- FAQ Section --- */
.page-huong-dan-choi__faq-item {
    background: rgba(255, 255, 255, 0.05); /* Lighter than card background */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-huong-dan-choi__faq-question {
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.3s ease;
}

.page-huong-dan-choi__faq-question:hover {
    background: rgba(255, 255, 255, 0.12);
}

.page-huong-dan-choi__faq-question.active {
    color: var(--main-color);
}

.page-huong-dan-choi__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-huong-dan-choi__faq-question.active .page-huong-dan-choi__faq-toggle {
    transform: rotate(45deg);
}

.page-huong-dan-choi__faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    color: rgba(255, 246, 214, 0.7);
    font-size: 0.95rem;
}

.page-huong-dan-choi__faq-answer.active {
    max-height: 500px; /* Arbitrary large value for smooth transition */
    padding: 15px 20px;
}

/* --- Contact Section --- */
.page-huong-dan-choi__contact-text {
    font-size: 1.1rem;
    color: rgba(255, 246, 214, 0.8);
    text-align: center;
    margin-bottom: 25px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-huong-dan-choi__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
        padding: 0 10px;
    }

    .page-huong-dan-choi__intro-text {
        font-size: 1rem;
        padding: 0 10px;
    }

    .page-huong-dan-choi__section-title {
        font-size: 2rem;
    }

    .page-huong-dan-choi__step-title {
        font-size: 1.4rem;
    }

    .page-huong-dan-choi__btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    /* 1. Top section title + CTA */
    .page-huong-dan-choi__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-huong-dan-choi__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 10px;
    }

    .page-huong-dan-choi__intro-text {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .page-huong-dan-choi__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
    }

    .page-huong-dan-choi__btn {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px;
        font-size: 1rem;
    }

    /* 2. Single column long text container */
    .page-huong-dan-choi__section {
        padding: 30px 15px;
        margin: 0 auto 20px auto;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-huong-dan-choi__section-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .page-huong-dan-choi__step-title {
        font-size: 1.3rem;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-huong-dan-choi__paragraph,
    .page-huong-dan-choi__list-item {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* 3. General images and figure */
    .page-huong-dan-choi__image-container {
        margin: 20px auto;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 5px;
    }

    .page-huong-dan-choi__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* 4. Buttons and button containers (covered in .page-huong-dan-choi__cta-buttons and .page-huong-dan-choi__btn) */

    /* 5. FAQ Block */
    .page-huong-dan-choi__faq-item {
        margin-bottom: 10px;
    }

    .page-huong-dan-choi__faq-question {
        padding: 12px 15px;
        font-size: 1rem;
    }

    .page-huong-dan-choi__faq-toggle {
        font-size: 1.3rem;
    }

    .page-huong-dan-choi__faq-answer {
        padding: 0 15px;
        font-size: 0.9rem;
    }

    .page-huong-dan-choi__faq-answer.active {
        padding: 12px 15px;
    }

    .page-huong-dan-choi__contact-text {
        font-size: 1rem;
    }
}