 :root {
      --primary: #0d6efd;
      --secondary: #e53935;
      /* --dark: #0d1b2a; */
      --dark: #031b4b;
      --soft: #f4f8ff;
      --light-text: #6c757d;
      --white: #ffffff;
    }

    body {
      font-family: Arial, Helvetica, sans-serif;
      color: #1f2937;
      background: #fff;
    }

    a { text-decoration: none; }

    .section-padding {
      padding: 80px 0;
    }

    .badge-soft {
      display: inline-block;
      background: rgba(13, 110, 253, 0.1);
      color: var(--primary);
      padding: 0.6rem 1rem;
      border-radius: 999px;
      font-size: 0.9rem;
      font-weight: 700;
    }

    .section-title {
      font-size: clamp(1.9rem, 3vw, 2.7rem);
      font-weight: 800;
      line-height: 1.2;
      margin-bottom: 1rem;
      color: var(--dark);
    }

    .section-subtitle {
      max-width: 760px;
      color: var(--light-text);
    }

    .clinic-header {
      background: #fff;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
      z-index: 1030;
    }

    .clinic-topbar {
      background: var(--dark);
      color: rgba(255,255,255,0.88);
      font-size: 0.92rem;
      padding: 0.75rem 0;
    }

    .clinic-topbar a,
    .clinic-topbar span {
      color: rgba(255,255,255,0.88);
    }

    .topbar-link:hover,
    .social-icons a:hover {
      color: #fff;
    }

    .clinic-navbar-wrap {
      background: #fff;
    }

    .site-logo {
      height: 62px;
      width: auto;
    }

    .navbar-nav .nav-link {
      font-weight: 700;
      color: #1f2937;
      padding-left: 0.9rem !important;
      padding-right: 0.9rem !important;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
      color: var(--primary);
    }

    .mega-menu {
      width: 100%;
      left: 0;
      right: 0;
      border-radius: 1rem;
      background: #fff;
    }

    .mega-menu-card,
    .service-card,
    .doctor-card,
    .info-card,
    .portal-card,
    .testimonial-card,
    .hero-card {
      background: #fff;
      border-radius: 1.25rem;
      box-shadow: 0 12px 35px rgba(15, 23, 42, 0.07);
      padding: 1.5rem;
      height: 100%;
    }

    .mega-highlight {
      background: linear-gradient(135deg, #eef5ff, #ffffff);
      border: 1px solid rgba(13, 110, 253, 0.12);
    }

    .mega-title {
      color: var(--dark);
      font-weight: 800;
      margin-bottom: 0.75rem;
    }

    .mega-text {
      color: var(--light-text);
      font-size: 0.95rem;
    }

    .hero {
      position: relative;
      overflow: hidden;
      background: linear-gradient(135deg, #f7fbff 0%, #edf4ff 100%);
    }

    .hero-slide {
      min-height: 760px;
      display: flex;
      align-items: center;
      padding-top: 60px;
      padding-bottom: 80px;
    }

    .hero h1 {
      font-size: clamp(2.2rem, 5vw, 4.2rem);
      font-weight: 900;
      line-height: 1.1;
      color: var(--dark);
      max-width: 760px;
    }

    .hero .lead {
      color: #4b5563;
      max-width: 700px;
      font-size: 1.1rem;
    }

    .quick-stat {
      background: rgba(255,255,255,0.75);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(13, 110, 253, 0.08);
      border-radius: 1rem;
      padding: 1rem;
      box-shadow: 0 10px 25px rgba(13, 110, 253, 0.07);
      height: 100%;
    }

    .quick-stat h3 {
      font-size: 1.2rem;
      font-weight: 800;
      margin-bottom: 0.35rem;
      color: var(--primary);
    }

    .small-muted {
      color: var(--light-text);
    }

    .booking-mini {
      border: 1px solid rgba(13, 110, 253, 0.08);
    }

    .form-control,
    .form-select {
      min-height: 52px;
      border-radius: 0.9rem;
      border-color: #dbe4f0;
      padding-left: 1rem;
    }

    textarea.form-control {
      min-height: 120px;
      padding-top: 0.95rem;
    }

    .video-box {
      position: relative;
      border-radius: 1.5rem;
      overflow: hidden;
      min-height: 420px;
      box-shadow: 0 20px 50px rgba(15, 23, 42, 0.13);
    }

    .video-box img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      min-height: 420px;
      display: block;
      background: #e9eef8;
    }

    .video-overlay {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: end;
      padding: 2rem;
      background: linear-gradient(to top, rgba(13, 27, 42, 0.85), rgba(13, 27, 42, 0.1));
      color: #fff;
    }

    .portal-strip {
      background: linear-gradient(135deg, #0d6efd, #0a58ca);
      color: #fff;
      border-radius: 1.5rem;
      padding: 2rem;
      box-shadow: 0 20px 50px rgba(13, 110, 253, 0.18);
    }

    .check-list {
      list-style: none;
      padding-left: 0;
    }

    .check-list li {
      position: relative;
      padding-left: 1.75rem;
      margin-bottom: 0.9rem;
    }

    .check-list li::before {
      content: "\f00c";
      font-family: FontAwesome;
      color: #21c87a;
      position: absolute;
      left: 0;
      top: 0.1rem;
      font-size: 0.95rem;
    }

    .icon-circle {
      width: 72px;
      height: 72px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(13, 110, 253, 0.1);
      color: var(--primary);
      font-size: 1.8rem;
    }

    .service-card h4,
    .doctor-card h4,
    .portal-card h4,
    .info-card h4 {
      font-weight: 800;
      margin-bottom: 0.75rem;
      color: var(--dark);
    }

    .doctor-card img {
      width: 100%;
      height: 270px;
      object-fit: cover;
      background: #eef4fb;
    }

    .testimonial-card {
      border-left: 4px solid var(--primary);
    }

    .contact-map,
    .contact-map iframe {
      width: 100%;
      height: 100%;
      min-height: 520px;
      border: 0;
      border-radius: 1.5rem;
    }

    .emergency-banner {
      background: linear-gradient(90deg, #d62828, #f03e3e);
      color: #fff;
      padding: 1rem 0;
    }

    .emergency-icon {
      width: 62px;
      height: 62px;
      border-radius: 50%;
      background: rgba(255,255,255,0.18);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 1.6rem;
    }

    .footer-main {
      background: #0b1220;
      color: rgba(255,255,255,0.8);
    }

    .footer-main h5,
    .footer-main h6 {
      color: #fff;
      font-weight: 800;
    }

    .footer-main a {
      color: rgba(255,255,255,0.8);
    }

    .footer-main a:hover {
      color: #fff;
    }

    .footer-bottom {
      border-top: 1px solid rgba(255,255,255,0.1);
      color: rgba(255,255,255,0.7);
    }

    .carousel-control-prev,
    .carousel-control-next {
      width: 5%;
    }

    @media (min-width: 992px) {
      .navbar .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
      }
    }

    @media (max-width: 991.98px) {
      .hero-slide {
        min-height: auto;
        padding-top: 40px;
        padding-bottom: 60px;
      }

      .mega-menu {
        position: static !important;
        width: 100%;
        box-shadow: none !important;
        padding: 1rem !important;
      }

      .site-logo {
        height: 52px;
      }
    }

    /* About Section */
    .about.section {
      padding: 90px 0;
      position: relative;
    }

    .about-content {
      padding-right: 20px;
    }

    .section-kicker {
      display: inline-block;
      font-size: 0.9rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--primary);
      margin-bottom: 12px;
    }

    .section-title {
      font-size: clamp(1.8rem, 3vw, 2.7rem);
      line-height: 1.2;
      margin-bottom: 20px;
      color: var(--dark);
    }

    .about-content p {
      font-size: 1rem;
      line-height: 1.8;
      color: #444;
    }

    /* Image Wrapper */
    .image-wrapper {
      position: relative;
      padding-top: 70px;
      /* space for floating box */
    }

    .main-image {
      width: 100%;
      height: 520px;
      object-fit: cover;
      border-radius: 20px;
      box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    }

    /* Floating rectangular box at top middle */
    .top-middle-box {
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 280px;
      max-width: 75%;
      background: #fff;
      padding: 3px;
      border-radius: 0px;
      box-shadow: 0 14px 35px rgba(15, 23, 42, 0.18);
      z-index: 2;
    }

    .top-middle-box img {
      width: 100%;
      height: 170px;
      object-fit: cover;
      border-radius: 12px;
      display: block;
    }

    /* Cards */
    .info-card {
      background: #fff;
      border-radius: 18px;
      padding: 30px;
      box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    }

    .info-card h4 {
      margin-bottom: 12px;
      color: var(--dark);
    }

    .info-card p {
      color: #555;
      line-height: 1.7;
    }

    /* Mobile Responsive */
    @media (max-width: 991.98px) {
      .about.section {
        padding: 70px 0;
      }

      .about-content {
        padding-right: 0;
      }

      .image-wrapper {
        margin-top: 20px;
        padding-top: 60px;
      }

      .main-image {
        height: 420px;
      }

      .top-middle-box {
        width: 240px;
      }

      .top-middle-box img {
        height: 150px;
      }
    }

    @media (max-width: 767.98px) {
      .section-title {
        font-size: 1.7rem;
      }

      .about-content p {
        font-size: 0.96rem;
      }

      .main-image {
        height: 320px;
        border-radius: 16px;
      }

      .top-middle-box {
        width: 200px;
        padding: 8px;
        border-radius: 14px;
      }

      .top-middle-box img {
        height: 120px;
        border-radius: 10px;
      }

      .info-card {
        padding: 24px 20px;
      }
    }

    .team-section {
  background: #fff;
}

.premium-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px 20px 28px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.premium-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
}

.doctor-img-wrap {
  position: relative;
  margin-bottom: 22px;
  border-radius: 18px;
  overflow: hidden;
}

.doctor-img {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f8fbff;
  min-height: 260px;
}

.doctor-img img {
  width: 100%;
  /* max-width: 300px; */
  height: 400px;
  object-fit: cover;
  display: block;
  border-radius: 0px;
  transition: transform 0.5s ease;
}

.premium-card:hover .doctor-img img {
  transform: scale(1.06);
}

.doctor-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 30, 70, 0.959), rgba(13, 110, 253, 0.15));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
}

.premium-card:hover .doctor-overlay {
  opacity: 1;
  visibility: visible;
}

.social-icons {
  display: flex;
  gap: 12px;
  transform: translateY(14px);
  transition: transform 0.35s ease;
}

.premium-card:hover .social-icons {
  transform: translateY(0);
}

.social-icons a {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: #fff;
  transform: scale(1.08);
}

.doctor-content h4 {
  margin-bottom: 8px;
}

.doctor-content p {
  color: #555;
  line-height: 1.65;
}

.doctor-content .btn {
  margin-top: 8px;
  transition: all 0.3s ease;
}

.doctor-content .btn:hover {
  transform: translateY(-2px);
}

/* Modal */
.doctor-modal-content {
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
}

.modal-doctor-img {
  width: 100%;
  max-width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.modal-info-box {
  background: #f8fbff;
  border-radius: 16px;
  padding: 20px;
}

.modal-info-box h6 {
  color: var(--dark);
  font-weight: 700;
}

.modal-info-box p {
  color: #555;
  line-height: 1.7;
}

/* Smooth reveal animation */
.premium-card,
.doctor-img-wrap,
.doctor-content {
  will-change: transform;
}

/* Mobile */
@media (max-width: 991.98px) {
  .doctor-img {
    min-height: 230px;
  }

  .doctor-img img {
    max-width: 220px;
    height: 220px;
  }
}

@media (max-width: 767.98px) {
  .premium-card {
    padding: 20px 16px 24px;
  }

  .doctor-img {
    min-height: 210px;
  }

  .doctor-img img {
    max-width: 190px;
    height: 190px;
  }

  .social-icons a {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }

  .modal-doctor-img {
    height: 240px;
    max-width: 240px;
  }
}
/* Ensure modal header is above everything */
.modal-header {
  z-index: 1056;
}

/* Improve close button visibility and usability */
.custom-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;

  background-color: #fff; /* visible background */
  border-radius: 50%;
  padding: 10px;

  width: 40px;
  height: 40px;

  opacity: 1; /* ensure visible */
  z-index: 1060;

  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

/* Make icon darker (default Bootstrap is too light sometimes) */
.custom-close-btn::before {
  filter: invert(1);
}

/* Hover effect */
.custom-close-btn:hover {
  background-color: var(--primary);
  transform: scale(1.1);
}

/* Optional: white icon on hover */
.custom-close-btn:hover::before {
  filter: invert(0);
}

/* Fix click issues (very important) */
.modal-content {
  position: relative;
  overflow: visible; /* prevents clipping */
}

/* Mobile optimization */
@media (max-width: 576px) {
  .custom-close-btn {
    width: 44px;
    height: 44px;
    top: 10px;
    right: 10px;
  }
}
