/* =========================================
   Base Styles & Variables
========================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Sans:wght@300;400;500&display=swap');


:root {
    --primary-color: #0056b3;
    --primary-hover: #040505;
    --text-dark: #1a1a1a;
    --text-muted: #666;
    --bg-light: #f8faff;
    --white: #ffffff;
    --border-radius: 12px;
    --transition: 0.3s ease;


     /* Section-local extras — add these to your :root */
  --gold:         #c29525;
  --gold-bg:      #fdf8ee;
  --gold-border:  rgba(194, 149, 37, 0.22);
  --p-soft:       rgba(0, 86, 179, 0.055);
  --p-mid:        rgba(0, 86, 179, 0.11);
  --shadow-sm:    0 4px 18px rgba(0, 86, 179, 0.06);
  --shadow-md:    0 10px 36px rgba(0, 86, 179, 0.10);
  --shadow-hover: 0 18px 50px rgba(0, 86, 179, 0.14);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }


/* ==========================================================
   Universal Scroll Reveal System
========================================================== */

/* The starting state for ALL reveal elements */
[data-reveal] {
    opacity: 0;
    transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1), filter 1s ease;
}

/* The final state, triggered by JavaScript adding the 'in-view' class */
[data-reveal].in-view {
    opacity: 1;
    transform: none; /* Resets any transform to its default */
    filter: none;    /* Resets any filter to its default */
}

/* Animation Style 1: Blur & Slide Up (For Text) */
[data-reveal="blur-up"] {
    transform: translateY(40px);
    filter: blur(10px);
}

[data-reveal="mask-up"] {
    /* Creates a mask that hides 100% of the element from the top */
    clip-path: inset(100% 0 0 0);
    /* We add a subtle slide-up effect as well for more depth */
    transform: translateY(20px);
}

/* Animation Style 2: Cinematic Scale (For Images) */
[data-reveal="scale-in"] {
    transform: scale(1.1);
}

/* Animation Style 3: Pop Up (For Badges & Logos) */
[data-reveal="pop-up"] {
    transform: translateY(30px) scale(0.9);
    /* A slightly bouncy transition */
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =========================================
   Layout & Utility Classes
========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 50px; }
.align-top { align-items: flex-start; }

.full-width { width: 100%; }
.mt-10 { margin-top: 10px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }

/* =========================================
   Typography
========================================= */
h1 { font-size: clamp(2.5rem, 5vw, 3rem); line-height: 1.2; margin-bottom: 20px; }
h1 span { color: var(--primary-color); }
h2 { font-size: clamp(1.8rem, 4vw, 2.2rem); margin-bottom: 15px; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
h6 { color: var(--primary-color); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; font-weight: 600; }
p { color: var(--text-muted); margin-bottom: 20px; }

/* =========================================
   Buttons & General Cards
========================================= */
.primary-button { 
    display: inline-block; 
    background: var(--primary-color); 
    color: var(--white); 
    padding: 12px 24px; 
    border-radius: 8px; 
    font-weight: 500; 
    transition: var(--transition); 
    border: none; 
    cursor: pointer; 
    text-align: center; 
}
.primary-button:hover { background: var(--primary-hover); transform: translateY(-2px); }

.primary-button.outline { background: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); }
.primary-button.outline:hover { background: var(--primary-color); color: var(--white); }

.card { 
    background: var(--white); 
    border-radius: var(--border-radius); 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    transition: var(--transition); 
}
.card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.08); }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-content { padding: 25px; }
.card-content h4 { margin-bottom: 10px; font-size: 1.25rem; }

/* =========================================
   Navbar
========================================= */
:root {
  --nav-height: 90px;
  --nav-height-shrunk: 70px;
  --drawer-width: 320px;
  --primary-color: #0056b3;
  --primary-hover: #004494;
  --text-dark: #1a1a1a;
  --text-muted: #666;
  --white: #ffffff;
  --bg-light: #f8faff;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  border-bottom: 1px solid rgba(0, 86, 179, 0.07);
  display: flex;
  flex-direction: column;
  transition: height var(--transition), background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  height: var(--nav-height-shrunk);
  box-shadow: 0 10px 30px rgba(0, 86, 179, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  width: 100%;
}

/* ── BRAND / LOGO ── */
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  transition: font-size var(--transition);
}

.brand-prefix {
  color: var(--primary-color);
  font-style: italic;
  font-weight: 400;
  margin-right: 4px;
}

.navbar.scrolled .brand-text { font-size: 1.15rem; }

/* ── DESKTOP NAV MENU ── */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── NAV LINKS ── */
.nav-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 15px;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition);
}

.nl-num {
  font-family: 'Inter', sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--primary-color);
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.2s ease;
}

.nl-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1;
}

.nav-link:hover .nl-num, 
.nav-link.active .nl-num { opacity: 1; transform: translateY(0); }
.nav-link:hover .nl-text, 
.nav-link.active .nl-text { color: var(--primary-color); }

/* Underline Animation */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 30%; height: 2px;
  background: var(--primary-color);
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { transform: translateX(-50%) scaleX(1); }

/* ── HAMBURGER TOGGLE ── */
.menu-toggle {
  display: none; /* Hidden on Desktop */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: rgba(0, 86, 179, 0.05);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  z-index: 10002;
  padding: 0;
}

.bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: all 0.35s ease;
}

/* Morphing X */
.menu-toggle.open .bar-1 { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open .bar-2 { opacity: 0; width: 0; }
.menu-toggle.open .bar-3 { transform: translateY(-7px) rotate(-45deg); }

/* ── PROGRESS BAR ── */
.scroll-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--primary-color), #0ea5e9);
  z-index: 10;
}

/* ── MOBILE OVERLAY ── */
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 22, 40, 0.45);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.nav-overlay.active { opacity: 1; pointer-events: all; }

/* ══════════════════════════════════════════════════════════
   MOBILE SLIDE-IN DRAWER (900px Breakpoint)
══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  
  /* 1. THE HAMBURGER BUTTON (Fixed the blue box and squashed lines) */
  #menu-toggle {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important; /* Spaces the 3 lines evenly */
    width: 32px !important;
    height: 24px !important;
    background: transparent !important; /* Kills the ugly blue box */
    border: none !important;
    padding: 0 !important;
    z-index: 99999 !important; /* Absolute highest layer so it never hides */
    cursor: pointer;
  }

  #menu-toggle .bar {
    display: block !important;
    width: 100% !important;
    height: 3px !important;
    background-color: var(--primary-color) !important;
    border-radius: 3px !important;
    transition: all 0.3s ease !important;
    transform-origin: center !important;
  }

  /* Morph to "X" when clicked */
  #menu-toggle.open .bar:nth-child(1) { transform: translateY(10.5px) rotate(45deg) !important; }
  #menu-toggle.open .bar:nth-child(2) { opacity: 0 !important; }
  #menu-toggle.open .bar:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg) !important; }

  /* 2. THE SLIDE-OUT MENU (Fixed the disappearing act) */
   #nav-menu {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important; /* Forces it to the right edge */
    
    /* Responsive sizing: 300px wide, but never bigger than 80% of phone screen */
    width: 300px !important; 
    max-width: 80vw !important; 
    height: 100vh !important;
    background: #ffffff !important;
    
    /* Sits just below the toggle button */
    z-index: 99998 !important; 
    
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important; /* Aligns links to the left */
    
    /* 100px top padding leaves space for your 'X' button */
    padding: 100px 30px 30px 30px !important; 
    gap: 15px !important;
    
    /* Start 100% off-screen to the right */
    transform: translateX(100%) !important; 
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    
    /* A deep shadow since there is no overlay to separate it from content */
    box-shadow: -15px 0 50px rgba(0,0,0,0.15) !important;
    box-sizing: border-box !important; /* Stops padding from pushing text off-screen */
  }


  /* This pulls it onto the screen when you click */
  #nav-menu.open {
    transform: translateX(0) !important;
  }

  /* Clean up the links inside the mobile menu */
  .nav-link {
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    color: var(--text-dark) !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    width: 100% !important;
    display: block !important;
    text-align: left !important;
  }
}

/* 3. THE BLUR OVERLAY (Fixed layer order) */
#nav-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0,0,0,0.4) !important;
   backdrop-filter: blur(6px) !important; 
  z-index: 99997 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease !important;
}

#nav-overlay.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* ══════════════════════════════════════════════════════════
   SMALL SCREENS (480px and 400px)
══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .navbar { height: 75px; }
  .brand-text { font-size: 1.1rem; }
  .navbar-container { padding: 0 18px; }
  .menu-toggle { width: 40px; height: 40px; }
  .nav-menu { width: 100%; max-width: 100vw; }
}

@media (max-width: 380px) {
  .brand-text { font-size: 1rem; }
}

/* =========================================
   Sections Base
========================================= */
.section { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.section-title { margin-bottom: 40px; }
.section-title.center { text-align: center; max-width: 600px; margin-left: auto; margin-right: auto; }

/* =========================================
   Hero Section
========================================= */
/* =========================================
   Base Styles & Variables (From your code)
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Sans:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #0056b3;
    --primary-hover: #004494;
    --text-dark: #1a1a1a;
    --text-muted: #666;
    --bg-light: #f8faff;
    --white: #ffffff;
    --border-radius: 12px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }
body { color: var(--text-dark); line-height: 1.6; background: var(--white); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 50px; }
.align-top { align-items: flex-start; }
.full-width { width: 100%; }
.mt-10 { margin-top: 10px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }

h1 { font-size: clamp(2.5rem, 5vw, 3rem); line-height: 1.2; margin-bottom: 20px; }
h1 span { color: var(--primary-color); }
h2 { font-size: clamp(1.8rem, 4vw, 2.2rem); margin-bottom: 15px; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
h6 { color: var(--primary-color); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; font-weight: 600; }
p { color: var(--text-muted); margin-bottom: 20px; }

.primary-button { 
    display: inline-block; background: var(--primary-color); color: var(--white); 
    padding: 12px 24px; border-radius: 8px; font-weight: 500; transition: var(--transition); 
    border: none; cursor: pointer; text-align: center; 
}
.primary-button:hover { background: var(--primary-hover); transform: translateY(-2px); }
.primary-button.outline { background: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); }
.primary-button.outline:hover { background: var(--primary-color); color: var(--white); }

.card { background: var(--white); border-radius: var(--border-radius); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: var(--transition); }
.card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.08); }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-content { padding: 25px; }
.card-content h4 { margin-bottom: 10px; font-size: 1.25rem; }


/* ==========================================================
   Hero Section Styles (Integrated)
========================================================== */

.oh-section {
  position: relative;
  overflow: visible !important;
  padding: 100px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--white); 
}

/* Subtle blueprint mesh background */
.oh-bg-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: 
    linear-gradient(rgba(0, 86, 179, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 86, 179, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.oh-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  overflow: visible !important;
}

.oh-left {
  flex: 1;
  max-width: 540px;
}

.hero-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  padding: 6px 20px 6px 6px;
  border-radius: 50px;
  border: 1px solid rgba(0, 86, 179, 0.08);
  box-shadow: 0 4px 20px rgba(0, 86, 179, 0.04);
  width: fit-content;
}
.ha-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.ha-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.ha-info {
  display: flex;
  flex-direction: column;
}
.ha-name {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1.05rem;
  line-height: 1.2;
}
.ha-cred {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.oh-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 4.5vw, 4rem);
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 24px;
  font-weight: 700;
}
.oh-title em {
  font-style: italic;
  color: var(--primary-color);
}

.oh-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 480px;
}

.oh-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 56px;
}

.oh-btn-book {
  display: inline-block; 
  background: var(--primary-color); 
  color: var(--white); 
  padding: 15px 32px; 
  border-radius: 50px; 
  font-family: 'DM Sans', sans-serif;
  font-weight: 600; 
  font-size: 0.95rem;
  box-shadow: 0 10px 25px rgba(0, 86, 179, 0.2);
  transition: var(--transition);
}
.oh-btn-book:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 86, 179, 0.3);
  color: var(--white);
}

.oh-btn-learn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-color);
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.oh-arr { transition: transform 0.3s ease; }
.oh-btn-learn:hover .oh-arr { transform: translateX(6px); }

.oh-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}
.oh-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.oh-snum {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}
.oh-slbl {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.oh-sdiv {
  width: 1px;
  height: 40px;
  background: rgba(0, 86, 179, 0.15);
}

.oh-section, 
.oh-container, 
.oh-right, 
.oh-skel-wrapper {
  overflow: visible !important; 
  clip-path: none !important;
}


.oh-right {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 650px;
overflow: visible !important;
    z-index: 10;
}

.oh-photo-card {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 240px;
  height: 300px;
  background: var(--white);
  padding: 8px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 86, 179, 0.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.03);
  z-index: 20;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease;
}
.oh-photo-card:hover {
  transform: translateY(-5px);
}
.oh-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.oh-photo-info {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-family: 'DM Sans', sans-serif;
}
.oh-photo-info strong {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dark);
  font-weight: 700;
}
.oh-photo-info span {
  display: block;
  font-size: 0.65rem;
  color: var(--primary-color);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.oh-skel-wrapper {
  position: relative;
  width: 420px;
  height: 560px;
  z-index: 10;
  overflow: visible !important;
  /* Subtle dot grid pattern — desktop only */
  background-image: radial-gradient(circle, rgba(0,86,179,0.09) 1px, transparent 1px);
  background-size: 22px 22px;
}

.oh-skel-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 15px 30px rgba(0, 86, 179, 0.08));
  z-index: 10;
}

/* ── Interactive Body Map ── */
.body-map-inner {
  /* Fill the wrapper's full height — portrait image is ~2:5 wide:tall */
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end; /* anchor figure to bottom of wrapper */
  justify-content: center;
  z-index: 2; /* sits BELOW overlay SVG (250) and diag card (300) */
}

.body-map-img {
  /* Let the image decide its own width based on height; never overflow */
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  display: block;
  filter: drop-shadow(0 8px 32px rgba(0, 86, 179, 0.12));
}

.body-figure {
  opacity: 0;
  transform: translateY(16px);
  animation: bodyFigureIn 0.9s cubic-bezier(0.2, 1, 0.3, 1) 0.2s forwards;
}
@keyframes bodyFigureIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Softer CT scan on body map — slightly faster for the taller figure */
.oh-skel-wrapper:has(.body-map-inner) .skel-scanner .skel-scan-line {
  opacity: 0.4;
  animation-duration: 5s;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HOTSPOT DOTS — Joint Pins on Body Map
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* body-map-inner already position:absolute, we need relative for dots */
.body-map-inner {
  /* override to allow dots */
  position: absolute !important;
  overflow: visible !important;
}

.hs-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 20;
}

/* Solid inner dot */
.hs-dot::before {
  content: '';
  position: absolute;
  inset: 3px;
  background: #0056b3;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.9);
  transition: transform 0.25s ease, background 0.25s ease;
}

/* Animated outer ring */
.hs-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(0, 86, 179, 0.55);
  animation: hs-pulse 2.2s ease-out infinite;
}

.hs-dot:nth-child(2) .hs-ring { animation-delay: 0.4s; }
.hs-dot:nth-child(3) .hs-ring { animation-delay: 0.8s; }
.hs-dot:nth-child(4) .hs-ring { animation-delay: 1.2s; }
.hs-dot:nth-child(5) .hs-ring { animation-delay: 1.6s; }
.hs-dot:nth-child(6) .hs-ring { animation-delay: 2.0s; }
.hs-dot:nth-child(7) .hs-ring { animation-delay: 2.4s; }

@keyframes hs-pulse {
  0%   { transform: scale(1);   opacity: 0.8; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

.hs-dot:hover::before,
.hs-dot.active::before {
  transform: scale(1.3);
  background: #003f8a;
}

/* ── SVG Connectors (Desktop Only) ── */
.hs-connectors {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 15; /* Above image, below dots and labels */
}
.hs-conn-path {
  fill: none;
  stroke: rgba(0, 86, 179, 0.35);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  stroke-linecap: round;
  transition: stroke 0.3s ease;
}
.hs-dot.active ~ .hs-connectors .hs-conn-path {
  stroke: rgba(0, 86, 179, 0.1); /* Dim inactive lines slightly on hover */
}

/* ── Floating Side Labels (Desktop) ── */
.hs-label {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 86, 179, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  z-index: 30;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.hsl-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.hsl-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1a1a2e;
}

/* Align left labels to right, right labels to left */
.hs-label.left-side {
  text-align: right;
  align-items: flex-end;
}
.hs-label.right-side {
  text-align: left;
  align-items: flex-start;
}

/* Hover state enhancement */
.hs-dot.active + .hs-label,
.hs-label.active {
  opacity: 1;
  visibility: visible;
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 86, 179, 0.3);
  box-shadow: 0 8px 24px rgba(0, 86, 179, 0.12);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}


/* ── Mobile Slide-up Card ── */
.hs-mobile-card {
  display: none; /* Hidden on desktop */
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Responsive Layout Overrides
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (max-width: 900px) {
  /* Hide desktop connectors and labels on tablet/mobile */
  .hs-connectors,
  .hs-label {
    display: none !important;
  }
  
  /* Show and style the slide-up card */
  .hs-mobile-card {
    display: flex;
    position: absolute;
    bottom: 20px;
    left: 5%;
    right: 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 86, 179, 0.15);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 12px 40px rgba(0, 86, 179, 0.15);
    z-index: 100;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .hs-mobile-card.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  
  .hsmc-close {
    position: absolute;
    top: 8px; right: 8px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
  }
  .hsmc-content {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
  }
  .hsmc-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(0, 86, 179, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
  }
  .hsmc-text {
    display: flex;
    flex-direction: column;
  }
  .hsmc-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
  }
  .hsmc-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.4;
  }
}




.oh-glow-bg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(0, 86, 179, 0.04) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SKELETON DESKTOP ENHANCEMENTS v2
   CT Scanner + Floating Achievement Chips
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── Corner bracket frame (medical scan viewport) ── */
.skel-frame {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 4;
}
.skel-frame span {
  position: absolute;
  width: 22px; height: 22px;
  opacity: 0;
  animation: chip-float-in 0.5s ease 1.3s forwards;
}
/* Top-left */
.sf-tl { top: 8px; left: 8px;
  border-top: 2px solid rgba(0,86,179,0.35);
  border-left: 2px solid rgba(0,86,179,0.35);
  border-radius: 3px 0 0 0;
}
/* Top-right */
.sf-tr { top: 8px; right: 8px;
  border-top: 2px solid rgba(0,86,179,0.35);
  border-right: 2px solid rgba(0,86,179,0.35);
  border-radius: 0 3px 0 0;
}
/* Bottom-left */
.sf-bl { bottom: 8px; left: 8px;
  border-bottom: 2px solid rgba(0,86,179,0.35);
  border-left: 2px solid rgba(0,86,179,0.35);
  border-radius: 0 0 0 3px;
}
/* Bottom-right */
.sf-br { bottom: 8px; right: 8px;
  border-bottom: 2px solid rgba(0,86,179,0.35);
  border-right: 2px solid rgba(0,86,179,0.35);
  border-radius: 0 0 3px 0;
}

/* ── ECG Pulse line at bottom of wrapper ── */
.skel-ecg {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 40px;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  animation: chip-float-in 0.7s ease 3.5s forwards;
}
.skel-ecg svg {
  width: 100%;
  height: 100%;
}
.ecg-line {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: ecg-draw 1.8s ease 3.5s forwards, ecg-pulse 2.8s ease-in-out 5.5s infinite;
}
@keyframes ecg-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes ecg-pulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

/* CT Scanner container — clipped to skel area */
.skel-scanner {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
  border-radius: 4px;
}

/* The glowing scan line itself */
.skel-scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 86, 179, 0.15) 15%,
    rgba(0, 120, 255, 0.55) 40%,
    rgba(100, 180, 255, 0.9) 50%,
    rgba(0, 120, 255, 0.55) 60%,
    rgba(0, 86, 179, 0.15) 85%,
    transparent 100%
  );
  box-shadow:
    0 0 12px 4px rgba(0, 120, 255, 0.25),
    0 0 40px 12px rgba(0, 86, 179, 0.1);
  animation: skel-scan 4.5s cubic-bezier(0.4, 0, 0.6, 1) infinite 3.2s;
  top: 0;
  opacity: 0; /* Keep hidden before animation delay starts */
}

@keyframes skel-scan {
  0%   { top: 0%;   opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ── Floating Achievement Chips ── */
.skel-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(0, 86, 179, 0.12);
  border-radius: 14px;
  box-shadow:
    0 4px 24px rgba(0, 86, 179, 0.08),
    0 1px 4px rgba(0,0,0,0.04);
  pointer-events: none;
  z-index: 8;
  opacity: 0;
  animation: chip-float-in 0.6s ease forwards;
  white-space: nowrap;
}

/* Chip positions — placed in the white space around skeleton */
.skel-chip-1 { top: 8%;   left: -155px; animation-delay: 3.0s; animation-name: chip-float-in, chip-bob-1; }
.skel-chip-2 { top: 28%;  left: -165px; animation-delay: 3.3s; animation-name: chip-float-in, chip-bob-2; }
.skel-chip-3 { bottom: 32%; right: -155px; animation-delay: 3.6s; animation-name: chip-float-in, chip-bob-3; }
.skel-chip-4 { bottom: 10%; right: -165px; animation-delay: 3.9s; animation-name: chip-float-in, chip-bob-4; }

@keyframes chip-float-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* Staggered perpetual bob animations */
@keyframes chip-bob-1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
@keyframes chip-bob-2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes chip-bob-3 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }
@keyframes chip-bob-4 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }

.skel-chip-1 { animation: chip-float-in 0.6s ease 3.0s forwards, chip-bob-1 3.8s ease-in-out 3.6s infinite; }
.skel-chip-2 { animation: chip-float-in 0.6s ease 3.3s forwards, chip-bob-2 4.2s ease-in-out 3.9s infinite; }
.skel-chip-3 { animation: chip-float-in 0.6s ease 3.6s forwards, chip-bob-3 3.6s ease-in-out 4.2s infinite; }
.skel-chip-4 { animation: chip-float-in 0.6s ease 3.9s forwards, chip-bob-4 4.5s ease-in-out 4.5s infinite; }

.sc-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0,86,179,0.1), rgba(0,86,179,0.05));
  display: flex; align-items: center; justify-content: center;
  color: #0056b3;
  flex-shrink: 0;
}
.sc-icon svg { width: 16px; height: 16px; }

.sc-text { display: flex; flex-direction: column; }
.sc-val {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0a1628;
  line-height: 1;
}
.sc-lbl {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  color: rgba(0,86,179,0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* Thin connector line between chip and skeleton edge */
.skel-chip-1::after,
.skel-chip-2::after {
  content: '';
  position: absolute;
  right: -28px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,86,179,0.3));
}
.skel-chip-3::after,
.skel-chip-4::after {
  content: '';
  position: absolute;
  left: -28px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 1px;
  background: linear-gradient(270deg, transparent, rgba(0,86,179,0.3));
}

/* Hide chips on mobile/tablet — keep the wrapper clean */
@media (max-width: 900px) {
  .skel-chip,
  .skel-ecg {
    display: none;
  }
  /* Remove dot grid on mobile */
  .oh-skel-wrapper {
    background-image: none;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   JOINT-POINTING SERVICE CYCLER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Diagnosis Card — slides vertically to match active joint */
.svc-diag-card {
  position: absolute;
  /* ── Desktop: card floats to the LEFT of the figure ── */
  left: -230px;
  top: 30%;
  width: 215px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 86, 179, 0.14);
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 0 0;
  box-shadow:
    0 28px 72px rgba(0, 86, 179, 0.16),
    0 8px 28px rgba(0, 0, 0, 0.07),
    6px 0 20px rgba(0, 86, 179, 0.05);
  z-index: 300;
  overflow: hidden;
  opacity: 0;
  /* spring-like vertical slide */
  transition:
    top 0.95s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.5s ease;
}
.svc-diag-card.visible { opacity: 1; }

/* Left accent bar */
.sdc-bar {
  width: 4px;
  min-height: 72px;
  background: linear-gradient(to bottom, #0056b3, #22d3ee);
  border-radius: 18px 0 0 18px;
  flex-shrink: 0;
}

.sdc-body {
  flex: 1;
  padding: 13px 0;
  min-width: 0;
}

.sdc-cat {
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #0056b3;
  opacity: 0.75;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 3px;
}

.sdc-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  font-family: 'DM Sans', sans-serif;
  line-height: 1.3;
}

.sdc-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}

.sdc-prog-wrap {
  flex: 1;
  height: 2px;
  background: rgba(0, 86, 179, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.sdc-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0056b3, #22d3ee);
  border-radius: 2px;
}

.sdc-counter {
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(0, 86, 179, 0.5);
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}
.sdc-counter span:first-child { color: #0056b3; }

/* Service icon box */
.sdc-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 86, 179, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0056b3;
  flex-shrink: 0;
}

/* Content crossfade */
.sdc-cat, .sdc-name, .sdc-icon {
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.svc-txt-out {
  opacity: 0 !important;
  transform: translateY(-5px) !important;
}
.svc-txt-in { animation: svcTxtFadeIn 0.32s ease forwards; }
@keyframes svcTxtFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Dot navigation ── */
.svc-dots-nav {
  position: absolute;
  /* Match card: to the LEFT of the wrapper */
  left: -260px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 350;
  opacity: 0;
  transition: opacity 0.5s ease 0.3s;
}
.svc-dots-nav.visible { opacity: 1; }

.svc-dot-btn {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0, 86, 179, 0.18);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.svc-dot-btn.active {
  background: #0056b3;
  transform: scale(1.7);
  box-shadow: 0 0 8px rgba(0, 86, 179, 0.55);
}

/* ── Overlay SVG (beacon + connector drawn by JS) ── */
.svc-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 250;
}

/* ── Responsive rules for Service Cycler ── */
@media (max-width: 1100px) {
  /* On mid-size screens keep card left but tighten distance */
  .svc-diag-card {
    left: -195px;
    width: 185px;
  }
  .svc-dots-nav {
    left: -220px;
  }
}

@media (max-width: 900px) {
  /* Tablet: card moves BELOW the wrapper, centered */
  .svc-diag-card {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    top: auto !important;
    bottom: -80px;
    width: 88%;
    max-width: 300px;
    padding: 0 12px 0 0;
    /* Flatten the drop shadow for horizontal layout */
    box-shadow:
      0 8px 32px rgba(0, 86, 179, 0.14),
      0 2px 10px rgba(0, 0, 0, 0.06);
  }
  .svc-dots-nav {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    top: auto;
    bottom: -110px;
    flex-direction: row;
    gap: 7px;
  }
}


/* ── float animation still needed for skeleton wrapper ── */
.oh-float { animation: float 6s ease-in-out infinite; }
.oh-float-d { animation: float 6s ease-in-out infinite 1.5s; }


@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.bp {
  fill: none;
  stroke: var(--primary-color);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawBone 2.5s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}
.bp-thin { stroke-width: 0.75; opacity: 0.6; }
.bp-thick { stroke-width: 2.5; }

.implant {
  stroke: #0ea5e9;
  stroke-width: 3;
  filter: drop-shadow(0 0 6px rgba(14, 165, 233, 0.4));
}

@keyframes drawBone { to { stroke-dashoffset: 0; } }

.jd {
  fill: var(--white);
  stroke: var(--primary-color);
  stroke-width: 1.5;
  opacity: 0;
  transform: scale(0.5);
  transform-origin: center;
  animation: popJoint 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.jd-implant {
  fill: #0ea5e9;
  stroke: var(--white);
  stroke-width: 2;
  box-shadow: 0 0 10px #0ea5e9;
}
@keyframes popJoint { to { opacity: 1; transform: scale(1); } }

.oh-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}
.oh-reveal.oh-in {
  opacity: 1;
  transform: translateY(0);
}

/* Photo card reveal — keep layout on left/bottom, only animate Y */
.oh-photo-card.oh-reveal:not(.oh-in) {
  transform: translateY(30px);
}
.oh-photo-card.oh-reveal.oh-in {
  transform: translateY(0);
}
.oh-photo-card.oh-reveal.oh-in:hover {
  transform: translateY(-5px);
}

@media (max-width: 1100px) {
  .oh-container { gap: 24px; }
  .oh-title { font-size: 3.2rem; }
  .oh-right {
    height: 560px;
    min-width: 0;
    flex: 1;
  }
  .oh-skel-wrapper {
    width: 320px;
    height: 480px;
  }
  .oh-photo-card {
    width: 190px;
    height: 240px;
    bottom: 32px;
    left: 0;
  }
  .oh-glow-bg {
    width: 300px;
    height: 420px;
  }
  .oh-tag-1 { top: 16%; right: 0; }
  .oh-tag-2 { bottom: 20%; right: -10px; }
}

@media (max-width: 900px) {
  .oh-section { padding: 80px 0 60px; min-height: auto; }
  @media (min-width: 481px) {
    .oh-section { padding-top: 140px; }
  }
  .oh-container { flex-direction: column; text-align: center; }
  .oh-left { max-width: 100%; display: flex; flex-direction: column; align-items: center; }
  .hero-author { margin: 0 auto 24px; }
  .oh-desc { margin-left: auto; margin-right: auto; }

  /* Centered composition — stack vertically on tablet */
  .oh-right {
    /* Extra height: wrapper (420px) + card below (80px) + dots (30px) = ~530px */
    height: 560px;
    width: min(100%, 440px);
    margin: 32px auto 0;
    flex-shrink: 0;
    /* Ensure children that extend below stay visible */
    overflow: visible !important;
  }
  .oh-skel-wrapper {
    width: 260px;
    height: 420px;
    margin: 0 auto;
    /* Center the wrapper in the right panel */
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
  }
  .oh-photo-card {
    width: 175px;
    height: 220px;
    bottom: 28px;
    left: 0;
  }
  .oh-glow-bg {
    width: 260px;
    height: 380px;
  }
  .oh-tag-1 { top: 12%; right: -8px; }
  .oh-tag-2 { bottom: 16%; right: -8px; }
}

@media (max-width: 768px) {
  .oh-right {
    width: min(100%, 360px);
    /* wrapper(440) + card(80) + dots(30) = 550px */
    height: 560px;
    overflow: visible !important;
  }
  .oh-skel-wrapper {
    width: 220px;
    height: 420px;
    /* Centered within right panel */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  /* Scanner + frame follow full wrapper height */
  .skel-scanner,
  .skel-frame {
    height: 100%;
    bottom: auto;
  }
  .oh-photo-card {
    display: none;
  }
  .oh-tag-1 { top: 10%; right: -12px; }
  .oh-tag-2 { bottom: 14%; right: -12px; }
}

@media (max-width: 600px) {
  .oh-title { font-size: 2.4rem; }
  .oh-cta { flex-direction: column; gap: 16px; width: 100%; }
  .oh-btn-book { width: 100%; text-align: center; }
  
  .oh-stats { flex-wrap: wrap; justify-content: center; gap: 20px; }
  .oh-sdiv { display: none; }
  .oh-stat { width: 40%; align-items: center; text-align: center; }
  
  .oh-right {
    /* wrapper(420) + card(80) + dots(30) + breathing = 550px */
    height: 550px;
    width: 100%;
    max-width: 320px;
    margin: 24px auto 0;
    padding-bottom: 0;
    position: relative;
    overflow: visible !important;
  }

  .oh-glow-bg { display: none; }

  .oh-photo-card { display: none; }

  .oh-skel-wrapper {
    width: 180px;
    height: 400px;
    /* Center in the panel */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-image: none;
  }
  /* Scanner + frame follow full wrapper height on mobile */
  .skel-scanner,
  .skel-frame {
    height: 100%;
    bottom: auto;
  }
  
  /* Make floating tags visible, beautifully scaled and positioned for mobile */
  /* ==========================================================
   Mobile-Specific Shrink for Floating Tags (Cards)
========================================================== */

@media (max-width: 600px) {
    /* 1. Shrink the main card container */
    .oh-tag {
        padding: 6px 10px !important; /* Smaller padding */
        gap: 8px !important;         /* Tighter space between icon and text */
        border-radius: 8px !important; /* Slightly smaller corners */
    }

    /* 2. Shrink the icon box and the icon inside */
    .oh-ticon {
        width: 24px !important;      /* Smaller icon box (was 32px) */
        height: 24px !important;
        border-radius: 6px !important;
    }
    
    .oh-ticon svg {
        width: 14px !important;      /* Smaller icon inside (was 18px) */
        height: 14px !important;
    }

    /* 3. Shrink the text sizes */
    .oh-tlbl {
        font-size: 0.55rem !important; /* Smaller label text */
        letter-spacing: 0.5px !important;
        margin-bottom: 1px !important;
    }

    .oh-tval {
        font-size: 0.72rem !important; /* Smaller main value text */
    }

    /* 4. Remove the connecting lines on mobile to prevent clutter */
    .oh-tag::after {
        display: none !important;
    }

    /* 5. Adjust positions so they stay close to the skeleton on small screens */
    .oh-tag-1 { 
        top: 30% !important; 
        right: 20px !important; 
    }
    
    .oh-tag-2 { 
        bottom: 15% !important; 
        left: -15px !important; /* Swapped to left to balance mobile view */
        right: auto !important;
    }
}
}
/* =========================================
   About Section
========================================= */

.about-section {
    padding: 100px 0;
    /* Soft tinted background to contrast the white hero */
    background-color: var(--bg-light); 
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

/* ── Left: Visual Composition ── */
.about-visuals {
    position: relative;
    padding-right: 40px;
    padding-bottom: 40px;
}

.about-shape {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 60%;
    height: 70%;
    background-color: var(--primary-color);
    opacity: 0.05;
    border-radius: 30px;
    z-index: 0;
}

.about-img-main {
    position: relative;
    z-index: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.about-img-main img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.about-img-inset {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    z-index: 2;
    border-radius: 16px;
    overflow: hidden;
    /* Thick white border to cut it out from the main image */
    border: 8px solid var(--bg-light);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.about-img-inset img {
    width: 100%;
    display: block;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    top: 40px;
    left: -30px;
    background: var(--primary-color);
    color: var(--white);
    padding: 20px 25px;
    border-radius: 16px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 30px rgba(0, 86, 179, 0.3);
    animation: aboutBob 4s ease-in-out infinite;
}
.badge-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}
.badge-text {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@keyframes aboutBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ── Right: Text Content ── */
.about-content h2 {
    color: var(--text-dark);
    margin-bottom: 30px;
}

.about-quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.about-content p {
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.about-list {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--text-dark);
}
.about-list svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    background: rgba(0, 86, 179, 0.1);
    border-radius: 50%;
    padding: 3px;
}

.about-footer {
    display: flex;
    align-items: center;
    gap: 30px;
}
.about-author {
    display: flex;
    flex-direction: column;
}
.author-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
}
.author-cred {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ==========================================================
   Beautiful Scroll Reveal Animations
========================================================== */

/* 1. Text Blur Reveal (Soft, elegant fade up) */
.about-reveal {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(10px); /* The secret to the premium look */
    transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1), filter 1s ease;
}
.about-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* 2. Cinematic Image Reveal (Gentle zoom out) */
.reveal-img {
    opacity: 0;
    transform: scale(1.1) translateY(20px);
    transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-img.in-view {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* 3. Spring Pop Reveal (For badges/buttons) */
.reveal-pop {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    /* Custom cubic-bezier creates a subtle 'bounce' effect */
    transition: opacity 0.8s ease, transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reveal-pop.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ── Responsive Rules ── */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .about-visuals {
        max-width: 500px;
        margin: 0 auto;
        padding-right: 20px;
    }
    .about-badge {
        left: -10px;
        padding: 15px 20px;
    }
    .badge-num { font-size: 2rem; }
    .about-footer { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* =========================================
   Working Experience
========================================= */
.experience-card .date-text { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; display: block; }
.experience-card .badge { background: var(--primary-color); color: var(--white); padding: 5px 12px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; display: inline-block; text-transform: uppercase; letter-spacing: 0.5px; }

/* =========================================
   Education & Awards
========================================= */

/* ==========================================================
   Qualifications Section — qualifications.css
   Matches your existing CSS variable system exactly.
   Add these :root extras to your main stylesheet if needed.
========================================================== */

/* ── CSS Variables (merge into your existing :root) ──────── */
:root {
  /* Your existing variables — already present in your main CSS */
  --primary-color: #0056b3;
  --primary-hover: #004494;
  --text-dark:     #1a1a1a;
  --text-muted:    #666;
  --bg-light:      #f8faff;
  --white:         #ffffff;
  --border-radius: 12px;
  --transition:    0.3s ease;

  /* Section-local extras — add these to your :root */
  --gold:         #c29525;
  --gold-bg:      #fdf8ee;
  --gold-border:  rgba(194, 149, 37, 0.22);
  --p-soft:       rgba(0, 86, 179, 0.055);
  --p-mid:        rgba(0, 86, 179, 0.11);
  --shadow-sm:    0 4px 18px rgba(0, 86, 179, 0.06);
  --shadow-md:    0 10px 36px rgba(0, 86, 179, 0.10);
  --shadow-hover: 0 18px 50px rgba(0, 86, 179, 0.14);
}


/* ── SECTION ─────────────────────────────────────────────── */

.qual-section {
  padding: 110px 0 120px;
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
}

/* Decorative glow — top right */
.qual-section::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 86, 179, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* Decorative glow — bottom left */
.qual-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 149, 37, 0.06) 0%, transparent 70%);
  pointer-events: none;
}


/* ── CONTAINER ───────────────────────────────────────────── */

.q-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}


/* ── SECTION HEADER ──────────────────────────────────────── */

.qual-header {
  margin-bottom: 72px;
  /* Reveal start state */
  opacity: 0;
  transform: translateY(32px);
  filter: blur(6px);
  transition: opacity 0.9s ease,
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.9s ease;
}

.qual-header.in-view {
  opacity: 1;
  transform: none;
  filter: none;
}

.qual-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.eyebrow-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-color);
  opacity: 0.45;
}

.eyebrow-text {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-color);
}

.qual-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-dark);
}

.qual-heading em {
  font-style: italic;
  color: var(--primary-color);
}

.qual-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.qr-bar {
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
  border-radius: 2px;
}

.qr-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary-color);
  opacity: 0.3;
}


/* ── GRID ────────────────────────────────────────────────── */

.qual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Columns now naturally balanced via design elements instead of sticky scroll */
@media (min-width: 901px) {
  .qual-col-right {
    position: relative;
  }
}


/* ── COLUMN LABELS ───────────────────────────────────────── */

.col-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  /* Reveal start state */
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.col-label.in-view {
  opacity: 1;
  transform: none;
}

.cl-num {
  font-family: 'Playfair Display', serif;
  font-size: 0.72rem;
  color: var(--primary-color);
  opacity: 0.65;
  letter-spacing: 0.12em;
}

.cl-text {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cl-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--p-mid), transparent);
}


/* ── EDUCATION TIMELINE ──────────────────────────────────── */

.timeline {
  position: relative;
  padding-left: 28px;
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 0;
  width: 1.5px;
  background: linear-gradient(180deg, var(--primary-color) 0%, rgba(0, 86, 179, 0.1) 100%);
}

.t-item {
  position: relative;
  padding-bottom: 44px;
  /* Reveal start state */
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.t-item.in-view {
  opacity: 1;
  transform: none;
}

.t-item:last-child {
  padding-bottom: 0;
}

/* Diamond marker */
.t-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 7px;
  width: 9px;
  height: 9px;
  background: var(--white);
  border: 2px solid var(--primary-color);
  transform: rotate(45deg);
  transition: background 0.25s, box-shadow 0.25s;
}

.t-item:hover::before {
  background: var(--primary-color);
  box-shadow: 0 0 10px rgba(0, 86, 179, 0.35);
}

.t-year {
  font-size: 0.72rem; /* Increased from 0.63rem */
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

/* Short rule after year */
.t-year::after {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1.5px;
  background: var(--primary-color);
  opacity: 0.28;
}

.t-degree {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem; /* Increased from 1.38rem */
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 6px;
}


.t-institution {
  font-size: 0.9rem; /* Increased from 0.78rem */
  color: var(--text-muted);
  margin-bottom: 4px;
}

.t-note {
  font-size: 0.88rem; /* Increased from 0.76rem */
  color: var(--text-muted);
  font-style: italic;
}

/* Gold Medal Badge */
.medal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: 4px;
  padding: 4px 11px;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 10px;
  font-style: normal;
  font-family: 'DM Sans', sans-serif;
}

.medal-badge svg {
  width: 11px;
  height: 11px;
  fill: var(--gold);
  flex-shrink: 0;
}

/* ── CREATIVE FILLER CARD (Balances asymmetrical columns) ── */
.qual-filler-card {
  margin-top: 16px;
  background: rgba(0, 86, 179, 0.03);
  border: 1px dashed rgba(0, 86, 179, 0.15);
  border-radius: 12px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.qual-filler-card:hover {
  background: rgba(0, 86, 179, 0.05);
  border-color: rgba(0, 86, 179, 0.25);
}

.qfc-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 86, 179, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.qfc-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

.qfc-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--text-dark);
  line-height: 1.4;
  font-style: italic;
  opacity: 0.8;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 900px) {
  .qual-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

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

  .stat:nth-child(2) {
    border-right: none;
  }

  .stat:nth-child(3),
  .stat:nth-child(4) {
    border-top: 1px solid rgba(0, 86, 179, 0.07);
  }
}

@media (max-width: 560px) {
  .qual-section {
    padding: 80px 0 90px;
  }

  .qual-heading {
    font-size: 1.9rem;
  }

  .q-container {
    padding: 0 20px;
  }
}
/* =========================================/* =============================================
   Inlaks & Budhrani Hospital — Facility Section
   Uses existing :root variables from your sheet.
   Add this file after your main stylesheet.
============================================= */

/* ── SECTION SHELL ── */
.hf-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

/* ── PARALLAX BACKGROUND ── */
.hf-parallax {
  position: absolute;
  inset: -15%;          /* extra space for parallax movement */
  z-index: 0;
  will-change: transform;
}

.hf-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.7) brightness(0.75);
  transition: filter 1s ease;
}

/* Overlay stack for depth */
.hf-overlay-base {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(5, 20, 50, 0.82) 0%,
    rgba(0, 50, 120, 0.65) 50%,
    rgba(5, 20, 50, 0.75) 100%
  );
}

.hf-overlay-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 35%,
    rgba(0, 10, 30, 0.55) 100%
  );
}

/* Diagonal light slash — editorial touch */
.hf-overlay-diagonal {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 45%,
    rgba(0, 86, 179, 0.12) 60%,
    transparent 75%
  );
  pointer-events: none;
}

/* ── AMBIENT PARTICLES ── */
.hf-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hf-p {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 150, 255, 0.18);
  animation: hfFloat linear infinite;
}

.hf-p:nth-child(1)  { width:4px;  height:4px;  left:10%;  animation-duration:14s; animation-delay:0s;   top:80%; }
.hf-p:nth-child(2)  { width:6px;  height:6px;  left:25%;  animation-duration:18s; animation-delay:2s;   top:90%; }
.hf-p:nth-child(3)  { width:3px;  height:3px;  left:40%;  animation-duration:12s; animation-delay:4s;   top:85%; }
.hf-p:nth-child(4)  { width:5px;  height:5px;  left:55%;  animation-duration:20s; animation-delay:1s;   top:95%; }
.hf-p:nth-child(5)  { width:4px;  height:4px;  left:65%;  animation-duration:16s; animation-delay:3s;   top:88%; }
.hf-p:nth-child(6)  { width:7px;  height:7px;  left:75%;  animation-duration:22s; animation-delay:5s;   top:92%; }
.hf-p:nth-child(7)  { width:3px;  height:3px;  left:85%;  animation-duration:15s; animation-delay:1.5s; top:83%; }
.hf-p:nth-child(8)  { width:5px;  height:5px;  left:92%;  animation-duration:19s; animation-delay:3.5s; top:87%; }

@keyframes hfFloat {
  0%   { transform: translateY(0) scale(1);   opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-100vh) scale(0.6); opacity: 0; }
}

/* ── MAIN BODY ── */
.hf-body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 120px;
}

/* ── LEFT ── */
.hf-left {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Eyebrow */
.hf-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hf-eyebrow-line {
  display: block;
  width: 32px;
  height: 1.5px;
  background: var(--primary-color, #0056b3);
  flex-shrink: 0;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.6s ease 0.2s;
}

.hf-section.in-view .hf-eyebrow-line {
  transform: scaleX(1);
}

.hf-eyebrow-text {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(150, 200, 255, 0.85);
}

/* Headline */
.hf-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.1;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.hf-headline em {
  font-style: italic;
  color: rgba(130, 190, 255, 0.9);
}

.hf-headline-top,
.hf-headline-bottom {
  display: block;
  overflow: hidden;
}

.hf-headline-top span,
.hf-headline-bottom span {
  display: block;
}

/* Description */
.hf-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(200, 220, 245, 0.85);
  max-width: 480px;
  margin: 0;
}

/* Badges */
.hf-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hf-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(210, 230, 255, 0.9);
  backdrop-filter: blur(6px);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.hf-badge svg {
  color: rgba(130, 190, 255, 0.85);
  flex-shrink: 0;
}

.hf-badge:hover {
  background: rgba(0, 86, 179, 0.35);
  border-color: rgba(130, 190, 255, 0.4);
  transform: translateY(-2px);
}

/* Actions */
.hf-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hf-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--primary-color, #0056b3);
  color: #fff;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 6px 22px rgba(0, 86, 179, 0.35);
  position: relative;
  overflow: hidden;
}

.hf-btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.5s ease;
}

.hf-btn-primary:hover::before { left: 100%; }

.hf-btn-primary:hover {
  background: var(--primary-hover, #004494);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 86, 179, 0.45);
}

.hf-btn-primary svg {
  transition: transform 0.25s;
}

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

.hf-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: rgba(220, 235, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}

.hf-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  transform: translateY(-2px);
}

/* ── RIGHT — STAT CARDS ── */
.hf-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hf-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 28px 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
  cursor: default;
}

/* Card inner glow on hover */
.hf-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: radial-gradient(circle at 30% 30%, rgba(0, 120, 255, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hf-card:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(130, 190, 255, 0.3);
  transform: translateY(-5px);
}

.hf-card:hover::after { opacity: 1; }

/* First card: slightly taller / accent */
.hf-card-1 {
  border-color: rgba(0, 150, 255, 0.25);
  background: rgba(0, 86, 179, 0.18);
}

.hf-card-icon {
  color: rgba(130, 190, 255, 0.8);
  margin-bottom: 4px;
}

.hf-card-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -1px;
}

.hf-card-num::after {
  content: attr(data-suffix);
  font-size: 1.4rem;
  margin-left: 2px;
  color: rgba(130, 190, 255, 0.75);
}

.hf-card-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(220, 235, 255, 0.9);
}

.hf-card-sub {
  font-size: 0.75rem;
  color: rgba(170, 200, 240, 0.6);
  line-height: 1.4;
}

/* ── ADDRESS BAR ── */
.hf-address-bar {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 10, 30, 0.55);
  backdrop-filter: blur(12px);
}

.hf-address-inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding-top: 18px;
  padding-bottom: 18px;
  flex-wrap: wrap;
  gap: 16px;
}

.hf-address-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(180, 210, 245, 0.75);
  font-weight: 400;
}

.hf-address-item svg {
  color: rgba(100, 170, 255, 0.7);
  flex-shrink: 0;
}

.hf-address-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.hf-social-wrap svg {
  color: rgba(100, 170, 255, 0.7);
  flex-shrink: 0;
}

/* ── SCROLL REVEAL ── */
.hf-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.hf-section.in-view .hf-reveal { opacity: 1; transform: translateY(0); }

.hf-delay-1 { transition-delay: 0.1s; }
.hf-delay-2 { transition-delay: 0.22s; }
.hf-delay-3 { transition-delay: 0.34s; }
.hf-delay-4 { transition-delay: 0.46s; }
.hf-delay-5 { transition-delay: 0.58s; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .hf-body {
    grid-template-columns: 1fr;
    gap: 50px;
    padding-top: 100px;
    padding-bottom: 80px;
  }

  .hf-right {
    grid-template-columns: repeat(4, 1fr);
  }

  .hf-headline { font-size: clamp(2.2rem, 6vw, 3rem); }
}

@media (max-width: 680px) {
  .hf-body { padding-top: 80px; padding-bottom: 60px; }

  .hf-right {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .hf-card { padding: 20px 18px; }

  .hf-card-num { font-size: 2rem; }

  .hf-address-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hf-address-divider { display: none; }

  .hf-actions { flex-direction: column; align-items: flex-start; }

  .hf-headline { font-size: clamp(2rem, 8vw, 2.6rem); }
}

/* =========================================
   Services
========================================= */

.services-section {
    padding: 100px 0;
    background-color: var(--white);
    overflow: hidden; /* Vital to hide the scrollbar */
}

.section-title.center {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

/* ── The Scroller Container ── */
.services-scroller {
    width: 100vw; /* Take up full screen width */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 20px 0;
}

/* ── The Moving Track ── */
.services-track {
    display: flex;
    gap: 30px;
    width: max-content;
    /* The animation duration (40s) controls the speed. Higher = Slower */
    animation: scrollTrack 40s linear infinite;
    padding-left: 30px; /* Initial offset */
    cursor: grab;
    user-select: none;
}

.services-track.grabbing {
    cursor: grabbing;
}

/* Pause the animation when the user hovers over any card */
.services-track:hover {
    animation-play-state: paused;
}

/* The actual infinite sliding math */
@keyframes scrollTrack {
    0% { transform: translateX(0); }
    /* Shifts exactly half the width of the track (which is Set 1) */
    100% { transform: translateX(calc(-50% - 15px)); } 
}

/* ── Beautiful Premium Cards ── */
.service-card {
    width: 320px; /* Fixed width so they stay uniform */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.04);
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Mobile Slider Overrides */
.services-mobile-nav {
    display: none;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    padding: 0 20px;
}
.services-mobile-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(2, 132, 199, 0.3);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s;
}
.services-mobile-dot.active {
    background: #0284c7;
    transform: scale(1.3);
}

@media (max-width: 900px) {
    .services-mobile-nav {
        display: flex;
    }
    .services-scroller {
        padding-bottom: 10px;
    }
    .services-track {
        animation: none; /* Disable continuous marquee on mobile */
        width: 100%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        padding-left: 5vw;
        padding-right: 5vw;
        -webkit-overflow-scrolling: touch;
        /* Hide scrollbar */
        scrollbar-width: none;
    }
    .services-track::-webkit-scrollbar {
        display: none;
    }
    .service-card {
        scroll-snap-align: center;
        width: 80vw;
        max-width: 320px;
    }
    /* Hide the duplicated cards (set 2) on mobile since it's a native scroll slider */
    .services-track .service-card:nth-child(n+11) {
        display: none;
    }
}

/* Hover effect on individual cards */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 86, 179, 0.12);
}

/* A subtle blue line that appears at the bottom on hover */
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.service-card:hover::after {
    transform: scaleX(1);
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.service-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.service-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes the 'Learn More' link to the bottom */
}

.service-link {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}
.service-card:hover .service-link {
    color: var(--primary-hover);
}

/* ── Responsive Mobile Adjustments ── */
@media (max-width: 768px) {
    .service-card {
        width: 240px; /* CHANGE: Reduced width for a more compact mobile look */
        border-radius: 12px; /* CHANGE: Slightly smaller radius to match the smaller size */
    }
    .service-card img {
        height: 150px; /* CHANGE: Reduced image height for better balance */
    }
    .service-content {
        padding: 20px; /* CHANGE: Reduced padding to save space */
    }
    .service-content h4 {
        font-size: 1.1rem; /* CHANGE: Slightly smaller heading on mobile */
    }
    .service-content p {
        font-size: 0.9rem; /* CHANGE: Slightly smaller text on mobile */
    }
}

/* =========================================
   Service Modal
========================================= */
.service-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.service-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.service-modal-box {
    background: #fff;
    border-radius: 20px;
    max-width: 780px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transform: translateY(28px) scale(0.97);
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.2);
}
.service-modal-overlay.active .service-modal-box {
    transform: translateY(0) scale(1);
}

/* Hero image */
.service-modal-hero {
    position: relative;
    width: 100%;
    height: 280px;
    flex-shrink: 0;
}
.service-modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}
.service-modal-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 35%, rgba(0,0,0,0.55));
    border-radius: 20px 20px 0 0;
}

/* Close button */
.service-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s ease, transform 0.2s ease;
}
.service-modal-close:hover {
    background: #fff;
    transform: scale(1.08);
}

/* Badge */
.service-modal-badge {
    position: absolute;
    bottom: 18px;
    left: 22px;
    background: var(--primary-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    z-index: 2;
}

/* Body */
.service-modal-body {
    padding: 30px 34px 38px;
}
.service-modal-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin: 0 0 8px;
}
.service-modal-tagline {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0 0 26px;
}

/* Two-column grid */
.service-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 26px;
}
.service-modal-block h5 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin: 0 0 12px;
}
.service-modal-block ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.service-modal-block ul li {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.55;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.service-modal-block ul li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    flex-shrink: 0;
    margin-top: 6px;
}

/* Divider & note */
.service-modal-divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    margin: 0 0 22px;
}
.service-modal-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    padding: 14px 18px;
    background: #f0f6ff;
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .service-modal-hero { height: 200px; }
    .service-modal-hero img { border-radius: 16px 16px 0 0; }
    .service-modal-hero-overlay { border-radius: 16px 16px 0 0; }
    .service-modal-box { border-radius: 16px; }
    .service-modal-body { padding: 22px 20px 30px; }
    .service-modal-body h2 { font-size: 1.35rem; }
    .service-modal-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* =========================================
   Gallery
========================================= */
/* .gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 40px; }
.gallery-item { overflow: hidden; border-radius: var(--border-radius); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.05); } */

/* =========================================
   Funky Horizontal Scroll Gallery
========================================= */
.gallery-section {
    overflow: hidden; /* Prevents horizontal scroll on the whole page */
    padding-bottom: 100px;
}

.gallery-track-container {
    width: 100%;
    cursor: grab; /* Shows the user they can drag it */
}

.gallery-track-container:active {
    cursor: grabbing; /* Changes icon while dragging */
}

.gallery-track {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    height: 550px;
    overflow-x: auto; /* Enable native swiping! */
    -ms-overflow-style: none; /* IE/Edge hide scrollbar */
    scrollbar-width: none; /* Firefox hide scrollbar */
    -webkit-overflow-scrolling: touch; /* Smooth iOS scroll */
}
.gallery-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari hide scrollbar */
}

.gallery-item {
    position: relative;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0, 86, 179, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; /* Prevents the image ghosting when dragging */
    transition: transform 0.6s ease;
}

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

/* The Funky Sizes */
.shape-tall { width: 300px; height: 450px; }
.shape-wide { width: 500px; height: 320px; }
.shape-square { width: 350px; height: 350px; }

/* The Staggering Offsets */
.offset-down { align-self: flex-end; }
.offset-up { align-self: flex-start; }
.offset-center { align-self: center; }

/* Inner Hover Caption */
.gallery-caption {
    position: absolute;
    bottom: -50px; /* Hidden initially */
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    font-weight: 500;
    font-size: 1.1rem;
    transition: bottom 0.4s ease;
}

.gallery-item:hover .gallery-caption {
    bottom: 0; /* Slides up on hover */
}

/* An invisible spacer to let the last image scroll past the right edge */
.gallery-spacer {
    flex-shrink: 0;
    width: 5vw;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .gallery-track {
        height: 450px;
        gap: 20px;
        /* REMOVE THESE TWO LINES IF THEY ARE THERE: */
        /* scroll-snap-type: x mandatory; */ 
    }
    /* .gallery-item { scroll-snap-align: center; } */ 
    
    .shape-tall { width: 260px; height: 380px; }
    .shape-wide { width: 320px; height: 240px; }
    .shape-square { width: 280px; height: 280px; }
    
    .gallery-caption { bottom: 0; padding: 40px 15px 15px; font-size: 1rem; }
}

/* ==========================================================
   Professional Memberships / Affiliations
========================================================== */

.membership-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.membership-card {
    background: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 86, 179, 0.05); /* Very faint blue border */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    flex: 1 1 240px;
    max-width: 280px;
}

/* Scroll reveal — cards fade up with a subtle scale */
#memberships .membership-card.animate-on-scroll {
    transform: translateY(36px) scale(0.96);
    transition:
        opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}

#memberships .membership-card.animate-on-scroll.in-view {
    transform: translateY(0) scale(1);
}

#memberships .membership-card.animate-on-scroll.in-view:hover {
    transform: translateY(-8px) scale(1);
}

#memberships .section-title.animate-on-scroll {
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover Effect: Lifts card, increases shadow, lights up border */
.membership-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 86, 179, 0.08);
    border-color: rgba(0, 86, 179, 0.15);
}

/* Top Half: Logo Wrapper */
.membership-logo-wrap {
    height: 160px;
    background: #fdfdfd; /* Very subtle off-white/grey to separate from text area */
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.membership-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Clean, professional greyscale look by default */
    /* filter: grayscale(100%) opacity(0.6); */
    transition: filter 0.4s ease, transform 0.4s ease;
}

/* Logo colors up and scales slightly on card hover */
/* .membership-card:hover .membership-logo-wrap img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
} */

/* Bottom Half: Text Info */
.membership-info {
    padding: 25px 20px;
    text-align: center;
    background: var(--white);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.membership-info h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.4;
}

.membership-info p {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    .membership-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
        gap: 20px;
    }
    .membership-card {
        max-width: none;
    }
    .membership-logo-wrap {
        height: 130px;
        padding: 20px;
    }
    .membership-info {
        padding: 20px 15px;
    }
    .membership-info h4 {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .membership-grid {
        grid-template-columns: 1fr; /* 1 column on small phones */
    }
    /* Disable greyscale on mobile since there is no hover state */
    /* .membership-logo-wrap img {
        filter: grayscale(0%) opacity(1);
    } */
}
/* =============================================
   Health Insights / Videos Section
   White background — Dr. Ashish Desai
   Uses existing :root variables
============================================= */

/* ── SECTION ── */
.vd-section {
  position: relative;
  padding: 110px 0 100px;
  background: var(--white, #ffffff);
  overflow: hidden;
}

/* ── BACKGROUND ── */
.vd-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.vd-bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.vd-blob-1 {
  width: 500px; height: 500px;
  background: rgba(0, 86, 179, 0.05);
  top: -150px; right: -100px;
  animation: vdDrift 20s ease-in-out infinite alternate;
}

.vd-blob-2 {
  width: 400px; height: 400px;
  background: rgba(0, 86, 179, 0.04);
  bottom: -100px; left: -80px;
  animation: vdDrift 26s ease-in-out infinite alternate-reverse;
}

.vd-bg-lines {
  position: absolute;
  inset: 0;
}

.vd-bg-lines svg {
  width: 100%; height: 100%;
}

@keyframes vdDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.08); }
}

/* ── INNER ── */
.vd-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* ── HEADER ── */
.vd-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.vd-eyebrow {
  display: flex;
  justify-content: center;
}

.vd-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 40px;
  background: rgba(0, 86, 179, 0.07);
  border: 1px solid rgba(0, 86, 179, 0.12);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary-color, #0056b3);
}

.vd-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #e53e3e;
  flex-shrink: 0;
  animation: vdBlink 1.8s ease-in-out infinite;
}

@keyframes vdBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(229,62,62,0.4); }
  50%       { opacity: 0.6; box-shadow: 0 0 0 5px rgba(229,62,62,0); }
}

.vd-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--text-dark, #1a1a1a);
  line-height: 1.12;
  margin: 0;
}

.vd-title-accent {
  font-style: italic;
  color: var(--primary-color, #0056b3);
  position: relative;
  display: inline-block;
}

/* Animated underline on title accent */
.vd-title-accent::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--primary-color, #0056b3);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s cubic-bezier(0.22,1,0.36,1) 0.5s;
}

.vd-section.in-view .vd-title-accent::after {
  transform: scaleX(1);
}

.vd-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted, #666);
  max-width: 500px;
  margin: 0;
}

/* ── GRID ── */
.vd-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}

.vd-col-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── CARD BASE ── */
.vd-card {
  display: flex;
  text-decoration: none;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 86, 179, 0.08);
  box-shadow: 0 4px 24px rgba(0, 86, 179, 0.07);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.35s ease;
  position: relative;
}

.vd-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 86, 179, 0.13);
}

/* ── FEATURED CARD (vertical layout) ── */
.vd-card--featured {
  flex-direction: column;
}

.vd-card--featured .vd-thumb {
  height: 280px;
}

.vd-card--featured .vd-info {
  padding: 26px 28px;
}

.vd-card--featured .vd-card-title {
  font-size: 1.3rem;
}

.vd-card--featured .vd-card-desc {
  font-size: 0.92rem;
}

/* ── SIDE CARD (horizontal layout) ── */
.vd-card--side {
  flex-direction: row;
  align-items: stretch;
}

.vd-card--side .vd-thumb {
  width: 160px;
  min-width: 160px;
  flex-shrink: 0;
  height: auto;
  min-height: 120px;
}

.vd-card--side .vd-info {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vd-card--side .vd-card-title {
  font-size: 1rem;
}

.vd-card--side .vd-card-desc {
  font-size: 0.83rem;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* ── THUMBNAIL ── */
.vd-thumb {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.vd-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), filter 0.4s ease;
  filter: saturate(0.9);
}

.vd-card:hover .vd-thumb img {
  transform: scale(1.06);
  filter: saturate(1);
}

/* Dark overlay */
.vd-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0,20,60,0.15) 0%, rgba(0,20,60,0.55) 100%);
  transition: background 0.35s ease;
}

.vd-card:hover .vd-overlay {
  background: linear-gradient(160deg, rgba(0,20,60,0.25) 0%, rgba(0,20,60,0.65) 100%);
}

/* Duration */
.vd-duration {
  position: absolute;
  bottom: 10px; right: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,0.65);
  padding: 3px 8px;
  border-radius: 5px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

/* Category tag */
.vd-tag {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  background: var(--primary-color, #0056b3);
  padding: 4px 10px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.vd-card:hover .vd-tag {
  opacity: 1;
  transform: translateY(0);
}

/* ── PLAY BUTTON ── */
.vd-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Pulse rings — featured card only */
.vd-play-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.4);
  animation: vdRingPulse 2.4s ease-out infinite;
}

.vd-ring-1 { width: 70px; height: 70px; animation-delay: 0s; }
.vd-ring-2 { width: 90px; height: 90px; animation-delay: 0.6s; }

@keyframes vdRingPulse {
  0%   { opacity: 0.6; transform: scale(0.85); }
  70%  { opacity: 0; transform: scale(1.3); }
  100% { opacity: 0; }
}

.vd-play-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-color, #0056b3);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
  transform: scale(0.88);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
  position: relative; z-index: 1;
}

.vd-card--side .vd-play-btn {
  width: 40px; height: 40px;
}

.vd-card:hover .vd-play-btn {
  transform: scale(1);
  box-shadow: 0 10px 32px rgba(0,0,0,0.28);
}

/* ── INFO ── */
.vd-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vd-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  color: var(--text-muted, #666);
}

.vd-views {
  display: flex;
  align-items: center;
  gap: 4px;
}

.vd-dot-sep { opacity: 0.5; }

.vd-card-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--text-dark, #1a1a1a);
  line-height: 1.25;
  margin: 0;
  transition: color 0.2s;
}

.vd-card:hover .vd-card-title {
  color: var(--primary-color, #0056b3);
}

.vd-card-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-muted, #666);
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vd-watch-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary-color, #0056b3);
  margin-top: 4px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.vd-card:hover .vd-watch-link {
  opacity: 1;
  transform: translateX(0);
}

.vd-watch-link svg {
  transition: transform 0.2s ease;
}

.vd-card:hover .vd-watch-link svg {
  transform: translateX(4px);
}

/* ── BOTTOM CTA ── */
.vd-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.vd-yt-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 14px 32px;
  background: #ff0000;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(255, 0, 0, 0.25);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.vd-yt-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.5s ease;
}

.vd-yt-btn:hover::before { left: 100%; }
.vd-yt-btn:hover {
  background: #cc0000;
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(255, 0, 0, 0.32);
}

.vd-yt-btn svg:last-child { transition: transform 0.25s; }
.vd-yt-btn:hover svg:last-child { transform: translateX(5px); }

.vd-yt-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.vd-sub-count {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--text-muted, #666);
}

/* ── SCROLL REVEAL ── */
.vd-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22,1,0.36,1);
}

.vd-reveal.in-view  { opacity: 1; transform: translateY(0); }
.vd-delay-1 { transition-delay: 0.1s; }
.vd-delay-2 { transition-delay: 0.22s; }
.vd-delay-3 { transition-delay: 0.34s; }
.vd-delay-4 { transition-delay: 0.46s; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .vd-grid {
    grid-template-columns: 1fr;
  }

  .vd-card--featured .vd-thumb { height: 240px; }

  .vd-col-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .vd-card--side {
    flex-direction: column;
  }

  .vd-card--side .vd-thumb {
    width: 100%;
    height: 180px;
  }
}

@media (max-width: 600px) {
  .vd-section { padding: 70px 0 60px; }

  .vd-col-right {
    grid-template-columns: 1fr;
  }

  .vd-card--side {
    flex-direction: row;
  }

  .vd-card--side .vd-thumb {
    width: 130px;
    min-width: 130px;
    height: auto;
  }

  .vd-inner { gap: 40px; }
}

@media (max-width: 420px) {
  .vd-card--side { flex-direction: column; }
  .vd-card--side .vd-thumb { width: 100%; height: 160px; }
}

/* ==========================================================
   Testimonials Section — testimonials.css
   Fixed: proper single-card carousel clipping
   White background · 3.5s auto-slide · Progress dot
========================================================== */

:root {
  --primary-color: #0056b3;
  --primary-hover: #004494;
  --text-dark:     #1a1a1a;
  --text-muted:    #666;
  --bg-light:      #f8faff;
  --white:         #ffffff;
  --border-radius: 12px;
  --transition:    0.3s ease;

  --p-soft:      rgba(0,86,179,0.055);
  --p-mid:       rgba(0,86,179,0.11);
  --p-border:    rgba(0,86,179,0.10);
  --gold:        #f59e0b;
  --shadow-sm:   0 4px 20px rgba(0,86,179,0.07);
  --shadow-md:   0 12px 48px rgba(0,86,179,0.12);
  --slide-dur:   0.65s;
  --auto-delay:  3.5s;
}

.tm-section *, .tm-section *::before, .tm-section *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}
.tm-section blockquote { quotes: none; }
.tm-section button { cursor: pointer; font-family: inherit; }


/* ══════════════════════════════════════════════════════════
   SECTION
══════════════════════════════════════════════════════════ */
.tm-section {
  position: relative;
  padding: 110px 0 100px;
  background: var(--white);
  overflow: hidden;
}

.tm-bg { position: absolute; inset: 0; pointer-events: none; }

.tm-bg-c1 {
  position: absolute;
  width: 600px; height: 600px;
  top: -200px; right: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,86,179,0.05) 0%, transparent 70%);
  animation: float-c1 18s ease-in-out infinite;
}
.tm-bg-c2 {
  position: absolute;
  width: 400px; height: 400px;
  bottom: -100px; left: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.06) 0%, transparent 70%);
  animation: float-c2 22s ease-in-out infinite;
}
.tm-bg-quote {
  position: absolute;
  top: 60px; left: 50%;
  transform: translateX(-50%);
  font-family: 'Playfair Display', serif;
  font-size: clamp(160px, 22vw, 280px);
  font-weight: 700;
  color: rgba(0,86,179,0.03);
  line-height: 1;
  user-select: none;
  letter-spacing: -0.05em;
  pointer-events: none;
}

@keyframes float-c1 {
  0%,100% { transform: translate(0,0); }
  33%     { transform: translate(-30px,20px); }
  66%     { transform: translate(20px,-15px); }
}
@keyframes float-c2 {
  0%,100% { transform: translate(0,0); }
  40%     { transform: translate(25px,-20px); }
  75%     { transform: translate(-15px,30px); }
}

.tm-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}


/* ══════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════ */
.tm-header {
  text-align: center;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16,1,0.3,1), filter 0.9s ease;
}
.tm-header.in-view { opacity:1; transform:none; filter:none; }

.tm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--primary-color);
}
.tm-pip {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary-color);
  opacity: 0.45;
}
.tm-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 14px;
}
.tm-title em { font-style: italic; color: var(--primary-color); }
.tm-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.72;
}


/* ══════════════════════════════════════════════════════════
   CAROUSEL — THE FIX
   ┌─────────────────────────────────────────────────────┐
   │ .tm-carousel-wrap  (reveal animation wrapper)        │
   │  └─ .tm-carousel-viewport  ← overflow:hidden HERE   │
   │      └─ .tm-carousel  ← flex row, JS moves this     │
   │          ├─ .tm-card  ← width:100% of viewport      │
   │          ├─ .tm-card                                 │
   │          └─ ...                                      │
   └─────────────────────────────────────────────────────┘
   KEY: .tm-card uses width:100%, not min-width:100%.
   The viewport has an explicit width so 100% resolves
   to the visible container width, not the flex track.
══════════════════════════════════════════════════════════ */
.tm-carousel-wrap {
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.tm-carousel-wrap.in-view { opacity:1; transform:none; }

/* THIS is the clipping container */
.tm-carousel-viewport {
  width: 100%;
  overflow: hidden;            /* clips off-screen cards */
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

/* The sliding track — JS translates this */
.tm-carousel {
  display: flex;
  width: 100%;
  /* transition set by JS so we can snap without animation when needed */
  will-change: transform;
}

/* Each card MUST be exactly the viewport width */
.tm-card {
  width: 100%;                 /* 100% of .tm-carousel-viewport */
  min-width: 100%;             /* prevent flex from shrinking it */
  flex-shrink: 0;              /* never shrink */
}


/* ── Card inner styling ──────────────────────────────────── */
.tm-card-inner {
  background: var(--white);
  border-radius: 20px;
  padding: 52px 56px;
  position: relative;
  overflow: hidden;
}

/* Top gradient bar */
.tm-card-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color) 0%, rgba(0,86,179,0.15) 100%);
}

.tm-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.tm-stars svg { width: 88px; height: 18px; }

.tm-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-color);
  background: var(--p-soft);
  border: 1px solid rgba(0,86,179,0.14);
  border-radius: 4px;
  padding: 4px 12px;
}

.tm-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 36px;
  position: relative;
  padding-left: 28px;
}
.tm-quote::before {
  content: '"';
  position: absolute;
  left: -6px; top: -18px;
  font-family: 'Playfair Display', serif;
  font-size: 6rem;
  font-style: normal;
  color: rgba(0,86,179,0.08);
  line-height: 1;
  pointer-events: none;
}

/* Patient row */
.tm-patient {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,86,179,0.08);
}
.tm-avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--white);
  flex-shrink: 0;
  background: hsl(var(--av-hue, 210), 52%, 44%);
  box-shadow: 0 4px 14px rgba(0,0,0,0.14);
}
.tm-patient-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tm-patient-info strong {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  font-family: 'Playfair Display', serif;
}
.tm-patient-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.tm-verified {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #16a34a;
  background: rgba(22,163,74,0.08);
  border: 1px solid rgba(22,163,74,0.2);
  border-radius: 4px;
  padding: 5px 10px;
  flex-shrink: 0;
}
.tm-verified svg { width: 14px; height: 14px; }


/* ══════════════════════════════════════════════════════════
   NAV CONTROLS
══════════════════════════════════════════════════════════ */
.tm-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.tm-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--p-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transition: background var(--transition), border-color var(--transition),
              box-shadow var(--transition), transform var(--transition);
}
.tm-btn svg { width: 18px; height: 18px; }
.tm-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0,86,179,0.3);
  transform: scale(1.08);
}

/* Dots */
.tm-dots { display: flex; gap: 8px; align-items: center; }

.tm-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(0,86,179,0.18);
  border: none;
  padding: 0;
  overflow: hidden;
  transition: width 0.35s cubic-bezier(0.34,1.56,0.64,1),
              border-radius 0.35s ease;
}
.tm-dot.active {
  width: 32px;
  border-radius: 4px;
  background: rgba(0,86,179,0.15);
}
/* Progress fill — sweeps left→right over --auto-delay */
.tm-dot.active::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: var(--primary-color);
  border-radius: 4px;
  animation: dot-fill var(--auto-delay) linear forwards;
}
@keyframes dot-fill {
  from { width: 0%; }
  to   { width: 100%; }
}
/* Pause the fill when hovering the carousel */
.tm-section.paused .tm-dot.active::after {
  animation-play-state: paused;
}


/* ══════════════════════════════════════════════════════════
   MARQUEE STRIP
══════════════════════════════════════════════════════════ */
.tm-marquee-wrap {
  margin-bottom: 72px;
  overflow: hidden;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.tm-marquee-wrap.in-view { opacity:1; transform:none; }
.tm-marquee-wrap::before,
.tm-marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px; z-index: 2;
  pointer-events: none;
}
.tm-marquee-wrap::before { left:0;  background: linear-gradient(90deg,  var(--white), transparent); }
.tm-marquee-wrap::after  { right:0; background: linear-gradient(270deg, var(--white), transparent); }

.tm-marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}
.tm-marquee-track:hover { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.tm-mini-card {
  background: var(--bg-light);
  border: 1px solid var(--p-border);
  border-radius: 12px;
  padding: 20px 24px;
  min-width: 260px;
  max-width: 260px;
  flex-shrink: 0;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.tm-mini-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(0,86,179,0.2);
  transform: translateY(-3px);
}
.tm-mini-stars { font-size: 0.85rem; color: var(--gold); margin-bottom: 10px; letter-spacing: 2px; }
.tm-mini-card p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text-dark);
  line-height: 1.65;
  margin-bottom: 10px;
}
.tm-mini-card span { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); }


/* ══════════════════════════════════════════════════════════
   TRUST STATS BAR
══════════════════════════════════════════════════════════ */
.tm-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border: 1px solid var(--p-border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.tm-trust.in-view { opacity:1; transform:none; }

.tm-trust-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 30px 20px;
  text-align: center;
  transition: background var(--transition);
}
.tm-trust-item:hover { background: rgba(0,86,179,0.03); }
.tm-trust-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--primary-color);
  line-height: 1;
}
.tm-trust-num span { font-size: 1.3rem; opacity: 0.6; }
.tm-trust-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.tm-trust-divider { width: 1px; height: 52px; background: var(--p-border); flex-shrink: 0; }


/* ══════════════════════════════════════════════════════════
   REVEAL UTILITY
══════════════════════════════════════════════════════════ */
[data-tm-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
[data-tm-reveal].in-view { opacity:1; transform:none; }


/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .tm-card-inner { padding: 36px 28px; }
  .tm-trust { flex-wrap: wrap; }
  .tm-trust-item { min-width: 50%; flex: 0 0 50%; }
  .tm-trust-divider:nth-child(4) { display: none; }
}
@media (max-width: 600px) {
  .tm-section { padding: 80px 0 80px; }
  .tm-container { padding: 0 16px; }
  .tm-card-inner { padding: 28px 20px; }
  .tm-quote { font-size: 1rem; padding-left: 16px; }
  .tm-patient { flex-wrap: wrap; }
  .tm-verified { margin-left: 0; }
  .tm-trust-item { min-width: 100%; flex: 0 0 100%; }
  .tm-trust-divider { width: 80%; height: 1px; }
  .tm-bg-quote { font-size: 120px; }
}
/* =========================================
   Appointments
========================================= */
/* =============================================
   Appointment Section — Dr. Ashish Desai
   White background, fully animated
   Uses existing :root variables
============================================= */

/* ── SECTION ── */
.ap-section {
  position: relative;
  padding: 110px 0 100px;
  background: var(--white, #ffffff);
  overflow: hidden;
}

/* ── BG DECORATION ── */
.ap-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

.ap-bg-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 86, 179, 0.04);
}
.ap-bg-c1 {
  width: 560px; height: 560px;
  top: -180px; right: -140px;
  animation: apDrift 18s ease-in-out infinite alternate;
}
.ap-bg-c2 {
  width: 380px; height: 380px;
  bottom: -120px; left: -100px;
  background: rgba(0, 86, 179, 0.03);
  animation: apDrift 22s ease-in-out infinite alternate-reverse;
}

.ap-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,86,179,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,86,179,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}

@keyframes apDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.06); }
}

/* ── LAYOUT ── */
.ap-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}

/* ── LEFT — FORM ── */
.ap-left { display: flex; flex-direction: column; gap: 24px; }

.ap-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary-color, #0056b3);
}

.ap-eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary-color, #0056b3);
  flex-shrink: 0;
  animation: apPulseDot 2.4s ease-in-out infinite;
}

@keyframes apPulseDot {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,86,179,0.35); }
  50%     { box-shadow: 0 0 0 6px rgba(0,86,179,0); }
}

.ap-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.12;
  color: var(--text-dark, #1a1a1a);
  margin: 0;
}
.ap-title em {
  font-style: italic;
  color: var(--primary-color, #0056b3);
}

.ap-subtitle {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--text-muted, #666);
  max-width: 420px;
  margin: 0;
}

/* ── FORM ── */
.ap-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}

.ap-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* Field */
.ap-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.ap-field-full { grid-column: 1 / -1; }

.ap-field label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dark, #1a1a1a);
  letter-spacing: 0.3px;
}

.ap-field input,
.ap-field select,
.ap-field textarea {
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-dark, #1a1a1a);
  background: #f5f8ff;
  border: 1.5px solid rgba(0, 86, 179, 0.12);
  border-radius: 10px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  resize: vertical;
}

.ap-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230056b3' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.ap-field input::placeholder,
.ap-field textarea::placeholder { color: #aab4c4; }

.ap-field input:focus,
.ap-field select:focus,
.ap-field textarea:focus {
  border-color: var(--primary-color, #0056b3);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.08);
}

/* Animated underline bar */
.ap-field-bar {
  position: absolute;
  bottom: 0; left: 10px; right: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary-color, #0056b3);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
}

.ap-field input:focus ~ .ap-field-bar,
.ap-field select:focus ~ .ap-field-bar,
.ap-field textarea:focus ~ .ap-field-bar {
  transform: scaleX(1);
}

/* Submit button */
.ap-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 28px;
  background: var(--primary-color, #0056b3);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 6px 24px rgba(0, 86, 179, 0.28);
  margin-top: 4px;
}

.ap-submit::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
  transition: left 0.5s ease;
}
.ap-submit:hover::before { left: 100%; }
.ap-submit:hover { background: var(--primary-hover, #004494); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,86,179,0.35); }
.ap-submit:active { transform: translateY(0); }

.ap-submit-icon svg { transition: transform 0.25s; }
.ap-submit:hover .ap-submit-icon svg { transform: translateX(5px); }

/* Loader spinner */
.ap-submit-loader {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: apSpin 0.7s linear infinite;
}

.ap-submit.loading .ap-submit-text,
.ap-submit.loading .ap-submit-icon { display: none; }
.ap-submit.loading .ap-submit-loader { display: block; }

@keyframes apSpin { to { transform: rotate(360deg); } }

/* Success message */
.ap-success {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 10px;
  background: #e8f8f0;
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #16803a;
  font-size: 0.9rem;
  font-weight: 500;
  animation: apFadeUp 0.5s ease forwards;
}
.ap-success.show { display: flex; }

@keyframes apFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RIGHT ── */
.ap-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 86px;   /* aligns cards with form start */
  min-width: 0;        /* prevents overflow from slider */
}

/* ── CARDS (shared) ── */
.ap-card {
  background: #fff;
  border: 1px solid rgba(0, 86, 179, 0.1);
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: 0 4px 28px rgba(0, 86, 179, 0.06);
  transition: box-shadow 0.3s, transform 0.3s;
}
.ap-card:hover {
  box-shadow: 0 12px 40px rgba(0, 86, 179, 0.1);
  transform: translateY(-3px);
}

.ap-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.ap-card-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark, #1a1a1a);
  margin: 0;
}

.ap-card-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(0, 86, 179, 0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-color, #0056b3);
  flex-shrink: 0;
}
.ap-card-icon--social { background: rgba(0, 86, 179, 0.06); }

/* ── HOURS ── */
.ap-hours-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.ap-hours-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}

.ap-day {
  font-weight: 500;
  color: var(--text-dark, #1a1a1a);
  min-width: 80px;
}

.ap-dot-line {
  flex: 1;
  height: 1px;
  border-top: 1.5px dashed rgba(0, 86, 179, 0.15);
}

.ap-time { color: var(--text-muted, #666); }

.ap-open-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(34, 197, 94, 0.12);
  color: #16803a;
  flex-shrink: 0;
}
.ap-open-badge.ap-limited {
  background: rgba(251, 191, 36, 0.15);
  color: #92400e;
}

.ap-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1.5px solid var(--primary-color, #0056b3);
  color: var(--primary-color, #0056b3);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
}
.ap-call-btn:hover {
  background: var(--primary-color, #0056b3);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,86,179,0.25);
}

/* ── STAT CARD ── */
.ap-stat-card { padding: 20px 24px; }

.ap-stat-row {
  display: flex;
  align-items: center;
  gap: 0;
}

.ap-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.ap-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(0, 86, 179, 0.1);
  flex-shrink: 0;
}

.ap-stat-n {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color, #0056b3);
  line-height: 1;
}

.ap-stat-l {
  font-size: 0.7rem;
  color: var(--text-muted, #666);
  letter-spacing: 0.5px;
}

/* ── SOCIAL CARD ── */
.ap-social-desc {
  font-size: 0.83rem;
  color: var(--text-muted, #666);
  margin: 0 0 18px;
  line-height: 1.6;
}

.ap-social-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ap-social-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid transparent;
  background: #f7f9ff;
  transition: all 0.25s cubic-bezier(0.22,1,0.36,1);
  position: relative;
  overflow: hidden;
}

.ap-social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s;
}

.ap-social-link:hover::before { opacity: 1; }
.ap-social-link:hover { transform: translateX(5px); }

/* Per-platform colors */
.ap-whatsapp::before  { background: rgba(37, 211, 102, 0.07); }
.ap-instagram::before { background: rgba(225, 48, 108, 0.06); }
.ap-linkedin::before  { background: rgba(0, 119, 181, 0.07); }
.ap-facebook::before  { background: rgba(24, 119, 242, 0.07); }

.ap-whatsapp:hover  { border-color: rgba(37, 211, 102, 0.3); }
.ap-instagram:hover { border-color: rgba(225, 48, 108, 0.3); }
.ap-linkedin:hover  { border-color: rgba(0, 119, 181, 0.3); }
.ap-facebook:hover  { border-color: rgba(24, 119, 242, 0.3); }

.ap-social-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.ap-social-link:hover .ap-social-icon { transform: scale(1.12) rotate(-6deg); }

.ap-whatsapp  .ap-social-icon { background: #e8faf0; color: #25d366; }
.ap-instagram .ap-social-icon { background: #fdeef3; color: #e1306c; }
.ap-linkedin  .ap-social-icon { background: #e8f2fa; color: #0077b5; }
.ap-facebook  .ap-social-icon { background: #edf3fe; color: #1877f2; }

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

.ap-social-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  position: relative; z-index: 1;
}

.ap-social-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark, #1a1a1a);
}

.ap-social-handle {
  font-size: 0.75rem;
  color: var(--text-muted, #666);
}

.ap-social-arrow {
  font-size: 1rem;
  color: #c4cfe0;
  transition: color 0.2s, transform 0.25s;
  position: relative; z-index: 1;
}

.ap-social-link:hover .ap-social-arrow {
  transform: translateX(4px);
  color: var(--primary-color, #0056b3);
}

/* ── SCROLL REVEAL ── */
.ap-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22,1,0.36,1);
}
.ap-reveal.in-view { opacity: 1; transform: translateY(0); }
.ap-delay-1 { transition-delay: 0.12s; }
.ap-delay-2 { transition-delay: 0.24s; }
.ap-delay-3 { transition-delay: 0.36s; }

/* ── NEW APPOINTMENT SECTION STYLES ── */

/* QR Code Card */
.ap-qr-card {
  text-align: center;
}

.ap-qr-desc {
  font-size: 0.9rem;
  color: var(--text-muted, #666);
  margin-bottom: 20px;
}

.ap-qr-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  padding: 20px;
  background: #f8faff;
  border-radius: 14px;
}

.ap-qr-code {
  width: 180px;
  height: 180px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 86, 179, 0.12);
}

.ap-qr-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #25d366, #20ba5a);
  color: #fff;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.ap-qr-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.ap-qr-link svg {
  width: 18px;
  height: 18px;
}

/* Call Button */
.ap-call-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: linear-gradient(135deg, #0056b3, #003d7a);
  color: #fff;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
  box-shadow: 0 8px 24px rgba(0, 86, 179, 0.24);
}

.ap-call-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 86, 179, 0.32);
}

.ap-call-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ap-call-icon svg {
  width: 22px;
  height: 22px;
}

.ap-call-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ap-call-label {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.9;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.ap-call-number {
  font-size: 1.1rem;
  font-weight: 600;
}

/* NEW: Call Button & Social Row */
.ap-contact-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}

.ap-call-btn-large {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #0056b3, #003d7a);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
  box-shadow: 0 4px 16px rgba(0, 86, 179, 0.24);
  white-space: nowrap;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
}

.ap-call-btn-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 86, 179, 0.32);
}

.ap-call-icon-large {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ap-call-icon-large svg {
  width: 16px;
  height: 16px;
}

.ap-call-text-large {
  display: flex;
  flex-direction: column;
  gap: 0px;
  text-align: left;
}

.ap-call-label-large {
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.9;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  line-height: 1;
}

.ap-call-number-large {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

/* Social Icons Row */
.ap-social-icons-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: flex-end;
}

.ap-social-btn-row {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
  border: 2px solid transparent;
  background: #f7f9ff;
}

.ap-social-btn-row svg {
  width: 24px;
  height: 24px;
}

.ap-social-whatsapp-row {
  color: #25d366;
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.2);
}

.ap-social-whatsapp-row:hover {
  background: #25d366;
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  border-color: #25d366;
}

.ap-social-email-row {
  color: #ea4335;
  background: rgba(234, 67, 53, 0.1);
  border-color: rgba(234, 67, 53, 0.2);
}

.ap-social-email-row:hover {
  background: #ea4335;
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(234, 67, 53, 0.35);
  border-color: #ea4335;
}

.ap-social-instagram-row {
  color: #e13070;
  background: rgba(225, 48, 108, 0.1);
  border-color: rgba(225, 48, 108, 0.2);
}

.ap-social-instagram-row:hover {
  background: #e13070;
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(225, 48, 108, 0.35);
  border-color: #e13070;
}

.ap-social-linkedin-row {
  color: #0077b5;
  background: rgba(0, 119, 181, 0.1);
  border-color: rgba(0, 119, 181, 0.2);
}

.ap-social-linkedin-row:hover {
  background: #0077b5;
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 119, 181, 0.35);
  border-color: #0077b5;
}

.ap-social-facebook-row {
  color: #1877f2;
  background: rgba(24, 119, 242, 0.1);
  border-color: rgba(24, 119, 242, 0.2);
}

.ap-social-facebook-row:hover {
  background: #1877f2;
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.35);
  border-color: #1877f2;
}

/* Clinic Image */
.ap-clinic-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 86, 179, 0.15);
  height: 280px;
}

.ap-clinic-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ap-clinic-image:hover img {
  transform: scale(1.05);
}

.ap-clinic-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Clinic Info Card */
.ap-clinic-card {
  padding: 28px !important;
}

.ap-clinic-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ap-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ap-info-icon {
  color: var(--primary-color);
  margin-top: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ap-info-text-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.ap-info-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary-color);
}

.ap-info-value {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dark);
  word-wrap: break-word;
}

.ap-directions-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 16px;
  background: #f0f4ff;
  color: var(--primary-color);
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 86, 179, 0.15);
}

.ap-directions-btn:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 86, 179, 0.2);
}

.ap-directions-btn svg {
  width: 16px;
  height: 16px;
}

/* Social Icons Grid */
.ap-social-icons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.ap-social-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  border-radius: 12px;
  background: #f7f9ff;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.ap-social-btn svg {
  width: 24px;
  height: 24px;
}

.ap-social-whatsapp {
  background: rgba(37, 211, 102, 0.08);
  color: #25d366;
}

.ap-social-whatsapp:hover {
  background: #25d366;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.ap-social-instagram {
  background: rgba(225, 48, 108, 0.08); 
  color: #e13070;
}

.ap-social-instagram:hover {
  background: #e13070;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(225, 48, 108, 0.3);
}

.ap-social-linkedin {
  background: rgba(0, 119, 181, 0.08);
  color: #0077b5;
}

.ap-social-linkedin:hover {
  background: #0077b5;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 119, 181, 0.3);
}

.ap-social-facebook {
  background: rgba(24, 119, 242, 0.08);
  color: #1877f2;
}

.ap-social-facebook:hover {
  background: #1877f2;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.3);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .ap-body { grid-template-columns: 1fr; gap: 48px; }
  .ap-right { padding-top: 0; }
  .ap-social-icons { grid-template-columns: 1fr 1fr; }
  .ap-contact-row { flex-wrap: wrap; justify-content: center; gap: 20px; }
  .ap-social-icons-row { flex: none; justify-content: center; gap: 16px; }
}

@media (max-width: 560px) {
  .ap-section { padding: 70px 0 60px; }
  .ap-form-row { grid-template-columns: 1fr; }
  .ap-clinic-image { height: 220px; }
  .ap-social-icons { grid-template-columns: 1fr 1fr; }
  .ap-qr-code { width: 150px; height: 150px; }
  .ap-contact-row { flex-direction: column; align-items: center; gap: 16px; }
  .ap-call-btn-large { width: 100%; justify-content: center; }
  .ap-social-icons-row { flex: none; width: 100%; justify-content: center; }
}

/* =========================================
   FAQ
========================================= */
.faq-container { max-width: 800px; margin: 40px auto 0; }
.faq-item { background: var(--white); border-radius: 8px; margin-bottom: 15px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.faq-question { width: 100%; text-align: left; padding: 20px; background: none; border: none; font-size: 1.1rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.active .faq-answer { max-height: 200px; padding-bottom: 20px; }
.faq-question span { transition: transform 0.3s ease; }
.faq-item.active .faq-question span { transform: rotate(45deg); }

/* ==========================================================
   Footer — footer.css  (Updated)
   Dr. Ashish Desai Portfolio
   — Social icons clearly visible on dark bg
   — Map iframe column
   — Developer credit
   — No Book Appointment / OPD hours
========================================================== */

:root {
  --primary-color: #0056b3;
  --primary-hover: #004494;
  --text-dark:     #1a1a1a;
  --text-muted:    #666;
  --bg-light:      #f8faff;
  --white:         #ffffff;
  --border-radius: 12px;
  --transition:    0.3s ease;

  /* Footer palette */
  --f-bg:         #0b1a2e;
  --f-bg-panel:   rgba(255,255,255,0.04);
  --f-border:     rgba(255,255,255,0.08);
  --f-border-mid: rgba(255,255,255,0.12);
  --f-text:       rgba(255,255,255,0.52);
  --f-text-mid:   rgba(255,255,255,0.72);
  --f-text-bright:rgba(255,255,255,0.92);
  --gold:          #c9a84c;
  --gold-lt:       #e8cc80;
  --gold-dim:      rgba(201,168,76,0.16);
  --gold-border:   rgba(201,168,76,0.32);

  /* Social colours — vivid so they pop on dark */
  --clr-phone:    #34d399;   /* emerald  */
  --clr-email:    #60a5fa;   /* sky blue */
  --clr-linkedin: #93c5fd;   /* linkedin */
  --clr-whatsapp: #4ade80;   /* whatsapp green */
}

.footer *, .footer *::before, .footer *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}
.footer a { text-decoration: none; color: inherit; }
.footer ul { list-style: none; }
.footer address { font-style: normal; }


/* ══════════════════════════════════════════════════════════
   WAVE
══════════════════════════════════════════════════════════ */
.footer {
  position: relative;
  background: var(--f-bg);
}
.footer-wave {
  display: block;
  line-height: 0;
  color: var(--f-bg);
  margin-top: -1px;
}
.footer-wave svg {
  width: 100%;
  height: 80px;
  display: block;
}


/* ══════════════════════════════════════════════════════════
   BODY + GLOWS
══════════════════════════════════════════════════════════ */
.footer-body {
  position: relative;
  padding: 68px 0 0;
  overflow: hidden;
}
.footer-body::before {
  content: '';
  position: absolute;
  top: -100px; left: -140px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,86,179,0.16) 0%, transparent 65%);
  pointer-events: none;
}
.footer-body::after {
  content: '';
  position: absolute;
  bottom: 40px; right: -80px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.footer-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}


/* ══════════════════════════════════════════════════════════
   GRID  —  3 columns
══════════════════════════════════════════════════════════ */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1.15fr 1.25fr;
  gap: 40px 32px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--f-border);
}
.footer-col {
  display: flex;
  flex-direction: column;
}
.footer-col-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
  padding-bottom: 12px;
  position: relative;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 26px; height: 1.5px;
  background: var(--gold);
  opacity: 0.45;
  border-radius: 2px;
}


/* ══════════════════════════════════════════════════════════
   COL 1 — BRAND
══════════════════════════════════════════════════════════ */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.footer-logo-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: rgba(0,86,179,0.28);
  border: 1px solid rgba(96,165,250,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
  flex-shrink: 0;
  transition: background var(--transition);
}
.footer-logo:hover .footer-logo-icon { background: rgba(0,86,179,0.42); }
.footer-logo-icon svg { width: 22px; height: 22px; }

.footer-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--f-text-bright);
  letter-spacing: -0.01em;
  line-height: 1;
}
.flg-prefix {
  font-style: italic;
  font-weight: 400;
  color: #93c5fd;
  margin-right: 3px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--f-text);
  line-height: 1.75;
  margin-bottom: 18px;
}
.footer-tagline em {
  font-style: italic;
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
}

/* Credential pills */
.footer-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 26px;
}
.fc-pill {
  font-size: 0.59rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
}
.gold-pill {
  color: var(--gold-lt);
  background: var(--gold-dim);
  border-color: var(--gold-border);
}

/* Social section label */
.footer-socials-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 12px;
}

/* ── Social icon buttons — clearly visible on dark ────── */
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fs-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.fs-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.fs-link span { line-height: 1; }

/* Each social gets a distinct tinted background so it's always legible */
.fs-phone {
  background: rgba(52,211,153,0.15);
  border: 1px solid rgba(52,211,153,0.3);
  color: var(--clr-phone);
}
.fs-email {
  background: rgba(96,165,250,0.15);
  border: 1px solid rgba(96,165,250,0.3);
  color: var(--clr-email);
}
.fs-linkedin {
  background: rgba(147,197,253,0.12);
  border: 1px solid rgba(147,197,253,0.28);
  color: var(--clr-linkedin);
}
.fs-whatsapp {
  background: rgba(74,222,128,0.13);
  border: 1px solid rgba(74,222,128,0.28);
  color: var(--clr-whatsapp);
}

.fs-link:hover {
  transform: translateY(-3px);
  filter: brightness(1.15);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}


/* ══════════════════════════════════════════════════════════
   COL 2 — NAVIGATION LINKS
══════════════════════════════════════════════════════════ */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-links li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px 10px 0;
  font-size: 0.9rem;
  color: var(--f-text-mid);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color var(--transition), padding-left var(--transition);
}
.footer-links li a:hover {
  color: var(--f-text-bright);
  padding-left: 6px;
}
.flink-num {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(96,165,250,0.65);
  min-width: 18px;
}
.flink-arrow {
  width: 14px; height: 14px;
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity var(--transition), transform var(--transition);
}
.footer-links li a:hover .flink-arrow {
  opacity: 0.65;
  transform: translateX(0);
}


/* ══════════════════════════════════════════════════════════
   COL 3 — LOCATION + MAP
══════════════════════════════════════════════════════════ */
.footer-location-col { gap: 16px; }

/* Hospital name card */
.footer-hospital-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--f-bg-panel);
  border: 1px solid var(--f-border);
  border-radius: 10px;
}
.fhc-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(0,86,179,0.22);
  border: 1px solid rgba(96,165,250,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
  flex-shrink: 0;
}
.fhc-icon svg { width: 17px; height: 17px; }
.fhc-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--f-text-bright);
  line-height: 1.3;
}
.fhc-sub {
  font-size: 0.72rem;
  color: var(--f-text);
  margin-top: 3px;
  line-height: 1.5;
}

/* Map iframe wrapper */
.footer-map-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--f-border-mid);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  flex-shrink: 0;
  position: relative;
}
.footer-map-wrap iframe {
  display: block;
  width: 100%;
  height: 200px;
  border: 0;
  filter: brightness(0.88) contrast(1.05) saturate(0.85);
  transition: filter 0.3s ease;
}
.footer-map-wrap:hover iframe {
  filter: brightness(0.95) contrast(1.05) saturate(1);
}

/* Directions link */
.footer-directions-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #0b1120;
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.footer-directions-link svg { width: 12px; height: 12px; }
.footer-directions-link:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
  gap: 6px;
}


/* ══════════════════════════════════════════════════════════
   BOTTOM BAR
══════════════════════════════════════════════════════════ */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 28px;
  gap: 16px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.footer-bottom.in-view { opacity: 1; transform: none; }

.footer-bottom-left {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.28);
}

/* Back to top */
.footer-back-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--primary-color);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 86, 179, 0.35);
  transition: background var(--transition),
              border-color var(--transition),
              color var(--transition),
              transform var(--transition),
              box-shadow var(--transition);
  white-space: nowrap;
}
.footer-back-top svg { width: 13px; height: 13px; stroke: currentColor; }
.footer-back-top:hover {
  background: var(--primary-hover);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 86, 179, 0.45);
}

/* Developer credit */
.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.28);
  flex-shrink: 0;
}
.footer-dev-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-lt);
  transition: color var(--transition), gap var(--transition);
}
.footer-dev-link svg { width: 11px; height: 11px; opacity: 0.7; }
.footer-dev-link:hover {
  color: var(--gold);
  gap: 7px;
}


/* ══════════════════════════════════════════════════════════
   REVEAL UTILITY
══════════════════════════════════════════════════════════ */
[data-footer-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s ease,
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-footer-reveal].in-view {
  opacity: 1;
  transform: none;
}


/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
  }
  .footer-location-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-brand-col,
  .footer-location-col { grid-column: auto; }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
  .footer-bottom-right { justify-content: center; }
  .footer-container { padding: 0 18px; }
  .footer-body { padding: 52px 0 0; }
  .footer-wave svg { height: 50px; }
  .footer-socials { gap: 8px; }
}
/* =========================================
   Scroll Animations (Intersection Observer)
========================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}
.animate-on-scroll.is-visible,
.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }


/* =========================================
   Responsive Design (Media Queries)
========================================= */

@media (max-width: 992px) {
    .nav-menu { display: none; flex-direction: column; background: var(--white); position: absolute; top: 100%; left: 0; right: 0; padding: 20px; box-shadow: 0 10px 10px rgba(0,0,0,0.1); }
    .nav-menu.active { display: flex; }
    .menu-toggle { display: block; }
}

@media (max-width: 768px) {
    /* Layout Overrides */
    .hero-wrap, .two-col-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-wrap { flex-direction: column; }
    .about-image { order: -1; }
    .hero-stats { justify-content: center; flex-wrap: wrap; }
    .appointment-wrap { flex-direction: column; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* Specific Component Overrides */
    .offset-card { margin-left: 0; }
    .award-number { font-size: 4rem; right: 10px; }
    
    /* Disable staggered animation delays on mobile for speed */
    .delay-100, .delay-200, .delay-300, .delay-400 { transition-delay: 0ms; }
}

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


/* ==========================================================
   Experience Section — experience.css
   Aesthetic: Dark editorial — navy feature card, white
   previous-cards, architectural grid lines, bold type.
   Deliberately different from the education/qualifications
   section (which uses light cards + vertical timeline).
========================================================== *//* ==========================================================
   Experience Section — experience.css  (Light Theme)
   Fully white-background palette — matches your site's
   existing look. No dark navy. Blue-tinted feature card,
   white previous cards, subtle dot grid, ghost year stamp.
========================================================== */

/* ── Variables (merge into your existing :root) ─────────── */
:root {
  --primary-color:  #0056b3;
  --primary-hover:  #004494;
  --text-dark:      #1a1a1a;
  --text-muted:     #666;
  --bg-light:       #f8faff;
  --white:          #ffffff;
  --border-radius:  12px;
  --transition:     0.3s ease;

  /* Experience-section extras */
  --card-bg:        #eef4fd;
  --card-border:    rgba(0,86,179,0.14);
  --gold:           #b8841a;
  --gold-bg:        #fdf6e3;
  --gold-border:    rgba(184,132,26,0.25);
  --p-soft:         rgba(0,86,179,0.055);
  --p-mid:          rgba(0,86,179,0.11);
  --shadow-sm:      0 4px 20px rgba(0,86,179,0.07);
  --shadow-card:    0 8px 40px rgba(0,86,179,0.09);
  --shadow-hover:   0 20px 60px rgba(0,86,179,0.15);
}


/* ══════════════════════════════════════════════════════════
   SECTION WRAPPER
══════════════════════════════════════════════════════════ */
.exp-section {
  position: relative;
  padding: 120px 0 130px;
  background: var(--white);
  overflow: hidden;
}

/* Dot grid texture */
.exp-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,86,179,0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  opacity: 0.55;
}

/* Architectural vertical lines */
.exp-bg-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.exp-bg-lines span {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(0,86,179,0.07) 20%,
    rgba(0,86,179,0.07) 80%,
    transparent 100%
  );
}
.exp-bg-lines span:nth-child(1) { left: 16.66%; }
.exp-bg-lines span:nth-child(2) { left: 50%; }
.exp-bg-lines span:nth-child(3) { left: 83.33%; }

/* Container */
.exp-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}


/* ══════════════════════════════════════════════════════════
   SECTION HEADER
══════════════════════════════════════════════════════════ */
.exp-header {
  margin-bottom: 56px;
  opacity: 0;
  transform: translateY(28px);
  filter: blur(5px);
  transition: opacity 0.9s ease,
              transform 0.9s cubic-bezier(0.16,1,0.3,1),
              filter 0.9s ease;
}
.exp-header.in-view { opacity: 1; transform: none; filter: none; }

.exp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--primary-color);
}
.exp-pip {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary-color);
  opacity: 0.45;
}

.exp-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}
.exp-title em {
  font-style: italic;
  color: var(--primary-color);
}


/* ══════════════════════════════════════════════════════════
   CURRENT POSITION — BLUE-TINTED FEATURE CARD
══════════════════════════════════════════════════════════ */
.exp-current {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 80px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s ease,
              transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.exp-current.in-view { opacity: 1; transform: none; }

/* Bold 4px left border — the signature accent */
.exp-current::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary-color) 0%, rgba(0,86,179,0.25) 100%);
  border-radius: 20px 0 0 20px;
  z-index: 2;
}

/* Soft top-right radial glow */
.exp-current::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,86,179,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Ghost year stamp — faint blue ink */
.exp-year-stamp {
  position: absolute;
  right: -10px; bottom: -30px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(7rem, 13vw, 13rem);
  font-weight: 700;
  color: rgba(0,86,179,0.05);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.04em;
}

.exp-current-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

/* ── LEFT IMAGE COLUMN ────────────────────────────────────── */
.exp-current-image {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.exp-image-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}

.exp-current:hover .exp-image-main {
  transform: scale(1.05);
}

.exp-image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.exp-image-badge svg {
  width: 16px;
  height: 16px;
}

/* "Current Position" badge */
.exp-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
  width: fit-content;
}
.current-badge {
  background: var(--gold-bg);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}
.current-badge::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-gold 2s ease-in-out infinite;
}
@keyframes pulse-gold {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.6); }
}

.exp-role {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 8px;
}

.exp-role-sub {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 28px;
}

/* Hospital block */
.exp-hospital {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(0,86,179,0.1);
}

.exp-hospital-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0,86,179,0.08);
  border: 1px solid rgba(0,86,179,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary-color);
}

.exp-hospital-icon svg {
  width: 22px;
  height: 22px;
}

.hospital-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

.hospital-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}


/* ── RIGHT CONTENT COLUMN ────────────────────────────────── */
.exp-current-content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-left: 1px solid rgba(0,86,179,0.1);
}

.exp-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
  width: fit-content;
  margin-bottom: 20px;
}

.current-badge {
  background: var(--gold-bg);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}

.current-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-gold 2s ease-in-out infinite;
}

/* Bullets */
.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 36px;
}
.exp-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.exp-bullets li strong { color: var(--text-dark); font-weight: 600; }

.bullet-icon {
  flex-shrink: 0;
  width: 18px; height: 18px;
  color: var(--primary-color);
  margin-top: 3px;
}
.bullet-icon svg { width: 100%; height: 100%; }

/* Tags */
.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(0,86,179,0.08);
}
.exp-tag {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-color);
  background: var(--white);
  border: 1px solid rgba(0,86,179,0.14);
  border-radius: 4px;
  padding: 4px 11px;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.exp-tag:hover {
  background: var(--p-soft);
  border-color: rgba(0,86,179,0.25);
  box-shadow: 0 2px 8px rgba(0,86,179,0.08);
}


/* ══════════════════════════════════════════════════════════
   PREVIOUS EXPERIENCE DIVIDER
══════════════════════════════════════════════════════════ */
.exp-prev-header {
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.exp-prev-header.in-view { opacity: 1; transform: none; }

.exp-prev-label {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.prev-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(0,86,179,0.18), rgba(0,86,179,0.04));
}
.prev-line:last-child {
  background: linear-gradient(270deg, rgba(0,86,179,0.18), rgba(0,86,179,0.04));
}


/* ══════════════════════════════════════════════════════════
   PREVIOUS CARDS
══════════════════════════════════════════════════════════ */
.exp-prev-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.exp-prev-card {
  background: var(--white);
  border: 1.5px solid rgba(0,86,179,0.1);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,86,179,0.08);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1),
              transform 0.65s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

.exp-prev-card.in-view {
  opacity: 1;
  transform: none;
}

.exp-prev-card:hover {
  box-shadow: 0 16px 48px rgba(0,86,179,0.16);
  border-color: rgba(0,86,179,0.3);
  transform: translateY(-6px);
}

/* Top accent bar */
.exp-prev-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), rgba(0,86,179,0));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

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

.epc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.epc-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  opacity: 0.15;
}

.epc-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: var(--primary-color);
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  box-shadow: 0 4px 12px rgba(0,86,179,0.2);
}

.epc-role {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 12px;
}

.epc-hospital {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0,86,179,0.1);
}

.epc-hospital svg {
  width: 16px;
  height: 16px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.epc-points {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.epc-points li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}

.epc-points li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-weight: 600;
}

.epc-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.epc-focus span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-color);
  background: var(--p-soft);
  border: 1px solid rgba(0,86,179,0.15);
  border-radius: 6px;
  padding: 5px 11px;
  transition: all 0.3s ease;
}

.exp-prev-card:hover .epc-focus span {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}


/* ══════════════════════════════════════════════════════════
   REVEAL UTILITY
══════════════════════════════════════════════════════════ */
[data-exp-reveal] { opacity: 0; }


/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1000px) {
  .exp-current-inner { grid-template-columns: 1fr; }
  .exp-current-meta {
    border-right: none;
    border-bottom: 1px solid rgba(0,86,179,0.1);
    padding: 40px 36px 32px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
  }
  .exp-stats {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 0;
    width: 100%;
  }
  .exp-stat-pill { flex: 1; min-width: 130px; }
  .exp-current-content { padding: 36px; }
}

@media (max-width: 780px) {
  .exp-prev-grid { grid-template-columns: 1fr; }
  .exp-section { padding: 80px 0 90px; }
  .exp-year-stamp { font-size: 6rem; }
}

@media (max-width: 560px) {
  .exp-container { padding: 0 18px; }
  .exp-current-inner { grid-template-columns: 1fr; }
  .exp-current-image { min-height: 280px; }
  .exp-current-content { padding: 32px 24px; border-left: none; border-top: 1px solid rgba(0,86,179,0.1); }
  .exp-prev-card { padding: 28px 22px; }
  .exp-title { font-size: 2.1rem; }
  .exp-prev-grid { grid-template-columns: 1fr; }
  .exp-role { font-size: 1.3rem; }
}



.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}
.animate-on-scroll.is-visible,
.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }


/* Ensure these classes start hidden */
.oh-reveal, 
.about-reveal, 
.animate-on-scroll, 
[data-reveal], 
[data-exp-reveal] {
    opacity: 0;
    transition: all 0.8s ease;
}

/* Force visibility when in view */
.oh-in, .in-view {
    opacity: 1 !important;
    visibility: visible !important;
}