/* =========================================================
   TIS BOARDING MASTER CSS - RE-BUILT 2026
   Style: Modern Academy | Font: Montserrat
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&display=swap');

:root {
    --navy: #00008A;
    --orange: #ee5421;
    --soft-bg: #f8fafc;
    --text-main: #444;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius-lg: 25px;
    --radius-xl: 35px;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&display=swap');

:root {
    --navy: #00008A;
    --orange: #ee5421;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius-xl: 35px;
}


.hero-full {
    position: relative;
    width: 100%;
    height: 800px; 
    display: flex;
    align-items: center;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
    
    background-image: var(--bg-desktop);
    background-size: cover;
    background-position: center;
}

.hero-full::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 138, 0.9) 0%, rgba(0, 0, 138, 0.5) 25%, rgba(0, 0, 138, 0) 40%);
    z-index: 1;
}

.hero-full .container { 
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1600px; 
    margin: auto; 
    padding: 0 80px; 
}

.hero-content-full {
    width: 33.33%; 
    min-width: 450px;
    text-align: left;
    animation: fadeInUp 1s var(--transition-smooth);
}

.hero-badge-inline {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 12px 28px;
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
}

.hero-badge-inline i { color: #ffce00; margin-right: 12px; }

.hero-content-full h1 {
    font-size: 52px;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.text-orange { color: var(--orange); }

.hero-content-full p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-tis-v3 {
    display: inline-block;
    text-decoration: none;
    background: var(--orange);
    color: #fff;
    padding: 20px 50px;
    border-radius: var(--radius-xl);
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(238, 84, 33, 0.4);
}


@media (max-width: 1024px) {
    .hero-full {
        height: auto;
        min-height: 100vh; 
        aspect-ratio: 1080 / 1920; 
        display: block; 
        
        background-image: var(--bg-mobile) !important;
        background-position: center top; 
    }

    .hero-full::before {
        background: linear-gradient(to bottom, 
            rgba(0, 0, 138, 1) 0%, 
            rgba(0, 0, 138, 0.8) 10%, 
            rgba(0, 0, 138, 0) 30%);
        z-index: 1;
    }

    .hero-full .container {
        position: absolute;
        top: 40px;
        left: 0;
        width: 100%;
        padding: 0 20px;
        z-index: 5;
    }

    .hero-content-full {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: unset;
        margin-top: 0;
    }

    .hero-content-full h1 { 
        font-size: 26px; 
        margin-bottom: 10px; 
        text-shadow: 0 2px 10px rgba(0,0,0,0.5); 
    }
    
    .hero-content-full p { 
        font-size: 14px; 
        margin-bottom: 20px;
        line-height: 1.4;
        max-width: 80%;
        text-shadow: 0 1px 5px rgba(0,0,0,0.5);
    }
    
    .btn-tis-v3 { 
        font-size: 14px; 
        padding: 12px 35px; 
        border-radius: 50px; 
    }
    
    .hero-badge-inline { 
        font-size: 10px; 
        padding: 6px 15px; 
        border-radius: 50px; 
        margin-bottom: 15px; 
        background: rgba(0, 0, 138, 0.5);
    }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}


.tis-form-section { padding: 100px 0; background: var(--soft-bg); font-family: 'Plus Jakarta Sans', sans-serif; position: relative; }

.tis-form-section::before { 
    content: ""; position: absolute; top: 10%; left: 5%; font-size: 100px; color: rgba(238, 84, 33, 0.05); transform: rotate(-15deg);
}

.tis-form-section .container { max-width: 1200px; margin: auto; padding: 0 20px; position: relative; z-index: 2; }

.tis-form-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }

.tis-form-content .tag { 
    background: var(--orange); color: #fff; padding: 6px 15px; 
    font-size: 12px; font-weight: 700; display: inline-block; margin-bottom: 25px; border-radius: 4px;
}
.tis-form-content h2 { font-size: 42px; font-weight: 800; color: var(--navy); line-height: 1.2; margin-bottom: 25px; }
.tis-form-content h2 span { color: var(--orange); }
.tis-form-content p { font-size: 17px; color: #475569; line-height: 1.8; margin-bottom: 40px; }

.tis-points { display: grid; grid-template-columns: 1fr; gap: 15px; }
.point { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; color: var(--navy); }
.point .icon { 
    width: 28px; height: 28px; background: rgba(0, 0, 138, 0.1); color: var(--navy); 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; 
}

.tis-form-card { background: #fff; padding: 50px; box-shadow: 0 40px 80px rgba(0,0,138,0.06); border-radius: 20px; border: 1px solid #edf2f7; }
.tis-form-card form { display: grid; gap: 20px; }

.field-group { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: 0.5px; }

.field input, .field select, .field textarea { 
    padding: 14px 18px; border: 1.5px solid #eef2f6; border-radius: 12px; 
    font-family: inherit; font-size: 15px; transition: 0.3s; background: #fcfdfe;
}
.field input:focus, .field select:focus, .field textarea:focus { 
    outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 10px 20px rgba(0,0,138,0.04);
}

.tis-submit { 
    background: var(--navy); color: #fff; padding: 18px; border: none; 
    font-weight: 800; font-size: 16px; cursor: pointer; transition: 0.4s; 
    border-radius: 12px; text-transform: uppercase; letter-spacing: 1px; margin-top: 10px;
}
.tis-submit:hover { background: var(--orange); transform: translateY(-3px); box-shadow: 0 15px 30px rgba(238, 84, 33, 0.25); }

.consent-box { font-size: 13px; color: #64748b; line-height: 1.5; margin-top: 10px; display: flex; gap: 10px; }
.consent-box input { width: 18px; height: 18px; accent-color: var(--navy); margin-top: 2px; flex-shrink: 0; }

@media (max-width: 991px) {
    .tis-form-grid { grid-template-columns: 1fr; gap: 50px; }
    .tis-form-content { text-align: center; }
    .tis-points { justify-content: center; }
    .tis-form-card { padding: 30px; }
}

.tis-middle-story {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
}

/* --- 1. CHUẨN HÓA BENTO-HEADER (Áp dụng cho mọi H2) --- */
.bento-header {
    text-align: center;
    margin-bottom: 60px;
}

.bento-header .tag-sub {
    color: var(--orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    display: block;
    margin-bottom: 15px;
}

.bento-header h2 {
    font-size: 40px;
    font-weight: 900;
    color: var(--navy);
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
}

.bento-header .header-line {
    width: 80px;
    height: 5px;
    background: var(--orange);
    margin: 25px auto 0;
    border-radius: 10px;
}

/* --- 2. SECTION 2: INTRO FLEX (KHI CON SỐNG XA GIA ĐÌNH) --- */
.intro-flex {
    display: flex;
    align-items: center;
    gap: 80px;
}

.intro-text h2 { 
    margin-bottom: 30px; 
    line-height: 1.3;
}

.intro-img img {
    width: 100%;
    border-radius: 40px;
    box-shadow: 30px 30px 0px var(--soft-bg);
}

/* --- 3. SECTION 3: RESIDENCE GRID (VÌ SAO CHỌN TIS) --- */
.residence-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.res-item {
    background: #fff;
    padding: 45px 35px;
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: var(--transition-smooth);
}

.res-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 138, 0.1);
    border-color: var(--orange);
}

.res-item .res-icon {
    font-size: 45px;
    color: var(--orange);
    margin-bottom: 25px;
}

.res-item h4 {
    color: var(--navy);
    font-weight: 800;
    font-size: 19px;
    margin-bottom: 15px;
}

.res-item.highlight {
    background: var(--navy);
    color: #fff;
    border: none;
}

.res-item.highlight h4 { color: #fff; }
.res-item.highlight .res-icon { color: #ffce00; }

/* --- 4. SECTION 4: TIMELINE (MỘT NGÀY TẠI TIS) --- */
.timeline-container {
    max-width: 950px;
    margin: 0 auto;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.tis-custom-table {
    width: 100%;
    border-collapse: collapse;
}

.tis-custom-table th {
    background: var(--navy);
    color: #fff;
    padding: 25px;
    font-size: 18px;
    text-align: left;
}

.tis-custom-table td {
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
}

.time-col {
    font-weight: 900;
    color: var(--orange);
    font-size: 17px;
    width: 30%;
}

/* --- 5. SECTION 5: FACILITIES BENTO (CƠ SỞ VẬT CHẤT) --- */
.fac-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 20px;
}

.fac-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.fac-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.8s ease;
}

.fac-item:hover img { transform: scale(1.1); }

.fac-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,138,0.85) 0%, transparent 60%);
}

.fac-text {
    position: absolute;
    bottom: 25px; left: 25px;
    color: #fff; z-index: 2;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
}

/* Tùy chỉnh ô đặc biệt trong Grid */
.fac-item.lg-item { grid-column: span 2; grid-row: span 2; }
.fac-item.full-item { grid-column: span 2; }

/* --- 6. MOBILE RESPONSIVE (Dứt điểm lỗi chụm nội dung) --- */
@media (max-width: 1024px) {
    .intro-flex {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .residence-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fac-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
}

@media (max-width: 768px) {
    .bento-header h2 { font-size: 28px; }
    
    .residence-grid {
        grid-template-columns: 1fr;
    }

    .fac-bento-grid {
        grid-template-columns: 1fr;
    }

    .fac-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        height: 250px;
    }

    .tis-custom-table th, .tis-custom-table td {
        padding: 15px;
        font-size: 14px;
    }
}

/* --- TRẠNG THÁI SECTION CHUNG --- */
.sec-p { padding: 100px 0; }
@media (max-width: 768px) { .sec-p { padding: 60px 0; } }

/* --- SECTION FACILITY MODERN --- */
.facility-modern {
    overflow: hidden;
}

.fac-list {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 100px; /* Dãn cách lớn tạo sự sang trọng */
}

.fac-row {
    display: flex;
    align-items: center;
    gap: 80px;
}

.fac-row.reverse {
    flex-direction: row-reverse;
}

/* Phần Ảnh */
.fac-visual {
    flex: 1.2;
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    height: 450px;
}

.fac-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.fac-row:hover .fac-visual img {
    transform: scale(1.1);
}

/* Phần Chữ */
.fac-info {
    flex: 0.8;
}

.fac-number {
    font-size: 60px;
    font-weight: 900;
    color: rgba(0, 0, 138, 0.05); /* Số mờ làm nền nghệ thuật */
    display: block;
    line-height: 1;
    margin-bottom: -20px;
}

.fac-info h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--navy);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
}

.fac-info p {
    font-size: 17px;
    line-height: 1.7;
    color: #555;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 1024px) {
    .fac-row, .fac-row.reverse {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .fac-visual {
        height: 300px;
        width: 100%;
    }

    .fac-list {
        gap: 60px;
    }

    .fac-number {
        margin-bottom: 10px;
    }
}

/* --- SECTION 2: STORY INTRO --- */
.sec-story-intro {
    position: relative;
    overflow: hidden;
}

.story-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* Tỷ lệ vàng cho ảnh và chữ */
    gap: 80px;
    align-items: center;
}

/* Xử lý Hình ảnh */
.story-visual {
    position: relative;
    padding: 20px;
}

.image-stack {
    position: relative;
    z-index: 2;
}

.main-img {
    width: 100%;
    border-radius: 40px;
    display: block;
    box-shadow: 0 30px 60px rgba(0,0,138,0.15);
}

.accent-box {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: var(--soft-bg);
    border-radius: 30px;
    z-index: -1;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: 40px;
    background: var(--orange);
    color: #fff;
    padding: 25px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 30px rgba(238, 84, 33, 0.3);
    z-index: 3;
}

.experience-badge .num { font-size: 35px; font-weight: 900; line-height: 1; }
.experience-badge .txt { font-size: 13px; font-weight: 700; text-transform: uppercase; line-height: 1.2; }

/* Xử lý Nội dung */
.lead-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 25px;
    line-height: 1.5;
}

.story-inner-text p {
    font-size: 17px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Stats nhỏ */
.mini-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--navy);
    font-size: 15px;
}

.stat-item i { color: var(--orange); font-size: 18px; }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 1024px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .story-visual {
        order: 2; /* Ảnh xuống dưới cho chữ lên trên dễ đọc */
    }

    .story-content {
        order: 1;
        text-align: center;
    }

    .bento-header { text-align: center !important; }
    .bento-header .header-line { margin: 20px auto !important; }
    
    .mini-stats { justify-content: center; }
}
/* Khung chứa tổng quát */
.story-visual {
    position: relative;
    width: 100%;
    max-width: 600px; /* Hoặc kích thước tối đa bạn muốn */
    margin: 0 auto;
}

/* Kiểm soát hình ảnh không cho nhảy tràn khung */
.image-stack {
    position: relative;
    overflow: hidden;
    border-radius: 8px; /* Nếu bạn muốn bo góc nhẹ */
}

.image-stack img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Giữ tỷ lệ ảnh đẹp trong khung */
}

/* Định vị Badge (25+ năm) để không bị đè lên ảnh */
.experience-badge {
    position: absolute;
    bottom: 20px;
    right: -20px; /* Chỉnh lại tùy theo thiết kế của bạn */
    background: #c02026; /* Màu đỏ thương hiệu TIS */
    color: #fff;
    padding: 15px;
    z-index: 2;
}