/* ============================================================
   KENIL HEALTHCARE — Design System & Landing Page Styles
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Colors */
  --color-bg:            #FFFFFF;
  --color-bg-alt:        #F4F7F8;
  --color-white:         #FFFFFF;
  --color-primary:       #54B0B7;
  --color-primary-dark:  #438C92;
  --color-primary-light: #EAF5F6;
  --color-accent:        #54B0B7;
  --color-accent-hover:  #438C92;
  --color-text-dark:     #2C3033;
  --color-text-body:     #555D63;
  --color-text-muted:    #89939B;
  --color-text-on-primary: #FFFFFF;
  --color-border:        #E2E8EC;


  /* Typography */
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', 'Georgia', serif;

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-2xl:  6rem;
  --space-3xl:  8rem;

  /* Layout */
  --max-width:  1280px;
  --nav-height: 60px;

  /* Radius */
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --radius-pill: 999px;

  /* Transitions */
  --transition-fast:   0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Subtle noise texture overlay on the body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* --- Utility: Section Spacing --- */
section {
  padding: var(--space-3xl) 0;
}

/* --- Utility: Text Styles --- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.accent-text {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-accent);
}

.section-headline {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-dark);
  margin-bottom: var(--space-lg);
}

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   SECTION 1: NAVIGATION BAR
   ============================================================ */
.navbar {
  position: fixed;
  top: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: auto;
  max-width: 720px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.navbar.navbar-hidden {
  transform: translate(-50%, -150%) !important;
}

.navbar-inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: 0.6rem 0.6rem 0.6rem 1.5rem;
  background: rgba(84, 176, 183, 0.35); /* Translucent Blue/Teal Accent */
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(84, 176, 183, 0.15);
}

.navbar-logo {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.navbar-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.navbar-links a {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--color-white);
}

.navbar-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.3rem;
  background-color: var(--color-white);
  color: var(--color-primary) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  border-radius: var(--radius-pill);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

.navbar-cta:hover {
  background-color: var(--color-bg-alt);
  transform: scale(1.03);
}

/* Mobile hamburger */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-white);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ============================================================
   SECTION 1: HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30, 40, 45, 0.3) 0%,
    rgba(30, 40, 45, 0.25) 40%,
    rgba(30, 40, 45, 0.55) 70%,
    rgba(30, 40, 45, 0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  padding-bottom: var(--space-3xl);
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-md);
}

.hero-headline {
  font-family: var(--font-sans);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  max-width: 700px;
}

.hero-headline .accent-text {
  display: block;
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 4px 20px rgba(84, 176, 183, 0.3);
}

.hero-btn:hover {
  background-color: var(--color-bg-alt);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(84, 176, 183, 0.4);
}

.hero-btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.hero-btn:hover svg {
  transform: translateX(4px);
}

/* ============================================================
   SECTION 2: CORE PRINCIPLES
   ============================================================ */
.core-principles {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.core-principles .section-headline {
  max-width: 500px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.principle-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  border: 1px solid var(--color-border);
}

.principle-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.principle-card.card-dark {
  background: var(--color-primary);
  border-color: transparent;
  transform: translateY(-20px);
}

.principle-card.card-dark:hover {
  transform: translateY(-26px);
  box-shadow: 0 24px 60px rgba(84, 176, 183, 0.25);
}

.principle-card.card-dark .card-eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.principle-card.card-dark .card-title {
  color: var(--color-white);
}

.principle-card.card-dark .card-subtitle {
  color: var(--color-white);
  opacity: 0.9;
}

.principle-card.card-dark .card-text {
  color: var(--color-text-on-primary);
}

.card-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.card-icon {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-text-dark);
  letter-spacing: -0.02em;
}

.principle-card.card-dark .card-icon {
  color: var(--color-white);
}

.card-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.3;
}

.card-subtitle {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

/* ============================================================
   SECTION 3: HIGHLIGHT BANNER
   ============================================================ */
.highlight-banner {
  padding: var(--space-lg) 0;
}

.highlight-banner-inner {
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-2xl);
  position: relative;
  overflow: hidden;
}

/* Subtle decorative glow */
.highlight-banner-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(84, 176, 183, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.highlight-small {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--space-lg);
  font-weight: 400;
}

.highlight-headline {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-white);
  max-width: 750px;
}

.highlight-headline .accent-text {
  font-size: inherit;
  color: var(--color-text-dark);
}

/* ============================================================
   SECTION 4: ABOUT & STATS
   ============================================================ */
.about-stats {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.about-card {
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about-card.card-white {
  background: var(--color-white);
  border: 1px solid var(--color-border);
}

.about-card.card-green {
  background: var(--color-primary);
}

.about-card.card-green .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.about-card.card-green .about-card-title {
  color: var(--color-white);
}

.about-card.card-green .about-card-body {
  color: var(--color-text-on-primary);
}

.about-card-title {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.2;
}

.about-card-body {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--color-text-body);
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.stat-item {
  text-align: center;
  padding: var(--space-lg) var(--space-sm);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
}

.stat-number {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* ============================================================
   SECTION 5: GLOBAL REACH
   ============================================================ */
.global-reach {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  text-align: center;
}

.global-reach .section-headline {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.global-subtitle {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-body);
  max-width: 560px;
  margin: 0 auto var(--space-xl);
}

.global-map-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.global-map-container img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

/* Animated Map Overlay */
.map-overlay-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.map-svg-overlay {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.map-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 5;
  pointer-events: auto;
}
.origin-dot {
  width: 16px;
  height: 16px;
  background: var(--color-accent);
  border: 3px solid var(--color-white);
  box-shadow: 0 2px 8px rgba(84, 176, 183, 0.4);
}
.dest-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border: 2px solid var(--color-white);
  box-shadow: 0 1px 4px rgba(84, 176, 183, 0.3);
  transition: transform 0.3s ease, background 0.3s ease;
}
.dest-dot:hover {
  transform: translate(-50%, -50%) scale(1.5);
  background: var(--color-primary-dark);
  cursor: pointer;
}
.pulse-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; height: 100%;
  border-radius: 50%;
  animation: pulse-pin 2s infinite;
}
.flight-path {
  animation: dash-move 1.5s linear infinite;
}

@keyframes dash-move {
  from { stroke-dashoffset: 30; }
  to { stroke-dashoffset: 0; }
}

@keyframes pulse-pin {
  0%, 100% { box-shadow: 0 0 0 0 rgba(84, 176, 183, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(84, 176, 183, 0); }
}

/* ============================================================
   SECTION 6: FOOTER
   ============================================================ */
.footer {
  background: var(--color-primary);
  padding: var(--space-3xl) 0 0;
  margin-top: var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.footer-brand-logo {
  margin-bottom: var(--space-md);
  display: inline-block;
}

.footer-brand-logo img {
  height: 20px;
  width: auto;
  display: block;
}

.footer-brand-text {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(44, 48, 51, 0.8);
  max-width: 320px;
  margin-bottom: var(--space-lg);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(44, 48, 51, 0.75);
}

.footer-status-dot {
  width: 8px;
  height: 8px;
  background: #4ADE80;
  border-radius: 50%;
  animation: status-blink 2.5s infinite;
}

@keyframes status-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: var(--space-md);
  letter-spacing: 0.03em;
}

.footer-col-links a {
  display: block;
  font-size: 0.88rem;
  color: rgba(44, 48, 51, 0.75);
  padding: 0.35rem 0;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-col-links a:hover {
  color: var(--color-text-dark);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.78rem;
  color: rgba(44, 48, 51, 0.65);
}

.footer-bottom-links a {
  color: rgba(44, 48, 51, 0.65);
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--color-text-dark);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .principle-card.card-dark {
    transform: translateY(0);
  }

  .principle-card.card-dark:hover {
    transform: translateY(-6px);
  }

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

@media (max-width: 768px) {
  :root {
    --space-3xl: 5rem;
    --space-2xl: 3.5rem;
  }

  /* Navbar mobile */
  .navbar {
    top: var(--space-sm);
    width: calc(100% - 2rem);
    max-width: none;
    left: 50%;
  }

  .navbar-links {
    display: none;
  }

  .navbar-toggle {
    display: block;
  }

  .navbar-inner {
    justify-content: space-between;
  }

  .navbar.mobile-open .navbar-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: rgba(84, 176, 183, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    gap: var(--space-xs);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .navbar.mobile-open .navbar-links a {
    padding: 0.6rem;
    text-align: center;
  }

  /* Hero */
  .hero-headline {
    max-width: 100%;
  }

  /* Principles */
  .principles-grid {
    grid-template-columns: 1fr;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
  }

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

  /* Highlight */
  .highlight-banner-inner {
    padding: var(--space-2xl) var(--space-lg);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .hero-headline {
    font-size: 2.4rem;
  }

  .hero-headline .accent-text {
    font-size: 2.4rem;
  }
}

/* ============================================================
   SECTION 8: MODALS & INTERACTIVE
   ============================================================ */

/* Clickable cards */
.clickable-card {
  cursor: pointer;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}
.clickable-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}
.card-action {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}
.clickable-card:hover .card-action {
  opacity: 1;
  transform: translateX(0);
}

/* Modal */
.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cert-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.cert-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}
.cert-modal-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  background: var(--color-white);
  padding: 15px;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cert-modal.active .cert-modal-content {
  transform: scale(1);
}
.cert-modal-content img {
  max-width: 100%;
  max-height: calc(90vh - 30px);
  display: block;
  object-fit: contain;
  border-radius: 4px;
}
.cert-modal-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: var(--color-white);
  border: 3px solid var(--color-white);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: background 0.2s ease, transform 0.2s ease;
}
.cert-modal-close:hover {
  background: var(--color-primary-dark);
  transform: scale(1.1);
}

/* Process Timeline Styles */
.process-modal-content {
  width: 90vw;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  background: var(--color-white);
}
.process-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-primary-dark);
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.2;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  padding-left: 10px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 15px; 
  bottom: 15px; 
  left: 26px; /* center of the 32px number circle */
  width: 2px;
  background: rgba(84, 176, 183, 0.3); /* teal light */
  z-index: 0;
}
.timeline-step {
  display: flex;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}
.timeline-number {
  width: 32px; 
  height: 32px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-size: 0.85rem; 
  font-weight: 700;
  margin-right: 20px;
  flex-shrink: 0;
  box-shadow: 0 0 0 5px var(--color-white);
}
.timeline-content {
  background: #f8fcfc;
  border: 1px solid rgba(84, 176, 183, 0.15);
  padding: 15px 20px;
  border-radius: 8px;
  flex-grow: 1;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.timeline-main-item {
  font-weight: 600;
  color: var(--color-primary-dark);
  font-size: 1.05rem;
}
.timeline-sublist {
  margin-top: 10px;
  padding-left: 20px;
  list-style: none;
  border-left: 2px solid rgba(84, 176, 183, 0.2);
}
.timeline-sublist li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 8px;
  color: var(--color-text-dark);
  font-size: 0.95rem;
}
.timeline-sublist li:last-child {
  margin-bottom: 0;
}
.timeline-sublist li::before {
  content: '';
  position: absolute;
  left: 0; 
  top: 10px;
  width: 8px; 
  height: 2px;
  background: rgba(84, 176, 183, 0.4);
}
