/* Khung ITT — tách từ header_code của CMS (GĐ-A, 2026-10-12).

   Không còn base64; logo là tệp thật ở assets/img/logo.png. */

:root {
  --color-primary: #0b4a8f;
  --color-accent: #e11d48;
  --color-accent-orange: #ea580c;
  --color-dark: #0f172a;
  --font-base: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-base) !important;
  margin: 0;
  padding: 0;
  color: #1e293b;
}

/* Hide AIWeb default wrapper footers/headers */
.aiweb-public-footer, .aiweb-public-header, .site-header, .site-footer, .aiweb-pf-inner, .aiweb-pf-site {
  display: none !important;
}

/* 1. TOPBAR: Deep Blue Navy */
.itt-topbar-root {
  background: #0b4a8f;
  color: #ffffff;
  font-size: 13px;
  border: none !important;
  border-bottom: none !important;
  margin: 0;
  padding: 0;
}
.itt-topbar-container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.itt-topbar-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.itt-topbar-link {
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.95;
}
.itt-topbar-link:hover { opacity: 1; text-decoration: underline; }

.itt-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.itt-topbar-apply-btn {
  background: linear-gradient(135deg, #e11d48 0%, #ea580c 100%);
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(225,29,72,0.35);
  transition: all 0.2s ease;
}
.itt-topbar-apply-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(225,29,72,0.45);
}

/* 2. MAIN HEADER: Perfectly Centered, Height 78px */
.itt-main-header {
  background: #ffffff;
  box-shadow: 0 2px 15px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  height: 78px;
  min-height: 78px;
  max-height: 78px;
  display: flex;
  align-items: center;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.itt-header-container {
  max-width: 1260px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo Left */
.itt-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.itt-logo-img {
  width: 50px;
  height: 50px;
  max-width: 50px;
  max-height: 50px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.itt-logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  white-space: nowrap;
}
.itt-logo-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin: 0;
  padding: 0;
}
.itt-logo-sub {
  font-size: 16px;
  font-weight: 900;
  color: #0b4a8f;
  letter-spacing: 0.4px;
  line-height: 1.25;
  margin: 0;
  padding: 0;
}

/* Menu Right */
.itt-nav, .itt-nav-wrap { 
  display: inline-flex; 
  align-items: center; 
  flex-shrink: 0;
  height: 100%;
}
.itt-nav-ul {
  display: inline-flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
  height: 100%;
}
.itt-nav-li { 
  position: relative;
  height: 100%;
  display: inline-flex;
  align-items: center;
}
.itt-nav-a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 42px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.itt-nav-a:hover, .itt-nav-li:hover > .itt-nav-a { 
  color: #0b4a8f; 
  background: #f8fafc; 
}
.itt-arrow-icon {
  font-size: 10px;
  color: #64748b;
  display: inline-block;
  margin-left: 2px;
}

/* 3. SUBMENU DROPDOWN */
.itt-dropdown-box {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 250px;
  padding: 0;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
  border: 1px solid #e2e8f0;
  border-top: none;
  list-style: none;
  margin: 0;
  z-index: 1001;
  overflow: hidden;
  animation: ittFadeIn 0.2s ease-out;
}
.itt-dropdown-box li {
  border-bottom: 1px solid #f1f5f9;
  margin: 0;
  padding: 0;
}
.itt-dropdown-box li:last-child { border-bottom: none; }
.itt-dropdown-box li a {
  display: block;
  padding: 12px 18px;
  font-size: 14.5px;
  font-weight: 500 !important;
  color: #1e293b !important;
  text-decoration: none;
  white-space: nowrap !important;
  transition: all 0.2s ease;
  background: #ffffff;
}
.itt-dropdown-box li a:hover {
  background: #f8fafc;
  color: #0b4a8f !important;
  padding-left: 22px;
}
.itt-nav-li:hover > .itt-dropdown-box { display: block !important; }

/* 4. MEGA DROPDOWN (Chương trình đào tạo) */
.itt-mega-dropdown {
  display: none !important;
  position: absolute;
  top: 100%;
  right: -100px;
  left: auto;
  width: 900px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  padding: 22px 24px;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.12);
  border: 1px solid #e2e8f0;
  border-top: none;
  z-index: 1001;
  animation: ittFadeIn 0.2s ease-out;
  box-sizing: border-box;
}
.itt-nav-li:hover > .itt-mega-dropdown { display: block !important; }

.itt-mega-grid {
  display: grid;
  grid-template-columns: 320px 280px 260px;
  gap: 0;
  align-items: start;
}
.itt-mega-col-1 { padding-right: 18px; }
.itt-mega-col-2 {
  padding: 0 18px;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
}
.itt-mega-col-3 { padding-left: 18px; }

.itt-mega-col-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #0b4a8f;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.itt-mega-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.itt-mega-list li { border-bottom: 1px solid #f8fafc; }
.itt-mega-list li:last-child { border-bottom: none; }
.itt-mega-list li a {
  display: block;
  padding: 7px 6px;
  font-size: 14px;
  font-weight: 500 !important;
  color: #334155 !important;
  text-decoration: none;
  white-space: nowrap !important;
  transition: all 0.2s ease;
}
.itt-mega-list li a:hover {
  background: #f0f7ff;
  color: #0b4a8f !important;
  padding-left: 10px;
  border-radius: 4px;
}

.itt-mob-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #0f172a;
  cursor: pointer;
}

/* 5. FOOTER STYLES */
.itt-footer-root {
  background: #0a1128;
  color: #cbd5e1;
  padding: 60px 20px 0;
  font-family: var(--font-base);
}
.itt-footer-container {
  max-width: 1260px;
  margin: 0 auto;
}
.itt-footer-grid-3 {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 0.9fr;
  gap: 40px;
  padding-bottom: 50px;
  align-items: start;
}
.itt-footer-col h3, .itt-footer-title {
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.35;
}
.itt-footer-accent-line {
  width: 36px;
  height: 3px;
  background: #e11d48;
  border-radius: 2px;
  margin-bottom: 18px;
}
.itt-footer-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 20px;
}
.itt-footer-hq {
  font-size: 13.5px;
  line-height: 1.6;
}
.itt-footer-hq-label {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 4px;
}
.itt-footer-hq-val { color: #cbd5e1; }

.itt-footer-branches {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 13.5px;
  line-height: 1.6;
}
.itt-branch-item { color: #cbd5e1; }
.itt-branch-name {
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
}
.itt-branch-addr {
  color: #94a3b8;
  padding-left: 18px;
}

.itt-footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.itt-contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #cbd5e1;
  transition: transform 0.2s;
}
.itt-contact-row:hover {
  transform: translateX(4px);
  color: #38bdf8;
}
.itt-contact-icon-wrap {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e11d48;
  font-size: 15px;
  flex-shrink: 0;
}
.itt-contact-text {
  font-size: 14.5px;
  font-weight: 600;
}

.itt-bottombar-root {
  border-top: 1px solid rgba(255,255,255,0.08);
  background: #070b18;
  padding: 20px;
  margin: 0 -20px;
}
.itt-bottombar-container {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 13px;
  color: #94a3b8;
}
.itt-bottombar-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.itt-bottombar-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}
.itt-bottombar-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* 6. FLOATING ACTIONS */
.itt-floating-actions {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}
.itt-btn-backtotop {
  width: 48px;
  height: 48px;
  background: #0284c7;
  color: #ffffff;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 4px 15px rgba(2,132,199,0.4);
  cursor: pointer;
  border: none;
  transition: transform 0.2s, background 0.2s;
}
.itt-btn-backtotop:hover {
  transform: translateY(-2px);
  background: #0369a1;
}
.itt-btn-float-chat {
  width: 48px;
  height: 48px;
  background: #0284c7;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 15px rgba(2,132,199,0.4);
  text-decoration: none;
  position: relative;
  transition: transform 0.2s;
}
.itt-btn-float-chat:hover { transform: scale(1.08); }
.itt-chat-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

@keyframes ittFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- RESPONSIVE BREAKPOINTS ---------- */

/* Màn hình trung bình / Laptop nhỏ (1101px – 1200px) */
@media (max-width: 1200px) and (min-width: 993px) {
  .itt-header-container {
    padding: 0 14px;
    gap: 12px;
  }
  .itt-logo-wrap {
    gap: 10px;
  }
  .itt-logo-img {
    width: 44px;
    height: 44px;
    max-width: 44px;
    max-height: 44px;
  }
  .itt-logo-title {
    font-size: 12.5px;
    letter-spacing: 0.2px;
  }
  .itt-logo-sub {
    font-size: 14.5px;
    letter-spacing: 0.3px;
  }
  .itt-nav-ul {
    gap: 4px;
  }
  .itt-nav-a {
    padding: 0 8px;
    font-size: 13.5px;
    gap: 3px;
  }
  .itt-topbar-link {
    font-size: 12px;
  }
  .itt-mega-dropdown {
    right: -140px !important;
    left: auto !important;
    width: 840px !important;
    max-width: calc(100vw - 32px) !important;
    padding: 18px 20px;
  }
  .itt-mega-grid {
    grid-template-columns: 300px 260px 240px;
  }
}

/* Màn hình tablet ngang / quanh 1024px (993px – 1100px) */
@media (max-width: 1100px) and (min-width: 993px) {
  .itt-header-container {
    padding: 0 10px;
    gap: 8px;
  }
  .itt-logo-wrap {
    gap: 8px;
  }
  .itt-logo-img {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
  }
  .itt-logo-title {
    font-size: 11px;
    letter-spacing: 0.2px;
  }
  .itt-logo-sub {
    font-size: 13px;
    letter-spacing: 0.2px;
  }
  .itt-nav-ul {
    gap: 2px;
  }
  .itt-nav-a {
    padding: 0 5px;
    font-size: 12.5px;
    gap: 2px;
  }
  .itt-arrow-icon {
    font-size: 9px;
    margin-left: 1px;
  }
  .itt-topbar-link {
    font-size: 11.5px;
  }
  .itt-mega-dropdown {
    right: -160px !important;
    left: auto !important;
    width: 760px !important;
    max-width: calc(100vw - 20px) !important;
    padding: 16px 16px;
  }
  .itt-mega-grid {
    grid-template-columns: 270px 235px 225px;
  }
}

/* Mobile & Tablet dọc (<= 992px) */
@media (max-width: 992px) {
  .itt-topbar-root { display: none; }
  .itt-mob-btn { display: block; }
  .itt-logo-wrap {
    gap: 10px;
  }
  .itt-logo-img {
    width: 42px;
    height: 42px;
    max-width: 42px;
    max-height: 42px;
  }
  .itt-logo-title {
    font-size: 12px;
  }
  .itt-logo-sub {
    font-size: 14px;
  }
  .itt-nav, .itt-nav-wrap {
    display: none;
    position: fixed;
    top: 78px;
    left: 0;
    width: 100%;
    height: calc(100vh - 78px);
    background: #ffffff;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    z-index: 1000;
  }
  .itt-nav.active, .itt-nav-wrap.active { display: block; }
  .itt-nav-ul {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    height: auto;
  }
  .itt-nav-li {
    height: auto;
    display: block;
  }
  .itt-nav-a {
    height: 44px;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 14.5px;
    border-radius: 8px;
  }
  .itt-dropdown-box, .itt-mega-dropdown {
    display: none !important;
    position: static !important;
    width: 100% !important;
    left: auto !important;
    right: auto !important;
    max-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 0 10px 15px !important;
    animation: none !important;
    background: transparent !important;
  }
  .itt-nav-li.active-mobile > .itt-dropdown-box,
  .itt-nav-li.active-mobile > .itt-mega-dropdown {
    display: block !important;
  }
  .itt-mega-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  .itt-mega-col-1, .itt-mega-col-2, .itt-mega-col-3 {
    padding: 0 !important;
    border: none !important;
  }
  .itt-footer-grid-3 { grid-template-columns: 1fr; gap: 35px; }
}

/* Điện thoại nhỏ (<= 420px, e.g. iPhone 390px, 375px) */
@media (max-width: 420px) {
  .itt-header-container {
    padding: 0 12px;
  }
  .itt-logo-wrap {
    gap: 8px;
  }
  .itt-logo-img {
    width: 36px;
    height: 36px;
    max-width: 36px;
    max-height: 36px;
  }
  .itt-logo-title {
    font-size: 10.5px;
  }
  .itt-logo-sub {
    font-size: 12.5px;
  }
}

