.hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 130px 20px;
  overflow: hidden;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(30,94,255,.12);
  transition: transform .35s ease, box-shadow .35s ease;
}

.gallery img:hover { transform: scale(1.05); box-shadow: 0 12px 26px rgba(30,94,255,.25); }

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.5);
  transition: transform 0.6s ease;
}

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

.hero-content {
  position: relative;
  animation: fadeIn 1.2s ease;
  background: rgba(4, 48, 67, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 22px;
  padding: clamp(24px, 5vw, 44px);
  max-width: 900px;
  margin: auto;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  color: #fff;
}

.hero h1, .hero h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin-bottom: 10px; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.hero p { margin-bottom: 20px; text-shadow: 0 1px 4px rgba(0,0,0,.4); }

.btn-hero {
  background: #fff;
  color: #087EA4;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background .3s, transform .3s, box-shadow .3s;
  display: inline-block;
}

.btn-hero:hover {
  background: #e9f0ff;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}

.btn-hero { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); }
  50% { box-shadow: 0 0 0 12px rgba(255,255,255,0); }
}

.hero-content h1, .hero-content h2 { animation: fadeIn 1s ease; }

/* Stat cards inside the hero sit on the dark glass panel — keep them glass
   (white cards there made the white text unreadable) */
.hero .stat-card {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: none;
}
.hero .stat-card h3, .hero .stat-card .stat-num { background: none; -webkit-text-fill-color: #fff; color: #fff; }
.hero .stat-card p { color: #fff; }
.hero-content p { animation: fadeIn 1.4s ease; }

.nav-btn { text-decoration: none; display: inline-block; transition: background .3s, transform .2s; }
.nav-btn:hover { transform: translateY(-2px); }

.form-card p { flex: 1 1 45%; margin: 4px 0; }

/* Service cards with images */
.service-card {
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 24px rgba(13,110,253,.25);
}

.service-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: transform .4s ease;
}

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

/* Stat + doctor card hover */
.stat-card, .doctor-card {
  transition: transform .3s ease, box-shadow .3s ease;
}

.stat-card:hover, .doctor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

/* Buttons & inputs */
button, .form-card input {
  transition: box-shadow .3s, transform .2s, border-color .3s;
}

button:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(13,110,253,.35); }
.form-card input:focus { outline: none; border-color: #087EA4; box-shadow: 0 0 8px rgba(13,110,253,.3); }

/* Section headings */
main h2, h2 {
  color: #087EA4;
  border-left: 5px solid #12a8b9;
  padding-left: 12px;
  margin-top: 26px;
  animation: slideIn .6s ease;
}

.footer {
  margin-top: auto;
  background: #0d5d74;
  color: #fff;
  padding: 20px;
  text-align: center;
  box-shadow: 0 -4px 18px rgba(22,72,196,.3);
}

@keyframes slideIn { from { opacity: 0; transform: translateX(-15px); } to { opacity: 1; transform: translateX(0); } }

.footer-socials a.fb { background: #1877f2; }
.footer-socials a.tw { background: #000; }
.footer-socials a.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.footer-socials a.yt { background: #ff0000; }
.footer-socials a.wa { background: #25d366; }
.footer-socials a.gh { background: #24292e; }
.footer-contact { margin: 6px 0; font-size: 13px; opacity: .9; }
.footer-contact a { color: inherit; }
.footer-socials { margin: 6px 0; display: flex; gap: 14px; justify-content: center; }
.footer-socials a {
  color: #fff;
  text-decoration: none;
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background .3s, transform .2s;
  font-weight: bold;
  font-size: .95rem;
}
.footer-socials a:hover { filter: brightness(1.2); transform: translateY(-3px); }

.footer-links { margin-bottom: 8px; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 600; transition: opacity .2s; }
.footer-links a:hover { text-decoration: underline; opacity: .85; }

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

/* Dark mode */
body.dark { background: #1a1d23; color: #e5e7eb; }
body.dark main h2 { color: #fff; }
body.dark .stat-card, body.dark .doctor-card, body.dark .form-card, body.dark table {
  background: #242830; color: #e5e7eb; box-shadow: 0 2px 10px rgba(0,0,0,.4);
}
body.dark th { background: #2e3440; }
body.dark td { border-bottom: 1px solid #333; }
body.dark .form-card input, body.dark .form-card select {
  background: #2e3440; color: #e5e7eb; border-color: #444;
}
body.dark .footer { background: #11141a; }
body.dark table { background: #242830; }

.dark-toggle {
  background: #242830; color: #ffd;
  border: 1px solid rgba(255,255,255,.5);
  padding: 8px 14px; border-radius: 20px; cursor: pointer;
}
body.dark .dark-toggle { background: #fff; color: #333; }

/* ---------- Home page left sidebar ---------- */
.home-layout {
  display: flex;
  align-items: stretch;
}

.home-side {
  width: 200px;
  background: linear-gradient(180deg, #087EA4, #0d5d74);
  color: #fff;
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100vh;
}

.home-side h3 { margin: 0 0 8px; color: #fff; }

.home-side a {
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  transition: background .3s, transform .2s;
}

.home-side a:hover { background: rgba(255,255,255,.2); transform: translateX(4px); }
.home-side p { color: rgba(255,255,255,.9); margin: 6px 0; font-size: .95rem; line-height: 1.4; }
.home-side h3 { color: #fff; margin-top: 10px; }
.home-side { position: sticky; top: 64px; align-self: flex-start; height: calc(100vh - 64px); }

.home-layout > div { flex: 1; min-width: 0; }

@media (max-width: 820px) {
  .home-layout { flex-direction: column; }
  .home-side { width: 100%; min-height: auto; flex-direction: row; flex-wrap: wrap; }
}


