/* --- 1. BIẾN TOÀN CỤC --- */
:root {
    --navy: #00008A;
    --orange: #ee5421;
    --text-dark: #111;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- 2. CẤU TRÚC TRANG & CONTAINER --- */
.tis-team-page { 
    font-family: 'Montserrat', sans-serif; 
    background: #fff; 
    padding: 100px 0; 
    overflow-x: hidden; 
    color: var(--text-dark);
}
.container { max-width: 1140px; margin: auto; padding: 0 20px; }

/* --- 3. TIÊU ĐỀ & TAGS (Sửa lỗi tại đây) --- */
.tag-sub { 
    color: var(--orange); 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    display: block; 
    margin-bottom: 10px; 
}

.text-navy { 
    color: var(--navy); 
    font-weight: 900; 
    font-size: 36px; 
    text-transform: uppercase; 
}

.section-title { 
    font-size: 16px; 
    font-weight: 800; 
    color: #94a3b8; 
    text-transform: uppercase; 
    text-align: center; 
    letter-spacing: 2px; 
    margin-bottom: 40px; 
}

/* --- 4. BENTO HEADER (Kế thừa từ text-navy) --- */
.bento-header h2.text-navy {
    font-size: 32px;
    font-weight: 800;
    position: relative;
    padding-bottom: 25px;
    margin-bottom: 40px;
    display: inline-block; /* Để thanh after không bị dài quá khổ */
}

.bento-header h2.text-navy::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: var(--orange);
    margin: 20px auto 0;
    border-radius: 2px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* --- 5. CARD & GRID SYSTEM --- */
.m-card { 
    background: #fff; border-radius: 0px; overflow: hidden; 
    transition: var(--transition-smooth); 
    border: 1px solid #f1f5f9; text-align: center; height: 100%; 
}
.m-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,138,0.1); border-color: var(--navy); }

.m-img { width: 100%; aspect-ratio: 4/5; overflow: hidden; background: #f8fafc; position: relative; }
.m-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }

.m-info { padding: 25px 15px; }
.m-info h4 { font-size: 18px; font-weight: 800; color: var(--navy); margin: 0 0 8px 0; line-height: 1.3; }
.m-info p { font-size: 13px; font-weight: 600; color: var(--orange); text-transform: uppercase; margin: 0; letter-spacing: 1px; }

.row-bgh { display: grid; grid-template-columns: repeat(2, 300px); justify-content: center; gap: 40px; margin-bottom: 80px; }
.row-managers { display: grid; grid-template-columns: repeat(4, 260px); justify-content: center; gap: 30px; margin-bottom: 100px; }

.slider-wrap { border-top: 1px solid #eee; padding-top: 80px; margin-top: 50px; }
.staffSwiper .swiper-wrapper { transition-timing-function: linear !important; }

/* --- 6. RESPONSIVE --- */
@media (max-width: 991px) {
    .row-bgh, .row-managers { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
    .text-navy, .bento-header h2.text-navy { font-size: 26px; }
    .m-info h4 { font-size: 16px; }
}




/* Container bao ngoài slider */
.slider-wrap {
    border-top: 1px solid #eee;
    padding-top: 80px;
    margin-top: 50px;
}

/* Tiêu đề của section slider */
.slider-wrap .section-title {
    margin-bottom: 50px;
}

/* Cấu hình Swiper */
.staffSwiper {
    padding: 20px 0 60px; /* Thêm padding dưới để không bị cắt shadow khi hover */
}

/* Hiệu ứng chạy liên tục không khựng (Linear) */
.staffSwiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

/* Cấu trúc Card trong Slide */
.staffSwiper .swiper-slide {
    height: auto; /* Quan trọng: giúp slide tự co dãn */
    display: flex;
}

.staffSwiper .m-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #f1f5f9;
    transition: var(--transition-smooth); /* Sử dụng biến đã khai báo ở :root */
}

/* Hình ảnh nhân viên */
.staffSwiper .m-img {
    width: 100%;
    aspect-ratio: 1/1; /* Hoặc 4/5 tùy ý anh, nhưng nên cố định tỷ lệ */
    overflow: hidden;
    background: #f8fafc;
}

.staffSwiper .m-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Đảm bảo ảnh không bị méo */
    transition: 0.6s ease;
}

/* Nội dung thông tin */
.staffSwiper .m-info {
    padding: 20px 15px;
    flex-grow: 1; /* Đẩy nội dung chiếm hết không gian còn lại */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.staffSwiper .m-info h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.staffSwiper .m-info p {
    font-size: 12px;
    font-weight: 600;
    color: var(--orange);
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 1px;
}

/* Hiệu ứng Hover */
.staffSwiper .swiper-slide:hover .m-card {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,138,0.1);
    border-color: var(--navy);
}

.staffSwiper .swiper-slide:hover .m-img img {
    transform: scale(1.05);
}