/* Container bao ngoài */
.pti-header-contact {
    display: inline-flex;
    align-items: center;
    gap: 32px;
}

/* Từng khối liên hệ */
.pti-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Vòng tròn chứa icon (nền xanh nhạt, icon xanh dương) */
.pti-contact-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: #F1F5F9; /* Màu xanh pastel dịu nhẹ giống ảnh */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1B3555; /* Biểu tượng xanh navy */
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Hiệu ứng khi rê chuột vào */
.pti-contact-item:hover .pti-contact-icon {
    background-color: #F1F5F9;
    color: #1B3555;
    transform: none;
}

/* Phần chữ bên phải */
.pti-contact-info {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

/* Dòng trên: Đậm và màu xanh navy sang trọng */
.pti-contact-title {
    color: #172B4D !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.pti-contact-title:hover {
    color: #172B4D !important;
}

/* Dòng dưới: Tiếng Việt, chữ xám thanh lịch */
.pti-contact-sub {
    color: #64748B;
    font-size: 12.5px;
    font-weight: 400;
    margin-top: 2px;
}

/* Responsive khi xem trên điện thoại (tự xuống hàng gọn gàng) */
@media (max-width: 768px) {
    .pti-header-contact {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}
















/* ================================
   FLATSOME TOPBAR - FULL WIDTH
================================ */

/* Cho phép marquee tràn khỏi container */
#top-bar .flex-row.container:has(.infinite-marquee) {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Mở rộng flex-left */
#top-bar .flex-row:has(.infinite-marquee) > .flex-left {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
    margin: 0;
}

/* Nav chứa marquee */
#top-bar .flex-left > ul.nav:has(.infinite-marquee) {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: block;
}

/* HTML element */
#top-bar li.html:has(.infinite-marquee) {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0 !important;
    margin: 0 !important;
}

/* Loại bỏ phần tử thừa */
#top-bar li.html:has(.infinite-marquee)::before,
#top-bar li.html:has(.infinite-marquee)::after {
    display: none !important;
}

/* ================================
   MARQUEE CONTAINER
================================ */

.infinite-marquee {
    --marquee-gap: 32px;

    position: relative;
    display: flex;
    align-items: center;

    width: 100%;
    max-width: 100%;
    overflow: hidden;

    padding: 10px 0;
    margin: 0;

    background: #E2E8F0;
    user-select: none;
    box-sizing: border-box;
}

/* ================================
   MARQUEE TRACK - JS CONTROL
================================ */

.infinite-marquee .marquee-track {
    display: flex;
    flex: 0 0 auto;
    align-items: center;

    width: max-content;
    min-width: 0;

    margin: 0;
    padding: 0;

    white-space: nowrap;

    transform: translate3d(0, 0, 0);
    will-change: transform;
}

/* ================================
   MARQUEE GROUP
================================ */

.infinite-marquee .marquee-group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-start;

    width: max-content;
    min-width: 0;

    gap: var(--marquee-gap);

    margin: 0;

    /* Tạo khoảng cách giữa 2 nhóm */
    padding: 0 var(--marquee-gap) 0 0;

    box-sizing: border-box;

    /* Tắt hoàn toàn animation cũ */
    animation: none !important;
    transform: none !important;
}

/* ================================
   MARQUEE ITEM
================================ */

.infinite-marquee .marquee-item {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    white-space: nowrap;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;

    color: var(--primary-color);
}

.infinite-marquee .marquee-item span {
    color: var(--primary-color) !important;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

/* ================================
   MOBILE RESPONSIVE
================================ */

@media (max-width: 849px) {

    .infinite-marquee {
        --marquee-gap: 26px;
        padding: 9px 0;
    }

    .infinite-marquee .marquee-item {
        font-size: 13px;
    }
}















/* =========================================
   PTI HEADER - GLOBAL SETTINGS
========================================= */

:root {
    --pti-blue: #144C9B;
    --pti-menu-blue: #0753AD;
}

/* Menu giãn đều tất cả trang */
#wide-nav > .container {
    width: 100%;
    margin: 0 auto;
    display: flex;
}

#wide-nav .flex-col.flex-left {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

#wide-nav ul.header-bottom-nav.nav-left {
    display: flex;
    align-items: center;
    justify-content: space-between !important;
    width: 100%;
    gap: 12px;
}

#wide-nav ul.header-bottom-nav.nav-left > li {
    margin: 0 !important;
    flex: 0 0 auto;
}

#wide-nav .nav-top-link {
    white-space: nowrap;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
}

/* Cột phải đang trống */
#wide-nav .flex-col.flex-right:has(ul:empty) {
    display: none !important;
}

/* =========================================
   CÁC TRANG KHÁC PAGE ID 12
========================================= */

/* Header Main xanh */
body:not(.page-id-12) #header .header-main {
    background: var(--primary-color) !important;
}

/* Header Bottom trắng, không đè banner */
body:not(.page-id-12) #header #wide-nav {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin-bottom: 0 !important;

    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
}

/* Menu chữ xanh */
body:not(.page-id-12) #wide-nav .nav > li > a {
    color: var(--primary-color) !important;
}

/* Hover */
body:not(.page-id-12) #wide-nav .nav > li:hover > a,
body:not(.page-id-12) #wide-nav .nav > li.active > a {
    color: var(--primary-color) !important;
}

/* Gạch chân */
body:not(.page-id-12)
#wide-nav .nav-line-bottom > li > a:before {
    background: var(--pti-menu-blue) !important;
}

/* Hotline, Email, ngôn ngữ trắng */
body:not(.page-id-12)
#header .header-main .pti-contact-title,
body:not(.page-id-12)
#header .header-main .pti-contact-sub,
body:not(.page-id-12)
#header .header-main .nav > li > a {
    color: #ffffff !important;
}

/* Icon trắng */
/* body:not(.page-id-12)
#header .header-main .pti-contact-icon i {
    color: #ffffff !important;
} */

/* =========================================
   TRANG CHỦ PAGE ID 12
========================================= */

/* Header Main trắng */
body.page-id-12 #header .header-main {
    background: #ffffff !important;
}

/* Header Bottom trong suốt đè banner */
body.page-id-12 #header #wide-nav {
    position: absolute !important;
    top: 100%;
    left: 0;
    right: 0;

    width: 100%;
    z-index: 50;

    background: var(--primary-color) !important;
    border: none !important;
    box-shadow: none !important;
}

/* Header wrapper làm mốc */
body.page-id-12 #header .header-wrapper {
    position: relative;
}

/* Xóa nền menu */
body.page-id-12 #wide-nav .flex-row,
body.page-id-12 #wide-nav .flex-col,
body.page-id-12 #wide-nav .header-bottom-nav {
    background: transparent !important;
}

/* Menu trắng trên banner */
body.page-id-12 #wide-nav .nav > li > a {
    color: #ffffff !important;
}

/* Hover */
body.page-id-12 #wide-nav .nav > li:hover > a,
body.page-id-12 #wide-nav .nav > li.active > a {
    color: #ffffff !important;
}

/* Gạch chân trắng */
body.page-id-12
#wide-nav .nav-line-bottom > li > a:before {
    background: #ffffff !important;
}

/* =========================================
   DROPDOWN - TẤT CẢ TRANG
========================================= */

#wide-nav .sub-menu {
    background: #ffffff !important;
}

#wide-nav .sub-menu li a {
    color: #1e293b !important;
}

#wide-nav .sub-menu li:hover > a {
    color: var(--pti-blue) !important;
}

/* =========================================
   STICKY - TRANG CHỦ
========================================= */

/*
   CSS này áp dụng khi Flatsome đặt .stuck
   lên header-wrapper hoặc header-bottom.
*/

body.page-id-12 #header .header-wrapper.stuck .header-main,
body.page-id-12 #header .header-main.stuck {
    background: var(--pti-blue) !important;
}

body.page-id-12 #header .header-wrapper.stuck #wide-nav,
body.page-id-12 #header #wide-nav.stuck {
    position: relative !important;
    top: auto !important;
    background: #ffffff !important;
}

body.page-id-12 #header .header-wrapper.stuck
#wide-nav .nav > li > a,
body.page-id-12 #header #wide-nav.stuck
.nav > li > a {
    color: var(--primary-color) !important;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 849px) {
    body.page-id-12 #header #wide-nav {
        display: none !important;
    }
	body:not(.page-id-12) #header .header-main {
		background: #fff !important
	}
}


/* =========================================
   PTI - HEADER DONG BO & LOGO (27-10-2026)
   Header trang con giong trang chu, menu khong de noi dung.
========================================= */

/* Header trang con: trang nen, mau chu thong nhat */
body:not(.page-id-12) #header .header-main {
    background: #ffffff !important;
}
body:not(.page-id-12) #header .header-main .pti-contact-title {
    color: #172B4D !important;
}
body:not(.page-id-12) #header .header-main .nav > li > a {
    color: var(--primary-color) !important;
}
body:not(.page-id-12) #header .header-main .pti-contact-sub {
    color: #64748B !important;
}

/* Menu trang con: nen xanh, chu trang */
body:not(.page-id-12) #header #wide-nav {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100%;
    margin-bottom: 0 !important;
    background: var(--primary-color) !important;
    border: 0 !important;
    box-shadow: none !important;
}
body:not(.page-id-12) #wide-nav .flex-row,
body:not(.page-id-12) #wide-nav .flex-col,
body:not(.page-id-12) #wide-nav .header-bottom-nav {
    background: transparent !important;
}
body:not(.page-id-12) #wide-nav .nav > li > a,
body:not(.page-id-12) #wide-nav .nav > li:hover > a,
body:not(.page-id-12) #wide-nav .nav > li.active > a {
    color: #ffffff !important;
}
body:not(.page-id-12) #wide-nav .nav-line-bottom > li > a:before {
    background: #ffffff !important;
}

/* Dropdown giu nen trang, chu de doc */
#wide-nav .sub-menu { background: #ffffff !important; }
#wide-nav .sub-menu li a { color: #1e293b !important; }
#wide-nav .sub-menu li:hover > a { color: var(--primary-color) !important; }

/* Logo rong va ro hon, khong thay doi mobile */
@media (min-width: 850px) {
    #header .header-main #logo {
        width: 250px !important;
        max-width: 250px !important;
        flex: 0 0 250px !important;
    }
    #header .header-main #logo img.header_logo,
    #header .header-main #logo img.header-logo-dark {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 65px !important;
        object-fit: contain;
    }
}

/* Mobile: nen header trang, chu dam */
@media (max-width: 849px) {
    #header .header-main { background: #ffffff !important; }
    #header .header-main .pti-contact-title { color: #172B4D !important; }
    #header .header-main .pti-contact-sub { color: #64748B !important; }
}


/* PTI - Sticky menu giu mau xanh nhu luc dau trang */
body.page-id-12 #header .header-wrapper.stuck #wide-nav,
body.page-id-12 #header #wide-nav.stuck {
    position: relative !important;
    top: auto !important;
    background: var(--primary-color) !important;
}
body.page-id-12 #header .header-wrapper.stuck #wide-nav .nav > li > a,
body.page-id-12 #header #wide-nav.stuck .nav > li > a {
    color: #ffffff !important;
}
body.page-id-12 #header .header-wrapper.stuck #wide-nav .nav-line-bottom > li > a:before,
body.page-id-12 #header #wide-nav.stuck .nav-line-bottom > li > a:before {
    background: #ffffff !important;
}

/* PTI — header updates (31/10/2026) */
#top-bar, #top-bar .infinite-marquee { background: #0A1F44 !important; }
#top-bar .infinite-marquee .marquee-item,
#top-bar .infinite-marquee .marquee-item a,
#top-bar .infinite-marquee .marquee-item span { color: #fff !important; text-decoration: none !important; }
#top-bar .infinite-marquee .marquee-item.pti-ticker-date,
#top-bar .infinite-marquee .marquee-item.pti-ticker-date a,
#top-bar .infinite-marquee .marquee-item.pti-ticker-date span { color: #38BDF8 !important; }
#top-bar .infinite-marquee .marquee-item a:hover { text-decoration: underline !important; }
#header #wide-nav, body.page-id-12 #header #wide-nav,
body:not(.page-id-12) #header #wide-nav,
#header .header-wrapper.stuck #wide-nav { background: #0A1F44 !important; }
#header .pti-header-contact { gap: 22px; }
#header a.pti-header-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; min-height: 43px; border-radius: 999px;
  background: #E11D48; color: #fff !important; font-size: 14px;
  font-weight: 700; text-decoration: none !important; line-height: 1.15;
  box-shadow: 0 4px 12px rgba(225,29,72,.2); white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}
#header a.pti-header-cta:hover { background: #be123c; transform: translateY(-1px); }
@media (max-width: 1100px) and (min-width: 850px) {
  #header .pti-header-contact { gap: 12px; }
  #header .pti-header-cta { padding: 10px 12px; font-size: 12px; }
  #header .pti-contact-icon { width: 36px; height: 36px; }
  #header .pti-contact-title { font-size: 13px; }
}
@media (max-width: 849px) { #header .pti-header-contact { gap: 12px; } }

/* PTI — keep the requested main header and navigation visible on scroll */
#header .header-wrapper.stuck {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1001 !important;
  box-shadow: 0 5px 20px rgba(10,31,68,.1);
}
body.admin-bar #header .header-wrapper.stuck { top: 32px !important; }
@media (max-width: 849px) {
  /* The WP admin toolbar is hidden on mobile; do not reserve its height. */
  body.admin-bar #header .header-wrapper.stuck { top: 0 !important; }
}

/* Match sticky colors to the normal PTI header */
body #header .header-wrapper.stuck #masthead,
body #header .header-wrapper.stuck .header-main { background: #ffffff !important; }
body.page-id-12 #header .header-wrapper.stuck #wide-nav,
body:not(.page-id-12) #header .header-wrapper.stuck #wide-nav { background: #0A1F44 !important; }

/* PTI — ngay khai giang truoc ten khoa hoc tren thanh tin chay */
#top-bar .infinite-marquee .marquee-item .pti-ticker-date-label,
#top-bar .infinite-marquee .marquee-item .pti-ticker-separator {
  color: #38BDF8 !important;
  font-weight: 700;
}
#top-bar .infinite-marquee .marquee-item .pti-ticker-course-label {
  color: #ffffff !important;
}
