/**
 * University Profile CSS
 * Main stylesheet for single university pages
 * Matches approved design from univs-university-demo.html
 *
 * @package Univs_Core
 * @since   1.1.2
 */

/* =========================================================
   PALETTE & ROOT VARIABLES
   ========================================================= */
:root {
  /* --uni-primary, --uni-primary-dk, --uni-accent, --uni-hover, --uni-text
     are intentionally NOT set here. They are injected by Univs_Palette::output_palette_css()
     in wp_head so each university can have its own colour theme.
     Fallback values are defined in Univs_Palette::DEFAULT_PALETTE (class-univs-palette.php). */
  --univs-blue: #1A56E8;
  --univs-blue-dk: #1440C4;
  --univs-blue-lt: #EEF2FF;
  --cta: #DC2626;
  --cta-dk: #B91C1C;
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --border: #E2E8F0;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --success: #16A34A;
  --whatsapp: #25D366;
  --featured: #F59E0B;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.12);
  --transition: 0.2s ease;
}

/* =========================================================
   GLOBAL RESET & DEFAULTS
   ========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* =========================================================
   WP GLOBAL HEADER
   ========================================================= */
.wp-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow);
}

.wp-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--univs-blue);
  letter-spacing: -0.5px;
}

.wp-logo span {
  color: var(--text-primary);
}

.wp-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.wp-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.wp-nav a:hover {
  color: var(--univs-blue);
}

.wp-nav .btn-login {
  background: var(--univs-blue);
  color: #fff !important;
  padding: 7px 16px;
  border-radius: 8px;
  font-weight: 600 !important;
}

.wp-nav .btn-login:hover {
  background: var(--univs-blue-dk) !important;
}

/* =========================================================
   BREADCRUMB
   ========================================================= */
.breadcrumb {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 9px 24px;
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #475569;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .15s;
}

.breadcrumb a:hover {
  color: var(--uni-primary, #1A56E8);
}

.breadcrumb-sep {
  color: #cbd5e1;
}

.breadcrumb-cur {
  color: var(--uni-primary, #1A56E8);
  font-weight: 500;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--uni-primary-dk) 0%, var(--uni-primary) 55%, color-mix(in srgb, var(--uni-primary) 60%, #fff) 100%);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255,255,255,.05) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255,255,255,.08) 0%, transparent 50%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.3) 60%, rgba(0,0,0,.1) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 48px 24px 36px;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.hero-identity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}

.hero-logo {
  width: 72px;
  height: 72px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--uni-primary);
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}

.hero-title-wrap h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,.85);
  font-size: 0.95rem;
  margin-top: 3px;
  font-weight: 500;
}

.hero-badges {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 14px 0;
  justify-content: center;
}

.badge {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-gold {
  background: rgba(212,175,55,.25);
  border-color: rgba(212,175,55,.5);
  color: #fde68a;
}

.badge-featured {
  background: rgba(245,158,11,.9);
  border-color: rgba(245,158,11,1);
  color: #fff;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.stat-chip {
  flex: 1;
  min-width: 110px;
  padding: 16px 14px;
  border-right: 1px solid rgba(255,255,255,.1);
  text-align: center;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-chip:last-child {
  border-right: none;
}

.stat-chip:hover {
  background: rgba(255,255,255,.08);
}

.stat-chip-icon {
  font-size: 1.35rem;
  display: block;
  line-height: 1;
  font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;
}

.stat-chip-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.3px;
}

.stat-chip-label {
  display: block;
  font-size: 0.65rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
}

.btn-apply {
  background: var(--uni-primary);
  color: #fff;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-apply:hover {
  background: var(--uni-primary-dk);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.5);
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.8);
}

.btn-save {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
}

.btn-save:hover,
.btn-save.saved {
  background: rgba(220,38,38,.7);
  border-color: rgba(220,38,38,.9);
}

/* --- Hero v1.1.4 new classes --- */
.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}

.hero .hero-badge-row {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap !important;
  width: auto;
  max-width: calc(100% - 24px);
  margin: 0 auto 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 4px 4px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  white-space: nowrap;
}

.hero .hero-badge-row::-webkit-scrollbar {
  display: none;
}

.hero .hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  border: 1px solid transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  white-space: nowrap;
}

.hero .hero-badge .univs-verified-badge,
.hero .hero-badge .hero-badge-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-badge--approved {
  background: rgba(219, 234, 254, 0.95);
  color: #1d4ed8;
  border-color: rgba(191, 219, 254, 0.95);
}

.hero-badge--partner {
  background: rgba(243, 232, 255, 0.95);
  color: #7c3aed;
  border-color: rgba(221, 214, 254, 0.98);
}

.hero-badge--featured {
  background: rgba(254, 243, 199, 0.96);
  color: #b45309;
  border-color: rgba(253, 230, 138, 0.98);
}

.hero-badge-icon {
  line-height: 1;
  font-weight: 900;
}

.hero-badge-icon--plus {
  font-size: 1.25rem;
  color: #7c3aed;
  transform: translateY(-1px);
}

.hero-badge-icon--star {
  font-size: 1rem;
  color: #d97706;
}

.hero-badge-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d97706;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.hero-logo-initials {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--uni-primary);
  line-height: 1;
}

.hero-map-pin {
  width: 22px;
  height: 28px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.4));
  opacity: 0.85;
}

.hero-map-pin svg {
  width: 100%;
  height: 100%;
}

.hero-location {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  color: rgba(255,255,255,.9);
  font-size: 1rem;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.hero-location-city {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  line-height: 1.2;
}

.hero-location-country {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  line-height: 1.2;
}

.hero-website {
  color: rgba(255,255,255,.7);
  font-size: 0.78rem;
  font-weight: 400;
  text-decoration: underline;
  transition: color var(--transition);
}

.hero-website:hover {
  color: #fff;
}

/* hero-stat: replaces old .stat-chip */
.hero-stat {
  flex: 1;
  min-width: 90px;
  padding: 13px 14px;
  border-right: 1px solid rgba(255,255,255,.15);
  text-align: center;
  transition: background var(--transition);
}

.hero-stat:last-child {
  border-right: none;
}

.hero-stat:hover {
  background: rgba(255,255,255,.08);
}

.hero-stat-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.hero-stat-label {
  display: block;
  font-size: 0.65rem;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

/* btn-brochure: replaces old .btn-outline */
.btn-brochure {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.5);
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  backdrop-filter: blur(8px);
}

.btn-brochure:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.8);
}

/* btn-wishlist — same solid style as btn-apply */
.btn-wishlist {
  background: var(--uni-primary);
  color: #fff;
  border: none;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.btn-wishlist:hover {
  background: var(--uni-primary-dk);
  transform: translateY(-1px);
}

.btn-wishlist .wishlist-heart {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.btn-wishlist:hover .wishlist-heart {
  transform: scale(1.2);
}

/* Saved state — red fill */
.btn-wishlist.active,
.btn-wishlist.active:hover {
  background: rgba(220,38,38,.85);
  color: #fff;
}

/* =========================================================
   UNIVERSITY SUB-NAV
   ========================================================= */
:root {
  --univs-admin-bar-offset: 0px;
  --univs-uni-nav-height: 54px;
}

body.admin-bar {
  --univs-admin-bar-offset: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar {
    --univs-admin-bar-offset: 46px;
  }
}

/* ── University sticky nav ───────────────────────────── */
.uni-nav {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: -webkit-sticky;
  position: sticky;
  top: var(--univs-admin-bar-offset, 0px) !important;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  height: 54px;
  isolation: isolate;
}

.uni-nav.uni-nav--fixed-fallback {
  position: fixed !important;
  top: var(--univs-admin-bar-offset, 0px) !important;
  left: 0;
  right: 0;
}

body.has-uni-nav.uni-nav-fixed-fallback {
  padding-top: var(--univs-uni-nav-height, 54px);
}

.uni-nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

/* Logo area */
.uni-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.uni-nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

.uni-nav-logo-initials {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--uni-primary, #15803d);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .03em;
}

/* University name shown next to logo */
.uni-nav-name {
  font-weight: 700;
  font-size: .95rem;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

/* Nav links — pill style matching country nav */
.uni-nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 100%;
}

.uni-nav-links a,
.uni-nav-links a:link,
.uni-nav-links a:visited {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: .88rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}

.uni-nav-links a:hover,
.uni-nav-links a:active,
.uni-nav-links a:focus,
.uni-nav-links a.active {
  background: #f1f5f9;
  color: #1e293b;
}

.uni-nav-links a.nav-apply,
.uni-nav-links a.nav-apply:link,
.uni-nav-links a.nav-apply:visited {
  background: var(--uni-primary, #dc2626);
  color: #fff;
  font-weight: 600;
  margin-left: 8px;
}

.uni-nav-links a.nav-apply:hover,
.uni-nav-links a.nav-apply:active,
.uni-nav-links a.nav-apply:focus,
.uni-nav-links a.nav-apply.active {
  opacity: .9;
  background: var(--uni-primary, #dc2626);
  color: #fff;
}

.uni-nav-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.intake-badge {
  background: #DCFCE7;
  color: var(--success);
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.65rem;
}

.nav-favourite {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.nav-favourite:hover {
  border-color: #e5384f;
  color: #e5384f;
  background: #fff0f2;
}

.nav-favourite.active {
  border-color: #e5384f;
  color: #e5384f;
  background: #fff0f2;
}

.nav-favourite .wishlist-heart { font-size: 1rem; line-height: 1; }
.nav-favourite .wishlist-label { font-size: 0.76rem; }

/* =========================================================
   PAGE LAYOUT
   ========================================================= */
.page-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* =========================================================
   SECTION BASE
   ========================================================= */
.section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
  scroll-margin-top: 130px;
  overflow: hidden;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title-icon {
  width: 34px;
  height: 34px;
  background: var(--uni-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.section-link {
  font-size: 0.82rem;
  color: var(--uni-primary);
  font-weight: 600;
}

.section-link:hover {
  text-decoration: underline;
}

/* =========================================================
   ABOUT SECTION
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.about-text p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

.about-quickinfo {
  background: var(--uni-accent);
  border: 1px solid rgba(21,128,61,.15);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.quick-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(21,128,61,.1);
  font-size: 0.88rem;
}

.quick-row:last-child {
  border-bottom: none;
}

.quick-label {
  color: var(--text-muted);
  font-weight: 500;
}

.quick-value {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}

.quick-link {
  color: var(--univs-blue);
}

/* =========================================================
   LEAD FORM BOX
   ========================================================= */
/* =========================================================
   LEAD FORM BANNER — inline counselling / scholarship / enquiry
   ========================================================= */

.lead-form-box {
  background: linear-gradient(135deg, var(--uni-primary) 0%, var(--uni-primary-dk) 100%);
  border-radius: var(--radius);
  padding: 28px 32px;
  color: #fff;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

/* Subtle geometric decoration */
.lead-form-box::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  pointer-events: none;
}

.lead-form-box::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: 80px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}

.lead-form-box__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.lead-form-box__text {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.lead-form-box__icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.lead-form-box__text h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -.01em;
  line-height: 1.2;
}

.lead-form-box__text p {
  font-size: 0.88rem;
  opacity: .82;
  margin: 0;
  line-height: 1.5;
}

.lead-form-box__form {
  flex: 1;
}

.lead-form-box__fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lead-field-row {
  display: flex;
  gap: 10px;
}

.lead-phone-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.lead-phone-group {
  display: flex;
  flex: 1;
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.13);
}

.lead-phone-group:focus-within {
  border-color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.2);
}

/* Wrap that holds both the pill button and the hidden native select */
.lead-dial-pill-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  border-right: 1px solid rgba(255,255,255,.25);
}

/* Visible flag + code button */
.lead-dial-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px 0 10px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  z-index: 2;
  position: relative;
}

.lead-dial-pill:focus {
  outline: none;
}

.lead-dial-flag {
  font-size: 1.15rem;
  line-height: 1;
}

.lead-dial-num {
  font-weight: 700;
  font-size: 0.83rem;
  letter-spacing: .01em;
}

.lead-dial-caret {
  font-size: 0.7rem;
  opacity: .7;
}

/* Native select — invisible overlay on top of the pill wrap so clicking pill area opens it */
.lead-dial-select {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 3;
}

.lead-dial-select:focus {
  outline: none;
}

.lead-input--phone {
  flex: 1;
  min-width: 0;
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.lead-input--phone:focus {
  outline: none;
  background: transparent !important;
  border-color: transparent !important;
}

.lead-input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.13);
  color: #fff;
  font-size: 0.88rem;
  font-family: inherit;
  transition: border-color var(--transition), background var(--transition);
}

.lead-input::placeholder {
  color: rgba(255,255,255,.6);
}

.lead-input:focus {
  outline: none;
  border-color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.2);
}

.lead-submit {
  flex-shrink: 0;
  background: #fff;
  color: var(--uni-primary);
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: -.01em;
}

.lead-submit:hover {
  background: var(--uni-accent, #f0fdf4);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}

.lead-form-box__success {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.95);
  font-size: .92rem;
  font-weight: 600;
  padding: 11px 0 2px;
}

.lead-form-box__success-icon {
  font-size: 1.2rem;
}

.lead-form-box__trust {
  margin: 7px 0 0;
  font-size: .75rem;
  opacity: .65;
  letter-spacing: .01em;
}

/* Responsive: stack on mobile */
@media (max-width: 780px) {
  .lead-form-box__inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .lead-field-row,
  .lead-phone-row {
    flex-direction: column;
  }
  .lead-phone-group {
    width: 100%;
  }
  .lead-submit {
    width: 100%;
    padding: 13px;
    text-align: center;
  }
}

/* =========================================================
   WHY STUDY
   ========================================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.why-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.why-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.why-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.why-card p {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =========================================================
   RANKINGS
   ========================================================= */
.rankings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.rank-card {
  background: var(--uni-accent);
  border: 1px solid rgba(21,128,61,.15);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.rank-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--uni-primary);
  line-height: 1;
}

.rank-label {
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.rank-source {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 3px;
  font-style: italic;
}

.accreditation-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.accred-badge {
  background: var(--card);
  border: 1.5px solid var(--uni-primary);
  color: var(--uni-primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* =========================================================
   PROGRAMS
   ========================================================= */
.programs-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.prog-filter-btn {
  padding: 7px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--card);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.prog-filter-btn:hover,
.prog-filter-btn.active {
  background: var(--uni-accent);
  border-color: var(--uni-primary);
  color: var(--uni-primary);
}

.programs-table {
  width: 100%;
  border-collapse: collapse;
}

.programs-table th {
  background: var(--bg);
  padding: 11px 14px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border);
}

.programs-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  vertical-align: middle;
}

.programs-table tr:last-child td {
  border-bottom: none;
}

.programs-table tr:hover td {
  background: var(--uni-accent);
}

.prog-name {
  font-weight: 600;
  color: var(--text-primary);
}

.prog-name small {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 1px;
}

.prog-badge {
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.62rem;
  font-weight: 600;
}

.prog-badge-open {
  background: var(--uni-accent, #DCFCE7);
  color: var(--uni-primary, #15803D);
}

.prog-badge-closing {
  background: #FEF3C7;
  color: #D97706;
}

.btn-apply-sm {
  background: var(--uni-primary);
  color: #fff;
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-apply-sm:hover {
  background: var(--uni-primary-dk);
}

.btn-apply-lg {
  background: var(--uni-primary);
  color: #fff;
  padding: 15px 32px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-apply-lg:hover {
  background: var(--uni-primary-dk);
  transform: translateY(-1px);
}

.view-all-link {
  text-align: center;
  margin-top: 16px;
}

.view-all-link a {
  color: var(--uni-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* =========================================================
   FEES
   ========================================================= */
.fees-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.fee-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.fee-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.fee-row:last-child {
  border-bottom: none;
}

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

.fee-amount {
  font-weight: 700;
  color: var(--text-primary);
}

.scholarship-card {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  border: 1px solid #F59E0B;
  border-radius: var(--radius-sm);
  padding: 20px;
}

.scholarship-card h4 {
  color: #78350F;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.scholarship-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.scholarship-item:last-child {
  margin-bottom: 0;
}

.scholarship-item .dot {
  width: 6px;
  height: 6px;
  background: #D97706;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

.scholarship-item p {
  font-size: 0.85rem;
  color: #78350F;
}

/* Programme scholarship pills on the university fees section */
.scholarship-programme-group {
  margin-bottom: 12px;
}

.schol-prog-header {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.schol-degree-badge {
  display: inline-flex;
  align-items: center;
  background: #f0fdf4;
  color: #166534;
  border: 1.5px solid #86efac;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.schol-prog-link {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  color: #92400e;
  text-decoration: none;
}

.schol-prog-link:hover {
  text-decoration: underline;
}

.schol-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.schol-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0fdf4;
  color: #166534;
  border: 1.5px solid #86efac;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

a.schol-pill:hover {
  background: #dcfce7;
  border-color: #4ade80;
}

/* =========================================================
   ADMISSIONS
   ========================================================= */
.req-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.req-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.req-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.req-list li strong {
  color: var(--text-primary);
}

.deadline-box {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 18px;
}

.deadline-box p {
  font-size: 0.85rem;
  color: #991B1B;
  font-weight: 600;
}

/* =========================================================
   HOW TO APPLY
   ========================================================= */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-item {
  display: flex;
  gap: 16px;
  position: relative;
  padding-bottom: 24px;
}

.step-item:last-child {
  padding-bottom: 0;
}

.step-item::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.step-item:last-child::before {
  display: none;
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--uni-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  z-index: 1;
}

.step-body h4,
.step-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  display: block;
}

.step-body p,
.step-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.step-text {
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.6;
  padding-top: 6px;
}

/* =========================================================
   APPLICATION REQUIREMENTS
   ========================================================= */
.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.requirement-card {
  background: var(--uni-accent, #F0FDF4);
  border: 1px solid var(--uni-border, #E5E7EB);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.requirement-card__heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--uni-primary);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--uni-primary);
}

.requirement-list {
  margin: 0;
  padding: 0 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.requirement-list li {
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.5;
}

/* =========================================================
   SECTION PLACEHOLDER (empty state)
   ========================================================= */
.section-placeholder {
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0;
  text-align: center;
}

/* =========================================================
   CAMPUS / GALLERY
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  cursor: pointer;
  transition: transform var(--transition);
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item.tall {
  grid-row: span 2;
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.facility-chip {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* =========================================================
   HOSTEL
   ========================================================= */
.hostel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hostel-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.hostel-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.hostel-card .price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--uni-primary);
  margin: 8px 0;
}

.hostel-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hostel-card ul li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hostel-card ul li::before {
  content: '·';
  color: var(--uni-primary);
  font-weight: 800;
}

/* =========================================================
   VISA & COST
   ========================================================= */
.visa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

/* Column headings */
.visa-column-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--uni-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.visa-column-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(var(--uni-primary), .2);
  background: color-mix(in srgb, var(--uni-primary) 20%, transparent);
}

.cost-column-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.cost-column-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Visa info list */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.info-item:last-child {
  border-bottom: none;
}

.info-icon-wrap {
  width: 34px;
  height: 34px;
  background: var(--uni-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.info-item-body {
  flex: 1;
}

.info-item-body p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.info-item-body strong {
  color: var(--text-primary);
}

/* Visa approval pill */
.visa-approval-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #DCFCE7;
  border: 1px solid #86EFAC;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #15803D;
  margin-top: 16px;
}

.visa-approval-pill .dot {
  width: 7px;
  height: 7px;
  background: #16A34A;
  border-radius: 50%;
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(.85); }
}

/* Cost items */
.cost-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cost-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  transition: border-color var(--transition), background var(--transition);
}

.cost-item:hover {
  background: #fff;
  border-color: #CBD5E1;
}

.cost-item-icon {
  font-size: 1.05rem;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.cost-item-label {
  flex: 1;
  font-size: 0.865rem;
  color: var(--text-secondary);
}

.cost-item-range {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.cost-total-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  background: linear-gradient(135deg, var(--uni-primary), var(--uni-primary-dk));
  border-radius: 9px;
  margin-top: 4px;
}

.cost-total-bar-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
}

.cost-total-bar-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

/* Legacy .visa-subheading (keep for old data compatibility) */
.visa-subheading {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
}

/* =========================================================
   REVIEWS
   ========================================================= */
.reviews-summary {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px;
  background: var(--uni-accent);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.reviews-score {
  text-align: center;
}

.reviews-score .score {
  font-size: 3rem;
  font-weight: 800;
  color: var(--uni-primary);
  line-height: 1;
}

.reviews-score .out-of {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stars {
  display: flex;
  gap: 2px;
  justify-content: center;
  margin: 4px 0;
}

.star {
  color: #F59E0B;
  font-size: 1rem;
}

.star.empty {
  color: var(--border);
}

.reviews-bars {
  flex: 1;
}

.rating-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 0.8rem;
}

.rating-bar-track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background: var(--uni-primary);
  border-radius: 3px;
}

.review-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--uni-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.review-name {
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.review-verified {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--success);
  background: #DCFCE7;
  padding: 2px 7px;
  border-radius: 10px;
  white-space: nowrap;
}

.review-program {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.review-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 767px) {
  .review-cards {
    grid-template-columns: 1fr;
  }
}

/* Login gate */
.review-login-gate {
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 32px;
  text-align: center;
  margin-top: 20px;
}

.review-login-gate h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.review-login-gate p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.btn-login-gate {
  background: var(--uni-primary);
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background var(--transition);
}

.btn-login-gate:hover {
  background: var(--uni-primary-dk);
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: inherit;
  transition: background var(--transition);
}

.faq-q:hover {
  background: var(--uni-accent);
}

.faq-q .chevron {
  transition: transform 0.25s;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.faq-q.open .chevron {
  transform: rotate(180deg);
}

.faq-q.open {
  color: var(--uni-primary);
  background: var(--uni-accent);
}

.faq-a {
  display: none;
  padding: 0 18px 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-a.open {
  display: block;
}

/* FAQ "Still Have Questions" contact card */
.faq-contact {
  margin-top: 20px;
  background: linear-gradient(135deg, var(--uni-primary-dk) 0%, var(--uni-primary) 100%);
  border-radius: var(--radius);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  flex-wrap: wrap;
}

.faq-contact-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-contact-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.faq-contact-left strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.faq-contact-left span {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,.78);
  line-height: 1.3;
  margin-top: 2px;
}

.btn-faq-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--uni-primary);
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-faq-contact:hover {
  background: var(--uni-accent, #DCFCE7);
  transform: translateY(-1px);
}

/* FAQ — Official website footer */
.faq-official-website {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--bg, #f8fafc);
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 12px;
}

.faq-official-website__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.faq-official-website__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.faq-official-website__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-official-website__text strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.faq-official-website__text span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.faq-official-website__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--uni-primary);
  color: #fff !important;
  text-decoration: none !important;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}

.faq-official-website__btn:hover {
  background: var(--uni-primary-dk);
  transform: translateY(-1px);
}

/* =========================================================
   PROGRAMS FROM OTHER UNIVERSITIES
   ========================================================= */

.prog-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

body.tax-uni_country .prog-related-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

body.tax-uni_country .prog-related-card--featured {
  border-color: var(--uni-primary);
  box-shadow: 0 0 0 1px var(--uni-primary);
}

body.tax-uni_country .prog-related-ribbon {
  position: absolute;
  top: 12px;
  right: -22px;
  background: var(--uni-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 28px;
  transform: rotate(45deg);
  transform-origin: center;
}

body.tax-uni_country .prog-related-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

body.tax-uni_country .prog-related-degree {
  display: inline-block;
  align-self: flex-start;
  background: var(--univs-blue-lt, #dbeafe);
  color: var(--univs-blue, #1d4ed8);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

body.tax-uni_country .prog-related-name {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

body.tax-uni_country .prog-related-name a {
  color: var(--text-primary) !important;
  text-decoration: none !important;
  transition: color var(--transition);
}

body.tax-uni_country .prog-related-name a:hover {
  color: var(--uni-primary) !important;
}

body.tax-uni_country .prog-related-discipline {
  font-size: 0.78rem;
  color: var(--text-muted);
}

body.tax-uni_country .prog-related-university {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

body.tax-uni_country .prog-related-uni-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.tax-uni_country .prog-related-uni-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.tax-uni_country .prog-related-uni-initials {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--uni-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.tax-uni_country .prog-related-uni-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition);
}

body.tax-uni_country .prog-related-uni-name:hover {
  color: var(--uni-primary) !important;
}

body.tax-uni_country .prog-related-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

body.tax-uni_country .prog-related-fee {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
}

body.tax-uni_country .prog-related-fee small {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-muted);
}

body.tax-uni_country .prog-related-dur {
  font-size: 0.78rem;
  color: var(--text-muted);
}

body.tax-uni_country .prog-related-footer {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  align-items: center;
}

body.tax-uni_country .prog-related-btn-view {
  flex: 0 0 auto;
  text-align: center;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary) !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: border-color var(--transition), color var(--transition);
}

body.tax-uni_country .prog-related-btn-view:hover {
  border-color: #0163d2;
  color: #0163d2 !important;
}

body.tax-uni_country .prog-related-btn-apply {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 8px;
  background: #eef4ff;
  border: 1.5px solid #d7e4ff;
  color: #111827 !important;
  text-decoration: none !important;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}

body.tax-uni_country .prog-related-btn-apply:hover {
  background: #0152b0;
}

/* =========================================================
   RELATED UNIVERSITIES
   ========================================================= */
.related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: stretch;
}

body.tax-uni_country .uni-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

body.tax-uni_country .uni-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

body.tax-uni_country .uni-card-featured {
    background: #fefce8;           /* soft yellow fill */
    border: 2px solid #facc15;     /* golden border */
    box-shadow: 0 4px 18px rgba(250, 204, 21, 0.25);
}
body.tax-uni_country .uni-card-featured .uni-card-cover {
    border-bottom: 2px solid #facc15;
}
body.tax-uni_country .featured-ribbon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #facc15;
    color: #78350f;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

body.tax-uni_country .uni-card-cover {
  height: 110px;
  background: linear-gradient(135deg, #1E3A5F 0%, #1A56E8 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: visible;
}

body.tax-uni_country .uni-card-logo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,22,53,.16), rgba(7,22,53,.62));
}

.uni-card-cover--program {
  min-height: 68px;
  height: 68px;
  padding: 0;
  background: linear-gradient(135deg, #16377f, #2563eb);
}

body.tax-uni_country .uni-card-logo-overlay {
  position: absolute;
  left: 10px;
  bottom: -14px;
  transform: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.15);
  display: grid;
  place-items: center;
  overflow: hidden;
  z-index: 2;
}

body.tax-uni_country .uni-card-logo-overlay img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.tax-uni_country .uni-card-initials {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  letter-spacing: -.02em;
}

.uni-card-local-placeholder,
.uni-program-card-logo-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background:
    radial-gradient(circle at 24% 20%, rgba(255,255,255,.78), transparent 24px),
    linear-gradient(135deg, #eef2ff 0%, #dbeafe 48%, #ecfdf5 100%);
  color: #1746a2;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: -.02em;
  box-shadow: inset 0 0 0 1px rgba(37,99,235,.14);
}

.uni-card-local-placeholder--institution {
  background:
    radial-gradient(circle at 26% 22%, rgba(255,255,255,.8), transparent 24px),
    linear-gradient(135deg, #eff6ff 0%, #dbeafe 48%, #f8fafc 100%);
  color: #0f3d84;
}

.uni-card-local-placeholder--program {
  background:
    radial-gradient(circle at 26% 22%, rgba(255,255,255,.8), transparent 24px),
    linear-gradient(135deg, #eef2ff 0%, #dbeafe 46%, #ecfdf5 100%);
  color: #1746a2;
}

.uni-card-local-placeholder > span,
.uni-program-card-logo-fallback > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 6px 14px rgba(15,23,42,.12);
}

body.tax-uni_country .uni-card-body {
  padding: 14px 14px 10px;
  flex: 1;           /* pushes footer to bottom, equalises body height */
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.tax-uni_country .uni-card-name {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--text-primary);
}

body.tax-uni_country .uni-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto; /* push meta to bottom of body so card footers align across cards */
}

body.tax-uni_country .uni-card-meta span {
  display: flex;
  align-items: center;
  gap: 3px;
}

body.tax-uni_country .uni-card-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

body.tax-uni_country .uni-card-rating {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--uni-primary);
}

body.tax-uni_country .btn-view {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--univs-blue);
  background: var(--univs-blue-lt);
  padding: 5px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

body.tax-uni_country .btn-view:hover {
  background: var(--univs-blue);
  color: #fff;
}

/* =========================================================
   ALL TOPICS TOC PANEL
   ========================================================= */
.toc-toggle {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 300;
  background: var(--uni-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 14px 8px;
  border-radius: 8px 0 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-md);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transition: background var(--transition);
}

.toc-toggle:hover {
  background: var(--uni-primary-dk);
}

.toc-toggle .toc-arrow {
  font-size: 0.8rem;
  writing-mode: horizontal-tb;
  transition: transform 0.25s;
}

.toc-toggle.open .toc-arrow {
  transform: rotate(180deg);
}

@keyframes tocBounce {
    0%   { transform: translateX(0); }
    20%  { transform: translateX(6px); }
    40%  { transform: translateX(-4px); }
    60%  { transform: translateX(3px); }
    80%  { transform: translateX(-2px); }
    100% { transform: translateX(0); }
}

.toc-toggle.toc-bounce {
    animation: tocBounce 0.55s ease;
}

.toc-panel {
  position: fixed;
  right: -260px;
  top: 130px;
  width: 248px;
  background: var(--card);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 12px 0 0 12px;
  box-shadow: var(--shadow-lg);
  z-index: 299;
  padding: 16px 0;
  transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
  max-height: calc(100vh - 150px);
  overflow-y: auto;
}

.toc-panel.open {
  right: 0;
}

.toc-panel-title {
  padding: 0 16px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

.toc-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}

.toc-link:hover {
  background: var(--uni-accent);
  color: var(--uni-primary);
}

.toc-link.active {
  background: var(--uni-accent);
  color: var(--uni-primary);
  font-weight: 700;
  border-left-color: var(--uni-primary);
}

.toc-link .toc-chevron {
  font-size: 0.7rem;
  opacity: 0.5;
}

.toc-link.active .toc-chevron {
  opacity: 1;
  color: var(--uni-primary);
}

/* =========================================================
   BROCHURE MODAL
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--text-muted);
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.modal h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.modal p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-primary);
  transition: border-color var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--uni-primary);
}

.modal-submit {
  background: var(--uni-primary);
  color: #fff;
  padding: 13px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: background var(--transition);
}

.modal-submit:hover {
  background: var(--uni-primary-dk);
}

.modal-success {
  text-align: center;
  padding: 20px 0;
}

.modal-success .success-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.modal-success h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 6px;
}

.modal-success p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* =========================================================
   FLOATING BUTTONS
   ========================================================= */
.float-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 400;
  background: var(--whatsapp);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  cursor: pointer;
  transition: transform var(--transition);
}

.float-whatsapp:hover {
  transform: scale(1.12);
}

.float-apply-mobile,
.univs-float-apply {
  display: none;
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 16px;
  right: 16px;
  z-index: 999998;
}

.float-apply-mobile,
.univs-float-apply__button {
  background: var(--uni-primary);
  color: #fff;
  min-height: 52px;
  padding: 14px 18px;
  border-radius: 999px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(1, 99, 210, .28);
}

.univs-float-apply__button {
  display: flex;
  align-items: center;
  justify-content: center;
}

.float-apply-mobile:hover,
.univs-float-apply__button:hover {
  background: var(--uni-primary-dk);
  color: #fff;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .about-grid, .fees-grid, .visa-grid, .hostel-grid {
    grid-template-columns: 1fr;
  }
  .why-grid, .rankings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .prog-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .toc-panel {
    top: 110px;
  }
  .float-apply-mobile,
  .univs-float-apply {
    display: block;
  }
  .float-whatsapp {
    bottom: calc(88px + env(safe-area-inset-bottom));
  }
}

/* === UNI NAV HAMBURGER (mobile) === */
.uni-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  border: none;
  background: #f1f5f9;
  cursor: pointer;
  border-radius: 6px;
  flex-shrink: 0;
}
.uni-nav-toggle:hover { background: #e2e8f0; }
.uni-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #334155;
  border-radius: 1px;
  transition: transform .2s, opacity .2s;
}
.uni-nav-toggle--active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.uni-nav-toggle--active span:nth-child(2) {
  opacity: 0;
}
.uni-nav-toggle--active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 768px) {
  :root {
    --univs-uni-nav-height: 48px;
  }
  .uni-nav {
    height: auto;
    overflow: visible;
  }
  .uni-nav-inner {
    height: 48px;
    gap: 12px;
    padding: 0 16px;
  }
  .uni-nav-name {
    font-size: .85rem;
    max-width: 180px;
  }
  .uni-nav-toggle { display: flex !important; }
  .uni-nav-links {
    display: none !important;
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 12px;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    gap: 4px;
    z-index: 1002;
    height: auto;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
  }
  .uni-nav-links.uni-nav-links--open {
    display: flex !important;
  }
  .uni-nav-links a,
  .uni-nav-links a:link,
  .uni-nav-links a:visited {
    padding: 12px 16px;
    font-size: .95rem;
    font-weight: 500;
    color: #475569;
    border-radius: 6px;
  }
  .uni-nav-links a:hover,
  .uni-nav-links a:active,
  .uni-nav-links a:focus,
  .uni-nav-links a.active {
    background: #f1f5f9;
    color: #1e293b;
  }
  .uni-nav-links a.nav-apply {
    margin-left: 0;
    text-align: center;
    margin-top: 6px;
  }
}

@media (max-width: 600px) {
  .hero-title-wrap h1,
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-map-pin {
    width: 20px;
    height: 26px;
  }
  .uni-nav-links a,
  .uni-nav-links a:link,
  .uni-nav-links a:visited {
    padding: 12px 16px;
    font-size: .95rem;
    font-weight: 500;
    color: #475569;
  }
  .uni-nav-links a.nav-pay,
  .uni-nav-meta {
    display: none;
  }
  .why-grid, .rankings-grid, .related-grid, .prog-related-grid {
    grid-template-columns: 1fr;
  }
  .lead-form-row {
    grid-template-columns: 1fr;
  }
  .page-wrap {
    padding: 16px 12px 80px;
  }
  .section {
    padding: 20px 14px;
  }
  .toc-toggle {
    top: 40%;
  }
}

/* ── HORIZONTAL SCROLL CAROUSEL (shared by all related/similar sections) ──── */
/*
 * Used by: section-related.php, section-programs-related.php,
 *          section-related-programs.php, section-related-unis-global.php,
 *          section-related-progs-global.php
 *
 * Cards sit in a single horizontal row that scrolls.
 * Works for both .related-grid (uni cards) and .prog-related-grid (program cards).
 */
.related-carousel,
.prog-related-carousel {
  display: flex;
  flex-direction: row;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Clip carousel content at the section boundary */
.section .related-carousel,
.section .prog-related-carousel {
  overflow-x: auto;
  overflow-y: hidden;
}

/* Scrollbar — thin and themed */
.related-carousel::-webkit-scrollbar,
.prog-related-carousel::-webkit-scrollbar { height: 4px; }
.related-carousel::-webkit-scrollbar-track,
.prog-related-carousel::-webkit-scrollbar-track { background: transparent; }
.related-carousel::-webkit-scrollbar-thumb,
.prog-related-carousel::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
.related-carousel::-webkit-scrollbar-thumb:hover,
.prog-related-carousel::-webkit-scrollbar-thumb:hover {
  background: var(--uni-primary);
}

/* Card widths — grow to fill available space when few cards exist, scroll when many.
   flex: 1 0 260px  → grow:1 shrink:0 basis:260px.
   No max-width so a single card fills the full container rather than sitting left. */
.related-carousel .uni-card {
  flex: 1 0 260px;
  min-width: 0;
  scroll-snap-align: start;
}
.prog-related-carousel .prog-related-card,
.prog-related-carousel .uni-card--program {
  flex: 1 0 260px;
  min-width: 0;
  scroll-snap-align: start;
}

/* Prev/Next navigation arrows */
.carousel-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
.carousel-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}
.carousel-nav-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--text-muted);
  font-size: .9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, color .15s, background .15s;
  flex-shrink: 0;
}
.carousel-nav-btn:hover:not(:disabled) {
  border-color: var(--uni-primary);
  color: var(--uni-primary);
  background: var(--uni-accent);
}
.carousel-nav-btn:disabled {
  opacity: .35;
  cursor: default;
}

/* Section header row: title + "View All" link + carousel nav arrows inline */
.section-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.section-header-row .section-title { flex: 1; margin-bottom: 0; }
.section-header-row .section-link  { white-space: nowrap; }

/* Country badge inside section title for "other countries" sections */
.section-title-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--uni-accent);
  color: var(--uni-text);
  border: 1px solid var(--uni-border);
  border-radius: 5px;
  padding: 2px 7px;
  margin-left: 8px;
  vertical-align: middle;
}

/* Carousel elements must keep flex layout on ALL screen sizes.
   This overrides the mobile .related-grid / .prog-related-grid 1-column reset
   above, which would otherwise break the horizontal scroll on small screens. */
.related-carousel.related-grid,
.prog-related-carousel.prog-related-grid {
  display: flex !important;
  grid-template-columns: unset !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

@media (max-width: 768px) {
  .univs-public-page .page-wrap,
  .univs-public-page .content-grid,
  .univs-public-page .main-content,
  .univs-public-page .section,
  .univs-public-page .section-inner,
  .univs-public-page .carousel-wrap {
    min-width: 0;
    max-width: 100%;
  }
  .related-carousel .uni-card {
    flex: 0 0 min(85vw, 320px);
    max-width: min(85vw, 320px);
  }
  .prog-related-carousel .prog-related-card,
  .prog-related-carousel .uni-card--program {
    flex: 0 0 min(85vw, 320px);
    max-width: min(85vw, 320px);
  }
}

/* =========================================================
   VERIFIED BADGE  (Fix F)
   ========================================================= */
.univs-verified-badge {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-left: 4px;
  flex-shrink: 0;
}
.univs-verified-badge img,
.univs-verified-badge svg {
  width: 18px;
  height: 18px;
}

/* =========================================================
   COUNTRY FLAG IMAGE  (Fix D)
   ========================================================= */
.univs-country-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5em;
  min-height: 1.1em;
  font-size: 1.1em;
  line-height: 1;
  border-radius: 3px;
  vertical-align: middle;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}

/* =========================================================
   HOMEPAGE HERO / SECTION HEADING SIZE CAPS  (Fix B)
   ========================================================= */

/* Hero h1 — desktop cap 52px, handled via clamp */
.univs-homepage-body .hero-title {
  font-size: clamp(34px, 5.5vw, 52px) !important;
}

/* Section h2 — desktop cap 40px */
.univs-homepage-body .sec-title {
  font-size: clamp(28px, 3.5vw, 40px) !important;
}

@media (max-width: 720px) {
  .univs-homepage-body .hero-title {
    font-size: clamp(28px, 9vw, 34px) !important;
  }
  .univs-homepage-body .sec-title {
    font-size: 28px !important;
  }
}

/* =========================================================
   HOMEPAGE SEARCH BAR FONT SIZE  (Fix C)
   ========================================================= */
.univs-homepage-body .search-input,
.univs-homepage-body .search-select {
  font-size: 14px !important;
}
.univs-homepage-body .search-input::placeholder {
  font-size: 14px;
}

/* =========================================================
   HERO RIGHT-SIDE UNIVERSITY CARD SIZE  (Fix C)
   ========================================================= */
.univs-homepage-body .hero-card-main {
  max-width: 280px;
  font-size: 0.85em;
}

@media (max-width: 1180px) {
  /* On narrower screens, keep card from overflowing into text */
  .univs-homepage-body .hero-card-main {
    max-width: 100%;
  }
}

/* =========================================================
   HOMEPAGE DEGREE-FILTER PILLS  (Fix H)
   ========================================================= */
.univs-degree-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.univs-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.22);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.univs-pill:hover,
.univs-pill.active {
  border-color: rgba(37,99,235,.22);
  background: #eff6ff;
  color: #2563eb;
}

/* =========================================================
   LAUNCH RESPONSIVE + SHORTCODE FORM HARDENING
   ========================================================= */
.lead-form-box--shortcode .lead-form-box__inner {
  align-items: center;
}
.lead-form-box__shortcode {
  flex: 1 1 480px;
  min-width: 280px;
}
.lead-form-box__empty,
.country-lead-form-wrap--empty {
  width: 100%;
  border: 1px dashed rgba(148,163,184,.55);
  border-radius: 14px;
  background: rgba(255,255,255,.16);
  padding: 18px 20px;
  color: inherit;
}
.lead-form-box__empty strong,
.country-lead-form-wrap--empty strong {
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
}
.lead-form-box__empty p,
.country-lead-form-wrap--empty p {
  margin: 0;
  opacity: .82;
}

@media (max-width: 900px) {
  .lead-form-box__inner {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .lead-form-box__text,
  .lead-form-box__shortcode {
    width: 100%;
    min-width: 0;
  }
  .toc-panel {
    max-width: min(86vw, 340px);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 42px 18px 24px;
  }
  .hero-title-wrap h1,
  .hero-title {
    font-size: clamp(30px, 10vw, 44px) !important;
    line-height: 1.06;
  }
  .hero-badge-row {
    justify-content: center;
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .hero .hero-badge {
    flex: 0 0 auto;
    font-size: 8px !important;
    padding: 3px 6px !important;
    min-height: 18px !important;
    gap: 3px !important;
    border-radius: 999px;
  }
  .hero .hero-badge .hero-badge-icon--plus {
    font-size: 0.8rem !important;
  }
  .hero .hero-badge .hero-badge-icon--star {
    font-size: 0.65rem !important;
  }
  .hero .hero-badge .hero-badge-star {
    font-size: 0.65rem !important;
  }
  .hero-logo-location {
    grid-template-columns: 82px 1fr;
    gap: 14px;
    align-items: center;
  }
  .hero-logo {
    width: 82px;
    height: 82px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lead-form-box {
    margin-left: 0;
    margin-right: 0;
    border-radius: 18px;
  }
  .lead-form-box__inner {
    padding: 22px 18px;
  }
  .section,
  .univs-reviews-teaser {
    border-radius: 16px;
  }
  /* Programs table — horizontal scroll on mobile */
  .programs-table-wrap,
  .section:has(.programs-table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -14px;
    padding: 0 14px;
  }
  .programs-table {
    min-width: 540px;
  }
  .programs-table th,
  .programs-table td {
    padding: 10px 8px;
    font-size: 0.82rem;
    white-space: nowrap;
  }
  .programs-table .prog-name {
    white-space: normal;
    min-width: 140px;
  }
  /* Filter pills scrollable on mobile */
  .programs-filter {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    gap: 6px !important;
  }
  .prog-filter-btn {
    flex-shrink: 0;
  }
}

@media (max-width: 520px) {
  .hero-logo-location {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .section-header-row,
  .section-header {
    align-items: flex-start;
  }
  .section-title {
    font-size: 1.08rem;
    line-height: 1.25;
  }
  .fees-grid,
  .about-grid,
  .visa-grid,
  .hostel-grid {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   MOBILE RESPONSIVE FIXES — Comprehensive
   Ensures all pages render correctly on mobile (320–480px),
   tablet (480–768px), and small desktop (768–1024px).
   ========================================================= */

/* Prevent horizontal overflow on all univs pages */
.univs-public-page,
body:has(.univs-site-nav) {
  overflow-x: hidden;
}

/* Also prevent html-level horizontal scroll (carousel overflow on mobile) */
html:has(body.wp-singular) {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Global: iOS zoom prevention on input focus (font-size >= 16px) */
.univs-public-page input[type="text"],
.univs-public-page input[type="email"],
.univs-public-page input[type="tel"],
.univs-public-page input[type="number"],
.univs-public-page input[type="url"],
.univs-public-page select,
.univs-public-page textarea {
  font-size: 16px;
}

/* === NAV (slim variant) mobile === */
@media (max-width: 768px) {
  nav.univs-site-nav.univs-site-nav--slim .nav-inner {
    padding: 0 16px;
  }
  nav.univs-site-nav.univs-site-nav--slim .nav-logo-mark {
    height: 24px;
  }
  nav.univs-site-nav.univs-site-nav--slim .nav-actions .btn-ghost,
  nav.univs-site-nav.univs-site-nav--slim .nav-actions .btn-primary {
    padding: 6px 12px;
    font-size: 13px;
  }
  nav.univs-site-nav.univs-site-nav--slim .nav-user span:not(.nav-user-avatar) {
    display: none;
  }
}

/* === HERO === */
@media (max-width: 768px) {
  .hero {
    min-height: auto !important;
    padding: 80px 0 48px !important;
  }
  .hero-content {
    padding: 0 20px !important;
  }
  .hero-title,
  .hero-title-wrap h1 {
    font-size: 1.75rem !important;
  }
  .hero-subtitle {
    font-size: 0.95rem !important;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .hero-logo-location {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  .hero-ctas {
    flex-direction: column;
    gap: 8px !important;
  }
  .hero-ctas a,
  .hero-ctas button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .hero-badges {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 72px 0 36px !important;
  }
  .hero-title,
  .hero-title-wrap h1 {
    font-size: 1.4rem !important;
  }
  .hero-stats {
    grid-template-columns: 1fr !important;
  }
}

/* === PAGE WRAP === */
@media (max-width: 768px) {
  .page-wrap {
    max-width: 100% !important;
    padding: 0 12px !important;
  }
  .section {
    padding: 20px 16px !important;
    margin-bottom: 16px;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 8px;
  }
  .section-title {
    font-size: 1.1rem;
  }
  .section-title-icon {
    font-size: 1rem;
  }
}

/* === BREADCRUMB === */
@media (max-width: 768px) {
  .breadcrumb {
    padding: 8px 16px;
    font-size: 0.72rem;
  }
}

/* === WP HEADER (slim pages) === */
@media (max-width: 768px) {
  .wp-header {
    padding: 0 16px;
  }
  .wp-logo {
    font-size: 1.2rem;
  }
  .wp-nav {
    display: none;
  }
}

/* === LEAD FORM BOX === */
@media (max-width: 640px) {
  .lead-form-box__inner {
    padding: 20px 16px !important;
  }
  .lead-field-row {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .lead-phone-row {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .lead-phone-group {
    width: 100% !important;
  }
  .lead-input,
  .lead-input--phone {
    width: 100% !important;
  }
  .lead-submit {
    width: 100%;
    padding: 14px !important;
    font-size: 16px !important;
  }
  .lead-form-box__text h3 {
    font-size: 1.1rem;
  }
  .lead-form-box__text p {
    font-size: 0.9rem;
  }
  .lead-dial-select {
    width: 100%;
  }
  .lead-form-box--contact .lead-form-box__inner {
    padding: 16px 14px !important;
  }
}

/* === COUNTRY LEAD FORM === */
@media (max-width: 640px) {
  .cp-lead-field-row {
    flex-direction: column;
    gap: 8px;
  }
  .cp-lead-input,
  .cp-lead-select {
    width: 100% !important;
  }
  .cp-lead-submit {
    width: 100%;
  }
}

/* === ABOUT GRID / TWO-COLUMN LAYOUTS === */
@media (max-width: 768px) {
  .about-grid,
  .fees-grid,
  .visa-grid,
  .hostel-grid,
  .why-grid,
  .rankings-grid,
  .steps-list,
  .gallery-grid {
    grid-template-columns: 1fr !important;
  }
  .gallery-item {
    height: 200px !important;
  }
}

/* === PROGRAM RELATED CARDS === */
@media (max-width: 768px) {
  .prog-related-grid {
    grid-template-columns: 1fr !important;
  }
}

/* === TOC PANEL — mobile drawer from right side === */
@media (max-width: 768px) {
  .toc-toggle {
    display: block;
  }
  .toc-panel {
    position: fixed !important;
    right: -280px !important;
    top: 0 !important;
    width: 270px !important;
    max-height: 100vh !important;
    height: 100vh !important;
    border-radius: 0 !important;
    box-shadow: -4px 0 20px rgba(0,0,0,.2) !important;
    border-left: none !important;
    z-index: 1001 !important;
    transition: right 0.3s cubic-bezier(0.4,0,0.2,1) !important;
    padding-top: 60px !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff !important;
    display: block !important;
  }
  .toc-panel.open {
    right: 0 !important;
  }
  .toc-toggle.open {
    right: 270px;
    z-index: 1002;
  }
}

/* === FAQ === */
@media (max-width: 768px) {
  .faq-list {
    gap: 6px;
  }
  .faq-item summary {
    font-size: 0.95rem;
    padding: 14px 16px;
  }
}

/* === REQUIREMENTS / DEADLINE BOX === */
@media (max-width: 768px) {
  .req-list {
    padding: 16px;
  }
  .deadline-box {
    padding: 16px;
  }
  .deadline-box .deadline-date {
    font-size: 1.25rem;
  }
}

/* === BROCHURE MODAL === */
@media (max-width: 640px) {
  .modal-overlay .modal-box {
    width: 95% !important;
    max-width: 95% !important;
    margin: 8px auto !important;
    padding: 24px 16px !important;
  }
}

/* === FLOATING ELEMENTS === */
@media (max-width: 768px) {
  .float-whatsapp {
    bottom: calc(88px + env(safe-area-inset-bottom)) !important;
    right: 16px !important;
  }
  .float-apply-mobile,
  .univs-float-apply {
    bottom: calc(16px + env(safe-area-inset-bottom)) !important;
    left: 16px !important;
    right: 16px !important;
  }
}

/* === FOOTER (univs footer in sections) === */
@media (max-width: 768px) {
  .section-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
}

/* === CARD GRIDS on generic pages === */
@media (max-width: 768px) {
  .uni-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .uni-cards-grid .uni-card {
    min-height: auto;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .uni-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* === CONTACT FORM (page-contact-us) === */
@media (max-width: 640px) {
  .contact-form-grid,
  .contact-info-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    width: 100% !important;
  }
}

/* === TABLET: 769px–1024px === */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero {
    min-height: 420px !important;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .fees-grid,
  .about-grid,
  .visa-grid,
  .hostel-grid,
  .why-grid,
  .rankings-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .page-wrap {
    max-width: 100% !important;
    padding: 0 24px !important;
  }
  .section {
    padding: 24px 20px !important;
  }
}

/* === SINGLE PROGRAM LAYOUT === */
@media (max-width: 768px) {
  .sp-layout {
    flex-direction: column !important;
  }
  .sp-sidebar {
    position: static !important;
    width: 100% !important;
    order: -1;
    margin-bottom: 20px;
  }
  .sp-sidebar-card {
    position: static !important;
  }
  .sp-fees-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .sp-fee-table {
    min-width: 500px;
  }
}

/* === FOR AGENTS / STATIC PAGES === */
@media (max-width: 768px) {
  .page-content-wrap {
    padding: 0 16px !important;
  }
  .page-content-wrap h1 {
    font-size: 1.5rem !important;
  }
  .page-content-wrap h2 {
    font-size: 1.25rem !important;
  }
  .page-content-wrap h3 {
    font-size: 1.1rem !important;
  }
}

/* === UNIVERSITY SEARCH RESULTS === */
@media (max-width: 768px) {
  .search-results-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .search-filters-bar {
    flex-direction: column;
    gap: 8px;
  }
  .search-filters-bar input,
  .search-filters-bar select {
    width: 100% !important;
  }
}

/* === WORD BREAK for long text === */
.univs-public-page {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* =========================================================
   PRINT STYLES — brochure fallback
   ========================================================= */
@media print {
  /* Hide all navigation, floating elements, modals, footers */
  #wpadminbar,
  .wp-header,
  .breadcrumb,
  .uni-nav,
  .toc-panel,
  .toc-toggle,
  .modal-overlay,
  .btn-brochure,
  .sp-btn-brochure,
  .float-whatsapp,
  .float-apply-mobile,
  .univs-float-apply,
  .lead-form-box,
  .univs-reviews-teaser,
  .section-related,
  #univsPrintBrandHeader {
    display: none !important;
  }

  body {
    padding-top: 0 !important;
    background: #fff !important;
    color: #000 !important;
  }

  /* Hero section — make it compact */
  .hero {
    min-height: auto !important;
    padding: 20px 0 !important;
  }
  .hero-bg,
  .hero-overlay {
    display: none !important;
  }
  .hero-content {
    text-align: left !important;
    padding: 0 !important;
  }
  .hero-ctas,
  .btn-save,
  .btn-wishlist {
    display: none !important;
  }
  .hero-title,
  .hero-title-wrap h1 {
    font-size: 18pt !important;
    color: #000 !important;
    text-shadow: none !important;
  }

  /* Page layout */
  .page-wrap {
    max-width: 100% !important;
    padding: 0 !important;
  }

  /* Sections */
  .section {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 12px 0 !important;
    margin-bottom: 8px !important;
    break-inside: avoid;
  }

  /* Force links to show URLs */
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 9pt !important;
    color: #1d4ed8 !important;
    word-break: break-all;
  }

  /* Hide non-essential sections */
  .section-lead-form,
  .section-related-programs,
  .section-related-progs-global,
  .section-related-unis-global,
  .section-map,
  .report-button-wrap {
    display: none !important;
  }
}
