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

/* General styles for the page content */
.page-huong-dan-choi {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

.page-huong-dan-choi__content-area {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

.page-huong-dan-choi__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #017439; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
}

.page-huong-dan-choi__section-title--white {
    color: #FFFFFF;
}

.page-huong-dan-choi__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-huong-dan-choi__section-description--white {
    color: #f0f0f0;
}

/* Button styles */
.page-huong-dan-choi__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-huong-dan-choi__cta-buttons--center {
    justify-content: center;
}

.page-huong-dan-choi__btn-primary,
.page-huong-dan-choi__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    max-width: 250px; /* Max width for individual buttons */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Ensure long words break */
}

.page-huong-dan-choi__btn-primary {
    background-color: #017439; /* Primary brand color */
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-huong-dan-choi__btn-primary:hover {
    background-color: #005a2d;
    border-color: #005a2d;
}

.page-huong-dan-choi__btn-secondary {
    background-color: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
}

.page-huong-dan-choi__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2d;
    border-color: #005a2d;
}

.page-huong-dan-choi__btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
    max-width: 180px;
}

/* Specific button colors for register/login */
a[href*="redirect"].page-huong-dan-choi__btn-primary {
    background-color: #C30808; /* Register color */
    border-color: #C30808;
    color: #FFFF00; /* Register/Login font color */
}

a[href*="redirect"].page-huong-dan-choi__btn-primary:hover {
    background-color: #9c0606;
    border-color: #9c0606;
}

/* Image base styles */
.page-huong-dan-choi img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px; /* General rounded corners for images */
}

/* HERO Section */
.page-huong-dan-choi__hero-section {
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    padding-bottom: 60px;
    background-color: #FFFFFF; /* Light background for hero */
    color: #333333;
}

.page-huong-dan-choi__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding: 0 16px;
}

.page-huong-dan-choi__hero-image {
    flex: 1 1 45%; /* Image takes about 45% width */
    min-width: 300px;
    text-align: center;
    order: 1; /* Image first */
}

.page-huong-dan-choi__hero-content {
    flex: 1 1 50%; /* Content takes about 50% width */
    min-width: 300px;
    order: 2; /* Content second */
    text-align: left;
}

.page-huong-dan-choi__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
    font-weight: 800;
    color: #017439; /* Primary brand color */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-huong-dan-choi__hero-description {
    font-size: 1.2em;
    color: #555555;
    margin-bottom: 30px;
}

/* Intro Section (Module 1) */
.page-huong-dan-choi__intro-section {
    padding: 60px 0;
    background-color: #f8f8f8; /* Light background */
    color: #333333;
}

.page-huong-dan-choi__icon-boxes {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.page-huong-dan-choi__icon-box {
    flex: 1 1 300px; /* Each box takes about 300px */
    max-width: 350px;
    text-align: center;
    padding: 25px;
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.page-huong-dan-choi__icon-box:hover {
    transform: translateY(-5px);
}

.page-huong-dan-choi__icon-box-media {
    width: 200px; /* Fixed size for circular image */
    height: 200px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #017439;
}

.page-huong-dan-choi__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; /* Ensure image is also circular */
    display: block;
}

.page-huong-dan-choi__icon-box-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #017439;
    margin-bottom: 15px;
}

.page-huong-dan-choi__icon-box-text {
    font-size: 1em;
    color: #555555;
}

/* Guide Section */
.page-huong-dan-choi__guide-section {
    padding: 60px 0;
    background-color: #017439; /* Dark brand color background */
    color: #FFFFFF;
}

.page-huong-dan-choi__guide-steps {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-top: 40px;
}

.page-huong-dan-choi__guide-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white background */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-huong-dan-choi__guide-item:nth-child(even) {
    flex-direction: row-reverse; /* Alternate image and text */
}

.page-huong-dan-choi__guide-item:nth-child(odd) .page-huong-dan-choi__guide-image {
    order: 2;
}
.page-huong-dan-choi__guide-item:nth-child(odd) .page-huong-dan-choi__guide-step-content {
    order: 1;
}

.page-huong-dan-choi__guide-step-title {
    font-size: 1.8em;
    font-weight: 700;
    color: #FFFF00; /* Yellow for step titles */
    margin-bottom: 15px;
    flex: 1 1 100%; /* Title spans full width */
}

.page-huong-dan-choi__guide-step-text {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex: 1 1 55%; /* Text takes more width */
    min-width: 300px;
}

.page-huong-dan-choi__guide-image {
    flex: 1 1 35%; /* Image takes less width */
    min-width: 300px;
    max-width: 500px; /* Limit image size within item */
    height: auto;
    border: 2px solid #FFFF00;
    border-radius: 10px;
}

.page-huong-dan-choi__guide-item .page-huong-dan-choi__btn-primary,
.page-huong-dan-choi__guide-item .page-huong-dan-choi__btn-secondary {
    margin-top: 10px;
    margin-right: 15px;
}


/* Tips Section */
.page-huong-dan-choi__tips-section {
    padding: 60px 0;
    background-color: #f8f8f8;
    color: #333333;
}

.page-huong-dan-choi__tips-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-huong-dan-choi__tips-list li {
    background-color: #FFFFFF;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border-left: 5px solid #017439;
    transition: all 0.3s ease;
}

.page-huong-dan-choi__tips-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-huong-dan-choi__tip-title {
    font-size: 1.3em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-huong-dan-choi__tip-text {
    font-size: 1em;
    color: #555555;
}

.page-huong-dan-choi__tips-image {
    max-width: 800px;
    margin: 30px auto;
    display: block;
    border: 1px solid #e0e0e0;
}

/* FAQ Section */
.page-huong-dan-choi__faq-section {
    padding: 60px 0;
    background-color: #017439; /* Dark brand color background */
    color: #FFFFFF;
}

.page-huong-dan-choi__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-huong-dan-choi__faq-item {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white */
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-huong-dan-choi__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: #FFFF00; /* Yellow for FAQ questions */
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    list-style: none; /* Hide default marker for details summary */
}

.page-huong-dan-choi__faq-question::-webkit-details-marker {
    display: none;
}

.page-huong-dan-choi__faq-question:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.page-huong-dan-choi__faq-qtext {
    flex-grow: 1;
}

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

.page-huong-dan-choi__faq-item[open] .page-huong-dan-choi__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to form cross */
}

.page-huong-dan-choi__faq-answer {
    padding: 15px 25px 25px;
    font-size: 1.1em;
    color: #f0f0f0;
    line-height: 1.5;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-huong-dan-choi__hero-container {
        flex-direction: column;
        text-align: center;
    }
    .page-huong-dan-choi__hero-image,
    .page-huong-dan-choi__hero-content {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .page-huong-dan-choi__hero-image {
        order: 1;
    }
    .page-huong-dan-choi__hero-content {
        order: 2;
    }
    .page-huong-dan-choi__main-title,
    .page-huong-dan-choi__hero-description {
        text-align: center;
    }

    .page-huong-dan-choi__guide-item {
        flex-direction: column !important; /* Force column for all guide items */
        text-align: center;
    }
    .page-huong-dan-choi__guide-item:nth-child(odd) .page-huong-dan-choi__guide-image,
    .page-huong-dan-choi__guide-item:nth-child(even) .page-huong-dan-choi__guide-image {
        order: 1; /* Image always on top */
    }
    .page-huong-dan-choi__guide-step-title {
        flex: 1 1 100%;
        text-align: center;
    }
    .page-huong-dan-choi__guide-step-text {
        flex: 1 1 100%;
        text-align: left; /* Keep text left-aligned for readability */
    }
    .page-huong-dan-choi__guide-image {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .page-huong-dan-choi__guide-item .page-huong-dan-choi__btn-primary,
    .page-huong-dan-choi__guide-item .page-huong-dan-choi__btn-secondary {
        max-width: 100%;
        width: 100%;
        margin-right: 0;
    }
    .page-huong-dan-choi__tips-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Ensure body padding-top is handled by shared.css, this page only adds small top margin */
    .page-huong-dan-choi__hero-section {
        padding-top: 10px !important; /* Small top padding for hero */
        padding-bottom: 30px;
    }

    /* General containers and images */
    .page-huong-dan-choi__content-area,
    .page-huong-dan-choi__hero-container,
    .page-huong-dan-choi__icon-boxes,
    .page-huong-dan-choi__guide-steps,
    .page-huong-dan-choi__tips-list,
    .page-huong-dan-choi__faq-list {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    /* Module 1: Three column round images */
    .page-huong-dan-choi__icon-box-media {
        width: 150px;
        height: 150px;
        border-width: 2px;
    }

    /* Buttons and button containers */
    .page-huong-dan-choi__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-huong-dan-choi__btn-primary,
    .page-huong-dan-choi__btn-secondary,
    .page-huong-dan-choi a[class*="button"],
    .page-huong-dan-choi 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;
        padding-right: 15px;
    }

    /* Hero section specific */
    .page-huong-dan-choi__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-huong-dan-choi__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* Guide section specific */
    .page-huong-dan-choi__guide-item {
        padding: 20px;
        gap: 20px;
    }
    .page-huong-dan-choi__guide-step-title {
        font-size: 1.5em;
    }
    .page-huong-dan-choi__guide-step-text {
        font-size: 0.95em;
    }

    /* Tips section specific */
    .page-huong-dan-choi__tips-list li {
        padding: 20px;
    }
    .page-huong-dan-choi__tip-title {
        font-size: 1.2em;
    }

    /* FAQ section specific */
    .page-huong-dan-choi__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-huong-choi__faq-answer {
        padding: 10px 20px 20px;
        font-size: 1em;
    }
}