/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/
/*************** ADD CUSTOM CSS HERE.   ***************/

.banner-text-box {
    text-align: center;
    color: #333333;
}

.entry-header-text.entry-header-text-top.text-left .entry-divider.is-divider.small,
.entry-content.single-page .is-divider.medium {
    display: none;
}

.header-title h2 {
    font-size: 36px;
    margin-bottom: 0;
}

.header-title-phu-huynh h2 {
    font-size: 36px;
    color: white;
}

.banner-text-box .sub-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.banner-text-box .main-title {
    font-size: 32px;
    font-weight: 800;
    margin: 5px 0;
    text-transform: uppercase;
}

.banner-text-box .text-primary {
    color: var(--fs-color-primary);
}

.banner-text-box .text-secondary {
    color: var(--fs-color-secondary);
}

.banner-text-box .desc {
    font-size: 14px;
    font-weight: 500;
    margin-top: 5px;
    letter-spacing: 0.3px;
}

#top-bar p,
#top-bar a,
#top-bar strong {
    color: white;
}

#top-bar {
    background-color: var(--fs-color-primary);
}

.header-bottom.wide-nav {
    background-color: var(--fs-color-secondary);
}

.header-bottom .nav-top-link {
    color: white !important;
}

.header-quy-trinh h2 {
    font-size: 3em;
    margin-bottom: 0;
}

.row-quy-trinh .medium-4 {
    padding-bottom: 0;
}

.row-quy-trinh .medium-4 {
    border-right: 1px solid #d0d0d0;
    border-bottom: 1px solid #d0d0d0;
}

.row-quy-trinh {
    overflow: hidden;
}

.row-quy-trinh .medium-4:nth-child(4),
.row-quy-trinh .medium-4:nth-child(7),
.row-quy-trinh .medium-4:nth-child(10) {
    right: -1px;
}

.row-quy-trinh .medium-4:nth-child(8),
.row-quy-trinh .medium-4:nth-child(9),
.row-quy-trinh .medium-4:nth-child(10) {
    border-bottom: none;
}



#masthead .header-inner.flex-row {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

#masthead .header-inner .flex-col {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
}

#masthead .header-inner .flex-col.logo {
    margin-right: 120px !important;
}

.header-bottom .flex-row .flex-col {
    flex: 1 !important;
    width: 100% !important;
}

.header-bottom .nav-center {
    width: 100% !important;
    justify-content: center;
}

.header-bottom .nav-center>li {
    flex: 1 1 0%;
    text-align: center;
}

.header-bottom .nav-center>li>a {
    white-space: nowrap;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

#masthead .header-inner .flex-col:empty {
    display: none !important;
}

/* Ép menu cấp 2 hiển thị thành 1 cột dọc (tránh bị dàn hàng ngang) */
.header-bottom .nav>li>.nav-dropdown {
    display: block !important;
    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    padding: 0 !important;
    left: 0 !important;
    right: auto !important;
    white-space: normal !important;
}

.blog-home .post-item .col-inner {
    border: 1px solid var(--fs-color-secondary);
}

/* Ép chiều cao bài viết blog bằng CSS thuần (giới hạn dòng) */
.blog-home .post-item .post-title {
    margin-bottom: 8px !important;
}

.row-trung-tam-gia-su .box-image {
    margin: 0 !important;
}

.blog-home .post-item .post-title a {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    max-width: 100% !important;
}

.blog-home .post-item .box-text p {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    white-space: normal !important;
    line-height: 1.5 !important;
    height: 4.5em !important;
    /* 3 dòng (3 x 1.5) */
    margin-bottom: 0 !important;
}

/* Đảm bảo danh mục cha (cấp 2) xếp thành từng hàng dọc */
.header-bottom .nav>li>.nav-dropdown>li {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    float: none !important;
}

/* ==================================================
   GIAO DIỆN TIN TIÊU ĐIỂM (THEO BẢN THIẾT KẾ 1)
   ================================================== */

/* 1. Thanh tiêu đề (Màu xanh, vát góc phải) */
.header-tin-tieu-diem {
    background: linear-gradient(316deg, #d1649b 32px, var(--fs-color-secondary) 25px) !important;
    color: #fff !important;
    padding: 10px 20px !important;
    margin-bottom: 20px !important;
    display: block !important;
    border: none !important;
    border-radius: 2px !important;
    text-align: center !important;
    /* Căn giữa text theo mẫu */
}

/* Ẩn các gạch ngang mặc định của Flatsome Title (nếu có) */
.header-tin-tieu-diem>b,
.header-tin-tieu-diem::after,
.header-tin-tieu-diem::before {
    display: none !important;
}

.header-tin-tieu-diem * {
    color: #fff !important;
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
}

/* 2. Danh sách bài viết: Ảnh bên trái, text bên phải */
/* Sửa lỗi lệch lề: Khôi phục lại padding 15px 2 bên mặc định của col trong Flatsome */
.blog-tieu-diem .post-item {
    width: 100% !important;
    /* Ép mỗi bài 1 hàng */
    max-width: 100% !important;
    /* padding: 0 !important; -> Đã xóa để ảnh và tiêu đề thẳng hàng */
}

.blog-tieu-diem .post-item .col-inner {
    border: none !important;
    /* Xóa viền cũ */
    border-bottom: 1px solid #eee !important;
    padding-bottom: 15px !important;
    margin-bottom: 15px !important;
    height: auto !important;
    /* Trả lại height tự động */
    display: block !important;
}

.blog-tieu-diem .post-item:last-child .col-inner {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.blog-tieu-diem .post-item .box {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    height: auto !important;
}

/* Khung ảnh (bên trái) */
.blog-tieu-diem .post-item .box-image {
    width: 35% !important;
    flex-shrink: 0 !important;
    margin-right: 15px !important;
    margin-bottom: 0 !important;
}

/* Khung chữ (bên phải) */
.blog-tieu-diem .post-item .box-text {
    width: 65% !important;
    padding: 0 !important;
    text-align: left !important;
    display: block !important;
}

/* Ẩn gạch phân cách */
.blog-tieu-diem .post-item .is-divider {
    display: none !important;
}

/* Định dạng tiêu đề */
.blog-tieu-diem .post-item .post-title,
.blog-tieu-diem .post-item .post-title a {
    font-size: 16px !important;
    line-height: 1.4 !important;
    margin-bottom: 5px !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    -webkit-line-clamp: 2 !important;
    /* Tối đa 2 dòng */
    max-height: 2.8em !important;
    /* Đảm bảo cắt cứng 2 dòng nếu plugin chặn */
}

/* Định dạng ngày tháng */
.blog-tieu-diem .post-item .post-date {
    font-size: 12px !important;
    color: #666 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* Định dạng mô tả */
.blog-tieu-diem .post-item .box-text p,
.blog-tieu-diem .post-item .post-excerpt,
.blog-tieu-diem .post-item .from_the_blog_excerpt {
    font-size: 14px !important;
    color: #555 !important;
    line-height: 1.5 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    -webkit-line-clamp: 2 !important;
    /* Tối đa 2 dòng */
    max-height: 3em !important;
    /* Đảm bảo cắt cứng 2 dòng */
    margin-bottom: 0 !important;
}

/* Căn trái chữ và thêm đường kẻ để dễ nhìn */
.header-bottom .nav>li>.nav-dropdown>li>a {
    display: block !important;
    text-align: left !important;
    padding: 12px 15px !important;
    border-bottom: 1px solid #f1f1f1 !important;
}

.header-bottom .nav>li>.nav-dropdown>li:last-child>a {
    border-bottom: none !important;
}

.header-bottom .nav>li>.nav-dropdown>li>ul.nav-dropdown,
.header-bottom .nav>li>.nav-dropdown>li>.sub-menu {
    opacity: 0 !important;
    visibility: hidden !important;
    position: absolute !important;
    left: 100% !important;
    top: 0 !important;
    width: 250px !important;
    background-color: #fff !important;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.15) !important;
    pointer-events: none !important;
    transition: opacity 0.2s ease, visibility 0.2s ease !important;
    z-index: 999 !important;
    margin: 0 !important;
    border-radius: 3px !important;
}

.header-bottom .nav>li>.nav-dropdown>li:hover>ul.nav-dropdown,
.header-bottom .nav>li>.nav-dropdown>li:hover>.sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Fix lỗi chớp sáng (flicker) khi trượt các slider chứa Row */
.flickity-slider>* {
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    transform: translateZ(0) !important;
    perspective: 1000px !important;
}
.row-trung-tam-gia-su .medium-6 .col-inner {
    box-shadow: 0 1px 4px rgba(34, 30, 31, 0.1);
    transition: all 0.3s ease 0s;
}

.row-trung-tam-gia-su .medium-6 .col-inner:hover {
    box-shadow: 0 2px 20px rgba(34, 30, 31, 0.4);
}

.row-trung-tam-gia-su p::before {
    content: "\f19d";
    /* Unicode cá»§a fa-graduation-cap */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    /* Bắt buộc phải có với Font Awesome 5 */
    margin-right: 8px;
    color: black;
}

@media only screen and (max-width: 48em) {
    /*************** ADD MOBILE ONLY CSS HERE  ***************/


}

/* -----------------------------------------------------
   Style cho Tiêu đề "LỚP DẠY MỚI" (Dạng nút gradient)
------------------------------------------------------ */
.header-lop-day-moi h2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #ee43ac, var(--fs-color-primary));
    color: #ffffff !important;
    padding: 12px 35px;
    border-radius: 50px;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

.header-lop-day-moi h2::before {
    content: "\f02e";
    /* Mã Unicode của icon Bookmark */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    /* Bắt buộc cho Font Awesome 5 Solid */
    margin-right: 12px;
    font-size: 0.9em;
}

.header-lop-day-moi p {
    margin-top: 20px;
}

.padding-bottom-none {
    padding-bottom: 0;
}

/* -----------------------------------------------------
   Căn bằng chiều cao cho các Card & Tiêu đề
------------------------------------------------------ */
/* Ép toàn bộ Row thành flex để các cột tự động dài bằng nhau */
.row-trung-tam-gia-su {
    display: flex;
    flex-wrap: wrap;
}

/* Đảm bảo nội dung bên trong cột (.col-inner và .box) giãn hết chiều cao */
.row-trung-tam-gia-su>.col {
    display: flex;
}

.row-trung-tam-gia-su .col-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.row-trung-tam-gia-su .col-inner .box {
    background-color: #f6f6f6;
}

.row-trung-tam-gia-su .box {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.row-trung-tam-gia-su .box-text {
    flex-grow: 1;
    /* Phần chữ sẽ tự động giãn ra để đẩy sát đáy (nếu có) */
}

/* Ép tiêu đề (h3) luôn cao bằng nhau (đủ cho 2 dòng) để phần mô tả bên dưới bắt đầu cùng 1 hàng */
.row-trung-tam-gia-su .box-text h3.gt-title {
    min-height: 50px;
    color: var(--fs-color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* -----------------------------------------------------
   Style cho Ảnh Phụ huynh (Hình tròn, căn giữa)
------------------------------------------------------ */
.img-box-phu-huynh-noi-ve .box-image {
    width: 100px !important;
    height: 100px !important;
    margin: 0 auto 15px auto !important;
    border-radius: 50%;
    overflow: hidden;
}

.img-box-phu-huynh-noi-ve .box-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* -----------------------------------------------------
   Ảnh nền dính cứng vào màn hình (Parallax)
------------------------------------------------------ */
.bg-dinh-cung {
    background-color: transparent !important;
}

/* Khung chữ đánh giá (Speech Bubble) - Chỉ áp dụng cho thẻ p chứa chữ, KHÔNG áp dụng cho thẻ p chứa video iframe */
.bg-dinh-cung p:not(:has(iframe)) {
    background-color: rgba(255, 255, 255, 0.25);
    /* Nền trắng mờ 25% */
    padding: 25px;
    position: relative;
    color: white;
    margin-bottom: 30px;
    /* Chừa chỗ cho mũi nhọn */
}

/* Mũi nhọn trỏ xuống dưới */
.bg-dinh-cung p:not(:has(iframe))::after {
    content: "";
    position: absolute;
    bottom: -15px;
    /* Đẩy ra khỏi khung 15px */
    left: 50%;
    transform: translateX(-50%);
    /* Căn giữa chính xác */
    border-width: 15px 15px 0 15px;
    border-style: solid;
    /* Phần trên giữ màu nền, 3 phần còn lại trong suốt để tạo hình tam giác */
    border-color: rgba(255, 255, 255, 0.25) transparent transparent transparent;
}

.bg-dinh-cung .box-text-inner h4 {
    color: #fcacd4;
    font-weight: 900;
}

.bg-dinh-cung>.section-bg {
    background-image: url('https://giasutoancau.theme.trueads.vn/wp-content/uploads/2026/10/background-talk-about-us.jpg') !important;
    background-attachment: fixed !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
}

/* Lớp phủ đen mờ (Overlay) đè lên ảnh nền để dễ đọc chữ */
.bg-dinh-cung>.section-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Đen mờ 50%, bạn có thể tăng giảm số 0.5 */
    z-index: 1;
}

/* Khung chứa và tạo nền xanh */
.chu-chay-wrap {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    padding: 8px 0;
}

/* Hiệu ứng chữ chạy */
.chu-chay {
    display: inline-block;
    color: #ffffff !important;
    font-weight: 500;
    padding-left: 100%;
    animation: chay-chu 15s linear infinite;
    /* Số 25s là tốc độ chạy, tăng lên nếu muốn chạy chậm lại, giảm đi nếu muốn chạy nhanh */
}

/* Định nghĩa chuyển động */
@keyframes chay-chu {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

/* Hiệu ứng hover làm đậm menu ở Header Bottom */
.header-bottom-nav>li>a {
    transition: background-color 0.3s ease, color 0.3s ease !important;
}

.header-bottom-nav>li>a:hover {
    background-color: rgba(0, 0, 0, 0.15) !important;
    /* Phủ một lớp đen mờ 15% để làm đậm nền */
}

/* Thêm vạch kẻ (border) ngăn cách giữa các menu và ép độ rộng fit-content */
.header-bottom-nav>li {
    flex: none !important;
    /* Ghi đè cài đặt chia đều flex 1 của Flatsome */
    width: fit-content !important;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    /* Vạch màu trắng mờ 30% */
    margin: 0 !important;
    /* Xóa margin thừa để các ô dính sát vào vạch */
}

/* Ẩn các icon dư thừa (như kính lúp tìm kiếm) lọt vào menu làm móp méo khoảng cách */
.header-bottom-nav>li:not(.menu-item) {
    display: none !important;
}

/* Không vẽ vạch ở mục menu cuối cùng */
.header-bottom-nav>li.menu-item:last-of-type {
    border-right: none !important;
}

/* Menu ôm sát nội dung và căn giữa */
.header-bottom-nav {
    width: fit-content !important;
    margin: 0 auto;
}

/* Định dạng cho phân trang (Pagination) giống mẫu */
.custom-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 15px 0 15px 0;
}

.custom-pagination li {
    margin: 0 !important;
}

.custom-pagination li a,
.custom-pagination li span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
    font-size: 15px;
    text-decoration: none;
    background: #fff;
    transition: all 0.2s ease;
}

/* Mục đang chọn (Current) */
.custom-pagination li span.current {
    font-weight: bold;
    color: #333;
    border-color: #bbb;
    /* Viền đậm hơn 1 chút hoặc đổi màu */
    background: #f9f9f9;
}

/* Dấu ... (dots) */
.custom-pagination li span.dots {
    border: none;
    background: transparent;
    color: #777;
    min-width: auto;
    padding: 0 5px;
}

.custom-pagination li a:hover {
    background: #f1f1f1;
    color: #333;
}

.absolute-footer {
    display: none;
}

/* Ép thẻ a lấp đầy toàn bộ chiều cao của menu và có padding hợp lý */
.header-bottom-nav>li>a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.col-copyright p {
    margin-bottom: 0;
}

/* Kiểu dáng cho tiêu đề header-title giống mẫu */
.header-title {
    text-align: center;
    position: relative;
    padding-bottom: 30px;
    /* Chừa chỗ cho icon và đường kẻ ở dưới */
    font-weight: bold;
    text-transform: uppercase;
}

/* 
 * Nếu vô tình đặt class header-title lồng nhau (vừa đặt ở thẻ bao ngoài, vừa đặt ở text bên trong)
 * thì ẩn cái ở thẻ bao ngoài đi để tránh bị nhân đôi nét vẽ.
 */
.header-title:has(.header-title)::before,
.header-title:has(.header-title)::after {
    display: none !important;
}

/* Đường kẻ ngang dưới tiêu đề */
.header-title::before {
    content: "";
    position: absolute;
    bottom: 11px;
    /* Canh sao cho nằm giữa chiều cao của icon */
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    /* Độ dài của đường kẻ ngang */
    height: 1px;
    /* Dùng gradient để chừa khoảng trống trong suốt ở giữa cho icon, thay vì dùng nền trắng đè lên */
    background: linear-gradient(to right,
            var(--fs-color-secondary) 0%,
            var(--fs-color-secondary) calc(50% - 22px),
            transparent calc(50% - 22px),
            transparent calc(50% + 22px),
            var(--fs-color-secondary) calc(50% + 22px),
            var(--fs-color-secondary) 100%);
    z-index: 1;
}

/* Icon mũ cử nhân ở giữa đường kẻ */
.header-title::after {
    content: "\f19d";
    /* Mã Unicode của icon fa-graduation-cap */
    font-family: "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--fs-color-secondary);
    font-size: 22px;
    background-color: transparent;
    /* Trong suốt để ăn theo màu nền của mọi section */
    padding: 0;
    z-index: 2;
}

.entry-header-text.entry-header-text-top,
.entry-content.single-page .col {
    padding-bottom: 0;
}

.entry-content.single-page {
    padding-top: 0;
}

/* ==================================================
   GIAO DIỆN BLOG GIA SƯ (BẢN THIẾT KẾ CHUẨN)
   ================================================== */

/* Khung màu trắng bọc ngoài cùng */
.col.col-bai-viet-container>.col-inner,
.col-bai-viet-container>.col-inner,
#col-278586480>.col-inner {
    background-color: #ffffff;
    border: 1px solid #dce3e8;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: visible;
}

#ajax-lop-day {
    padding-inline: 30px;
    padding-top: 20px;
}

/* Ruy băng tiêu đề - Copy chính xác CSS của bản design (.ribbon) */
.header-title-blog {
    padding-right: 30px;
    margin-top: 16px;
    background: transparent;
    overflow: visible;
}

/* Apply đúng CSS .ribbon gốc của design vào thẻ h2 */
.header-title-blog h2 {
    position: relative;
    padding: 0 1em;
    font-size: 2em;
    line-height: 1.875em;
    color: #ffffff;
    border-radius: 0 0.156em 0.156em 0;
    background: var(--fs-color-secondary);
    box-shadow: -1px 2px 3px rgba(0, 0, 0, 0.5);
    display: block;
    /* block để full width giống bản design */
    text-transform: none;
    font-weight: normal;
    /* Chữ không in đậm như bản mẫu */
    overflow: visible;
}

.blog-tieu-diem .post-item {
    padding-bottom: 0;
}

/* Phần thò ra bên trái (before) */
.header-title-blog h2::before {
    position: absolute;
    content: "";
    display: block;
    width: 0.469em;
    height: 75px;
    top: 0;
    left: -0.469em;
    background: inherit;
    border-radius: 0.313em 0 0 0.313em;
}

/* Nếp gấp 3D ở góc dưới bên trái (after) */
.header-title-blog h2::after {
    position: absolute;
    content: "";
    display: block;
    width: 0.313em;
    height: 0.313em;
    background: rgba(0, 0, 0, 0.35);
    bottom: -0.313em;
    left: -0.313em;
    border-radius: 0.313em 0 0 0.313em;
    box-shadow: inset -1px 2px 2px rgba(0, 0, 0, 0.3);
}

/* Ẩn dải phân cách mặc định của Flatsome */
.header-title-blog>b {
    display: none !important;
}

/* --- Layout danh sách bài viết ngang --- */
.col-bai-viet-container .post-item {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.col-bai-viet-container .post-item>.col-inner {
    border: none;
    border-bottom: 1px solid #eee;
    padding: 0;
    padding-bottom: 25px;
    margin-bottom: 25px;
    background: transparent;
    display: block;
    box-shadow: none;
    border-radius: 0;
}

/* Ẩn viền gạch ở bài viết cuối cùng */
.col-bai-viet-container .post-item:last-child>.col-inner {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Kích hoạt Flexbox ngang ở .box */
.col-bai-viet-container .post-item .box {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

/* Khung ảnh bên trái */
.col-bai-viet-container .post-item .box-image {
    width: 30%;
    max-width: 250px;
    /* Tránh ảnh bị bự quá mức */
    margin-right: 25px;
    flex-shrink: 0;
    margin-bottom: 0;
    order: 1;
}

.col-bai-viet-container .post-item .box-image img {
    object-fit: contain;
    width: 100%;
    height: auto;
    border-radius: 4px;
    max-height: none;
}

/* Khung chữ bên phải */
.col-bai-viet-container .post-item .box-text {
    flex: 1;
    width: auto;
    padding: 0;
    text-align: left;
    display: block;
    order: 2;
}

/* Tiêu đề bài viết IN HOA */
.col-bai-viet-container .post-item .post-title {
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1.4;
    margin-top: 0;
}

.col-bai-viet-container .post-item .post-title a {
    color: #333;
}

/* Ẩn ngày tháng */
.col-bai-viet-container .post-item .post-date {
    display: none;
}

/* Mô tả bài viết */
.col-bai-viet-container .post-item .box-text p,
.col-bai-viet-container .post-item .post-excerpt {
    font-size: 15px;
    color: #444;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Nút Xem tiếp */
.col-bai-viet-container .post-item .box-text a.read-more,
.col-bai-viet-container .post-item .box-text a.more-link {
    font-size: 13px;
    color: #444;
    text-decoration: underline;
    text-transform: uppercase;
    font-weight: 500;
}

/* Ẩn line mờ nếu có */
.col-bai-viet-container .post-item .is-divider {
    display: none;
}

/* Responsive Gia Su Info */
.gs-info-basic {
    font-size: 17px;
}

.gs-label {
    width: 120px;
}

.gs-info-detail {
    font-size: 14px;
}

.gs-label-detail {
    width: 110px;
}

.row-trung-tam-gia-su .medium-6 .col-inner {
    border-bottom: 2px solid var(--fs-color-secondary);
}

.col-dia-chi-footer a {
    color: white;
}

.col-dia-chi-footer a:hover {
    color: var(--fs-color-secondary);
}

/* ========================================== */
/* CSS FOR TABLET (max-width: 849px)          */
/* ========================================== */
@media (max-width: 849px) {
    #masthead .header-inner .flex-col.logo {
        margin-right: 0 !important;
    }
}

@media (max-width: 680px) {
    .banner-text-box .sub-title {
        font-size: 12px;
    }

    .banner-text-box .main-title {
        font-size: 23px;
    }

    .banner-text-box .desc {
        font-size: 13px;
    }
}

/* ========================================== */
/* CSS FOR MOBILE (max-width: 549px)          */
/* ========================================== */
@media (max-width: 549px) {
    .row-quy-trinh .medium-4 {
        border-right: none;
    }

    .row-quy-trinh .medium-4:nth-child(8),
    .row-quy-trinh .medium-4:nth-child(9),
    .row-quy-trinh .medium-4:nth-child(10) {
        border-bottom: 1px solid #d0d0d0 !important;
    }

    #masthead .header-inner.flex-row {
        flex-direction: column;
    }

    .mobile-nav.nav.nav-right {
        display: flex;
        flex-direction: column;
    }

    .header-main {
        height: 180px !important;
    }

    .header-title h2,
    .header-title-phu-huynh h2 {
        font-size: 24px;
    }

    .banner-text-box .sub-title {
        font-size: 10px;
    }

    .banner-text-box .main-title {
        font-size: 19px;
    }

    .banner-text-box .desc {
        font-size: 11px;
    }

    /* Fix Top Bar bị lệch/tràn trên mobile */
    #top-bar {
        overflow: hidden;
    }

    #top-bar .flex-row {
        display: block !important;
        /* Trả về dạng block cơ bản để dễ canh giữa, bỏ flex */
    }

    #top-bar .mobile-nav {
        display: block !important;
        text-align: center;
        padding: 5px 0;
        margin: 0 !important;
    }

    #top-bar .mobile-nav>li {
        display: block !important;
        width: 100%;
        text-align: center !important;
        margin: 5px 0 !important;
        padding: 0 !important;
    }

    #top-bar .mobile-nav>li:not(.html_topbar_right) * {
        white-space: normal !important;
        /* Ép chữ xuống dòng nếu quá dài thay vì tràn màn hình */
    }

    /* Riêng chữ chạy phải giữ nguyên một dòng */
    #top-bar .mobile-nav .chu-chay-wrap,
    #top-bar .mobile-nav .chu-chay-wrap * {
        white-space: nowrap !important;
    }
}

@media (max-width: 849px) {
    .gs-info-basic {
        font-size: 14px;
    }

    .gs-label {
        width: 90px;
    }

    .gs-info-detail {
        font-size: 13px;
    }

    .gs-label-detail {
        width: 85px;
    }
}

/* Hover effect cho card Gia su & L?p d?y */
.gs-card-hover:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-5px);
}


/* Ðua video và avatar n?m ngang hàng nhau trong slider Ph? Huynh */
.custom-slider-row {
    display: flex !important;
    align-items: stretch;
}

.custom-slider-row .col,
.custom-slider-row .col-inner {
    height: 100% !important;
}

.custom-slider-row .col-inner {
    display: flex !important;
    flex-direction: column;
}

.custom-slider-row .col-inner>p {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* ==========================================
   FORM LIEN HE (CONTACT FORM 7)
   ========================================== */
/* Ep nut Gui (Submit) bam sang le phai */
.wpcf7-form p:last-of-type {
    margin-bottom: 0;
    position: relative;
    /* Gốc tọa độ để kéo cục spinner */
}

.wpcf7-form .wpcf7-submit {
    min-width: 150px;
}

.wpcf7-spinner {
    display: none;
}

.wpcf7-form.init {
    margin-bottom: 0;
}

.title-dien-thong-tin {
    padding-inline: 30px;
}

.form-contact .wpcf7-form>p:last-of-type {
    text-align: right;
    margin-bottom: 0;
}

.form-contact .wpcf7-form>p:last-of-type input {
    margin-bottom: 0;
}

/* Tang khoang cach cho dong chu bao loi CF7 */
span.wpcf7-not-valid-tip:last-child {
    display: block;
    margin-bottom: 15px !important;
    margin-top: 5px !important;
}

.wpcf7-not-valid-tip {
    width: fit-content;
}

.wpcf7-form.invalid {
    margin-bottom: 0 !important;
}

.menu-item-type-post_type .nav-top-link {
    padding: 15px 0 !important;
}

/* Ep menu header bottom fill day chieu cao khi chinh Theme Options bang Flexbox (chi ap dung cho Desktop) */
@media (min-width: 850px) {
    .header-bottom {
        display: flex !important;
        align-items: stretch !important;
    }

    .header-title-phu-huynh h2 {
        font-size: 28px !important;
    }

    .header-bottom .flex-row {
        align-items: stretch !important;
        width: 100%;
    }

    #wide-nav .flex-col {
        display: flex !important;
        align-items: stretch !important;
        justify-content: center;
        flex: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    ul.header-bottom-nav {
        display: flex !important;
        align-items: stretch !important;
        width: 100% !important;
        justify-content: space-between !important;
    }

    ul.header-bottom-nav>li {
        height: 100%;
        flex: auto !important;
        text-align: center;
        white-space: nowrap;
    }

    ul.header-bottom-nav>li>a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 100% !important;
        width: 100% !important;
    }
}

.bg-dinh-cung .medium-2 .col-inner p:first-child {
    height: 205px;
}

.video-fit.mb {
    height: 250px;
}

.row.blog-container.large-columns-1 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 25px 30px;
}

.header-title-blog h2 {
    margin-bottom: 0;
}

#wpcf7-f433-p42-o1 {
    padding: 25px 30px;
}

.wpcf7-form-control.wpcf7-submit {
    margin-right: 0 !important;
}

.row-trung-tam-gia-su a {
    display: inline !important;
}

/* ==========================================
   FORM CHỌN GIA SƯ (CF7) - LAYOUT NGANG
   ========================================== */
.custom-cf7-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    align-items: flex-start;
}

/* Phần chữ bên trái (chiếm 25% chiều rộng) */
.custom-cf7-row .cf7-label {
    flex: 0 0 25%;
    max-width: 25%;
    font-weight: 700;
    padding-top: 8px;
    /* Căn ngang hàng với chữ bên trong ô input */
    color: #333;
}

/* Phần ô nhập liệu bên phải (chiếm 75% chiều rộng) */
.custom-cf7-row .cf7-input {
    flex: 0 0 75%;
    max-width: 75%;
}

/* Đảm bảo ô input full width trong cột của nó */
.custom-cf7-row .cf7-input input,
.custom-cf7-row .cf7-input textarea {
    width: 100%;
    margin-bottom: 0;
}

/* Ẩn các thẻ p dư thừa do CF7 tự sinh ra làm vỡ bố cục */
.wpcf7 p:empty {
    display: none;
}

#wpcf7-f522-p520-o1,
#ajax-gia-su-2 {
    padding: 25px 30px;
}

/* RESPONSIVE: Trên giao diện Mobile, cho nhãn và ô nhập xếp dọc lại */
@media (max-width: 549px) {

    .custom-cf7-row .cf7-label,
    .custom-cf7-row .cf7-input {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .custom-cf7-row .cf7-label {
        padding-top: 0;
        margin-bottom: 5px;
    }
}

#gia-su-cart-container {
    padding: 25px 30px;
}

@media (max-width: 767px) {

    .header-title-phu-huynh h2,
    .header-title h2 {
        font-size: 28px !important;
    }
}

@media (min-width: 768px) and (max-width: 1080px) {
    .nav.header-nav.header-bottom-nav li {
        font-size: clamp(11px, 0.7em, 14px);
    }
}

/* End of file */