/* style/keo-truc-tuyen.css */
:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --card-bg: #FFFFFF;
    --background-color: #F4F7FB;
    --text-main: #1F2D3D;
    --text-custom: #000000;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
}

.page-keo-truc-tuyen {
    font-family: Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
}

.page-keo-truc-tuyen__hero-section {
    padding-top: 10px; /* Adjusted for shared header offset */
    padding-bottom: 60px;
    background: var(--primary-color);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.page-keo-truc-tuyen__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

.page-keo-truc-tuyen__hero-content {
    flex: 1 1 500px;
    max-width: 600px;
}

.page-keo-truc-tuyen__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-keo-truc-tuyen__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.page-keo-truc-tuyen__button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page-keo-truc-tuyen__hero-image {
    flex: 1 1 450px;
    text-align: center;
}

.page-keo-truc-tuyen__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-keo-truc-tuyen__btn-primary,
.page-keo-truc-tuyen__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
}

.page-keo-truc-tuyen__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-keo-truc-tuyen__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--glow-color);
}

.page-keo-truc-tuyen__btn-secondary {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-keo-truc-tuyen__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 5px 15px var(--glow-color);
}

.page-keo-truc-tuyen__intro-section,
.page-keo-truc-tuyen__guide-section,
.page-keo-truc-tuyen__faq-section {
    background-color: var(--background-color);
    padding: 60px 0;
}

.page-keo-truc-tuyen__types-section,
.page-keo-truc-tuyen__tips-section,
.page-keo-truc-tuyen__cta-section {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 60px 0;
}

.page-keo-truc-tuyen__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-keo-truc-tuyen__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-main);
}

.page-keo-truc-tuyen__dark-section .page-keo-truc-tuyen__section-title,
.page-keo-truc-tuyen__dark-section .page-keo-truc-tuyen__sub-title {
    color: #ffffff;
}

.page-keo-truc-tuyen__text-main {
    color: var(--text-main);
}

.page-keo-truc-tuyen__text-custom-color {
    color: var(--text-custom);
}

.page-keo-truc-tuyen__text-white {
    color: #ffffff;
}

.page-keo-truc-tuyen__text-block p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.page-keo-truc-tuyen__sub-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-keo-truc-tuyen__grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-keo-truc-tuyen__grid-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.page-keo-truc-tuyen__grid-item .page-keo-truc-tuyen__item-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-keo-truc-tuyen__tips-section .page-keo-truc-tuyen__grid-item .page-keo-truc-tuyen__item-title {
    color: var(--primary-color);
}

.page-keo-truc-tuyen__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-keo-truc-tuyen__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-keo-truc-tuyen__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.page-keo-truc-tuyen__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    background-color: #ffffff;
    list-style: none;
    position: relative;
    user-select: none;
}

.page-keo-truc-tuyen__faq-question::-webkit-details-marker {
    display: none;
}

.page-keo-truc-tuyen__faq-question::marker {
    display: none;
}

.page-keo-truc-tuyen__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-keo-truc-tuyen__faq-item[open] .page-keo-truc-tuyen__faq-toggle {
    transform: rotate(45deg);
}

.page-keo-truc-tuyen__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--text-main);
}

.page-keo-truc-tuyen__faq-answer p {
    margin-bottom: 0;
}

.page-keo-truc-tuyen__cta-section {
    text-align: center;
    padding: 80px 0;
    background: var(--primary-color);
    color: #ffffff;
}

.page-keo-truc-tuyen__cta-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-keo-truc-tuyen__center-content {
    text-align: center;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .page-keo-truc-tuyen__hero-container {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .page-keo-truc-tuyen__hero-content {
        max-width: 100%;
    }

    .page-keo-truc-tuyen__button-group {
        justify-content: center;
    }

    .page-keo-truc-tuyen__hero-side-image {
        margin-top: 30px;
    }

    .page-keo-truc-tuyen__section-title {
        font-size: 2.2rem;
    }

    .page-keo-truc-tuyen__grid-container {
        grid-template-columns: 1fr;
    }

    .page-keo-truc-tuyen__faq-question {
        font-size: 1.05rem;
        padding: 18px 20px;
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-keo-truc-tuyen__hero-section {
        padding-top: 10px !important; /* Ensures small top padding */
        padding-bottom: 40px;
    }
    .page-keo-truc-tuyen__hero-container {
        padding: 30px 15px;
        gap: 20px;
    }
    .page-keo-truc-tuyen__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-keo-truc-tuyen__hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .page-keo-truc-tuyen__button-group {
        flex-direction: column;
        gap: 10px;
    }

    /* General Sections Padding */
    .page-keo-truc-tuyen__intro-section,
    .page-keo-truc-tuyen__types-section,
    .page-keo-truc-tuyen__guide-section,
    .page-keo-truc-tuyen__tips-section,
    .page-keo-truc-tuyen__faq-section,
    .page-keo-truc-tuyen__cta-section {
        padding: 40px 0;
    }
    .page-keo-truc-tuyen__content-area {
        padding: 0 15px;
    }

    .page-keo-truc-tuyen__section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        margin-bottom: 30px;
    }

    .page-keo-truc-tuyen__sub-title {
        font-size: 1.3rem;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    /* Grid items (e.g., Types, Tips) */
    .page-keo-truc-tuyen__grid-container {
        gap: 20px;
    }
    .page-keo-truc-tuyen__grid-item {
        padding: 25px;
    }
    .page-keo-truc-tuyen__grid-item .page-keo-truc-tuyen__item-title {
        font-size: 1.2rem;
    }

    /* General Images */
    .page-keo-truc-tuyen img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        margin: 20px auto !important;
    }
    .page-keo-truc-tuyen__hero-side-image {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Buttons */
    .page-keo-truc-tuyen__cta-button,
    .page-keo-truc-tuyen__btn-primary,
    .page-keo-truc-tuyen__btn-secondary {
        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;
    }

    .page-keo-truc-tuyen__button-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important; /* Force vertical stacking */
        gap: 10px;
    }

    /* FAQ Section */
    .page-keo-truc-tuyen__faq-list {
        margin-top: 30px;
    }
    .page-keo-truc-tuyen__faq-item {
        margin-bottom: 10px;
    }
    .page-keo-truc-tuyen__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-keo-truc-tuyen__faq-toggle {
        font-size: 1.5rem;
    }
    .page-keo-truc-tuyen__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95rem;
    }

    /* CTA Section */
    .page-keo-truc-tuyen__cta-description {
        font-size: 1.05rem;
        margin-bottom: 30px;
    }
}