/* ============================================================
   SECTION: INTRO TEXT (CERTIFICATES) - PHÂN TẦNG 4 GIAO DIỆN
   ============================================================ */

/* 1. TẦNG MOBILE (Max 767px) */
@media (max-width: 767px) {
    .intro-text-section {
        padding: 50px 20px;
        padding-left: 0 !important; 
        padding-right: 0 !important;
        width: 100%;
    }

    .intro-content {
        max-width: 90% !important;
        margin: 0 auto !important;
        text-align: start; 
    }

    .sub-title {
        display: block;
        word-spacing: 5px;
        font-size: 11px;
        color: #2b2929;
        font-weight: 300;
        letter-spacing: 1px;
        margin-bottom: 25px;
        text-transform: uppercase;
    }

    .main-title {
        font-size: 28px !important; 
        line-height: 1.2;
        margin-bottom: 25px;
        max-width: 100%;
        font-weight: 400;
    }

    .desc-text {
        font-size: 12px; 
        line-height: 1.6;
        max-width: 100%;
        color: var(--color-black);
    }
}

/* 2. TẦNG TABLET SMALL (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .intro-text-section {
        padding: 60px 20px !important; /* Giữ 40px cho Tablet Small [cite: 2026-02-07] */
        width: 100%;
        display: flex;
    }



    .intro-content {
        max-width: 85% !important; /* Nới rộng hơn mobile một chút */
        margin: 0;
        text-align: start;
    }

    .sub-title {
        display: block;
        word-spacing: 5px;
        font-size: 11px;
        color: #2b2929;
        font-weight: 300;
        letter-spacing: 1px;
        margin-bottom: 25px;
        text-transform: uppercase;
    }   
 

    .main-title {
        font-size: 40px !important;
        line-height: 1.2;
        margin-bottom: 30px;
    }

    .desc-text {
        font-size: 12px; 
        line-height: 1.6;
        max-width: 600px;
        color: var(--color-black);
    }

}

/* 3. TẦNG TABLET LARGE / LAPTOP NHỎ (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .intro-text-section {
        padding: var(--section-gap) 20px !important;
        width: 100%;
        display: flex;
    }

    .intro-content {
        max-width: 650px !important;
        margin-left: 0 !important;
        margin-right: auto !important;
        text-align: left;
    }

    .sub-title {
        display: block;
        word-spacing: 5px;
        font-size: 11px;
        color: #2b2929;
        font-weight: 300;
        letter-spacing: 1px;
        margin-bottom: 25px;
        text-transform: uppercase;
    }   
 

    .main-title {
        font-size: 40px !important;
        line-height: 1.2;
        margin-bottom: 30px;
    }

    .desc-text {
        font-size: 12px; 
        line-height: 1.6;
        max-width: 670px;
        color: var(--color-black);
    } 
}

/* 4. TẦNG DESKTOP / MÀN HÌNH LỚN (Min 1200px) */
@media (min-width: 1200px) {
    .intro-text-section {
        padding: var(--section-gap) 0 !important; 
        width: 100%;
        display: flex;
        justify-content: center; 
    }

    .intro-text-section .container {
        width: 100% !important;
        max-width: var(--container-max) !important; 
        margin: 0 auto !important;
        padding: 0 var(--side-padding) !important;
    }

    .intro-content {
        max-width: 650px !important; 
        margin-left: 0 !important;
        margin-right: auto !important;
        text-align: left;
    }

    .sub-title {
        font-size: 13px;
        word-spacing: 5px;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #2b2929;
        font-weight: 300;
        margin-bottom: 30px;
    }

    .main-title {
        font-size: clamp(38px, 5vw, 50px);
        font-weight: 400;
        line-height: 1.2;
        margin-bottom: 35px;
    }

    .desc-text {
        font-size: 13px;
        line-height: 1.6;
        max-width: 670px;
        color: var(--color-black);
    }
}











/* ============================================================
   SECTION LOGO STRIP - 4 TẦNG GIAO DIỆN (NO FILTER)
   ============================================================ */

.logo-strip-section {
    padding: 40px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
}

.logo-track {
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 99px; 
    flex-wrap: nowrap; 
}

.logo-track img {
    height: 65px; 
    width: auto;
    transition: 0.3s;
}


@media screen and (min-width: 1024px) and (max-width: 1199px) {
    .logo-track {
        gap: 55px; 
        padding: 0 40px;
    }
    .logo-track img {
        height: 50px;
    }
}


@media screen and (min-width: 768px) and (max-width: 1023px) {
    .logo-strip-section {
        padding: 40px 0;
    }
    .logo-track {
        justify-content: flex-start; 
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 20px; 
        gap: 55px;
        -webkit-overflow-scrolling: touch;
    }
    .logo-track img {
        height: 45px;
        flex-shrink: 0;
    }
    
    .logo-track::-webkit-scrollbar {
        display: none; 
    }
}


@media screen and (max-width: 767px) {
    .logo-strip-section {
        padding: 30px 0;
    }
    .logo-track {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 20px;
        -webkit-overflow-scrolling: touch;
        gap: 40px;
    }
    .logo-track::-webkit-scrollbar {
        height: 2px;
    }
    .logo-track img {
        height: 35px;
        flex-shrink: 0;
    }
}











/* ============================================================
   1. MẶC ĐỊNH & DESKTOP (Màn hình lớn)
   ============================================================ */
.cert-section {
    max-width: 1340px; 
    margin: 0 auto;
    padding: 80px 0 0 55px;
}

.cert-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    margin-bottom: 100px; 
}

.cert-item:nth-child(even) {
    flex-direction: row-reverse;
}

.cert-media {
    flex: 1;
    text-align: center;
}

.cert-media img {
    max-width: 100%;
    height: auto;
}

/* Các cụm info 1-5 chung style trên Desktop */
.cert-info1, .cert-info2, .cert-info3, .cert-info4, .cert-info5 {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
}

.cert-tag {
    font-family: var(--special-font);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: var(--color-text-muted);
}

.cert-title {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 25px;
    line-height: 1.2;
}

.cert-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-black);
    margin-bottom: 35px;
    max-width: 550px;
}

.btn-view-cert {
    font-family: var(--special-font);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #000;
    font-size: 17px;
    letter-spacing: -0.02em;
    border: 1px solid #000;
    padding: 12px 25px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

/* ============================================================
   2. TABLET LARGE (992px - 1199px)
   ============================================================ */
@media (min-width: 992px) and (max-width: 1199px) {
    .cert-section { padding: 80px 0 0 !important; }
    .cert-item, .cert-item:nth-child(even) { 
        flex-direction: column !important; 
        gap: 30px; 
        margin-bottom: 80px; 
        padding: 0 80px !important; 
    }

    .cert-media img { 
        max-width: 580px; /* Thu nhỏ ảnh lại cho cân đối Mobile */
    }

    .cert-info1, .cert-info2, .cert-info3, .cert-info4 { 
        align-items: center; 
        text-align: center;
        margin-top: 0 !important; /* Xóa sạch margin âm */
    }

    .cert-info5 { 
        align-items: center; 
        text-align: center;
        margin-top: 0 !important;
        margin-bottom: 0;
    }

    .cert-title { font-size: 28px; }
}

/* ============================================================
   3. TABLET SMALL (768px - 991px)
   ============================================================ */
@media (min-width: 768px) and (max-width: 991px) {
    .cert-section { padding: 60px 0 0 !important; }
    .cert-item, .cert-item:nth-child(even) { 
        flex-direction: column !important; 
        gap: 5px; 
        margin-bottom: 60px; 
        padding: 0 60px !important; 
    }
    .cert-info1 { 
        align-items: center; 
        text-align: center;
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .cert-info2 { 
        align-items: center; 
        text-align: center;
        margin-top: 40px;
        margin-bottom: 40px;
    }
    
    .cert-info3, .cert-info4 { 
        align-items: center; 
        text-align: center;
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .cert-info5 { 
        align-items: center; 
        text-align: center;
        margin-top: 40px;
        margin-bottom: 0;
    }

    .cert-tag {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: var(--color-text-muted);
}

.cert-title {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 25px;
    line-height: 1.2;
}

.cert-desc {
    font-size: 12px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 35px;
    max-width: 480px;
}


    .btn-view-cert { width: 100%; max-width: 280px; justify-content: center; }
}

/* ============================================================
   4. MOBILE (Dưới 768px) - Áp dụng Golden Parameters
   ============================================================ */
@media (max-width: 767px) {
    .cert-section { 
        padding: 60px 0 0 !important; /* Section gap 40px */
    }
    .cert-item, .cert-item:nth-child(even) { 
        flex-direction: column !important; 
        gap: 30px; 
        margin-bottom: 20px; /* Section gap 40px */
        padding: 0 20px !important; /* Lề 2 bên 20px */
    }
    .cert-media img { 
        max-width: 280px; /* Thu nhỏ ảnh lại cho cân đối Mobile */
    }


    .cert-info1 { 
        align-items: center; 
        text-align: center;
        margin-top: 0;
        margin-bottom: 40px;
    }

    .cert-info2 { 
        align-items: center; 
        text-align: center;
        margin-top: 0;
        margin-bottom: 40px;
    }
    
    .cert-info3, .cert-info4 { 
        align-items: center; 
        text-align: center;
        margin-top: 0;
        margin-bottom: 40px;
    }

    .cert-info5 { 
        align-items: center; 
        text-align: center;
        margin-top: 0;
        margin-bottom: 0;
    }

    .cert-tag {
        font-size: 11px;
        letter-spacing: 1px;
        text-transform: uppercase;
        margin-bottom: 15px;
        color: var(--color-text-muted);
    }

    .cert-title {
        font-size: 23px;
        font-weight: 500;
        margin-bottom: 25px;
        line-height: 1.2;
    }

    .cert-desc {
        font-size: 12px;
        line-height: 1.6;
        color: #444;
        margin-bottom: 35px;
        max-width: 480px;
    }
}


    























/* Container tổng của Section */
.faq-wrapper {
    width: 100%;
    padding: 0 60px;
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff; /* Nền trang trắng */
}

/* Tiêu đề FAQ căn giữa */
.faq-title {
    font-size: 32px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: none; /* Giữ nguyên định dạng chữ */
}

/* Khối nền xám nhạt chứa câu hỏi */
.faq-content-block {
    background-color: #f4f4f4; /* Màu xám rất nhạt đúng hình */
    width: 100%;
    max-width: 840px; /* Giới hạn độ rộng nội dung */
    padding: 15px 50px; /* Padding rộng rãi tạo độ thoáng */
    box-sizing: border-box;
}

.faq-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer; /* Để người dùng biết là bấm được */
    padding: 22px 0;
}

/* Từng dòng câu hỏi */
.faq-item {
    border-bottom: 1px solid var(--color-bar);
    transition: background-color 0.3s ease;
}

.faq-item:last-child {
    border-bottom: none; /* Dòng cuối không có kẻ ngang */
}

/* Typography cho câu hỏi */
.faq-question {
    font-size: 13px;
    font-weight: 800; /* Độ đậm vừa phải */
    color: #1a1a1a; /* Màu gần đen */
    line-height: 1.4;
}


/* PHẦN MỚI: Câu trả lời */
.faq-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr; /* Mặc định là 0 */
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Hiệu ứng dòng chảy của QUOC */
    overflow: hidden;
}

/* Nội dung bên trong Grid */
.faq-answer-content {
    min-height: 0;
}

.faq-answer-content p {
    font-size: 12px;
    color: #000000;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
    padding-bottom: 20px; 
}

/* KHI ACTIVE: Bung Grid ra */
.faq-item.active .faq-answer-wrapper {
    grid-template-rows: 1fr; /* Mở ra đúng bằng nội dung chữ */
}

/* Nút tròn chứa icon */
    .ed-faq-icon-btn {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 25px;
        height: 25px;
        background-color: #e0e0e0;
        border-radius: 50%;
        flex-shrink: 0;
    }

    .faq-header-row:hover .ed-faq-icon-btn {
    background-color: var(--color-dark);
    }

    .faq-header-row:hover .ed-faq-chevron {
    stroke: #ffffff;
    }

    .faq-item.active .ed-faq-chevron {
    transform: rotate(180deg);
}

    /* Icon SVG */
    .ed-faq-chevron {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Đồng bộ thời gian với slide */
    width: 11px;
    height: 11px;
    stroke: currentColor;
    fill: none;
    stroke-width: 3;
}



/*---faqlink---*/

.faq-inline-link {
    color: #000000; /* Giữ màu chữ đồng bộ với văn bản */
    text-decoration: none; /* Khóa gạch chân mặc định thô kệch của trình duyệt */
    position: relative;
    display: inline-block;
    font-weight: 500; /* Có thể tăng nhẹ font-weight nếu muốn chữ nổi bật hơn một chút */
    transition: color 0.3s ease;
}

/* Tạo đường gạch chân custom siêu mảnh */
.faq-inline-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 1px; /* Khoảng cách từ chân chữ xuống đường line */
    width: 100%;
    height: 1px; /* Độ mảnh của đường line gạch chân */
    background-color: #000000; /* Màu đường line trùng màu chữ */
    
    /* Gốc biến đổi đặt bên TRÁI để khi thu nhỏ (scale về 0), phần bên PHẢI sẽ co về bên trái */
    transform-origin: left center;
    transform: scaleX(1); /* Mặc định hiển thị nguyên vẹn đường line */
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ================= HOVER INTERACTION ================= */
/* Khi rê chuột vào: Đường gạch chân biến mất dần từ phải sang trái */
.faq-inline-link:hover::after {
    transform: scaleX(0); /* Co lại bằng 0 và biến mất */
}



/*---faqlink---*/
    




/* --- RESPONSIVE CHO FAQ (MOBILE & TABLET) --- */
@media (max-width: 1024px) {
    /* Container tổng */
    .faq-wrapper {
        padding: 0 20px;
        margin-top: 40px
    }

    .faq-title {
        font-size: 28px; /* Giảm nhẹ tiêu đề cho cân đối */
        margin-bottom: 30px;
    }

    /* Khối nền xám: Bỏ giới hạn max-width và chỉnh lại padding */
    .faq-content-block {
        max-width: 100%;
        padding: 5px 20px; /* Thu hẹp padding nội bộ để ưu tiên không gian chữ */
        background-color: #f4f4f4; /* Giữ nguyên màu xám nhạt chuẩn QUOC */
    }

    /* Từng dòng câu hỏi */
    .faq-header-row {
        padding: 18px 0; /* Thu nhỏ khoảng cách dòng một chút */
    }

    /* Font chữ trên mobile: Cần rõ ràng nhưng không quá to */
    .faq-question {
        font-size: 14px; /* Tăng 1px so với desktop để dễ đọc trên điện thoại */
        letter-spacing: -0.01em;
        padding-right: 15px; /* Tránh chữ đè lên icon */
    }

    /* Câu trả lời */
    .faq-answer-content p {
        font-size: 12px;
        line-height: 1.4;
        padding-bottom: 15px;
    }

    /* Icon nút tròn: Giữ nguyên kích thước để dễ chạm (Touch target) */
    .ed-faq-icon-btn {
        width: 28px; /* Tăng nhẹ để ngón tay dễ bấm */
        height: 28px;
    }

    .ed-faq-chevron {
        width: 12px;
        height: 12px;
    }
}

/* Tinh chỉnh cho màn hình siêu nhỏ */
@media (max-width: 480px) {
    .faq-title {
        font-size: 24px;
    }
    
    .faq-question {
        font-size: 13px; /* Quay lại 13px nếu màn hình quá hẹp */
    }
}