@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ==========================================================================
   DESIGN SYSTEM VARIABLES
   ========================================================================== */
:root {
  /* Colors */
  --color-white: #ffffff;
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #F0FCFC; /* Very light teal background for alternate sections */
  --color-bg-tertiary: #E0F7F7;  /* Soft background cards */
  
  --color-text-main: #333333;    /* Primary Body Text (Dark Gray) */
  --color-text-muted: #555555;   /* Section Description / Muted text */
  --color-text-dark: #004D4D;    /* Deep Teal Heading/Primary Text for crisp legibility */
  
  --color-teal: #00B5B5;         /* Primary Brand Color (Teal) */
  --color-teal-dark: #008C8C;    /* Secondary Brand Color (Dark Teal) */
  --color-teal-light: #F0FCFC;   /* Light Background Sections */
  --color-teal-lightest: #F0FCFC;/* Ultra Light Background */
  
  --color-lime: #FC7600;         /* Primary Accent/Highlight Color (Orange) */
  --color-lime-light: #E0F7F7;   /* Soft Background Cards */
  --color-lime-accent: #FC7600;  /* Interactive Elements */
  --color-lime-text: #FC7600;    /* Highlighted text */

  --color-highlight: #FC7600;    /* Accent Highlight (Orange) */

  --color-medical-blue: #004D4D;
  --color-medical-blue-light: #F0FCFC;
  
  --color-border: #D0F2F2;       /* Border matching the brand theme */
  --color-shadow: rgba(0, 181, 181, 0.04);
  --color-shadow-strong: rgba(0, 181, 181, 0.08);

  /* Fonts */
  --font-headings: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;

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

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-primary);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 0;
}

/* For mobile devices, add padding-bottom to ensure content isn't covered by sticky bottom bar */
@media (max-width: 767px) {
  body {
    padding-bottom: 70px;
  }
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  color: var(--color-text-dark);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

h1, h2, h3 {
  color: var(--color-teal);
}

.highlight-text {
  color: var(--color-highlight);
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
}

/* Card titles use SemiBold (600) per guidelines */
.why-card h3,
.treatment-card h3,
.doctor-card-body h3,
.blog-card h3,
.tech-card h3 {
  font-weight: 600;
}

h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  font-weight: 500;
  line-height: 1.8;
}

.text-muted,
.section-header p {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.8;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.section-bg {
  background-color: var(--color-bg-secondary);
}

.text-center { text-align: center; }

.section-header {
  max-width: 700px;
  margin: 0 auto var(--space-lg) auto;
}

.section-header h2 {
  font-size: 2.25rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  background-color: var(--color-lime-light);
  color: var(--color-lime-text);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(0, 181, 181, 0.15);
}

.badge-teal {
  background-color: var(--color-teal-lightest);
  color: var(--color-teal-dark);
  border: 1px solid var(--color-teal-light);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition-normal);
  text-align: center;
  font-size: 0.95rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

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

.btn-primary:hover {
  background-color: var(--color-lime);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 181, 181, 0.25);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-teal);
  border: 2px solid var(--color-teal);
}

.btn-secondary:hover {
  background-color: var(--color-lime);
  color: var(--color-white);
  border-color: var(--color-lime);
  transform: translateY(-2px);
}

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

.btn-accent:hover {
  background-color: var(--color-lime);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 181, 181, 0.25);
}

.btn-whatsapp {
  background-color: #25d366;
  color: var(--color-white);
}

.btn-whatsapp:hover {
  background-color: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(37, 211, 102, 0.2);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-normal);
}

.header-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 0.5rem 0;
}

.nav-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  justify-self: start;
  width: fit-content;
}

.logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: all var(--transition-fast) ease;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  line-height: 1;
}

.logo-text strong {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--color-teal);
  display: block;
  line-height: 1;
}

.logo-text span {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #475569;
  display: block;
  letter-spacing: 1.5px;
  line-height: 1;
  margin-top: 4px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
  justify-self: center;
}

.nav-link {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text-main);
  padding: 0.5rem 0.25rem;
  position: relative;
  white-space: nowrap;
}

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

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

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

.nav-right-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  justify-self: end;
}

.btn-phone-circle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--color-white);
  color: var(--color-teal);
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px -1px var(--color-shadow);
  transition: all var(--transition-normal);
  flex-shrink: 0;
}

.btn-phone-circle:hover {
  background-color: var(--color-teal-lightest);
  border-color: var(--color-teal);
  transform: scale(1.08) translateY(-1.5px);
  box-shadow: 0 10px 15px -3px rgba(13, 148, 136, 0.15);
  color: var(--color-teal-dark);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  z-index: 101;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--color-text-dark);
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
}

/* Hamburger Active State */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  background-color: var(--color-bg-primary);
  position: relative;
}

.hero::after {
  display: none;
}

.hero-image-wrapper {
  height: 100%;
  min-height: 450px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-lg);
  align-items: center;
  position: relative;
  z-index: 2;
  padding-top: var(--space-xl);
  padding-bottom: 4.25rem;
  background-image: linear-gradient(90deg, #ffffff 0%, #ffffff 35%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, 0) 100%), url('/src/images/hero-doctor-bg.png');
  background-position: right 6% center;
  background-repeat: no-repeat;
  background-size: auto 100%;
}

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

.hero-content h1 {
  font-size: 3.25rem;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.hero-content p {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-text-main);
  margin-bottom: var(--space-md);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.trust-indicators {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: var(--space-md);
}

.indicator-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-dark);
}

.indicator-item svg {
  color: var(--color-lime);
  flex-shrink: 0;
}

/* Hero Right Side - Image and Cards */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper .hero-image-container {
  display: none;
}

.hero-image-container {
  width: 100%;
  max-width: 450px;
  aspect-ratio: 5 / 4;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 77, 77, 0.15);
  border: 4px solid var(--color-white);
  border-bottom: 8px solid var(--color-lime-accent);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-slow);
}

.hero-image-container:hover .hero-image {
  transform: scale(1.04);
}

/* Floating Trust Cards */
.floating-card {
  position: absolute;
  background-color: var(--color-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--color-border);
  animation: float 4s ease-in-out infinite;
}

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

.floating-card-1 {
  top: 15%;
  left: -5%;
  animation-delay: 0s;
}

.floating-card-2 {
  bottom: 25%;
  right: -5%;
  animation-delay: 1.5s;
}

.floating-card-3 {
  bottom: 5%;
  left: 5%;
  animation-delay: 3s;
}

.floating-card-icon {
  width: 36px;
  height: 36px;
  background-color: var(--color-teal-lightest);
  color: var(--color-teal);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-card-info strong {
  display: block;
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}

.floating-card-info span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: uppercase;
}

/* ==========================================================================
   APPOINTMENT BOOKING SECTION
   ========================================================================== */
.booking-section {
  position: relative;
  z-index: 10;
  margin-top: 32px;
  padding-top: 0;
}

.booking-wrapper {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

.booking-info {
  background-image: linear-gradient(rgba(0, 77, 77, 0.45), rgba(0, 77, 77, 0.45)), url('/src/images/smiling-teeth.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-white);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.booking-info h2 {
  color: var(--color-white);
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 5px rgba(0, 77, 77, 0.5);
}

.booking-info p {
  color: #ffffff;
  margin-bottom: var(--space-md);
  text-shadow: 0 1px 3px rgba(0, 77, 77, 0.5);
}

.booking-contact-list {
  list-style: none;
}

.booking-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.booking-contact-item svg {
  color: var(--color-lime-accent);
  filter: drop-shadow(0 1px 2px rgba(0, 77, 77, 0.4));
}

.booking-contact-item strong,
.booking-contact-item span {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 77, 77, 0.5);
}

.booking-form-container {
  padding: var(--space-lg);
}

.booking-form {
  display: flex;
  flex-direction: column;
}

.booking-form-fields-scroll {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.booking-form-footer {
  width: 100%;
}

.form-group-full {
  grid-column: span 2;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus {
  border-color: var(--color-teal);
  background-color: var(--color-white);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.booking-form textarea.form-input {
  resize: vertical;
  min-height: 80px;
}

.booking-form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* BOOKING FORM SEGMENTED TOGGLE SWITCH */
.booking-toggle-wrapper {
  grid-column: 1 / -1;
  margin-bottom: 0.5rem;
}

.booking-toggle-container {
  position: relative;
  display: flex;
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 4px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02), var(--shadow-sm);
  user-select: none;
}

.booking-toggle-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  bottom: 4px;
  width: calc(50% - 4px);
  background: linear-gradient(135deg, var(--color-teal) 0%, #009c9c 100%);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(0, 181, 181, 0.25);
  transition: transform 300ms cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
  will-change: transform;
}

/* Slide to right when select-treatment is active */
.booking-toggle-container.treatment-active .booking-toggle-indicator {
  transform: translateX(100%);
}

.booking-toggle-btn {
  position: relative;
  flex: 1;
  background: none;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-dark);
  cursor: pointer;
  z-index: 2;
  transition: color 0.3s ease;
  border-radius: var(--radius-full);
  text-align: center;
  font-family: inherit;
  outline: none;
}

.booking-toggle-btn.active {
  color: var(--color-white);
}

.booking-toggle-btn:hover:not(.active) {
  color: var(--color-teal);
}

/* TREATMENT SELECT COLLAPSE ANIMATION */
.treatment-collapse-wrapper {
  opacity: 1;
  max-height: 120px;
  overflow: hidden;
  visibility: visible;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              margin 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.35s step-start;
  transform: translateY(0);
}

.treatment-collapse-wrapper.collapsed {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  margin-bottom: 0 !important;
  padding-top: 0;
  padding-bottom: 0;
  transform: translateY(-8px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              margin 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.35s step-end;
}

/* SUCCESS MESSAGE */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-md);
}

.form-success-icon {
  width: 60px;
  height: 60px;
  background-color: var(--color-lime-light);
  color: var(--color-lime);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

.form-success h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--color-text-muted);
}

/* Spinner Rotation Keyframes */
@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

/* SUCCESS MODAL OVERLAY */
.success-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.success-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.success-modal-overlay.active .success-modal-backdrop {
  opacity: 1;
}

/* SUCCESS MODAL CARD */
.success-modal-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1),
              0 1px 3px rgba(0, 0, 0, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
  text-align: center;
  z-index: 10002;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.4s ease;
}

.success-modal-overlay.active .success-modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* ICON & TOP HEADER */
.success-modal-icon-wrapper {
  position: relative;
  width: auto;
  height: auto;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-modal-tooth-img {
  width: 180px;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.8);
  transition: transform 450ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 450ms ease;
  z-index: 2;
}

.success-modal-overlay.active .success-modal-tooth-img {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 640px) {
  .success-modal-card {
    padding: 2rem 1.5rem;
  }
}

/* MODAL TYPOGRAPHY */
.success-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.success-modal-body {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.success-modal-highlight {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-teal);
  margin-bottom: 0.75rem;
}

.success-modal-urgent {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--color-text-dark);
  font-size: 0.9rem;
}

/* ACTIONS */
.success-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.success-modal-actions .btn {
  flex: 1;
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-modal-close {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn-modal-close:hover {
  background: var(--color-border);
  color: var(--color-text-dark);
}

.btn-modal-call {
  background: linear-gradient(135deg, var(--color-teal) 0%, #009c9c 100%);
  border: none;
  color: var(--color-white);
  box-shadow: 0 4px 10px rgba(0, 181, 181, 0.2);
}

.btn-modal-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 181, 181, 0.3);
  color: var(--color-white);
}

/* SUBMIT BUTTON MORPH & SUCCESS STATE */
.booking-form .btn.btn-success-morph {
  background: linear-gradient(135deg, var(--color-teal) 0%, #009c9c 100%) !important;
  color: var(--color-white) !important;
  box-shadow: 0 4px 15px rgba(0, 181, 181, 0.4) !important;
  border: none !important;
  cursor: default !important;
  transform: none !important;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* DENTAL PARTICLES & SMILE SPARKLES CANVAS/CONTAINER */
.success-particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 99999;
}

.modal-sparkles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10001;
  overflow: hidden;
}

.smile-sparkle {
  position: absolute;
  color: var(--color-teal);
  opacity: 0;
  pointer-events: none;
  animation: sparkle-rise 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes sparkle-rise {
  0% {
    transform: translateY(20px) scale(0.6) rotate(-5deg);
    opacity: 0;
  }
  20% {
    opacity: 0.15;
  }
  100% {
    transform: translateY(-50px) scale(1.1) rotate(10deg);
    opacity: 0;
  }
}

/* ==========================================================================
   WHY CHOOSE APEX DENTAL (CAROUSEL SLIDER REDESIGN)
   ========================================================================== */
.why-slider-container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.why-slider-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius-lg);
  touch-action: pan-y;
}

.why-slider-track {
  display: flex;
  width: 100%;
  transition: transform 1000ms ease-in-out;
  will-change: transform;
}

.why-slide {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: 1rem;
  opacity: 0.3;
  transition: opacity 1000ms ease-in-out;
}

.why-slide.active {
  opacity: 1;
}

.why-slide-content {
  flex: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  transform: translate3d(-30px, 0, 0);
  transition: transform 500ms cubic-bezier(0.25, 1, 0.5, 1), opacity 500ms ease;
  will-change: transform, opacity;
}

.why-slide.active .why-slide-content {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: transform 1000ms cubic-bezier(0.25, 1, 0.5, 1) 150ms, opacity 1000ms ease 150ms;
}

.why-slide-icon {
  width: 54px;
  height: 54px;
  background-color: var(--color-teal-lightest);
  color: var(--color-teal);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid var(--color-lime-accent);
  transition: all var(--transition-fast);
}

.why-slide-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-text-dark);
  margin-bottom: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.why-slide-text {
  font-size: 1.025rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.why-slide-visual {
  flex: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.95) translate3d(30px, 0, 0);
  transition: transform 500ms cubic-bezier(0.25, 1, 0.5, 1), opacity 500ms ease;
  will-change: transform, opacity;
}

.why-slide.active .why-slide-visual {
  opacity: 1;
  transform: scale(1) translate3d(0, 0, 0);
  transition: transform 1200ms cubic-bezier(0.25, 1, 0.5, 1) 150ms, opacity 1200ms ease 150ms;
}

.why-slide-visual-inner {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 3;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: 0 15px 35px var(--color-shadow-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.why-slide-visual-inner:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 45px rgba(0, 77, 77, 0.12);
  border-color: var(--color-highlight);
}

.why-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.why-slide-visual-inner:hover .why-slide-img {
  transform: scale(1.05);
}

.why-visual-svg {
  width: 100%;
  height: 100%;
}

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

.why-slider-nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background-color: var(--color-white);
  color: var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px var(--color-shadow);
  transition: all var(--transition-fast);
}

.why-slider-nav-btn:hover {
  background-color: var(--color-teal);
  color: var(--color-white);
  border-color: var(--color-teal);
  transform: scale(1.08);
}

.why-slider-dots {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.why-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-bg-tertiary);
  border: none;
  padding: 0;
  transition: all var(--transition-fast);
}

.why-dot.active {
  background-color: var(--color-teal);
  width: 24px;
  border-radius: 5px;
}

/* Redesigned SVG Micro-Animations */
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spin-slow {
  animation: spinSlow 22s linear infinite;
  transform-origin: center;
}

@keyframes spinFast {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
.spin-fast {
  animation: spinFast 12s linear infinite;
  transform-origin: center;
}

@keyframes laserSweep {
  0% { transform: translateY(-30px); opacity: 0.35; }
  50% { transform: translateY(45px); opacity: 0.85; }
  100% { transform: translateY(-30px); opacity: 0.35; }
}
.laser-sweep {
  animation: laserSweep 4s ease-in-out infinite;
}

@keyframes pulseSlow {
  0% { transform: scale(0.96); opacity: 0.35; }
  50% { transform: scale(1.04); opacity: 0.65; }
  100% { transform: scale(0.96); opacity: 0.35; }
}
.pulse-slow {
  animation: pulseSlow 4.5s ease-in-out infinite;
  transform-origin: center;
}

@keyframes pulseNormal {
  0% { transform: scale(0.94); opacity: 0.8; }
  50% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(0.94); opacity: 0.8; }
}
.pulse-normal {
  animation: pulseNormal 3s ease-in-out infinite;
  transform-origin: center;
}

@keyframes floatSlow {
  0% { transform: translateY(-6px); }
  50% { transform: translateY(6px); }
  100% { transform: translateY(-6px); }
}
.float-slow {
  animation: floatSlow 3.5s ease-in-out infinite;
}

@keyframes steamBubble {
  0% { transform: translateY(12px); opacity: 0; }
  50% { opacity: 0.85; }
  100% { transform: translateY(-18px); opacity: 0; }
}
.steam-bubble-1 { animation: steamBubble 3.2s ease-in-out infinite; transform-origin: center; }
.steam-bubble-2 { animation: steamBubble 4.2s ease-in-out infinite 0.8s; transform-origin: center; }
.steam-bubble-3 { animation: steamBubble 3.6s ease-in-out infinite 0.4s; transform-origin: center; }
.steam-bubble-4 { animation: steamBubble 4.6s ease-in-out infinite 1.2s; transform-origin: center; }

/* ==========================================================================
   TREATMENTS SECTION
   ========================================================================== */
.treatments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 1025px) {
  #treatments .treatments-grid > .treatment-card:nth-child(10) {
    display: none;
  }
}

.treatment-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 6px var(--color-shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.treatment-card:hover,
.treatment-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 77, 77, 0.12);
  border-color: var(--color-teal);
}

.treatment-card-image {
  height: 220px;
  width: 100%;
  background-color: var(--color-bg-tertiary);
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.treatment-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.treatment-card:hover .treatment-card-image img,
.treatment-card:focus-within .treatment-card-image img {
  transform: scale(1.08);
}

.treatment-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

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

.treatment-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.treatment-card-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  margin-top: auto;
}

.treatment-card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-teal);
  border: 1.5px solid var(--color-teal);
  padding: 0.5rem 0.5rem;
  border-radius: var(--radius-sm);
  text-align: center;
  height: 42px;
  box-sizing: border-box;
}

.treatment-card-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.treatment-card-link:hover {
  color: var(--color-teal-dark);
}

.treatment-card-book {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-dark);
  background-color: var(--color-lime-light);
  border: 1.5px solid transparent;
  padding: 0.5rem 0.5rem;
  border-radius: var(--radius-sm);
  text-align: center;
  height: 42px;
  position: relative;
  z-index: 2;
  transition: background-color var(--transition-fast);
  box-sizing: border-box;
}

.treatment-card-book:hover {
  background-color: var(--color-lime-accent);
}

.treatment-card-link:focus,
.treatment-card-book:focus {
  outline: 2px solid var(--color-teal);
  outline-offset: 4px;
}

/* ==========================================================================
   INDIVIDUAL TREATMENT DETAIL TEMPLATE STYLING
   ========================================================================== */
.treatment-detail-hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-xl) 0;
  background-color: var(--color-teal-dark);
  color: var(--color-white);
}

.hero-parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: 0;
  opacity: 0;
  filter: blur(1px);
  /* smooth fade-in animation for background image */
  animation: heroBgFadeIn 1.5s ease-out forwards;
}

@keyframes heroBgFadeIn {
  from {
    opacity: 0;
    transform: scale(1);
  }
  to {
    opacity: 0.85;
    transform: scale(1.04);
  }
}

@media (pointer: coarse) {
  .hero-parallax-bg {
    background-attachment: scroll;
    /* Optimize cropping on tablets and mobile to preserve key visual element visibility */
    background-position: center right 25%;
  }
}

@media (max-width: 576px) {
  .hero-parallax-bg {
    /* Optimize image position for mobile so important parts remain visible and text stays readable */
    background-position: center right 15%;
  }
}

.hero-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Premium lighting overlay: combining linear and radial gradients for a soft studio light effect */
  background: 
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12) 0%, rgba(0, 77, 77, 0) 65%),
    linear-gradient(90deg, rgba(0, 77, 77, 0.8) 0%, rgba(0, 77, 77, 0.5) 50%, rgba(0, 77, 77, 0.2) 100%);
  z-index: 1;
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  animation: heroContentFadeIn 1s ease-out forwards;
}

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

.treatment-detail-hero h1 {
  color: var(--color-white);
  font-size: 3rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 77, 77, 0.5);
}

.treatment-detail-hero p.hero-tagline {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.25rem;
  max-width: 700px;
  line-height: 1.6;
  margin-bottom: 1.75rem;
  text-shadow: 0 1px 3px rgba(0, 77, 77, 0.4);
}

/* Hero CTA Button Group Layout */
.hero-cta-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
  flex-wrap: wrap;
  animation: heroFadeInUp 0.8s ease-out forwards;
}

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

/* Hero CTA Buttons */
.btn-hero-booking {
  background-color: var(--color-teal);
  color: var(--color-white);
  border: 2px solid var(--color-teal);
  padding: 0.8rem 2rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 181, 181, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-hero-booking:hover {
  background-color: var(--color-lime);
  color: var(--color-white);
  border-color: var(--color-lime);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(252, 118, 0, 0.3);
}

.btn-hero-booking:focus {
  outline: 2px solid var(--color-lime);
  outline-offset: 4px;
}

.btn-hero-call {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.6);
  padding: 0.8rem 2rem;
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.btn-hero-call:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn-hero-call:focus {
  outline: 2px solid var(--color-white);
  outline-offset: 4px;
}

/* Stack buttons vertically on mobile screens */
@media (max-width: 576px) {
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .btn-hero-booking, .btn-hero-call {
    width: 100%;
    text-align: center;
  }
}

.treatment-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.detail-block {
  margin-bottom: var(--space-lg);
}

.detail-block h2 {
  font-size: 1.75rem;
  margin-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-teal-light);
  padding-bottom: 0.5rem;
}

.symptom-list, .benefit-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.symptom-item, .benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.symptom-item svg, .benefit-item svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.symptom-item svg { color: #f43f5e; }
.benefit-item svg { color: var(--color-teal); }

.procedure-step-wrapper {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.proc-step {
  display: flex;
  gap: 1rem;
}

.proc-step-num {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--color-teal);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.proc-step-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.proc-step-content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.detail-sidebar-card {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  position: sticky;
  top: 100px;
  margin-bottom: var(--space-md);
}

.detail-sidebar-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
}

/* ==========================================================================
   SMILE TRANSFORMATION GALLERY (PREMIUM)
   ========================================================================== */
.transformations-carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px; /* Room for nav buttons */
}

.transformations-track-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 10px 0 24px 0; /* Add top/bottom padding for shadows */
}

.transformations-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.transformation-card {
  flex: 0 0 calc(33.333% - 16px);
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 181, 181, 0.05);
  border: 1px solid var(--color-border);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.transformation-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 181, 181, 0.12);
  border-color: var(--color-teal);
}

.transformation-slider-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3; /* Sleek medical image proportions */
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  background-color: #f1f5f9;
}

.transformation-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@keyframes transformation-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.transformation-image.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: transformation-shimmer 1.5s infinite linear;
}

.transformation-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.transformation-image img.loaded {
  opacity: 1;
}

.transformation-before {
  z-index: 2; /* Top Layer */
  /* Clip-path will be controlled by JS, default is 50% split */
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.transformation-after {
  z-index: 1; /* Bottom Layer */
}

.transformation-label {
  position: absolute;
  top: 1rem;
  padding: 0.2rem 0.5rem;
  background-color: rgba(0, 77, 77, 0.85); /* Deep Teal brand accent */
  color: var(--color-white);
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 5;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.label-before {
  left: 1rem;
  border-left: 3px solid var(--color-teal);
}

.label-after {
  right: 1rem;
  border-right: 3px solid var(--color-lime-accent);
}

.transformation-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: var(--color-white);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
  z-index: 10;
  cursor: ew-resize;
  transform: translateX(-50%);
  transition: background-color 0.3s ease;
}

.transformation-slider-wrapper:hover .transformation-handle {
  background-color: var(--color-white);
}

.transformation-handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: rgba(255, 255, 255, 0.5);
  transform: translateX(-50%);
}

.transformation-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background-color: var(--color-teal);
  color: var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 3px solid var(--color-lime-accent);
  transition: all 0.3s ease;
  pointer-events: none;
}

.transformation-slider-wrapper:hover .transformation-handle-button {
  background-color: var(--color-lime-accent);
  border-color: var(--color-teal);
  color: var(--color-text-dark);
}

.transformation-card-content {
  padding: 1.5rem;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid var(--color-border);
}

.transformation-card-content h3 {
  font-size: 1.15rem;
  color: var(--color-teal-dark);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.transformation-card-content p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Navigation Buttons */
.transformation-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal);
  box-shadow: 0 4px 12px rgba(0, 181, 181, 0.08);
  cursor: pointer;
  z-index: 15;
  transition: all 0.3s ease;
}

.transformation-nav-btn:hover {
  background-color: var(--color-teal);
  color: var(--color-white);
  border-color: var(--color-teal);
  box-shadow: 0 6px 16px rgba(0, 181, 181, 0.2);
}

.nav-btn-prev {
  left: 0;
}

.nav-btn-next {
  right: 0;
}

.transformation-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  box-shadow: none;
}

/* Indicators */
.transformations-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1rem;
}

.transformation-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: var(--color-border);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.transformation-dot.active {
  background-color: var(--color-teal);
  width: 24px; /* Pill shape */
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .transformations-carousel-container {
    padding: 0 40px;
  }
  .transformation-card {
    flex: 0 0 calc(50% - 12px); /* 2 columns on tablet */
  }
}

@media (max-width: 768px) {
  .transformations-carousel-container {
    padding: 0 44px; /* Space for navigation arrows */
  }
  .transformation-nav-btn {
    display: flex; /* Keep nav arrows visible on mobile */
    width: 36px;
    height: 36px;
  }
  .nav-btn-prev {
    left: 4px;
  }
  .nav-btn-next {
    right: 4px;
  }
  .transformations-track-wrapper {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar Firefox */
  }
  .transformations-track-wrapper::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
  }
  .transformation-card {
    flex: 0 0 100%; /* Single column snap on mobile */
    scroll-snap-align: start;
  }
}

/* ==========================================================================
   DOCTORS SECTION
   ========================================================================== */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

/* Lead Doctors Layout (centered, slightly wider cards) */
.doctors-grid-lead {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  max-width: 860px;
  margin: 0 auto;
}

.doctors-grid-lead .doctor-card {
  flex: 1;
  max-width: 380px;
  width: 100%;
  border-color: rgba(0, 181, 181, 0.35);
  box-shadow: 0 10px 20px var(--color-shadow-strong);
}

.doctors-grid-lead .doctor-card-photo {
  height: 280px;
}

.doctors-grid-lead .doctor-card-body h3 {
  font-size: 1.35rem;
}

.doctors-grid-consultants {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 992px) {
  .doctors-grid-consultants {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .doctors-grid-lead {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }
  .doctors-grid-lead .doctor-card {
    max-width: 100%;
  }
  
  .doctors-grid-consultants {
    grid-template-columns: 1fr;
  }
}

.doctor-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: visible;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 6px var(--color-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.doctor-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: bottom 0.3s ease;
  z-index: -1;
  border-radius: var(--radius-md);
}

.doctor-card:hover::before {
  bottom: -15px;
}

.doctor-card:hover,
.doctor-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 77, 77, 0.12);
  border-color: var(--color-teal);
}

.doctor-card-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.doctor-card-link:focus {
  outline: none;
}

.doctor-card:focus-within {
  outline: 2px solid var(--color-teal);
  outline-offset: 4px;
}

/* Prevent nested hover conflicts on the doctor card buttons */
.doctor-card .doctor-card-link {
  transform: none !important;
  box-shadow: none !important;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

.doctor-card .doctor-card-link:hover,
.doctor-card:hover .doctor-card-link {
  transform: none !important;
  box-shadow: none !important;
  background-color: var(--color-teal) !important;
  color: var(--color-white) !important;
  border-color: var(--color-teal) !important;
}

/* Doctor Page Hero Layout */
.doc-hero-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.doc-hero-photo {
  width: 240px;
  height: 240px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 77, 77, 0.2);
  background-color: var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.doc-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.35);
  transform-origin: center top;
}

@media (max-width: 768px) {
  .doc-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: var(--space-md);
  }
  .doc-hero-photo {
    width: 200px;
    height: 200px;
    font-size: 3.5rem;
  }
}

.doctor-card-photo {
  height: 250px;
  background-color: var(--color-bg-tertiary);
  overflow: hidden;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}

.doctor-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-slow);
}

.doctor-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.doctor-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.doc-qual {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-teal);
  margin-bottom: 0.5rem;
}

.doc-specialty {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
}

.doc-exp {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.doctor-card-body .btn {
  width: 100%;
}

/* Doctor Profile Details Page */
.doc-profile-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-lg);
}

.doc-profile-sidebar {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  text-align: center;
}

.doc-profile-photo {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0 auto 1.5rem auto;
  border: 5px solid var(--color-white);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.doc-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   PATIENT TESTIMONIALS
   ========================================================================== */
.google-trust-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--color-white);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 30px var(--color-shadow);
  margin-bottom: var(--space-lg);
}

.trust-rating-box {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.google-logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  padding: 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.trust-rating-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust-stars-row {
  display: flex;
  align-items: center;
}

.trust-score {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-text-dark);
  line-height: 1;
}

.trust-stars {
  color: #fbbf24; /* Amber star color */
  font-size: 1.4rem;
  margin-left: 0.5rem;
  letter-spacing: 1.5px;
  line-height: 1;
}

.trust-count {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
  font-weight: 500;
}

.trust-action-box {
  display: flex;
  align-items: center;
}

.btn-google-reviews {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-white);
  color: var(--color-text-dark);
  border: 1.5px solid var(--color-border);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 4px var(--color-shadow);
}

.btn-google-reviews:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px var(--color-shadow);
  transform: translateY(-2px);
  color: var(--color-teal);
}

.testimonials-carousel-wrapper {
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
}

.testimonials-track {
  display: flex;
  align-items: stretch; /* Enforce equal height on items */
  gap: var(--space-md);
  transition: transform var(--transition-slow);
}

.testimonial-slide {
  min-width: calc(33.333% - 1rem);
  background-color: var(--color-white);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 6px var(--color-shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.testimonial-slide:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px var(--color-shadow);
  border-color: rgba(0, 77, 77, 0.15);
}

.testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.google-badge-small {
  display: flex;
  align-items: center;
}

.testimonial-stars {
  color: #fbbf24; /* Amber star color */
  display: flex;
  gap: 0.1rem;
  letter-spacing: 1px;
}

.testimonial-body {
  flex-grow: 1; /* Pushes bottom section to bottom */
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.testimonial-content {
  font-size: 0.9rem;
  font-style: normal;
  color: var(--color-text-main);
  line-height: 1.5;
  margin-bottom: 0;
}

.read-more-trigger {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-teal);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  margin-left: 4px;
  display: inline;
  font-family: inherit;
  transition: color var(--transition-fast);
}

.read-more-trigger:hover {
  color: var(--color-teal-dark);
}

.testimonial-avatar-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  margin-top: auto; /* Push to the absolute bottom of the slide card */
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* Google initials avatar colors */
.testimonial-avatar.bg-blue { background-color: #e8f0fe; color: #1a73e8; }
.testimonial-avatar.bg-red { background-color: #fce8e6; color: #d93025; }
.testimonial-avatar.bg-yellow { background-color: #fef7e0; color: #f29900; }
.testimonial-avatar.bg-green { background-color: #e6f4ea; color: #188038; }
.testimonial-avatar.bg-purple { background-color: #f3e5f5; color: #8e24aa; }
.testimonial-avatar.bg-orange { background-color: #fff3e0; color: #f57c00; }
.testimonial-avatar.bg-teal { background-color: #e0f2f1; color: #00796b; }
.testimonial-avatar.bg-pink { background-color: #fce4ec; color: #c2185b; }

.testimonial-user-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-dark);
  line-height: 1.2;
}

.testimonial-user-info span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.verified-review-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #16a34a;
  background-color: #f0fdf4;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid #bbf7d0;
  margin-left: auto;
}

.verified-review-badge svg {
  stroke-width: 3.5;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

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

.indicator-dot.active {
  background-color: var(--color-teal);
  width: 24px;
}

/* Responsive Google Trust Header */
@media (max-width: 768px) {
  .google-trust-header {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
    padding: var(--space-md);
  }
  
  .trust-rating-box {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .trust-stars-row {
    justify-content: center;
  }
  
  .trust-action-box {
    justify-content: center;
    width: 100%;
  }
  
  .btn-google-reviews {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   TESTIMONIAL FULL REVIEW MODAL STYLES
   ========================================================================== */
.testimonial-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 77, 77, 0.6); /* Brand twilight overlay */
  backdrop-filter: blur(4px);
  z-index: 1200; /* Higher than sticky nav and other widgets */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.testimonial-modal-content {
  background-color: var(--color-white);
  border-radius: 16px;
  width: 100%;
  max-width: 550px;
  padding: 2.25rem var(--space-md) var(--space-md) var(--space-md);
  box-shadow: 0 20px 50px rgba(0, 77, 77, 0.3);
  border: 1px solid var(--color-border);
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin: 1.5rem;
}

.testimonial-modal-overlay.active .testimonial-modal-content {
  transform: scale(1) translateY(0);
}

.testimonial-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
  line-height: 1;
  border: none;
  background: none;
}

.testimonial-modal-close:hover {
  color: #f43f5e;
}

.testimonial-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
}

.modal-google-badge {
  order: 2;
  background: #f8fafc;
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  display: flex;
}

.testimonial-modal-header .testimonial-avatar-block {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
  gap: 0.75rem;
  order: 1;
}

.testimonial-modal-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-stars-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-rating-stars {
  color: #fbbf24;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.modal-verified-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #16a34a;
  background-color: #f0fdf4;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid #bbf7d0;
}

.modal-full-text {
  font-size: 0.95rem;
  color: var(--color-text-main);
  line-height: 1.6;
  margin-bottom: 0;
  white-space: pre-line;
}

/* ==========================================================================
   TECHNOLOGY SECTION
   ========================================================================== */
#technology {
  background-color: var(--color-bg-secondary);
}

#technology .badge {
  background-color: var(--color-bg-tertiary);
  color: var(--color-teal);
}

#technology h2 {
  color: var(--color-teal);
}

#technology .section-header p {
  color: var(--color-text-muted);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 1rem 0;
}

.tech-card {
  position: relative;
  height: 480px;
  background-color: var(--color-white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 77, 77, 0.05);
  border: 1px solid rgba(0, 77, 77, 0.05);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.tech-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 77, 77, 0.12);
  border-color: rgba(0, 77, 77, 0.1);
}

.tech-card-image-wrap {
  position: relative;
  height: 70%;
  width: 100%;
  overflow: hidden;
  background-color: #f1f5f9;
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-card:hover .tech-card-image-wrap {
  height: 30%;
}

.tech-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.tech-card-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
  pointer-events: none;
  z-index: 2;
}

.tech-card-content {
  background-color: var(--color-white);
  padding: 1.5rem;
  z-index: 10;
  height: 30%;
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.tech-card:hover .tech-card-content {
  height: 70%;
}

.tech-card-title {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-dark); /* Deep Teal #004D4D */
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
  text-align: left;
}

.tech-card:hover .tech-card-title {
  color: var(--color-teal);
}

.tech-card-tagline {
  font-size: 0.88rem;
  font-weight: 500;
  color: #475569; /* Slate 600 */
  line-height: 1.4;
  margin-bottom: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-align: left;
}

.tech-card:hover .tech-card-tagline {
  opacity: 0;
  transform: translateY(-5px);
  pointer-events: none;
}

.tech-card-details {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, 
              visibility 0.3s ease, 
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  gap: 0.5rem;
}

.tech-card:hover .tech-card-details {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tech-card-desc {
  font-size: 0.88rem;
  color: var(--color-text-main);
  line-height: 1.5;
  margin-bottom: 0.5rem;
  text-align: left;
}

.tech-card-benefits {
  margin-bottom: 0;
  text-align: left;
}

.tech-card-benefits h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-teal-dark);
  margin-bottom: 0.4rem;
}

.tech-card-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tech-card-benefits li {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-main);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.benefit-tick {
  color: var(--color-teal);
  font-weight: 700;
}

/* Technology Info Modal Overlay */
.tech-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 77, 77, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  backdrop-filter: blur(4px);
}

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

.tech-modal-content {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  max-width: 500px;
  width: 90%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

.tech-modal-overlay.active .tech-modal-content {
  transform: scale(1);
}

.tech-modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--color-text-dark);
  z-index: 10;
  transition: color var(--transition-fast);
  line-height: 1;
}

.tech-modal-close-btn:hover {
  color: var(--color-teal);
}

.tech-modal-body img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.tech-modal-body h3 {
  padding: 1.5rem 1.5rem 0.5rem 1.5rem;
  font-size: 1.35rem;
  color: var(--color-text-dark);
  margin-bottom: 0;
  font-weight: 700;
}

.tech-modal-body p {
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-size: 0.95rem;
  color: var(--color-text-main);
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* ==========================================================================
   PATIENT JOURNEY
   ========================================================================== */
.journey-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  max-width: 700px;
  margin: var(--space-lg) auto 0 auto;
  gap: 2.5rem;
  padding: 0 1rem;
}

.journey-timeline::before {
  content: '';
  position: absolute;
  top: 27px;
  bottom: 27px;
  left: 43px; /* Center of the circle: padding 16px (1rem) + half circle 27px */
  width: 3px;
  background-color: var(--color-teal);
  opacity: 0.35;
  z-index: 1;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.journey-timeline.active::before {
  transform: scaleY(1);
}

.journey-step {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  text-align: left;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
  width: 100%;
}

.journey-step-circle {
  width: 54px;
  height: 54px;
  background-color: var(--color-white);
  border: 4px solid var(--color-bg-tertiary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-headings);
  font-size: 1.1rem;
  color: var(--color-text-muted);
  transition: border-color 0.5s ease, color 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
  margin-bottom: 0;
  box-shadow: 0 4px 10px rgba(0, 77, 77, 0.04);
  z-index: 3;
  transform: scale(0);
  flex-shrink: 0;
}

.journey-step-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 6px;
}

.journey-step-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 0.35rem;
  opacity: 0;
  transform: translateX(15px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.journey-step-text p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
  line-height: 1.5;
  opacity: 0;
  transform: translateX(15px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.journey-step:hover .journey-step-circle {
  border-color: var(--color-teal);
  color: var(--color-teal);
  transform: scale(1.1) !important;
}

/* Timeline Cascade Animations */
.journey-timeline.active .journey-step:nth-child(1) .journey-step-circle {
  transform: scale(1);
  transition-delay: 0.1s;
  border-color: var(--color-teal);
  color: var(--color-teal);
}
.journey-timeline.active .journey-step:nth-child(1) .journey-step-text h3,
.journey-timeline.active .journey-step:nth-child(1) .journey-step-text p {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.2s;
}

.journey-timeline.active .journey-step:nth-child(2) .journey-step-circle {
  transform: scale(1);
  transition-delay: 0.3s;
}
.journey-timeline.active .journey-step:nth-child(2) .journey-step-text h3,
.journey-timeline.active .journey-step:nth-child(2) .journey-step-text p {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.4s;
}

.journey-timeline.active .journey-step:nth-child(3) .journey-step-circle {
  transform: scale(1);
  transition-delay: 0.5s;
}
.journey-timeline.active .journey-step:nth-child(3) .journey-step-text h3,
.journey-timeline.active .journey-step:nth-child(3) .journey-step-text p {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.6s;
}

.journey-timeline.active .journey-step:nth-child(4) .journey-step-circle {
  transform: scale(1);
  transition-delay: 0.7s;
}
.journey-timeline.active .journey-step:nth-child(4) .journey-step-text h3,
.journey-timeline.active .journey-step:nth-child(4) .journey-step-text p {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.8s;
}

.journey-timeline.active .journey-step:nth-child(5) .journey-step-circle {
  transform: scale(1);
  transition-delay: 0.9s;
}
.journey-timeline.active .journey-step:nth-child(5) .journey-step-text h3,
.journey-timeline.active .journey-step:nth-child(5) .journey-step-text p {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 1.0s;
}

.journey-timeline.active .journey-step:nth-child(6) .journey-step-circle {
  transform: scale(1);
  transition-delay: 1.1s;
}
.journey-timeline.active .journey-step:nth-child(6) .journey-step-text h3,
.journey-timeline.active .journey-step:nth-child(6) .journey-step-text p {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 1.2s;
}

/* ==========================================================================
   GALLERY SECTION
   ========================================================================== */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  background-color: var(--color-white);
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--color-teal);
  color: var(--color-white);
  border-color: var(--color-teal);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--color-border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item-overlay {
  display: none;
}

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

.faq-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-weight: 600;
  color: var(--color-text-dark);
  font-size: 1.05rem;
  background: none;
  border: none;
  outline: none;
}

.faq-icon-chevron {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-normal);
  color: var(--color-teal);
  flex-shrink: 0;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
}

.faq-answer-inner {
  padding: 0 1.25rem 1.25rem 1.25rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   BLOG SECTION
   ========================================================================== */
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

/* Homepage blog expand/collapse styles for desktop/tablet */
@media (min-width: 769px) {
  #blog .blog-card-extra {
    display: none !important;
  }
  #blog .blogs-grid.expanded .blog-card-extra {
    display: flex !important;
    animation: blogFadeInUp 0.4s ease-out forwards;
  }
}

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

.blog-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 6px var(--color-shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.blog-card:hover,
.blog-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 77, 77, 0.12);
  border-color: var(--color-teal);
}

.blog-card:focus-within {
  outline: 2px solid var(--color-teal);
  outline-offset: 4px;
}

.blog-card-image {
  height: 220px;
  background-color: var(--color-bg-tertiary);
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card-image img,
.blog-card:focus-within .blog-card-image img {
  transform: scale(1.03);
}

.blog-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-teal);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.blog-meta-separator {
  color: var(--color-border);
  opacity: 0.6;
  font-weight: 400;
}

.blog-meta span.blog-date {
  color: var(--color-text-muted);
}

.blog-card h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.blog-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  margin-top: auto;
}

.blog-card-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.blog-card-link:focus {
  outline: none;
}

.blog-card-link:hover {
  color: var(--color-teal);
}

/* ==========================================================================
   CONTACT SECTION & MAP
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-lg);
}

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

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal);
  flex-shrink: 0;
  border-bottom: 2px solid var(--color-lime);
}

.contact-detail-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-detail-content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
  white-space: pre-line;
}

.contact-map-wrapper {
  margin-top: 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  height: 250px;
}

.contact-map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-form-block {
  background-color: var(--color-bg-secondary);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--color-text-dark);
  color: rgba(255, 255, 255, 0.7);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-md);
  font-size: 0.9rem;
  border-top: 5px solid var(--color-teal);
}

.footer h3 {
  color: var(--color-white);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
  max-width: 140px;
  width: 100%;
}

.footer-logo-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.footer-col-brand .logo-icon {
  background-color: var(--color-teal);
  color: var(--color-white);
}

.footer-col-brand .logo-text span {
  color: rgba(255, 255, 255, 0.7);
}

.footer-col-brand p {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  max-width: 280px;
  line-height: 1.6;
}

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

.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer-social-btn:hover {
  background-color: var(--color-lime);
  color: var(--color-white);
  transform: translateY(-2px);
}

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

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--color-lime);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.footer-copyright {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.designer-block {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
}

.jk-logo-img {
  height: 26px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
}

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

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

/* ==========================================================================
   CONVERSION FEATURES (STICKY POPUPS, WIDGETS)
   ========================================================================== */
/* Floating Action Widgets */
/* Floating Action Widgets */
.floating-widgets {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 90;
}

.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background-color 0.3s ease;
  position: relative;
}

.floating-btn svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.2;
}

.floating-btn-call {
  background-color: var(--color-teal);
}

.floating-btn-call:hover {
  background-color: var(--color-teal-dark);
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.4);
}

.floating-btn-whatsapp {
  background-color: #25d366;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  animation: whatsapp-pulse 3s infinite;
}

.floating-btn-whatsapp:hover {
  background-color: #20ba5a;
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

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

.floating-btn-tooltip {
  position: absolute;
  right: 74px;
  background-color: var(--color-text-dark);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.floating-btn:hover .floating-btn-tooltip {
  opacity: 1;
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Position floating widgets on mobile above the bottom sticky mobile-action-bar */
@media (max-width: 767px) {
  .floating-widgets {
    bottom: 80px;
    right: 20px;
    gap: 0.6rem;
    display: flex;
  }
  
  .floating-btn {
    width: 56px;
    height: 56px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  }
  
  .floating-btn-whatsapp svg {
    width: 28px;
    height: 28px;
  }
  
  .floating-btn-call svg {
    width: 22px;
    height: 22px;
  }

  .floating-btn-tooltip {
    display: none;
  }
}

/* Exit Intent Popup */
.exit-popup-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

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

.exit-popup-content {
  background-color: var(--color-white);
  width: 100%;
  max-width: 680px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  position: relative;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.exit-popup-overlay.active .exit-popup-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.exit-popup-image-side {
  background: linear-gradient(135deg, var(--color-teal-dark) 0%, var(--color-teal) 100%);
  color: var(--color-white);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
}

.exit-popup-image-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.exit-popup-image-side h3 {
  color: var(--color-white);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.exit-popup-desc {
  font-size: 0.8rem;
  color: var(--color-highlight);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
}

.exit-popup-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
}

.exit-popup-benefits li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

.exit-popup-benefits li span {
  color: var(--color-highlight);
  font-weight: 700;
}

.popup-subtext {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.exit-popup-form-side {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.exit-popup-form-side h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.exit-popup-form-side p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.exit-popup-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  color: var(--color-text-dark);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: all var(--transition-fast);
  z-index: 10;
}

.exit-popup-close-btn:hover {
  background-color: #f43f5e;
  color: var(--color-white);
  border-color: #f43f5e;
}

/* Sticky Mobile Bottom Action Bar */
.mobile-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--color-border);
  display: none;
  grid-template-columns: repeat(4, 1fr);
  z-index: 99;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
}

.mobile-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-dark);
  gap: 0.2rem;
  border-right: 1px solid var(--color-bg-tertiary);
}

.mobile-action-item:last-child {
  border-right: none;
}

.mobile-action-item svg {
  color: var(--color-teal);
}

.mobile-action-item-book {
  background-color: var(--color-teal);
  color: var(--color-white);
}

.mobile-action-item-book svg {
  color: var(--color-white);
}

.mobile-action-item-whatsapp {
  background-color: #25d366;
  color: var(--color-white);
}

.mobile-action-item-whatsapp svg {
  color: var(--color-white);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */
@media (max-width: 1024px) {
  /* Tablet layout rules */
  .logo-img {
    height: 52px;
  }
  .logo-text strong {
    font-size: 22px;
  }
  .logo-text span {
    font-size: 12px;
  }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  
  .hero {
    background-image: none !important;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-md);
    background-image: linear-gradient(90deg, #ffffff 0%, #ffffff 38%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0) 100%), url('/src/images/hero-doctor-bg.png') !important;
    background-position: right 4% center !important;
    background-size: auto 100% !important;
    background-repeat: no-repeat !important;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-image-container {
    max-width: 350px;
    border-radius: 20px;
  }
  
  .floating-card {
    padding: 0.55rem 0.9rem;
    gap: 0.5rem;
  }
  
  .floating-card-1 {
    left: 2%;
    top: 12%;
  }
  
  .floating-card-2 {
    right: 2%;
    bottom: 22%;
  }
  
  .floating-card-3 {
    left: 8%;
    bottom: 4%;
  }
  
  .booking-section {
    margin-top: 28px;
  }
  
  .why-slide {
    gap: var(--space-md);
  }
  .why-slide-title {
    font-size: 2.1rem;
    letter-spacing: -0.01em;
  }
  
  .treatments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .doctors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blogs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  
  .testimonial-slide {
    min-width: calc(50% - 0.5rem);
  }
  
  .nav-container {
    grid-template-columns: auto 1fr auto;
  }
  
  .nav-menu {
    gap: 0.75rem;
  }
  
  .nav-link {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  /* Mobile styling rules */
  .logo-img {
    height: 44px;
  }
  .logo-text strong {
    font-size: 18px;
  }
  .logo-text span {
    font-size: 10px;
    letter-spacing: 0.05em;
  }
  .booking-section {
    margin-top: 24px;
  }
  
  .floating-card {
    display: none !important;
  }
  
  :root {
    --space-lg: 1.75rem;
    --space-xl: 2.5rem;
  }
  
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.5rem; }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-md);
    gap: 1.5rem;
    transition: left var(--transition-normal);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    z-index: 99;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-link {
    font-size: 1.15rem;
    width: 100%;
  }
  
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .nav-right-wrapper .btn-primary {
    display: none; /* Hide Book button on mobile header */
  }
  
  .hamburger {
    display: flex;
  }
  
  .hero {
    background-image: none !important;
  }

  .hero-image-wrapper {
    display: flex !important;
    min-height: auto !important;
    pointer-events: auto !important;
    margin-top: 1.5rem;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image-wrapper .hero-image-container {
    display: block !important;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 77, 77, 0.12);
    border: 4px solid var(--color-white);
    border-bottom: 6px solid var(--color-lime-accent);
  }

  .hero-image-wrapper .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 80% 25%;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    text-align: center;
    background-image: none !important;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .trust-indicators {
    justify-items: center;
  }
  
  .hero-image-wrapper {
    margin-top: 1.5rem;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .booking-wrapper {
    grid-template-columns: 1fr;
  }
  
  .booking-info {
    padding: var(--space-md);
  }
  
  .booking-form-container {
    padding: 1.25rem 1rem;
    height: auto;
    max-height: none;
    min-height: 0;
    display: block;
    overflow: visible;
    position: relative;
    box-sizing: border-box;
  }
  
  .booking-form-container .form-success {
    margin: auto 0;
  }
  
  #heroBookingForm {
    display: block;
    height: auto;
    overflow: visible;
  }
  
  #heroBookingForm .booking-form-fields-scroll {
    display: flex;
    flex-direction: column;
    gap: 14px; /* Maintain consistent spacing between fields (12–16px) */
    overflow: visible;
    padding-right: 0;
  }

  #heroBookingForm .booking-form-fields-scroll > div {
    width: 100% !important;
    box-sizing: border-box;
  }

  #heroBookingForm .treatment-collapse-wrapper.collapsed {
    display: none !important; /* Prevent double-gap spacing on mobile when hidden */
  }

  #heroBookingForm .booking-toggle-wrapper {
    position: static;
    background-color: transparent;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 14px;
    border-bottom: none;
  }
  
  #heroBookingForm .booking-form-footer {
    position: static;
    margin-top: 14px;
    padding-top: 0;
    border-top: none;
    background-color: transparent;
  }

  #heroBookingForm .booking-form-footer .btn {
    width: 100% !important;
    margin-top: 0 !important;
  }

  .booking-form {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
  
  .form-group-full {
    grid-column: span 1;
  }

  select.form-input,
  input[type="date"].form-input {
    min-height: 48px;
  }

  .contact-form-block {
    padding: 1.25rem 1rem;
  }

  .exit-popup-overlay {
    padding: 1rem;
  }

  .exit-popup-form-side {
    padding: 1.25rem 1rem;
  }

  .success-modal-card {
    width: 90%;
    max-width: 420px;
    padding: 2rem 1.25rem;
    overflow-wrap: break-word;
  }
  
  .why-slide {
    flex-direction: column-reverse;
    text-align: center;
    gap: 1.5rem;
    padding: 0.5rem;
  }
  .why-slide-content {
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .why-slide-title {
    font-size: 1.75rem;
  }
  .why-slide-text {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  .why-slide-visual {
    width: 100%;
  }
  .why-slide-visual-inner {
    max-width: 380px;
    margin: 0 auto;
  }

  .treatments-grid {
    grid-template-columns: 1fr;
  }
  
  .tech-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .mobile-action-bar {
    display: grid;
  }
  
  .exit-popup-content {
    grid-template-columns: 1fr;
    max-width: 450px;
  }
  
  .exit-popup-image-side {
    display: none;
  }
  
  .journey-timeline {
    padding: 0 1rem;
    align-items: flex-start;
    gap: 2rem;
  }
  
  .journey-timeline::before {
    display: block;
    left: 43px;
  }
  
  .journey-step {
    width: 100%;
    gap: 1rem;
  }
  
  .journey-step-circle {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  
  .treatment-detail-grid {
    grid-template-columns: 1fr;
  }
  
  .symptom-list, .benefit-list {
    grid-template-columns: 1fr;
  }
  
  .doc-profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  /* Smaller screens */
  .treatments-grid {
    grid-template-columns: 1fr;
  }
  
  .doctors-grid {
    grid-template-columns: 1fr;
  }
  
  .blogs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom-links {
    justify-content: center;
  }

  .footer-copyright {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .success-modal-tooth-img {
    width: 140px;
  }
  
  .testimonial-slide {
    min-width: 100%;
  }
  
  .before-after-slider {
    aspect-ratio: 4/3;
  }

  .floating-card {
    padding: 0.4rem 0.65rem;
    gap: 0.4rem;
  }
  
  .floating-card-icon {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }
  
  .floating-card-1 {
    left: -4%;
    top: 8%;
  }
  
  .floating-card-2 {
    right: -4%;
    bottom: 22%;
  }
  
  .floating-card-3 {
    left: 4%;
    bottom: 4%;
  }
}

/* ==========================================================================
   BREADCRUMB NAVIGATION
   ========================================================================== */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-sm);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.breadcrumb-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-fast) ease;
  cursor: pointer;
}

.breadcrumb-link:hover {
  color: var(--color-lime-accent);
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.45);
  user-select: none;
  font-size: 13px;
}

.breadcrumb-current {
  color: var(--color-lime-accent);
  font-weight: 500;
}

/* ==========================================================================
   PRELOADER / PAGE LOADER
   ========================================================================== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-white);
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.preloader-logo {
  height: 80px;
  width: auto;
  animation: preloader-pulse 1.8s infinite ease-in-out;
}

.preloader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(13, 148, 136, 0.1);
  border-top: 3px solid var(--color-teal);
  border-radius: 50%;
  animation: spin-loader 1s linear infinite;
}

@keyframes preloader-pulse {
  0%, 100% {
    transform: scale(0.96);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes spin-loader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   TREATMENT PROCEDURE VIDEO AREA
   ========================================================================== */
.procedure-layout-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-lg);
  align-items: flex-start;
  margin-top: 1.5rem;
}

.procedure-steps-column {
  flex-grow: 1;
}

.procedure-video-column {
  position: sticky;
  top: 100px;
}

/* Video Card Styling */
.procedure-video-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: 0 10px 25px rgba(0, 77, 77, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  /* subtle floating animation */
  animation: videoFloat 6s ease-in-out infinite;
}

@keyframes videoFloat {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0px); }
}

.procedure-video-card:hover {
  box-shadow: 0 15px 35px rgba(0, 77, 77, 0.1);
  animation-play-state: paused; /* pause float on hover for stable clicks */
  transform: translateY(-6px);
}

.video-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
  margin-top: 0;
}

/* Video Player Wrapper */
.video-player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background-color: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.procedure-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Play Button Overlay */
.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background-color: var(--color-lime-accent);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  z-index: 2;
}

.video-play-overlay .play-icon {
  color: var(--color-text-dark);
  font-size: 20px;
  margin-left: 4px; /* visually center the play triangle */
}

.video-play-overlay:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: var(--color-white);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.5);
}

.video-section-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Playlist Controls */
.video-playlist-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding: 0.5rem;
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.playlist-nav-btn {
  background-color: var(--color-white);
  border: 1px solid var(--color-teal);
  color: var(--color-teal);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.playlist-nav-btn:hover {
  background-color: var(--color-teal);
  color: var(--color-white);
}

.playlist-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: var(--color-border);
  color: var(--color-text-muted);
  background-color: var(--color-white);
}

.playlist-info {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-dark);
  text-align: center;
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .procedure-layout-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .procedure-video-column {
    position: static;
    margin-top: 1rem;
  }
}

/* ==========================================================================
   NAVIGATION UPGRADES: DROPDOWN, HIGHLIGHTS, SCROLL CLEARANCE
   ========================================================================== */

/* Layout clearance to avoid sticky header overlaps */
section[id], div[id] {
  scroll-margin-top: 100px;
}

/* Header scrolled state shadow enhancement */
.header-scrolled {
  box-shadow: 0 10px 30px rgba(0, 77, 77, 0.08) !important;
  padding: 0.4rem 0 !important;
  border-bottom: 1px solid rgba(173, 232, 244, 0.4) !important;
}

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

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

.dropdown-chevron {
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

/* Dropdown Card Container */
.dropdown-menu-card {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 250px;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 77, 77, 0.12);
  border: 1px solid var(--color-border);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
              visibility 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  pointer-events: none;
}

/* Desktop Hover & Focus states */
@media (min-width: 769px) {
  .nav-item-dropdown:hover .dropdown-menu-card,
  .nav-item-dropdown:focus-within .dropdown-menu-card {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }
}

/* Vertical List Layout for Dropdown */
.dropdown-menu-list {
  display: flex;
  flex-direction: column;
}

/* Dropdown Link Item */
.dropdown-item {
  display: block;
  padding: 0.5rem 1.25rem;
  font-family: var(--font-headings);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text-main);
  transition: all var(--transition-fast);
  text-align: left;
}

/* Hover styles for Dropdown Items */
.dropdown-item:hover {
  background-color: var(--color-teal-lightest);
  color: var(--color-teal-dark);
  padding-left: 1.5rem;
}

/* Footer Section inside Dropdown */
.dropdown-menu-footer {
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(173, 232, 244, 0.5);
}

.dropdown-footer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.25rem;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-teal);
  transition: all var(--transition-fast);
}

.dropdown-footer-link:hover {
  color: var(--color-lime);
  background-color: var(--color-teal-lightest);
  padding-left: 1.5rem;
}

/* Mobile Media Query Overrides for Expandable Accordion Menu */
@media (max-width: 768px) {
  .nav-menu {
    overflow-y: auto !important; /* Allow scrolling the mobile menu */
    -webkit-overflow-scrolling: touch;
  }

  .nav-item-dropdown {
    width: 100%;
  }

  .nav-item-dropdown .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0.25rem;
  }

  .nav-item-dropdown.mobile-expanded .dropdown-chevron {
    transform: rotate(180deg);
  }

  /* Submenu is displayed inside the flow on mobile */
  .dropdown-menu-card {
    position: static;
    transform: none;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.25s ease, 
                visibility 0.25s ease;
    background-color: transparent;
    pointer-events: auto;
  }

  .nav-item-dropdown.mobile-expanded .dropdown-menu-card {
    max-height: 600px;
    opacity: 1;
    visibility: visible;
  }

  .dropdown-menu-list {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    gap: 0.25rem;
  }

  .dropdown-item {
    padding: 0.35rem 0 0.35rem 1.25rem;
    font-size: 0.95rem;
  }
  
  .dropdown-item:hover {
    padding-left: 1.25rem;
    background-color: transparent;
    color: var(--color-teal);
  }

  .dropdown-menu-footer {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }

  .dropdown-footer-link {
    padding: 0.35rem 0 0.35rem 1.25rem;
    font-size: 0.95rem;
  }

  .dropdown-footer-link:hover {
    padding-left: 1.25rem;
    background-color: transparent;
    color: var(--color-lime);
  }
}

/* ==========================================================================
   TREATMENT DETAIL PAGE CONSULTATION MODAL
   ========================================================================== */

body.modal-open {
  overflow: hidden !important;
}

.treatment-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 77, 77, 0.6); /* Brand twilight overlay */
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.treatment-modal-content {
  background-color: var(--color-white);
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  padding: 2.25rem var(--space-md) var(--space-md) var(--space-md);
  box-shadow: 0 20px 50px rgba(0, 77, 77, 0.25);
  border: 1px solid var(--color-border);
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin: 1.5rem;
}

.treatment-modal-overlay.active .treatment-modal-content {
  transform: scale(1) translateY(0);
}

.treatment-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
  line-height: 1;
  border: none;
  background: none;
}

.treatment-modal-close:hover {
  color: #f43f5e;
}

.treatment-modal-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.treatment-modal-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: var(--color-text-dark);
}

.t-modal-subtitle {
  font-size: 0.85rem;
  color: var(--color-teal);
  font-weight: 600;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.t-modal-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.t-modal-form .form-group {
  display: flex;
  flex-direction: column;
}

.t-modal-form .form-group-full {
  grid-column: span 2;
}

.t-modal-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.t-modal-buttons button {
  flex: 1;
}

#tModalSuccess {
  text-align: center;
  padding: 2rem 1rem;
}

#tModalSuccess h3 {
  font-size: 1.5rem;
  color: var(--color-text-dark);
  margin-top: 0.5rem;
}

#tModalSuccess p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .t-modal-form {
    grid-template-columns: 1fr;
  }
  .t-modal-form .form-group-full {
    grid-column: span 1;
  }
  .t-modal-buttons {
    flex-direction: column;
    position: sticky;
    bottom: 0;
    background-color: var(--color-white);
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
    z-index: 10;
    flex-shrink: 0;
  }
  .treatment-modal-content {
    padding: 2rem 1.25rem 1.25rem 1.25rem;
    margin: 1rem;
    height: 60vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
  }
  .treatment-modal-header {
    flex-shrink: 0;
    margin-bottom: 1rem;
  }
  #tModalForm {
    flex: 1;
    overflow-y: auto;
    padding-right: 6px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  #tModalSuccess {
    flex: 1;
    overflow-y: auto;
  }
}




/* ==========================================================================
   CONSULTING SPECIALISTS GRID
   ========================================================================== */
.consultant-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: 2rem;
}

.consultant-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: 0 4px 20px rgba(0, 181, 181, 0.03);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all var(--transition-normal);
}

.consultant-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 181, 181, 0.08);
  border-color: var(--color-teal);
}

.consultant-card h3 {
  font-size: 1.25rem;
  color: var(--color-text-dark);
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.consultant-qual {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-lime-accent);
  margin-bottom: 0.25rem;
}

.consultant-specialization {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 0;
}

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

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

/* ==========================================================================
   MOBILE RESPONSIVE CAROUSELS (TESTIMONIALS & BLOGS)
   ========================================================================== */
@media (max-width: 768px) {
  .testimonials-carousel-wrapper,
  .blogs-carousel-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    touch-action: pan-y;
  }
  
  .testimonials-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch !important;
    width: 100%;
    transition: transform 0.4s ease-in-out;
    gap: 0 !important;
  }
  
  .testimonial-slide {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    transform: none !important; /* Disable translateY scale/hover effect on mobile */
  }

  .blogs-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100%;
    transition: transform 0.4s ease-in-out;
    gap: 0 !important;
  }

  .blog-card {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    transform: none !important; /* Disable translateY scale/hover effect on mobile */
  }
  
  /* Ensure 4th card displays in mobile carousel */
  #blog .blog-card-extra {
    display: flex !important;
  }
}

.blog-carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  display: none;
}

@media (max-width: 768px) {
  .blog-carousel-indicators {
    display: flex;
  }
}

/* ==========================================================================
   TRUST STATISTICS BAR
   ========================================================================== */
.stats-bar-section {
  padding: 0;
  margin-top: -2.25rem; /* Pulled up to overlay on the hero section's bottom edge */
  background-color: transparent;
  position: relative;
  z-index: 20;
}

.stats-bar-wrapper {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 181, 181, 0.08);
  border: 1px solid rgba(0, 181, 181, 0.12);
  overflow: hidden;
  padding: 1rem 2rem; /* Reduced vertical padding for compactness */
}

.stats-bar-track {
  display: flex;
  width: 100%;
}

.stats-bar-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-shrink: 0;
}

/* Hide the cloned group on desktop */
.stats-bar-group[aria-hidden="true"] {
  display: none;
}

.stats-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  justify-content: center;
  position: relative;
}

/* Vertical separator on desktop */
.stats-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: rgba(0, 181, 181, 0.15);
}

.stats-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal, #00b5b5);
}

.stats-svg-icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.stats-info {
  display: flex;
  flex-direction: column;
}

.stats-number {
  font-size: 1.5rem; /* Sized down slightly for a more compact and premium feel */
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-teal-dark, #0c5959);
}

.stats-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted, #666);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Accent highlights for Google Star & Patient Satisfaction */
.stats-item:nth-child(1) .stats-svg-icon {
  color: var(--color-orange, #fc7600);
}
.stats-item:nth-child(1) .stats-number {
  color: var(--color-orange, #fc7600);
}
.stats-item:nth-child(5) .stats-svg-icon {
  color: var(--color-orange, #fc7600);
}
.stats-item:nth-child(5) .stats-number {
  color: var(--color-orange, #fc7600);
}

/* Mobile responsive scrolling marquee */
@media (max-width: 768px) {
  .stats-bar-section {
    margin-top: 0; /* Clear negative margin on mobile */
    padding: 1rem 0;
    background-color: var(--color-bg-light, #f8fcfc);
  }

  .stats-bar-wrapper {
    padding: 0.85rem 0; /* Compact on mobile */
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 181, 181, 0.04);
  }

  .stats-bar-track {
    display: flex;
    width: max-content; /* Fit both groups side by side */
    animation: stats-marquee-scroll 22s linear infinite;
    touch-action: pan-y;
  }

  /* Show the cloned group on mobile for infinite loop */
  .stats-bar-group[aria-hidden="true"] {
    display: flex;
  }

  .stats-bar-group {
    width: auto;
    display: flex;
    justify-content: space-around;
    gap: 3.5rem;
    padding: 0 1.75rem;
  }

  .stats-item {
    flex: 0 0 auto;
    width: max-content;
  }

  /* Remove vertical separator on mobile since they are scrolling */
  .stats-item:not(:last-child)::after {
    display: none;
  }

  /* Keyframe for marquee scrolling */
  @keyframes stats-marquee-scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%); /* Scroll exactly half of total track length (one full group) */
    }
  }

  /* Pause animations on hover/active or via JS class */
  .stats-bar-track:hover,
  .stats-bar-track.paused {
    animation-play-state: paused;
  }
}

