@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --navy: #00008A;
    --orange: #ee5421;
    --soft-bg: #f8fafc; /* Khai báo bổ sung */
    --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 - GIẢI QUYẾT DỨT ĐIỂM LỖI ĐÈ ẢNH
   ========================================================================== */
@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 tập trung cực mạnh ở đỉnh để bảo vệ chữ */
    .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); }
}

.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; }

.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; }



/* --- SECTION GENERAL --- */
.us-highschool .header-desc {
    max-width: 800px;
    margin: 20px auto;
}

/* --- BENTO GRID SYSTEM --- */
.bento-grid-us {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(250px, auto);
    gap: 20px;
    justify-content: center;
}

/* Helper Classes cho Grid */
.bento-grid-us .span-2 { 
grid-column: span 2;
justify-content: center;
}

/* --- CARD BASE STYLES --- */
.bento-card {
    padding: 40px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 138, 0.1);
}

.bento-card .card-title {
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* --- COLOR VARIANTS --- */
.bg-navy { background-color: var(--navy); color: #ffffff; }
.bg-orange { background-color: var(--orange); color: #ffffff; }
.bg-white { background-color: #ffffff; }
.border-light { border-color: #eeeeee; }
.text-orange { color: var(--orange) !important; }

/* --- SPECIFIC ELEMENTS --- */
.accreditation-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 0.85rem;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.9;
}

/* --- IMAGE CARD WITH OVERLAY --- */
.bento-bg-highschool {
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 0 !important; /* Ghi đè padding mặc định để content nằm sát dưới */
    overflow: hidden;
    display: flex !important;
    align-items: flex-end;
}

/* Tạo lớp phủ tối để chữ trắng nổi bật */
.bento-bg-highschool::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 10%, transparent 70%);
    z-index: 1;
}

.card-overlay-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    width: 100%;
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .bento-grid-us { grid-template-columns: 1fr 1fr; }
    .bento-grid-us .span-2 { grid-column: span 2; }
}

@media (max-width: 767px) {
    .bento-grid-us { grid-template-columns: 1fr; }
    .bento-grid-us .span-2 { grid-column: span 1; }
    .bento-card { padding: 30px 20px; }
    .accreditation-list { grid-template-columns: 1fr; }
}
/* --- PARTNER SECTION --- */
.partner-box {
    display: flex;
    align-items: center;
    gap: 60px;
    background: #f0f4f8;
    padding: 50px; /* Tăng padding để cân đối hơn */
    border-radius: 40px;
}

.partner-info {
    flex: 1.2;
}

.partner-info p {
    margin: 20px 0;
    line-height: 1.6;
    color: #4a5568;
}

.partner-link {
    color: var(--orange);
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

.partner-link:hover {
    transform: translateX(5px);
}

/* --- MEDIA & LOGO BADGE --- */
.partner-media {
    flex: 1;
}

.main-image-wrapper {
    position: relative;
}

.main-img {
    width: 100%;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: block;
}

.partner-logo-badge {
    position: absolute;
    top: -25px; /* Điều chỉnh để nổi lên trên ảnh */
    right: -25px;
    background: #ffffff;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    width: 90px; /* Cố định kích thước khung tròn */
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.partner-logo-badge img {
    width: 60px; /* Kích thước logo bên trong */
    height: auto;
    object-fit: contain;
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .partner-box {
        flex-direction: column; /* Xếp chồng trên tablet/mobile */
        gap: 40px;
        padding: 40px 30px;
        text-align: center;
    }

    .partner-logo-badge {
        right: 20px; /* Chỉnh lại vị trí trên mobile để không bị tràn màn hình */
        width: 70px;
        height: 70px;
    }
    
    .partner-logo-badge img {
        width: 45px;
    }
}

@media (max-width: 600px) {
    .partner-box {
        padding: 30px 20px;
        border-radius: 30px;
    }
    
    .partner-info h2 {
        font-size: 1.5rem;
    }
}
/* --- CURRICULUM SECTION --- */
.curriculum-section .bento-header {
    margin-bottom: 50px;
}

/* Ribbon hiệu ứng chuyên nghiệp */
.outcome-ribbon {
    margin: 30px auto;
    max-width: fit-content; /* Tự động co theo độ dài chữ */
    background: var(--navy);
    color: #ffffff;
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 138, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- GRID HỆ THỐNG --- */
.cur-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.cur-item {
    background: #ffffff;
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
}

.cur-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 138, 0.08);
}

.cur-content {
    padding: 40px 30px;
}

.cur-content h4 {
    margin-bottom: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    justify-content: center;
    color: var(--orange);
}

.cur-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #5a6b80;
    margin: 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .cur-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cột cho tablet */
    }
}

@media (max-width: 767px) {
    .cur-grid {
        grid-template-columns: 1fr; /* 1 cột cho mobile */
        gap: 20px;
    }

    .outcome-ribbon {
        font-size: 0.9rem;
        padding: 10px 20px;
        width: 100%; /* Tràn ngang trên mobile cho dễ đọc */
        border-radius: 15px;
    }

    .cur-content {
        padding: 30px 25px;
    }
}
/* --- OUTCOME SECTION --- */
.outcome-ribbon-wrapper {
    display: flex;
    align-items: center;
    background: var(--navy);
    border-radius: 100px;
    padding: 25px 50px;
    margin: 50px auto;
    max-width: 900px;
}

.outcome-label {
    color: var(--orange);
    font-weight: 900;
    margin-right: 40px;
    white-space: nowrap;
    font-size: 1.2rem;
}

.outcome-items {
    display: flex;
    flex: 1;
    justify-content: space-around;
    align-items: center;
}

.outcome-node {
    color: #ffffff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.outcome-node i {
    color: var(--orange);
    font-size: 1.4rem;
}

.outcome-footer-text {
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* --- FACILITY BENTO GRID --- */
.fac-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 20px;
}

.fac-item {
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    background: #e2e8f0;
}

.fac-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fac-item:hover img {
    transform: scale(1.1);
}

.fac-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
}

.fac-caption {
    position: absolute;
    bottom: 25px;
    left: 25px;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.1rem;
    z-index: 2;
    text-transform: uppercase;
}

/* Grid Spanning Classes */
.row-span-2 { grid-row: span 2; }
.col-span-2 { grid-column: span 2; }

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .outcome-ribbon-wrapper {
        flex-direction: column;
        border-radius: 30px;
        padding: 30px;
        gap: 20px;
    }
    
    .outcome-label { margin-right: 0; }
    
    .fac-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .fac-item { height: 250px; }
    .row-span-2 { grid-row: auto; grid-column: span 2; }
}

@media (max-width: 767px) {
    .outcome-items {
        flex-direction: column;
        gap: 15px;
    }
    
    .fac-bento-grid { grid-template-columns: 1fr; }
    .fac-item, .col-span-2, .row-span-2 { grid-column: span 1; }
}
/* --- HỆ THỐNG KHOẢNG CÁCH SECTION --- */
:root {
    /* Định nghĩa khoảng cách mặc định (thay đổi số này để giãn toàn bộ web) */
    --section-padding: 80px; 
    --section-padding-mobile: 50px;
}

.sec-p {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
    position: relative;
    display: block;
    width: 100%;
    clear: both; /* Đảm bảo không bị lỗi float */
}

/* Các section có nền xám/phụ trợ thường cần phân tách rõ ràng hơn */
.bg-light {
    background-color: #f8fafc !important;
}

/* Tối ưu cho Mobile: Giảm khoảng cách để không bị quá trống trên màn hình nhỏ */
@media (max-width: 767px) {
    .sec-p {
        padding-top: var(--section-padding-mobile);
        padding-bottom: var(--section-padding-mobile);
    }
}