:root {
  --primary-color: #48513c;
  --secondary-color: #fcfcfc;
  --text-color: #333;
  --light-bg: #f8f8f8;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--secondary-color);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Loading Screen with Animation */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, #3a4130 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  color: var(--secondary-color);
  margin-top: 20px;
  font-size: 1.2rem;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Floating Particles Background */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: float 20s infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

/* Header with Scroll Effect */
header {
  background-color: rgba(252, 252, 252, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(252, 252, 252, 0.98);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 20px;
  transition: var(--transition);
}

header.scrolled .header-container {
  padding: 3px 20px;
}

.logo {
  height: 112px;
  width: 112px;
  background-image: url('Images and links/SVPC logo.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  transition: var(--transition);
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

header.scrolled .logo {
  height: 76px;
  width: 76px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 10px;
}

.nav-item {
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
  display: block;
}

.nav-link:hover {
  background-color: rgba(72, 81, 60, 0.1);
  transform: translateY(-2px);
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::before {
  width: 80%;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  transition: var(--transition);
  border-radius: 3px;
}

/* Hero Section with Advanced Animations */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 140px 20px 80px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #48513c, #6b7560);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #3a4130, #48513c);
  bottom: -150px;
  right: -150px;
  animation-delay: 7s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, #5a6449, #48513c);
  top: 50%;
  left: 50%;
  animation-delay: 14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -50px) scale(1.1); }
  66% { transform: translate(-50px, 50px) scale(0.9); }
}

.hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 2;
  position: relative;
}

.hero-title {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 800;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(50px);
  animation: wordSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-title .word:nth-child(1) { animation-delay: 0.2s; }
.hero-title .word:nth-child(2) { animation-delay: 0.35s; }
.hero-title .word:nth-child(3) { animation-delay: 0.5s; }
.hero-title .word:nth-child(4) { animation-delay: 0.65s; }
.hero-title .word:nth-child(5) { animation-delay: 0.8s; }
.hero-title .word:nth-child(6) { animation-delay: 0.95s; }

@keyframes wordSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #555;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 1.2s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 1.5s;
}

.cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
  transform: translate(-50%, -50%);
}

.cta-button:hover::before {
  width: 300px;
  height: 300px;
}

.cta-button.primary {
  background: linear-gradient(135deg, var(--primary-color), #3a4130);
  color: var(--secondary-color);
  box-shadow: 0 4px 15px rgba(72, 81, 60, 0.4);
}

.cta-button.primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(72, 81, 60, 0.5);
}

.cta-button.secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.cta-button.secondary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-3px) scale(1.05);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 60px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 1.8s;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 30px;
  height: 50px;
  border: 2px solid var(--primary-color);
  border-radius: 25px;
  position: relative;
}

.scroll-arrow::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scrollDot 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scrollDot {
  0% { top: 10px; opacity: 1; }
  50% { top: 30px; opacity: 0.5; }
  100% { top: 10px; opacity: 1; }
}

/* Section Separator with Smooth Marquee */
.section-separator {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, #48513c 0%, #5a6449 50%, #48513c 100%);
  padding: 15px 0;
  position: relative;
}

.location-marquee {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  gap: 30px;
}

.location-item {
  color: var(--secondary-color);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.separator-dot {
  color: var(--secondary-color);
  font-size: 1.3rem;
  opacity: 0.5;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sections with Scroll Animations */
section {
  padding: 100px 20px;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 2.8rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  width: 100%;
  font-weight: 800;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 50px;
}

/* Fade In Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* About Section */
.about-content {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 700;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

.about-features {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.feature-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(72, 81, 60, 0.1);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  color: var(--primary-color);
  transition: var(--transition);
}

.feature-badge:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-3px);
}

.feature-badge:hover .badge-icon {
  color: var(--secondary-color);
}

.badge-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: #111;
  flex-shrink: 0;
}

.svg-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  color: inherit;
  flex-shrink: 0;
  vertical-align: middle;
}

.about-image-container {
  flex: 1;
  position: relative;
}

.about-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 500px;
  background: url('Images and links/pain free future poster.jpg') center/cover no-repeat;
  transition: var(--transition);
  animation: imageFloat 6s ease-in-out infinite;
}

@keyframes imageFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.02); }
}

.about-image:hover {
  transform: scale(1.05) rotate(2deg);
}

.floating-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Testimonials Section */
.testimonials-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.testimonials-container {
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--secondary-color);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: var(--transition);
  border: 2px solid transparent;
}

.testimonial-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: rgba(72, 81, 60, 0.2);
}

.quote-icon {
  font-size: 5rem;
  color: var(--primary-color);
  opacity: 0.15;
  position: absolute;
  top: 20px;
  left: 30px;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-content {
  font-size: 1.2rem;
  line-height: 1.9;
  color: #444;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.rating {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.stars {
  display: flex;
  gap: 3px;
  color: #111;
  font-size: 1.5rem;
}

.stars .svg-icon,
.overall-stars .svg-icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.rating-text {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.client-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), #5a6449);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--secondary-color);
  box-shadow: var(--shadow-sm);
}

.client-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.client-since {
  color: #666;
  font-size: 0.9rem;
}

/* Specialities Section */
.specialities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.speciality-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.speciality-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #5a6449);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.speciality-card:hover::before {
  transform: scaleX(1);
}

.speciality-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: var(--shadow-lg);
  border-color: rgba(72, 81, 60, 0.2);
}

.speciality-icon {
  margin-bottom: 25px;
  display: inline-block;
  padding: 15px;
  background: rgba(72, 81, 60, 0.1);
  border-radius: 15px;
  transition: var(--transition);
}

.speciality-card:hover .speciality-icon {
  background: var(--primary-color);
  transform: rotateY(360deg);
}

.speciality-icon svg {
  display: block;
  stroke: #111;
  transition: var(--transition);
}

.speciality-card:hover .speciality-icon svg {
  stroke: var(--secondary-color);
}

.speciality-title {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.speciality-description {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Team Section */
.team-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.team-member {
  background: var(--secondary-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: var(--shadow-lg);
}

.team-image-wrapper {
  position: relative;
  overflow: hidden;
}

.team-image {
  height: 350px;
  background: url('https://placehold.co/300x350/48513c/fcfcfc?text=Dr') center/cover;
  transition: var(--transition);
}

.rameshbabu-team-image {
  background-image: url('Images and links/Dr rameshbabu image.jpeg');
  background-color: #e8e1d4;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
}

.abirami-team-image {
  background-image: url('Images and links/Dr abirami image.jpeg');
  background-color: #e8e1d4;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
}

.team-member:hover .team-image {
  transform: scale(1.1);
}

.team-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(72, 81, 60, 0.95), transparent);
  color: var(--secondary-color);
  padding: 20px;
  transform: translateY(100%);
  transition: var(--transition);
}

.team-member:hover .team-overlay {
  transform: translateY(0);
}

.team-info {
  padding: 25px;
  text-align: center;
}

.team-name {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 5px;
  font-weight: 700;
}

.team-role {
  color: #666;
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.team-desc {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(72, 81, 60, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
  color: #111;
}

.social-icon .svg-icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.social-icon:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: scale(1.2) rotate(360deg);
}

/* Appointment Section */
.appointment-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #3a4130 100%);
  color: var(--secondary-color);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.appointment-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.appointment-content {
  position: relative;
  z-index: 1;
}

.appointment-title {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 800;
}

.appointment-subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.95;
}

.coming-soon-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 20px 40px;
  border-radius: 50px;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 50px;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.badge-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #4ade80;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(74, 222, 128, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.clinic-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: stretch;
  max-width: 1180px;
  margin: 0 auto;
}

.clinic-selector {
  max-width: none;
  margin: 0;
}

.contact-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 20px;
  transition: var(--transition);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.clinic-card {
  color: var(--secondary-color);
  cursor: pointer;
  font: inherit;
  min-height: 100%;
  text-align: left;
}

.clinic-card .contact-icon {
  color: var(--secondary-color);
  margin-right: 0;
}

.clinic-card.active {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 14px 34px rgba(0,0,0,0.24);
}

.clinic-card:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: 4px;
}

.clinic-city {
  display: inline-flex;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
  color: #111;
}

.contact-icon .svg-icon {
  width: 42px;
  height: 42px;
  stroke-width: 1.7;
}

.contact-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.contact-address {
  font-size: 0.95rem;
  margin-bottom: 15px;
  opacity: 0.9;
  line-height: 1.5;
}

.contact-numbers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-number {
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  transition: var(--transition);
  display: inline-block;
}

.contact-number:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.clinic-map-panel {
  position: sticky;
  top: 120px;
  min-height: 520px;
  align-self: start;
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0,0,0,0.2);
}

.clinic-map-panel iframe {
  width: 100%;
  height: 460px;
  border: 0;
  display: block;
  background: rgba(255, 255, 255, 0.2);
}

.map-open-link {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
  padding: 14px 20px;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  transition: var(--transition);
}

.map-open-link:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Footer */
footer {
  background: linear-gradient(135deg, #2a2e26 0%, #1a1d17 100%);
  color: var(--secondary-color);
  padding: 60px 20px 20px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 34px;
  max-width: 1320px;
  margin: 0 auto 40px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

.footer-column:last-child {
  flex: 2.4;
  min-width: 520px;
}

.footer-title {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-bottom: 25px;
  position: relative;
  font-weight: 700;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
  border-radius: 2px;
}

.footer-column p {
  line-height: 1.8;
  color: #ccc;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a::before {
  content: '→';
  opacity: 0;
  transform: translateX(-10px);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 10px;
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 16px;
  color: #ccc;
  line-height: 1.55;
}

.footer-address-card {
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
}

.footer-address-card h4 {
  color: var(--secondary-color);
  font-size: 1.05rem;
  margin-bottom: 12px;
  font-weight: 800;
}

.footer-addresses a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 700;
}

.footer-addresses a:hover {
  text-decoration: underline;
}

.footer-address-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.footer-address-row:last-child {
  margin-bottom: 0;
}

.footer-info-icon {
  color: var(--secondary-color);
  display: inline-flex;
  justify-content: center;
  padding-top: 2px;
}

.footer-info-icon .svg-icon {
  width: 19px;
  height: 19px;
  stroke-width: 1.9;
  color: var(--secondary-color);
}

.contact-info {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  line-height: 1.6;
  color: #ccc;
}

.contact-icon {
  margin-right: 12px;
  font-size: 1.3rem;
  color: #111;
  flex-shrink: 0;
}

.footer-column .contact-icon .svg-icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
  color: var(--secondary-color);
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-icon-footer {
  width: 45px;
  height: 45px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
}

.social-icon-footer .social-logo {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
}

.social-icon-footer .social-logo-outline {
  fill: none;
}

.social-icon-footer .social-logo-fill {
  fill: currentColor;
  stroke: none;
}

.social-icon-footer .jd-mark {
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0;
}

.social-icon-footer:hover {
  background: var(--primary-color);
  transform: scale(1.2) rotate(360deg);
}

.footer-email {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.95rem;
}

.footer-email svg {
  color: #999;
  flex-shrink: 0;
}

.footer-email a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-email a:hover {
  color: #fff;
}

.footer-brochures {
  margin-top: 20px;
}

.footer-brochures h4 {
  color: #ccc;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-brochures a {
  display: block;
  color: #999;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 3px 0;
  transition: color 0.3s ease;
}

.footer-brochures a:hover {
  color: #fff;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #999;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    padding: 12px 15px;
  }

  .logo {
    height: 70px;
    width: 70px;
  }

  .nav-menu {
    position: fixed;
    top: 90px;
    left: 0;
    flex-direction: column;
    background: rgba(252, 252, 252, 0.98);
    backdrop-filter: blur(10px);
    width: 100%;
    box-shadow: var(--shadow-md);
    padding: 20px 0;
    transform: translateY(-120%);
    transition: var(--transition);
    z-index: 999;
    gap: 0;
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-item {
    margin: 0;
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 15px 30px;
    border-radius: 0;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
  }

  .hero {
    padding: 120px 20px 60px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-stats {
    gap: 30px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .about-content {
    flex-direction: column;
  }

  .about-image {
    height: 350px;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .specialities-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .speciality-card {
    padding: 30px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .appointment-title {
    font-size: 2rem;
  }

  .appointment-subtitle {
    font-size: 1.1rem;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .clinic-map-layout {
    grid-template-columns: 1fr;
  }

  .clinic-map-panel {
    position: static;
    min-height: 380px;
  }

  .clinic-map-panel iframe {
    height: 320px;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-column:last-child {
    min-width: 0;
  }

  .footer-addresses {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
    gap: 10px;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .cta-button {
    padding: 12px 30px;
    font-size: 1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .about-text h3 {
    font-size: 1.5rem;
  }

  .about-text p {
    font-size: 1rem;
  }

  .speciality-title {
    font-size: 1.4rem;
  }

  .testimonial-card {
    padding: 25px;
  }

  .testimonial-content {
    font-size: 1.05rem;
  }
}
/* ===== ENHANCED REVIEWS SECTION ===== */

/* Tab filter */
.review-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.review-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 30px;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.review-tab:hover,
.review-tab.active {
  background: var(--primary-color);
  color: #fcfcfc;
}

.review-tab.hidden-tab {
  display: none;
}

/* Source logos */
.source-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

.google-logo {
  background: #4285f4;
  color: white;
}

.jd-logo {
  background: #e03a3e;
  color: white;
}

/* Overall rating bar */
.overall-rating {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px 40px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.07);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.overall-score {
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 8px;
}

.overall-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  font-size: 2rem;
  color: #111;
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.overall-label {
  font-size: 1rem;
  color: #888;
  margin-bottom: 20px;
}

.review-platform-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.platform-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.google-link {
  background: #e8f0fe;
  color: #4285f4;
  border-color: #4285f4;
}

.google-link:hover {
  background: #4285f4;
  color: white;
}

.jd-link {
  background: #fde8e8;
  color: #e03a3e;
  border-color: #e03a3e;
}

.jd-link:hover {
  background: #e03a3e;
  color: white;
}

/* Testimonials grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.testimonials-grid .testimonial-card {
  position: relative;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.testimonials-grid .testimonial-card.hidden-card {
  display: none;
}

/* Source badge on each card */
.review-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.google-badge {
  background: #e8f0fe;
  color: #4285f4;
}

.jd-badge {
  background: #fde8e8;
  color: #e03a3e;
}

/* Review tags */
.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0;
}

.review-tag {
  font-size: 0.78rem;
  padding: 4px 12px;
  background: rgba(72, 81, 60, 0.08);
  color: var(--primary-color);
  border-radius: 20px;
  font-weight: 600;
  border: 1px solid rgba(72, 81, 60, 0.15);
}

/* Leave a review CTA */
.review-cta {
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.review-cta p {
  font-size: 1.2rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 20px;
}

.review-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.review-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.google-btn {
  background: #4285f4;
  color: white;
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.35);
}

.google-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(66, 133, 244, 0.45);
}

.jd-btn {
  background: #e03a3e;
  color: white;
  box-shadow: 0 4px 15px rgba(224, 58, 62, 0.35);
}

.jd-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(224, 58, 62, 0.45);
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .overall-rating {
    padding: 20px;
  }
  .review-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ===== Feedback / Review Section ===== */
.feedback-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.feedback-card {
  max-width: 540px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  padding: 44px 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(72, 81, 60, 0.08);
}

.feedback-row {
  margin-bottom: 24px;
}

.feedback-label {
  display: block;
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.05rem;
  margin-bottom: 12px;
}

/* Branch Select */
.branch-select-wrapper {
  position: relative;
  margin-bottom: 12px;
}

.branch-select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1rem;
  color: var(--text-color);
  background: #fafafa;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-family: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.branch-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(72, 81, 60, 0.1);
  background-color: #fff;
}

.branch-select optgroup {
  font-weight: 700;
  color: var(--primary-color);
  font-style: normal;
}

.branch-select option {
  font-weight: 400;
  color: var(--text-color);
  padding: 6px;
}

.detect-location-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 2px dashed #ccc;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 0.95rem;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-weight: 500;
}

.detect-location-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(72, 81, 60, 0.05);
}

.detect-location-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.detect-location-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.detect-location-btn .loc-icon {
  display: inline-block;
}

.detect-location-btn .loc-spinner {
  display: none;
}

.detect-location-btn.loading .loc-icon {
  display: none;
}

.detect-location-btn.loading .loc-spinner {
  display: inline-block;
  animation: locSpin 1s linear infinite;
}

@keyframes locSpin {
  to { transform: rotate(360deg); }
}

.location-status {
  display: block;
  font-size: 0.9rem;
  margin-top: 8px;
  color: #888;
}

.location-status.success {
  color: #2e7d32;
}

.location-status.error {
  color: #c62828;
}

/* Review on Google Button */
.review-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 32px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  box-shadow: 0 4px 15px rgba(72, 81, 60, 0.35);
}

.review-google-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(72, 81, 60, 0.5);
}

.review-google-btn:active {
  transform: translateY(0);
}

.review-google-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.review-btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .feedback-card {
    padding: 28px 20px;
  }
}
