/* --- RESET PHÔNG CHỮ ĐỒNG BỘ --- */
html { font-size: 62.5%; }
* { font-family: 'Poppins', sans-serif; -webkit-font-smoothing: antialiased; }

/* --- SPACING CHUNG --- */
.section-padding { padding: 10rem 0; }
.section-title { font-size: 3.5rem; color: #002e5f; font-weight: 700; margin-bottom: 2.5rem; text-transform: uppercase; }
.text-desc { font-size: 1.8rem; color: #555; line-height: 1.8; max-width: 900px; margin: 0 auto; }

/* --- 1. HERO --- */
.detail-hero { 
    padding: 22rem 2rem 12rem; 
    background: linear-gradient(rgba(0,46,95,0.85), rgba(0,46,95,0.85)), url('../images/banner.jpg');
    background-size: cover; background-position: center; color: #fff; 
}
.badge-top {
    background: none !important; /* Bỏ vòng màu xanh */
    padding: 0 0 0 1.5rem !important; /* Khoảng cách lề trái */
    border-left: 4px solid #00bfff; /* Thanh dọc màu xanh */
    color: #00bfff !important;
    text-transform: uppercase; /* Viết hoa toàn bộ cho chuyên nghiệp */
    letter-spacing: 3px; /* Giãn cách chữ rộng ra */
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    display: inline-block;
    margin-bottom: 2rem;
}
.detail-hero h1 { font-size: 5.5rem; font-weight: 700; margin-bottom: 2.5rem; }
.detail-hero p { font-size: 2.2rem; opacity: 0.9; max-width: 80rem; margin: 0 auto 4rem; }
.btn-main-cta { padding: 1.6rem 4.5rem; background: #00bfff; color: #fff; border-radius: 5rem; font-size: 1.8rem; font-weight: 700; transition: 0.3s; display: inline-block; }
.btn-main-cta:hover { background: #fff; color: #002e5f; transform: translateY(-5px); box-shadow: 0 1rem 2rem rgba(0,191,255,0.3); }

/* --- 3. OFFERING CARDS --- */
.off-card { background: #fff; padding: 4rem; border-radius: 2rem; border: 1px solid #eee; transition: 0.3s; height: 100%; box-shadow: 0 1rem 3rem rgba(0,0,0,0.05); }
.off-card:hover { border-color: #00bfff; transform: translateY(-1rem); }
.off-card h4 { font-size: 2.2rem; color: #002e5f; margin-bottom: 1.5rem; font-weight: 600; }
.off-card p { font-size: 1.5rem; color: #666; margin: 0; }

/* --- 4. BENEFITS --- */
.ben-item { font-size: 1.9rem; color: #333; font-weight: 500; display: flex; align-items: center; gap: 2rem; }
.ben-item i { color: #00bfff; font-size: 2.5rem; }

/* --- 14. CTA FORM --- */
.submit-btn-detail { width: 100%; padding: 1.8rem; background: #00bfff; color: #fff; border: none; border-radius: 1rem; font-size: 2rem; font-weight: 700; transition: 0.3s; }
.submit-btn-detail:hover { background: #002e5f; box-shadow: 0 1rem 2rem rgba(0,191,255,0.2); }
.header {
    background: transparent !important;
    transition: 0.4s all ease; /* Giúp hiệu ứng chuyển màu mượt mà */
}

/* Trạng thái khi cuộn chuột (JS sẽ thêm class này vào) */
.header.header-active {
    background: #002e5f; /* Đổi thành màu xanh đậm Twinstech */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); /* Thêm đổ bóng cho nổi bật */
    padding: 1rem 4% !important; /* Thu nhỏ header lại một chút cho tinh tế */
}

/* Chỉnh Logo to vừa phải */
.header .logo img {
    height: 5rem !important; 
    width: auto !important;
}

/* Menu chữ trắng mảnh như Service */
.header .navbar ul li a {
    color: #fff !important;
    font-weight: 400 !important;
    font-size: 1.8rem !important;
    letter-spacing: 1.5px !important;
}

/* Mục đang chọn (active) thì gạch dưới màu xanh nhạt */
.header .navbar ul li a.active {
    color: #00bfff !important;
    border-bottom: 2px solid #00bfff !important;
    padding-bottom: 5px;
    text-decoration: none !important;
}

/* Đẩy phần Hero xuống để không bị Header đè mất chữ */
.detail-hero {
    padding-top: 22rem !important; /* Tăng khoảng cách lề trên */
}
.tech-grid-detail {
    display: grid;
    /* Chia làm 4 cột đều nhau trên màn hình máy tính */
    grid-template-columns: repeat(4, 1fr); 
    gap: 3rem; /* Khoảng cách giữa các ô */
    margin-top: 4rem;
}

.t-box {
    background: #fff;
    padding: 3.5rem 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.03); /* Đổ bóng nhẹ tinh tế */
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Hiệu ứng khi di chuột vào từng ô */
.t-box:hover {
    transform: translateY(-5px); /* Nhấc nhẹ lên */
    border-color: #00bfff; /* Đổi viền sang màu xanh nhạt */
    box-shadow: 0 1.5rem 3.5rem rgba(0, 191, 255, 0.1); /* Tạo ánh sáng xanh mờ */
}

.t-box i {
    font-size: 5rem !important; /* Phóng to icon */
    color: #002e5f; /* Màu xanh đậm thương hiệu */
    margin-bottom: 1.5rem;
    transition: 0.3s;
}

/* Khi hover thì icon đổi sang màu xanh sáng */
.t-box:hover i {
    color: #00bfff;
}

.t-box p {
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* --- HỖ TRỢ TRÊN ĐIỆN THOẠI VÀ TABLET --- */
@media (max-width: 992px) {
    .tech-grid-detail {
        grid-template-columns: repeat(2, 1fr); /* Tablet chia 2 cột */
    }
}

@media (max-width: 576px) {
    .tech-grid-detail {
        grid-template-columns: 1fr; /* Điện thoại xếp 1 cột */
    }
}
/* --- THIẾT KẾ LẠI PHẦN OUR PROCESS (TIMELINE) --- */
.process-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-top: 5rem;
    padding: 0 2rem;
}

/* Đường kẻ mờ nối giữa các bước */
.process-wrapper::before {
    content: '';
    position: absolute;
    top: 3rem;
    left: 10%;
    width: 80%;
    height: 2px;
    background: #eef2f6;
    z-index: 1;
}

.step-item {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-number {
    width: 6rem;
    height: 6rem;
    background: #002e5f;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border: 5px solid #fff;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 46, 95, 0.15);
    transition: 0.3s;
}

.step-item:hover .step-number {
    background: #00bfff;
    transform: scale(1.1);
}

.step-item h4 {
    font-size: 1.8rem;
    color: #002e5f;
    font-weight: 600;
}

/* --- THIẾT KẾ LẠI PHẦN WHY TWINSTECH (GRID CARDS) --- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.why-card {
    background: #fff;
    padding: 4rem 2rem;
    border-radius: 1.5rem;
    text-align: center;
    border: 1px solid #f0f0f0;
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.03);
    transition: 0.3s ease;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1.5rem 4rem rgba(0, 46, 95, 0.08);
    border-color: #00bfff;
}

.why-card i {
    font-size: 4rem;
    color: #00bfff;
    margin-bottom: 2rem;
    display: block;
}

.why-card h4 {
    font-size: 1.8rem;
    color: #002e5f;
    font-weight: 700;
    line-height: 1.4;
}

/* RESPONSIVE CHO CẢ 2 PHẦN */
@media (max-width: 992px) {
    .process-wrapper { flex-wrap: wrap; }
    .process-wrapper::before { display: none; }
    .step-item { flex: 0 0 33.33%; margin-bottom: 3rem; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .step-item { flex: 0 0 50%; }
    .why-grid { grid-template-columns: 1fr; }
}
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; margin-bottom: 1.5rem; border-radius: 1rem; border: 1px solid #eee; overflow: hidden; transition: 0.3s; }
.faq-item:hover { border-color: #00bfff; }
.faq-question { padding: 2rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 1.8rem; font-weight: 600; color: #002e5f; }
.faq-answer { padding: 0 2rem 2rem; font-size: 1.6rem; color: #666; line-height: 1.6; display: none; }

/* 13. Related Services */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 3rem; }
.related-box { padding: 2.5rem; background: #f0f9ff; border-radius: 1rem; text-align: center; color: #002e5f; font-weight: 600; font-size: 1.6rem; transition: 0.3s; border: 1px solid transparent; }
.related-box:hover { background: #002e5f; color: #fff; transform: translateY(-5px); }

/* 14. CTA Form Modern */
.cta-form-wrapper { background: #fff; padding: 5rem; border-radius: 2rem; box-shadow: 0 2rem 5rem rgba(0, 46, 95, 0.15); max-width: 900px; margin: -10rem auto 0; position: relative; z-index: 5; }
.cta-input { width: 100%; padding: 1.5rem 2rem; border-radius: 1rem; border: 1px solid #eee; background: #f9f9f9; font-size: 1.6rem; margin-bottom: 2rem; outline: none; }
.cta-input:focus { border-color: #00bfff; background: #fff; }
.btn-submit-full { width: 100%; padding: 1.8rem; background: #00bfff; color: #fff; border: none; border-radius: 1rem; font-size: 1.8rem; font-weight: 700; transition: 0.3s; cursor: pointer; }
.btn-submit-full:hover { background: #002e5f; box-shadow: 0 1rem 2rem rgba(0,191,255,0.2); }

/* Case Mini */
.case-mini-card { background: #fff; border-radius: 1.5rem; overflow: hidden; border: 1px solid #eee; transition: 0.3s; }
.case-mini-card:hover { transform: translateY(-5px); box-shadow: 0 1rem 3rem rgba(0,0,0,0.08); }
.case-mini-img { height: 18rem; background: #ddd; }
.case-mini-body { padding: 2rem; }
.section-padding { padding: 80px 0; }
.section-title { font-size: 3rem; color: #002e5f; font-weight: 700; text-align: center; margin-bottom: 40px; text-transform: uppercase; }

/* Section 5: Industries */
.ind-tags-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.ind-tags-container span { background: #fff; padding: 10px 25px; border-radius: 30px; border: 1px solid #ddd; font-weight: 600; color: #002e5f; }

/* Section 7: Process */
.process-flex-box { display: flex; justify-content: space-between; text-align: center; gap: 10px; flex-wrap: wrap; }
.proc-step { flex: 1; min-width: 120px; }
.proc-step i { width: 50px; height: 50px; background: #002e5f; color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-weight: bold; margin-bottom: 10px; }
.proc-step p { font-size: 1.4rem; font-weight: 600; color: #333; }

/* Section 8: Why Us */
.why-flex-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; text-align: center; }
.why-item-card { background: #fff; padding: 30px; border-radius: 15px; border: 1px solid #eee; }
.why-item-card i { color: #00bfff; font-size: 3rem; margin-bottom: 15px; display: block; }
.why-item-card h4 { font-size: 1.6rem; color: #002e5f; }

/* Section 9: Models */
.model-flex-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }
.model-card { background: #fff; padding: 30px; border-radius: 15px; text-align: center; border: 2px solid transparent; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.model-card.active { border-color: #00bfff; background: #f0f9ff; }
.model-card h4 { font-size: 1.8rem; color: #002e5f; margin-bottom: 10px; }

/* Section 10: Case Studies */
.case-flex-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.case-mini-box { background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border: 1px solid #eee; }
.case-placeholder { height: 180px; background: #002e5f; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: bold; }
.case-txt { padding: 20px; }
.case-txt h4 { font-size: 1.8rem; color: #002e5f; }

/* Section 13: Related */
.related-links-box { font-size: 1.8rem; font-weight: 600; }
.related-links-box a { color: #00bfff; margin: 0 15px; }
.related-links-box span { color: #ddd; }

/* Section 14: CTA Form (FIX LỖI) */
.final-cta-box { background: #002e5f; padding: 60px; border-radius: 20px; color: #fff; text-align: center; }
.final-cta-box h2 { font-size: 3.2rem; margin-bottom: 15px; font-weight: 700; }
.cta-grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 800px; margin: 40px auto 20px; }
.cta-grid-form input, .cta-grid-form textarea { padding: 15px; border-radius: 10px; border: none; font-size: 1.5rem; outline: none; }
.cta-grid-form textarea { grid-column: span 2; }
.cta-grid-form button { grid-column: span 2; padding: 15px; background: #00bfff; color: #fff; border: none; border-radius: 10px; font-size: 1.8rem; font-weight: 700; cursor: pointer; transition: 0.3s; }
.cta-grid-form button:hover { background: #fff; color: #002e5f; }
.commitment-txt { font-size: 1.4rem; opacity: 0.7; }
.lead-form-response { opacity: 1; font-weight: 500; transition: color 0.2s ease; }

/* Responsive Mobile */
@media (max-width: 768px) {
    .cta-grid-form { grid-template-columns: 1fr; }
    .cta-grid-form textarea, .cta-grid-form button { grid-column: span 1; }
    .case-flex-grid { grid-template-columns: 1fr; }
}
        .faq{
            min-height: 70vh;
            width: 100vw;
            text-align: center;
            padding: 0 2rem;
            background: url(../images/faq.jpg);
            background-repeat: no-repeat;
            background-size: cover;
        }
        
        .faq .row{
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 2rem;
        }
        
        .faq .row .accordion-container{
            width: 50%;
            text-align: left;
        }

        .faq .row .accordion{
            margin-left: 1rem;
            margin-right: 2rem;
        }
        
        .faq .row .accordion-container .accordion .accordion-header{
            background-color: #00bfff;
            margin: 1rem 0;
            box-shadow: .1rem .1rem .3rem rgba(0,0,0,.3);
            cursor: pointer;
            margin-left: 1rem;
            margin-right: 2rem;
        }
        
        .faq .row .accordion-container .accordion .accordion-header span{
            display: inline-block;
            text-align: center;
            height: 4rem;
            width: 5rem;
            line-height: 4rem;
            font-size: 2rem;
            background: #333;
            color: #fff;
            clip-path: polygon(0% 0%,75% 0%,100% 50%,75% 100%,0% 100%); 
        }
        
        .faq .row .accordion-container .accordion .accordion-header h3{
            display: inline;
            color: #333;
            font-weight: 400;
            padding-left: .5rem;
            font-size: 1.5rem;
        }
        
        .faq .row .accordion-container .accordion .accordion-body{
            padding: 1rem;
            color: #444;
            box-shadow: .1rem .1rem .3rem rgba(0,0,0,.3);
            background-color: #fff;
            font-size: 1.3rem;
            display: none;
            margin-left: 1rem;
            margin-right: 2rem;
        }
        
@media (max-width: 1200px){
    .faq{
        min-height: 70vh;
    }
}    