/* ============================================================
   ARCWAY Academic Advisory — Shared Stylesheet v2
   Brand: Navy #0d1b4b | Red #c0392b | Gold #d4a017
   ============================================================ */

:root {
  --primary:       #0d1b4b;
  --primary-light: #1a3272;
  --primary-mid:   #1e3a7b;
  --accent-red:    #c0392b;
  --accent-gold:   #d4a017;
  --accent-gold-lt:#f0c040;
  --light-bg:      #f4f7fc;
  --border:        #dde4f0;
  --text-dark:     #1a1a2e;
  --text-gray:     #5a6480;
  --white:         #ffffff;
  --shadow-sm:     0 2px 12px rgba(13,27,75,0.08);
  --shadow-md:     0 6px 28px rgba(13,27,75,0.13);
  --shadow-lg:     0 16px 48px rgba(13,27,75,0.18);
  --radius:        12px;
  --radius-lg:     20px;
  --transition:    all 0.25s ease;
  --nav-h:         68px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
       color: var(--text-dark); background: #fff; line-height: 1.7;
       overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

/* ── Typography ── */
h1 { font-size: clamp(1.75rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: clamp(1rem, 2.5vw, 1.5rem); font-weight: 600; line-height: 1.35; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { line-height: 1.8; color: var(--text-gray); }

/* ── Section layout ── */
.section    { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.container  { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .en-label {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent-red);
  background: rgba(192,57,43,0.08); padding: 4px 14px; border-radius: 50px;
  margin-bottom: 12px;
}
.section-header h2 { color: var(--primary); margin-bottom: 14px; }
.section-header p { max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px; font-size: 0.95rem;
  font-weight: 600; cursor: pointer; border: 2px solid transparent;
  transition: var(--transition); min-height: 48px; white-space: nowrap;
}
.btn-primary  { background: var(--accent-red);  color: #fff; border-color: var(--accent-red); }
.btn-primary:hover  { background: #a93226; border-color: #a93226; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.65); }
.btn-secondary:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-outline  { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover  { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-gold     { background: var(--accent-gold); color: var(--primary); border-color: var(--accent-gold); }
.btn-gold:hover { background: #b8900f; border-color: #b8900f; color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 16px 36px; font-size: 1rem; border-radius: 10px; }

/* ── Language toggle button ── */
.lang-btn {
  padding: 6px 14px; border-radius: 6px; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.06em; border: 1.5px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.85); background: transparent; cursor: pointer;
  transition: var(--transition); min-height: 34px; margin-left: 8px;
}
.lang-btn:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.7); color: #fff; }

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13,27,75,0.98);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-lg); }
.navbar-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
}
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo img { height: 54px; width: auto; }
.nav-logo .brand-text { color: #fff; }
.nav-logo .brand-name { font-size: 1.2rem; font-weight: 800; letter-spacing: 0.04em; display: block; line-height: 1.1; }
.nav-logo .brand-sub  { font-size: 0.6rem; letter-spacing: 0.12em; opacity: 0.6; display: block; text-transform: uppercase; }
.nav-right { display: flex; align-items: center; gap: 4px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  color: rgba(255,255,255,0.82); font-size: 0.85rem; font-weight: 500;
  padding: 8px 12px; border-radius: 6px; transition: var(--transition);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,0.1); }
.nav-cta { background: var(--accent-red) !important; color: #fff !important; border-radius: 7px !important; padding: 8px 16px !important; }
.nav-cta:hover { background: #a93226 !important; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 10px; margin-left: 4px; border-radius: 6px;
  background: rgba(255,255,255,0.08);
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, #060e2b 0%, #0d1b4b 50%, #1a3272 100%);
  overflow: hidden; padding-top: var(--nav-h);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: 0.18;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, rgba(6,14,43,0.85) 40%, rgba(13,27,75,0.4) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,160,23,0.18); border: 1px solid rgba(212,160,23,0.4);
  padding: 6px 16px; border-radius: 50px; margin-bottom: 20px;
  color: var(--accent-gold-lt); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
}
.hero h1 { color: #fff; margin-bottom: 8px; }
.hero h1 span { color: var(--accent-gold); }
.hero-tagline { font-size: 1.1rem; color: rgba(255,255,255,0.72); margin-bottom: 28px; font-weight: 300; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stat .num   { font-size: 1.9rem; font-weight: 800; color: var(--accent-gold); line-height: 1; }
.hero-stat .label { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-top: 2px; }
.hero-image-side {
  position: absolute; right: 0; top: 0; bottom: 0; width: 42%;
  z-index: 2; overflow: hidden;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
}
.hero-image-side img { width: 100%; height: 100%; object-fit: cover; opacity: 0.65; }

/* ── Stats Bar ── */
.stats-bar { background: var(--primary); padding: 24px 0; border-bottom: 3px solid var(--accent-red); }
.stats-bar-inner { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 16px; }
.stat-item { text-align: center; color: #fff; }
.stat-item .stat-num   { font-size: 1.8rem; font-weight: 800; color: var(--accent-gold); display: block; line-height: 1; }
.stat-item .stat-label { font-size: 0.78rem; opacity: 0.72; margin-top: 4px; }

/* ── Cards ── */
.card {
  background: #fff; border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card-icon {
  width: 50px; height: 50px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
}
.card-icon.red  { background: linear-gradient(135deg, var(--accent-red) 0%, #e74c3c 100%); }
.card-icon.gold { background: linear-gradient(135deg, #b8860b 0%, var(--accent-gold) 100%); }
.card h3 { color: var(--primary); margin-bottom: 10px; }

/* ── Grids ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Highlight Box ── */
.highlight-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg); padding: 52px; color: #fff; position: relative; overflow: hidden;
}
.highlight-box::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,0.04);
}

/* ── Comparison Table ── */
.compare-table { width: 100%; border-collapse: collapse; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.compare-table thead { background: var(--primary); color: #fff; }
.compare-table th { padding: 16px 20px; text-align: center; font-size: 0.92rem; font-weight: 600; }
.compare-table td { padding: 14px 20px; text-align: center; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: var(--light-bg); }
.compare-table .col-arcway     { background: rgba(192,57,43,0.06) !important; color: var(--accent-red); font-weight: 600; }
.compare-table .col-arcway-head { background: var(--accent-red) !important; }
.check { color: #27ae60; font-size: 1.1rem; }
.cross { color: #e74c3c; font-size: 1.1rem; }

/* ── Timeline ── */
.timeline { position: relative; padding-left: 48px; }
.timeline::before { content: ''; position: absolute; left: 20px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(to bottom, var(--accent-red), var(--primary)); }
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-dot {
  position: absolute; left: -36px; top: 4px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-red); color: #fff; font-weight: 700; font-size: 0.82rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px rgba(192,57,43,0.2);
}
.timeline-item h4 { color: var(--primary); font-size: 1.05rem; margin-bottom: 5px; }
.timeline-item p  { color: var(--text-gray); font-size: 0.9rem; }

/* ── Badges ── */
.badge { display: inline-block; padding: 4px 12px; border-radius: 50px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; }
.badge-red   { background: rgba(192,57,43,0.12); color: var(--accent-red); }
.badge-navy  { background: rgba(13,27,75,0.1); color: var(--primary); }
.badge-gold  { background: rgba(212,160,23,0.15); color: #8b6914; }
.badge-green { background: rgba(39,174,96,0.12); color: #1e8449; }

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 110px 0 64px; text-align: center; position: relative; overflow: hidden;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,0.7); max-width: 540px; margin: 0 auto; font-size: 1rem; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 18px; }
.breadcrumb a, .breadcrumb span { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.breadcrumb .sep     { color: rgba(255,255,255,0.25); }
.breadcrumb .current { color: var(--accent-gold); }

/* ── CTA Band ── */
.cta-band {
  background: linear-gradient(135deg, var(--accent-red) 0%, #9b2335 100%);
  padding: 68px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: url("https://images.unsplash.com/photo-1525625293386-3f8f99389edd?w=1400&q=60") center/cover;
  opacity: 0.07;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; position: relative; }
.cta-band p  { color: rgba(255,255,255,0.76); max-width: 500px; margin: 0 auto 28px; position: relative; font-size: 1rem; }
.cta-band .btn { position: relative; }

/* ── Footer ── */
.footer { background: #050e27; color: rgba(255,255,255,0.62); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand .brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 44px; }
.footer-brand .name { color: #fff; font-size: 1.15rem; font-weight: 800; }
.footer-brand .sub  { color: rgba(255,255,255,0.4); font-size: 0.67rem; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-brand p { font-size: 0.86rem; line-height: 1.75; max-width: 260px; }
.footer-col h5 { color: #fff; font-size: 0.84rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: 0.86rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--accent-gold); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 10px; font-size: 0.86rem; }
.footer-contact-item .icon { font-size: 0.95rem; margin-top: 2px; flex-shrink: 0; color: var(--accent-gold); }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.07); margin-bottom: 20px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 0.78rem; }
.footer-bottom .badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-bottom .badges span { font-size: 0.72rem; background: rgba(255,255,255,0.06); padding: 3px 10px; border-radius: 50px; }

/* ── Service Cards ── */
.service-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); background: #fff; transition: var(--transition); }
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.service-card-head { padding: 24px 24px 18px; background: var(--primary); color: #fff; }
.service-card-head .service-icon { font-size: 1.8rem; margin-bottom: 8px; }
.service-card-head h3  { color: #fff; margin-bottom: 3px; font-size: 1.1rem; }
.service-card-head .sub { font-size: 0.72rem; color: rgba(255,255,255,0.52); letter-spacing: 0.08em; text-transform: uppercase; }
.service-card-body { padding: 20px 24px; }
.service-feature { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 9px; font-size: 0.88rem; }
.service-feature::before { content: '✓'; color: var(--accent-red); font-weight: 700; flex-shrink: 0; margin-top: 2px; }

/* ── Login Portal ── */
.portal-login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #060e2b 0%, #0d1b4b 100%); padding: 20px;
}
.login-box {
  background: #fff; border-radius: var(--radius-lg); padding: 44px 36px;
  width: 100%; max-width: 420px; box-shadow: var(--shadow-lg);
}
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo img { height: 60px; margin: 0 auto 10px; }
.login-logo h2 { color: var(--primary); font-size: 1.25rem; }
.login-logo p  { font-size: 0.83rem; color: var(--text-gray); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.83rem; font-weight: 600; color: var(--primary); margin-bottom: 5px; }
.form-group input {
  width: 100%; padding: 12px 14px; border: 2px solid var(--border);
  border-radius: 8px; font-size: 0.93rem; outline: none; transition: var(--transition); color: var(--text-dark);
  -webkit-appearance: none;
}
.form-group input:focus { border-color: var(--primary); }
.form-error { color: var(--accent-red); font-size: 0.8rem; margin-top: 14px; display: none; text-align: center; }

/* ── Video Portal ── */
.portal-header { background: var(--primary); padding: 14px 0; }
.portal-header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.portal-nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.portal-nav a { color: rgba(255,255,255,0.72); font-size: 0.85rem; transition: var(--transition); }
.portal-nav a:hover { color: #fff; }
.portal-user { color: rgba(255,255,255,0.62); font-size: 0.83rem; display: flex; align-items: center; gap: 8px; }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.78rem; }
.video-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: var(--transition); }
.video-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.video-thumb { width: 100%; aspect-ratio: 16/9; background: var(--primary); display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.play-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--accent-red); box-shadow: 0 4px 16px rgba(0,0,0,0.2); transition: var(--transition); }
.video-thumb:hover .play-btn { transform: scale(1.1); }
.video-info { padding: 16px 18px; }
.video-info h4 { color: var(--primary); margin-bottom: 5px; font-size: 0.92rem; }
.video-info .meta { font-size: 0.76rem; color: var(--text-gray); display: flex; gap: 10px; }
.progress-bar-wrap { height: 3px; background: var(--border); border-radius: 2px; margin-top: 8px; }
.progress-bar { height: 3px; background: var(--accent-red); border-radius: 2px; width: 0%; transition: width 0.3s; }
.course-tab { padding: 9px 20px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; cursor: pointer; border: 2px solid var(--border); background: #fff; color: var(--text-gray); transition: var(--transition); white-space: nowrap; }
.course-tab.active, .course-tab:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.sidebar { width: 260px; flex-shrink: 0; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.sidebar-header { background: var(--primary); padding: 14px 18px; color: #fff; font-size: 0.82rem; font-weight: 600; }
.sidebar-item { padding: 13px 18px; border-bottom: 1px solid var(--border); cursor: pointer; transition: var(--transition); display: flex; align-items: flex-start; gap: 10px; }
.sidebar-item:hover, .sidebar-item.active { background: var(--light-bg); }
.sidebar-item.active { border-left: 3px solid var(--accent-red); }
.sidebar-item .num { width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 0.68rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.sidebar-item.completed .num { background: #27ae60; }
.sidebar-title { font-size: 0.83rem; font-weight: 600; color: var(--primary); margin-bottom: 1px; }
.sidebar-meta  { font-size: 0.72rem; color: var(--text-gray); }
.chapter-label { padding: 8px 18px 5px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-gray); background: #f9fafc; border-bottom: 1px solid var(--border); }

/* ── Contact Form ── */
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 2px solid var(--border);
  border-radius: 8px; font-size: 0.93rem; outline: none; transition: var(--transition);
  font-family: inherit; color: var(--text-dark); background: #fff;
  -webkit-appearance: none;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--primary); }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form label { display: block; font-size: 0.83rem; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.contact-form .form-group { margin-bottom: 20px; }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(5,14,39,0.75);
  z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal-box {
  background: #fff; border-radius: 16px; padding: 28px;
  width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.hidden { display: none !important; }

/* ═══════════════════════════════════════
   RESPONSIVE — TABLET (≤1024px)
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-image-side { display: none; }
  .highlight-box { padding: 40px 36px; }
  .bridge-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
}

/* ═══════════════════════════════════════
   RESPONSIVE — MOBILE (≤768px)
═══════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  /* ── Section spacing ── */
  .section    { padding: 52px 0; }
  .section-sm { padding: 40px 0; }
  .container  { padding: 0 16px; }
  .section-header { margin-bottom: 36px; }
  .section-header p { font-size: 0.95rem; }

  /* ── Navbar ── */
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: #0a153c;
    padding: 12px 0 24px;
    gap: 0;
    z-index: 999;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    border-top: 1px solid rgba(255,255,255,0.08);
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 16px 24px; border-radius: 0; font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.07); width: 100%;
    color: rgba(255,255,255,0.85);
  }
  .nav-links a:last-child { border-bottom: none; margin: 12px 20px 0; width: calc(100% - 40px); border-radius: 8px !important; }
  .nav-toggle { display: flex; }
  .lang-btn   { padding: 5px 10px; font-size: 0.72rem; }

  /* ── Hero ── */
  .hero { min-height: auto; padding: 100px 0 56px; }
  .hero .container { padding: 0 20px; }
  .hero-content { max-width: 100%; }
  .hero h1 { font-size: 1.85rem; margin-bottom: 10px; }
  .hero-tagline { font-size: 0.95rem; margin-bottom: 22px; }
  .hero-badge { font-size: 0.72rem; padding: 5px 12px; margin-bottom: 16px; }
  .hero-btns { gap: 10px; flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 20px; }
  .hero-stat .num { font-size: 1.6rem; }

  /* ── Stats bar ── */
  .stats-bar { padding: 20px 0; }
  .stats-bar-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 16px; justify-items: center; }
  .stat-item .stat-num { font-size: 1.3rem; }

  /* ── Page Hero ── */
  .page-hero { padding: 90px 0 48px; }
  .page-hero h1 { font-size: 1.75rem; }

  /* ── Grids → single column ── */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 16px; }

  /* ── Cards ── */
  .card { padding: 22px 18px; }
  .card:hover { transform: none; }
  .highlight-box { padding: 28px 20px; border-radius: 16px; }

  /* ── Buttons ── */
  .btn { min-height: 48px; }
  .btn-lg { padding: 14px 24px; font-size: 0.95rem; }

  /* ── Footer ── */
  .footer { padding: 44px 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-brand p { max-width: 100%; }

  /* ── Comparison table ── */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare-table th, .compare-table td { padding: 12px 14px; font-size: 0.82rem; }
  .compare-table th:first-child, .compare-table td:first-child { position: sticky; left: 0; background: inherit; z-index: 1; min-width: 110px; }

  /* ── Contact form ── */
  .contact-form .form-row { grid-template-columns: 1fr; }

  /* ── Service cards ── */
  .service-card-head { padding: 20px 20px 16px; }
  .service-card-body { padding: 16px 20px; }

  /* ── Gallery scroll ── */
  .gallery-scroll { padding: 0 16px !important; }
  .gallery-scroll > div { flex: 0 0 260px !important; height: 180px !important; }

  /* ── Timeline ── */
  .timeline { padding-left: 36px; }
  .timeline-dot { width: 26px; height: 26px; left: -31px; }

  /* ── Path grid ── */
  .path-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .path-grid > div:nth-child(even) { display: none; }

  /* ── CTA ── */
  .cta-band { padding: 48px 0; }
  .cta-band .btn-group { flex-direction: column; align-items: stretch; }
}

/* ═══════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤480px)
═══════════════════════════════════════ */
@media (max-width: 480px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.3rem; }
  .nav-logo .brand-sub { display: none; }
  .stats-bar-inner { grid-template-columns: 1fr 1fr; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .login-box { padding: 32px 20px; border-radius: 14px; }
  .modal-box { padding: 22px 18px; border-radius: 14px; }
  .portal-nav a { font-size: 0.78rem; }
  .tab-bar { gap: 6px; }
  .course-tab { padding: 7px 14px; font-size: 0.78rem; }
  #mainLayout { flex-direction: column !important; }
  .sidebar { width: 100% !important; }
}

/* ============================================================
   RESPONSIVE — Mobile First
   Breakpoints: 1024px (tablet), 768px (mobile), 480px (small)
   iOS Safari + Android Chrome compatible
   ============================================================ */

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {
  .grid-2  { grid-template-columns: 1fr !important; }
  .grid-3  { grid-template-columns: 1fr 1fr !important; }
  .grid-4  { grid-template-columns: 1fr 1fr !important; }
  .bridge-grid { grid-template-columns: 1fr !important; }
  .hero-image-side { display: none; }
  .hero .container { padding-top: 24px; padding-bottom: 24px; }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
  /* Navbar */
  .navbar-inner { padding: 0 16px; }
  .brand-name   { font-size: 1rem !important; }
  .brand-sub    { font-size: 0.65rem !important; }
  .nav-toggle { display: flex !important; }

  /* Lang button */
  .lang-btn { font-size: 0.72rem; padding: 5px 10px; }

  /* Hero */
  .hero { min-height: 520px; }
  .hero-content { text-align: center; }
  .hero-btns { justify-content: center; flex-wrap: wrap; gap: 12px; }
  .hero-stats { justify-content: center; gap: 16px; flex-wrap: wrap; }
  .hero-stat .num { font-size: 1.2rem; }

  /* Stats bar */
  .stats-bar-inner { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-item { padding: 12px 8px; }
  .stat-num  { font-size: 1rem !important; }

  /* Sections */
  .section    { padding: 52px 0; }
  .section-sm { padding: 36px 0; }
  .section-header { margin-bottom: 36px; }
  .container  { padding: 0 16px; }

  /* Grids collapse to 1 column */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr 1fr !important; }
  [style*="grid-template-columns:repeat(4"] { grid-template-columns: 1fr 1fr !important; }
  [style*="grid-template-columns:repeat(6"] { grid-template-columns: repeat(3,1fr) !important; }

  /* Highlight box */
  .highlight-box { padding: 32px 20px !important; }

  /* Comparison table */
  .compare-table { font-size: 0.82rem; }
  .compare-table th, .compare-table td { padding: 10px 10px; }

  /* Page hero */
  .page-hero { padding: 80px 0 40px; }
  .page-hero h1 { font-size: clamp(1.5rem,6vw,2.2rem); }

  /* Cards */
  .card { padding: 20px; }

  /* Buttons */
  .btn    { padding: 12px 22px; font-size: 0.9rem; min-height: 44px; }
  .btn-lg { padding: 14px 28px; font-size: 0.95rem; }

  /* CTA band */
  .cta-band .container { padding: 48px 16px; }
  .cta-band h2 { font-size: 1.5rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 28px; }
  .footer { padding: 48px 0 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  /* Contact form */
  .contact-form .form-row { grid-template-columns: 1fr !important; }

  /* Portal */
  .sidebar { width: 100% !important; }

  /* Timeline */
  .timeline-item { padding-left: 52px; }
  .timeline-dot  { left: 8px; }
}

/* ── Small mobile (≤480px) ── */
@media (max-width: 480px) {
  h1 { font-size: clamp(1.4rem, 7vw, 1.9rem); }
  h2 { font-size: clamp(1.15rem, 5vw, 1.5rem); }
  .hero-btns a { width: 100%; justify-content: center; }
  .stats-bar-inner { grid-template-columns: 1fr 1fr; }
  [style*="grid-template-columns:repeat(6"] { grid-template-columns: repeat(2,1fr) !important; }
  [style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr !important; }
  .footer-bottom .badges { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .section { padding: 40px 0; }
}

/* ── iOS Safari specific fixes ── */
@supports (-webkit-touch-callout: none) {
  /* Fix 100vh on iOS */
  .hero { min-height: -webkit-fill-available; min-height: 520px; }
  /* Prevent font zoom on input focus (iOS) */
  input, select, textarea { font-size: 16px !important; }
}

/* ── Touch targets (WCAG AA) ── */
@media (pointer: coarse) {
  .btn, .nav-links a, .lang-btn, .nav-toggle,
  .course-tab, .sidebar-item, .faq-q { min-height: 48px; }
  .faq-q { display: flex; align-items: center; justify-content: space-between; }
  input, select { min-height: 48px; }
}

} /* end @media 768px */

/* ═══════════════════════════════════════
   SMALL MOBILE (≤480px)
═══════════════════════════════════════ */
@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; display: grid; gap: 12px; }
  .hero-btns a { width: 100%; justify-content: center; }
  .stats-bar-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { align-items: center; text-align: center; }
  .footer-bottom .badges { justify-content: center; }
  .section { padding: 36px 0; }
  .section-header { margin-bottom: 28px; }
}

/* ═══════════════════════════════════════
   iOS SAFARI FIXES
═══════════════════════════════════════ */
@supports (-webkit-touch-callout: none) {
  /* Prevent white flash on scroll past hero */
  body { background: #fff; }
  /* Fix 100vh on iPhone address bar */
  .hero { min-height: 520px; min-height: -webkit-fill-available; }
  /* Prevent iOS font zoom on input focus */
  input, select, textarea { font-size: max(16px, 1em) !important; }
  /* Fix tap highlight */
  a, button { -webkit-tap-highlight-color: rgba(0,0,0,0.05); }
}

/* ═══════════════════════════════════════
   TOUCH DEVICES — larger tap targets
═══════════════════════════════════════ */
@media (pointer: coarse) {
  .btn, .nav-links a, .faq-q, .sidebar-item, .course-tab { min-height: 48px; }
  .faq-q { display: flex; align-items: center; justify-content: space-between; }
  input, select { min-height: 48px; }
  .lang-btn { min-height: 40px; }
}

/* ── Font Awesome Professional Icons ── */
.card-icon { color: #fff; }                         /* icons on navy gradient bg */
.fa-circle-check { color: #27ae60; }               /* green check marks       */
.fa-star { color: var(--accent-gold); }            /* star → gold             */
/* fa-trophy inherits color from parent — white in dark circles, primary on white cards */
.service-card-head i.fa-solid { color: #fff; }     /* service nav tab icons   */
