:root {
  --font-sans: "Inter", sans-serif;
  --font-display: "Outfit", sans-serif;

  --primary: 355 65% 52%;
  --secondary: 200 90% 48%;
  --foreground: 222 47% 11%;
  --muted: 215 16% 47%;
  --border: 214 32% 91%;
  --sky-600: #0284c7;
  --sky-50: #f0f9ff;
  --slate-900: #0f172a;
  --slate-50: #f8fafc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: hsl(var(--foreground));
  background: var(--slate-50);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
}

a {
  text-decoration: none;
}

.text-primary {
  color: hsl(var(--primary)) !important;
}

.bg-primary {
  background-color: hsl(var(--primary)) !important;
}

.text-sky-50 {
  color: var(--sky-50) !important;
}

.bg-sky-600 {
  background-color: var(--sky-600) !important;
}

.bg-slate-900 {
  background-color: var(--slate-900) !important;
}

.border-color {
  border-color: hsl(var(--border)) !important;
}

.glass-nav {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.top-bar {
  background: var(--slate-900);
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 600;
}

.top-bar .bi {
  color: hsl(var(--primary));
  font-size: 0.9rem;
}

.navbar-brand .brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1;
}

.navbar-brand .brand-subtitle {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

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

.nav-link {
  font-weight: 600;
  color: #475569;
  border-radius: 999px;
  padding: 0.5rem 1rem !important;
}

.nav-link:hover {
  color: hsl(var(--primary));
  background: rgba(226, 232, 240, 0.5);
}

.nav-link.active {
  color: hsl(var(--primary));
  background: rgba(209, 59, 59, 0.12);
}

.navbar-toggler:focus,
.navbar-toggler:active {
  box-shadow: none;
  outline: none;
}

.navbar-toggler:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(2, 132, 199, 0.35);
}

.btn-primary {
  background-color: hsl(var(--primary));
  border-color: hsl(var(--primary));
  box-shadow: 0 12px 20px rgba(209, 59, 59, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.btn-primary:hover {
  background-color: #b23232;
  border-color: #b23232;
  transform: translateY(-3px);
  box-shadow: 0 16px 26px rgba(209, 59, 59, 0.28);
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--sky-600);
  color: #fff;
  padding: 6rem 0 8rem;
}

.hero .hero-shape-1,
.hero .hero-shape-2 {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
}

.hero .hero-shape-1 {
  top: -20%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: rgba(255, 255, 255, 0.2);
}

.hero .hero-shape-2 {
  bottom: -20%;
  left: -10%;
  width: 50%;
  height: 100%;
  background: rgba(125, 211, 252, 0.3);
}

.hero .hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: url("https://www.transparenttextures.com/patterns/medical-icons.png");
}

.hero .hero-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.16);
  color: #e0f2fe;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  font-size: clamp(2.7rem, 3.4vw + 1.2rem, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero .hero-accent {
  color: #7dd3fc;
}

.hero .hero-lead {
  color: #d4ecfb;
  max-width: 560px;
  line-height: 1.6;
}

.hero .hero-buttons {
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.hero .btn {
  border-radius: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
}

.hero .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.14);
}

.hero .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.22);
}

.section-title {
  font-weight: 700;
  color: var(--slate-900);
}

.section-subtitle {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.75rem;
  color: hsl(var(--primary));
}

.quick-links {
  margin-top: -6rem;
  position: relative;
  z-index: 2;
}

.quick-link-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem;
  border: 1px solid hsl(var(--border));
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.quick-link-card:hover {
  transform: translateY(-6px);
  background: var(--slate-50);
  border-color: rgba(2, 132, 199, 0.25);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
}

.icon-bubble {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.icon-bubble.red {
  background: #fee2e2;
  color: #dc2626;
}

.icon-bubble.green {
  background: #d1fae5;
  color: #059669;
}

.quick-link-card:hover .icon-bubble.red {
  background: #dc2626;
  color: #fff;
}

.quick-link-card:hover .icon-bubble.green {
  background: #059669;
  color: #fff;
}

.section-card {
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid hsl(var(--border));
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.service-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
}

.service-card .corner-decoration {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 96px;
  height: 96px;
  background: rgba(209, 59, 59, 0.08);
  border-bottom-left-radius: 999px;
  transition: transform 0.4s ease;
}

.service-card:hover .corner-decoration {
  transform: scale(1.25);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  background: rgba(209, 59, 59, 0.12);
  color: hsl(var(--primary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.service-card:hover .service-icon {
  background: hsl(var(--primary));
  color: #fff;
}

.service-card .service-link {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover .service-link {
  opacity: 1;
}

.doctor-card {
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid hsl(var(--border));
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doctor-card-simple {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.doctor-card-simple .doctor-image {
  aspect-ratio: 1 / 1;
  background: #d1d5db;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.doctor-card-simple .doctor-image::before {
  font-size: 3.5rem;
  color: rgba(248, 250, 252, 0.95);
}

.staff-page .doctor-card-simple .doctor-image {
  aspect-ratio: 4 / 3;
}

.staff-page .doctor-card-simple .doctor-image::before {
  font-size: 2.3rem;
}

.staff-page .doctor-card-simple .staff-card-body {
  padding: 0.6rem 0.8rem;
}

.staff-page .doctor-card-simple h3 {
  font-size: 1rem;
}

.staff-page .doctor-card-simple p {
  font-size: 0.85rem;
}

.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
}

.doctor-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #e2e8f0;
  overflow: hidden;
}

.doctor-image-icon::before {
  content: "\f4d7";
  font-family: "bootstrap-icons";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 3rem;
  color: rgba(148, 163, 184, 0.8);
  pointer-events: none;
}

.doctor-image .doctor-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.7), transparent 70%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  color: #fff;
  z-index: 2;
}

.doctor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}

.doctor-card:hover .doctor-image img {
  transform: scale(1.04);
}

.schedule-toggle {
  background: #f8fafc;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  width: 100%;
  font-weight: 600;
  color: #475569;
}

.schedule-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.schedule-grid .header {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  font-weight: 700;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed hsl(var(--border));
}

.schedule-grid .row-item {
  padding: 0.35rem 0.25rem;
  border-radius: 0.5rem;
}

.schedule-grid .row-item:hover {
  background: #f1f5f9;
}

.schedule-grid .offsite {
  color: hsl(var(--primary));
  font-weight: 700;
}

.blog-card {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.blog-card .cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.blog-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.blog-card:hover .cover img {
  transform: scale(1.08);
}

.blog-card .badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: #334155;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.blog-card .blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.blog-card .meta {
  color: #64748b;
  font-size: 0.8rem;
}

.blog-card .read-more {
  font-weight: 700;
  color: #0f172a;
  margin-top: auto;
}

.blog-card .read-more:hover {
  color: #334155;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  color: #fff;
}

.page-hero .page-glow {
  position: absolute;
  inset: 0;
  opacity: 0.2;
}

.page-hero .page-glow .glow-circle {
  position: absolute;
  width: 80%;
  height: 200%;
  border-radius: 999px;
  filter: blur(80px);
}

.page-hero .page-glow .glow-circle.blue {
  top: -50%;
  left: -10%;
  background: rgba(56, 189, 248, 0.35);
}

.page-hero .page-glow .glow-circle.pink {
  top: -50%;
  right: -10%;
  background: rgba(248, 113, 113, 0.35);
}

.info-card {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 1.25rem;
  padding: 2.5rem;
  text-align: center;
}

.info-card h3 {
  color: #1e3a8a;
}

.info-card p {
  color: #1d4ed8;
}

.map-frame {
  border: 0;
  width: 100%;
  min-height: 400px;
}

.footer {
  background: var(--slate-900);
  color: #cbd5f5;
  padding: 4rem 0 2rem;
}

.footer .brand-icon {
  width: 32px;
  height: 32px;
  background: rgba(209, 59, 59, 0.2);
  color: hsl(var(--primary));
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer a {
  color: #cbd5f5;
}

.footer a:hover {
  color: hsl(var(--primary));
}

.footer .social-link {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1e293b;
  transition: background 0.2s ease, color 0.2s ease;
}

.footer .social-link:hover {
  background: hsl(var(--primary));
  color: #fff;
}

.footer .footer-divider {
  border-top: 1px solid #1e293b;
}

.blog-hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  color: #fff;
  background: var(--sky-600);
}

.blog-hero .blog-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
}

.blog-hero .blog-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px);
}

.blog-hero .blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
}

.blog-content {
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid hsl(var(--border));
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  padding: 2.5rem;
}

.blog-content .lead {
  border-left: 4px solid hsl(var(--primary));
  padding-left: 1rem;
  font-style: italic;
  color: #334155;
}

@media (max-width: 767px) {
  .hero {
    padding: 4rem 0 6rem;
  }

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

  .hero .hero-buttons {
    flex-direction: column;
  }

  .quick-links {
    margin-top: -3rem;
  }

  .blog-content {
    padding: 2rem;
  }
}

/* Gallery Slider Styles */
.gallery-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background: #f8fafc;
  max-width: 920px;
  margin: 0 auto;
}

.gallery-wrapper {
  overflow: hidden;
  border-radius: 8px;
}

.gallery-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 420px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--sky-600);
  font-size: 20px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.gallery-btn:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.gallery-btn-prev {
  left: 16px;
}

.gallery-btn-next {
  right: 16px;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.95);
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--sky-600);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.gallery-dot.active {
  background: var(--sky-600);
  transform: scale(1.3);
}

.gallery-dot:hover {
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .gallery-slide {
    height: 320px;
  }

  .gallery-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .gallery-btn-prev {
    left: 8px;
  }

  .gallery-btn-next {
    right: 8px;
  }

  .gallery-dots {
    padding: 12px 0;
    gap: 6px;
  }

  .gallery-dot {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 480px) {
  .gallery-slide {
    height: 240px;
  }

  .gallery-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}
