:root {
  --primary-medical-blue: #1e3a8a; /* Authority & Trust */
  --secondary-healing-teal: #14b8a6; /* Health & Calm */
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --light-bg: #f9fafb;
  --white: #ffffff;
  --gold-accent: #f59e0b;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  scroll-behavior: smooth;
}
html {
  font-size: 80%;
}

/* --- Global Elements --- */
.section-title {
  color: var(--primary-medical-blue);
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem auto;
  font-size: 1.1rem;
}

/* Premium Buttons */
.btn-medical {
  background-color: var(--primary-medical-blue);
  color: var(--white);
  font-weight: 600;
  border-radius: 50px;
  padding: 12px 30px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.btn-medical:hover {
  background-color: var(--white);
  color: var(--primary-medical-blue);
  border-color: var(--primary-medical-blue);
  transform: translateY(-2px);
}
.btn-teal {
  background-color: var(--secondary-healing-teal);
  color: var(--white);
  font-weight: 600;
  border-radius: 50px;
  padding: 12px 30px;
  transition: all 0.3s ease;
}
.btn-teal:hover {
  background-color: #0d9488;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4);
}

/* --- Topbar --- */
.topbar {
  background-color: var(--primary-medical-blue);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  padding: 8px 0;
}
.topbar i {
  color: var(--secondary-healing-teal);
}

/* --- Navbar --- */
.navbar {
  background-color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
}
.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-medical-blue) !important;
  display: flex;
  align-items: center;
}
.navbar-brand i {
  font-size: 1.8rem;
  margin-right: 10px;
  color: var(--secondary-healing-teal);
}
.nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  margin: 0 10px;
  transition: 0.3s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary-medical-blue) !important;
}

/* --- Hero Section --- */
.hero-section {
  background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 100%);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.hero-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="%23ffffff" fill-opacity="1" d="M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,224C672,245,768,267,864,250.7C960,235,1056,181,1152,165.3C1248,149,1344,171,1392,181.3L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
}
.hero-section h1 {
  font-weight: 800;
  font-size: 3.5rem;
  color: var(--primary-medical-blue);
  line-height: 1.2;
}
.hero-section h1 span {
  color: var(--secondary-healing-teal);
}
.hero-section p.lead {
  color: var(--text-muted);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}
.hero-image {
  max-width: 100%;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

/* --- Hero Carousel Slider CSS --- */
.hero-carousel-img {
    height: 450px; /* Fixed height for consistency */
    object-fit: cover;
    object-position: center;
    border-radius: 20px; /* Premium rounded corners */
}

/* Customizing Bootstrap Slider Dots */
.hero-carousel-indicators {
    bottom: -40px; /* Move dots slightly below the image */
}
.hero-carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-medical-blue);
    opacity: 0.3;
    margin: 0 6px;
    border: none;
    transition: all 0.3s ease;
}
.hero-carousel-indicators .active {
    background-color: var(--secondary-healing-teal);
    opacity: 1;
    transform: scale(1.2); /* Active dot slightly bigger */
}

/* Mobile Adjustment for Hero Slider */
@media (max-width: 991px) {
    .hero-carousel-img {
        height: 350px;
    }
}

/* --- Doctors Section (CRUCIAL FOR TRUST) --- */
.doctors-section {
  padding: 100px 0;
  background-color: var(--white);
}
/* --- Updated Doctors Section CSS --- */
.doctor-card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
  background: var(--white);
  height: 100%;
  padding-top: 30px; /* Thoda space upar se */
  position: relative;
}
.doctor-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}
.doctor-img-container {
  width: 160px;
  height: 160px;
  margin: 0 auto 20px auto; /* Center alignment */
  border-radius: 50%; /* Perfect Circle */
  overflow: hidden;
  border: 4px solid var(--secondary-healing-teal); /* Beautiful ring around profile */
  box-shadow: 0 8px 20px rgba(20, 184, 166, 0.2);
}
.doctor-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.gold-medalist-badge {
  background-color: var(--gold-accent);
  color: var(--white);
  padding: 6px 15px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
  white-space: nowrap;
  z-index: 2;
}

/* --- Premium Services Section CSS --- */
.services-section {
  padding: 100px 0;
  background-color: var(--light-bg);
}
.service-card {
  background: var(--white);
  border: none;
  border-radius: 20px;
  padding: 35px 30px;
  transition: all 0.4s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  height: 100%;
  z-index: 1;
}
.service-card::after {
  /* Hover par ek subtle teal background effect */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(20, 184, 166, 0.05) 0%,
    transparent 100%
  );
  z-index: -1;
  opacity: 0;
  transition: all 0.4s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border-bottom: 3px solid var(--secondary-healing-teal);
}
.service-card:hover::after {
  opacity: 1;
}
.icon-box {
  width: 65px;
  height: 65px;
  /* Icon ko white aur background ko Teal color kiya hai premium feel ke liye */
  background: linear-gradient(135deg, var(--secondary-healing-teal), #0f8b7d);
  color: var(--white);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 15px rgba(20, 184, 166, 0.3);
  transition: all 0.3s ease;
}
.service-card:hover .icon-box {
  transform: scale(1.1); /* Hover karne par icon thoda zoom hoga */
}

/* Mobile Friendly Adjustments */
@media (max-width: 575px) {
  .service-card {
    padding: 25px 20px;
  }
  .service-card h4 {
    font-size: 1.25rem;
    margin-top: 15px;
  }
}

/* --- Trust Features --- */
.trust-section {
  padding: 80px 0;
  background-color: var(--primary-medical-blue);
  color: var(--white);
}
.trust-item i {
  font-size: 2.5rem;
  color: var(--secondary-healing-teal);
  margin-bottom: 15px;
}

/* --- Premium FAQ Section CSS --- */
.faq-section {
  padding: 100px 0;
  background-color: var(--white);
}
.custom-accordion .accordion-item {
  border: 1px solid #f3f4f6;
  border-radius: 12px !important;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}
.custom-accordion .accordion-button {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--primary-medical-blue);
  padding: 20px 25px;
  background-color: var(--white);
  box-shadow: none !important;
}
.custom-accordion .accordion-button:not(.collapsed) {
  background-color: rgba(
    20,
    184,
    166,
    0.08
  ); /* Light teal background when open */
  color: var(--secondary-healing-teal);
}
.custom-accordion .accordion-button::after {
  /* Customizing the dropdown icon */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231e3a8a'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.custom-accordion .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2314b8a6'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.custom-accordion .accordion-body {
  padding: 0 25px 25px 25px;
  color: var(--text-muted);
  background-color: rgba(20, 184, 166, 0.08);
}
/* Hidden class for load more functionality */
.faq-hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Appointment Section --- */
.appointment-section {
  padding: 100px 0;
  background-color: var(--light-bg);
}
/* --- Premium Compact Appointment Section --- */
.appointment-section {
  padding: 80px 0;
  background-color: var(--light-bg);
}
.appointment-box {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 15px 45px rgba(30, 58, 138, 0.08); /* Soft professional shadow */
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.appointment-info {
  background: linear-gradient(135deg, var(--primary-medical-blue), #25469e);
  color: var(--white);
  position: relative;
}
/* Subtle background pattern for info box */
.appointment-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
    circle at top right,
    rgba(20, 184, 166, 0.2),
    transparent 50%
  );
  z-index: 0;
}
.appointment-info > div {
  position: relative;
  z-index: 1;
}

/* Floating Label Customization */
.form-floating > .form-control,
.form-floating > .form-select {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  height: calc(3.2rem + 2px);
  line-height: 1.25;
}
.form-floating > label {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 1rem 0.75rem;
}
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
  color: var(--secondary-healing-teal);
  font-weight: 600;
  transform: scale(0.85) translateY(-0.75rem) translateX(0.15rem);
}
.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
  border-color: var(--secondary-healing-teal);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}

/* --- Date & Time Mobile View Fix --- */

/* 1. Label ko hamesha top par rakhne ke liye taaki "dd-mm-yyyy" hide na ho */
.form-floating > input[type="date"] ~ label,
.form-floating > input[type="time"] ~ label {
  transform: scale(0.85) translateY(-0.75rem) translateX(0.15rem) !important;
  color: var(--secondary-healing-teal) !important;
  font-weight: 600;
  background-color: var(--white);
  padding: 0 5px !important;
  height: auto;
  z-index: 2;
}

/* 2. Mobile browsers mein native Calendar aur Clock icon ko force show karne ke liye */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: 1 !important;
  display: block !important;
  cursor: pointer;
  filter: invert(0.4) sepia(1) saturate(3) hue-rotate(130deg); /* Icon ko teal color dene ke liye (optional) */
}

/* 3. Text format ko properly align karne ke liye */
input[type="date"],
input[type="time"] {
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}

/* --- ==== NAP & Map Section CSS === --- */
.contact-section {
  padding: 100px 0;
  background-color: var(--white);
}
.nap-card {
  background: var(--light-bg);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.nap-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}
.nap-item:last-child {
  margin-bottom: 0;
}
.nap-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(20, 184, 166, 0.1);
  color: var(--secondary-healing-teal);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  margin-right: 20px;
  transition: all 0.3s ease;
}
.nap-item:hover .nap-icon {
  background-color: var(--secondary-healing-teal);
  color: var(--white);
  transform: translateY(-3px);
}
.nap-text h5 {
  font-weight: 700;
  color: var(--primary-medical-blue);
  margin-bottom: 5px;
  font-size: 1.1rem;
}
.nap-text p {
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}
.map-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  height: 100%;
  min-height: 400px;
  border: 4px solid var(--white);
}
.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
}

/* --- Footer --- */
.footer {
  background-color: #111827;
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 0 20px;
}
.footer h5 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 20px;
}
.footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: 0.3s;
}
.footer a:hover {
  color: var(--secondary-healing-teal);
}
.footer i {
  color: var(--secondary-healing-teal);
  width: 25px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .hero-section h1 {
    font-size: 2.8rem;
  }
  .hero-image-col {
    text-align: center;
    margin-top: 50px;
  }
  .appointment-info,
  .appointment-form {
    padding: 30px;
  }
}

/* ========================================= 
Committed to Excellence Section CSS
============================================ */
.excellence-section {
    /* Soft Teal background jo aapke theme se match kare */
    background-color: #f0fdfa; 
    padding: 100px 0;
    overflow: hidden;
}

/* Image Wrapper Layout */
.excellence-img-wrapper {
    position: relative;
    padding-bottom: 40px; 
    padding-right: 40px;
    z-index: 1;
}

/* Main Clinic Building Image */
.img-clinic-main {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    min-height: 480px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Overlapping Doctor Photo */
.img-doctor-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 240px; 
    background-color: var(--white);
    border-radius: 20px;
    border: 8px solid #f0fdfa; /* Border exactly matching the new background */
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    z-index: 2;
}

/* Text Styling */
.excellence-heading {
    color: var(--primary-medical-blue); /* Theme Blue for high trust */
    font-weight: 800;
    font-size: 2.4rem;
    line-height: 1.2;
    margin-bottom: 25px;
}
.excellence-text {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 20px;
}
.excellence-text strong {
    color: var(--primary-medical-blue); /* Highlights are now Medical Blue */
    font-weight: 700;
}

/* Theme Match Button (Teal & Pill Shaped) */
.btn-excellence {
    background-color: var(--secondary-healing-teal);
    color: var(--white);
    padding: 12px 35px;
    border-radius: 50px; /* Match global button style */
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
    text-decoration: none;
}
.btn-excellence:hover {
    background-color: #0d9488;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.4);
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .excellence-section {
        padding: 60px 0;
    }
    .excellence-img-wrapper {
        padding-right: 0;
        margin-bottom: 50px;
        text-align: center;
    }
    .img-doctor-overlay {
        right: 50%;
        transform: translateX(50%); 
        bottom: -30px;
        width: 200px;
        border-width: 5px;
    }
    .excellence-heading {
        font-size: 2rem;
        text-align: center;
    }
    .excellence-content {
        text-align: center;
    }
}

/* ========================================= 
    Gallery Section CSS
============================================ */
.gallery-section {
    padding: 0px 0;
    background-color: var(--white);
}
.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
/* Hover Overlay & Zoom Effect */
.gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(30, 58, 138, 0.4); /* Primary Medical Blue with transparency */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}
.gallery-overlay i {
    color: var(--white);
    font-size: 2rem;
    transform: scale(0.5);
    transition: all 0.3s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Lightbox Modal Customization */
#lightboxModal .modal-content {
    background-color: transparent;
    border: none;
}
#lightboxModal .btn-close {
    position: absolute;
    top: -20px;
    right: -20px;
    background-color: var(--white);
    opacity: 1;
    z-index: 1055;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.lightbox-img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .gallery-item img {
        height: 160px; /* Thodi choti height mobile par 2x2 grid ke liye */
    }
    #lightboxModal .btn-close {
        top: -15px;
        right: 0px;
    }
}

/*
==============================
Patient Reviews Section CSS
==============================*/
.reviews-section {
    padding: 10px 0;
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

/* Big faint quote watermark in background */
.reviews-section::before {
    content: "\f10d"; /* FontAwesome quote-left */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 40px;
    left: 5%;
    font-size: 12rem;
    color: rgba(20, 184, 166, 0.04); /* Faint Healing Teal */
    z-index: 0;
}

.reviews-container {
    position: relative;
    z-index: 1;
}

/* Custom wrapper to make widget look like part of your theme */
.elfsight-wrapper {
    background: var(--white);
    border-radius: 25px;
    padding: 20px; /* Gives some breathing room around the widget */
    box-shadow: 0 15px 45px rgba(30, 58, 138, 0.05); /* Soft medical blue shadow */
    border: 1px solid rgba(0,0,0,0.03);
}

@media (max-width: 767px) {
    .elfsight-wrapper {
        padding: 10px; /* Thoda kam padding mobile par space bachane ke liye */
        border-radius: 15px;
    }
}
