﻿/* ============================================================
   SAU — Shenyang Aerospace University
   Complete Modern Redesign
   Colors: Navy #003087 | Gold #c8963e | Light #f5f8fc
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #2d3748;
  background: #ffffff;
  overflow-x: hidden;
}

/* Prevent inline-image baseline gap in all contexts */
img { max-width: 100%; height: auto; display: block; }

a { color: #003087; text-decoration: none; }
a:hover { color: #c8963e; }

h1,h2,h3,h4,h5,h6 {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: #1a2744;
  margin: 0 0 15px;
}

p { margin: 0 0 14px; }

ul { padding-left: 20px; }

/* ── Layout Utilities ─────────────────────────────────────── */
.sau-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* ── Top Info Bar ─────────────────────────────────────────── */
.top-bar {
  background: #003087;
  color: #a8c4f0;
  font-size: 12.5px;
  padding: 7px 0;
  border-bottom: 1px solid #0a2060;
}
.top-bar .sau-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.top-bar a { color: #a8c4f0; }
.top-bar a:hover { color: #fff; }
.top-bar .tb-left { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.top-bar .tb-right { display: flex; gap: 8px; align-items: center; }
.top-bar i { margin-right: 2px; }
.top-bar .tb-btn {
  background: #c8963e;
  color: #fff !important;
  padding: 3px 6px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 12px;
}
.top-bar .tb-btn:hover { background: #b07c30; color: #fff !important; }
.tb-admission-badge {
  background: #c8963e;
  color: #1a1a1a;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 7px;
  border-radius: 3px;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

/* WeChat QR popup in top bar */
.wechat-qr-wrap {
  position: relative;
  cursor: pointer;
  user-select: none;
}
.wechat-qr-popup {
  display: none;
  position: fixed;
  z-index: 99999;
  background: #fff;
  padding: 0;
  margin: 0;
  border: 3px solid #003087;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  line-height: 0;
}
.wechat-qr-popup img {
  display: block;
  width: 220px;
  height: 220px;
  padding: 0;
  margin: 0;
  border-radius: 3px;
  object-fit: contain;
}
/* hover on desktop */
@media (min-width: 992px) {
  .wechat-qr-wrap:hover .wechat-qr-popup { display: block; }
}
/* click-toggle on all screen sizes */
.wechat-qr-wrap.qr-open .wechat-qr-popup { display: block; }

/* ── Main Navigation ──────────────────────────────────────── */
.site-nav {
  background: #003087;
  border-bottom: 3px solid #c8963e;
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  overflow: visible;
}
.site-nav { overflow: visible; }
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  padding: 3px 0;
  margin: 0;
  flex-shrink: 0;
}
.nav-brand .brand-logo {
  display: block;
  height: 62px;
  max-height: 62px;
  max-width: none;
  width: auto;
  padding: 0;
  margin: 0;
}
.nav-brand .brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-brand .brand-name {
  font-size: 17px;
  font-weight: 800;
  color: #003087;
  letter-spacing: -0.3px;
}
.nav-brand .brand-sub {
  font-size: 10.5px;
  color: #c8963e;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 0; flex-shrink: 1; }
.nav-menu > li { position: relative; display: flex; align-items: center; }
.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 5px;
  height: 68px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li.active > a { color: #f0c060; background: rgba(255,255,255,0.08); }
.nav-menu > li > a .caret {
  border-top: 5px solid currentColor;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  display: inline-block;
  vertical-align: middle;
  margin-top: 1px;
}
.nav-menu > li > a.nav-apply {
  background: #c8963e;
  color: #fff !important;
  margin-left: 3px;
  border-radius: 4px;
  padding: 0 9px;
  height: 38px;
}
.nav-menu > li > a.nav-apply:hover { background: #b07c30; }

/* Dropdowns */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border-top: 3px solid #003087;
  border-radius: 0 0 6px 6px;
  padding: 6px 0;
  list-style: none;
  margin: 0;
  z-index: 10000;
}
.dropdown-menu li a {
  display: block;
  padding: 9px 10px;
  color: #2d3748;
  font-size: 13.5px;
  font-weight: 500;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.dropdown-menu li a:hover { background: #f0f5ff; color: #003087; }
.dropdown-menu .divider { height: 1px; background: #eee; margin: 4px 0; }
.nav-menu > li:hover .dropdown-menu { display: block; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 4px;
  padding: 6px 5px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px;
}

/* ── Page Banner / Hero Strip ─────────────────────────────── */
.page-banner {
  background: linear-gradient(rgba(0,30,90,0.75), rgba(0,30,90,0.80)),
              url('/images/gallery/1543134973_08.jpg') center/cover no-repeat;
  color: #fff;
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 300px; height: 300px;
  background: rgba(200,150,62,0.15);
  border-radius: 50%;
}
.page-banner::after {
  content: '';
  position: absolute;
  left: 30%; bottom: -40px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.page-banner h1 {
  color: #fff;
  font-size: 32px;
  margin-bottom: 8px;
}
.page-banner .breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.page-banner .breadcrumb a { color: rgba(255,255,255,0.8); }
.page-banner .breadcrumb a:hover { color: #c8963e; }
.page-banner .breadcrumb > li + li::before { color: rgba(255,255,255,0.5); content: '/ '; }

/* ── HOMEPAGE: Hero Slider ────────────────────────────────── */
/*
 * CLS FIX: height is set ONLY on .hero-slider (the outer wrapper).
 * All children fill it with height:100%.
 * Images no longer define the container — they fill it.
 * This eliminates the 60px layout shift that caused CLS 0.60.
 */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: #000;           /* neutral black — never visible with crossfade */
  height: 480px;              /* locked — never changes on any event */
}
/* Bootstrap carousel containers must fill the locked wrapper */
.hero-slider .carousel,
.hero-slider .carousel-inner {
  height: 100%;
  overflow: hidden;
}
/* Each slide fills parent exactly — no min-height, no auto-sizing */
.hero-slider .item {
  height: 100%;
  position: relative;
  overflow: hidden;
}
/* Image fills the slide — container defines size, not the image */
.hero-slider .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Crossfade transition (replaces Bootstrap's slide) ──────── *
 * carousel-fade class on #mainCarousel overrides the default    *
 * left-slide animation with an opacity crossfade so the         *
 * container background never flashes between images.            */
.carousel-fade .item {
  opacity: 0;
  transition: opacity 0.8s ease-in-out !important;
  left: 0 !important;         /* disable horizontal movement */
}
.carousel-fade .item.active {
  opacity: 1;
}
.carousel-fade .item.active.left,
.carousel-fade .item.active.right {
  opacity: 0;
  left: 0 !important;
  z-index: 1;
}
.carousel-fade .item.next,
.carousel-fade .item.prev {
  left: 0 !important;
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;               /* must match locked container height */
}
.carousel-fade .item.next.left,
.carousel-fade .item.prev.right {
  opacity: 1;
  left: 0 !important;
}
.carousel-fade .carousel-control { z-index: 2; }
.hero-slider .carousel-caption {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  left: 8%;
  right: auto;
  max-width: 540px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.hero-slider .carousel-caption h2 {
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
}
.hero-slider .carousel-caption p {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 24px;
}
.hero-slider .carousel-caption .btn-hero {
  background: #c8963e;
  color: #fff;
  padding: 12px 30px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  transition: background .2s, transform .2s;
}
.hero-slider .carousel-caption .btn-hero:hover { background: #b07c30; transform: translateY(-2px); }

/* Gradient overlay on slides */
.hero-slider .item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,30,87,0.65) 0%, rgba(0,30,87,0.1) 60%);
  z-index: 1;
}
.hero-slider .carousel-caption { z-index: 2; }

.hero-slider .carousel-control {
  width: 50px;
  background: rgba(0,48,135,0.4);
  opacity: 1;
}
.hero-slider .carousel-control:hover { background: rgba(0,48,135,0.7); }

/* ── Floating "Become a Partner" left-side tab ──────────────── *
 * writing-mode: vertical-lr makes the element naturally tall    *
 * and narrow without any rotation math.                         *
 * rotate(180deg) reverses the text direction to read bottom-up, *
 * which is the conventional left-side tab orientation.          *
 * translateY(-50%) centers it vertically before the flip.       */
.partner-float-btn {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-lr;
  z-index: 9999;
  background: #1a7a4a;
  color: #fff !important;
  padding: 20px 11px;
  /* border-radius: 6px on LEFT side of original element → becomes
     the protruding (right) edge after rotate(180deg)            */
  border-radius: 6px 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.6px;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 0 14px rgba(0,0,0,0.28);
  transition: background 0.2s, box-shadow 0.2s;
}
.partner-float-btn:hover {
  background: #0f4d2e;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(0,0,0,0.38);
}
.partner-float-btn .pf-dot {
  display: block;
  width: 8px;
  height: 8px;
  background: #f0a500;
  border-radius: 50%;
  margin: 0 auto 9px;  /* margin-bottom = gap between dot and text in vertical flow */
}
/* Hide on small screens — button would obscure content */
@media (max-width: 767px) { .partner-float-btn { display: none; } }

/* Placeholder hero (no slides) */
.hero-placeholder {
  min-height: 480px;
  background: linear-gradient(rgba(0,30,90,0.68), rgba(0,30,90,0.72)),
              url('/images/slider/1/1543141853_08.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 80px 0;
}
.hero-placeholder h1 {
  font-size: 42px;
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-placeholder p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 30px;
}
.hero-placeholder .btn-gold {
  background: #c8963e;
  color: #fff;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 4px;
  display: inline-block;
  text-decoration: none;
  margin-right: 12px;
  transition: background .2s;
}
.hero-placeholder .btn-gold:hover { background: #b07c30; color: #fff; }
.hero-placeholder .btn-outline-white {
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  display: inline-block;
  text-decoration: none;
  transition: background .2s;
}
.hero-placeholder .btn-outline-white:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* ── HOMEPAGE: Quick Links ────────────────────────────────── */
.quick-links {
  background: #003087;
  padding: 0;
}
.quick-links ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.quick-links ul li { flex: 1; min-width: 130px; }
.quick-links ul li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 22px 10px;
  color: rgba(255,255,255,0.85);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: background .2s, color .2s;
  min-height: 80px;
}
.quick-links ul li a:hover { background: #c8963e; color: #fff; }
.quick-links ul li a i {
  font-size: 22px;
  display: block;
}
.quick-links ul li a .ql-icon {
  width: 30px; height: 30px;
  margin-bottom: 2px;
}

/* ── HOMEPAGE: Stats Bar ──────────────────────────────────── */
.stats-bar {
  background: linear-gradient(90deg, #0a1628 0%, #003087 100%);
  padding: 40px 0;
}
.stats-bar .stat-item {
  text-align: center;
  padding: 10px 20px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stats-bar .stat-item:last-child { border-right: none; }
.stats-bar .stat-num {
  font-size: 40px;
  font-weight: 800;
  color: #c8963e;
  line-height: 1;
  display: block;
}
.stats-bar .stat-label {
  font-size: 12.5px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}

/* ── HOMEPAGE: Section headers ────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e8edf5;
}
.section-header h2 {
  font-size: 22px;
  color: #003087;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-header h2::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 22px;
  background: #c8963e;
  border-radius: 3px;
}
.section-header .more-link {
  font-size: 13px;
  font-weight: 600;
  color: #003087;
  text-decoration: none;
  border: 1px solid #003087;
  padding: 4px 12px;
  border-radius: 3px;
  transition: background .2s, color .2s;
}
.section-header .more-link:hover { background: #003087; color: #fff; }

/* ── HOMEPAGE: SEO intro strip ────────────────────────────── */
.seo-intro-strip {
    background: #fff;
    padding: 28px 0 20px;
    border-bottom: 1px solid #e8edf4;
}
.seo-intro-strip .seo-h1 {
    font-size: 20px;
    font-weight: 700;
    color: #1a2744;
    margin: 0 0 8px;
    line-height: 1.35;
}
.seo-intro-strip .seo-p {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.65;
    margin: 0;
}
.seo-keyword-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    padding-top: 4px;
}
.seo-pill {
    display: inline-block;
    background: #eef2ff;
    color: #003087;
    border: 1px solid #c8d8f0;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s;
    white-space: nowrap;
}
.seo-pill:hover { background: #003087; color: #fff; border-color: #003087; text-decoration: none; }
.seo-pill-gold { background: #fff8e1; color: #b8860b; border-color: #f0c850; }
.seo-pill-gold:hover { background: #f0a500; color: #fff; border-color: #f0a500; }

/* ── HOMEPAGE: News & Events ──────────────────────────────── */
.news-events-section { background: #f5f8fc; padding: 60px 0; }

.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li {
  display: flex;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid #e8edf5;
  align-items: flex-start;
}
.news-list li:last-child { border-bottom: none; }
.news-list .news-date {
  flex-shrink: 0;
  background: #003087;
  color: #fff;
  text-align: center;
  padding: 8px 12px;
  border-radius: 4px;
  line-height: 1.2;
  min-width: 52px;
}
.news-list .news-date .nd-day {
  display: block;
  font-size: 22px;
  font-weight: 800;
}
.news-list .news-date .nd-mon {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
}
.news-list .news-body a {
  font-size: 14px;
  font-weight: 600;
  color: #1a2744;
  text-decoration: none;
  display: block;
  line-height: 1.4;
  margin-bottom: 4px;
}
.news-list .news-body a:hover { color: #003087; }
.news-list .news-body .news-meta {
  font-size: 12px;
  color: #6c757d;
}

/* ── HOMEPAGE: Featured Programs ─────────────────────────── */
.programs-section { padding: 60px 0; }
.prog-card {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  padding: 28px 24px;
  margin-bottom: 20px;
  transition: box-shadow .2s, transform .2s;
  height: 100%;
}
.prog-card:hover {
  box-shadow: 0 8px 30px rgba(0,48,135,0.12);
  transform: translateY(-3px);
}
.prog-card .prog-icon {
  width: 54px; height: 54px;
  background: linear-gradient(135deg, #003087, #0d47a1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
  color: #fff;
}
.prog-card h4 {
  font-size: 16px;
  color: #003087;
  margin-bottom: 8px;
}
.prog-card p { font-size: 13px; color: #6c757d; margin-bottom: 16px; }
.prog-card .prog-link {
  font-size: 13px;
  font-weight: 700;
  color: #c8963e;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.prog-card .prog-link:hover { color: #003087; }

/* ── HOMEPAGE: Why SAU ────────────────────────────────────── */
.why-sau {
  background: linear-gradient(135deg, #003087 0%, #0a1f5c 100%);
  padding: 70px 0;
  color: #fff;
}
.why-sau h2 { color: #fff; font-size: 32px; margin-bottom: 12px; }
.why-sau .lead { font-size: 16px; color: rgba(255,255,255,0.8); margin-bottom: 40px; }
.why-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.why-item .why-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: rgba(200,150,62,0.2);
  border: 2px solid #c8963e;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: #c8963e;
}
.why-item h5 { color: #fff; font-size: 15px; margin-bottom: 4px; }
.why-item p { font-size: 13px; color: rgba(255,255,255,0.7); margin: 0; }

/* ── HOMEPAGE: Apply CTA ──────────────────────────────────── */
.cta-band {
  background: #c8963e;
  padding: 50px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; font-size: 28px; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.9); font-size: 16px; margin-bottom: 25px; }
.btn-cta-white {
  background: #fff;
  color: #c8963e !important;
  font-weight: 800;
  padding: 14px 40px;
  border-radius: 4px;
  font-size: 16px;
  text-decoration: none !important;
  display: inline-block;
  margin: 6px;
  transition: box-shadow .2s;
}
.btn-cta-white:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.2); color: #b07c30 !important; }
.btn-cta-outline {
  border: 2px solid #fff;
  color: #fff !important;
  font-weight: 700;
  padding: 12px 36px;
  border-radius: 4px;
  font-size: 16px;
  text-decoration: none !important;
  display: inline-block;
  margin: 6px;
  transition: background .2s;
}
.btn-cta-outline:hover { background: rgba(255,255,255,0.15); color: #fff !important; }

/* ── Shared Page Sections ─────────────────────────────────── */
.page-content { padding: 50px 0 60px; }
.content-card {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

/* Section label */
.section-label {
  display: inline-block;
  background: #003087;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}

/* Buttons */
.btn-primary-sau {
  background: #003087;
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  text-decoration: none;
  display: inline-block;
  transition: background .2s;
}
.btn-primary-sau:hover { background: #002070; color: #fff !important; }
.btn-gold {
  background: #c8963e;
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  text-decoration: none;
  display: inline-block;
  transition: background .2s;
}
.btn-gold:hover { background: #b07c30; color: #fff !important; }
.btn-outline-sau {
  border: 2px solid #003087;
  color: #003087 !important;
  padding: 8px 22px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  background: none;
  text-decoration: none;
  display: inline-block;
  transition: background .2s, color .2s;
}
.btn-outline-sau:hover { background: #003087; color: #fff !important; }

/* ── Programs Page ────────────────────────────────────────── */
.programs-tabs .nav-tabs {
  border-bottom: 2px solid #003087;
  margin-bottom: 0;
}
.programs-tabs .nav-tabs > li > a {
  color: #003087;
  border-radius: 4px 4px 0 0;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-bottom: none;
}
.programs-tabs .nav-tabs > li.active > a,
.programs-tabs .nav-tabs > li.active > a:hover {
  background: #003087;
  color: #fff;
  border-color: #003087;
}
.programs-tabs .nav-tabs > li > a:hover {
  background: #f0f5ff;
  border-color: #cdd8f0;
}
.programs-tabs .tab-content {
  border: 1px solid #dee2e6;
  border-top: none;
  padding: 0;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}
.programs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.programs-table thead tr {
  background: #f0f5ff;
}
.programs-table thead th {
  padding: 14px 18px;
  font-weight: 700;
  color: #003087;
  border-bottom: 2px solid #c8d8f0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.programs-table tbody tr { border-bottom: 1px solid #f0f0f0; }
.programs-table tbody tr:hover { background: #fafcff; }
.programs-table tbody td { padding: 13px 18px; vertical-align: middle; }
.programs-table tbody td:first-child { font-weight: 600; color: #1a2744; }
.prog-level-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
}
.badge-bachelor { background: #e8f0fe; color: #1a56db; }
.badge-master   { background: #fef3e8; color: #c8963e; }
.badge-phd      { background: #fde8e8; color: #e02424; }
.badge-voc      { background: #e8fef0; color: #057a55; }

/* ── Fee Page ─────────────────────────────────────────────── */
.fee-card {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.fee-card .fee-card-header {
  background: linear-gradient(90deg, #003087, #0a4da8);
  color: #fff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fee-card .fee-card-header h3 {
  color: #fff;
  font-size: 18px;
  margin: 0;
}
.fee-card .fee-card-body { padding: 0; }
.fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.fee-table thead th {
  background: #f5f8fc;
  padding: 12px 20px;
  font-weight: 700;
  color: #1a2744;
  border-bottom: 1px solid #dee2e6;
  font-size: 13px;
}
.fee-table tbody td { padding: 12px 20px; border-bottom: 1px solid #f0f0f0; }
.fee-table tbody tr:last-child td { border-bottom: none; }
.fee-table tbody tr:hover { background: #fafcff; }
.fee-highlight { color: #003087; font-weight: 700; font-size: 16px; }
.fee-note {
  background: #fff8ec;
  border-left: 4px solid #c8963e;
  padding: 14px 20px;
  font-size: 13.5px;
  color: #5a4010;
  margin: 0;
}

/* ── Departments Page ─────────────────────────────────────── */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.dept-card {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  padding: 24px;
  border-left: 4px solid #003087;
  transition: box-shadow .2s, transform .2s;
}
.dept-card:hover {
  box-shadow: 0 8px 24px rgba(0,48,135,0.1);
  transform: translateY(-2px);
}
.dept-card .dept-num {
  font-size: 28px;
  font-weight: 800;
  color: #e8edf5;
  line-height: 1;
  margin-bottom: 8px;
}
.dept-card h4 { font-size: 15px; color: #003087; margin: 0; }

/* ── News Page ────────────────────────────────────────────── */
.news-card {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
  display: flex;
  gap: 20px;
  transition: box-shadow .2s;
}
.news-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.news-card .news-card-date {
  flex-shrink: 0;
  text-align: center;
  background: #003087;
  color: #fff;
  border-radius: 6px;
  padding: 10px 14px;
  min-width: 58px;
  height: fit-content;
}
.news-card .news-card-date .nd-day { display: block; font-size: 26px; font-weight: 800; line-height: 1; }
.news-card .news-card-date .nd-mon { display: block; font-size: 11px; text-transform: uppercase; font-weight: 600; margin-top: 2px; }
.news-card .news-card-date .nd-yr  { display: block; font-size: 10px; opacity: 0.8; }
.news-card .news-card-body h4 { font-size: 16px; color: #1a2744; margin-bottom: 8px; }
.news-card .news-card-body p  { font-size: 13.5px; color: #6c757d; margin: 0; }

/* ── Contact Page ─────────────────────────────────────────── */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-info-item .ci-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  background: linear-gradient(135deg, #003087, #0d47a1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 18px;
}
.contact-info-item .ci-body h5 {
  font-size: 14px;
  font-weight: 700;
  color: #003087;
  margin-bottom: 4px;
}
.contact-info-item .ci-body p {
  font-size: 14px;
  color: #4a5568;
  margin: 0;
}
.contact-form .form-group label {
  font-weight: 600;
  font-size: 13.5px;
  color: #1a2744;
  margin-bottom: 5px;
}
.contact-form .form-control {
  border: 1px solid #d1d9e6;
  border-radius: 4px;
  font-size: 14px;
  padding: 10px 14px;
  height: auto;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form .form-control:focus {
  border-color: #003087;
  box-shadow: 0 0 0 3px rgba(0,48,135,0.1);
  outline: none;
}

/* ── Downloads Page ───────────────────────────────────────── */
.download-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 6px;
  margin-bottom: 10px;
  transition: box-shadow .2s;
}
.download-item:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.07); }
.download-item .dl-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: #f0f5ff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: #003087;
}
.download-item .dl-name { flex: 1; font-weight: 600; color: #1a2744; font-size: 14.5px; }
.download-item .dl-btn {
  background: #003087;
  color: #fff !important;
  padding: 7px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: flex; align-items: center; gap: 6px;
  transition: background .2s;
}
.download-item .dl-btn:hover { background: #c8963e; }

/* ── Students Page ────────────────────────────────────────── */
.student-card {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
  transition: box-shadow .2s, transform .2s;
  height: 100%;
}
.student-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-3px); }
.student-card .sc-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.student-card .sc-body { padding: 20px; }
.student-card .sc-country {
  display: inline-block;
  background: #f0f5ff;
  color: #003087;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.student-card h4 { font-size: 16px; color: #1a2744; margin-bottom: 4px; }
.student-card .sc-program { font-size: 12.5px; color: #c8963e; font-weight: 600; margin-bottom: 10px; }
.student-card .sc-quote {
  font-size: 13.5px;
  color: #6c757d;
  font-style: italic;
  border-left: 3px solid #c8963e;
  padding-left: 12px;
  margin: 0;
}

/* ── Application Page ─────────────────────────────────────── */
.apply-steps {
  display: flex;
  gap: 0;
  margin-bottom: 40px;
  background: #f5f8fc;
  border-radius: 8px;
  overflow: hidden;
}
.apply-step {
  flex: 1;
  padding: 18px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #6c757d;
  position: relative;
}
.apply-step.active { background: #003087; color: #fff; }
.apply-step.done { background: #e8f0fe; color: #003087; }
.apply-step .step-num {
  display: block;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

/* ── City Page ────────────────────────────────────────────── */
.city-content img { border-radius: 8px; margin-bottom: 16px; }
.city-highlight {
  background: linear-gradient(135deg, #003087, #0a4da8);
  color: #fff;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 24px;
}
.city-highlight h3 { color: #fff; }

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar-card {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}
.sidebar-card .sc-head {
  background: #003087;
  color: #fff;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 700;
}
.sidebar-card .sc-body { padding: 16px; }
.sidebar-card ul { list-style: none; padding: 0; margin: 0; }
.sidebar-card ul li { border-bottom: 1px solid #f0f0f0; }
.sidebar-card ul li:last-child { border-bottom: none; }
.sidebar-card ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  color: #2d3748;
  font-size: 13.5px;
  text-decoration: none;
  transition: color .15s;
}
.sidebar-card ul li a::before {
  content: '›';
  color: #c8963e;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
.sidebar-card ul li a:hover { color: #003087; }
.sidebar-card .contact-mini p {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13.5px; color: #4a5568; margin-bottom: 10px;
}
.sidebar-card .contact-mini i { color: #003087; margin-top: 2px; flex-shrink: 0; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { background: #0a1628; color: #8fa8c8; }
.footer-main { padding: 55px 0 30px; }
.footer-brand h3 { color: #fff; font-size: 18px; margin-bottom: 10px; }
.footer-brand p { font-size: 13px; line-height: 1.7; margin-bottom: 12px; }
.footer-brand .footer-addr { font-size: 12.5px; display: flex; gap: 8px; }
.footer-brand .footer-addr i { color: #c8963e; flex-shrink: 0; margin-top: 3px; }
.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #c8963e;
  display: inline-block;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: #8fa8c8;
  font-size: 13.5px;
  text-decoration: none;
  transition: color .15s;
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-col ul li a::before { content: '›'; color: #c8963e; font-size: 16px; }
.footer-col ul li a:hover { color: #fff; }
.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
}
.footer-contact-item i { color: #c8963e; flex-shrink: 0; margin-top: 3px; }
.footer-contact-item span { color: #8fa8c8; }
.footer-social { margin-top: 16px; display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid #2a4a6a;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #8fa8c8;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
  font-size: 14px;
}
.footer-social a:hover { background: #c8963e; border-color: #c8963e; color: #fff; }
.footer-bottom {
  border-top: 1px solid #1a2e44;
  padding: 18px 0;
  text-align: center;
  font-size: 12.5px;
  color: #4a6a8a;
}
.footer-bottom a { color: #4a6a8a; }
.footer-bottom a:hover { color: #c8963e; }

/* ── Gallery Grid ─────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.gallery-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .gallery-cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  padding: 20px 10px 8px;
  font-size: 12px;
  text-align: center;
}

/* ── About Page ───────────────────────────────────────────── */
.about-highlight {
  background: #f5f8fc;
  border-radius: 8px;
  padding: 24px 28px;
  border-left: 4px solid #003087;
  margin-bottom: 24px;
}
.history-timeline { list-style: none; padding: 0; position: relative; }
.history-timeline::before {
  content: '';
  position: absolute;
  left: 70px; top: 0; bottom: 0;
  width: 2px;
  background: #e8edf5;
}
.history-timeline li {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.history-timeline .ht-year {
  flex-shrink: 0;
  width: 60px;
  text-align: right;
  font-weight: 800;
  color: #003087;
  font-size: 15px;
  padding-top: 2px;
}
.history-timeline .ht-dot {
  flex-shrink: 0;
  width: 14px; height: 14px;
  background: #c8963e;
  border-radius: 50%;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}
.history-timeline .ht-text { font-size: 14px; color: #4a5568; }

/* ── Search Results ───────────────────────────────────────── */
.search-result-item {
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item a { font-weight: 600; color: #003087; font-size: 15px; }
.search-result-item .sr-meta { font-size: 12px; color: #6c757d; margin-top: 3px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 991px) {
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #003087; box-shadow: 0 8px 20px rgba(0,0,0,0.25); padding: 10px 0; z-index: 9998; }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { height: auto; padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); color: #fff; }
  .nav-menu > li > a.nav-apply { margin: 10px 20px; }
  .dropdown-menu { position: static; box-shadow: none; border: none; border-top: none; background: rgba(0,0,0,0.2); }
  .dropdown-menu li a { color: #e0e8ff; }
  .dropdown-menu li a:hover { background: rgba(255,255,255,0.1); color: #f0c060; }
  .nav-menu > li:hover .dropdown-menu { display: none; }
  .nav-menu > li.dd-open .dropdown-menu { display: block; }
  .nav-toggle { display: flex; }
  .nav-inner { position: relative; }
  .hero-slider { height: 380px; }   /* locked tablet height — no CLS */
  .hero-slider .carousel-caption h2 { font-size: 24px; }
  .stats-bar .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stats-bar .stat-item:last-child { border-bottom: none; }
  .why-sau .row > div { margin-bottom: 20px; }
  .hero-placeholder h1 { font-size: 28px; }
}
@media (max-width: 767px) {
  .top-bar .tb-left { display: none; }
  .hero-slider { height: 260px; }   /* locked mobile height — no CLS */
  /* img height override removed: img now fills .hero-slider via height:100% chain */
  .hero-slider .carousel-caption { left: 4%; right: 4%; max-width: 100%; }
  .hero-slider .carousel-caption h2 { font-size: 20px; }
  .page-banner h1 { font-size: 24px; }
  .stats-bar .stat-num { font-size: 30px; }
  .news-events-section .col-md-6:first-child { margin-bottom: 30px; }
  .quick-links ul li { min-width: 50%; }
  .dept-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-col { margin-bottom: 30px; }
  .apply-steps { flex-wrap: wrap; }
  .apply-step { min-width: 50%; }
  .news-card { flex-direction: column; gap: 12px; }
}
@media (max-width: 480px) {
  .quick-links ul li { min-width: 33.333%; }
  .dept-grid { grid-template-columns: 1fr; }
  .hero-placeholder h1 { font-size: 22px; }
  .hero-placeholder p { font-size: 15px; }
}
