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

/* ==========================================
   CSS VARIABLES & DESIGN SYSTEM
   ========================================== */
:root {
  /* Color Palette */
  --clr-primary: #157A8C;                  /* Rich Medical Teal */
  --clr-primary-light: hsl(192, 60%, 94%); /* Cool Teal Soft Tint */
  --clr-primary-dark: hsl(192, 68%, 24%);  /* Deep Teal */
  
  --clr-secondary: #8874E8;                /* Vibrant Indigo Accent */
  --clr-secondary-light: hsl(252, 60%, 96%);
  --clr-secondary-dark: hsl(252, 50%, 45%);
  
  --clr-gold: #EAA83C;                     /* Warm Amber Highlight */
  --clr-gold-light: hsl(36, 70%, 95%);
  --clr-gold-dark: hsl(36, 78%, 36%);
  
  --clr-text-main: #172E3F;                /* Deep Navy Slate */
  --clr-text-muted: hsl(200, 18%, 40%);    /* Soft Slate */
  
  --clr-bg: #FAFDFF;                       /* Crisp Trustworthy White */
  --clr-bg-alt: hsl(195, 65%, 97%);        /* Light Teal-Grey Background */
  --clr-border: hsl(200, 25%, 91%);
  
  --clr-success: hsl(145, 63%, 42%);
  --clr-success-light: hsl(145, 63%, 95%);
  
  /* Fonts */
  --ff-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ff-heading: 'Playfair Display', serif;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.01), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 10px 15px -3px rgba(36, 59, 83, 0.05), 0 4px 6px -2px rgba(36, 59, 83, 0.02);
  --shadow-lg: 0 20px 25px -5px rgba(36, 59, 83, 0.07), 0 10px 10px -5px rgba(36, 59, 83, 0.03);
  --shadow-gold: 0 10px 20px -3px rgba(230, 200, 138, 0.15);
  
  /* Layout */
  --container-max-w: 1280px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--ff-sans);
  color: var(--clr-text-main);
  background-color: var(--clr-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--clr-primary-dark);
}

p {
  color: var(--clr-text-muted);
}

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

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--clr-bg-alt);
}
::-webkit-scrollbar-thumb {
  background: hsl(192, 40%, 80%);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--clr-primary);
}

/* Focus outlines for Accessibility */
*:focus-visible {
  outline: 3px solid var(--clr-secondary);
  outline-offset: 3px;
}

/* ==========================================
   LAYOUT UTILITIES
   ========================================== */
.container {
  width: 90%;
  max-width: var(--container-max-w);
  margin-inline: auto;
}

.section-padding {
  padding-block: clamp(2.75rem, 5vw, 4.75rem);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: clamp(1.75rem, 3.5vw, 3rem);
}

.section-tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  background-color: var(--clr-primary-light);
  color: var(--clr-primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--clr-primary);
  color: var(--clr-bg);
}

.btn-primary:hover {
  background-color: var(--clr-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 89, 102, 0.2);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}

.btn-secondary:hover {
  background-color: var(--clr-primary-light);
  transform: translateY(-2px);
}

.btn-gold {
  background-color: var(--clr-gold);
  color: var(--clr-bg);
}

.btn-gold:hover {
  background-color: var(--clr-gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ==========================================
   HEADER / NAVIGATION
   ========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  transition: var(--transition-smooth);
}

.header-active {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.95);
  padding-block: 0.6rem;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ff-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--clr-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--clr-gold);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.logo-text span {
  color: var(--clr-text-main);
  font-weight: 400;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

.nav-cta {
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-link {
  font-weight: 500;
  color: var(--clr-text-main);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--clr-gold);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--clr-primary);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  margin-block: 6px;
  background-color: var(--clr-primary);
  transition: var(--transition-smooth);
}

@media (max-width: 1300px) {
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--clr-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 3rem 2rem;
    gap: 2rem;
    overflow-y: auto;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--clr-border);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-link {
    font-size: 1.25rem;
    width: 100%;
    padding-block: 0.5rem;
  }
  
  .nav-actions {
    display: none; /* In mobile menu, we shift actions */
  }
  
  .nav-menu .nav-cta {
    width: 100%;
    margin-top: 1rem;
  }
  
  /* Menu icon animation */
  .hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  position: relative;
  background: radial-gradient(circle at 80% 20%, var(--clr-primary-light) 0%, var(--clr-bg) 60%);
  padding-top: calc(80px + 3rem);
  overflow: hidden;
}

.hero-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 900px) {
  .hero-wrapper {
    flex-direction: row;
    justify-content: space-between;
    gap: 2.5rem;
  }

  .hero-content {
    flex: 1 1 55%;
  }

  .hero-image-wrapper {
    flex: 1 1 40%;
  }
}

.hero-content {
  max-width: 620px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #fff;
  border: 1px solid var(--clr-border);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-primary);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-tag-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--clr-gold);
  border-radius: 50%;
  animation: pulse-ring 1.5s infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-title span {
  color: var(--clr-primary);
}

.hero-desc {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--clr-border);
}

.stat-item h3 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--clr-primary);
}

.stat-item p {
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
  z-index: 2;
}

.hero-img-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 89, 102, 0.15) 0%, transparent 40%);
}

.hero-decoration-bg {
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, var(--clr-gold-light) 0%, transparent 60%);
  z-index: 1;
  opacity: 0.8;
}

.floating-badge {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 3;
  animation: float 4s ease-in-out infinite;
}

.badge-1 {
  bottom: 10%;
  left: -5%;
}

.badge-2 {
  top: 15%;
  right: -5%;
  animation-delay: 2s;
}

.badge-icon {
  width: 40px;
  height: 40px;
  background-color: var(--clr-primary-light);
  color: var(--clr-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.badge-info p {
  font-size: 0.75rem;
}

/* ==========================================
   ABOUT DOCTOR SECTION
   ========================================== */
.about {
  background-color: var(--clr-bg-alt);
}

.about-info-panel {
  background-color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--clr-border);
}

.about-name {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.about-title {
  color: var(--clr-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.about-philosophy {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--clr-text-main);
  border-left: 4px solid var(--clr-gold);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.about-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.detail-item h4 {
  font-size: 0.875rem;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.detail-item p {
  font-weight: 600;
  color: var(--clr-primary-dark);
}

.about-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--clr-border);
}

@media (min-width: 768px) {
  .about-meta {
    grid-template-columns: repeat(2, 1fr);
  }
}

.meta-box h4 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--clr-primary);
}

.meta-box h4 svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.meta-list {
  list-style: none;
}

.meta-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: var(--clr-text-muted);
}

.meta-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--clr-gold);
}

/* ==========================================
   SERVICES / SPECIALIZATIONS SECTION - FLIP CARDS
   ========================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flip-card {
  perspective: 1200px;
  height: 330px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.flip-card:hover .flip-card-inner,
.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
  box-shadow: var(--shadow-lg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  overflow: hidden;
}

.flip-card-front {
  background-color: var(--clr-bg);
  display: flex;
  flex-direction: column;
}

.flip-card-photo {
  position: relative;
  width: 100%;
  height: 58%;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Subtle dot-pattern texture so the picture panel reads as an illustration,
   not a flat block of color. */
.flip-card-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  opacity: 0.6;
}

.flip-card-photo::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  bottom: -50px;
  right: -30px;
}

/* Cycle four brand-color gradients across the picture panels */
.services-grid .flip-card:nth-child(4n+2) .flip-card-photo {
  background: linear-gradient(135deg, var(--clr-secondary), var(--clr-secondary-dark));
}
.services-grid .flip-card:nth-child(4n+3) .flip-card-photo {
  background: linear-gradient(135deg, var(--clr-gold), var(--clr-gold-dark));
}
.services-grid .flip-card:nth-child(4n+4) .flip-card-photo {
  background: linear-gradient(150deg, var(--clr-primary-dark), var(--clr-secondary-dark));
}

.flip-pic {
  position: relative;
  width: 68px;
  height: 68px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linejoin: round;
  opacity: 0.96;
  filter: drop-shadow(0 3px 6px rgba(10, 30, 40, 0.18));
}

.flip-card-icon {
  display: none;
}

.flip-card-front h3 {
  font-size: 1.1rem;
  padding: 1.1rem 1.25rem 0.35rem;
}

.flip-hint {
  padding: 0 1.25rem 1.1rem;
  margin-top: auto;
  font-size: 0.78rem;
  color: var(--clr-text-muted);
  font-weight: 500;
}

.flip-card-back {
  background: linear-gradient(150deg, var(--clr-primary-dark), var(--clr-primary));
  color: #fff;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem 1.6rem;
  text-align: left;
  overflow-y: auto;
}

.flip-card-back-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: #fff;
  flex-shrink: 0;
}

.flip-card-back-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.flip-card-back h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.flip-card-back p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  line-height: 1.55;
}

.flip-card-back ul {
  list-style: none;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.85rem;
  line-height: 1.6;
  width: 100%;
}

.flip-card-back ul li {
  position: relative;
  padding-left: 1.05rem;
}

.flip-card-back ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--clr-gold);
}

@media (max-width: 640px) {
  .flip-card {
    height: 310px;
  }
}

/* ==========================================
   WHY CHOOSE US SECTION
   ========================================== */
.why-choose {
  background-color: var(--clr-bg-alt);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 2.2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1.2rem;
  transition: var(--transition-smooth);
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  background-color: #fff;
}

.why-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--clr-gold-light);
  color: var(--clr-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.why-card-content h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.why-card-content p {
  font-size: 0.9rem;
}

/* ==========================================
   TELECONSULTATION SECTION
   ========================================== */
.teleconsult {
  position: relative;
  overflow: hidden;
}

.teleconsult::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background-color: var(--clr-primary-light);
  top: -10%;
  right: -10%;
  z-index: -1;
  opacity: 0.5;
}

.tele-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.tele-card {
  width: 100%;
  max-width: 500px;
  background-color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  border: 1px solid var(--clr-border);
  position: relative;
}

.tele-screen-mockup {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background-color: #1a2530;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.tele-doctor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tele-overlay-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: rgba(220, 38, 38, 0.85);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tele-overlay-badge span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #fff;
  border-radius: 50%;
  animation: pulse-ring 1s infinite;
}

.tele-patient-thumbnail {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 80px;
  aspect-ratio: 3/4;
  border-radius: var(--radius-sm);
  border: 2px solid #fff;
  overflow: hidden;
  background-color: #eee;
  box-shadow: var(--shadow-md);
}

.tele-patient-thumbnail svg {
  width: 100%;
  height: 100%;
  padding: 10px;
  color: var(--clr-text-muted);
}

.tele-controls {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.control-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--clr-bg-alt);
  color: var(--clr-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.control-circle-red {
  background-color: hsl(0, 75%, 95%);
  color: hsl(0, 75%, 50%);
}

.control-circle:hover {
  transform: scale(1.05);
}

.tele-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.benefit-item {
  display: flex;
  gap: 1rem;
}

.benefit-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--clr-primary-light);
  color: var(--clr-primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */
.testimonials {
  background-color: var(--clr-bg-alt);
}

.testimonials-grid {
  margin-bottom: 3rem;
}

.testimonial-card {
  background-color: #fff;
  border: 1px solid var(--clr-border);
  padding: 2.5rem 2.2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.rating-stars {
  color: var(--clr-gold);
  display: flex;
  gap: 0.2rem;
  margin-bottom: 1.25rem;
}

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

.testimonial-text {
  font-style: italic;
  color: var(--clr-text-main);
  font-size: 0.975rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.patient-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.patient-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--clr-primary-light);
  color: var(--clr-primary);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
}

.patient-details h4 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.patient-details p {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--clr-gold-dark);
}

/* ==========================================
   APPOINTMENT BOOKING SECTION
   ========================================== */
.booking-section {
  background-color: var(--clr-bg);
}

.booking-panel {
  display: grid;
  grid-template-columns: 1fr;
  background-color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--clr-border);
  overflow: hidden;
}

@media (min-width: 992px) {
  .booking-panel {
    grid-template-columns: 4fr 5fr;
  }
}

.booking-info {
  background: linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-primary) 100%);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.booking-info h2 {
  color: #fff;
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  margin-bottom: 1.5rem;
}

.booking-info-p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
}

.booking-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.booking-stat-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.booking-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-gold);
}

.booking-stat-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.booking-stat-desc h4 {
  color: #fff;
  font-size: 0.95rem;
}

.booking-stat-desc p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.booking-form-wrapper {
  padding: clamp(2rem, 6vw, 4rem);
}

/* Accessible and Interactive Form CSS */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

@media (min-width: 600px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-primary-dark);
}

.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  background-color: var(--clr-bg-alt);
  color: var(--clr-text-main);
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--clr-primary);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(16, 89, 102, 0.1);
}

/* User interaction validation styles as per modern web guidelines */
.form-input:user-valid {
  border-color: var(--clr-success);
}
.form-input:user-invalid {
  border-color: hsl(0, 75%, 50%);
}

.error-message {
  display: none;
  font-size: 0.75rem;
  color: hsl(0, 75%, 50%);
  margin-top: 0.25rem;
}

.form-input:user-invalid + .error-message {
  display: block;
}

.booking-whatsapp-note {
  text-align: center;
  font-size: 0.875rem;
  margin-top: 1rem;
  color: var(--clr-text-muted);
}

.booking-whatsapp-note a {
  color: var(--clr-success);
  font-weight: 700;
}

/* ==========================================
   HEALTH BLOG SECTION
   ========================================== */
.blog {
  background-color: var(--clr-bg-alt);
}

.blog-card {
  background-color: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.blog-img-box {
  position: relative;
  aspect-ratio: 16/10;
  background-color: var(--clr-primary-light);
  overflow: hidden;
}

.blog-img-box svg {
  width: 100%;
  height: 100%;
  padding: 40px;
  color: var(--clr-primary);
  opacity: 0.6;
  transition: var(--transition-smooth);
}

.blog-card:hover .blog-img-box svg {
  transform: scale(1.05);
}

.blog-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--clr-gold);
  color: var(--clr-bg);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

.blog-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta-info {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  margin-bottom: 0.75rem;
}

.blog-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  flex-grow: 1;
}

.blog-card:hover h3 {
  color: var(--clr-primary);
}

.blog-btn {
  background: none;
  border: none;
  color: var(--clr-primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-block: 0.5rem;
}

.blog-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  transition: var(--transition-smooth);
}

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

/* ==========================================
   FAQ SECTION (NATIVE DETAILS/SUMMARY)
   ========================================== */
.faq-list {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Styled details and summary */
details[name="faq"] {
  background-color: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition-smooth);
}

details[name="faq"][open] {
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-md);
}

summary {
  list-style: none;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--clr-primary-dark);
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--clr-bg-alt);
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

details[open] summary summary-marker {
  transform: rotate(180deg);
  background-color: var(--clr-primary);
  color: #fff;
}

summary-marker svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 3;
}

.faq-content {
  padding: 0 1.5rem 1.5rem;
  color: var(--clr-text-muted);
}

/* ==========================================
   CLINIC INFORMATION & INTERACTIVE MAP
   ========================================== */
.clinic-info {
  background-color: var(--clr-bg);
  border-bottom: 1px solid var(--clr-border);
}

.clinic-wrapper {
  align-items: flex-start;
}

.clinic-details-card {
  background-color: var(--clr-bg-alt);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-border);
  height: 100%;
}

.clinic-meta-rows {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.clinic-row {
  display: flex;
  gap: 1.2rem;
}

.clinic-row-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--clr-primary-light);
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.clinic-row-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.clinic-row-content h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.clinic-row-content p {
  font-size: 0.95rem;
  white-space: pre-line;
}

/* Custom Interactive SVG Map Component */
.clinic-map-panel {
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--clr-border);
  background-color: var(--clr-bg-alt);
  display: flex;
  flex-direction: column;
}

.map-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background-color: hsl(205, 30%, 92%);
  overflow: hidden;
}

.map-svg {
  width: 100%;
  height: 100%;
}

.map-pin {
  cursor: pointer;
  transition: var(--transition-smooth);
}

.map-pin:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.map-pin-pulse {
  animation: pulse-ring 1.8s infinite;
}

.map-overlay-popover {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--clr-border);
  padding: 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 260px;
  z-index: 10;
}

.map-overlay-popover h4 {
  font-size: 0.95rem;
  color: var(--clr-primary);
  margin-bottom: 0.25rem;
}

.map-overlay-popover p {
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.map-directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--clr-gold-dark);
  cursor: pointer;
}

.map-bar {
  background-color: #fff;
  padding: 1.25rem;
  border-top: 1px solid var(--clr-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.map-bar-info {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-text-main);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
  background-color: var(--clr-bg-alt);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 992px) {
  .contact-layout {
    grid-template-columns: 2fr 3fr;
  }
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  background-color: #fff;
  border: 1px solid var(--clr-border);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  transition: var(--transition-smooth);
}

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

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--clr-primary-light);
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.contact-card-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-card-content p {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.contact-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--clr-secondary);
}

.contact-card-link-whatsapp {
  color: var(--clr-success);
}

.contact-form-card {
  background-color: #fff;
  border: 1px solid var(--clr-border);
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background-color: var(--clr-primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 5rem;
  padding-bottom: 2rem;
  font-size: 0.9rem;
  border-top: 5px solid var(--clr-gold);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 576px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-top {
    grid-template-columns: 4fr 2fr 2fr 3fr;
  }
}

.footer-logo {
  color: #fff;
  margin-bottom: 1.5rem;
}

.footer-logo .logo-icon {
  color: var(--clr-gold);
}

.footer-about-text {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background-color: var(--clr-gold);
  color: var(--clr-primary-dark);
  transform: translateY(-3px);
}

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

.footer-col h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--clr-gold);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-hours-list {
  list-style: none;
}

.footer-hours-list li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.4rem;
}

.footer-hours-list li span:last-child {
  font-weight: 600;
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-credit {
  max-width: 450px;
  font-size: 0.8rem;
}

.footer-developer-promo {
  font-size: 0.85rem;
  color: var(--clr-gold-light);
  max-width: 400px;
}

.footer-developer-promo a {
  text-decoration: underline;
  color: #fff;
  font-weight: 600;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
}

.footer-legal-links a:hover {
  color: #fff;
}

/* ==========================================
   FLOATING WHATSAPP BUTTON
   ========================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: hsl(142, 70%, 45%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
  z-index: 999;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.floating-whatsapp:hover {
  transform: scale(1.1) translateY(-5px);
  background-color: hsl(142, 70%, 40%);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.6);
}

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

/* ==========================================
   MODAL DIALOG (BLOG POPUP / APPOINTMENT DIALOG)
   ========================================== */
dialog.custom-modal {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 700px;
  width: 90%;
  margin: auto;
  box-shadow: var(--shadow-lg);
  background-color: #fff;
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: scale(0.9);
  opacity: 0;
}

dialog.custom-modal[open] {
  transform: scale(1);
  opacity: 1;
}

/* Backdrop styling */
dialog.custom-modal::backdrop {
  background-color: rgba(10, 37, 64, 0.6);
  backdrop-filter: blur(6px);
  transition: opacity 0.3s ease;
}

.modal-header {
  background-color: var(--clr-primary-light);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--clr-border);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clr-primary-dark);
}

.modal-close {
  background: none;
  border: none;
  color: var(--clr-primary-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  background-color: rgba(16, 89, 102, 0.1);
}

.modal-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}

.modal-body {
  padding: 2.5rem 2rem;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-body h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.modal-body p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

.modal-body ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.modal-body li {
  margin-bottom: 0.5rem;
  color: var(--clr-text-muted);
}

.modal-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--clr-border);
  background-color: var(--clr-bg-alt);
  display: flex;
  justify-content: flex-end;
}

/* ==========================================
   TOAST / CUSTOM NOTIFICATION STYLES
   ========================================== */
.toast-container {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background-color: #fff;
  border-left: 5px solid var(--clr-primary);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 300px;
  max-width: 450px;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: auto;
}

.toast.show {
  transform: translateX(0);
}

.toast-success {
  border-left-color: var(--clr-success);
}

.toast-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.toast-success .toast-icon {
  background-color: var(--clr-success-light);
  color: var(--clr-success);
}

.toast-success .toast-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 3;
}

.toast-content h4 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.toast-content p {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
}

/* ==========================================
   ANIMATIONS & KEYFRAMES
   ========================================== */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(234, 168, 60, 0.5);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(234, 168, 60, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(234, 168, 60, 0);
  }
}

/* Scroll entry animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Staggered delay for grid lists using child elements */
.reveal-grid > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-grid.reveal-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-grid.reveal-visible > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-grid.reveal-visible > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-grid.reveal-visible > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-grid.reveal-visible > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-grid.reveal-visible > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-grid.reveal-visible > *:nth-child(6) { transition-delay: 0.6s; }
.reveal-grid.reveal-visible > *:nth-child(7) { transition-delay: 0.7s; }
.reveal-grid.reveal-visible > *:nth-child(8) { transition-delay: 0.8s; }
.reveal-grid.reveal-visible > *:nth-child(9) { transition-delay: 0.9s; }

/* ==========================================
   TIMELINE (EXPERIENCE SECTION)
   ========================================== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8px;
  width: 2px;
  background-color: var(--clr-primary-light);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -30px;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #fff;
  border: 3px solid var(--clr-primary);
  transition: var(--transition-smooth);
  z-index: 2;
}

.timeline-item:hover .timeline-marker {
  background-color: var(--clr-gold);
  border-color: var(--clr-gold-dark);
  transform: scale(1.2);
}

.timeline-content {
  background-color: #fff;
  padding: 1.8rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-border);
  transition: var(--transition-smooth);
}

.timeline-content:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.timeline-date {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--clr-primary-light);
  color: var(--clr-primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50px;
  margin-bottom: 0.8rem;
}

.timeline-title {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.timeline-org {
  font-weight: 600;
  color: var(--clr-gold-dark);
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

/* ==========================================
   PATIENT JOURNEY SECTION
   ========================================== */
.journey-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  position: relative;
}

@media (min-width: 768px) {
  .journey-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.journey-step {
  text-align: center;
  position: relative;
  background-color: #fff;
  padding: 2.2rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.journey-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-secondary);
}

.journey-num {
  width: 50px;
  height: 50px;
  background-color: var(--clr-secondary-light);
  color: var(--clr-secondary-dark);
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  border: 2px solid var(--clr-secondary);
  transition: var(--transition-smooth);
}

.journey-step:hover .journey-num {
  background-color: var(--clr-secondary);
  color: #fff;
}

.journey-step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.journey-step p {
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .journey-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 50%;
    right: -1.5rem;
    transform: translateY(-55%);
    font-size: 1.5rem;
    color: var(--clr-primary);
    pointer-events: none;
  }
}

/* ==========================================
   GALLERY SECTION
   ========================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 220px;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
  }
  .gallery-item-tall {
    grid-row: span 2;
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--clr-border);
  background-color: var(--clr-bg-alt);
  transition: var(--transition-smooth);
}

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-item::after {
  content: attr(data-caption);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.9rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to top, rgba(10, 30, 40, 0.75), transparent);
  opacity: 0;
  transform: translateY(6px);
  transition: var(--transition-smooth);
}

.gallery-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item-fallback {
  cursor: default;
}

.gallery-item-fallback img {
  display: none;
}

.gallery-item-fallback:hover {
  transform: none;
  box-shadow: none;
}

.gallery-item-fallback::after {
  display: none;
}

.gallery-fallback-icon {
  display: none;
}

.gallery-item-fallback .gallery-fallback-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 100%;
  color: var(--clr-primary);
  background: linear-gradient(135deg, var(--clr-primary-light), var(--clr-secondary-light));
}

.gallery-fallback-icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
}

.gallery-fallback-icon span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--clr-text-muted);
}

.gallery-lightbox {
  border: none;
  border-radius: var(--radius-md);
  padding: 0;
  max-width: 90vw;
  max-height: 90vh;
  background: #0a1620;
  position: fixed;
  inset: 0;
  margin: auto;
}

.gallery-lightbox::backdrop {
  background-color: rgba(8, 20, 28, 0.85);
  backdrop-filter: blur(4px);
}

.gallery-lightbox img {
  display: block;
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  margin: 0 auto;
}

.gallery-lightbox p {
  color: #fff;
  text-align: center;
  padding: 0.9rem 1.5rem 1.2rem;
  font-size: 0.9rem;
}

.gallery-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.gallery-lightbox-close svg {
  width: 18px;
  height: 18px;
}

/* Responsive about flex layout */
.about-flex-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-flex-wrapper {
    flex-direction: row;
    align-items: stretch;
  }
}

.about-image-panel {
  flex: 1;
  width: 100%;
  display: flex;
}

.about-image-panel img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 460px;
  object-fit: cover;
  object-position: center 20%;
}
