/* =========================================================
   EducationistGuru - Master Design System & Smooth UI
   Curated with Senior UI/UX Designer GPT-5.6 Luna
   70% Crisp White | 20% Charcoal/Slate | 10% Signature Orange
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand Signature Orange & White Palette */
  --orange-500: #ff6b00;
  --orange-400: #ff7a1a;
  --orange-300: #ff9a55;
  --orange-200: #ffc499;
  --orange-100: #fff0e6;
  --orange-50:  #fff8f2;

  /* Surfaces & Neutrals */
  --white: #ffffff;
  --surface-warm: #fffbf7;
  --surface-soft: #f8fafc;
  --slate-950: #0f172a;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;

  /* Semantics */
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --info: #2563eb;
  --info-bg: #eff6ff;

  /* Borders */
  --border-subtle: rgba(255, 107, 0, 0.14);
  --border-neutral: #e2e8f0;
  --border-focus: rgba(255, 107, 0, 0.45);

  /* Typography */
  --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;

  /* Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-card: 0 8px 30px rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 18px 45px rgba(15, 23, 42, 0.09);
  --shadow-float: 0 20px 45px rgba(15, 23, 42, 0.11);
  --shadow-orange: 0 14px 35px rgba(255, 107, 0, 0.25);

  /* Animation Easings */
  --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.22, 1.2, 0.36, 1);

  /* NEW: Authentic micro-animation timings */
  --ease-authentic: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce-subtle: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.35s;
  --duration-slow: 0.6s;
  
  /* NEW: Depth layers (replaces random box-shadows) */
  --elevation-1: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.06);
  --elevation-2: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --elevation-3: 0 10px 15px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --elevation-4: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --elevation-orange: 0 8px 25px -4px rgba(255, 107, 0, 0.2);
  
  /* NEW: Consistent spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
}

/* ---- Lenis Smooth Scroll Recommended Rules & Typography ---- */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

html {
  /* Never set scroll-behavior: smooth alongside Lenis; it creates frame fighting and delayed choppiness */
  scroll-behavior: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--slate-700);
  background-color: #ffffff;
}

h1, h2, h3, .heading-display {
  font-family: var(--font-display);
  letter-spacing: -0.035em;
  color: var(--slate-950);
}

/* Hardware accelerated layers */
.rs-header, .menu-sticky, .eg-card, .directory-card, .modal-dialog, .hero-composition {
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

/* ---- Modern Sticky Navbar ---- */
.menu-sticky.sticky {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06) !important;
  animation: egSlideDown 0.3s var(--ease-standard) !important;
}

.menu-sticky.sticky .main-menu ul > li > a {
  color: var(--slate-800) !important;
}

.menu-sticky.sticky .main-menu ul > li > a:hover,
.menu-sticky.sticky .main-menu ul > li.current-menu-item > a {
  color: var(--orange-500) !important;
}

@keyframes egSlideDown {
  from { transform: translate3d(0, -100%, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

/* =========================================================
   1. ORGANIC SHAPE MASKS & HERO COMPOSITION (Reference Style)
   ========================================================= */

.hero-composition {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Fluid Organic Background Blob */
.hero-blob-bg {
  position: absolute;
  width: 108%;
  height: 108%;
  top: -4%;
  left: -4%;
  background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-400) 50%, #ff9a55 100%);
  border-radius: 54% 46% 42% 58% / 58% 54% 46% 42%;
  opacity: 0.92;
  filter: drop-shadow(0 20px 40px rgba(255, 107, 0, 0.28));
  animation: blobMorph 16s ease-in-out infinite alternate;
  z-index: 1;
}

/* Secondary Ambient Glow */
.hero-ambient-glow {
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle at 60% 40%, rgba(255, 107, 0, 0.22) 0%, rgba(255, 154, 85, 0.12) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

/* Organic Mask Applied to Image */
.mask-organic-hero {
  position: relative;
  z-index: 2;
  width: 92%;
  height: auto;
  aspect-ratio: 4 / 4.5;
  object-fit: cover;
  clip-path: polygon(
    10% 8%,
    40% 0%,
    75% 6%,
    96% 24%,
    100% 58%,
    89% 88%,
    58% 100%,
    24% 93%,
    2% 72%,
    0% 34%
  );
  border-radius: 36px;
  transition: transform 0.4s var(--ease-spring);
}

.hero-composition:hover .mask-organic-hero {
  transform: scale(1.02);
}

@keyframes blobMorph {
  0% {
    border-radius: 54% 46% 42% 58% / 58% 54% 46% 42%;
    transform: rotate(0deg);
  }
  50% {
    border-radius: 42% 58% 54% 46% / 46% 42% 58% 54%;
    transform: rotate(3deg);
  }
  100% {
    border-radius: 58% 42% 48% 52% / 52% 58% 42% 48%;
    transform: rotate(-2deg);
  }
}

/* Dot Grid Accent (As seen in eduAct) */
.dot-grid {
  position: absolute;
  width: 96px;
  height: 96px;
  background-image: radial-gradient(var(--orange-400) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: 0.45;
  z-index: 1;
  pointer-events: none;
}

.dot-grid--top-left {
  top: -15px;
  left: -20px;
}

.dot-grid--bottom-right {
  bottom: -15px;
  right: -20px;
}

/* =========================================================
   2. FLOATING MICRO-WIDGETS & BADGES (Clean Glassmorphism)
   ========================================================= */

.floating-pill {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--slate-800);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
  animation: floatGentle 5s ease-in-out infinite alternate;
}

.floating-pill:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
}

.floating-pill--top {
  top: 6%;
  right: -5%;
  animation-delay: 0s;
}

.floating-pill--bottom {
  bottom: 8%;
  left: -8%;
  animation-delay: 1.5s;
}

.floating-pill--left-center {
  top: 48%;
  left: -12%;
  animation-delay: 2.5s;
}

.floating-pill__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange-100);
  color: var(--orange-500);
  font-size: 14px;
  flex-shrink: 0;
}

.floating-pill__text-sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--slate-500);
}

/* Floating Rating Chip */
.floating-rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-900);
}

.floating-rating-chip .stars {
  color: #f59e0b;
  font-size: 12px;
}

@keyframes floatGentle {
  0%   { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

/* =========================================================
   3. ANIMATED DASHED CONNECTOR LAYER (Reference Style)
   ========================================================= */

.connector-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

.connector-layer path {
  fill: none;
  stroke: var(--orange-300);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 8 12;
  opacity: 0.65;
  animation: connectorFlow 22s linear infinite;
}

@keyframes connectorFlow {
  to { stroke-dashoffset: -200; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-blob-bg, .floating-pill, .connector-layer path {
    animation: none !important;
  }
}

/* =========================================================
   4. DIRECTORY & INSTITUTION CARDS (Clean Minimalist)
   ========================================================= */

.directory-card, .eg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px;
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.directory-card:hover, .eg-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 107, 0, 0.32);
  box-shadow: var(--shadow-card-hover);
}

/* Specific Directory Cards for Colleges and Universities */
.eg-card.college-card,
.eg-card.univ-card {
  padding: 0;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.eg-card.college-card:hover,
.eg-card.univ-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 107, 0, 0.4);
  box-shadow: 0 16px 36px rgba(255, 107, 0, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
}

.card-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  background: #0f172a;
  overflow: hidden;
  flex-shrink: 0;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.eg-card:hover .card-img-wrap img {
  transform: scale(1.06);
}

.card-badge-top {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-featured-star {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #ff6b00, #ff8c33);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.4);
}

.eg-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 20px 22px;
  background: #ffffff;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}

.card-category-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  background: #fff4ed;
  color: #ea580c;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border: 1px solid rgba(234, 88, 12, 0.2);
}

.card-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  background: #f8fafc;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.card-title {
  font-family: var(--font-display, inherit);
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 12px 0;
  min-height: 48px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-info-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 7px;
}

.card-info-item i {
  font-size: 14px;
  margin-top: 3px;
  flex-shrink: 0;
}

.card-info-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.card-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.55;
  margin: 8px 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

.card-highlight-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: #166534;
  font-weight: 600;
  margin: 8px 0 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.card-actions .btn {
  font-weight: 700;
  font-size: 13px;
  border-radius: 9999px;
  padding: 8px 14px;
  transition: all 0.2s ease;
}

.modal-header .close {
  background: transparent;
  border: 0;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  color: #64748b;
  opacity: 0.75;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.25s ease, color 0.2s ease;
}
.modal-header .close:hover {
  opacity: 1;
  color: #ff6b00;
  transform: rotate(90deg);
}

.directory-card__logo {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--orange-50);
  color: var(--orange-500);
  font-size: 24px;
  margin-bottom: 14px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-spring);
}

.directory-card:hover .directory-card__logo {
  transform: scale(1.06);
  background: var(--orange-100);
}

.directory-card__badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

/* Semantic Badges & Tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.tag--orange {
  background: var(--orange-100);
  color: #c2410c;
  border: 1px solid rgba(255, 107, 0, 0.2);
}

.tag--success {
  background: #ecfdf3;
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.tag--blue {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.tag--neutral {
  background: var(--slate-100);
  color: var(--slate-700);
}

/* Modern Primary Button */
.btn-eg-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--orange-500);
  color: var(--white) !important;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14.5px;
  box-shadow: var(--shadow-orange);
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.25s var(--ease-spring), background 0.2s ease, box-shadow 0.25s ease;
}

.btn-eg-primary:hover {
  background: #e65e00;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(255, 107, 0, 0.35);
  color: var(--white) !important;
}

.btn-eg-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid var(--border-neutral);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--slate-800) !important;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.25s var(--ease-spring), border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.btn-eg-secondary:hover {
  border-color: var(--orange-500);
  color: var(--orange-500) !important;
  background: var(--orange-50);
  transform: translateY(-2px);
}

/* =========================================================
   5. SEARCH & FILTER TOOLBAR (Minimalist White Elevation)
   ========================================================= */

.eg-directory-hero {
  background: radial-gradient(circle at 85% 15%, rgba(255, 122, 26, 0.12), transparent 45%),
              radial-gradient(circle at 15% 85%, rgba(255, 107, 0, 0.08), transparent 45%),
              var(--surface-warm);
  padding: 65px 0 55px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--slate-200);
}

.eg-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-100);
  color: #c2410c;
  border: 1px solid rgba(255, 107, 0, 0.25);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.eg-hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  color: var(--slate-950);
  line-height: 1.2;
  margin-bottom: 14px;
}

.eg-hero-title span {
  color: var(--orange-500);
}

.eg-hero-desc {
  font-size: 16px;
  color: var(--slate-600);
  max-width: 720px;
  line-height: 1.65;
  margin-bottom: 28px;
}

.eg-search-container {
  max-width: 800px;
  position: relative;
}

.eg-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.eg-search-input-wrap i {
  position: absolute;
  left: 20px;
  color: var(--slate-400);
  font-size: 18px;
  pointer-events: none;
}

.eg-search-input {
  width: 100%;
  height: 56px;
  padding: 12px 20px 12px 52px;
  font-size: 15.5px;
  font-family: var(--font-sans);
  background: #ffffff;
  border: 1.5px solid var(--border-neutral);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  color: var(--slate-900);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.eg-search-input:focus {
  border-color: var(--orange-500);
  box-shadow: 0 12px 35px rgba(255, 107, 0, 0.18);
}

.eg-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.eg-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: #ffffff;
  border: 1.5px solid var(--border-neutral);
  border-radius: var(--radius-pill);
  color: var(--slate-700);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
  text-decoration: none !important;
}

.eg-filter-pill:hover {
  border-color: var(--orange-400);
  color: var(--orange-500);
  transform: translateY(-2px);
}

.eg-filter-pill.active {
  background: var(--orange-500);
  border-color: var(--orange-500);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.35);
}

/* =========================================================
   6. MODAL SYSTEM WITH CLEAN GLASS BLUR
   ========================================================= */

.modal-backdrop.show {
  opacity: 0.65;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-content {
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid var(--slate-200);
  padding: 20px 24px;
}

.modal-header .modal-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--slate-900);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-composition {
    max-width: 100%;
    margin-top: 2rem;
  }
  .floating-pill--left-center {
    display: none;
  }
  .floating-pill--bottom {
    left: 0;
    bottom: 2%;
  }
  .floating-pill--top {
    right: 0;
    top: 2%;
  }
}

/* =========================================================
   7. EDITORIAL CONTENT TYPOGRAPHY (Admission-Open Standard)
   ========================================================= */
.blog-body, .course-overview-content {
  font-family: var(--font-sans);
  color: #334155;
  font-size: 16px;
  line-height: 1.8;
}

.blog-body h1, .course-overview-content h1, .overview-h1 {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin: 30px 0 14px;
  border-bottom: 2.5px solid #ff6b00;
  padding-bottom: 8px;
}

.blog-body h2, .course-overview-content h2, .overview-h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.38;
  margin: 26px 0 12px;
  border-left: 4px solid #ff6b00;
  padding-left: 12px;
}

.blog-body h3, .course-overview-content h3, .overview-h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: #334155;
  line-height: 1.4;
  margin: 22px 0 10px;
}

.blog-body h4, .course-overview-content h4, .overview-h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #475569;
  margin: 18px 0 8px;
}

.blog-body h5, .course-overview-content h5, .overview-h5 {
  font-size: 15px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 16px 0 6px;
}

.blog-body h6, .course-overview-content h6, .overview-h6 {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  margin: 14px 0 6px;
}

.blog-body p, .course-overview-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 16px;
}

.blog-body ul, .blog-body ol, .course-overview-content ul, .course-overview-content ol {
  padding-left: 26px;
  margin: 14px 0 22px;
}

.blog-body li, .course-overview-content li {
  font-size: 15.5px;
  line-height: 1.75;
  color: #334155;
  margin-bottom: 8px;
}

.blog-body strong, .course-overview-content strong {
  font-weight: 700;
  color: #0f172a;
}

.blog-body table, .course-overview-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.blog-body th, .course-overview-content th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 2px solid #e2e8f0;
  text-align: left;
}

.blog-body td, .course-overview-content td {
  padding: 11px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.blog-body tr:hover td, .course-overview-content tr:hover td {
  background: #f8fafc;
}

/* Callout Lead Box inside Articles */
.lead-inquiry-box {
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  border-left: 5px solid #ff6b00;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 26px 0;
  box-shadow: 0 4px 18px rgba(255, 107, 0, 0.08);
}

.lead-inquiry-box h4 {
  color: #9a3412 !important;
  font-size: 17.5px;
  font-weight: 800;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
}

.lead-inquiry-box p {
  color: #7c2d12 !important;
  font-size: 14px;
  margin: 0 0 14px;
  line-height: 1.6;
}

.lead-inquiry-box .btn-inquiry {
  background: #ea580c;
  color: #ffffff !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.lead-inquiry-box .btn-inquiry:hover {
  background: #c2410c;
  transform: translateY(-1px);
}

.lead-inquiry-box .btn-whatsapp {
  background: #25d366;
  color: #ffffff !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.lead-inquiry-box .btn-whatsapp:hover {
  background: #1eb954;
  transform: translateY(-1px);
}

/* =============================================
   SIDEBAR COMPONENTS & SEARCH WIDGET ENHANCEMENT
   ============================================= */

/* Sleek Inline Search Widget */
.search-widget .search-wrap {
  display: flex !important;
  align-items: stretch !important;
  position: relative !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.25s ease !important;
}

.search-widget .search-wrap:focus-within {
  border-color: #ff6b00 !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15), 0 6px 18px rgba(0, 0, 0, 0.08) !important;
}

.search-widget .search-wrap input.form-control,
.search-widget .search-wrap input {
  flex: 1 !important;
  width: auto !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  color: #0f172a !important;
  background: transparent !important;
  height: auto !important;
}

.search-widget .search-wrap input::placeholder {
  color: #94a3b8 !important;
}

.search-widget .search-wrap button.search-btn,
.search-widget .search-wrap button {
  background: linear-gradient(135deg, #ff6b00, #ff8c00) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 0 20px !important;
  font-size: 15px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}

.search-widget .search-wrap button.search-btn:hover,
.search-widget .search-wrap button:hover {
  background: linear-gradient(135deg, #e65100, #ff6b00) !important;
}

/* Dynamic Sidebar Academic Disciplines / Categories */
.categories-widget ul.eg-dynamic-sidebar-categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-widget ul.eg-dynamic-sidebar-categories li {
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
}

.categories-widget ul.eg-dynamic-sidebar-categories li:last-child {
  border-bottom: none;
}

.categories-widget ul.eg-dynamic-sidebar-categories li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #334155;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.categories-widget ul.eg-dynamic-sidebar-categories li a:hover {
  background: #fff7ed;
  color: #ea580c;
  transform: translateX(4px);
}

.categories-widget ul.eg-dynamic-sidebar-categories li a .cat-count-badge {
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  transition: all 0.2s;
}

.categories-widget ul.eg-dynamic-sidebar-categories li a:hover .cat-count-badge {
  background: #ff6b00;
  color: #ffffff;
}

/* EducationistGuru Admissions Guidance Callout Box */
.sidebar-counseling-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.sidebar-counseling-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ff6b00, #ff8c00);
}

.eg-counseling-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff1ee;
  color: #ff6b00;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.sidebar-counseling-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
  line-height: 1.35;
}

.sidebar-counseling-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 16px;
}

.btn-sidebar-callback {
  width: 100%;
  background: linear-gradient(135deg, #ff6b00, #e6260c);
  color: #ffffff;
  border: none;
  padding: 11px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.25);
}

.btn-sidebar-callback:hover {
  background: linear-gradient(135deg, #e65100, #d82006);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 107, 0, 0.35);
}

.counselor-helpline-strip {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

.counselor-helpline-strip a {
  font-weight: 700;
  color: #334155;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}

.counselor-helpline-strip a:hover {
  color: #ff6b00;
}

.counselor-helpline-strip a.wa-link {
  color: #16a34a;
}

/* =============================================
   SCROLL-TRIGGERED REVEAL ANIMATIONS
   ============================================= */
.eg-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-standard), transform 0.6s var(--ease-standard);
  will-change: opacity, transform;
}
.eg-reveal.eg-visible {
  opacity: 1;
  transform: translateY(0);
}
.eg-reveal-delay-1 { transition-delay: 0.1s; }
.eg-reveal-delay-2 { transition-delay: 0.2s; }
.eg-reveal-delay-3 { transition-delay: 0.3s; }


