:root {
  /* Dental Blue & Glass Effect Palette */
  --primary-color: #1dafed;
  /* Dental Blue */
  --secondary-color: #0d9bd9;
  /* Deeper Dental Blue */
  --accent-color: #1dafed;
  /* Same Dental Blue */
  --text-main: #1E293B;
  /* Elegant Slate */
  --text-muted: #64748B;
  /* Refined Gray */
  --bg-light: #F8FBFF;
  /* Very Light Blue Tint */
  --bg-white: #FFFFFF;
  --border-color: #E0F2FE;
  --overlay-gradient: linear-gradient(135deg, rgba(29, 175, 237, 0.92), rgba(13, 155, 217, 0.85));
  /* Dental Blue Gradient */

  /* Glass Effect */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px rgba(29, 175, 237, 0.15);

  /* Refined Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);

  /* Spacing */
  --section-spacing: 100px;

  /* Typography - Refined */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
}

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

/* Scrollbar Reset */
html {
  font-size: 16px;
  /* Ensure consistent rem sizing */
}

/* Custom Scrollbar - Match site colors */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--bg-light);
}

/* Prevent font layout shift */
body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Font loading optimization */
.nav-links,
.logo-text,
.logo-sub {
  font-synthesis: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

/* Magazine-Style Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h3 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  margin-bottom: 15px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 400;
}

/* Components */
.container {
  width: 90%;
  max-width: 1100px;
  /* Optimal reading width for better readability */
  margin: 0 auto;
}

/* Narrower content wrapper for text-heavy sections */
.content-narrow {
  max-width: 900px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 0.875rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

/* Page Hero (Subpages) - Premium Animated Design */
.page-hero {
  padding: 80px 0 100px;
  background: linear-gradient(-45deg, #0ea5e9, #38bdf8, #7dd3fc, #a5f3fc, #38bdf8, #0ea5e9);
  background-size: 400% 400%;
  animation: gradientFlow 12s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Animated gradient flow */
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Shimmer overlay for main hero */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(100deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.4) 50%,
      rgba(255, 255, 255, 0) 100%);
  animation: shimmer 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 5;
  /* Increased z-index */
  display: block !important;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  50% {
    left: 100%;
  }

  100% {
    left: 100%;
  }
}

/* Floating orbs */
.page-hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  top: -150px;
  right: -100px;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(20px) rotate(5deg);
  }
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: white;
  margin-bottom: 15px;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  animation: fadeSlideUp 0.6s ease-out;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.95);
  max-width: 550px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.6;
  font-weight: 400;
  animation: fadeSlideUp 0.6s ease-out 0.1s both;
}

/* Breadcrumb navigation */
.page-hero .breadcrumb {
  margin-bottom: 20px;
  animation: fadeSlideUp 0.6s ease-out;
}

.page-hero .breadcrumb a,
.page-hero .breadcrumb span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-hero .breadcrumb a:hover {
  color: white;
}

.page-hero .breadcrumb .separator {
  margin: 0 10px;
  opacity: 0.6;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes simpleFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Service Page Content Images */
.section-padding img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Header & Nav */
.top-bar {
  background-color: var(--primary-color);
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 0;
  font-size: 0.85rem;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-item {
  margin-right: 20px;
}

.contact-item i {
  margin-right: 5px;
  color: var(--secondary-color);
}

.main-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-con .team-member {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--text-main);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--text-main);
  position: relative;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s;
}

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

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

.nav-dropdown>a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-dropdown>a::before {
  display: none;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  text-transform: none;
  color: var(--text-main);
}

.dropdown-menu a:hover {
  background: var(--bg-light);
  color: var(--primary-color);
}

.dropdown-menu a::after {
  display: none;
}

/* Hide mobile dropdown arrow on desktop by default */
.dropdown-toggle {
  display: none;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  padding: 160px 0 120px;
  background-size: cover;
  background-position: center;
  color: var(--text-main);
  text-align: center;
  overflow: hidden;
}

/* Removed shimmer overlay from hero image */
.hero::before {
  display: none;
}

@keyframes whiteShimmer {
  0% {
    left: -100%;
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    left: 200%;
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 24px;
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.03em;
}



.hero p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  color: #1E293B;
  /* Near black for maximum readability */
  line-height: 1.7;
  font-weight: 500;
}

.hero-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-btns .btn {
  margin: 0 !important;
}

/* Quick Info Cards */
.quick-info-wrapper {
  margin-top: -60px;
  position: relative;
  z-index: 5;
  margin-bottom: 80px;
}

.quick-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
}

.info-card {
  padding: 45px 40px;
  text-align: center;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card:last-child {
  border-right: none;
}

.info-card i,
.info-card .icon {
  font-size: 2.8rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card:hover {
  background: linear-gradient(to bottom, #ffffff, #fafbfc);
  transform: translateY(-4px);
}

.info-card:hover i,
.info-card:hover .icon {
  transform: scale(1.08);
}

.info-card h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.info-card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Mission Section - Two Column Layout */
.mission-section {
  padding: 80px 0;
  background-color: #f8fbff;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 20px;
}

.mission-card {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mission-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.mission-header h2 {
  font-size: 1.75rem;
  margin-bottom: 10px;
  color: var(--text-main);
  font-family: var(--font-heading);
}

.mission-subtitle {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 25px;
}

.mission-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.mission-text p:last-child {
  margin-bottom: 0;
}

.mission-text strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Responsive */
@media(max-width: 900px) {
  .mission-grid {
    grid-template-columns: 1fr;
  }
}

/* SERVICES GRID - Mimicking Screenshot */
.services-section {
  padding-top: 100px;
  padding-bottom: 100px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2x2 grid based on screenshot */
  gap: 30px;
}

/* Center the last item (5th item) in the grid */
.service-card:last-child {
  grid-column: 1 / -1;
  max-width: 50%;
  margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card:last-child {
    max-width: 100%;
  }
}

.service-card {
  position: relative;
  /* width removed to let grid handle sizing */
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-10px);
  /* Lift effect */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  /* Enhanced shadow on hover */
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  /* Ensure normal scale, no zoom by default */
  transition: transform 0.5s ease;
}

.object-contain {
  object-fit: contain !important;
  background-color: #ffffff;
  /* White background to fill gaps */
}

.service-card:hover img {
  transform: scale(1.05);
  /* Gentle zoom on hover only */
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  /* No overlay by default - clean images */
  opacity: 1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}

.service-card:hover .service-overlay {
  background: linear-gradient(to bottom, rgba(29, 175, 237, 0) 0%, rgba(29, 175, 237, 0.9) 100%);
  /* Vertical fade: clear at top, blue at bottom */
}

.service-content {
  color: white;
  z-index: 2;
  opacity: 1;
  /* Always visible */
  transform: translateY(0);
  transition: all 0.3s ease;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  /* Add shadow for better readability on light backgrounds */
}

.service-content h3 {
  color: white;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.75rem;
  text-transform: uppercase;
  margin-bottom: 12px;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.02em;
}

.service-content p {
  font-size: 1rem;
  opacity: 0.95;
  margin-bottom: 0;
  font-weight: 400;
  line-height: 1.6;
}

/* About Section - Clean Professional Design */
.about-section {
  padding: 100px 0;
  background-color: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}

.about-grid:last-child {
  margin-bottom: 0;
}

.about-image {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.about-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.about-image img:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.about-content h3 {
  font-size: 2.25rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.about-content h4 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 24px;
  font-family: var(--font-body);
}

.about-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1.05rem;
}

/* Doctors Grid - Side by Side Layout */
.doctors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 50px;
}

.doctor-card {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.doctor-image {
  margin-bottom: 25px;
}

.doctor-image img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 3px solid rgba(29, 175, 237, 0.2);
}

.doctor-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.doctor-info h3 {
  font-size: 1.75rem;
  margin-bottom: 15px;
  color: var(--text-main);
}

.doctor-info p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 15px;
  text-align: left;
  font-size: 1rem;
}

/* Redesigned Doctors Section - Cleaner Layout */
.doctors-grid-redesign {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 60px;
}

.doctor-card-redesign {
  background: white;
  padding: 50px 40px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.doctor-card-redesign:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.doctor-photo-large {
  margin: 0 auto 30px;
  width: 280px;
  height: 280px;
}

.doctor-photo-large img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border: 5px solid rgba(29, 175, 237, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.doctor-photo-large img:hover {
  transform: scale(1.05);
  border-color: var(--primary-color);
  box-shadow: 0 12px 40px rgba(29, 175, 237, 0.3);
}

.doctor-card-redesign h3 {
  font-size: 2rem;
  color: var(--text-main);
  margin-bottom: 10px;
  font-family: var(--font-heading);
}

.doctor-specialty {
  color: var(--secondary-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.doctor-bio-text {
  text-align: left;
  margin-top: 30px;
}

.doctor-bio-text p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.doctor-bio-text p:last-child {
  margin-bottom: 0;
}

/* Responsive for redesigned doctors layout */
@media(max-width: 1100px) {
  .doctors-grid-redesign {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

@media(max-width: 768px) {
  .doctor-card-redesign {
    padding: 40px 30px;
  }

  .doctor-photo-large {
    width: 220px;
    height: 220px;
  }

  .doctor-card-redesign h3 {
    font-size: 1.75rem;
  }

  .doctor-bio-text p {
    font-size: 1rem;
  }
}

/* Responsive for doctors grid */
@media(max-width: 900px) {
  .doctors-grid {
    grid-template-columns: 1fr;
  }
}

/* Map */
.map-section {
  height: 400px;
}

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

/* Google Reviews Carousel */
.reviews-carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}

/* Gradient Masks for fading effect sides */
.reviews-carousel-container::before,
.reviews-carousel-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.reviews-carousel-container::before {
  left: 0;
  background: linear-gradient(to right, white, transparent);
}

.reviews-carousel-container::after {
  right: 0;
  background: linear-gradient(to left, white, transparent);
}

.reviews-track {
  display: flex;
  gap: 30px;
  width: max-content;
  /* Ensure enough width for all items */
  animation: scroll 60s linear infinite;
  /* Slow rotation */
}

/* Pause on hover for readability */
.reviews-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
    /* Move half the length */
  }
}

.testimonial-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 35px;
  width: 360px;
  flex-shrink: 0;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-color: rgba(11, 127, 217, 0.2);
}

.review-avatar {
  width: 56px;
  height: 56px;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-weight: 700;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.testimonial-card p {
  font-style: italic;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

.testimonial-card h4 {
  color: #333;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.stars {
  color: #F4B400;
  font-size: 1.2rem;
}

/* Filter */
.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  color: #ffffff !important;
}

/* Filter */
.main-footer {
  background: linear-gradient(to bottom, #2B2D42, #1a1b2e);
  color: white;
  padding: 80px 0 30px;
  width: 100%;
  position: relative;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: white;
  margin-bottom: 25px;
  font-size: 1.2rem;
}

.footer-col ul li {
  margin-bottom: 15px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-col ul li a:hover {
  color: var(--accent-color);
  padding-left: 8px;
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  color: rgba(255, 255, 255, 0.5);
}

/* Insurance Card Hover Effect */
.insurance-card:hover {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(29, 175, 237, 0.25) !important;
}

.insurance-card:hover span {
  color: white !important;
}

/* Responsive */
@media(max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

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

  .hero h1 {
    font-size: 3rem;
  }
}

@media(max-width: 1024px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    gap: 0;
  }

  .nav-links.active {
    display: flex;
  }

  /* Mobile nav links - Large touch targets */
  .nav-links>a,
  .nav-links>.nav-dropdown>a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
  }

  .nav-links>a:last-child {
    border-bottom: none;
  }

  .nav-links>a:hover,
  .nav-links>a:active,
  .nav-links>.nav-dropdown>a:hover,
  .nav-links>.nav-dropdown>a:active {
    background-color: var(--bg-light);
    color: var(--primary-color);
  }

  /* Remove underline effect on mobile */
  .nav-links>a::after {
    display: none;
  }

  /* Mobile dropdown */
  .nav-links .nav-dropdown {
    width: 100%;
  }

  .nav-links .nav-dropdown>a {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav-links .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    background: var(--bg-light);
    display: none;
    overflow: hidden;
    width: 100%;
    flex-basis: 100%;
  }

  .nav-links .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  /* Services row with link and arrow */
  /* Services row with link and arrow */
  .nav-links .nav-dropdown {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    position: relative;
  }

  /* Balancing spacer to center the text perfectly against the arrow */
  .nav-links .nav-dropdown::before {
    content: '';
    width: 44px;
    /* Matches dropdown-toggle width */
    height: 54px;
    flex-shrink: 0;
  }

  .nav-links .nav-dropdown>a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    flex: 0 1 auto;
    pointer-events: auto;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
    min-height: 54px;
    background: transparent;
    padding: 0;
    border: none;
  }

  /* Arrow toggle button - Static inline positioned */
  .nav-links .nav-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
    width: 44px;
    /* Fixed width matched by spacer */
    height: 54px;
    min-height: 54px;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }

  /* Hover states */
  .nav-links .nav-dropdown .dropdown-toggle:hover,
  .nav-links .nav-dropdown .dropdown-toggle:active {
    background-color: transparent;
    color: var(--secondary-color);
  }

  /* Ensure background color change applies to toggle when open */
  .nav-links .nav-dropdown.open {
    background-color: var(--bg-light);
  }

  .nav-links .nav-dropdown.open .dropdown-toggle {
    background-color: transparent;
  }

  .nav-links .nav-dropdown.open .dropdown-toggle i {
    transform: rotate(180deg);
  }

  .nav-links .nav-dropdown>a i {
    display: none;
  }

  .nav-links .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    background: var(--bg-light);
    display: none;
    overflow: hidden;
    width: 100%;
    flex-basis: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
  }

  .nav-links .dropdown-menu a {
    min-height: 50px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: var(--text-muted);
    width: 100%;
  }

  .nav-links .dropdown-menu a:last-child {
    border-bottom: none;
  }

  .nav-links .dropdown-menu a:hover,
  .nav-links .dropdown-menu a:active {
    background-color: rgba(29, 175, 237, 0.08);
    color: var(--primary-color);
  }

  .mobile-toggle {
    display: block;
    cursor: pointer;
    margin-left: auto !important;
  }

  /* Show Top Bar on Mobile */
  .top-bar {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    padding: 8px 0;
  }

  .top-bar-content {
    justify-content: center;
    gap: 5px;
  }

  .contact-item {
    margin: 0 5px;
  }

  /* Sticky Mobile Header */
  .main-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  /* Mobile Header Layout */
  .nav-container {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    position: relative;
    padding: 0 15px;
  }

  .logo {
    flex-direction: row !important;
    gap: 8px !important;
    align-items: center !important;
    flex: 0 1 auto;
  }

  .logo>div:nth-child(2) {
    display: block !important;
    height: 45px !important;
    width: 2px !important;
    background-color: #ccc !important;
    flex-shrink: 0;
  }

  .logo-text {
    font-size: 16px !important;
    font-weight: 800 !important;
    white-space: nowrap;
  }

  .logo-sub {
    font-size: 8px !important;
    letter-spacing: 0.8px;
  }

  /* Hamburger Icon - Push to far right edge */
  .mobile-toggle {
    position: static;
    flex-shrink: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
    padding: 8px;
    margin-left: auto;
    margin-right: -8px;
  }

  .container {
    width: 95%;
  }

  /* Info Cards - Stack all 3 vertically */
  .quick-info-grid {
    grid-template-columns: 1fr !important;
  }

  .info-card {
    border-right: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 35px 25px;
  }

  .info-card:last-child {
    border-bottom: none;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 50px;
}

.team-member {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.member-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 3px solid rgba(255, 255, 255, 0.5);
}

.member-img:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.member-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

/* Magazine-Style Section Titles */
.section-title h2 {
  color: var(--text-main) !important;
  margin-bottom: 20px !important;
}

/* Footer */
.main-footer {
  background: linear-gradient(135deg, #0a7ab8 0%, #0d9bd9 50%, #1dafed 100%);
  color: white;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 1px;
}

.footer-col a {
  color: white;
  display: block;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: #ffd700;
}

.footer-col li {
  color: white;
}

.footer-col i,
.footer-col .icon {
  color: white !important;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 0.9rem;
}

.copyright a {
  color: white !important;
  text-decoration: underline;
}

@media(max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations for grid items */
.service-card.animate-on-scroll,
.info-card.animate-on-scroll,
.team-member.animate-on-scroll,
.footer-col.animate-on-scroll {
  transition-delay: calc(var(--animation-order, 0) * 0.1s);
}

/* Image lazy load fade-in */
img {
  transition: opacity 0.3s ease-in;
}

img[data-src] {
  opacity: 0;
}

img.loaded,
img:not([data-src]) {
  opacity: 1;
}