/* ============================================================
   MARI PRIVATE UNIVERSITY — MAIN STYLESHEET
   Modern 2026 Design System | Blue & White Identity
   ============================================================ */

/* ── 1. CSS CUSTOM PROPERTIES ─────────────────────────── */
:root {
  /* Brand Colors */
  --primary-900: #0c1f45;
  --primary-800: #1a3a6b;
  --primary-700: #1e4080;
  --primary-600: #1d4ed8;
  --primary-500: #2563eb;
  --primary-400: #3b82f6;
  --primary-300: #60a5fa;
  --primary-200: #93c5fd;
  --primary-100: #dbeafe;
  --primary-50: #eff6ff;

  --accent-gold: #fbbf24;
  --accent-teal: #0891b2;
  --accent-green: #059669;
  --accent-red: #ef4444;

  /* Neutrals */
  --gray-900: #0f172a;
  --gray-800: #1e293b;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-400: #94a3b8;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50: #f8fafc;
  --white: #ffffff;

  /* Typography */
  --font-primary: 'Cairo', 'Inter', sans-serif;
  --font-en: 'Inter', 'Cairo', sans-serif;

  --fs-xs: 0.75rem;
  /* 12px */
  --fs-sm: 0.875rem;
  /* 14px */
  --fs-base: 1rem;
  /* 16px */
  --fs-lg: 1.125rem;
  /* 18px */
  --fs-xl: 1.25rem;
  /* 20px */
  --fs-2xl: 1.5rem;
  /* 24px */
  --fs-3xl: 1.875rem;
  /* 30px */
  --fs-4xl: 2.25rem;
  /* 36px */
  --fs-5xl: 3rem;
  /* 48px */
  --fs-6xl: 3.75rem;
  /* 60px */
  --fs-7xl: 4.5rem;
  /* 72px */

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
  --shadow-blue: 0 8px 30px rgba(37, 99, 235, 0.25);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-mid: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Layout */
  --container-max: 1320px;
  --header-h: 78px;
  --topbar-h: 40px;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-blur: blur(12px);
}

/* ── 2. RESET & BASE ───────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
}

/* ── 3. ACCESSIBILITY ─────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  right: 0;
  background: var(--primary-500);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--primary-400);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* High Contrast Mode */
body.high-contrast {
  --primary-500: #0000ff;
  --gray-800: #000000;
  --white: #ffffff;
  filter: contrast(1.5);
}

body.grayscale {
  filter: grayscale(100%);
}

/* ── 4. LAYOUT ─────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}

.section {
  padding: var(--spacing-4xl) 0;
  position: relative;
}

/* ── 5. TOPBAR ─────────────────────────────────────────── */
.topbar {
  background: var(--primary-900);
  color: var(--primary-200);
  height: var(--topbar-h);
  font-size: var(--fs-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--spacing-lg);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.topbar-right span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-right i {
  color: var(--primary-300);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.social-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--primary-300);
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: var(--primary-700);
  color: var(--white);
}

.lang-switcher {
  display: flex;
  background: var(--primary-800);
  border-radius: var(--radius-full);
  padding: 2px;
  margin-right: var(--spacing-sm);
}

.lang-btn {
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--primary-300);
  transition: all var(--transition-fast);
  cursor: pointer;
  letter-spacing: 0.5px;
}

.lang-btn.active {
  background: var(--primary-500);
  color: var(--white);
}

.lang-btn:hover:not(.active) {
  color: var(--white);
}

.accessibility-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--primary-300);
  transition: all var(--transition-fast);
  cursor: pointer;
  margin-right: var(--spacing-xs);
}

.accessibility-btn:hover {
  background: var(--primary-700);
  color: var(--white);
}

/* Accessibility Panel */
.accessibility-panel {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  transform: translateX(-110%);
  transition: transform var(--transition-mid);
  min-width: 220px;
}

.accessibility-panel.open {
  transform: translateX(0);
}

.accessibility-panel h3 {
  color: var(--primary-800);
  margin-bottom: var(--spacing-md);
  font-size: var(--fs-base);
}

.accessibility-panel button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--gray-700);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  margin-bottom: 6px;
  transition: all var(--transition-fast);
  text-align: right;
}

.accessibility-panel button:hover {
  background: var(--primary-50);
  border-color: var(--primary-300);
  color: var(--primary-700);
}

/* ── 6. HEADER ──────────────────────────────────────────── */
.header {
  position: sticky;
  top: var(--topbar-h);
  z-index: 999;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  height: var(--header-h);
  transition: all var(--transition-mid);
}

.header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
  height: 68px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--spacing-lg);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  transition: transform var(--transition-mid);
}

.logo:hover .logo-icon {
  transform: scale(1.05) rotate(-3deg);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-main {
  font-size: var(--fs-xl);
  font-weight: 900;
  color: var(--primary-800);
  letter-spacing: -0.5px;
}

.logo-sub {
  font-size: var(--fs-xs);
  color: var(--gray-500);
  font-weight: 500;
  margin-top: 8px;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--gray-700);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link i {
  font-size: 10px;
  transition: transform var(--transition-fast);
}

.nav-item:hover .nav-link {
  color: var(--primary-500);
  background: var(--primary-50);
}

.nav-item:hover .nav-link i {
  transform: rotate(180deg);
}

.nav-link.active {
  color: var(--primary-500);
  background: var(--primary-50);
}

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 50%;
  transform: translateX(50%);
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  display: flex;
  gap: 0;
  min-width: 560px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(50%) translateY(-10px);
  transition: all var(--transition-mid);
  pointer-events: none;
  overflow: hidden;
  z-index: 500;
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(50%) translateY(0);
  pointer-events: all;
}

.mega-col {
  flex: 1;
  padding: var(--spacing-xl);
  border-left: 1px solid var(--gray-100);
}

.mega-col:last-child {
  border-left: none;
}

.mega-col h4 {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--primary-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--primary-100);
}

.mega-col a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: var(--fs-sm);
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  margin-bottom: 2px;
}

.mega-col a:hover {
  background: var(--primary-50);
  color: var(--primary-600);
  padding-right: 14px;
}

.mega-col a i {
  color: var(--primary-400);
  width: 16px;
  text-align: center;
}

.mega-col a.highlight-link {
  background: var(--primary-500);
  color: var(--white);
  font-weight: 600;
  margin-top: var(--spacing-sm);
}

.mega-col a.highlight-link:hover {
  background: var(--primary-600);
  padding-right: 14px;
}

.mega-col a.highlight-link i {
  color: var(--white);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-shrink: 0;
}

.search-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--gray-600);
  transition: all var(--transition-fast);
  font-size: var(--fs-base);
}

.search-btn:hover {
  background: var(--primary-50);
  color: var(--primary-500);
}

.btn-portal {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 2px solid var(--primary-200);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--primary-600);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-portal:hover {
  border-color: var(--primary-500);
  background: var(--primary-50);
}

.btn-apply {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--primary-500);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 700;
  transition: all var(--transition-fast);
  white-space: nowrap;
  box-shadow: var(--shadow-blue);
}

.btn-apply:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: var(--radius-full);
  transition: all var(--transition-mid);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Search Bar */
.search-bar {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  padding: var(--spacing-lg) 0;
  transform: translateY(-20px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-mid);
  z-index: 500;
}

.search-bar.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.search-form {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  padding: 6px 6px 6px 16px;
  transition: border-color var(--transition-fast);
}

.search-form:focus-within {
  border-color: var(--primary-400);
  background: var(--white);
}

.search-form input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: var(--fs-base);
  color: var(--gray-800);
  outline: none;
  direction: rtl;
}

.search-form input::placeholder {
  color: var(--gray-400);
}

.search-form button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-size: var(--fs-base);
  transition: all var(--transition-fast);
}

.search-form button[type="submit"] {
  background: var(--primary-500);
  color: var(--white);
}

.search-form button[type="submit"]:hover {
  background: var(--primary-600);
}

.search-form button[type="button"] {
  color: var(--gray-500);
}

.search-form button[type="button"]:hover {
  background: var(--gray-200);
  color: var(--gray-700);
}

/* ── 7. MOBILE MENU ────────────────────────────────────── */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1200;
  backdrop-filter: blur(4px);
}

.mobile-overlay.open {
  display: block;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(360px, 90vw);
  height: 100vh;
  background: var(--white);
  z-index: 1300;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-mid);
  overflow-y: auto;
  box-shadow: -10px 0 60px rgba(0, 0, 0, 0.2);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg) var(--spacing-xl);
  background: var(--primary-800);
  color: var(--white);
}

.mobile-menu-header .logo-main {
  font-size: var(--fs-xl);
  color: var(--white);
}

.mobile-menu-header button {
  color: var(--white);
  font-size: var(--fs-xl);
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.mobile-menu-header button:hover {
  opacity: 1;
}

.mobile-nav-list {
  padding: var(--spacing-md);
  flex: 1;
}

.mobile-nav-list li {
  margin-bottom: 2px;
}

.mobile-nav-list a,
.mobile-sub-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--gray-700);
  transition: all var(--transition-fast);
  text-align: right;
}

.mobile-nav-list a:hover,
.mobile-sub-toggle:hover {
  background: var(--primary-50);
  color: var(--primary-600);
}

.mobile-nav-list a i,
.mobile-sub-toggle i {
  color: var(--primary-400);
}

.mobile-sub-toggle i.fa-chevron-down {
  transition: transform var(--transition-fast);
  margin-right: auto;
  margin-left: 0;
}

.mobile-has-sub.open .mobile-sub-toggle i.fa-chevron-down {
  transform: rotate(180deg);
}

.mobile-sub {
  display: none;
  padding-right: var(--spacing-xl);
}

.mobile-has-sub.open .mobile-sub {
  display: block;
}

.mobile-sub li a {
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 8px 12px;
}

.mobile-menu-footer {
  padding: var(--spacing-lg) var(--spacing-xl);
  border-top: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.btn-portal-mobile,
.btn-apply-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--fs-sm);
  transition: all var(--transition-fast);
}

.btn-portal-mobile {
  border: 2px solid var(--primary-500);
  color: var(--primary-600);
}

.btn-portal-mobile:hover {
  background: var(--primary-50);
}

.btn-apply-mobile {
  background: var(--primary-500);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.btn-apply-mobile:hover {
  background: var(--primary-600);
}

/* ── 8. HERO SECTION ───────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(8, 20, 48, 0.94) 0%, rgba(12, 18, 33, 0.96) 100%), url('../images/hero_2.webp') no-repeat center center/cover;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--spacing-4xl) 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-particles {
  position: absolute;
  inset: 0;
}

.hero-shape-1 {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
  animation: pulseGlow 4s ease-in-out infinite;
}

.hero-shape-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.15) 0%, transparent 70%);
  bottom: -50px;
  left: 20%;
  border-radius: 50%;
  animation: pulseGlow 6s ease-in-out infinite reverse;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

@keyframes pulseGlow {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-4xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--accent-gold);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--spacing-xl);
}

.hero-badge i {
  color: var(--accent-gold);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, var(--fs-7xl));
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: var(--spacing-xl);
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa, #a5f3fc, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin-bottom: var(--spacing-2xl);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-3xl);
}

.btn-primary-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--primary-500);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: var(--fs-base);
  font-weight: 700;
  transition: all var(--transition-mid);
  box-shadow: var(--shadow-blue);
}

.btn-primary-hero:hover {
  background: var(--primary-400);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.45);
}

.btn-secondary-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: var(--fs-base);
  font-weight: 600;
  transition: all var(--transition-mid);
  backdrop-filter: blur(8px);
}

.btn-secondary-hero:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-size: var(--fs-3xl);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  font-feature-settings: "tnum";
}

.stat-label {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Visual Wrap & Images */
.hero-image-wrap {
  position: relative;
  width: 360px;
  height: 440px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  z-index: 2;
  backdrop-filter: blur(8px);
}

.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-mid);
}

.hero-image-wrap:hover .hero-main-img {
  transform: scale(1.05);
}

.hero-glass-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(8, 20, 48, 0.95), transparent);
  padding: var(--spacing-xl);
  display: flex;
  justify-content: center;
}

.gpa-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: var(--radius-xl);
  color: var(--white);
  width: 100%;
}

.gpa-badge-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-500);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-base);
  color: var(--white);
}

.gpa-badge-text {
  display: flex;
  flex-direction: column;
}

.gpa-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.gpa-val {
  font-size: var(--fs-md);
  font-weight: 800;
  color: var(--white);
}

/* Glassmorphism Floating Cards */
.glassmorphism-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: var(--white) !important;
  border-radius: var(--radius-xl) !important;
  padding: 14px 20px !important;
  display: flex;
  align-items: center;
  gap: 14px !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
  z-index: 3;
}

.float-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-md);
  flex-shrink: 0;
}

.trophy-icon {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24 !important;
}

.globe-icon {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa !important;
}

.flask-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981 !important;
}

.float-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}

.float-title {
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--white);
}

.float-desc {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  white-space: nowrap;
}

.card-float-1 {
  top: -20px;
  right: -40px;
  animation: floatCard 3s ease-in-out infinite;
}

.card-float-2 {
  bottom: 60px;
  right: -50px;
  animation: floatCard 3s ease-in-out infinite 1s;
}

.card-float-3 {
  bottom: -20px;
  left: -30px;
  animation: floatCard 3s ease-in-out infinite 2s;
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Hero Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

/* ── 9. QUICK LINKS BAR ──────────────────────────────── */
.quick-links-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-lg) 0;
  position: sticky;
  top: calc(var(--topbar-h) + var(--header-h));
  z-index: 100;
}

.quick-links-inner {
  display: flex;
  gap: var(--spacing-md);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

.quick-links-inner::-webkit-scrollbar {
  display: none;
}

.quick-link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  color: var(--gray-600);
  font-size: var(--fs-xs);
  font-weight: 600;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}

.quick-link-item:hover {
  background: var(--primary-50);
  color: var(--primary-600);
}

.ql-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  font-size: var(--fs-lg);
  color: var(--gray-600);
  transition: all var(--transition-fast);
}

.quick-link-item:hover .ql-icon {
  background: var(--primary-500);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

/* ── 10. NEWS TICKER ─────────────────────────────────── */
.news-ticker {
  background: var(--primary-500);
  color: var(--white);
  padding: 10px 0;
  overflow: hidden;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.ticker-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: var(--fs-sm);
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.15);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.ticker-track {
  overflow: hidden;
  flex: 1;
}

.ticker-content {
  display: flex;
  gap: var(--spacing-2xl);
  animation: tickerScroll 30s linear infinite;
  width: max-content;
}

.ticker-content span {
  font-size: var(--fs-sm);
  white-space: nowrap;
  font-weight: 500;
}

@keyframes tickerScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ── 11. SECTION HEADER ──────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-50);
  color: var(--primary-600);
  border: 1px solid var(--primary-100);
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-md);
}

.section-badge.light {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}

.section-title {
  font-size: clamp(var(--fs-3xl), 4vw, var(--fs-5xl));
  font-weight: 900;
  color: var(--primary-900);
  letter-spacing: -1px;
  margin-bottom: var(--spacing-md);
}

.section-title.light {
  color: var(--white);
}

.section-desc {
  font-size: var(--fs-lg);
  color: var(--gray-500);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

.section-desc.light {
  color: rgba(255, 255, 255, 0.7);
}

.section-cta {
  text-align: center;
  margin-top: var(--spacing-3xl);
}

.btn-outline-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 2px solid var(--primary-300);
  color: var(--primary-600);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 700;
  transition: all var(--transition-fast);
}

.btn-outline-primary:hover {
  background: var(--primary-500);
  border-color: var(--primary-500);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

/* ── 12. FACULTIES ───────────────────────────────────── */
.faculties-section {
  background: var(--gray-50);
}

.faculties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.faculty-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  transition: all var(--transition-mid);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.faculty-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--fc, var(--primary-500));
  transform: scaleX(0);
  transition: transform var(--transition-mid);
  transform-origin: right;
}

.faculty-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: var(--gray-200);
}

.faculty-card:hover::before {
  transform: scaleX(1);
}

.faculty-icon-wrap {
  width: 64px;
  height: 64px;
  background: color-mix(in srgb, var(--fc) 10%, white);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-2xl);
  color: var(--fc);
  transition: all var(--transition-mid);
}

.faculty-card:hover .faculty-icon-wrap {
  background: var(--fc);
  color: var(--white);
  transform: scale(1.1) rotate(-5deg);
}

.faculty-card h3 {
  font-size: var(--fs-xl);
  color: var(--primary-900);
  font-weight: 700;
}

.faculty-card p {
  font-size: var(--fs-sm);
  color: var(--gray-500);
  line-height: 1.7;
  flex: 1;
}

.faculty-footer {
  display: flex;
  gap: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--gray-100);
  font-size: var(--fs-xs);
  color: var(--gray-500);
  font-weight: 600;
}

.faculty-footer span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.faculty-footer i {
  color: var(--primary-400);
}

.faculty-hover-arrow {
  position: absolute;
  bottom: var(--spacing-lg);
  left: var(--spacing-lg);
  width: 36px;
  height: 36px;
  background: var(--fc, var(--primary-500));
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--transition-mid);
}

.faculty-card:hover .faculty-hover-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── 13. WHY SECTION ─────────────────────────────────── */
.why-section {
  background: linear-gradient(145deg, var(--primary-900), var(--primary-800));
  overflow: hidden;
}

.why-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(96, 165, 250, 0.1) 0%, transparent 50%);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
}

.why-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  color: var(--white);
  transition: all var(--transition-mid);
  position: relative;
  overflow: hidden;
}

.why-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-mid);
}

.why-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
}

.why-item:hover::before {
  opacity: 1;
}

.why-icon {
  width: 56px;
  height: 56px;
  background: rgba(37, 99, 235, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-2xl);
  color: var(--primary-300);
  margin-bottom: var(--spacing-lg);
  transition: all var(--transition-mid);
}

.why-item:hover .why-icon {
  background: var(--primary-500);
  color: var(--white);
  transform: scale(1.1);
}

.why-item h3 {
  font-size: var(--fs-xl);
  color: var(--white);
  margin-bottom: var(--spacing-sm);
}

.why-item p {
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--fs-sm);
  line-height: 1.8;
}

/* ── 14. NEWS ─────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--spacing-lg);
}

.news-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-mid);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.news-card.featured {
  grid-row: span 2;
}

.news-img {
  position: relative;
  overflow: hidden;
}

.news-card.featured .news-img {
  height: 280px;
}

.news-card:not(.featured) .news-img {
  height: 160px;
}

.news-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-slow);
}

.news-card:hover .news-img-placeholder {
  transform: scale(1.05);
}

.news-cat {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-600);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.news-body {
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-meta {
  display: flex;
  gap: var(--spacing-md);
  font-size: var(--fs-xs);
  color: var(--gray-400);
  margin-bottom: var(--spacing-md);
}

.news-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-body h3 {
  font-size: var(--fs-xl);
  color: var(--primary-900);
  margin-bottom: var(--spacing-md);
  line-height: 1.5;
}

.news-card:not(.featured) .news-body h3 {
  font-size: var(--fs-lg);
}

.news-body p {
  font-size: var(--fs-sm);
  color: var(--gray-500);
  line-height: 1.7;
  flex: 1;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-500);
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-top: var(--spacing-lg);
  transition: gap var(--transition-fast);
}

.news-read-more:hover {
  gap: 10px;
}

/* ── 15. ACADEMIC CALENDAR ───────────────────────────── */
.calendar-section {
  background: var(--gray-50);
}

.calendar-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-4xl);
  align-items: center;
}

.calendar-content h2 {
  font-size: var(--fs-4xl);
  color: var(--primary-900);
  font-weight: 900;
  margin-bottom: var(--spacing-2xl);
  letter-spacing: -1px;
}

.calendar-events {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
}

.cal-event {
  display: flex;
  gap: var(--spacing-lg);
  align-items: flex-start;
  padding: var(--spacing-lg);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-fast);
}

.cal-event:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-200);
}

.cal-event.upcoming {
  border-color: var(--primary-300);
  border-right-width: 4px;
}

.cal-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--primary-50);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  min-width: 60px;
  flex-shrink: 0;
}

.cal-day {
  font-size: var(--fs-2xl);
  font-weight: 900;
  color: var(--primary-600);
  line-height: 1;
}

.cal-month {
  font-size: var(--fs-xs);
  color: var(--gray-500);
  font-weight: 600;
}

.cal-info {
  flex: 1;
}

.cal-info h4 {
  font-size: var(--fs-base);
  color: var(--primary-900);
  margin-bottom: 4px;
}

.cal-info p {
  font-size: var(--fs-sm);
  color: var(--gray-500);
}

.cal-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 700;
  margin-top: 6px;
}

.cal-tag.urgent {
  background: #fef2f2;
  color: #dc2626;
}

.cal-tag {
  background: var(--primary-50);
  color: var(--primary-600);
}

/* Mini Calendar */
.mini-calendar {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
  max-width: 340px;
  margin: 0 auto;
}

.mini-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
  font-weight: 700;
  color: var(--primary-800);
}

.mini-cal-header i {
  cursor: pointer;
  color: var(--gray-400);
  padding: 4px;
  transition: color var(--transition-fast);
}

.mini-cal-header i:hover {
  color: var(--primary-500);
}

.mini-cal-header div {
  display: flex;
  gap: var(--spacing-sm);
}

.mini-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.mini-cal-day-name {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--gray-400);
  padding: 4px;
}

.mini-cal-num {
  font-size: var(--fs-sm);
  padding: 7px 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--gray-700);
  transition: all var(--transition-fast);
}

.mini-cal-num:hover {
  background: var(--primary-50);
  color: var(--primary-600);
}

.mini-cal-num.highlight-start {
  background: var(--primary-500);
  color: var(--white);
  border-radius: var(--radius-md);
  font-weight: 700;
}

.mini-cal-num.event-day {
  background: var(--accent-gold);
  color: var(--gray-900);
  border-radius: var(--radius-md);
  font-weight: 700;
}

/* ── 16. RESEARCH SECTION ────────────────────────────── */
.research-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-3xl);
}

.research-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-mid);
  display: flex;
  flex-direction: column;
}

.research-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.rc-top {
  padding: var(--spacing-xl);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.rc-top i {
  font-size: var(--fs-3xl);
}

.rc-top span {
  font-weight: 700;
  font-size: var(--fs-base);
}

.research-card p {
  padding: var(--spacing-lg);
  font-size: var(--fs-sm);
  color: var(--gray-500);
  line-height: 1.7;
  flex: 1;
}

.rc-stats {
  display: flex;
  gap: var(--spacing-md);
  padding: 0 var(--spacing-lg);
  font-size: var(--fs-xs);
  color: var(--gray-400);
  font-weight: 600;
}

.rc-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.research-card a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--primary-600);
  transition: gap var(--transition-fast);
  border-top: 1px solid var(--gray-100);
  margin-top: var(--spacing-md);
}

.research-card a:hover {
  gap: 12px;
}

.research-cta-bar {
  background: linear-gradient(135deg, var(--primary-800), var(--primary-700));
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xl);
  color: var(--white);
  flex-wrap: wrap;
}

.rcta-stat {
  text-align: center;
}

.rcta-num {
  display: block;
  font-size: var(--fs-4xl);
  font-weight: 900;
  color: var(--accent-gold);
}

.rcta-stat span:last-child {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
}

.btn-primary-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--white);
  color: var(--primary-700);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--fs-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

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

/* ── 17. STUDENT LIFE ─────────────────────────────────── */
.student-life-section {
  background: var(--gray-50);
}

.student-life-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.sl-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: all var(--transition-mid);
}

.sl-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.sl-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.9);
  transition: transform var(--transition-slow);
}

.sl-card:hover .sl-img {
  transform: scale(1.05);
}

.sl-card h3 {
  padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-sm);
  font-size: var(--fs-xl);
  color: var(--primary-900);
}

.sl-card p {
  padding: 0 var(--spacing-lg) var(--spacing-md);
  font-size: var(--fs-sm);
  color: var(--gray-500);
  line-height: 1.7;
}

.sl-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 var(--spacing-lg) var(--spacing-lg);
  color: var(--primary-500);
  font-size: var(--fs-sm);
  font-weight: 700;
  transition: gap var(--transition-fast);
}

.sl-card a:hover {
  gap: 10px;
}

/* ── 18. TESTIMONIALS ─────────────────────────────────── */
.testimonials-section {
  background: linear-gradient(145deg, var(--primary-900), var(--primary-800));
  overflow: hidden;
}

.testimonials-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 90%, rgba(96, 165, 250, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 10%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform var(--transition-slow);
}

.testimonial-card {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

.tc-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  position: relative;
}

.tc-content::before {
  content: '"';
  position: absolute;
  top: -20px;
  right: 20px;
  font-size: 100px;
  color: var(--primary-500);
  opacity: 0.3;
  font-family: serif;
  line-height: 1;
}

.tc-stars {
  color: var(--accent-gold);
  font-size: var(--fs-sm);
  margin-bottom: var(--spacing-md);
}

.tc-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-lg);
  line-height: 1.9;
  font-style: italic;
}

.tc-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  color: var(--white);
  justify-content: center;
}

.tc-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-2xl);
  font-weight: 900;
  flex-shrink: 0;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.tc-author strong {
  display: block;
  font-size: var(--fs-xl);
  margin-bottom: 4px;
}

.tc-author span {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-sm);
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-2xl);
}

.slider-btn {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  transition: all var(--transition-fast);
}

.slider-btn:hover {
  background: var(--primary-500);
  border-color: var(--primary-500);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.dot.active {
  background: var(--white);
  width: 24px;
}

/* ── 19. PARTNERS ─────────────────────────────────────── */
.partners-section {
  background: var(--gray-50);
}

.partners-track-wrap {
  overflow: hidden;
  position: relative;
}

.partners-track-wrap::before,
.partners-track-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 1;
}

.partners-track-wrap::before {
  right: 0;
  background: linear-gradient(to left, var(--gray-50), transparent);
}

.partners-track-wrap::after {
  left: 0;
  background: linear-gradient(to right, var(--gray-50), transparent);
}

.partners-track {
  display: flex;
  gap: var(--spacing-xl);
  animation: partnersScroll 25s linear infinite;
  width: max-content;
}

@keyframes partnersScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.partner-logo {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg) var(--spacing-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  height: 72px;
}

.partner-logo span {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

.partner-logo:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-md);
}

.partner-logo:hover span {
  color: var(--primary-600);
}

/* ── 20. ADMISSIONS CTA ──────────────────────────────── */
.admissions-cta {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 50%, var(--primary-900) 100%);
  position: relative;
  overflow: hidden;
}

.admissions-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.acta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--spacing-4xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.acta-content {
  color: var(--white);
}

.acta-content .section-badge {
  margin-bottom: var(--spacing-lg);
}

.acta-content h2 {
  font-size: clamp(var(--fs-3xl), 4vw, var(--fs-5xl));
  font-weight: 900;
  margin-bottom: var(--spacing-lg);
  letter-spacing: -1px;
}

.acta-content p {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--spacing-xl);
  max-width: 560px;
}

.acta-deadline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--accent-gold);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--spacing-xl);
}

.acta-buttons {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.btn-acta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--white);
  color: var(--primary-700);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--fs-base);
  transition: all var(--transition-fast);
}

.btn-acta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-acta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--fs-base);
  transition: all var(--transition-fast);
}

.btn-acta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.acta-circle {
  width: 220px;
  height: 220px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotateBorder 15s linear infinite;
  position: relative;
}

.acta-circle::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
}

@keyframes rotateBorder {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.acta-circle-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--white);
  animation: rotateBorder 15s linear infinite reverse;
}

.acta-circle-inner i {
  font-size: 3.5rem;
  color: var(--accent-gold);
}

.acta-circle-inner span {
  font-size: var(--fs-xl);
  font-weight: 900;
}

.acta-year-label {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.6);
}

/* ── 21. CONTACT QUICK ───────────────────────────────── */
.contact-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-4xl);
  align-items: start;
}

.cq-info h2 {
  font-size: var(--fs-4xl);
  color: var(--primary-900);
  font-weight: 900;
  margin-bottom: var(--spacing-2xl);
  letter-spacing: -1px;
}

.cq-items {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.cq-item {
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
}

.cq-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-500);
  font-size: var(--fs-base);
  flex-shrink: 0;
}

.cq-item h4 {
  font-size: var(--fs-sm);
  color: var(--primary-700);
  font-weight: 700;
  margin-bottom: 2px;
}

.cq-item p {
  font-size: var(--fs-sm);
  color: var(--gray-600);
}

.cq-social {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
}

.cq-social a {
  width: 40px;
  height: 40px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  transition: all var(--transition-fast);
}

.cq-social a:hover {
  background: var(--primary-500);
  color: var(--white);
  transform: translateY(-2px);
}

/* Map */
.map-placeholder {
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 400px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.map-overlay {
  position: absolute;
  bottom: var(--spacing-lg);
  left: 50%;
  transform: translateX(-50%);
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-500);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 700;
  box-shadow: var(--shadow-blue);
  transition: all var(--transition-fast);
}

.map-link:hover {
  background: var(--primary-600);
  transform: translateY(-2px);
}

/* ── 22. NEWSLETTER ───────────────────────────────────── */
.newsletter-section {
  background: var(--gray-50);
}

.nl-inner {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-2xl) var(--spacing-3xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-2xl);
  box-shadow: var(--shadow-md);
  flex-wrap: wrap;
}

.nl-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.nl-icon {
  font-size: 2.5rem;
  color: var(--primary-400);
  flex-shrink: 0;
}

.nl-content h2 {
  font-size: var(--fs-2xl);
  color: var(--primary-900);
  font-weight: 800;
  margin-bottom: 4px;
}

.nl-content p {
  color: var(--gray-500);
  font-size: var(--fs-sm);
}

.nl-form {
  flex: 1;
  min-width: 320px;
}

.nl-input-wrap {
  display: flex;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.nl-input-wrap:focus-within {
  border-color: var(--primary-400);
  background: var(--white);
}

.nl-input-wrap input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: transparent;
  font-size: var(--fs-sm);
  color: var(--gray-800);
  outline: none;
  direction: rtl;
}

.nl-input-wrap input::placeholder {
  color: var(--gray-400);
}

.nl-input-wrap button {
  padding: 10px 24px;
  background: var(--primary-500);
  color: var(--white);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  margin: 4px;
  border-radius: var(--radius-full);
}

.nl-input-wrap button:hover {
  background: var(--primary-600);
}

.nl-msg {
  font-size: var(--fs-sm);
  margin-top: 8px;
  min-height: 20px;
}

.nl-msg.success {
  color: var(--accent-green);
}

.nl-msg.error {
  color: var(--accent-red);
}

.nl-privacy {
  font-size: var(--fs-xs);
  color: var(--gray-400);
  margin-top: 8px;
}

.nl-privacy a {
  color: var(--primary-500);
}

.nl-privacy a:hover {
  text-decoration: underline;
}

/* ── 23. FOOTER ───────────────────────────────────────── */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
}

.footer-top {
  padding: var(--spacing-4xl) 0 var(--spacing-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--spacing-3xl);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.footer-logo-main {
  display: block;
  font-size: var(--fs-xl);
  font-weight: 900;
  color: var(--white);
}

.footer-logo-sub {
  display: block;
  font-size: var(--fs-xs);
  color: var(--gray-500);
}

.brand-col p {
  font-size: var(--fs-sm);
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: var(--spacing-xl);
}

.footer-social {
  display: flex;
  gap: var(--spacing-sm);
}

.footer-social-icon {
  width: 38px;
  height: 38px;
  background: var(--gray-800);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: var(--fs-sm);
  transition: all var(--transition-fast);
}

.footer-social-icon:hover {
  background: var(--primary-600);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col h3 {
  color: var(--white);
  font-size: var(--fs-base);
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--primary-800);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: var(--fs-sm);
  color: var(--gray-500);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col a:hover {
  color: var(--primary-400);
  padding-right: 4px;
}

.footer-col a::before {
  content: '›';
  color: var(--primary-600);
  font-size: var(--fs-base);
  line-height: 1;
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding: var(--spacing-xl) 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: var(--fs-sm);
  color: var(--gray-600);
}

.footer-bottom-links {
  display: flex;
  gap: var(--spacing-lg);
}

.footer-bottom-links a {
  font-size: var(--fs-sm);
  color: var(--gray-600);
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--primary-400);
}

.footer-lang {
  display: flex;
  gap: var(--spacing-sm);
}

.lang-footer {
  font-size: var(--fs-sm);
  color: var(--gray-600);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-700);
  transition: all var(--transition-fast);
}

.lang-footer.active,
.lang-footer:hover {
  color: var(--white);
  border-color: var(--primary-500);
  background: var(--primary-700);
}

/* ── 24. BACK TO TOP ─────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 48px;
  height: 48px;
  background: var(--primary-500);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-blue);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-mid);
  z-index: 500;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-600);
  transform: translateY(-3px);
}

/* ── 25. COOKIE BANNER ───────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gray-900);
  color: var(--gray-300);
  padding: var(--spacing-lg) var(--spacing-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xl);
  z-index: 800;
  transform: translateY(100%);
  transition: transform var(--transition-mid);
  border-top: 2px solid var(--primary-700);
  flex-wrap: wrap;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex: 1;
}

.cookie-content i {
  color: var(--accent-gold);
  font-size: var(--fs-xl);
  flex-shrink: 0;
}

.cookie-content p {
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.cookie-content a {
  color: var(--primary-400);
}

.cookie-content a:hover {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: var(--spacing-sm);
}

.cookie-accept {
  padding: 8px 20px;
  background: var(--primary-500);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 700;
  transition: all var(--transition-fast);
}

.cookie-accept:hover {
  background: var(--primary-600);
}

.cookie-decline {
  padding: 8px 20px;
  border: 1px solid var(--gray-600);
  color: var(--gray-400);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  transition: all var(--transition-fast);
}

.cookie-decline:hover {
  border-color: var(--gray-400);
  color: var(--white);
}

/* ── 26. ANIMATIONS ───────────────────────────────────── */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.7s ease forwards;
}

.animate-fade-left {
  opacity: 0;
  transform: translateX(40px);
  animation: fadeLeft 0.7s ease forwards;
}

.delay-1 {
  animation-delay: 0.15s;
}

.delay-2 {
  animation-delay: 0.3s;
}

.delay-3 {
  animation-delay: 0.45s;
}

.delay-4 {
  animation-delay: 0.6s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ── 27. PARTICLES ───────────────────────────────────── */
.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-full);
  animation: particleFloat linear infinite;
  pointer-events: none;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-100px) rotate(720deg);
    opacity: 0;
  }
}

/* ── 28. RESPONSIVE ───────────────────────────────────── */
@media (max-width: 1200px) {
  :root {
    --container-max: 100%;
  }

  .faculties-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .research-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--spacing-2xl);
  }

  .brand-col {
    grid-column: span 3;
  }
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--spacing-3xl);
    text-align: center;
  }

  .hero-desc {
    margin: 0 auto var(--spacing-2xl);
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .main-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .btn-portal {
    display: none;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .calendar-inner {
    grid-template-columns: 1fr;
  }

  .calendar-visual {
    display: none;
  }

  .testimonial-card {
    grid-template-columns: 1fr;
  }

  .contact-quick-grid {
    grid-template-columns: 1fr;
  }

  .acta-inner {
    grid-template-columns: 1fr;
  }

  .acta-circle {
    display: none;
  }
}

@media (max-width: 768px) {
  .section {
    padding: var(--spacing-3xl) 0;
  }

  .topbar-right span:not(:first-child) {
    display: none;
  }

  .faculties-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card.featured {
    grid-row: span 1;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .student-life-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .research-grid {
    grid-template-columns: 1fr;
  }

  .research-cta-bar {
    flex-direction: column;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .brand-col {
    grid-column: span 2;
  }

  .nl-inner {
    flex-direction: column;
  }

  .nl-form {
    min-width: unset;
    width: 100%;
  }

  .hero-badge {
    font-size: var(--fs-xs);
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-md);
  }

  .student-life-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .brand-col {
    grid-column: span 1;
  }

  .hero-title {
    font-size: 2rem;
  }

  .btn-apply {
    display: none;
  }

  .hero-stats {
    gap: var(--spacing-lg);
  }

  .hero-stat-divider {
    display: none;
  }

  .hero-stat {
    align-items: center;
  }

  .nl-input-wrap {
    flex-direction: column;
    border-radius: var(--radius-lg);
  }

  .nl-input-wrap input {
    width: 100%;
  }

  .nl-input-wrap button {
    margin: 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    justify-content: center;
  }
}

/* ── 29. PRINT STYLES ─────────────────────────────────── */
@media print {

  .topbar,
  .header,
  .quick-links-bar,
  .news-ticker,
  .hero,
  .back-to-top,
  .cookie-banner,
  .newsletter-section,
  .footer {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

/* ── 30. UTILITY CLASSES ─────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

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

.d-flex {
  display: flex;
}

.align-center {
  align-items: center;
}

.gap-md {
  gap: var(--spacing-md);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--primary-300);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-500);
}

/* ── AI ASSISTANT WIDGET ──────────────────────────────── */
.ai-assistant-widget {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1000;
  font-family: 'Cairo', sans-serif;
  direction: rtl;
}

.ai-widget-btn {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #1a3a6b, #2563eb);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-2xl);
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
  transition: all var(--transition-mid);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.ai-widget-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.6);
}

.ai-widget-btn i {
  transition: transform var(--transition-mid);
}

.ai-assistant-widget.open .ai-widget-btn i {
  transform: rotate(180deg);
}

.ai-chat-panel {
  position: absolute;
  bottom: 80px;
  left: 0;
  width: 360px;
  height: 500px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-2xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-mid);
}

.ai-assistant-widget.open .ai-chat-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ai-chat-header {
  background: linear-gradient(135deg, #1a3a6b, #2563eb);
  color: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-chat-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ai-chat-title-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ai-chat-title {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-align: right;
}

.ai-chat-status {
  font-size: 10px;
  color: #a5f3fc;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ai-chat-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

.ai-chat-close {
  color: white;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.2s;
}

.ai-chat-close:hover {
  opacity: 1;
}

.ai-chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-msg {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.ai-msg.bot {
  background: white;
  color: var(--gray-800);
  align-self: flex-start;
  border-bottom-right-radius: 2px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  text-align: right;
}

.ai-msg.user {
  background: var(--primary-500);
  color: white;
  align-self: flex-end;
  border-bottom-left-radius: 2px;
  box-shadow: var(--shadow-blue-sm);
  text-align: right;
}

.ai-msg-time {
  font-size: 9px;
  color: var(--gray-400);
  align-self: flex-end;
  margin-top: 4px;
}

.ai-msg.user .ai-msg-time {
  color: rgba(255, 255, 255, 0.7);
}

.ai-chat-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 20px;
  background: rgba(248, 250, 252, 0.6);
  border-top: 1px solid rgba(226, 232, 240, 0.5);
  justify-content: flex-start;
}

.ai-choice-btn {
  background: white;
  border: 1px solid var(--primary-100);
  color: var(--primary-600);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Cairo', sans-serif;
}

.ai-choice-btn:hover {
  background: var(--primary-500);
  color: white;
  border-color: var(--primary-500);
  transform: translateY(-1px);
}

.ai-chat-input-area {
  padding: 12px 20px;
  background: white;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-chat-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: var(--fs-sm);
  font-family: 'Cairo', sans-serif;
  resize: none;
  height: 24px;
  text-align: right;
}

.ai-chat-send {
  color: var(--primary-500);
  cursor: pointer;
  transition: color 0.2s;
}

.ai-chat-send:hover {
  color: var(--primary-700);
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 4px 8px;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: var(--gray-400);
  border-radius: 50%;
  animation: typing 1s infinite alternate;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-6px);
  }
}

@media(max-width: 480px) {
  .ai-chat-panel {
    width: calc(100vw - 40px);
    height: 450px;
    left: -10px;
  }
}

/* ── GALLERY SECTION ─────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 220px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 20, 48, 0.85) 0%, transparent 80%);
  display: flex;
  align-items: flex-end;
  padding: var(--spacing-md);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-overlay span {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  transform: translateY(10px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

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

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
  transform: translateY(0);
}

/* ── MOBILE BOTTOM NAVIGATION BAR ── */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 998;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  }

  .mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 10px;
    font-weight: 700;
    gap: 4px;
    flex: 1;
    height: 100%;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: 'Cairo', sans-serif;
  }

  .mobile-bottom-nav .nav-item i {
    font-size: 18px;
    transition: transform 0.2s ease;
  }

  .mobile-bottom-nav .nav-item:hover,
  .mobile-bottom-nav .nav-item:active {
    color: #2563eb;
  }

  .mobile-bottom-nav .nav-item:active i {
    transform: scale(0.9);
  }

  .mobile-bottom-nav .nav-item.highlight {
    color: #2563eb;
  }
  
  /* Add padding bottom to body so footer elements aren't cut off by bottom nav */
  body {
    padding-bottom: 60px;
  }
}

/* ── TOUCH TARGET SIZE COMPLIANCE ── */
@media (max-width: 768px) {
  .mobile-menu-header button,
  .search-bar button,
  .accessibility-btn,
  .hamburger {
    min-width: 48px !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  /* Ensure active clicks are comfortable and responsive */
  .mobile-nav-list li a,
  .mobile-sub-toggle {
    padding: 14px 20px !important;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
  }
}

/* ── TABLE RESPONSIVENESS WITH GRADIENT INDICATORS ── */
.table-responsive-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: var(--spacing-lg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.table-responsive table {
  margin-bottom: 0 !important;
}

/* Indicators showing horizontal swipe is available */
.table-responsive-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 30px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.95), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

/* Show indicator when horizontal overflow occurs */
@media (max-width: 768px) {
  .table-responsive-wrapper::after {
    opacity: 1;
  }
}

/* ── MOBILE HEADER AND TOPBAR CONDENSATION ── */
@media (max-width: 768px) {
  .topbar-right span:not(:first-child),
  .topbar-left .social-icon {
    display: none !important;
  }
  
  .topbar-inner {
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .topbar {
    display: none !important;
  }
}

/* ── INTERACTIVE WIDGETS STYLING ── */

/* 1. ADMISSIONS ELIGIBILITY ESTIMATOR */
.estimator-wrapper {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 30px;
  margin-top: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.estimator-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 30px;
}

@media (max-width: 1024px) {
  .estimator-grid {
    grid-template-columns: 1fr;
  }
}

.estimator-form {
  background: #f8fafc;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.estimator-form label {
  font-weight: 800;
  color: #1a3a6b;
  font-size: 0.95rem;
  margin-bottom: 6px;
  display: block;
}

.form-group select,
.form-group input[type="range"] {
  width: 100%;
}

.form-group select {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  color: #334155;
  background: white;
}

/* Slider Custom Styling */
.range-slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.range-slider-wrap input[type="range"] {
  flex: 1;
  height: 6px;
  background: #cbd5e1;
  border-radius: 5px;
  outline: none;
  accent-color: #2563eb;
}

.slider-val {
  font-size: 1.15rem;
  font-weight: 900;
  color: #2563eb;
  min-width: 60px;
  text-align: center;
}

/* Estimator Results cards */
.estimator-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.elig-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  background: white;
}

.elig-card.qualified {
  border-color: #a7f3d0;
  background: #f0fdf4;
}

.elig-card.not-qualified {
  border-color: #fca5a5;
  background: #fef2f2;
  opacity: 0.8;
}

.elig-info h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1a3a6b;
  margin-bottom: 4px;
}

.elig-info p {
  font-size: 0.8rem;
  color: #64748b;
}

.elig-status-badge {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.775rem;
  font-weight: 700;
}

.elig-status-badge.success {
  background: #d1fae5;
  color: #065f46;
}

.elig-status-badge.error {
  background: #fee2e2;
  color: #991b1b;
}


/* 2. TUITION FEE CALCULATOR */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

@media (max-width: 768px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

.calc-form {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calc-toggles {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.toggle-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #475569;
}

.toggle-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
  cursor: pointer;
}

.calc-results {
  background: #1a3a6b;
  border-radius: 20px;
  padding: 30px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-results h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 12px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.calc-row span {
  color: rgba(255, 255, 255, 0.7);
}

.calc-row strong {
  font-weight: 800;
}

.calc-row.total {
  border-top: 1px dashed rgba(255, 255, 255, 0.25);
  padding-top: 18px;
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.calc-row.total span {
  color: white;
  font-weight: 900;
}

.calc-row.total strong {
  color: #fbbf24;
  font-weight: 900;
}

.calc-installments-box {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-installments-box h4 {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 10px;
}

.calc-installments-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-installments-box li {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
}


/* 3. DENTAL CLINIC BOOKING SIMULATOR */
.booking-form-wrapper {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  margin-top: 30px;
}

.booking-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 640px) {
  .booking-form-grid {
    grid-template-columns: 1fr;
  }
}

.booking-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 20, 48, 0.6);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInModal 0.3s ease forwards;
}

.booking-modal-card {
  background: white;
  border-radius: 24px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.booking-modal-header {
  background: #f0fdf4;
  padding: 24px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}

.booking-modal-header i {
  font-size: 3rem;
  color: #10b981;
  margin-bottom: 12px;
}

.booking-modal-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #065f46;
}

.booking-modal-body {
  padding: 24px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #334155;
}

.booking-details-list {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #e2e8f0;
}

.booking-details-list li {
  display: flex;
  justify-content: space-between;
}

.booking-details-list span {
  color: #64748b;
}

.booking-details-list strong {
  color: #1a3a6b;
  font-weight: 800;
}

.booking-note {
  font-size: 0.775rem;
  color: #94a3b8;
}

.btn-confirm-modal {
  width: 100%;
  padding: 12px;
  background: #2563eb;
  color: white;
  border: none;
  font-weight: 800;
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 0 0 24px 24px;
}

.btn-confirm-modal:hover {
  background: #1d4ed8;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.booking-modal-overlay.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}


/* 4. VIRTUAL 360° TOUR WIDGET */
.tour-wrapper {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  margin-top: 30px;
}

.tour-container {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .tour-container {
    grid-template-columns: 1fr;
  }
}

.tour-viewport {
  position: relative;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.2);
  background: #020617;
}

.tour-panorama-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1) translateX(0px);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.25s ease;
  opacity: 1;
}

/* Glass overlay for panorama details */
.tour-overlay-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(8, 20, 48, 0.9) 0%, transparent 100%);
  padding: 24px;
  color: white;
  z-index: 5;
}

.tour-overlay-info p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
}

/* Pan controls overlay */
.tour-pan-controls {
  position: absolute;
  top: 50%;
  left: 16px;
  right: 16px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  z-index: 10;
  pointer-events: none;
}

.pan-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  pointer-events: auto;
}

.pan-btn:hover {
  background: rgba(255, 255, 255, 0.45);
  transform: scale(1.05);
}

/* Navigation sidebar for locations */
.tour-locations-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 768px) {
  .tour-locations-sidebar {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
  }
}

.tour-nav-btn {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: right;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Cairo', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.tour-nav-btn i {
  font-size: 1.1rem;
}

.tour-nav-btn.active,
.tour-nav-btn:hover {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15);
}

/* ───────────────── PHASE 2 WIDGETS ───────────────── */

/* 1. Dentistry Before & After Slider */
.treatment-slider-wrapper {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  margin-top: 30px;
  margin-bottom: 40px;
}

.treatment-slider-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
  margin-top: 20px;
}

@media (max-width: 991px) {
  .treatment-slider-container {
    grid-template-columns: 1fr;
  }
}

.ba-slider {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(8, 20, 48, 0.08);
  user-select: none;
  cursor: ew-resize;
  background: #0f172a;
}

@media (max-width: 640px) {
  .ba-slider {
    height: 280px;
  }
}

.ba-img-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ba-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Before image is layered on top with a clip-path */
.before-img-wrap {
  z-index: 2;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  transition: none;
}

.ba-label {
  position: absolute;
  bottom: 16px;
  padding: 6px 14px;
  background: rgba(8, 20, 48, 0.7);
  backdrop-filter: blur(5px);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50px;
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.before-lbl {
  left: 16px;
}

.after-lbl {
  right: 16px;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: white;
  z-index: 10;
  cursor: ew-resize;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.ba-handle-line {
  position: absolute;
  inset: 0;
  width: 100%;
}

.ba-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: #f8b81f;
  color: white;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(248, 184, 31, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  border: 2px solid white;
}

/* Case Info & Selectors */
.treatment-case-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.treatment-case-info h4 {
  font-size: 1.1rem;
  color: #1a3a6b;
  font-weight: 800;
  margin-bottom: 12px;
}

.case-details-box {
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.case-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-details-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
}

.case-details-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.case-details-list span {
  color: #64748b;
  font-weight: 600;
}

.case-details-list strong {
  color: #1a3a6b;
  font-weight: 700;
}

.case-selector-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-sel-btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: white;
  color: #475569;
  font-family: 'Cairo', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: right;
}

.case-sel-btn.active,
.case-sel-btn:hover {
  background: #f8b81f;
  color: white;
  border-color: #f8b81f;
  box-shadow: 0 4px 12px rgba(248, 184, 31, 0.25);
}

/* 2. Interactive Curriculum Roadmap */
.curriculum-roadmap-container {
  background: #f8fafc;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  margin-top: 16px;
}

.roadmap-stepper {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 10px;
}

.step-btn {
  flex: 1;
  min-width: 100px;
  padding: 10px 16px;
  border-radius: 50px;
  border: 2px solid #e2e8f0;
  background: white;
  color: #64748b;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.step-btn.active,
.step-btn:hover {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.roadmap-main-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}

@media (max-width: 850px) {
  .roadmap-main-layout {
    grid-template-columns: 1fr;
  }
}

.roadmap-nodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  align-content: start;
}

.course-node {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  position: relative;
}

.course-node:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

.course-node.active-selected {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.course-node.highlight-prereq {
  border-color: #ef4444;
  background: #fef2f2;
}

.course-node.highlight-unlock {
  border-color: #10b981;
  background: #f0fdf4;
}

.node-code {
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 8px;
  border-radius: 6px;
  align-self: flex-start;
  direction: ltr;
}

.course-node.active-selected .node-code {
  background: #2563eb;
  color: white;
}

.course-node.highlight-prereq .node-code {
  background: #ef4444;
  color: white;
}

.course-node.highlight-unlock .node-code {
  background: #10b981;
  color: white;
}

.node-name {
  font-size: 0.875rem;
  font-weight: 800;
  color: #1a3a6b;
  line-height: 1.5;
}

.node-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.725rem;
  color: #94a3b8;
  border-top: 1px solid #f1f5f9;
  padding-top: 8px;
}

.course-node.active-selected .node-meta,
.course-node.highlight-prereq .node-meta,
.course-node.highlight-unlock .node-meta {
  border-top-color: rgba(0, 0, 0, 0.05);
}

/* Info Sidebar */
.roadmap-info-sidebar {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
}

.roadmap-info-sidebar .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #94a3b8;
  height: 100%;
  min-height: 180px;
  gap: 12px;
}

.roadmap-info-sidebar .empty-state i {
  font-size: 2.2rem;
  color: #cbd5e1;
}

.roadmap-info-sidebar .empty-state p {
  font-size: 0.85rem;
  line-height: 1.6;
}

.info-card h4 {
  font-size: 1.05rem;
  color: #1a3a6b;
  font-weight: 800;
  margin-bottom: 8px;
}

.info-card .info-code {
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 700;
  background: #eff6ff;
  color: #2563eb;
  padding: 2px 8px;
  border-radius: 6px;
  direction: ltr;
  display: inline-block;
  margin-bottom: 12px;
}

.info-card p {
  font-size: 0.825rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 16px;
  background: #f8fafc;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.info-relations {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rel-box {
  padding: 10px;
  border-radius: 8px;
  font-size: 0.8rem;
}

.rel-box.prereq {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #991b1b;
}

.rel-box.unlock {
  background: #f0fdf4;
  border: 1px solid #d1fae5;
  color: #065f46;
}

.rel-box h5 {
  font-weight: 800;
  margin-bottom: 4px;
}

.rel-box p {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: inherit;
  font-size: 0.775rem;
}

/* 3. Alumni Mentorship Network */
.mentor-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.mentor-filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  border: 2px solid #e2e8f0;
  background: white;
  color: #64748b;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.mentor-filter-btn.active,
.mentor-filter-btn:hover {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15);
}

.mentors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .mentors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .mentors-grid {
    grid-template-columns: 1fr;
  }
}

.mentor-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.3s;
}

.mentor-card:hover {
  transform: translateY(-4px);
  border-color: #93c5fd;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.06);
}

.mentor-profile-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mentor-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.mentor-meta h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1a3a6b;
  margin-bottom: 2px;
}

.mentor-meta p {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 4px;
}

.mentor-tag {
  font-size: 0.725rem;
  background: #eff6ff;
  color: #2563eb;
  padding: 2px 8px;
  border-radius: 50px;
  font-weight: 700;
  display: inline-block;
}

.mentor-quote {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.7;
  font-style: italic;
  flex-grow: 1;
}

.btn-connect-mentor {
  width: 100%;
  padding: 10px;
  background: #eff6ff;
  color: #2563eb;
  border: none;
  border-radius: 12px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-connect-mentor:hover {
  background: #2563eb;
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Mentorship simulated chat popup */
.mentor-chat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 20, 48, 0.5);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.mentor-chat-card {
  background: white;
  border-radius: 24px;
  max-width: 480px;
  width: 100%;
  height: 520px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeInModal 0.3s ease;
}

.mentor-chat-header {
  background: #1a3a6b;
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mentor-chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mentor-chat-header-info h4 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.mentor-chat-header-info span {
  font-size: 0.725rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 4px;
}

.mentor-chat-header-info span::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
}

.btn-close-chat {
  background: none;
  border: none;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.btn-close-chat:hover {
  opacity: 1;
}

.mentor-chat-messages {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.85rem;
  line-height: 1.6;
}

.chat-bubble.received {
  background: white;
  border: 1px solid #e2e8f0;
  color: #334155;
  align-self: flex-start;
  border-top-left-radius: 4px;
}

.chat-bubble.sent {
  background: #2563eb;
  color: white;
  align-self: flex-end;
  border-top-right-radius: 4px;
}

.chat-typing-indicator {
  display: flex;
  gap: 4px;
  padding: 8px 14px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  border-top-left-radius: 4px;
  align-self: flex-start;
  width: max-content;
}

.chat-typing-indicator span {
  width: 6px;
  height: 6px;
  background: #64748b;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.chat-typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.chat-typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

.mentor-chat-options {
  padding: 16px 20px;
  background: white;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mentor-chat-options p {
  font-size: 0.775rem;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 4px;
}

.chat-option-btn {
  text-align: right;
  padding: 10px 14px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #334155;
  font-family: 'Cairo', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-option-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #2563eb;
}