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

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* =========================================================
   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: 'Inter', -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: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}

.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-badge: replaces old .badge */
.hero-badge {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hero-badge--featured {
  background: rgba(245,158,11,.85);
  border-color: rgba(245,158,11,1);
  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
   ========================================================= */
/* ── University sticky nav ───────────────────────────── */
.uni-nav {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  height: 54px;
}

/* Push page content down so it doesn't hide under the fixed nav */
body.has-uni-nav {
  padding-top: 54px;
}

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

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

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

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

/* Divider between logo and links */
.uni-nav-logo::after {
  content: '';
  display: block;
  width: 1px;
  height: 22px;
  background: #e5e7eb;
  margin-left: 16px;
}

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

.uni-nav-links a {
  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 {
  background: #f1f5f9;
  color: #1e293b;
}

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

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

.uni-nav-links a.nav-pay {
  color: #1d4ed8;
}

.uni-nav-links a.nav-pay:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.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: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.76rem;
}

.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: 3px 9px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
}

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

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

.prog-badge-partner {
  background: #F3E8FF;
  color: #7C3AED;
}

.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: 14px;
}

/* ── Compact program cards (matches homepage university card style) ── */
.prog-related-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
}

.prog-related-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37,99,235,.22);
  box-shadow: var(--shadow-md);
}

.prog-related-card--featured {
  border-color: #facc15;
  box-shadow: 0 0 0 1px #facc15;
}

.prog-related-ribbon {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  padding: 3px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
}

.prog-related-degree {
  display: inline-flex;
  align-self: flex-start;
  background: #eff6ff;
  border: 1px solid rgba(37,99,235,.1);
  color: #1d4ed8;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 4px;
}

.prog-related-name {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  padding: 0 10px;
}

.prog-related-name a {
  color: #1d4ed8 !important;
  text-decoration: none !important;
  transition: color .2s ease;
}

.prog-related-name a:hover {
  color: #1e40af !important;
}

.prog-related-discipline {
  font-size: 10px;
  color: var(--text-muted);
  padding: 0 10px;
  margin-bottom: 2px;
}

.prog-related-body {
  padding: 10px 0 6px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prog-related-university {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  margin-bottom: 4px;
}

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

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

.prog-related-uni-initials {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 8px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.prog-related-uni-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s ease;
}

.prog-related-uni-name:hover {
  color: #1d4ed8 !important;
}

/* Program card badges row — below university name, above meta */
.prog-related-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 10px;
  margin-bottom: 4px;
}

.prog-related-badges > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
  line-height: 1.4;
}

.prog-badge-featured {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid rgba(245,158,11,.24);
}

.prog-badge-partner-pill {
  background: #F3E8FF;
  color: #7C3AED;
  border: 1px solid #E9D5FF;
}

.prog-badge-verified {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.prog-badge-verified .univs-verified-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.prog-badge-verified svg {
  width: 12px;
  height: 12px;
}

.prog-related-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  align-items: center;
  padding: 0 10px;
  margin-bottom: 4px;
}

.prog-related-meta span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid rgba(37,99,235,.1);
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 600;
}

.prog-related-fee small {
  font-weight: 500;
  font-size: 9px;
  color: #6b7280;
}

.prog-related-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 8px 10px 10px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.prog-related-btn-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 3px;
  padding: 6px 6px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid rgba(37,99,235,.14);
  font-size: 11px;
  font-weight: 800;
  color: #1d4ed8 !important;
  text-decoration: none !important;
  text-align: center;
  white-space: nowrap;
  transition: background .2s ease;
}

.prog-related-btn-view:hover {
  background: #dbeafe;
}

.prog-related-btn-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 3px;
  padding: 6px 6px;
  border-radius: 10px;
  background: #1d4ed8;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  transition: background .2s ease;
}

.prog-related-btn-apply:hover {
  background: #1e40af;
}

/* =========================================================
   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;
}

/* ── Compact university cards (matches homepage style) ── */
.related-grid .uni-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
  box-shadow: var(--shadow-xs);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.related-grid .uni-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37,99,235,.22);
  box-shadow: var(--shadow-md);
}

.related-grid .uni-card-featured {
  background: var(--card);
  border: 1px solid #facc15;
  box-shadow: 0 0 0 1px #facc15;
}

.related-grid .featured-ribbon {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  padding: 3px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
}

.related-grid .uni-card-cover {
  position: relative;
  min-height: 68px;
  background: linear-gradient(135deg, #16377f, #2563eb);
  background-size: cover;
  background-position: center;
  overflow: visible;
}

.related-grid .uni-card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,22,53,.16), rgba(7,22,53,.62));
}

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

.related-grid .uni-card-logo-overlay img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.related-grid .uni-card-initials {
  font-weight: 800;
  font-size: 13px;
  color: #1d4ed8;
}

.related-grid .uni-card-body {
  padding: 32px 10px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.related-grid .uni-card-name {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
}

.related-grid .uni-card-name a {
  color: #1d4ed8;
  text-decoration: none;
  transition: color .2s ease;
}

.related-grid .uni-card-name a:hover {
  color: #1e40af;
}

/* University card badges row — below name, above meta */
.related-grid .uni-card-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}

.related-grid .uni-card-badges > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
  line-height: 1.4;
}

.related-grid .uni-card-badge-featured {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid rgba(245,158,11,.24);
}

.related-grid .uni-card-badge-partner {
  background: #F3E8FF;
  color: #7C3AED;
  border: 1px solid #E9D5FF;
}

.related-grid .uni-card-badge-verified {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.related-grid .uni-card-badge-verified .univs-verified-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.related-grid .uni-card-badge-verified svg {
  width: 12px;
  height: 12px;
}

.related-grid .uni-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.related-grid .uni-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid rgba(37,99,235,.1);
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 600;
}

.related-grid .uni-rating-row {
  display: flex;
  gap: 10px;
  padding-top: 2px;
}

.related-grid .uni-rating-stat strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -.04em;
}

.related-grid .uni-rating-stat span {
  display: block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
}

.related-grid .uni-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 8px 10px 10px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.related-grid .prog-related-btn-view,
.related-grid .prog-related-btn-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 3px;
  padding: 6px 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
}

.related-grid .prog-related-btn-view {
  background: #eff6ff;
  border: 1px solid rgba(37,99,235,.14);
  color: #1d4ed8;
}

.related-grid .prog-related-btn-view:hover {
  background: #dbeafe;
}

.related-grid .prog-related-btn-apply {
  background: #1d4ed8;
  color: #fff;
}

.related-grid .prog-related-btn-apply:hover {
  background: #1e40af;
}

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

/* =========================================================
   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 {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 400;
  background: var(--uni-primary);
  color: #fff;
  padding: 16px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.float-apply-mobile:hover {
  background: var(--uni-primary-dk);
}

/* =========================================================
   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 {
    display: block;
  }
  .float-whatsapp {
    bottom: 70px;
  }
}

@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 {
    padding: 5px 10px;
    font-size: 0.78rem;
  }
  .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;
}

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

/* 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 {
  flex: 1 0 260px;
  min-width: 0;
  scroll-snap-align: start;
}

/* Prev/Next navigation arrows */
.carousel-wrap {
  position: relative;
}
.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;
}

@media (max-width: 480px) {
  .related-carousel .uni-card { flex: 0 0 85vw; }
  .prog-related-carousel .prog-related-card { flex: 0 0 85vw; }
}

/* =========================================================
   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-block;
  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: 16px !important;
}
.univs-homepage-body .search-input::placeholder {
  font-size: 16px;
}

/* =========================================================
   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;
}