
    :root {

      --ueh-primary: rgb(0, 75, 65); 

      --ueh-primary-light: rgba(0, 75, 65, 0.1);

      --ueh-accent: #f26f33; 

      --ueh-accent-hover: #bc8a5f;

      --ueh-gold: #fff;

      --bg: #f8faf9;

      --surface: #ffffff;

      --text: #1a2e2a;

      --muted: #5c716e;

      --radius: 16px;

      --radius-sm: 12px;

      --shadow-sm: 0 6px 18px rgba(0,0,0,.04);

      --shadow-md: 0 14px 38px rgba(0,40,30,.08);
      --ueh-gold: #c5a059; /* Màu vàng đặc trưng UEH nếu bạn chưa định nghĩa */

      --max-width: 1320px;

    }



    * { box-sizing: border-box; }

    body {

      font-family: 'Montserrat', sans-serif;

      background: var(--bg);

      color: var(--text);

      scroll-behavior: smooth;

    }



    .custom-container { max-width: var(--max-width); margin: 0 auto; width: 100%; display: flex; align-items: center; }

    .section { padding: 88px 0; }

    .section-header h2 { color: var(--ueh-primary); letter-spacing: .5px; }

    .section-header p { color: var(--muted); margin-bottom: 0; }



    .navbar {

      background: rgba(0, 75, 65, 0.95) !important;

      backdrop-filter: blur(12px);

      padding: 12px 0;

      border-bottom: 2px solid var(--ueh-accent);

    }

    .navbar-brand img { height: 55px; filter: brightness(0) invert(1); }

    .nav-link {

      color: rgba(255,255,255,.9) !important;

      font-size: 0.95rem; font-weight: 700;

      text-transform: uppercase; letter-spacing: .6px;

      padding: 10px 16px !important; transition: .3s ease;

    }

    .nav-link:hover { color: var(--ueh-gold) !important; }



    @media (min-width: 992px) {

      .nav-item.dropdown:hover .dropdown-menu { display: block; margin-top: 0; animation: fadeIn .22s ease; }

    }



    .dropdown-menu { background: #fff; border: none; border-radius: 12px; box-shadow: var(--shadow-md); padding: 10px; }

    .dropdown-item { color: var(--ueh-primary); text-transform: uppercase; font-weight: 700; font-size: .8rem; border-radius: 8px; padding: 10px 15px; }

    .dropdown-item:hover { background: var(--ueh-primary-light); color: var(--ueh-primary); }



    .lang-pill { border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 0.8rem; cursor: pointer; }

    .lang-pill.is-active { background: var(--ueh-accent); color: #fff; }

    .lang-pill.is-ghost { border: 1px solid rgba(255,255,255,.4); color: #fff; }



    .hero-section { position: relative; height: 80vh; min-height: 560px;  background-size: cover; display: flex; align-items: center; justify-content: center; }



    .hero-content { position: relative; z-index: 2; text-align: center; color: #fff; }

    .hero-title { font-family: 'Oswald', sans-serif; font-size: clamp(3rem, 8vw, 6.5rem); font-weight: 700; line-height: 0.9; }

    

    .hero-sub { font-size: 1.2rem; letter-spacing: 5px; margin-top: 20px; color: var(--ueh-gold); font-weight: 600; text-transform: uppercase; }

    


.hero-section { 

    position: relative; 

    height: 80vh; 

    min-height: 560px; 

    display: flex; 

    align-items: center; 

    justify-content: center; 

    overflow: hidden; /* Quan trọng để video không tràn ra ngoài */

    background: #000; /* Màu nền dự phòng khi video đang tải */

}



/* Kỹ thuật đảm bảo video không biến dạng */

.hero-video {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    object-fit: cover; /* Giúp video giữ đúng tỷ lệ và lấp đầy khung hình giống background-size: cover */

    z-index: 0;

}



.hero-overlay { 

    position: absolute; 

    inset: 0; 



    z-index: 1; /* Nằm trên video */

}



.hero-content { 

    position: relative; 

    z-index: 2; /* Nằm trên cả overlay */

    text-align: center; 

    color: #fff; 

}



.hero-title { 

    font-family: 'Oswald', sans-serif; 

    font-size: clamp(3rem, 8vw, 6.5rem); 

    font-weight: 700; 

    line-height: 0.9; 

}



.hero-sub { 

    font-size: 1.2rem; 

    letter-spacing: 5px; 

    margin-top: 20px; 

    color: var(--ueh-gold); 

    font-weight: 600; 

    text-transform: uppercase; 

}    

    .btn-ueh { border-radius: 999px; padding: 14px 32px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; transition: .3s; }

    .btn-ueh-primary { background: var(--ueh-accent); color: #fff; border: none; }

    .btn-ueh-primary:hover { background: var(--ueh-accent-hover); transform: translateY(-3px); color: #fff; }

    .btn-ueh-ghost { background: rgba(255,255,255,0.1); border: 2px solid #fff; color: #fff; backdrop-filter: blur(5px); }

    .btn-ueh-ghost:hover { background: #fff; color: var(--ueh-primary); }



    .ui-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: .3s ease; border: 1px solid rgba(0,75,65,.05); }

    .ui-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }



    .news-section { padding: 90px 0; }

    .featured-news-card { position: relative; border-radius: 20px; overflow: hidden; height: 480px; margin-bottom: 40px; }

    .featured-overlay { position: absolute; inset: auto 0 0 0; padding: 40px; background: linear-gradient(transparent, rgba(0,40,30,0.95)); color: #fff; }

    .news-category { color: var(--ueh-accent); font-weight: 800; font-size: .75rem; text-transform: uppercase; margin-bottom: 8px; }

    .news-title { font-weight: 700; color: var(--ueh-primary); }



    .events-section { padding: 60px 0; background: #fff; }

    .section-title { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 2rem; color: var(--ueh-primary); text-transform: uppercase; margin-bottom: 10px; }

    .event-card { border: 1px solid #eee; border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform 0.3s ease; background: #fff; box-shadow: var(--shadow-sm); }

    .event-card:hover { transform: translateY(-5px); }

    .event-img-wrapper { position: relative; width: 100%; aspect-ratio: 16/10; }

    .event-img { width: 100%; height: 100%; object-fit: cover; }

    .event-body { padding: 20px; flex-grow: 1; }

    .event-title { font-weight: 700; font-size: 1rem; line-height: 1.4; margin-bottom: 12px; color: #333; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

    .event-excerpt { font-size: 0.85rem; color: #666; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

    .sdg-icons { display: flex; gap: 5px; margin-bottom: 15px; }

    .sdg-icon { width: 30px; height: 30px; border-radius: 4px; }

    .event-footer { padding: 12px 20px; background: #fdfdfd; border-top: 1px solid #eee; font-size: 0.85rem; font-weight: 600; color: #444; }

    .event-footer span { font-weight: 800; }

    .btn-view-more { background: var(--ueh-accent); color: #fff; font-weight: 700; padding: 10px 40px; border-radius: 8px; border: none; text-transform: uppercase; margin-top: 40px; transition: 0.3s; }

    .btn-view-more:hover { background: #d65a15; color: #fff; transform: scale(1.05); }



    .training-section { padding: 80px 0; }

    .training-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }

    .training-left-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

    .training-item { position: relative; border-radius: 12px; overflow: hidden; height: 280px; cursor: pointer; }

    .training-item img { width: 100%; max-height: 580px; object-fit: cover; transition: 0.5s ease; }

    .training-item:hover img { transform: scale(1.1); }

    .training-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 29, 61, 0.8) 0%, rgba(0, 29, 61, 0.2) 50%, transparent 100%); display: flex; align-items: flex-end; padding: 20px; transition: 0.3s; }

    .training-label { color: #fff; font-weight: 800; font-size: 0.9rem; text-transform: uppercase; display: flex; align-items: center; justify-content: space-between; width: 100%; }

    .training-icon-arrow { width: 32px; height: 32px; border: 1px solid rgba(255,255,255,0.5); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }

    .training-item.tall { height: 100%; }



    .research-section { padding: 80px 0; background: #fff; }

    .research-card { border: 1px solid #eee; border-radius: 12px; overflow: hidden; transition: 0.3s ease; background: #fff; display: flex; flex-direction: column; }

    .research-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }

    .research-header { padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; background: #fdfdfd; }

    .research-header span { font-weight: 800; font-size: 0.85rem; color: var(--ueh-primary); text-transform: uppercase; }

    .research-arrow { width: 24px; height: 24px; border: 1px solid var(--ueh-accent); color: var(--ueh-accent); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; transition: 0.3s; }

    .research-card:hover .research-arrow { background: var(--ueh-accent); color: #fff; }

    .research-img-wrapper { width: 100%; aspect-ratio: 16/10; overflow: hidden; }

    .research-img { width: 100%; height: 100%; object-fit: cover; }



    .counter-section { padding: 100px 0; background: #fff; border-top: 1px solid #eee; }

    .counter-number { color: var(--ueh-primary); font-size: 3.5rem; font-weight: 800; font-family: 'Oswald'; }



    .CELG-footer { background: var(--ueh-primary); color: #e0eadd; padding: 60px 0 20px; }

    .CELG-footer .newsletter-title { color: var(--ueh-gold); }

    .CELG-footer .newsletter { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 50px; }

    .CELG-footer .newsletter button { background: var(--ueh-accent); border-radius: 50px; margin: 4px; }

    .footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; font-size: 0.8rem; opacity: 0.7; }



    #scrollTopBtn { position: fixed; bottom: 30px; right: 30px; background: var(--ueh-accent); width: 50px; height: 50px; border-radius: 50%; border: none; color: #fff; z-index: 999; display: none; }



    @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }


/* Community & Cooperation Section */

.community-section { padding: 60px 0; }

    

    .community-card {

        background: #fff;

        border: 1px solid #eee;

        border-radius: 15px;

        padding: 30px 20px;

        text-align: center;

        transition: all 0.3s ease;

        height: 100%;

        position: relative;

    }



    /* Hiệu ứng nâng card và đổi màu viền khi hover */

    .community-card:hover {

        transform: translateY(-10px);

        box-shadow: 0 15px 30px rgba(0, 95, 105, 0.1);

        border-color: var(--primary-orange);

    }



    .icon-box {

        width: 70px;

        height: 70px;

        background: var(--bg-light);

        color: var(--primary-teal); /* Màu gốc là Teal */

        border-radius: 50%;

        display: flex;

        align-items: center;

        justify-content: center;

        margin: 0 auto 20px;

        font-size: 1.8rem;

        transition: all 0.3s ease; /* Chuyển màu mượt */

    }



    /* Khi hover vào card, icon chuyển sang màu CAM */

    .community-card:hover .icon-box {

        background: var(--primary-orange);

        color: #f26f33;

        transform: rotateY(360deg); /* Thêm hiệu ứng xoay nhẹ cho sinh động */

    }



    .community-card h4 {

        color: var(--primary-teal);

        font-size: 1.1rem;

        font-weight: 700;

        margin-bottom: 12px;

    }



    .community-card p {

        font-size: 0.9rem;

        color: #666;

        line-height: 1.5;

    }



    .btn-link-custom {

        font-size: 0.8rem;

        font-weight: 700;

        color: var(--primary-orange);

        text-decoration: none;

        text-transform: uppercase;

    }



/* Highlight Section */

:root {

        --primary-teal: #005f69;

        --primary-orange: #f26f33;

        --text-dark: #203335;

    }



    .highlight-section {

        padding: 80px 0;

        background-color: #ffffff; /* Ép về nền trắng */

    }



    .highlight-card {

        position: relative;

        border-radius: 15px;

        height: 300px;

        border: 2px solid #eee;

        background: #ffffff;

        display: flex;

        flex-direction: column;

        justify-content: center;

        padding: 30px;

        transition: all 0.3s ease;

        text-align: center;

    }



    /* Hiệu ứng khi hover: Đổi màu nền sang Teal và chữ trắng */

    .highlight-card:hover {

        transform: translateY(-10px);

        background-color: var(--primary-teal);

        border-color: var(--primary-teal);

        box-shadow: 0 15px 30px rgba(0, 95, 105, 0.15);

    }



    .highlight-category {

        font-size: 0.8rem;

        font-weight: 700;

        text-transform: uppercase;

        color: var(--primary-orange);

        margin-bottom: 15px;

        letter-spacing: 1px;

    }



    .highlight-card h4 {

        font-weight: 800;

        color: var(--primary-teal);

        margin-bottom: 15px;

        transition: 0.3s;

    }



    .highlight-card p {

        color: #666;

        font-size: 0.95rem;

        transition: 0.3s;

    }



    /* Đổi màu chữ khi hover vào card */

    .highlight-card:hover h4, 

    .highlight-card:hover p {

        color: #ffffff;

    }



    .highlight-card:hover .highlight-category {

        color: #ffccbc;

    }

.highlight-card:hover .bicon{

        color: #fff !important;

    }



    .btn-outline-custom {

        margin-top: 20px;

        display: inline-block;

        padding: 8px 25px;

        border: 2px solid var(--primary-teal);

        color: var(--primary-teal);

        text-decoration: none;

        border-radius: 25px;

        font-weight: 600;

        transition: 0.3s;

    }



    .highlight-card:hover .btn-outline-custom {

        border-color: #ffffff;

        color: #ffffff;

    }

/* 1. Ép chiều cao Card bằng nhau */

    .event-card {

        height: 100%;

        display: flex;

        flex-direction: column; /* Xếp nội dung theo chiều dọc */

        border: 1px solid #eee;

        border-radius: 16px; /* Bo góc như cũ */

        overflow: hidden;

        transition: transform 0.3s ease;

        background: #fff;

        box-shadow: 0 6px 18px rgba(0,0,0,.04);

    }



    /* 2. Cố định khung ảnh (Tỉ lệ 16:9 hoặc chiều cao cố định) */

    .event-img-wrapper {

        position: relative;

        width: 100%;

        height: 200px; /* Chiều cao cố định cho ảnh */

        overflow: hidden;

    }



    /* 3. Cắt ảnh cho vừa khung (Quan trọng nhất) */

    .event-img {

        width: 100%;

        height: 100%;

        object-fit: cover; /* Ảnh sẽ tự crop để lấp đầy khung 200px, không bị méo */

        object-position: center; /* Lấy trung tâm ảnh */

        transition: transform 0.5s ease;

    }



    /* Hiệu ứng zoom khi hover */

    .event-card:hover .event-img {

        transform: scale(1.1);

    }



    /* 4. Đẩy Footer xuống đáy để thẳng hàng */

    .event-body {

        padding: 20px;

        flex-grow: 1; /* Phần này sẽ giãn ra để đẩy footer xuống dưới cùng */

        display: flex;

        flex-direction: column;

    }



    /* 5. Giới hạn số dòng tiêu đề (tránh cái 1 dòng, cái 3 dòng) */

    .event-title {

        font-weight: 700;

        font-size: 1rem;

        line-height: 1.4;

        margin-bottom: 12px;

        color: #333;

        

        /* Cắt chữ sau 2 dòng */

        display: -webkit-box;

        -webkit-line-clamp: 2;

        -webkit-box-orient: vertical;

        overflow: hidden;

        text-overflow: ellipsis;

        height: 2.8em; /* Đảm bảo chiều cao cố định ngay cả khi chỉ có 1 dòng */

    }



    /* 6. Giới hạn mô tả */

    .event-excerpt {

        font-size: 0.85rem;

        color: #666;

        margin-bottom: 15px;

        

        /* Cắt chữ sau 3 dòng */

        display: -webkit-box;

        -webkit-line-clamp: 3;

        -webkit-box-orient: vertical;

        overflow: hidden;

    }



    /* 7. Đẩy icons xuống dưới cùng của body */

    .sdg-icons {

        margin-top: auto; 

    }

/* Style cho khung Tóm tắt (Excerpt) */

    .post-excerpt-box {

        background-color: #f8f9fa;       /* Nền màu xám nhẹ */

        border: 1px solid #e9ecef;       /* Viền mỏng bao quanh */

        border-left: 5px solid var(--ueh-primary, #005f69); /* Viền trái đậm làm điểm nhấn */

        padding: 20px 25px;              /* Khoảng cách nội dung */

        border-radius: 6px;              /* Bo góc nhẹ */

        font-style: italic;              /* Chữ in nghiêng */

        color: #495057;                  /* Màu chữ xám đậm */

        font-size: 1rem;              /* Chữ to hơn nội dung thường một chút */

        font-weight: 500;

        margin-bottom: 30px;             /* Cách nội dung chính ra */

        box-shadow: 0 2px 8px rgba(0,0,0,0.03); /* Đổ bóng rất nhẹ */

    }




/* CSS chung cho hình ảnh (PC & Mobile) */

.training-item {

    position: relative; /* Để làm mốc cho hình ảnh tuyệt đối bên trong */

    overflow: hidden;   /* Cắt bỏ phần thừa của ảnh */

    border-radius: 15px; /* Bo góc nếu cần */

    display: block;     /* Đảm bảo thẻ a hoặc div hiển thị khối */

}



.training-item img {

    position: absolute; /* Tách khỏi luồng để phủ lên trên */

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;  /* KEY: Cắt ảnh để lấp đầy khung mà không méo */

    object-position: center; /* Canh giữa ảnh */

    z-index: 0; /* Nằm dưới nội dung text */

    transition: transform 0.5s ease;

}



/* MOBILE SPECIFIC: Thiết lập chiều cao cố định hoặc tỉ lệ khung hình */

@media (max-width: 767.98px) {

    .training-item {

        /* Cách 1: Dùng tỉ lệ khung hình (Recommended) */

        aspect-ratio: 3/4; /* Chiều rộng 3, chiều cao 4 -> Hình chữ nhật đứng */

        width: 100%;

        

        /* Cách 2: Hoặc dùng chiều cao cố định nếu muốn đều tăm tắp */

        /* height: 350px; */ 

    }

}