/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 1.0.0
*/
/* BIẾN MÀU */
:root {
    --ezd-blue: #1c449c;
    --ezd-light: #179bd7; /* Thêm màu xanh nhạt cho hiệu ứng */
}

/* PHÁ XÍCH OVERFLOW ĐỂ STICKY HOẠT ĐỘNG TRÊN SAMSUNG */
html, body {
    overflow-x: visible !important;
}

/* 1. THANH MENU (NỀN TRẮNG NHƯ ÔNG MUỐN) */
.ezd-header-sticky {
    background-color: #F5F5F5 !important;
    width: 100% !important;
    min-height: 50px; 
    position: -webkit-sticky !important; 
    position: sticky !important;
    top: 0 !important;
    z-index: 999999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ezd-nav-wrapper {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: flex-end !important; 
    align-items: center !important;
    height: 50px !important;
    padding: 0 20px;
}

/* 2. MENU DESKTOP (CHỮ XANH) */
.ezd-menu-ul {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 10px;
}

.ezd-menu-ul li { position: relative !important; }

.ezd-menu-ul li a {
    color: var(--ezd-blue) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    padding: 1px 20px;
    display: block;
    font-size: 15px;
    white-space: nowrap;
    transition: all 0.3s ease; /* HIỆU ỨNG CHUYỂN MÀU MƯỢT MÀ */
}

/* HIỆU ỨNG HOVER CẤP 1 */
.ezd-menu-ul li a:hover {
    color: var(--ezd-light) !important;
    background-color: rgba(23, 155, 213, 0.4); /* Nền xanh cực nhạt khi hover */
}

/* 3. SUB-MENU DESKTOP (HIỆN KHI HOVER) */
.ezd-menu-ul .sub-menu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background-color: #ffffff !important;
    min-width: 230px !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    list-style: none !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    border-top: 2px solid var(--ezd-blue); /* Thêm vạch xanh trên đầu cho sang */
}

.ezd-menu-ul li:hover > .sub-menu { display: block !important; }

.ezd-menu-ul .sub-menu li a {
    padding: 10px 20px !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s ease;
}

/* HIỆU ỨNG HOVER TRONG MENU CON */
.ezd-menu-ul .sub-menu li a:hover {
    background-color: #f8fbff !important;
    color: var(--ezd-blue) !important;
    padding-left: 25px !important; /* Chữ hơi nhích sang phải khi di chuột */
}

/* 4. ĐẶC TRỊ NÚT HAMBURGER */
@media (min-width: 992px) {
    .ezd-hamburger-btn { display: none !important; }
}

@media (max-width: 991px) {
    .ezd-hamburger-btn {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        background: transparent !important;
        border: none !important;
        padding: 10px;
        z-index: 999999;
    }

    .ezd-hamburger-btn span {
        display: block !important;
        width: 25px; height: 3px;
        background-color: var(--ezd-blue) !important; 
        border-radius: 2px;
    }

    /* 5. MENU MOBILE - HIỆN TẤT CẢ VÀ CHO PHÉP VUỐT */
    .ezd-menu-ul {
        display: none !important;
        position: fixed !important;
        top: 0; left: -100%;
        width: 280px; 
        height: 100vh !important;
        background: #ffffff !important;
        flex-direction: column !important;
        padding: 0 0 80px 0 !important;
        overflow-y: auto !important; 
        -webkit-overflow-scrolling: touch;
        transition: 0.3s ease;
    }

    .ezd-menu-ul.ezd-show { display: flex !important; left: 0 !important; }

    .ezd-menu-ul .sub-menu {
        display: block !important;
        position: static !important;
        background: #fdfdfd !important;
        box-shadow: none !important;
        padding-left: 20px !important;
        border: none !important;
    }

    .ezd-menu-ul .sub-menu li a {
        color: #666 !important;
        font-weight: 400 !important;
    }
}

/* 6. TUYỆT ĐỐI ẨN DẤU X TRÊN MÁY TÍNH */
@media (min-width: 992px) {
    .ezd-close-menu, 
    li.ezd-close-menu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }
}

/* 7. HIỆN VÀ ĐỊNH DẠNG DẤU X TRÊN MOBILE */
@media (max-width: 991px) {
    .ezd-close-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        text-align: right;
        padding: 10px 20px !important;
        font-size: 35px !important;
        color: var(--ezd-blue) !important;
        cursor: pointer;
        background: #ffffff;
        border-bottom: 1px solid #eee;
        list-style: none !important;
    }
}
/* hết menu */

header#site-header, .elementor-location-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
}



body {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    margin: 0; /* Xóa margin body để chống tràn */
    padding: 0; /* Xóa padding body */
    word-wrap: break-word;
    overflow-x: hidden; /* Thêm dòng này để chặn mọi nguy cơ tràn ngang */
}

/* Căn lề cho đoạn văn trong bài viết */
p {
    margin-bottom: 1.5em; /* Khoảng cách giữa các đoạn */
    text-align: left; /* Căn đều 2 bên cho chuyên nghiệp */
}
h1, h2, h3, h4, h5, h6 {
    color: #1c449c; /* Màu xanh đậm thương hiệu của ông */
    font-weight: 700;
    line-height: 1.3;
    margin-top: 1.2em;
    margin-bottom: 0.6em;
}

h1 { font-size: 32px; } /* Thường dùng cho tiêu đề bài viết */
/* Chỉ trang con (bài viết cụ thể) mới có vạch kẻ H2 */
.single-post .entry-content 
h2 {
    border-left: 3px solid #179bd7 !important;
    padding-left: 15px !important;
}

/* H2 chung cho toàn sàn (bao gồm cả trang chủ) thì không có vạch */
h2 {
    border-left: none !important;
    padding-left: 0 !important;
}
h3 { font-size: 22px; }
h4 { font-size: 18px; }
/* Khung chứa nội dung chính */
.site-main, .inside-article {
    max-width: 1100px; /* Độ rộng vừa phải để đọc không mỏi mắt */
    margin: 0 auto;    /* Căn giữa */
    padding: 20px;     /* Khoảng cách lề trong */
}

/* CĂN LỀ MOBILE - CHỐNG DÍNH MÉP */
@media (max-width: 768px) {
   
    /* 2. Căn lề cho trang con (Bài viết, trang dịch vụ) */
    .site-main, 
    .inside-article, 
    .entry-content,
    .page-content {
        padding-left: 10px !important;
        padding-right: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 3. Đảm bảo ảnh không tràn gây vỡ lề */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}
/* Khoảng cách cho danh sách trong bài viết */
.entry-content ul, .entry-content ol {
    margin-bottom: 1.5em;
    padding-left: 25px; /* Thụt vào để lộ dấu chấm/số */
}

.entry-content li {
    margin-bottom: 0.5em; /* Khoảng cách giữa các dòng trong danh sách */
}
/* Bo góc nhẹ cho ảnh và căn giữa */
.entry-content img {
    border-radius: 8px;
    margin: 10px auto;
    display: block;
}

/* Chữ chú thích dưới ảnh */
.wp-caption-text, .wp-block-image figcaption {
    text-align: center;
    font-size: 14px;
    font-style: italic;
    color: #666;
    margin-top: 5px;
}
/* Làm bảng chuyên nghiệp hơn */
/* =================================================
   CSS BẢNG CHUẨN (BẢN FIX MÀU TIÊU ĐỀ)
   ================================================= */

/* 1. Cấu trúc chung */
table {
    width: 100%;
    border-collapse: separate; 
    border-spacing: 0;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

/* 2. XỬ LÝ TIÊU ĐỀ (QUAN TRỌNG: Sửa đoạn này) */
/* Áp dụng cho thẻ th HOẶC hàng đầu tiên của bảng */
th, 
table tr:first-child tr { 
    background-color: #1c449c !important; /* Màu xanh Eduzone */
    color: #ffffff !important;            /* Chữ trắng */
    font-weight: 700 !important;
    text-transform: uppercase;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

/* 3. Trang trí ô nội dung thường (Từ hàng thứ 2 trở đi) */
/* Loại trừ hàng đầu tiên ra để không bị đè màu */
table tr:not(:first-child) td {
    padding: 12px 15px;
    color: #333;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

/* 4. Hiệu ứng Zebra (Dòng chẵn lẻ) */
/* Chỉ áp dụng cho các hàng không phải hàng đầu tiên */
tr:nth-child(even):not(:first-child) td {
    background-color: #f9f9f9; 
}

/* 5. Hiệu ứng Hover */
tr:hover:not(:first-child) td {
    background-color: #f1f8ff;
    transition: 0.3s;
}

/* 6. Xử lý viền cuối */
tr:last-child td {
    border-bottom: none;
}

/* =================================================
   RESPONSIVE MOBILE
   ================================================= */
@media (max-width: 768px) {
    table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        border: 1px solid #ddd;
    }

    th, td {
        white-space: normal;
        word-wrap: break-word;
        min-width: 120px;
        font-size: 14px;
        padding: 10px !important;
    }
}
.entry-content a {
    color: #179bd7;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.entry-content a:hover {
    color: #1c449c;
    text-decoration: underline;
}
/* Ép thẻ Quote hiển thị đúng ý đồ */
blockquote {
    font-style: italic !important;
    border-left: 3px solid #1c449c !important; /* Viền xanh đặc trưng Eduzone */
    background: #f9f9f9 !important;
    padding: 20px !important;
    margin: 20px 0 !important;
    color: #555 !important;
}
/* Style chung cho nút */
.ez-button {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important; /* Bỏ gạch chân của thẻ a */
    border-radius: 50px; /* Bo tròn kiểu hiện đại */
    transition: all 0.3s ease; /* Hiệu ứng mượt mà */
    cursor: pointer;
    border: 2px solid transparent;
    margin: 10px 0;
}
/* cho khối để bọc nút *?
.ez-button-container {
    text-align: center; /* Đẩy tất cả nội dung bên trong vào giữa */
    width: 100%;
    margin: 20px 0;
}
/* Nút chính - Màu xanh đậm Eduzone */
.ez-btn-primary {
    background-color: #1c449c;
    color: #ffffff !important;
}

.ez-btn-primary:hover {
    background-color: #179bd7; /* Chuyển sang xanh sáng khi di chuột */
    transform: translateY(-3px); /* Nhảy nhẹ lên trên tạo hiệu ứng nổi */
    box-shadow: 0 5px 15px rgba(28, 68, 156, 0.3);
}

/* Nút phụ - Viền xanh (dùng cho mục ít quan trọng hơn) */
.ez-btn-outline {
    background-color: transparent;
    border-color: #1c449c;
    color: #1c449c !important;
    text-align: center
}

.ez-btn-outline:hover {
    background-color: #1c449c;
    color: #ffffff !important;
     text-align: center;
}
/* Màu link mặc định trong nội dung bài viết */
.entry-content a, 
.page-content a {
    color: #179bd7 !important; /* Màu xanh đậm chủ đạo */
    text-decoration: none; /* Bỏ gạch chân mặc định */
    font-weight: 500;
}

/* Hiệu ứng khi di chuột vào link */
.entry-content a:hover, 
.page-content a:hover {
    color: #179bd7 !important; /* Chuyển sang xanh sáng hơn */
    text-decoration: underline; /* Hiện gạch chân cho dễ nhận biết */
}
/* Trang trí phân trang số */
.ez-pagination {
    text-align: center;
    margin: 40px 0;
}

.ez-pagination .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 5px;
    border: 1px solid #1c449c;
    color: #1c449c !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: bold;
    transition: 0.3s;
}

/* Màu cho trang hiện tại */
.ez-pagination .page-numbers.current {
    background-color: #1c449c;
    color: #fff !important;
    border-color: #1c449c;
}

/* Hiệu ứng khi di chuột */
.ez-pagination .page-numbers:hover:not(.current) {
    background-color: #179bd7;
    color: #fff !important;
    border-color: #179bd7;
}
/* --- PHẦN TIÊU ĐỀ TRANG DANH MỤC (ARCHIVE) --- */

/* 1. Căn giữa và tạo khoảng trống cho toàn bộ khối header */
.page-header {
    text-align: center;
    margin-top: -20px !important;
    padding: 5px 5px;
    margin-bottom: 30px !important;
    background-color: #fdfdfd; /* Nền xám nhạt để làm nổi bật tiêu đề */
    border-bottom: 1px solid #eee;
}

/* 2. Chỉnh màu xanh Eduzone và cỡ chữ cho tiêu đề */
.page-header h1.entry-title {
    color: #1c449c !important; /* Màu xanh đậm của ông */
    font-size: 32px !important;
    text-transform: uppercase; /* Viết hoa cho oai */
    margin: 0 0 10px 0 !important;
    font-weight: 700;
}

/* 3. Chỉnh phần mô tả danh mục (nếu có) */
.page-header .archive-description {
    max-width: 800px;
    margin: 0 auto;
    color: #666;
    line-height: 1.6;
    font-size: 16px;
}
/* Chiêu cuối: Ép màu xanh cho TẤT CẢ link trong khu vực Header Archive */
div[class*="archive-description"] a, 
.page-header a, 
.ez-page-header a,
section.elementor-section a {
    color: #1c449c !important; 
    text-decoration: none !important;
}

/* Đảm bảo trạng thái Hover cũng không bị hồng */
div[class*="archive-description"] a:hover, 
.page-header a:hover, 
.ez-page-header a:hover,
section.elementor-section a:hover {
    color: #179bd7 !important;
    text-decoration: underline !important;
}
/* --- TỐI ƯU SIDEBAR --- */

/* 1. Xóa bỏ dấu chấm (bullet) và lề thừa của danh sách trong Sidebar */
.ez-sidebar-area ul, 
.ez-sidebar-area li {
    list-style: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* 2. Ép ảnh trong Sidebar không được đẩy nội dung sang phải */
.ez-sidebar-area img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin-bottom: 10px;
    border-radius: 5px;
}

/* 3. Nhuộm xanh tiêu đề bài viết trong Sidebar */
.ez-sidebar-area a {
    color: #1c449c !important; /* Xanh đậm Eduzone */
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    transition: 0.3s;
}

.ez-sidebar-area a:hover {
    color: #179bd7 !important; /* Xanh sáng khi di chuột */
}

/* 4. Chỉnh lại Widget tiêu đề cho sang hơn */
.widget-title {
    font-size: 24px !important;
    border-bottom: 2px solid #1c449c;
    padding-bottom: 8px;
    margin-bottom: 5px !important;
}
/* LÀM SIDEBAR DÍNH KHI CUỘN CHUỘT (STICKY SIDEBAR) */
@media (min-width: 992px) { /* Chỉ áp dụng trên máy tính, mobile không cần dính */
    
    .ez-main-wrapper {
        display: flex;
        align-items: flex-start; /* Quan trọng: Phải có dòng này để Sticky hoạt động */
    }

    .ez-sidebar-area {
        position: -webkit-sticky; /* Hỗ trợ trình duyệt Safari */
        position: sticky;
        top: 40px; /* Khoảng cách từ đỉnh đầu xuống khi dính (chừa chỗ cho Menu của ông) */
        height: max-content; /* Đảm bảo chiều cao chỉ bằng nội dung bên trong */
    }
}
/* Fix CLS: Giữ chỗ trước cho ảnh đại diện bài viết */
.ez-thumb a {
    display: block;
    position: relative;
    /* KHÔNG DÙNG padding-top cố định nữa để tránh bóp nghẹt ảnh Lazy Load */
    width: 100%;
    height: auto; 
    background-color: #f0f0f0; 
    overflow: hidden;
    border-radius: 8px;
}

.ez-thumb img {
    /* GIẢI PHÓNG KHỎI ABSOLUTE */
    position: relative !important; 
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important; /* Để chiều cao tự nhảy theo ảnh gốc */
    object-fit: contain !important; /* Hiện toàn bộ ảnh, không cắt góc nào */
    display: block;
}

/* Tối ưu riêng cho Desktop để các khung ảnh đều nhau không bị cái cao cái thấp */
@media (min-width: 992px) {
    .ez-thumb a {
        height: 180px !important; /* Cố định chiều cao khung hình chữ nhật */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .ez-thumb img {
        max-height: 100%;
        width: auto !important; /* Giữ đúng tỷ lệ ảnh ngang */
    }
}
/* Chống nhảy trang cho ảnh chèn tay trong nội dung */
.entry-content img, 
.page-content img {
    height: auto; /* Đảm bảo tỷ lệ ảnh không bị méo */
    max-width: 100%;
    aspect-ratio: attr(width) / attr(height); /* Tự động tính toán không gian dựa trên thông số ảnh */
    content-visibility: auto; /* Giúp trình duyệt tối ưu hóa việc dựng hình */
}
/* === FIX CLS H1 (BẢN FINAL) === */

/* 1. Định nghĩa lại font để chống nhảy chữ khi load */
/* Mẹo: Ép font Arial hẹp lại bằng đúng Roboto để không bị rớt dòng sai lệch */
@font-face {
  font-family: 'Roboto-Fallback';
  src: local('Arial');
  ascent-override: 92.83%;
  descent-override: 24.43%;
  line-gap-override: 0%;
  size-adjust: 97%; /* Thu nhỏ Arial lại 97% để khớp Roboto */
}

h1.entry-title, 
.page-header h1.entry-title {
    /* Dùng font fallback đã tinh chỉnh + Roboto */
    font-family: 'Roboto', 'Roboto-Fallback', sans-serif !important;
    
    color: #1c449c !important;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    
    /* --- KHÓA LAYOUT --- */
    display: block;
    width: 100%;
    
    /* Dùng Padding thay vì Margin để tránh hiện tượng sụp lề (Margin Collapse) */
    margin: 0 0 20px 0 !important;
    padding-top: 10px; 
    
    /* Cố định chiều cao dòng chính xác bằng pixel */
    line-height: 1.3 !important; 
    
    /* Ngắt từ an toàn, không cho chữ chọc thủng khung ngang */
    overflow-wrap: break-word;
    word-break: break-word;
}

/* === RESPONSIVE MOBILE === */
@media (max-width: 768px) {
    h1.entry-title, 
    .page-header h1.entry-title {
        font-size: 24px !important;
        line-height: 32px !important; /* 24px * 1.3 ~ 32px */
        
        /* BỎ MIN-HEIGHT CỐ ĐỊNH (Vì title có bài dài bài ngắn)
           Thay vào đó, dùng min-height bằng đúng 1 dòng text + padding 
        */
        min-height: 42px; 
        
        /* Quan trọng: Thêm margin dưới an toàn để lỡ có nhảy cũng không đè vào nội dung */
        padding-bottom: 5px;
        margin-bottom: 25px !important;
    }
}
/* --- PHẦN NÚT LIÊN HỆ CỐ ĐỊNH --- */
.ez-contact-buttons {
    position: fixed;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99999;
    pointer-events: none; /* Tránh cản trở click vào nội dung bên dưới */
}

.ez-btn-contact {
    pointer-events: auto; /* Cho phép click vào nút */
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 30px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 10px;
    font-weight: 400;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

/* Màu nền Zalo */
.ez-zalo-btn {
    background: #0084ff; /* Màu xanh Zalo */
}

/* Màu nền Facebook (Xanh chủ đạo Eduzone) */
.ez-fb-btn {
    background: #1c449c; /* Màu xanh chủ đạo của ông */
}

/* Icon và hiệu ứng rung rinh */
.ez-icon-shake {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ez-icon-shake img {
    width: 100%;
    height: auto;
}

.ez-btn-text {
    white-space: nowrap;
}

/* HIỆU ỨNG THÔI THÚC (RUNG RING) */
@keyframes ez-shake {
    0% { transform: rotate(0) scale(1); }
    25% { transform: rotate(15deg) scale(1.1); }
    50% { transform: rotate(-15deg) scale(1.1); }
    75% { transform: rotate(15deg) scale(1.1); }
    100% { transform: rotate(0) scale(1); }
}

.ez-icon-shake {
    animation: ez-shake 2s infinite ease-in-out;
}

/* Hiệu ứng Phóng to khi di chuột */
.ez-btn-contact:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    filter: brightness(1.1);
}

/* Ẩn bớt chữ trên Mobile cho gọn nếu cần */
@media (max-width: 480px) {
    .ez-btn-text {
        font-size: 10px;
    }
    .ez-btn-contact {
        padding: 6px 12px;
    }
}



.ez-btn-glow {
    background: #ffffff;
    color: #1c449c !important;
    padding: 16px 35px; 
    border-radius: 50px;
    font-weight: 800; 
    font-size: 18px;
    display: flex; 
    align-items: center; 
    gap: 12px;
    text-decoration: none !important;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: pulse-white 2s infinite;
    transition: all 0.3s ease;
}

.ez-btn-glow:hover {
    transform: translateY(-3px);
    background: #f0f7fb; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.ez-btn-glow svg { 
    width: 24px; 
    height: 24px; 
    fill: #1c449c; 
    transition: 0.3s; 
}

/* Hiệu ứng link text phụ */
.ez-btn-text {
    color: #ffffff !important; 
    font-weight: 700; 
    font-size: 16px;
    text-decoration: none !important;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 2px; 
    transition: 0.3s;
}

.ez-btn-text:hover { 
    border-color: #ffffff; 
    opacity: 0.9;
}

/* Keyframes cho hiệu ứng tỏa sáng */
@keyframes pulse-white {
    0% { transform: scale(0.98); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
    100% { transform: scale(0.98); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Tối ưu Mobile */
@media (max-width: 600px) {
    .ez-action-group { gap: 20px; flex-direction: column; }
    .ez-btn-glow { width: 100%; justify-content: center; font-size: 16px; }
}
/* Ép Ảnh trái - Chữ phải cho Danh mục */
@media (min-width: 768px) {
    /* 1. Khung bao bài viết: Phải có vị trí tương đối */
    .ez-post-card {
        position: relative !important;
        display: block !important; /* Trả về block để dễ kiểm soát position */
        min-height: 180px; /* Đảm bảo khung đủ cao để chứa ảnh */
        padding-left: 370px !important; /* Đẩy toàn bộ chữ sang phải để nhường chỗ cho ảnh */
        margin-bottom: 40px !important;
        padding-bottom: 20px;
        border-bottom: 1px solid #f0f0f0;
    }

    /* 2. Ép ảnh nằm cố định ở bên trái */
    .ez-thumb {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 350px !important; /* Độ rộng ảnh */
        margin: 0 !important;
    }

    .ez-thumb img {
        width: 100% !important;
        height: auto !important;
        border-radius: 5px;
    }

    /* 3. Tiêu đề và Mô tả tự động nằm bên phải do padding-left ở trên */
    .ez-post-card h2, 
    .ez-post-card .entry-title {
        margin-top: 0 !important;
        margin-bottom: 10px !important;
        font-size: 20px !important;
        display: block !important;
        text-align: left !important;
    }

    .ez-post-card p, 
    .ez-post-card .entry-content {
        margin: 0 !important;
        text-align: left !important;
        display: block !important;
        color: #555;
        line-height: 1.6;
    }
}
/* Ép tất cả font phải hiện chữ ngay lập tức, không được ẩn đi chờ tải */
@font-face {
    font-family: 'Roboto';
    font-display: swap !important;
}
/* === FIX LỖI ẢNH & VIDEO (BẢN FULL RESPONSIVE) === */
/* =================================================
   FIX ẢNH TOÀN DIỆN (CHROME, EDGE, MOBILE)
   ================================================= */

/* 1. Xử lý khung bao quanh (Containers) */
figure, 
.wp-caption, 
.elementor-image, 
.elementor-widget-image {
    max-width: 100% !important;
    /* ĐÃ XÓA dòng width: 100% để Align Left/Right hoạt động được */
    margin: 0 auto; 
}

/* 2. Xử lý ảnh và video bên trong */
img, iframe, embed, object, video {
    max-width: 100% !important;
    height: auto !important; 
    display: block; /* Xóa khoảng trắng thừa dưới chân ảnh */
    
    /* "Thần chú" trị lỗi ảnh tràn trên Edge/Flexbox */
    flex-shrink: 1; 
}

/* 3. Fix riêng cho ảnh trong Bảng (Table) */
/* Ảnh trong bảng cần width: auto để không bị méo nếu ô quá nhỏ */
table img {
    max-width: 100% !important;
    width: auto; 
    display: inline-block; /* Trong bảng thì nên để inline để dễ căn chỉnh */
}

/* =================================================
   CĂN CHỈNH ẢNH (ALIGNMENT) - PC
   ================================================= */
.aligncenter {
    display: block;
    margin: 10px auto;
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
    max-width: 50%; /* Tránh trường hợp ảnh căn trái nhưng to quá chiếm hết màn hình */
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
    max-width: 50%;
}

/* =================================================
   RESPONSIVE MOBILE (Dưới 767px)
   ================================================= */
@media (max-width: 767px) {
    /* Hủy bỏ căn trái/phải, đưa hết về giữa */
    .alignleft, 
    .alignright {
        float: none !important;
        display: block !important;
        margin: 0 auto 20px auto !important; 
        max-width: 100% !important;
        text-align: center;
    }
    
    /* Đảm bảo caption cũng full width */
    .wp-caption {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Fix lỗi iframe/video bị lùn hoặc méo trên mobile */
    iframe, embed, object, video {
        max-width: 100% !important;
    }
}

/* ĐĂNG KÝ TƯ VẤN */
/* Container căn giữa */
.ez-cta-wrapper {
    text-align: center;
    margin: 30px 0;
    display: block;
    width: 100%;
}

/* Ép màu chữ cho cả nút và mọi trạng thái của link */
.ez-cta-wrapper a.btn-reg-ez, 
.ez-cta-wrapper a.btn-reg-ez:visited,
.ez-cta-wrapper a.btn-reg-ez span.btn-text {
    color: #ffffff !important; /* Ép trắng tuyệt đối */
    text-decoration: none !important;
}

/* Style chính cho nút */
.btn-reg-ez {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 45px;
    background: linear-gradient(135deg, #1c449c 0%, #179bd7 100%);
    font-weight: 800;
    font-size: 18px;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(28, 68, 156, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    animation: ez-pulse 2s infinite;
}

/* Hiệu ứng khi di chuột vào - Đổi màu gradient ngược lại */
.btn-reg-ez:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(28, 68, 156, 0.5);
    background: linear-gradient(135deg, #179bd7 0%, #1c449c 100%);
}

.btn-reg-ez:hover span.btn-text {
    color: #ffffff !important;
}

/* Hiệu ứng nhịp thở (Pulse) */
@keyframes ez-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(28, 68, 156, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(28, 68, 156, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(28, 68, 156, 0);
    }
}

/* Responsive cho Mobile */
@media (max-width: 767px) {
    .btn-reg-ez {
        width: 90%;
        padding: 15px 20px;
        font-size: 16px;
    }
}
/* Ép khung chứa form Getfly luôn full chiều rộng */
#dang-ky-tu-van .getfly-form-fixed-width,
#dang-ky-tu-van iframe {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

/* Loại bỏ thanh cuộn dọc khó chịu trong form */
#dang-ky-tu-van {
    overflow: visible !important;
}

/* Nếu Getfly dùng iframe, ép nó tự giãn chiều cao để không bị cắt */
#dang-ky-tu-van iframe {
    min-height: 600px; /* Điều chỉnh con số này cho phù hợp với độ dài form của bạn */
    border: none;
}

/* Landing page cho trường*/
:root {
    --ez-blue: #1c449c;
    --ez-light-blue: #179bd7;
    --radius: 10px;
}

/* --- Hero Section --- */
.lp-hero {
    position: relative;
    height: 60vh; /* Chiều cao vừa phải để không choán hết màn hình */
    min-height: 400px;
    overflow: hidden;
}

.lp-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lp-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}

.lp-hero-title { font-size: 3rem; font-weight: 800; margin-bottom: 10px; }
.lp-hero-subtitle { font-size: 1.5rem; opacity: 0.9; }

/* --- Table Styles --- */
.lp-table-wrapper { overflow-x: auto; margin-top: 20px; }
.lp-table { width: 100%; border-collapse: collapse; background: #fff; }
.lp-table th { background: var(--ez-blue); color: #fff; padding: 15px; text-align: left; }
.lp-table td { padding: 12px; border-bottom: 1px solid #eee; }
.lp-table tr:nth-child(even) { background: #f9f9f9; }

/* --- Scholarship Section --- */
.lp-scholarship-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    border-left: 8px solid var(--ez-light-blue);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
}

.lp-scholarship-card h2 { color: var(--ez-blue); font-size: 2rem; margin-bottom: 15px; }

/* --- Review Section --- */
.lp-review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.lp-review-item { background: #fff; padding: 20px; border-radius: var(--radius); text-align: center; }
.lp-video-placeholder { 
    width: 100%; 
    aspect-ratio: 16/9; 
    background: #000; 
    border-radius: var(--radius); 
    margin-bottom: 15px;
    overflow: hidden;
}
.lp-video-placeholder img { width: 100%; height: 100%; object-fit: cover; }

/* --- Responsive --- */
@media (max-width: 767px) {
    .lp-hero-title { font-size: 2rem; }
    .lp-hero-subtitle { font-size: 1.1rem; }
    .lp-hero { height: 50vh; }
}
/* Sticky Navigation */
.lp-sticky-nav {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0; /* Dính lên sát mép trên */
    z-index: 999;
    border-bottom: 1px solid #eee;
}

.lp-nav-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    justify-content: center;
}

.lp-nav-list li a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
}

.lp-nav-list li a:hover, 
.lp-nav-list li a.active {
    color: var(--ez-blue);
}

/* Nút CTA nhỏ trên menu dính */
.lp-nav-list li a.nav-cta {
    background: var(--ez-blue);
    color: #fff !important;
    padding: 8px 20px;
    margin-left: 10px;
    border-radius: 50px;
    font-size: 14px;
}

.lp-nav-list li a.nav-cta:hover {
    background: var(--ez-light-blue);
}

/* Responsive cho Mobile */
@media (max-width: 767px) {
    .lp-nav-list {
        overflow-x: auto; /* Cho phép vuốt ngang trên mobile */
        justify-content: flex-start;
        white-space: nowrap;
        padding: 0 10px;
    }
    .lp-nav-list li a {
        padding: 12px 15px;
        font-size: 14px;
    }
}