/*
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.   ***************/

h2.xc-title {
    font-family: 'Roboto', sans-serif !important;
    text-align: center;
    color: #B11116;
    font-size: 32px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 40px;
    margin-bottom: 30px;
    position: relative;
    display: block;
}

h2.xc-title::after {
    content: "";
    position: absolute;
    height: 22px;
    width: 240px;
    top: 42px;
    left: 0;
    right: 0;
    margin: 0 auto;
    background: url('/wp-content/uploads/hd.png') no-repeat center;
}

h2.xc-title.yellow {
    color: #FFFFFF !important;
}

h2.xc-title.whitee {
    color: #FFFFFF !important;
}

@media (max-width: 480px) {
    h2.xc-title {
        font-size: 20px;
    }
}

ul.ul-ve-chung-toi {
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
}

ul.ul-ve-chung-toi li {
    list-style-type: none;
    margin-left: 0 !important;
    padding-left: 30px;
    position: relative;
    margin-bottom: 15px;
}

ul.ul-ve-chung-toi li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    background: url('/wp-content/uploads/check.png') no-repeat center;
    background-size: contain;
}

/* Chương trình du học (.xc-program) */
.xc-program-posts {
    margin: 0 -15px;
}

.xc-program-posts .post-item {
    padding: 0 15px;
}

.xc-program-posts .box {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.xc-program-posts .box-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.xc-program-posts .image-cover {
    padding-top: 100% !important;
}

.xc-program-posts .box-image img {
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.xc-program-posts .box:hover .box-image img {
    transform: scale(1.1);
}

.xc-program-posts .box-text {
    position: absolute;
    width: 100%;
    bottom: 0px;
    left: 0;
/*     text-align: center; */
    padding: 0 !important;
    background: rgb(15 15 15 / 68%) !important;
    border-radius: 0 0 8px 8px;
}

.xc-program-posts .box-text-inner {
    padding: 0 !important;
}

.xc-program-posts .post-title {
    margin-bottom: 0px;
    padding: 0;
}

.xc-program-posts .post-title a {
    font-size: 16px;
    color: #fff !important;
    font-weight: 700;
    line-height: 40px;
	/* padding: 10px; */
    display: block;
}

.xc-program-posts .is-divider {
    display: none;
}

.xc-program-posts .from_the_blog_excerpt {
    display: none !important;
}

/* Tắt badge date */
.xc-program-posts .badge.post-date {
    display: none;
}

/* Thêm icon New */
.xc-program-posts .box-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: -5px;
    height: 67px;
    width: 62px;
    background: url('/wp-content/uploads/new.png') no-repeat;
    z-index: 9;
}

/* Form Đăng ký tư vấn (BEM) */
.xc-dang-ky-tu-van {
    background: url('/wp-content/uploads/bg-dang-ky.webp') no-repeat center center;
    background-size: cover;
    padding: 35px 35px 5px 35px;
    border-radius: 10px;
    text-align: center;
}

.xc-dang-ky-tu-van__title {
    font-size: 25px;
    color: #fff !important;
    font-weight: 500;
    line-height: 40px;
    text-align: center;
    margin-bottom: 0px;
}

.xc-dang-ky-tu-van__desc {
    font-size: 16px;
    color: #fff;
    font-weight: 400;
    line-height: 26px;
    margin-bottom: 15px;
}

.xc-dang-ky-tu-van__input {
    font-size: 15px;
}

.xc-dang-ky-tu-van__submit {
    background: #7D1DD3 !important;
    border-radius: 8px !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    line-height: 40px !important;
    display: inline-block;
    padding: 0 20px !important;
    color: #fff !important;
    margin-top: 10px !important;
    border: none;
    cursor: pointer;
}

/* Tại sao chọn chúng tôi (BEM) */
.xc-why__box {
    background: #0a3267b3;
    padding: 20px 10px;
    border-radius: 10px;
}

.xc-why__box .icon-box-img {
    margin-right: 15px;
}

.xc-why__box .icon-box-text {
    padding-top: 0;
    padding-bottom: 0;
}

.xc-why__box .icon-box-text h3 {
    font-family: 'Roboto', sans-serif !important;
    font-size: 16px;
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 26px;
    margin-bottom: 5px;
}

.xc-why__box .icon-box-text p {
    font-size: 15px;
    color: #6DB8EA;
    font-weight: 400;
    line-height: 26px;
    margin-bottom: 0;
}

/* Fix dropdown menu bị lệch do text-align center */
ul.nav-dropdown {
    text-align: left !important;
}

ul.nav-dropdown li {
    text-align: left !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

ul.nav-dropdown li a {
    text-align: left !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 10px 20px !important;
}

/* Ẩn padding của entry-content */
.entry-content {
    padding-bottom: 0 !important;
    padding-top: 0 !important;
}

/* Footer menu (.xc-footer__menu) */
.xc-footer__menu .ux-menu-title {
    color: #ffffff !important;
}

.xc-footer__menu .ux-menu-link__link {
    color: #ffffff !important;
}

.xc-footer__menu .ux-menu-link__link:hover {
    color: #cccccc !important;
}

/* Header Flatsome Customization */
.header-main .search-form {
    width: 100% !important;
}

.header-main .search-field {
    border-radius: 4px !important;
    border: 1px solid #667b87 !important;
    height: 36px !important;
    line-height: 36px !important;
    font-style: italic;
    background: #fff !important;
}

/* Header Phone (.xc-header-phone) */
.header-main .xc-header-phone {
    margin: 0 15px;
    padding-left: 34px;
    background: url('/wp-content/uploads/icon-phone-header.png') 2px 2px no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-main .xc-header-phone a {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    display: block;
    line-height: 24px;
}

/* Header Button (.header-button-1) */
.header-main .header-button-1 .button {
    background: #d50000 !important;
    padding: 0 40px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 40px !important;
    height: 40px !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    color: #fff !important;
    margin-right: 0 !important;
}

/* ------------------------------------
 * Archive / Blog Post List
 * ------------------------------------ */

/* Archive Page Title */
.archive-page-header .page-title {
    display: block;
    font-size: 28px !important;
    line-height: 40px !important;
    color: #b01015 !important;
    position: relative;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
    text-transform: uppercase !important;
}

/* BEGIN CSS Truongnx sửa so với bản gốc
 * Post list title color customization */
.box-blog-post .post-title {
    margin-bottom: 0;
}

.box-blog-post .post-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;

    color: #b01015 !important;
    font-size: 1.18em !important;
    font-weight: 400 !important;
    text-transform: none;
    line-height: 1.5 !important;
    max-height: 3em;
}

/* card nào cũng cao đều hẳn */
.box-blog-post .box-text-inner {
    display: flex;
    flex-direction: column;
}

.box-blog-post .post-title {
    min-height: 60px;
}
/* END CSS Truongnx sửa so với bản gốc
 * Post list title color customization */

/* Post box wrapper */
.box-blog-post .box-text {
    padding: 12px 0 !important;
/*     text-align: center; */
}

/* Post excerpt / description */
.box-blog-post .from_the_blog_excerpt {
    font-size: 15px !important;
    line-height: 23px !important;
    display: block;
    max-height: 69px;
    overflow: hidden;
    margin-bottom: 10px;
    color: inherit;
}

/* Post Image (Thumbnail) Hover effect */
.box-blog-post .box-image {
    border-radius: 8px;
    overflow: hidden;
}

.box-blog-post .box-image img {
    border-radius: 8px;
    -webkit-transition: -webkit-transform 0.5s ease;
    -moz-transition: -moz-transform 0.5s ease;
    transition: transform 0.5s ease;
}

.box-blog-post .box-image:hover img {
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -o-transform: scale(1.1);
    transform: scale(1.1);
}

/* Hide divider in post boxes */
.box-blog-post .is-divider {
    display: none !important;
}

/* Remove default whitespace from breadcrumb paragraph */
.xc-breadcrumbs p {
    margin-bottom: 0 !important;
    padding: 0 !important;
}

/* Make program posts title white */
.xc-program-posts .box-blog-post .post-title a {
    color: #ffffff !important;
}

/* Floating Contact Widget */
.xc-float-contact {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99999;
}

.xc-float-contact .chat-zalo {
    background: #771ACB;
    border-radius: 20px;
    padding: 0 18px;
    display: block;
    margin-bottom: 6px;
    border: none;
}

.xc-float-contact .chat-face {
    background: #115592;
    border-radius: 20px;
    padding: 0 18px;
    display: block;
    margin-bottom: 6px;
    border: none;
}

.xc-float-contact .hotline {
    background: #AA1313 !important;
    border-radius: 20px;
    padding: 0 18px;
    display: block;
    margin-bottom: 6px;
    border: none;
}

.xc-float-contact a {
    font-size: 15px;
    color: white !important;
    font-weight: 400;
    text-transform: none;
    line-height: normal;
    /* Flatsome resets this and breaks layout, so use normal */
    display: inline-block;
    padding: 8px 0;
}

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

    .xc-float-contact {
        display: none;
    }

}



/* =========================
 * BEGIN
 * Breadcrumb bài viết - bản nâng cấp
 * ========================= */
.xc-breadcrumbs {
    padding-top: 12px !important;
    padding-bottom: 14px;
}

.xc-breadcrumbs .rank-math-breadcrumb {
    position: relative;
    background: linear-gradient(180deg, #fbfcfe 0%, #f5f7fa 100%);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 16px 12px 18px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.xc-breadcrumbs .rank-math-breadcrumb::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: #5c2d7e;
    opacity: 0.75;
}

.xc-breadcrumbs .rank-math-breadcrumb p {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    line-height: 1.7;
    color: #6b7280;
    padding-left: 2px;
}

.xc-breadcrumbs .rank-math-breadcrumb a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.xc-breadcrumbs .rank-math-breadcrumb a:hover {
    color: #5c2d7e;
    text-decoration: underline;
}

.xc-breadcrumbs .rank-math-breadcrumb .separator {
    color: #b0b8c4;
    margin: 0 3px;
}

.xc-breadcrumbs .rank-math-breadcrumb .last {
    color: #111827;
    font-weight: 700;
}

@media (max-width: 768px) {
    .xc-breadcrumbs .rank-math-breadcrumb {
        padding: 10px 12px 10px 14px;
        border-radius: 10px;
    }

    .xc-breadcrumbs .rank-math-breadcrumb p {
        font-size: 13px;
    }
}

/* =========================
 * END
 * Breadcrumb bài viết - bản nâng cấp
 * ========================= */


/* =========================
 * BEGIN
 * CSS Truongnx bổ sung
 * ========================= */
.truongnx_chuong_trinh_uu_dai .box-blog-post .box-text {
    display: none !important;
}

.truongnx_title_chuong_trinh_du_hoc .xc-title a,
.truongnx_title_chuong_trinh_du_hoc .xc-title a:visited,
.truongnx_title_chuong_trinh_du_hoc .xc-title a:hover,
.truongnx_title_chuong_trinh_du_hoc .xc-title a:focus,

.truongnx_title_anh_hoat_dong_thanh_giang .xc-title a,
.truongnx_title_anh_hoat_dong_thanh_giang .xc-title a:visited,
.truongnx_title_anh_hoat_dong_thanh_giang .xc-title a:hover,
.truongnx_title_anh_hoat_dong_thanh_giang .xc-title a:focus,

.truongnx_title_tin_tuc_su_kien .xc-title a,
.truongnx_title_tin_tuc_su_kien .xc-title a:visited,
.truongnx_title_tin_tuc_su_kien .xc-title a:hover,
.truongnx_title_tin_tuc_su_kien .xc-title a:focus {
    color: inherit !important;
    text-decoration: none !important;
}

/* BEGIN Đoạn CSS dành cho nút Đăng ký tư vấn ngay ở header trang chủ, khi bấm nó sẽ cuộn xuống section chứa form đăng ký */
html {
    scroll-behavior: smooth;
}

.truongnx-scroll-anchor {
    display: block;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
    top: -120px;
    visibility: hidden;
}

/* END CSS dành cho nút Đăng ký tư vấn ngay ở header trang chủ, khi bấm nó sẽ cuộn xuống section chứa form đăng ký */

/* =========================================================
 * Toggle nội dung ẩn kiểu Web C cho bài viết migrate Drupal
 * Author: Trường Nguyễn
 * ========================================================= */

/* Chỉ áp dụng trong trang chi tiết bài viết */
.single-post .entry-content .div-khung .div-content-hide {
    display: none;
}

/* Nút Ẩn nội dung: mặc định ẩn */
.single-post .entry-content .div-khung .an-content-hide {
    display: none;
    text-align: center;
    margin: 15px 0 10px;
    cursor: pointer;
}

/* Nút Xem thêm */
.single-post .entry-content .div-khung .show-content-hide {
    display: block;
    text-align: center;
    margin: 0;
    cursor: pointer;
}

/* Ảnh trong nút */
.single-post .entry-content .div-khung .show-content-hide img,
.single-post .entry-content .div-khung .an-content-hide img {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

/* Tránh khoảng trắng khó chịu do p sinh ra */
.single-post .entry-content .div-khung .show-content-hide,
.single-post .entry-content .div-khung .an-content-hide {
    line-height: normal;
}

/* =========================
 * END
 * CSS Truongnx bổ sung
 * ========================= */