
/* ============================================
   ATMT THEME - HEADER & NAVIGATION CSS
   Viết lại dựa trên cấu trúc HTML gốc
   ============================================ */

/* --- TOPBAR --- */
.topbar {
    background: #1a3c5e;
    padding: 8px 0;
    font-size: 13px;
}
.topbar a { color: #cce5ff; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .topbar-left { display: flex; align-items: center; gap: 20px; }
.topbar .topbar-info { display: flex; align-items: center; gap: 6px; color: #cce5ff; }
.topbar .topbar-info i { color: #90caf9; font-size: 13px; }
.topbar .topbar-right { display: flex; align-items: center; justify-content: flex-end; gap: 15px; }
.topbar-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.topbar-social li a {
    color: #fff; font-size: 15px;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255,255,255,0.15);
    transition: background 0.2s;
}
.topbar-social li a:hover { background: rgba(255,255,255,0.3); }

/* --- MAIN HEADER --- */
.mainHeader {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 999;
}
.mainHeader.header-sticky {
    position: fixed; top: 0; left: 0; right: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.mainHeader--height { position: relative; }
.hd-height { padding: 12px 0; }
.flex-container-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- LOGO --- */
.header-wrap-logo { flex-shrink: 0; }
.wrap-logo a { display: inline-block; }
.logoimg {
    max-height: 70px !important;
    width: auto !important;
    display: block;
}

/* --- DESKTOP NAVIGATION --- */
.header-wrap-menu { flex: 1; display: flex; justify-content: center; }
.navbar-mainmenu { width: 100%; }
.menuList-main {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: nowrap;
}
.menuList-main > li {
    position: relative;
}
.menuList-main > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #1a3c5e;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}
.menuList-main > li > a:hover,
.menuList-main > li.active > a {
    color: #0083c1;
}
.menuList-main > li > a svg {
    width: 10px !important;
    height: 10px !important;
    transition: transform 0.2s;
}
.menuList-main > li:hover > a svg { transform: rotate(180deg); transition: transform 0.2s; }

/* --- DROPDOWN SUBMENU (WordPress default classes) --- */
/* Nuclear fix: Force hide all nested ULs inside the main menu */
.navbar-mainmenu .menuList-main ul,
.navbar-mainmenu .menuList-main .sub-menu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: #fff !important;
    min-width: 250px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 10px 0 !important;
    box-shadow: 0 4px 25px rgba(0,0,0,0.15) !important;
    border-top: 3px solid #0083c1 !important;
    z-index: 1000 !important;
    border-radius: 0 0 8px 8px !important;
    visibility: visible !important; /* Reset visibility if any */
    opacity: 1 !important; /* Reset opacity if any */
}

/* Force show on hover */
.navbar-mainmenu .menuList-main li:hover > ul,
.navbar-mainmenu .menuList-main li:hover > .sub-menu {
    display: block !important;
}

.navbar-mainmenu .menuList-main ul li {
    position: relative !important;
    width: 100% !important;
    display: block !important;
}

.navbar-mainmenu .menuList-main ul li a {
    display: block !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    color: #333 !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    border-bottom: 1px solid #f5f5f5 !important;
    white-space: nowrap !important;
    text-align: left !important;
}
.menuList-main .sub-menu li:last-child a { border-bottom: none; }
.menuList-main .sub-menu li a:hover {
    background: #f0f7ff;
    color: #0083c1;
    padding-left: 25px;
}

/* 3rd level submenu */
.menuList-main .sub-menu .menu-item-has-children > .sub-menu {
    top: 0; left: 100%;
    border-top: none;
    border-left: 3px solid #0083c1;
    border-radius: 0 8px 8px 8px;
}

/* --- SEARCH BUTTON --- */
.header-action_search { position: relative; }
.header-action__link {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    text-decoration: none; color: #333;
    transition: background 0.2s;
}
.header-action__link:hover { background: #e8f4ff; color: #0083c1; }
.box-icon svg { width: 18px !important; height: 18px !important; }
.box-icon--close { display: none; }
.header-action_clicked .box-icon svg:first-child { display: none; }
.header-action_clicked .box-icon--close { display: inline-flex; }
/* Search dropdown */
.header-action_dropdown {
    display: none;
    position: absolute; right: 0; top: calc(100% + 10px);
    width: 320px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 16px;
    z-index: 1001;
}
.header-action_search.active .header-action_dropdown { display: block; }
.box-triangle { display: none; }
.searchform { display: flex; gap: 8px; }
.input-search {
    flex: 1; padding: 8px 14px;
    border: 1px solid #ddd; border-radius: 6px;
    font-size: 14px; outline: none;
}
.input-search:focus { border-color: #0083c1; }
.btn-search {
    padding: 8px 14px;
    background: #0083c1; color: #fff;
    border: none; border-radius: 6px; cursor: pointer;
}
.btn-search:hover { background: #006fa3; }
.btn-search svg { width: 16px !important; height: 16px !important; fill: #fff; }

/* --- MOBILE HAMBURGER --- */
.header-wrap-iconav { cursor: pointer; }
.hamburger-menu { display: flex; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger-menu .bar {
    display: block; width: 24px; height: 2px;
    background: #1a3c5e; border-radius: 2px;
}
.hamburger-menu .bar::before,
.hamburger-menu .bar::after {
    content: ''; display: block; width: 24px; height: 2px;
    background: #1a3c5e; border-radius: 2px;
    margin-top: 5px;
}

/* Hide desktop menu on mobile */
@media (max-width: 991px) {
    .header-wrap-menu { display: none !important; }
    .d-none.d-md-none.d-lg-block { display: none !important; }
}
@media (min-width: 992px) {
    .d-sm-block.d-lg-none { display: none !important; }
    .header-wrap-iconav { display: none !important; }
}

/* ============================================
   SIDENAV (Mobile Menu)
   ============================================ */
.sitenav-wrapper {
    position: fixed; top: 0; bottom: 0; left: 0;
    width: 280px; background: #fff;
    z-index: 10000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 3px 0 15px rgba(0,0,0,0.15);
}
.sitenav-wrapper.sitenav-open { transform: translateX(0); }
.sitenav-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    background: #1a3c5e; color: #fff;
}
.sitenav-header .sitenav-header__title { font-weight: 600; font-size: 16px; }
.btn-sitenav-close { color: #fff; cursor: pointer; padding: 4px; }
.btn-sitenav-close svg { width: 18px !important; height: 18px !important; fill: #fff; }
.sitenav-content { padding: 16px 0; }
.sitenav-active::before {
    content: ''; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 9999;
}

/* ============================================
   SLIDER
   ============================================ */
.section-home-slider { position: relative; overflow: hidden; }
.slider-owl .slider-item { position: relative; }
.slider-owl .slide--image img {
    width: 100%; height: auto;
    display: block;
    max-height: 600px; object-fit: cover;
}
.slider-owl .slide-content {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center;
}
/* Owl Nav buttons */
.owl-nav button.owl-prev,
.owl-nav button.owl-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px;
    background: rgba(0,0,0,0.4) !important;
    border-radius: 50% !important;
    display: flex !important; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.owl-nav button.owl-prev { left: 16px; }
.owl-nav button.owl-next { right: 16px; }
.owl-nav button:hover { background: rgba(0,0,0,0.7) !important; }
.owl-nav button span { display: none; }

/* ============================================
   HOME SECTIONS
   ============================================ */
.section-home-service { padding: 70px 0; background: #f8fafc; }
.section-home-about1 { padding: 70px 0; }
.section-home-counter { padding: 70px 0; background: #1a3c5e; color: #fff; }
.section-home-blog { padding: 70px 0; background: #f8fafc; }
.section-home-partner { padding: 50px 0; }

.heading-title { margin-bottom: 40px; }
.heading-title .title { font-size: 28px; font-weight: 700; color: #1a3c5e; line-height: 1.3; }
.section-home-counter .heading-title .title { color: #fff; }
.heading-title .desc { font-size: 15px; color: #555; line-height: 1.7; margin-top: 14px; }

/* Service cards */
.service-item {
    background: #fff; border-radius: 10px;
    overflow: hidden; margin-bottom: 24px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.07);
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-item:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.13); }
.service-item a { text-decoration: none; color: inherit; display: block; }
.service-item .item-img img { width: 100%; height: 200px; object-fit: cover; }
.service-item .item-detail { padding: 20px; }
.service-item .title { font-size: 17px; font-weight: 700; color: #1a3c5e; margin-bottom: 10px; }
.service-item .desc { font-size: 13px; color: #666; line-height: 1.6; }

/* About section */
.about-banner .banner-img { position: relative; padding-bottom: 30px; padding-right: 30px; }
.about-banner .img1 img { width: 100%; border-radius: 10px; }
.about-banner .img2 {
    position: absolute; bottom: 0; right: 0;
    width: 45%; border-radius: 10px; overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.about-banner .img2 img { width: 100%; }
.about-content { padding-left: 40px; }

/* Counter / Progress */
.list-progress { margin-top: 30px; }
.jet-progress-bar { margin-bottom: 24px; }
.jet-progress-bar__title { display: flex; justify-content: space-between; margin-bottom: 8px; }
.jet-progress-bar__title-text { color: #cce5ff; font-size: 14px; font-weight: 500; }
.jet-progress-bar__wrapper {
    background: rgba(255,255,255,0.2);
    border-radius: 20px; height: 8px; overflow: hidden;
}
.jet-progress-bar__status-bar {
    height: 100%; background: #4fc3f7;
    border-radius: 20px; width: 0;
    transition: width 1.5s ease;
    display: flex; align-items: center; justify-content: flex-end;
}
.jet-progress-bar__percent { color: #fff; font-size: 13px; font-weight: 700; padding-right: 8px; white-space: nowrap; }
.jet-progress-bar__percent-suffix { font-size: 11px; }

/* Counter banner */
.counter-banner img { width: 100%; border-radius: 10px; }
.counter-content { padding-left: 40px; }

/* Blog section */
.blog-item { background: #fff; border-radius: 10px; overflow: hidden; margin-bottom: 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.07); }
.blog-item a { text-decoration: none; color: inherit; display: block; }
.blog-item img { width: 100%; height: 200px; object-fit: cover; }
.blog-item .blog-detail { padding: 18px; }
.blog-item .blog-title { font-size: 15px; font-weight: 600; color: #1a3c5e; line-height: 1.4; }
.blog-item .blog-desc { font-size: 13px; color: #666; margin-top: 8px; }
.blog-item:hover { transform: translateY(-3px); }

/* Btn more */
.btn-more { text-align: center; margin-top: 30px; }
.btn-more .button {
    display: inline-block;
    padding: 12px 32px;
    background: #0083c1; color: #fff;
    border-radius: 6px; font-weight: 600; font-size: 14px;
    text-decoration: none; transition: background 0.2s;
}
.btn-more .button:hover { background: #006fa3; }

/* ============================================
   FOOTER
   ============================================ */
.mainFooter { background: #0d2a47; color: #ccc; padding: 50px 0 0; }
.footer-top { padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 30px; }
.title-footer { color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.content-footer p { font-size: 14px; line-height: 1.7; color: #aab; }
.address-footer ul { list-style: none; padding: 0; margin: 12px 0 0; }
.address-footer li { font-size: 14px; color: #aab; margin-bottom: 8px; display: flex; gap: 8px; align-items: flex-start; }
.address-footer li i { color: #4fc3f7; margin-top: 3px; flex-shrink: 0; }
.address-footer a { color: #4fc3f7; }
.footerNav-social { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; }
.footerNav-social li a {
    color: #fff; font-size: 16px;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255,255,255,0.1);
    transition: background 0.2s;
}
.footerNav-social li a:hover { background: #0083c1; }
.box-map-contact iframe { border-radius: 8px; }
.footer-copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0; margin-top: 30px;
    font-size: 13px; color: #778;
}

/* ============================================
   FLOATING SOCIAL BUTTONS
   ============================================ */
.addThis_listSharing {
    position: fixed; right: 16px; bottom: 80px;
    z-index: 9000;
    display: flex; flex-direction: column; gap: 10px;
}
.addThis_listing { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.addThis_item a {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
}
.addThis_item a:hover { box-shadow: 0 5px 20px rgba(0,0,0,0.25); transform: scale(1.1); }
.addThis_item svg { width: 44px !important; height: 44px !important; }
.tooltip-text { display: none; }

/* ============================================
   GENERAL
   ============================================ */
* { box-sizing: border-box; }
body { font-family: 'Be Vietnam Pro', sans-serif; font-size: 15px; color: #333; margin: 0; }
img { max-width: 100%; height: auto; }
a { transition: color 0.2s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
@media (max-width: 767px) {
    .about-content { padding-left: 0; padding-top: 30px; }
    .counter-content { padding-left: 0; padding-top: 30px; }
    .heading-title .title { font-size: 22px; }
}
@media (max-width: 575px) {
    .topbar .topbar-left { flex-wrap: wrap; gap: 8px; }
    .slider-owl .slide--image img { max-height: 280px; }
}
