
:root {
  --primary-950: #041c32;
  --primary-900: #06283d;
  --primary-800: #0a4d68;
  --primary-700: #05668d;
  --primary-600: #028090;
  --primary-500: #00a896;
  --primary-100: #e0f4f7;
  --primary-50:  #f0f9fa;
  
  --emerald-900: #064e3b;
  --emerald-800: #065f46;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-50:  #ecfdf5;

  --accent-gold: #f59e0b;
  --accent-cyan: #00d2d3;
  --danger-500:  #ef4444;
  --danger-50:   #fef2f2;

  --slate-900: #0b132b;
  --slate-800: #1c2541;
  --slate-700: #3a506b;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(11, 19, 43, 0.08);
  --shadow-lg: 0 12px 24px -4px rgba(11, 19, 43, 0.12);
  --shadow-xl: 0 24px 38px -8px rgba(11, 19, 43, 0.16);
  --shadow-glow: 0 0 25px rgba(2, 128, 144, 0.25);
  
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: #fbfcfd;
  color: var(--slate-800);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.top-bar {
  background: linear-gradient(90deg, #0b6e4f 0%, #087f5b 50%, #008775 100%);
  color: #f1f5f9;
  font-size: 0.84rem;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  letter-spacing: 0.2px;
}

.top-bar-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.top-info-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #f8fafc;
}

.top-info-item a:hover {
  color: #a7f3d0;
}

.top-info-item i {
  color: #6ee7b7;
}

.badge-emergency {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: #fff;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: emergencyPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.badge-emergency i {
  color: #ffffff;
  display: inline-block;
  animation: sirenFlash 1.6s ease-in-out infinite;
}

@keyframes emergencyPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.75);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(239, 68, 68, 0);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    transform: scale(1);
  }
}

@keyframes sirenFlash {
  0%, 100% {
    opacity: 1;
    transform: rotate(0deg);
  }
  20% {
    opacity: 0.7;
    transform: rotate(-8deg);
  }
  40% {
    opacity: 1;
    transform: rotate(8deg);
  }
  60% {
    opacity: 0.8;
    transform: rotate(0deg);
  }
}

.service-card[data-id="srv-1"] .service-tag {
  background: #dc2626;
  color: #ffffff;
  animation: emergencyPulse 2s infinite;
}

.top-social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 6px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.top-social-btn {
  color: #ffffff;
  font-size: 0.95rem;
  transition: transform 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-social-btn:hover {
  color: #a7f3d0;
  transform: translateY(-2px);
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.navbar-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.14));
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  user-select: none;
}

.brand-main-title {
  font-family: 'Montserrat', 'Inter', -apple-system, sans-serif;
  font-size: 0.98rem;
  font-weight: 900;
  color: #047857;
  line-height: 1.12;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.brand-main-title span {
  font-size: 1.25rem;
  font-weight: 900;
  color: #047857;
  letter-spacing: 0.8px;
  display: inline-block;
}

.brand-sub-motto {
  font-family: 'Alex Brush', 'Great Vibes', 'Dancing Script', cursive;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 500;
  color: #047857;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--slate-700);
  position: relative;
  padding: 6px 4px;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: #059669;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: linear-gradient(90deg, #059669 0%, #10b981 100%);
  border-radius: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35);
}

.btn-outline {
  border: 1.5px solid #059669;
  color: #059669;
  background: transparent;
}

.btn-outline:hover {
  background: var(--emerald-50);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--slate-700);
  cursor: pointer;
}

.hero-section {
  position: relative;
  background: 
    linear-gradient(135deg, rgba(4, 47, 46, 0.88) 0%, rgba(10, 77, 104, 0.82) 50%, rgba(4, 28, 50, 0.92) 100%),
    url('../assets/gedung-rs.jpg') center 35% / cover no-repeat;
  color: #fff;
  padding: 75px 24px 125px;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, rgba(2, 128, 144, 0.05) 70%, transparent 100%);
  filter: blur(80px);
  top: -120px;
  right: -80px;
  pointer-events: none;
}

.hero-container {
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
}

.kars-inline-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  padding: 8px 22px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  border: 2px solid #ffd700;
}

.kars-seal {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #028090 0%, #044343 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffd700;
  font-size: 1.35rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  border: 1.5px solid #ffd700;
}

.kars-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.kars-stars {
  display: flex;
  gap: 3px;
  color: #f59e0b;
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.kars-text-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.kars-acronym {
  font-weight: 900;
  font-size: 1.05rem;
  color: #0a4d68;
  letter-spacing: 0.8px;
}

.kars-rank {
  font-weight: 800;
  font-size: 0.82rem;
  color: #b45309;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.kars-caption {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 600;
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #f1f5f9;
  max-width: 760px;
  margin: 0 auto 34px;
  font-weight: 400;
  line-height: 1.7;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.hero-search-card {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.98);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 45px rgba(4, 28, 50, 0.25);
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
}

.search-input-wrap i {
  color: #059669;
  font-size: 1.1rem;
}

.search-input-wrap input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.95rem;
  color: var(--slate-900);
  font-family: inherit;
}

.quick-cards-wrapper {
  max-width: 1280px;
  margin: -50px auto 55px;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.quick-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.quick-card {
  background: #ffffff;
  padding: 20px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(226, 232, 240, 0.9);
  cursor: pointer;
}

.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #10b981;
}

.quick-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--emerald-50);
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.quick-card:hover .quick-card-icon {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #fff;
}

.quick-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--slate-900);
}

.quick-card p {
  font-size: 0.84rem;
  color: var(--slate-500);
  line-height: 1.45;
}

.section {
  padding: 75px 24px;
  scroll-margin-top: 86px;
}

.section-container {
  max-width: 1320px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-subtitle {
  color: #059669;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.25;
  letter-spacing: -0.4px;
}

.section-desc {
  color: var(--slate-600);
  margin-top: 12px;
  font-size: 1rem;
}

.partner-section {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 48px 0 52px;
}

.partner-marquee-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 8px 0 10px;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.partner-marquee-track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  animation: partnerMarquee 28s linear infinite;
}

.partner-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes partnerMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-logo-item {
  height: 72px;
  min-width: 170px;
  padding: 10px 22px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.partner-logo-item:hover {
  background: #ffffff;
  transform: translateY(-3px);
  border-color: #10b981;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.16);
}

.partner-logo-item img {
  max-height: 44px;
  max-width: 135px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.partner-logo-item:hover img {
  transform: scale(1.06);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 55px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 20px;
  line-height: 1.3;
}

.about-text p {
  font-size: 1.02rem;
  color: var(--slate-600);
  margin-bottom: 26px;
  line-height: 1.8;
}

.about-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-200);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--slate-800);
}

.badge-item i {
  color: var(--emerald-600);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-card {
  background: #fff;
  padding: 30px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: #10b981;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: #047857;
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-600);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: #a7f3d0;
}

.service-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img-wrap img {
  transform: scale(1.06);
}

.service-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(4, 28, 50, 0.85);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.service-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 10px;
}

.service-body p {
  color: var(--slate-600);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.service-link {
  color: #047857;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-link:hover {
  gap: 12px;
  color: #059669;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.promo-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-5px);
  border-color: var(--emerald-500);
  box-shadow: var(--shadow-lg);
}

.promo-thumb {
  height: 165px;
  position: relative;
  overflow: hidden;
}

.promo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--emerald-600);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.promo-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.promo-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: #047857;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.promo-content h4 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 8px;
}

.promo-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--emerald-700);
  margin-bottom: 10px;
}

.promo-content p {
  font-size: 0.85rem;
  color: var(--slate-600);
  margin-bottom: 18px;
  flex: 1;
  line-height: 1.5;
}

.doctor-filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  justify-content: center;
}

.doctor-filter-btn {
  background: #fff;
  border: 1px solid var(--slate-300);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--slate-700);
  cursor: pointer;
  transition: all 0.2s ease;
}

.doctor-filter-btn.active, .doctor-filter-btn:hover {
  background: #059669;
  color: #fff;
  border-color: #059669;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.25);
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.doctor-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.doctor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px -8px rgba(5, 150, 105, 0.18);
  border-color: #a7f3d0;
}

.doctor-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #0f172a;
  overflow: hidden;
  cursor: pointer;
}

.doctor-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.doctor-card:hover .doctor-poster-img {
  transform: scale(1.035);
}

.doctor-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(16, 185, 129, 0.95);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.doctor-poster-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
}

.doctor-card:hover .doctor-poster-overlay {
  opacity: 1;
}

.poster-preview-pill {
  background: rgba(255, 255, 255, 0.95);
  color: #047857;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transform: translateY(4px);
  transition: transform 0.25s ease;
}

.doctor-card:hover .poster-preview-pill {
  transform: translateY(0);
}

.doctor-info {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #ffffff;
}

.doctor-info-header {
  margin-bottom: 10px;
}

.doctor-poli-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid #a7f3d0;
  margin-bottom: 6px;
}

.doctor-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 3px;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.doctor-spec {
  color: #059669;
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.35;
  margin-bottom: 8px;
  min-height: 2.2em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.doctor-schedule-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  flex: 1;
}

.schedule-header {
  font-size: 0.7rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 7px;
  padding-bottom: 5px;
  border-bottom: 1px dashed #cbd5e1;
}

.schedule-slots-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.schedule-slot-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.78rem;
  line-height: 1.3;
}

.slot-days {
  font-weight: 700;
  color: #1e293b;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.slot-time {
  color: #065f46;
  font-weight: 600;
  background: #ecfdf5;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.74rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
}

.doctor-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.btn-book-doc {
  flex: 1;
  padding: 9px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
}

.btn-wa-doc {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #ffffff;
  border-radius: 8px;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.btn-wa-doc:hover {
  background: #1ebd5a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
  color: #ffffff;
}

.modal-poster-container {
  max-width: 560px;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
}

.doctor-poster-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #0f172a;
  border-radius: 10px;
  overflow: hidden;
}

.doctor-poster-full {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.modal-poster-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.modal-poster-meta h4 {
  margin: 0 0 3px;
  font-size: 1rem;
  color: #0f172a;
  font-weight: 700;
}

.modal-poster-meta p {
  margin: 0;
  font-size: 0.82rem;
  color: #059669;
  font-weight: 600;
}


.testimonials-section {
  background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.testimonial-card {
  background: #fff;
  padding: 26px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: all 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #a7f3d0;
}

.google-review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  position: relative;
}

.google-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.google-user-info h5 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.2;
}

.google-user-info span {
  font-size: 0.78rem;
  color: var(--slate-500);
}

.google-brand-icon {
  margin-left: auto;
  font-size: 1.25rem;
  color: #4285f4;
}

.google-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.google-stars {
  color: #fbbc04;
  font-size: 0.9rem;
  display: flex;
  gap: 2px;
}

.google-review-time {
  font-size: 0.78rem;
  color: var(--slate-500);
}

.google-badge-new {
  background: #1e293b;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.google-review-text {
  color: var(--slate-700);
  font-size: 0.92rem;
  line-height: 1.65;
  font-style: normal;
  margin-bottom: 0;
  white-space: pre-line;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-thumb {
  height: 190px;
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-thumb img {
  transform: scale(1.06);
}

.news-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-date {
  font-size: 0.8rem;
  color: var(--slate-500);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-body h4 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 10px;
  line-height: 1.45;
}

.news-body p {
  font-size: 0.88rem;
  color: var(--slate-600);
  margin-bottom: 18px;
  flex: 1;
}

.service-portals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 45px;
}

.portal-box {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  cursor: pointer;
}

.portal-box:hover {
  border-color: #059669;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.portal-box i {
  font-size: 2rem;
  color: #047857;
}

.portal-box h5 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 3px;
}

.portal-box span {
  font-size: 0.78rem;
  color: var(--slate-500);
}

.main-footer {
  background: #008170;
  color: #f1f5f9;
  padding: 65px 24px 0;
}

.footer-container {
  max-width: 1360px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.95fr 1.3fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-col h5 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: #a7f3d0;
  border-radius: 2px;
}

.hero-kars-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.98);
  padding: 6px 20px 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 1.5px solid #ffd700;
}

.hero-kars-badge img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

.hero-kars-badge-text {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.hero-kars-badge-text strong {
  font-size: 0.96rem;
  font-weight: 900;
  color: #064e3b;
  letter-spacing: 0.6px;
  line-height: 1.2;
}

.hero-kars-badge-text span {
  font-size: 0.72rem;
  font-weight: 700;
  color: #b45309;
  letter-spacing: 0.5px;
}

.footer-social-squares {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.footer-icon-square {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0b132b;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-icon-square:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  color: #059669;
}

.footer-contact-list li {
  margin-bottom: 14px;
  display: flex;
  gap: 12px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #f8fafc;
}

.footer-contact-list i {
  color: #a7f3d0;
  font-size: 1.15rem;
  margin-top: 3px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #e2e8f0;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 5px;
  font-weight: 600;
}

.footer-map-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.map-header {
  padding: 10px 14px;
  background: rgba(4, 28, 50, 0.45);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #ffffff;
}

.map-header a {
  color: #a7f3d0;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.map-header a:hover {
  text-decoration: underline;
  color: #ffffff;
}

.footer-map-iframe {
  width: 100%;
  height: 200px;
  border: none;
  display: block;
}

.footer-copyright-bar {
  background: #006052;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 18px 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-left: -24px;
  margin-right: -24px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 19, 43, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: #fff;
  width: 100%;
  max-width: 620px;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modal-pop 0.25s ease-out;
}

.modal-container.modal-lg {
  max-width: 880px;
}

@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 20px 26px;
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

.modal-header h3 {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--slate-900);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--slate-400);
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: var(--slate-100);
  color: var(--slate-800);
}

.modal-body {
  padding: 26px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 7px;
}

.form-control {
  width: 100%;
  padding: 11px 15px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--slate-800);
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.security-alert-box {
  background: #f8fafc;
  border: 1px solid var(--slate-200);
  border-left: 4px solid #059669;
  padding: 14px 18px;
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  color: var(--slate-600);
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.security-alert-box i {
  color: #059669;
  font-size: 1.2rem;
  margin-top: 2px;
}

#admin-view {
  display: none;
  min-height: 100vh;
  background: #f1f5f9;
}

#admin-view.active {
  display: flex;
}

.admin-sidebar {
  width: 280px;
  background: var(--slate-900);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-brand {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-nav {
  padding: 24px 14px;
  flex: 1;
  overflow-y: auto;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-nav-item:hover, .admin-nav-item.active {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.admin-nav-item i {
  font-size: 1.15rem;
  width: 22px;
  text-align: center;
}

.admin-footer-btn {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-y: auto;
}

.admin-topbar {
  background: #fff;
  padding: 18px 32px;
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
}

.admin-topbar h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--slate-900);
}

.admin-content {
  padding: 32px;
  flex: 1;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 30px;
}

.admin-stat-card {
  background: #fff;
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 18px;
}

.admin-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.admin-stat-info h6 {
  font-size: 0.8rem;
  color: var(--slate-500);
  text-transform: uppercase;
  font-weight: 700;
}

.admin-stat-info h3 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--slate-900);
}

.data-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 30px;
}

.data-card-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.data-card-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--slate-900);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.admin-table th {
  background: var(--slate-50);
  padding: 14px 20px;
  font-weight: 700;
  color: var(--slate-700);
  border-bottom: 1px solid var(--slate-200);
}

.admin-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--slate-100);
  color: var(--slate-800);
  vertical-align: middle;
}

.admin-table tr:hover {
  background: #f8fafc;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-pending { background: #fef3c7; color: #b45309; }
.status-confirmed { background: #dcfce7; color: #15803d; }
.status-done { background: #e0e7ff; color: #4338ca; }

.action-btns {
  display: flex;
  gap: 8px;
}

.btn-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--slate-200);
  background: #fff;
  color: var(--slate-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: var(--emerald-50);
  color: #047857;
  border-color: #a7f3d0;
}

.btn-icon.danger:hover {
  background: var(--danger-50);
  color: var(--danger-500);
  border-color: var(--danger-500);
}

@media (max-width: 1200px) {
  .doctors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1100px) {
  .nav-links {
    gap: 12px;
  }
  .nav-link {
    font-size: 0.82rem;
  }
}

@media (max-width: 1024px) {
  .quick-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid, .promo-grid, .doctors-grid, .testimonials-grid, .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .top-bar {
    padding: 7px 0;
    font-size: 0.78rem;
  }
  .top-bar-container {
    padding: 0 14px;
    justify-content: center;
  }
  .top-bar-left {
    display: none;
  }
  .top-bar-right {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .navbar-container {
    padding: 10px 16px;
    gap: 10px;
    position: relative;
  }
  .brand-logo-img {
    width: 46px;
    height: 46px;
  }
  .brand-main-title {
    font-size: 0.8rem;
  }
  .brand-main-title span {
    font-size: 1.02rem;
  }
  .brand-sub-motto {
    font-size: 1.08rem;
  }
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 16px 18px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #cbd5e1;
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
    z-index: 999;
  }
  .nav-links.mobile-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links.mobile-open .nav-link {
    display: flex;
    align-items: center;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 0.94rem;
    color: var(--slate-800);
  }
  .nav-links.mobile-open .nav-link.active {
    background: var(--emerald-50);
    color: #047857;
  }
  .nav-links.mobile-open .nav-link.active::after {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: var(--slate-800);
    font-size: 1.15rem;
  }
  .hero-section {
    padding: 42px 16px 78px;
    background-position: center 25%;
  }
  .hero-kars-badge {
    padding: 6px 14px 6px 10px;
    gap: 10px;
    margin-bottom: 16px;
  }
  .hero-kars-badge img {
    height: 34px;
  }
  .hero-kars-badge-text strong {
    font-size: 0.84rem;
  }
  .hero-kars-badge-text span {
    font-size: 0.65rem;
  }
  .hero-title {
    font-size: 1.78rem;
    line-height: 1.28;
  }
  .hero-subtitle {
    font-size: 0.96rem;
    margin-bottom: 24px;
  }
  .hero-search-card {
    flex-direction: column;
    padding: 10px;
    gap: 10px;
    border-radius: 14px;
  }
  .search-input-wrap {
    width: 100%;
  }
  .hero-search-card .btn {
    width: 100%;
    padding: 12px 18px;
  }
  .quick-cards-wrapper {
    margin: -40px auto 40px;
    padding: 0 16px;
  }
  .quick-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .section {
    padding: 52px 16px;
  }
  .section-header {
    margin-bottom: 30px;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .about-grid {
    gap: 28px;
  }
  .about-text h2 {
    font-size: 1.65rem;
  }
  .doctor-filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 4px 2px 10px;
    margin-bottom: 24px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .doctor-filter-bar::-webkit-scrollbar {
    display: none;
  }
  .doctor-filter-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 7px 14px;
    font-size: 0.82rem;
  }
  .services-grid, .promo-grid, .doctors-grid, .testimonials-grid, .news-grid, .service-portals-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .main-footer {
    padding: 48px 16px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 28px;
  }
  .footer-copyright-bar {
    margin-left: -16px;
    margin-right: -16px;
    padding: 14px 16px;
    font-size: 0.84rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    width: 62px;
  }
  .admin-brand {
    justify-content: center;
    padding: 16px 10px;
  }
  .admin-nav-item {
    justify-content: center;
    padding: 12px;
  }
  .admin-nav-item span, .admin-brand span, .admin-brand h4 {
    display: none;
  }
  .admin-topbar {
    padding: 14px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .admin-topbar h2 {
    font-size: 1.08rem;
  }
  .admin-content {
    padding: 16px;
  }
  .data-card-header {
    padding: 14px 16px;
  }
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .top-social-links {
    display: none;
  }
  .top-bar-right {
    justify-content: space-between;
    font-size: 0.74rem;
  }
  .badge-emergency {
    padding: 4px 10px;
    font-size: 0.7rem;
  }
  .navbar-container {
    padding: 9px 14px;
    gap: 8px;
  }
  .brand-logo-img {
    width: 40px;
    height: 40px;
  }
  .brand-main-title {
    font-size: 0.7rem;
  }
  .brand-main-title span {
    font-size: 0.9rem;
  }
  .brand-sub-motto {
    font-size: 0.96rem;
  }
  .header-actions {
    gap: 8px;
  }
  .header-actions .btn-primary {
    padding: 7px 10px;
    font-size: 0.75rem;
    gap: 5px;
    border-radius: 8px;
  }
  .hero-section {
    padding: 34px 14px 64px;
  }
  .hero-title {
    font-size: 1.48rem;
  }
  .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  .quick-cards-wrapper {
    margin: -34px auto 32px;
    padding: 0 14px;
  }
  .quick-cards-grid {
    gap: 10px;
  }
  .quick-card {
    padding: 14px 12px;
    gap: 8px;
    border-radius: 14px;
  }
  .quick-card-icon {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }
  .quick-card h3 {
    font-size: 0.88rem;
    line-height: 1.25;
  }
  .quick-card p {
    font-size: 0.74rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .section {
    padding: 44px 14px;
    scroll-margin-top: 68px;
  }
  .testimonial-card {
    padding: 20px;
  }
  .section-title {
    font-size: 1.42rem;
    line-height: 1.3;
  }
  .section-desc {
    font-size: 0.88rem;
  }
  .about-text h2 {
    font-size: 1.45rem;
  }
  .about-text p {
    font-size: 0.92rem;
    margin-bottom: 18px;
  }
  .about-badges {
    gap: 8px;
    margin-bottom: 20px;
  }
  .badge-item {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  .stats-grid {
    gap: 10px;
  }
  .stat-card {
    padding: 18px 10px;
    border-radius: 14px;
  }
  .stat-number {
    font-size: 1.48rem;
  }
  .stat-label {
    font-size: 0.75rem;
    line-height: 1.3;
  }
  .services-grid, .promo-grid, .doctors-grid, .testimonials-grid, .news-grid, .service-portals-grid, .admin-stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .doctor-name, .doctor-spec {
    min-height: auto;
  }
  .partner-section {
    padding: 38px 0;
  }
  .partner-logo-item {
    min-width: 132px;
    height: 58px;
    padding: 8px 14px;
  }
  .partner-logo-item img {
    max-height: 36px;
    max-width: 105px;
  }
  .partner-marquee-track {
    gap: 14px;
    animation-duration: 22s;
  }
  .service-portals-grid {
    margin-top: 26px;
  }
  .portal-box {
    padding: 14px 16px;
    gap: 12px;
  }
  .modal-overlay {
    padding: 10px;
  }
  .modal-container {
    border-radius: 18px;
    max-height: 92vh;
  }
  .modal-header {
    padding: 14px 16px;
  }
  .modal-header h3 {
    font-size: 1rem;
  }
  .modal-body {
    padding: 16px;
  }
  .form-control, .search-input-wrap input {
    font-size: 16px;
  }
  .modal-poster-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .btn-book-doc {
    width: 100%;
  }
  #tab-settings .data-card > div[style*="padding:28px"] {
    padding: 16px !important;
  }
}

@media (max-width: 420px) {
  .navbar-container {
    padding: 8px 12px;
    gap: 6px;
  }
  .brand-logo-img {
    width: 34px;
    height: 34px;
  }
  .logo-wrapper {
    gap: 8px;
  }
  .brand-main-title {
    font-size: 0.62rem;
  }
  .brand-main-title span {
    font-size: 0.8rem;
  }
  .brand-sub-motto {
    font-size: 0.84rem;
  }
  .header-actions {
    gap: 6px;
  }
  .header-actions .btn-primary {
    padding: 7px 9px;
    font-size: 0.72rem;
    gap: 4px;
  }
  .mobile-menu-btn {
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
  }
  .hero-title {
    font-size: 1.36rem;
  }
}

