/* ============================================================
   DSTCC — layout.css
   Global Layout: Navbar, Hero, Footer, Navigation, Trust Bar
   ============================================================ */

/* ============================================================
   1. TOP INFO BAR
   ============================================================ */
.top-info-bar {
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  padding: 6px 0;
}
.top-info-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-info-left span { margin-right: 18px; }
.top-info-left i    { color: var(--accent); margin-right: 6px; }
.top-info-right     { opacity: 0.85; }
.top-info-right span {
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
}

/* ============================================================
   2. NAVBAR
   ============================================================ */
.header-main {
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 40, 100, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.35s ease, margin-bottom 0.35s ease;
  margin-bottom: 0;
  border-bottom: 2px solid transparent;
  padding: 12px 0;
}
.header-main.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--accent);
  box-shadow: 0 4px 24px rgba(0, 40, 100, 0.12);
  padding: 6px 0;
  margin-bottom: 57px;
}
.header-main .navbar-brand img {
  height: 100px;
  transition: height 0.35s ease;
}
.header-main.scrolled .navbar-brand img {
  height: 55px;
}

.navbar-nav { gap: 20px; }

.nav-link {
  font-family: 'Barlow Condensed', sans-serif;
  color: var(--primary) !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  padding: 10px 14px !important;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 4px;
  left: 14px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-link:hover::after,
.nav-link.active::after { width: calc(100% - 28px); }

/* Dropdown */
.dropdown-menu {
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 12px 48px rgba(0, 37, 84, 0.15);
  margin-top: 2px;
  border-top: 4px solid var(--accent);
  padding: 8px 0;
  min-width: 280px;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.98);
  animation: slideDown 0.2s ease-out;
  overflow: hidden;
}
.dropdown-item {
  font-family: 'Inter', sans-serif;
  padding: 14px 26px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--primary);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  border-left: 3px solid transparent;
  min-height: 48px;
}
.dropdown-item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 56px; right: 26px;
  height: 1px;
  background: linear-gradient(to right, rgba(0, 63, 127, 0.2), transparent);
}
.dropdown-item:last-child::before { display: none; }
.dropdown-item i {
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.dropdown-item:hover,
.dropdown-item:focus {
  background: linear-gradient(90deg, rgba(245, 168, 0, 0.1) 0%, rgba(245, 168, 0, 0.02) 100%);
  color: var(--primary);
  border-left-color: var(--accent);
  padding-left: 28px;
}
.dropdown-item:hover i { transform: scale(1.15) translateX(1px); color: var(--accent-dark); }

/* Hover dropdown (Desktop) */
@media (min-width: 992px) {
  .navbar .nav-item.dropdown:hover .dropdown-menu { display: block; }
  .navbar .nav-item.dropdown:hover::after {
    content: '';
    position: absolute;
    top: 100%; left: 0; right: 0;
    height: 8px;
    pointer-events: auto;
  }
}

/* ============================================================
   3. DOT NAVIGATION
   ============================================================ */
#dot-nav {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#dot-nav a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  cursor: pointer;
}
#dot-nav .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(0, 63, 127, 0.25);
  border: 2px solid rgba(0, 63, 127, 0.4);
  transition: all var(--transition);
  flex-shrink: 0;
}
#dot-nav .dot-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 3px 10px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--transition);
  pointer-events: none;
}
#dot-nav a:hover .dot-label,
#dot-nav a.active .dot-label { opacity: 1; transform: translateX(0); }
#dot-nav a.active .dot { background: var(--accent); border-color: var(--accent-dark); transform: scale(1.4); }
@media (max-width: 768px) { #dot-nav { display: none; } }

/* ============================================================
   4. HERO BANNER
   ============================================================ */
.hero-banner {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  color: var(--white);
  overflow: hidden;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
  pointer-events: none;
  user-select: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(0,37,84,0.72) 0%, rgba(0,63,127,0.60) 55%, rgba(0,20,50,0.80) 100%);
  z-index: 1;
}
.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-content { max-width: 520px; color: #fff; }

.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.hero-eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 168, 0, 0.15);
  border: 1px solid rgba(245, 168, 0, 0.45);
  color: var(--accent);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 3px;
  animation: fadeInDown 0.6s both;
}
.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 0.8s 0.25s both;
  max-width: 850px;
}
.hero-title-accent { color: var(--accent); }
.hero-sub {
  font-size: 1.15rem;
  opacity: 0.88;
  max-width: 600px;
  margin-top: 16px;
  animation: fadeInUp 0.8s 0.45s both;
  line-height: 1.6;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  animation: fadeInUp 0.8s 0.6s both;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  align-items: center;
  margin-top: 44px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  backdrop-filter: blur(8px);
  overflow: hidden;
  animation: fadeInUp 0.8s 0.7s both;
  max-width: 600px;
}
.hero-stat { flex: 1; text-align: center; padding: 16px 12px; }
.hero-stat-num {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.hero-stat-lbl {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.hero-stat-divider {
  width: 1px; height: 44px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}
.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: absolute;
  bottom: 36px; right: 48px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.7);
  animation: bounce 2.5s infinite;
}
.hero-scroll-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Inner page hero */
.inner-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(rgba(0,25,65,0.72), rgba(0,20,55,0.85)),
              url('../image/themes_img_1.webp') center 35% / cover no-repeat !important;
  min-height: 220px;
  display: flex;
  align-items: center;
}

/* ============================================================
   5. TRUST BADGE BAR
   ============================================================ */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
  box-shadow: 0 4px 20px rgba(0, 40, 100, 0.06);
}
.trust-bar-inner {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.trust-bar-inner::-webkit-scrollbar { display: none; }
.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  transition: background var(--transition);
  cursor: default;
}
.trust-badge:last-child { border-right: none; }
.trust-badge:hover { background: var(--bg-light); }
.trust-badge-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.trust-badge-text { line-height: 1.25; }
.trust-badge-text strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.03em;
}
.trust-badge-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================================
   6. SECTION TITLES
   ============================================================ */
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.section-title::after {
  content: '';
  display: block;
  width: 52px;
  height: 4px;
  background: var(--accent);
  margin-top: 14px;
  border-radius: 2px;
}
.section-title.center { text-align: center; }
.section-title.center::after { margin: 14px auto 0; }
.section-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
  text-align: center;
}

/* ============================================================
   7. FOOTER
   ============================================================ */
.footer-main {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.65);
  padding: 70px 0 28px;
}
.footer-brand img {
  height: 48px;
  margin-bottom: 16px;
  filter: brightness(2);
}
.footer-main h5 {
  font-family: 'Barlow Condensed', sans-serif;
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.footer-main ul li { margin-bottom: 10px; }
.footer-main a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}
.footer-main a:hover { color: var(--accent); padding-left: 4px; }
.footer-divider {
  border-color: rgba(255, 255, 255, 0.08);
  margin: 32px 0 24px;
}
.footer-bottom { font-size: 0.82rem; opacity: 0.5; }
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--white);
  margin-right: 8px;
  font-size: 1rem;
  transition: all var(--transition);
}
.social-links a:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

/* ============================================================
   8. MOBILE BOTTOM NAV
   ============================================================ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1100;
  background: #fff;
  border-top: 1px solid rgba(0, 63, 127, 0.1);
  box-shadow: 0 -4px 20px rgba(0, 40, 100, 0.12);
  padding-bottom: max(env(safe-area-inset-bottom), 8px);
}
.mobile-bottom-nav-inner {
  display: flex;
  align-items: stretch;
  height: 60px;
}
.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-item i { font-size: 1.25rem; transition: transform 0.2s ease; }
.mobile-nav-item:active { background: var(--bg-light); }
.mobile-nav-item.active { color: var(--primary); }
.mobile-nav-item.active i { transform: translateY(-2px); }

.mobile-nav-item.cta-call { flex: 0 0 72px; position: relative; }
.mobile-nav-item.cta-call .mobile-nav-cta-btn {
  width: 48px; height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-size: 1.3rem;
  box-shadow: 0 4px 16px rgba(245, 168, 0, 0.5);
  position: relative;
  top: -10px;
  transition: all 0.2s ease;
  animation: pulse-cta 2.5s infinite;
}
.mobile-nav-item.cta-call span { margin-top: -6px; color: var(--primary); font-size: 0.6rem; }
.mobile-nav-item.cta-call:active .mobile-nav-cta-btn { transform: scale(0.93); }
@media (max-width: 991px) { .mobile-bottom-nav { display: block; } }

/* ============================================================
   9. MARQUEE / PARTNERS
   ============================================================ */
.marquee-section {
  background: var(--white);
  padding: 50px 0;
  border-top: 1px solid var(--border);
}
.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.marquee-wrapper::before,
.marquee-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px; height: 100%;
  z-index: 2;
}
.marquee-wrapper::before { left: 0; background: linear-gradient(to right, var(--white), transparent); }
.marquee-wrapper::after  { right: 0; background: linear-gradient(to left, var(--white), transparent); }
.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
}
.marquee-content img {
  height: 60px;
  margin: 0 36px;
  filter: grayscale(100%) opacity(50%);
  transition: all var(--transition);
  vertical-align: middle;
}
.marquee-content img:hover { filter: grayscale(0%) opacity(100%); transform: scale(1.08); }

/* ============================================================
   10. BACKGROUND THEMES (section overlays)
   ============================================================ */
#gioi-thieu { position: relative; overflow: hidden; isolation: isolate; }
#gioi-thieu::before {
  content: ''; position: absolute; inset: 0;
  pointer-events: none; z-index: -1;
  background: linear-gradient(135deg, rgba(240,244,250,0.80) 0%, rgba(238,241,245,0.76) 100%),
              url('../image/themes_img_3.webp') center / cover no-repeat;
}
#phong-thi-nghiem { position: relative; overflow: hidden; isolation: isolate; }
#phong-thi-nghiem::before {
  content: ''; position: absolute; inset: 0;
  pointer-events: none; z-index: -1;
  background: linear-gradient(160deg, rgba(255,255,255,0.86) 0%, rgba(244,246,249,0.83) 100%),
              url('../image/themes_img_2.webp') center top / cover no-repeat;
}
#du-an { position: relative; overflow: hidden; isolation: isolate; }
#du-an::before {
  content: ''; position: absolute; inset: 0;
  pointer-events: none; z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.80) 100%),
              url('../image/themes_img_1.webp') center 40% / cover no-repeat;
}
.contact-section { position: relative; overflow: hidden; isolation: isolate; }
.contact-section::before {
  content: ''; position: absolute; inset: 0;
  pointer-events: none; z-index: -1;
  background: linear-gradient(135deg, rgba(240,244,252,0.88) 0%, rgba(230,236,248,0.84) 100%),
              url('../image/themes_img_3.webp') center / cover no-repeat;
}
.services-bg { position: relative; overflow: hidden; isolation: isolate; }
.services-bg::before {
  content: ''; position: absolute; inset: 0;
  pointer-events: none; z-index: -1;
  background: linear-gradient(to right, var(--primary) 32%, rgba(240,245,255,0.88) 32%),
              url('../image/themes_img_1.webp') right center / cover no-repeat;
}