@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;
}

/* ==========================================================================
   DESKTOP STYLING (1920 x 800)
   ========================================================================== */
.hero-full {
    position: relative;
    width: 100%;
    height: 800px; /* Chiều cao cố định cho Desktop */
    display: flex;
    align-items: center;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
    
    /* Sử dụng biến hình ảnh được truyền từ file PHP */
    background-image: var(--bg-desktop);
    background-size: cover;
    background-position: center;
}

/* Lớp phủ gradient cho Desktop: Chỉ che phủ 1/3 bên trái */
.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; 
}

/* Nội dung văn bản chiếm 1/3 chiều rộng bên trái */
.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);
}

/* ==========================================================================
   MOBILE ADAPTATION 
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-full {
        height: auto;
        min-height: 100vh; 
        aspect-ratio: 1080 / 1920; 
        display: block; /* Hủy flexbox để dùng absolute cho con */
        
        background-image: var(--bg-mobile) !important;
        background-position: center top; 
    }

    /* Gradient ở đỉnh */
    .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; /* Khóa vị trí cách đỉnh 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); /* Thêm bóng để chữ nổi bật hơn */
    }
    
    .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); /* Làm badge đậm hơn để nổi bật */
    }
}

/* Hiệu ứng xuất hiện */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   FORM ĐĂNG KÝ
   ========================================================================== */

.tis-form-section { padding: 100px 0; background: var(--soft-bg); font-family: 'Plus Jakarta Sans', sans-serif; position: relative; }

/* Decor nghệ thuật cho mầm non */
.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; }

/* LEFT CONTENT - Emotional Branding */
.tis-form-content .tag { 
    background: var(--navy); 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; 
}

/* RIGHT FORM CARD - Modern Clean */
.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; }
}

  .nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1.5px solid var(--navy);
    background: transparent;
    color: var(--navy);
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- BIẾN MÀU CHỦ ĐẠO (ĐỂ DỄ QUẢN LÝ) --- */
:root {
    --navy: #000080;
    --orange: #FF6600;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.4s ease;
}

/* --- TỔNG THỂ SECTION --- */
.sec-p {
    padding: 80px 0;
    overflow: hidden;
}

.bg-light {
    background-color: var(--light-bg);
}

.text-navy { color: var(--navy); }
.tag-sub {
    color: var(--orange);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

/* --- 1. EXPANDING CARDS (SECTION 1) --- */
.expanding-wrapper {
    display: flex;
    gap: 15px;
    width: 100%;
    margin-top: 40px;
}

.expanding-card {
    position: relative;
    height: 450px;
    flex: 1;
    border-radius: 30px;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.7s cubic-bezier(0.05, 0.6, 0.4, 0.9);
}

.expanding-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expanding-card.active {
    flex: 5;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,128,0.9));
    color: white;
}

/* --- 2. CHƯƠNG TRÌNH HỌC & OUTCOME (SECTION 2) --- */
.cur-item {
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cur-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,128,0.1);
}

.cur-content {
    padding: 35px 30px; /* Dãn rộng nội dung theo ý bạn */
    flex-grow: 1;
}

/* Outcome Ribbon - Dãn đều 2 đầu */
.outcome-ribbon {
    display: flex;
    align-items: center;
    background: var(--navy);
    border-radius: 100px;
    padding: 20px 45px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.outcome-items {
    display: flex;
    flex: 1;
    justify-content: space-around; /* Dàn đều 2 item ra không gian trống */
    align-items: center;
}

/* --- 3. TIMELINE MỘT NGÀY TẠI TIS (SECTION 4) --- */
.timeline-item {
    transition: var(--transition);
    border: 1px solid transparent;
}

.timeline-item:hover {
    border-color: var(--orange);
    transform: scale(1.02);
}

.time-box {
    white-space: nowrap;
}

/* --- 4. BENTO GRID CHĂM SÓC (SECTION 5) --- */
.bento-item {
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-item:hover {
    transform: scale(1.03);
    z-index: 5;
}

/* --- 5. CƠ SỞ VẬT CHẤT (SECTION 6) --- */
.fac-item {
    cursor: pointer;
}

.fac-item img {
    transition: transform 0.8s ease;
}

.fac-item:hover img {
    transform: scale(1.15);
}

.fac-label {
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.fac-item:hover .fac-label {
    background: var(--orange) !important;
    padding-left: 30px;
}

/* --- RESPONSIVE (CHO TABLET & MOBILE) --- */
@media (max-width: 991px) {
    .expanding-wrapper {
        flex-direction: column;
        height: auto;
    }
    .expanding-card {
        height: 200px;
        width: 100%;
    }
    .outcome-ribbon {
        flex-direction: column;
        border-radius: 25px;
        padding: 25px;
        gap: 20px;
    }
    .outcome-items {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    .bento-grid {
        grid-template-columns: 1fr !important;
    }
    .bento-item {
        grid-column: span 1 !important;
    }
}

@media (max-width: 768px) {
    .sec-p { padding: 50px 0; }
    .cur-content { padding: 25px 20px; }
    .timeline-item {
        flex-direction: column;
        text-align: center;
        border-radius: 20px;
        padding: 25px;
    }
    .line-divider {
        width: 40px !important;
        height: 2px !important;
        margin: 15px auto !important;
    }
}
.bento-header h2.text-navy::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: var(--orange);
    margin: 20px auto 0;
    border-radius: 2px;
}
 
.tag-sub { color:#ee5421; font-weight:700; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 10px; }
.text-navy { font-weight:900; font-size: 36px; color: #00008A; }
.header-line { width: 60px; height: 3px; background: #ee5421; margin: 20px auto; }

.fac-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Chia 3 cột đều */
    grid-template-rows: 300px 300px; /* 2 hàng, mỗi hàng 300px */
    gap: 20px;
    width: 100%;
}

.fac-item {
    position: relative;
    border-radius: 25px; /* Bo góc sâu hiện đại */
    overflow: hidden;
    background: #eee;
}

/* Ô LỚN: Chiếm 2 hàng chiều dọc */
.fac-item.large-item {
    grid-row: span 2;
    grid-column: span 1;
}

/* Ô DÀI: Chiếm 2 cột chiều ngang */
.fac-item.wide-item {
    grid-column: span 2;
}

.fac-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Overlay thiết kế tinh tế: Chỉ hiện rõ khi hover hoặc mờ nhẹ */
.fac-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,128,0.9) 0%, transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: #fff;
    transition: all 0.4s ease;
}

.fac-overlay h4 {
    margin: 0;
    font-weight: 800;
    color: var(--orange); /* Màu cam thương hiệu */
    text-transform: uppercase;
    font-size: 1.2rem;
}

.fac-overlay p {
    margin: 10px 0 0;
    font-size: 0.9rem;
    opacity: 0; /* Mặc định ẩn mô tả */
    transform: translateY(20px);
    transition: all 0.4s ease;
}

/* Hiệu ứng Hover chuyên nghiệp */
.fac-item:hover img {
    transform: scale(1.1);
}

.fac-item:hover .fac-overlay p {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive cho Mobile/Tablet */
@media (max-width: 991px) {
    .fac-bento-grid {
        grid-template-columns: 1fr 1fr; /* Còn 2 cột */
        grid-template-rows: auto;
    }
    .fac-item.large-item, .fac-item.wide-item {
        grid-column: span 2; /* Full chiều rộng trên mobile */
        height: 300px;
    }
}