/* ==========================================================================
   Clinovia Research & Innovations LLP — Master Design System & Stylesheet
   Advancing Research. Transforming Healthcare.
   ========================================================================== */

:root {
  /* Brand Color Palette */
  --color-primary-900: #07192F;
  --color-primary-800: #0B2545;
  --color-primary-700: #123C6E;
  --color-primary-600: #1A5496;
  --color-primary-500: #2563EB;
  
  --color-teal-700: #0F766E;
  --color-teal-600: #0D9488;
  --color-teal-500: #14B8A6;
  --color-teal-100: #CCFBF1;
  --color-teal-50: #F0FDFA;

  --color-emerald-600: #059669;
  --color-emerald-50: #ECFDF5;

  --color-amber-500: #F59E0B;
  --color-amber-600: #D97706;
  --color-amber-50: #FFFBEB;

  --color-neutral-900: #0F172A;
  --color-neutral-800: #1E293B;
  --color-neutral-700: #334155;
  --color-neutral-600: #475569;
  --color-neutral-500: #64748B;
  --color-neutral-400: #94A3B8;
  --color-neutral-300: #CBD5E1;
  --color-neutral-200: #E2E8F0;
  --color-neutral-100: #F1F5F9;
  --color-neutral-50: #F8FAFC;
  --color-white: #FFFFFF;

  /* Typography */
  --font-heading: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --color-accent: var(--color-teal-500);

  /* Elevation Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(11, 37, 69, 0.05);
  --shadow-sm: 0 2px 6px 0 rgba(11, 37, 69, 0.06), 0 1px 2px 0 rgba(11, 37, 69, 0.04);
  --shadow-md: 0 6px 16px -2px rgba(11, 37, 69, 0.08), 0 2px 6px -1px rgba(11, 37, 69, 0.04);
  --shadow-lg: 0 14px 28px -4px rgba(11, 37, 69, 0.1), 0 4px 12px -2px rgba(11, 37, 69, 0.06);
  --shadow-xl: 0 24px 44px -8px rgba(11, 37, 69, 0.16);

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Layout */
  --container-max: 1240px;
  --nav-height: 78px;
}

/* ==========================================================================
   CSS Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-neutral-700);
  background-color: var(--color-neutral-50);
  overflow-x: hidden;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

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

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

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary-900);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

p, span, a, li, blockquote, td, th {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1 { font-size: clamp(1.75rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.4rem, 3.8vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2.6vw, 1.6rem); }
h4 { font-size: clamp(1rem, 2vw, 1.25rem); }

p {
  margin-bottom: 1rem;
}
p:last-child {
  margin-bottom: 0;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-sm {
  padding: 3.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-teal-700);
  background-color: var(--color-teal-100);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-tag.light {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--color-teal-100);
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-neutral-600);
  line-height: 1.6;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all var(--transition-normal);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.site-header.scrolled {
  height: 66px;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--color-neutral-200);
}

.site-header .container {
  max-width: 1400px;
  width: 100%;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  display: block;
  flex-shrink: 0;
}

.footer-brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  display: block;
  flex-shrink: 0;
  background-color: #ffffff;
  padding: 2px;
}

.brand-logo-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-primary-800), var(--color-teal-600));
}

.brand-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-logo-box svg {
  width: 24px;
  height: 24px;
}

.brand-logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-logo-text .title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-primary-900);
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-logo-text .subtitle {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-teal-700);
  white-space: nowrap;
}

/* Nav links desktop */
.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.15vw, 1.35rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: clamp(0.8125rem, 0.88vw, 0.9rem);
  font-weight: 600;
  color: var(--color-neutral-700);
  padding: 0.45rem 0.25rem;
  position: relative;
  transition: color var(--transition-fast);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary-800);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-teal-600);
  transition: width var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Dropdown styling */
.nav-item-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dropdown-arrow {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background-color: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  z-index: 100;
}

.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-neutral-700);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.dropdown-link:hover {
  background-color: var(--color-teal-50);
  color: var(--color-teal-700);
  padding-left: 1.45rem;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--color-primary-800);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.2);
}

.btn-primary:hover {
  background-color: var(--color-primary-700);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11, 37, 69, 0.25);
  color: var(--color-white);
}

.btn-accent {
  background-color: var(--color-teal-600);
  color: var(--color-white);
}

.btn-accent:hover {
  background-color: var(--color-teal-700);
  transform: translateY(-2px);
  color: var(--color-white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary-800);
  border: 1.5px solid var(--color-primary-800);
}

.btn-secondary:hover {
  background-color: var(--color-primary-800);
  color: var(--color-white);
}

.btn-white {
  background-color: var(--color-white);
  color: var(--color-primary-800);
  font-weight: 700;
}

.btn-white:hover {
  background-color: var(--color-neutral-100);
  transform: translateY(-2px);
}

.btn-white-outline {
  background-color: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-white-outline:hover {
  border-color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.btn-sm {
  padding: 0.48rem 0.95rem;
  font-size: 0.84rem;
  white-space: nowrap;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-neutral-100);
  color: var(--color-primary-900);
  align-items: center;
  justify-content: center;
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background-color: var(--color-white);
  box-shadow: var(--shadow-xl);
  z-index: 1050;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-smooth);
  overflow-y: auto;
}

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

.drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(11, 37, 69, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-neutral-200);
}

.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-neutral-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-neutral-800);
  border-radius: var(--radius-sm);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background-color: var(--color-teal-50);
  color: var(--color-teal-700);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--nav-height) + 4.5rem);
  padding-bottom: 5.5rem;
  background: radial-gradient(circle at 10% 20%, #07172B 0%, #0B2545 60%, #081B34 100%);
  color: var(--color-white);
  overflow: hidden;
}

.hero-dna-canvas,
#hero-canvas {
  display: none !important;
}

/* Ensure any legacy page skeleton loaders are suppressed completely */
.page-skeleton,
#page-skeleton,
[class*="sk-shimmer"],
.sk-header,
.sk-hero,
.sk-stats,
.sk-cards {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.hero-content-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text {
  max-width: 650px;
}

.hero-headline {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero-headline .text-gradient {
  background: linear-gradient(135deg, #38BDF8 0%, #2DD4BF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subheading {
  font-size: 1.2rem;
  line-height: 1.65;
  color: #CBD5E1;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: #E2E8F0;
  font-weight: 500;
}

.hero-badge-item svg {
  width: 18px;
  height: 18px;
  color: #2DD4BF;
  flex-shrink: 0;
}

.hero-visual-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
}

/* ==========================================================================
   Trust Bar & Stats Strip
   ========================================================================== */
.stats-strip {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-neutral-200);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 10;
  margin-top: -2.5rem;
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 0 1rem;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: var(--color-neutral-200);
}

.stat-number-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--color-primary-800);
  line-height: 1;
}

.stat-plus {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-teal-600);
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-neutral-600);
}

/* ==========================================================================
   RIDET Brand Strip
   ========================================================================== */
.ridet-strip {
  background: linear-gradient(135deg, #07192F 0%, #0B2545 100%);
  color: var(--color-white);
  padding: 3rem 0;
}

.ridet-container {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 2.5rem;
  align-items: center;
}

.ridet-lead h3 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.ridet-lead p {
  color: #94A3B8;
  font-size: 0.9375rem;
}

.ridet-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.ridet-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all var(--transition-fast);
}

.ridet-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
  border-color: #2DD4BF;
}

.ridet-letter {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #2DD4BF;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.ridet-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #F8FAFC;
  line-height: 1.3;
}

/* ==========================================================================
   Services Grid
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary-800), var(--color-teal-600));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-teal-100);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: var(--color-teal-50);
  color: var(--color-teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all var(--transition-fast);
}

.service-card:hover .service-icon-box {
  background-color: var(--color-primary-800);
  color: var(--color-white);
}

.service-icon-box svg {
  width: 28px;
  height: 28px;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary-900);
}

.service-desc {
  font-size: 0.9375rem;
  color: var(--color-neutral-600);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-image-slot {
  margin-bottom: 1.25rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-neutral-100);
  border: 1px solid var(--color-neutral-200);
  aspect-ratio: 16 / 9;
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-medium);
}

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

.feature-photo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-neutral-200);
  background-color: var(--color-white);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.feature-photo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

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

.video-thumbnail-box {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9;
  background-color: #0B2545;
  cursor: pointer;
}

.video-thumbnail-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-medium), opacity var(--transition-medium);
  opacity: 0.88;
}

.video-thumbnail-box:hover img {
  transform: scale(1.04);
  opacity: 0.96;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(11, 37, 69, 0.85);
  border: 2px solid var(--color-teal-400);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.video-thumbnail-box:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--color-teal-600);
  border-color: #ffffff;
}

.video-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-teal-700);
  margin-top: auto;
}

.service-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.service-link:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Philosophy & Narrative Section (Learn. Apply. Innovate. Grow.)
   ========================================================================== */
.philosophy-section {
  background-color: var(--color-neutral-100);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 4rem;
  align-items: center;
}

.philosophy-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

.philosophy-step-card {
  background: var(--color-white);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-neutral-200);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--color-primary-800);
  margin-bottom: 0.4rem;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background-color: var(--color-teal-100);
  color: var(--color-teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.step-text {
  font-size: 0.875rem;
  color: var(--color-neutral-600);
}

/* ==========================================================================
   Why Clinovia / USP Section
   ========================================================================== */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.usp-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-neutral-200);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.usp-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-teal-600);
}

.usp-card-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-teal-600);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.usp-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary-900);
}

.usp-card-desc {
  font-size: 0.9375rem;
  color: var(--color-neutral-600);
  line-height: 1.6;
}

/* ==========================================================================
   Our Approach: Process Map Timeline
   Research -> Evidence -> Innovation -> Impact
   ========================================================================== */
.approach-section {
  background: radial-gradient(circle at 50% 50%, #07192F 0%, #0B2545 100%);
  color: var(--color-white);
}

.approach-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  margin-top: 3rem;
}

.approach-timeline::before {
  content: '';
  position: absolute;
  top: 45px;
  left: 8%;
  right: 8%;
  height: 3px;
  background: linear-gradient(90deg, #38BDF8, #2DD4BF, #10B981, #F59E0B);
  z-index: 1;
}

.timeline-step {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 0.5rem;
}

.timeline-icon-bubble {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-full);
  background-color: #07192F;
  border: 3px solid #2DD4BF;
  margin: 0 auto 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2DD4BF;
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.3);
  transition: all var(--transition-fast);
}

.timeline-step:hover .timeline-icon-bubble {
  transform: scale(1.1);
  border-color: #38BDF8;
  color: #38BDF8;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.5);
}

.timeline-icon-bubble svg {
  width: 40px;
  height: 40px;
}

.timeline-title {
  color: var(--color-white);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: 0.875rem;
  color: #CBD5E1;
  line-height: 1.5;
}

/* ==========================================================================
   Vision & Mission Section
   ========================================================================== */
.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.vm-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-neutral-200);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.vm-card.accent {
  background: linear-gradient(135deg, var(--color-primary-900), var(--color-primary-800));
  color: var(--color-white);
  border-color: transparent;
}

.vm-card.accent h3 {
  color: var(--color-white);
}

.vm-card.accent p {
  color: #CBD5E1;
}

.vm-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background-color: var(--color-teal-100);
  color: var(--color-teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.vm-card.accent .vm-icon {
  background-color: rgba(255, 255, 255, 0.15);
  color: #2DD4BF;
}

.vm-icon svg {
  width: 32px;
  height: 32px;
}

/* ==========================================================================
   Faculty Grid & Cards
   ========================================================================== */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.faculty-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faculty-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-teal-600);
}

.faculty-avatar-box {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
  border: 3px solid var(--color-teal-100);
  background-color: var(--color-teal-50);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.12);
  flex-shrink: 0;
}

.faculty-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.faculty-card:hover .faculty-avatar-box {
  border-color: var(--color-teal-500);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.22);
}

.faculty-card:hover .faculty-avatar-img {
  transform: scale(1.06);
}

.faculty-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary-900);
  margin-bottom: 0.35rem;
}

.faculty-org-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-teal-700);
  background-color: var(--color-teal-50);
  border: 1px solid var(--color-teal-100);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.6rem;
}

.faculty-role {
  font-size: 0.8125rem;
  color: var(--color-neutral-600);
  line-height: 1.4;
}

/* ==========================================================================
   Testimonial Carousel (Vanilla JS)
   ========================================================================== */
.testimonial-section {
  background-color: var(--color-neutral-100);
}

.carousel-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  padding: 1rem 0 3rem 0;
}

.carousel-track {
  display: flex;
  transition: transform 450ms cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.testimonial-slide {
  min-width: 100%;
  flex-shrink: 0;
  padding: 0 1rem;
}

.testimonial-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
}

.testimonial-quote-icon {
  width: 48px;
  height: 48px;
  color: var(--color-teal-100);
  margin: 0 auto 1.5rem auto;
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  color: var(--color-amber-500);
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.testimonial-quote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-neutral-800);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.testimonial-author-name {
  font-weight: 700;
  color: var(--color-primary-900);
  font-size: 1.05rem;
}

.testimonial-author-meta {
  font-size: 0.875rem;
  color: var(--color-neutral-500);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--color-white);
  border: 1px solid var(--color-neutral-300);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-800);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.carousel-btn:hover {
  background-color: var(--color-primary-800);
  color: var(--color-white);
  border-color: var(--color-primary-800);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: var(--color-neutral-300);
  transition: all var(--transition-fast);
}

.carousel-dot.active {
  width: 28px;
  background-color: var(--color-teal-600);
}

/* ==========================================================================
   Career / Campus Drive Card
   ========================================================================== */
.career-teaser-card {
  background: linear-gradient(135deg, var(--color-primary-900), var(--color-primary-800));
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  color: var(--color-white);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.career-meta-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.career-meta-row {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9375rem;
}

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

.meta-label {
  color: #94A3B8;
  font-weight: 500;
}

.meta-value {
  font-weight: 700;
  color: var(--color-white);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.accordion-item.active {
  border-color: var(--color-teal-600);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary-900);
  text-align: left;
  background-color: var(--color-white);
  transition: background-color var(--transition-fast);
}

.accordion-header:hover {
  background-color: var(--color-neutral-50);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  color: var(--color-teal-600);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  background-color: var(--color-white);
}

.accordion-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--color-neutral-600);
  line-height: 1.65;
}

/* ==========================================================================
   Lead Capture Form & CTA Section
   ========================================================================== */
.cta-lead-section {
  background-color: var(--color-neutral-100);
  position: relative;
}

.cta-form-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-neutral-200);
  overflow: hidden;
}

.cta-info-panel {
  background: linear-gradient(135deg, var(--color-primary-900), var(--color-primary-800));
  color: var(--color-white);
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cta-info-panel h3 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-info-panel p {
  color: #CBD5E1;
  margin-bottom: 2rem;
}

.cta-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  list-style: none;
}

.cta-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.9375rem;
  color: #E2E8F0;
}

.cta-contact-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2DD4BF;
  flex-shrink: 0;
}

.form-body {
  padding: 3.5rem 3rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-neutral-800);
}

.form-label .required {
  color: #EF4444;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-sm);
  background-color: var(--color-neutral-50);
  color: var(--color-neutral-900);
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-teal-600);
  background-color: var(--color-white);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.form-input.error, .form-select.error, .form-textarea.error {
  border-color: #EF4444;
  background-color: #FEF2F2;
}

.form-error-msg {
  font-size: 0.75rem;
  color: #EF4444;
  display: none;
  font-weight: 500;
}

.form-error-msg.visible {
  display: block;
}

/* ==========================================================================
   Image & Media Placeholders (Clean Static Styling)
   ========================================================================== */
.img-placeholder {
  position: relative;
  background-color: var(--color-neutral-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  color: var(--color-neutral-600);
  user-select: none;
}

.img-placeholder svg {
  width: 36px;
  height: 36px;
  margin-bottom: 0.5rem;
  color: var(--color-neutral-500);
  opacity: 0.8;
}

.img-placeholder-caption {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-neutral-700);
}

.img-placeholder.ratio-16-9 {
  aspect-ratio: 16 / 9;
}

.img-placeholder.ratio-4-3 {
  aspect-ratio: 4 / 3;
}

.img-placeholder.ratio-1-1 {
  aspect-ratio: 1 / 1;
}

.img-placeholder.circle {
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-primary-900);
  color: #94A3B8;
  padding: 4.5rem 0 2rem 0;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand .brand-logo-box {
  background: linear-gradient(135deg, var(--color-teal-600), var(--color-teal-500));
}

.footer-brand .title {
  color: var(--color-white);
}

.footer-tagline {
  margin: 1.25rem 0 1.5rem 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #CBD5E1;
}

.footer-heading {
  font-size: 1.05rem;
  color: var(--color-white);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--color-teal-500);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  font-size: 0.875rem;
  color: #94A3B8;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-white);
  padding-left: 0.35rem;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-teal-500);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.footer-map-placeholder {
  height: 110px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #CBD5E1;
  font-size: 0.75rem;
  text-align: center;
  padding: 0.5rem;
}

.social-links-row {
  display: flex;
  gap: 0.75rem;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #CBD5E1;
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  background-color: var(--color-teal-600);
  color: var(--color-white);
  transform: translateY(-3px);
}

.social-icon-btn svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: #64748B;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 58px;
  height: 58px;
  background-color: #25D366;
  color: var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-fast);
  animation: pulse-ring 2.5s infinite;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.whatsapp-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  color: var(--color-white);
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background-color: var(--color-primary-900);
  color: var(--color-white);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   Modal Dialog & Toast Notification
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(7, 25, 47, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-xl);
  transform: scale(0.92);
  transition: transform var(--transition-smooth);
}

.modal-backdrop.open .modal-box {
  transform: scale(1);
}

.modal-icon-success {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background-color: var(--color-teal-50);
  color: var(--color-teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

.modal-icon-success svg {
  width: 36px;
  height: 36px;
}

.modal-title {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary-900);
}

.modal-desc {
  font-size: 0.9375rem;
  color: var(--color-neutral-600);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Toast */
.toast-notice {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 1500;
  background-color: var(--color-primary-900);
  color: var(--color-white);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-left: 4px solid var(--color-teal-500);
  transform: translateY(-20px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   Page Headers (Sub-pages)
   ========================================================================== */
.page-hero,
.page-banner {
  padding-top: calc(var(--nav-height) + 3.25rem);
  padding-bottom: 3.75rem;
  background: radial-gradient(circle at 80% 20%, #07172B 0%, #0B2545 70%, #0A192F 100%);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.page-hero-inner {
  max-width: 800px;
}

.page-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #94A3B8;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.page-breadcrumbs a:hover {
  color: var(--color-white);
}

.page-title {
  color: var(--color-white);
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.2;
}

.page-lead,
.page-subtitle {
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  color: #CBD5E1;
  line-height: 1.6;
  max-width: 800px;
}

/* ==========================================================================
   Scroll-Reveal Animations (Vanilla JS IntersectionObserver)
   ========================================================================== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Only hide unrevealed elements once JS is active and confirmed */
html.js-ready .reveal:not(.active) {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* Accessible Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   Responsive Breakpoints & Device Adaptations
   ========================================================================== */

/* Utility helper for mobile swipeable tables */
.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-neutral-200);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.table-responsive table,
div[style*="overflow-x: auto"] table {
  min-width: 580px;
  width: 100%;
}

.table-scroll-hint {
  display: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-teal-700);
  margin-bottom: 0.5rem;
  text-align: right;
}

/* Compact desktop styling for intermediate viewports (1141px to 1280px) */
@media (min-width: 1141px) and (max-width: 1280px) {
  .nav-menu {
    gap: 0.65rem;
  }
  .nav-link {
    font-size: 0.825rem;
    padding: 0.35rem 0.15rem;
  }
  .nav-actions {
    gap: 0.5rem;
  }
  .nav-actions .btn-sm {
    padding: 0.42rem 0.8rem;
    font-size: 0.78rem;
  }
  .brand-logo-text .title {
    font-size: 1.05rem;
  }
}

/* Tablet Landscape & Medium Desktops (<= 1140px) */
@media (max-width: 1140px) {
  /* Switch to mobile hamburger drawer before desktop links collide */
  .nav-menu,
  .nav-actions .btn {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-content-grid,
  .philosophy-grid,
  .cta-form-wrapper,
  .career-teaser-card,
  .grid-2-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }

  .faculty-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .approach-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.25rem;
  }
  
  .approach-timeline::before {
    display: none;
  }

  .ridet-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .ridet-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* Tablets & Large Phones (<= 768px) */
@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }

  .section-sm {
    padding: 2rem 0;
  }

  .section-header {
    margin-bottom: 1.75rem;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 1.5rem);
    padding-bottom: 3rem;
  }

  .page-hero,
  .page-banner {
    padding-top: calc(var(--nav-height) + 1.5rem);
    padding-bottom: 2.25rem;
  }

  /* Fluid typography and mobile font-size bounds */
  h1, .hero-headline, [style*="font-size: 3"], [style*="font-size: 2.5"] {
    font-size: clamp(1.45rem, 5.5vw, 2.05rem) !important;
    line-height: 1.22 !important;
    letter-spacing: -0.015em !important;
  }

  h2, .section-title, [style*="font-size: 2"], [style*="font-size: 1.85rem"], [style*="font-size: 1.8rem"], [style*="font-size: 1.75rem"] {
    font-size: clamp(1.22rem, 4.2vw, 1.6rem) !important;
    line-height: 1.28 !important;
  }

  h3, [style*="font-size: 1.6rem"], [style*="font-size: 1.5rem"], [style*="font-size: 1.4rem"] {
    font-size: clamp(1.05rem, 3.4vw, 1.28rem) !important;
    line-height: 1.35 !important;
  }

  .hero-subheading {
    font-size: clamp(0.925rem, 2.4vw, 1.05rem) !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
  }

  .section-subtitle, .page-lead, .page-subtitle {
    font-size: clamp(0.9rem, 2.4vw, 1.025rem) !important;
    line-height: 1.55 !important;
  }

  p, li {
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  /* Force all multi-column content and minmax inline grids to single-column */
  .services-grid,
  .faculty-grid,
  .vision-mission-grid,
  .form-grid,
  .usp-grid,
  .grid-2-col,
  .hero-content-grid,
  .philosophy-grid,
  .cta-form-wrapper,
  .approach-timeline,
  .career-teaser-card,
  div[style*="grid-template-columns"],
  [style*="minmax"] {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* Course card internal module grids */
  article.service-card [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* Card padding scaling */
  .service-card,
  article.service-card {
    padding: 1.35rem 1.1rem !important;
  }

  .usp-card,
  .vm-card,
  .career-teaser-card,
  .testimonial-card,
  [style*="padding: 2.5rem"],
  [style*="padding: 2rem"] {
    padding: 1.35rem 1.1rem !important;
  }

  /* Stats strip */
  .stats-strip {
    margin-top: -1.75rem;
    padding: 1.25rem 0.85rem;
    border-radius: var(--radius-md);
  }

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

  .stat-item {
    padding: 0.5rem;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .stat-number {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .stat-plus {
    font-size: 1.35rem;
  }

  .stat-label {
    font-size: 0.8125rem;
    line-height: 1.4;
  }

  /* Philosophy steps */
  .philosophy-steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* RIDET strip */
  .ridet-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  /* Form and CTA panels */
  .cta-info-panel,
  .form-body {
    padding: 1.75rem 1.15rem !important;
  }

  /* iOS safe font-size 16px to prevent unwanted automatic viewport zooming */
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px;
    padding: 0.75rem 0.85rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Table Hint */
  .table-scroll-hint {
    display: block;
  }

  .table-responsive {
    padding: 0.75rem 0.5rem;
  }

  .table-responsive th,
  .table-responsive td,
  div[style*="overflow-x: auto"] th,
  div[style*="overflow-x: auto"] td {
    padding: 0.75rem 0.5rem !important;
    font-size: 0.8125rem !important;
  }

  /* WhatsApp Float */
  .whatsapp-float {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 48px;
    height: 48px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  .whatsapp-tooltip {
    display: none !important;
  }
}

/* Standard Mobile Devices (<= 640px) */
@media (max-width: 640px) {
  .site-header {
    height: 62px;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
  }

  .brand-logo-img {
    width: 36px;
    height: 36px;
  }

  .brand-logo-box {
    width: 36px;
    height: 36px;
  }

  .brand-logo-text .title {
    font-size: 1.05rem;
  }

  .brand-logo-text .subtitle {
    font-size: 0.6rem;
  }

  .mobile-toggle {
    width: 38px;
    height: 38px;
  }

  /* Buttons on mobile */
  .btn {
    white-space: normal;
    text-align: center;
  }

  .btn-lg {
    padding: 0.8rem 1.4rem;
    font-size: 0.95rem;
  }

  .btn-sm {
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  /* Hero badges row stacked neatly on mobile */
  .hero-badges-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding-top: 1.25rem;
  }

  .hero-badge-item {
    width: 100%;
    font-size: 0.8125rem;
  }

  /* Course Card Top Header Stacking */
  article.service-card > div:first-child {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }

  article.service-card > div:first-child .btn {
    width: 100%;
  }

  /* Timeline */
  .approach-timeline {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .timeline-icon-bubble {
    width: 64px;
    height: 64px;
    margin-bottom: 0.85rem;
  }

  .timeline-icon-bubble svg {
    width: 28px;
    height: 28px;
  }

  /* Footer Bottom */
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  /* Modal Dialog */
  .modal-box {
    padding: 1.5rem 1rem;
    border-radius: var(--radius-lg);
  }

  /* Toast notification */
  .toast-notice {
    top: auto;
    bottom: 74px;
    right: 0.75rem;
    left: 0.75rem;
    max-width: calc(100vw - 1.5rem);
    justify-content: center;
    text-align: center;
    transform: translateY(20px);
  }

  .toast-notice.show {
    transform: translateY(0);
  }

  /* Newsletter Form */
  form[style*="display: flex"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  form[style*="display: flex"] .form-input,
  form[style*="display: flex"] .btn {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* Compact Mobile Devices (<= 480px) */
@media (max-width: 480px) {
  .site-header {
    height: 60px;
  }

  .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .brand-logo-box {
    width: 34px;
    height: 34px;
  }

  .brand-logo-img {
    width: 34px;
    height: 34px;
  }

  .brand-logo-text .title {
    font-size: 1rem;
  }

  .brand-logo-text .subtitle {
    font-size: 0.58rem;
  }

  .brand-logo-wrap {
    gap: 0.45rem;
  }

  .mobile-toggle {
    width: 36px;
    height: 36px;
  }

  .faculty-grid {
    grid-template-columns: 1fr !important;
  }

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

  .stat-number {
    font-size: 1.6rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }
}

/* Small / Narrow Viewports (<= 380px, e.g. iPhone SE, iPhone 5, Galaxy Z Fold) */
@media (max-width: 380px) {
  .container {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .brand-logo-img {
    width: 30px;
    height: 30px;
  }

  .brand-logo-box {
    width: 30px;
    height: 30px;
  }

  .brand-logo-text .title {
    font-size: 0.92rem;
  }

  .brand-logo-text .subtitle {
    display: none;
  }

  .btn {
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .cta-info-panel,
  .form-body,
  .service-card,
  article.service-card,
  .usp-card,
  .vm-card {
    padding: 1.15rem 0.75rem !important;
  }

  h1, .hero-headline {
    font-size: clamp(1.3rem, 5.8vw, 1.6rem) !important;
  }

  h2, .section-title {
    font-size: clamp(1.15rem, 4.8vw, 1.35rem) !important;
  }

  h3 {
    font-size: clamp(0.98rem, 3.8vw, 1.15rem) !important;
  }
}
