/* ==========================================================================
   Career Care India — Design System
   Palette:  BG #F7F9FC · Primary #0F4C81 · Secondary #1E88E5 · Accent #D4AF37
   Type:     Poppins (display) / Inter (body)
   ========================================================================== */

:root {
  --bg:            #F7F9FC;
  --primary:       #0F4C81;
  --primary-dark:  #0A3A63;
  --secondary:     #1E88E5;
  --accent:        #D4AF37;
  --text:          #1F2937;
  --text-secondary:#6B7280;
  --card:          #FFFFFF;
  --border:        #E5E7EB;

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(15, 76, 129, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 76, 129, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 76, 129, 0.14);

  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
h3 { font-size: 1.3rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.text-secondary { color: var(--text-secondary); }

.section {
  padding: 96px 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--text-secondary); font-size: 1.08rem; margin-top: 14px; }

.section-alt { background: #EFF4FA; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-accent {
  background: var(--accent);
  color: var(--primary-dark);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); background: rgba(15,76,129,0.04); }

.btn-ghost-white {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.22); }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px rgba(15, 76, 129, 0.04);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.site-logo {
  height: 44px;
  max-height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}
.brand:hover .site-logo {
  transform: scale(1.03);
}
.footer-logo {
  height: 48px;
  max-height: 48px;
  width: auto;
  object-fit: contain;
}
.footer-brand .site-logo {
  background: #ffffff;
  padding: 5px 12px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a,
.nav-dropdown-toggle {
  font-size: 0.94rem;
  font-weight: 500;
  color: #334155;
  position: relative;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.18s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2.5px;
  border-radius: 2px;
  background: var(--secondary);
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-links a:hover,
.nav-dropdown-toggle:hover { color: var(--primary); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--primary); font-weight: 600; }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn-sm {
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

/* ---------- Nav dropdown: Study Abroad ---------- */
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-dropdown-toggle svg { transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1); color: #64748B; margin-top: 1px; }
.nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); color: var(--primary); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  min-width: 400px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 200;
}
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}
.dropdown-menu a:hover { background: var(--bg); color: var(--primary); }
.dropdown-menu a .flag-mini {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.58rem; font-weight: 700; color: var(--primary);
  flex-shrink: 0;
}
.dropdown-menu a .uni-tally { margin-left: auto; font-size: 0.72rem; color: var(--text-secondary); font-weight: 400; }

@media (max-width: 900px) {
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; font-size: 1rem; }
  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 4px 0 0 8px;
    grid-template-columns: 1fr;
    min-width: unset;
    max-height: 0;
    overflow: hidden;
    display: grid;
  }
  .nav-dropdown.open .dropdown-menu { max-height: 600px; opacity: 1; visibility: visible; margin-top: 10px; }
}

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(15, 76, 129, 0.05);
  border: 1px solid var(--border);
  z-index: 1001;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--primary);
  position: relative; transition: all 0.25s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

.nav-toggle.active span { background: transparent; }
.nav-toggle.active span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.active span::after { top: 0; transform: rotate(-45deg); }

/* Mobile actions inside drawer - hidden on desktop */
.mobile-nav-actions {
  display: none;
}

@media (max-width: 900px) {
  .site-header { height: 68px; }
  .site-header.menu-open {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: visible !important;
  }
  .nav { height: 68px; display: flex; align-items: center; justify-content: space-between; }
  .site-logo { height: 36px; max-height: 36px; }
  .nav-toggle { display: flex; }
  
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0; bottom: 0;
    height: calc(100vh - 68px);
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 24px 24px 40px;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    z-index: 99999;
  }
  .nav-links.open { transform: translateX(0); }
  
  .nav-links a,
  .nav-dropdown-toggle {
    font-size: 1.05rem;
    font-weight: 600;
    padding: 14px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    width: 100%;
    color: var(--text) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    background: transparent;
    border-top: none;
    border-left: none;
    border-right: none;
  }
  
  .nav-dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 2px solid var(--border);
    width: 100%;
  }
  .mobile-nav-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .nav-cta .btn-primary { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 60px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 .highlight { color: var(--secondary); }
.hero h1 .underline-accent {
  position: relative;
  display: inline-block;
}
.hero h1 .underline-accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 10px;
  background: rgba(212,175,55,0.35);
  z-index: -1;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.hero-stats .stat b {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--primary);
  display: block;
}
.hero-stats .stat span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.hero-visual {
  position: relative;
}
.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 30px;
  position: relative;
  z-index: 2;
}
.hero-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.hero-card-top .badge {
  background: rgba(30,136,229,0.1);
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
}
.hero-country-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.hero-country-row:last-child { border-bottom: none; }
.hero-country-row .flag {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; color: var(--primary);
  margin-right: 12px;
}
.hero-country-row .name-block { display: flex; align-items: center; flex: 1; }
.hero-country-row .country-name { font-weight: 600; font-size: 0.92rem; }
.hero-country-row .country-count { font-size: 0.78rem; color: var(--text-secondary); }
.hero-floating-badge {
  position: absolute;
  bottom: -50px;
  left: -22px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-floating-badge .icon-circle {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-dark);
}
.hero-floating-badge b { display: block; font-family: var(--font-display); font-size: 1rem; }
.hero-floating-badge span { font-size: 0.75rem; opacity: 0.85; }

.hero-blob {
  position: absolute;
  top: -120px; right: -160px;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(30,136,229,0.14), rgba(15,76,129,0.05) 60%, transparent 70%);
  z-index: 0;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-floating-badge { display: none; }
}

/* ---------- Trust bar ---------- */
.trust-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.trust-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 26px;
  padding-bottom: 26px;
}
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--text-secondary); font-weight: 500; }
.trust-item svg { flex-shrink: 0; color: var(--secondary); }

/* ---------- Cards grid: Programs ---------- */
.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; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .program-card { padding: 24px 20px; }
  .program-card h3 { font-size: 1.25rem; word-break: break-word; }
}

.program-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.program-card .ribbon {
  position: absolute; top: 0; right: 0;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 16px 6px 20px;
  border-bottom-left-radius: var(--radius-md);
}
.program-card .ribbon-soon {
  background: linear-gradient(135deg, #1E88E5, #0F4C81);
  color: #ffffff;
}
.badge-soon {
  display: inline-block;
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: 6px;
}
.program-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(15,76,129,0.07);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.program-card h3 { margin-bottom: 10px; }
.program-card p { color: var(--text-secondary); margin-bottom: 22px; font-size: 0.95rem; }
.program-list { margin-bottom: 26px; }
.program-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; color: var(--text);
  padding: 6px 0;
}
.program-list li svg { color: var(--secondary); flex-shrink: 0; }
.program-card .card-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.program-card .card-link svg { transition: transform 0.18s ease; }
.program-card:hover .card-link svg { transform: translateX(4px); }

/* ---------- Countries ---------- */
.country-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.country-tab {
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.18s ease;
}
.country-tab.active, .country-tab:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.uni-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.uni-card:hover { box-shadow: var(--shadow-md); border-color: var(--secondary); }
.uni-card .uni-flag {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: var(--primary);
  flex-shrink: 0;
}
.uni-logo-wrapper {
  position: relative;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}
.uni-logo-img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  padding: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: transform 0.15s ease;
}
.uni-card:hover .uni-logo-img {
  transform: scale(1.05);
}
.uni-country-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #0F4C81;
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1.5px solid #ffffff;
}
.uni-card .uni-name { font-weight: 600; font-size: 0.95rem; line-height: 1.35; }
.uni-card .uni-country { font-size: 0.78rem; color: var(--text-secondary); margin-top: 3px; }

/* ---------- Process / signature pathway ---------- */
.pathway {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.pathway::before {
  content: "";
  position: absolute;
  top: 34px; left: 6%; right: 6%;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--border) 0 10px, transparent 10px 18px);
  z-index: 0;
}
.pathway-step { position: relative; z-index: 1; text-align: left; }
.pathway-step .step-num {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--secondary);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.pathway-step:nth-child(4) .step-num { background: var(--accent); border-color: var(--accent); color: var(--primary-dark); }
.pathway-step h4 { margin-bottom: 8px; font-size: 1.05rem; }
.pathway-step p { color: var(--text-secondary); font-size: 0.88rem; }

@media (max-width: 900px) {
  .pathway { grid-template-columns: 1fr; gap: 36px; }
  .pathway::before { display: none; }
}

/* ---------- Services ---------- */
.service-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.service-row:last-child { border-bottom: none; }
.service-row .num { font-family: var(--font-display); font-weight: 700; color: var(--secondary); font-size: 1rem; }
.service-row h4 { margin-bottom: 6px; }
.service-row p { color: var(--text-secondary); font-size: 0.92rem; }

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
}
.service-card .program-icon { margin-bottom: 20px; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.testimonial-card .stars { color: var(--accent); margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card p.quote { font-size: 0.98rem; margin-bottom: 22px; color: var(--text); }
.testimonial-who { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
}
.testimonial-who b { font-size: 0.9rem; display: block; }
.testimonial-who span { font-size: 0.78rem; color: var(--text-secondary); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(212,175,55,0.16);
  right: -100px; top: -120px;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 440px; }
.cta-band-actions { display: flex; gap: 14px; position: relative; z-index: 1; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.72);
  padding: 72px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 300px; }
.footer-col h5 { font-family: var(--font-display); color: #fff; font-size: 0.9rem; margin-bottom: 18px; letter-spacing: 0.02em; }
.footer-col li { margin-bottom: 11px; font-size: 0.88rem; }
.footer-col a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--accent); color: var(--primary-dark); border-color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 26px; font-size: 0.82rem; flex-wrap: wrap; gap: 12px;
}
.footer-bottom a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer-bottom a:hover {
  color: var(--accent);
}
.admin-portal-link {
  color: var(--accent) !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.admin-portal-link:hover {
  text-decoration: underline;
  color: #ffffff !important;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; }
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  padding: 56px 0 44px;
  background: linear-gradient(180deg, #EFF4FA 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.breadcrumb { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 14px; }
.breadcrumb a { color: var(--secondary); }
.breadcrumb .sep { margin: 0 8px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #FBFCFE;
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(30,136,229,0.12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-note { font-size: 0.82rem; color: var(--text-secondary); margin-top: 18px; text-align: center; }
.form-note a { color: var(--secondary); font-weight: 600; }

.tab-switch {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 30px;
}
.tab-switch button {
  flex: 1;
  padding: 11px;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 6px;
  color: var(--text-secondary);
  transition: all 0.18s ease;
}
.tab-switch button.active { background: var(--card); color: var(--primary); box-shadow: var(--shadow-sm); }

.consult-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .consult-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.consult-sidebar {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 34px;
}
.consult-sidebar h3 { color: #fff; margin-bottom: 18px; }
.consult-point { display: flex; gap: 14px; margin-bottom: 24px; }
.consult-point .dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(212,175,55,0.2); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.consult-point p { font-size: 0.88rem; color: rgba(255,255,255,0.8); }
.consult-point b { display: block; font-size: 0.94rem; margin-bottom: 3px; color: #fff; }

/* ---------- Filter/search bar (universities page) ---------- */
.filter-bar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 30px;
}
.search-input {
  flex: 1;
  min-width: 220px;
  position: relative;
}
.search-input svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-secondary); }
.search-input input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
}
.search-input input:focus { outline: none; border-color: var(--secondary); }
.result-count { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 22px; }

/* ---------- FAQ (services) ---------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  background: var(--card);
  overflow: hidden;
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 0.95rem;
}
.faq-q svg { transition: transform 0.2s ease; flex-shrink: 0; color: var(--secondary); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.faq-item.open .faq-a { max-height: 240px; padding: 0 24px 22px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Utilities ---------- */
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.mt-40 { margin-top: 40px; }
.text-center { text-align: center; }

/* ==========================================================================
   Comprehensive Responsive & Mobile Polish System
   ========================================================================== */

/* 1. Mobile Drawer Navigation Improvements (< 900px) */
@media (max-width: 900px) {
  .nav-cta {
    gap: 8px;
  }
  .nav-cta .btn-primary {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
}

/* 2. Responsive Country Tabs Bar (Universities Page) */
.country-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 10px;
  margin-bottom: 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.country-tabs::-webkit-scrollbar {
  display: none;
}
.country-tab {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-secondary);
  transition: all 0.18s ease;
}
.country-tab.active,
.country-tab:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* 3. Small Mobile Devices (< 576px) */
@media (max-width: 576px) {
  .hero {
    padding: 40px 0 32px;
  }
  .hero h1 {
    font-size: 1.75rem;
    line-height: 1.25;
    margin-bottom: 16px;
  }
  .hero p.lead {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .hero-stats .stat b {
    font-size: 1.3rem;
  }
  .hero-stats .stat span {
    font-size: 0.78rem;
  }
  .section {
    padding: 44px 0;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .form-card {
    padding: 24px 18px;
    border-radius: 12px;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Prevents auto-zoom on iOS */
    padding: 12px 14px;
  }
  .search-input input {
    font-size: 16px;
    padding: 12px 14px 12px 42px;
  }
}

/* 4. Table Responsiveness */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 16px;
  border-radius: var(--radius-md);
}

/* 5. Smooth Touch & Image Bounds */
img, svg {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   Modern & High-End Register / Login Page System
   ========================================================================== */

.auth-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 0 60px;
}

.auth-wrapper {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15, 76, 129, 0.08);
}

/* Left Brand Panel */
.auth-hero {
  background: linear-gradient(145deg, #0F4C81 0%, #092B4B 100%);
  color: #ffffff;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(30, 136, 229, 0.25);
  filter: blur(50px);
  pointer-events: none;
}

.auth-hero::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.18);
  filter: blur(45px);
  pointer-events: none;
}

.auth-hero-brand {
  margin-bottom: 32px;
}

.auth-hero-logo {
  height: 48px;
  max-height: 48px;
  object-fit: contain;
}

.auth-hero-content h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 16px;
}

.auth-hero-content p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.auth-hero-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}

.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-feature-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.auth-hero-trust {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-trust-avatars {
  display: flex;
}

.auth-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #0F4C81;
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -8px;
}

.auth-avatar:first-child {
  margin-left: 0;
}

.auth-trust-text {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Right Form Side */
.auth-form-side {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-form-header {
  margin-bottom: 24px;
}

.auth-form-header h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.auth-form-header p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* Modern Segmented Tab Switcher */
.auth-tab-switch {
  display: flex;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 26px;
}

.auth-tab-switch button {
  flex: 1;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 9px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.auth-tab-switch button.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Form Input with Icons */
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon svg.field-icon {
  position: absolute;
  left: 14px;
  color: #94A3B8;
  pointer-events: none;
  transition: color 0.18s ease;
}

.input-with-icon input,
.input-with-icon select {
  padding-left: 44px !important;
  padding-right: 40px !important;
  border-radius: 10px;
  font-size: 0.92rem;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  height: 48px;
}

.input-with-icon input:focus,
.input-with-icon select:focus {
  background: #ffffff;
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.12);
}

.input-with-icon input:focus ~ svg.field-icon,
.input-with-icon select:focus ~ svg.field-icon {
  color: var(--secondary);
}

.toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94A3B8;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.18s ease;
}

.toggle-password:hover {
  color: var(--primary);
}

.btn-auth {
  height: 48px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  border: none;
  box-shadow: 0 4px 14px rgba(30, 136, 229, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
}

.admin-login-notice {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.admin-login-notice a {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.admin-login-notice a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .auth-wrapper {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }
  .auth-hero {
    padding: 32px 24px;
  }
  .auth-hero-content h2 {
    font-size: 1.5rem;
  }
  .auth-hero-features {
    display: none;
  }
  .auth-form-side {
    padding: 32px 24px;
  }
}

/* Password Strength Indicator */
.pass-strength-meter {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pass-strength-bar {
  flex: 1;
  height: 4px;
  background: #E2E8F0;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.pass-strength-fill {
  height: 100%;
  width: 0%;
  transition: width 0.25s ease, background-color 0.25s ease;
  border-radius: 2px;
}

.pass-strength-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 60px;
}

/* ==========================================================================
   Modern Professional Popup Modal System
   ========================================================================== */
.cci-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 99999;
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.28s ease;
}

.cci-modal-overlay.active {
  display: flex !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cci-modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transform: scale(0.92) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.cci-modal-overlay.active .cci-modal-card {
  transform: scale(1) translateY(0);
}

.cci-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: #F1F5F9;
  color: #64748B;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.cci-modal-close:hover {
  background: #E2E8F0;
  color: #0F172A;
  transform: rotate(90deg);
}

.cci-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(15, 76, 129, 0.08);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.cci-modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.cci-modal-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 22px;
}

.cci-modal-actions {
  display: flex;
  gap: 10px;
}

.cci-modal-actions .btn {
  flex: 1;
  justify-content: center;
  text-align: center;
  padding: 11px 16px;
  font-size: 0.9rem;
  border-radius: 10px;
}

/* ==========================================================================
   Master Mobile Overflow & Touch Responsiveness Protection
   ========================================================================== */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

@media (max-width: 768px) {
  .section-head,
  .hero p.lead,
  .cta-band p,
  .footer-brand p {
    max-width: 100% !important;
  }
  
  .hero-card {
    padding: 20px 16px !important;
  }
  
  .hero-country-row {
    padding: 10px 12px !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  .hero-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-bar select,
  .filter-bar .search-input {
    width: 100% !important;
  }
}
