/* =========================================================
   DHARANI HOSPITALS - MAIN STYLESHEET
   ========================================================= */

/* =========================
   1. RESET & GLOBAL
   ========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Poppins", sans-serif;
  color: #263238;
  background: #ffffff;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

button {
  font-family: inherit;
}

iframe,
video,
svg {
  max-width: 100%;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.section {
  padding: 90px 0;
}

/* =========================
   2. HEADER
   ========================= */

.header {
  position: fixed;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
  width: 100%;
}

.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* =========================
   3. LOGO
   ========================= */

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  min-width: 140px;
}

.logo img {
  max-width: 180px;
  width: 100%;
  height: auto;
}

.logo span {
  font-size: 24px;
  font-weight: 700;
  color: #087f8c;
  letter-spacing: 0.5px;
}

.logo small {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #455a64;
}

/* =========================
   4. NAVIGATION
   ========================= */

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 43px;
}

.nav-menu a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: #263238;
  padding: 8px 0;
  transition: 0.3s ease;
}

.nav-menu a:hover {
  color: #087f8c;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #087f8c;
  transition: 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* =========================
   5. CALL BUTTON
   ========================= */

.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #9e3434;
  color: #ffffff;
  padding: 7px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.3s ease;
  white-space: nowrap;
}

.call-btn:hover {
  background: #f90519;
  transform: translateY(-2px);
}
@media (max-width: 576px) {
  .mobile-appointment-btn {
    width: 115px;
    height: 34px;
    padding: 0 6px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 18px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px !important;
    white-space: nowrap;
  }

  .mobile-appointment-btn i {
    font-size: 13px;
  }
}

/* =========================
   6. MOBILE MENU BUTTON
   ========================= */

.menu-toggle {
  display: none;
  border: none;
  background: #087f8c;
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
}

/* =========================
   7. HERO
   ========================= */

.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  background:
        linear-gradient(
            90deg,
            rgba(0, 73, 81, 0.92),
            rgba(0, 73, 81, 0.68),
            rgba(0, 73, 81, 0.35)
        ),
        url("images/hospital-hero.jpeg") right center / 50% no-repeat;

    overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 75, 82, 0.12);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 800px;
  margin-left: 5%;
  margin-top: 27px;
}
@media (max-width: 576px) {
  .hero-tag {
    display: inline-block;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    border-radius: 20px;
    margin-top: 40px !important;
    max-width: 90%;
    box-sizing: border-box;
  }
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-top: 80px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.15;
  font-weight: 700;
  margin-top: 0;
}

.hero h1 span {
  display: block;
  color: #70e1e9;
}

.hero-content > p:not(.hero-description) {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 10px;
}

/* =========================================
   HOSPITAL BRAND LINE
   ========================================= */

.hero-unit {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;

  font-size: 21px;
  font-weight: 600;
  margin-bottom: 12px;

  letter-spacing: 0.3px;
  line-height: 1.5;
}

/* =========================================
   ASCENT HOSPITALS
   ========================================= */

.ascent-name {
  display: inline-block;

  color: #d9a7ff;

  font-size: 21px;
  font-weight: 900;

  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 0 8px rgba(217, 167, 255, 0.45),
    0 0 16px rgba(180, 120, 255, 0.22);

  animation: ascentFloat 3.8s ease-in-out infinite;
}

/* =========================================
   A UNIT OF
   ========================================= */

.unit-text {
  color: #ffffff;

  font-size: 20px;
  font-weight: 500;

  margin: 0 3px;
}

/* =========================================
   NEW DHARANI HOSPITALS
   ========================================= */

.dharani-name {
  display: inline-block;

  color: #ff7f8a;

  font-size: 21px;
  font-weight: 900;

  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 0 8px rgba(255, 127, 138, 0.35);

  animation: dharaniFloat 3.8s ease-in-out infinite;
}

/* =========================================
   ASCENT FLOAT
   ========================================= */

@keyframes ascentFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

/* =========================================
   DHARANI FLOAT
   Slightly different timing
   ========================================= */

@keyframes dharaniFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

/* =========================================
   HOVER
   ========================================= */

.ascent-name:hover {
  color: #edcaff;

  text-shadow:
    0 0 8px rgba(217, 167, 255, 0.7),
    0 0 18px rgba(180, 120, 255, 0.4);
}

.dharani-name:hover {
  color: #ff9da5;

  text-shadow:
    0 0 8px rgba(255, 127, 138, 0.6),
    0 0 18px rgba(255, 127, 138, 0.3);
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 768px) {
  .hero-unit {
    font-size: 17px;
    gap: 5px;
    line-height: 1.7;
  }

  .ascent-name,
  .dharani-name {
    font-size: 18px;
  }

  .unit-text {
    font-size: 16px;
    margin: 0 2px;
  }
}

/* =========================================
   SMALL MOBILE
   ========================================= */

@media (max-width: 480px) {
  .hero-unit {
    justify-content: flex-start;
    font-size: 15px;
    line-height: 1.8;
    gap: 4px;
  }

  .ascent-name,
  .dharani-name {
    font-size: 16px;
  }

  .unit-text {
    font-size: 14px;
  }
}

.ascent-name::after,
.dharani-name::after {
  content: "✦";
  position: absolute;

  top: -8px;
  right: -10px;

  font-size: 8px;

  opacity: 0;
  animation: tinySparkle 2.8s ease-in-out infinite;
}

/* Purple sparkle */
.ascent-name::after {
  color: #e8c8ff;
  text-shadow:
    0 0 5px #d9a7ff,
    0 0 12px rgba(217, 167, 255, 0.7);
}

/* Coral sparkle */
.dharani-name::after {
  color: #ffd1d5;
  text-shadow:
    0 0 5px #ff7f8a,
    0 0 12px rgba(255, 127, 138, 0.7);

  animation-delay: 1.3s;
}

@keyframes tinySparkle {
  0%,
  70%,
  100% {
    opacity: 0;
    transform: scale(0.5) rotate(0deg);
  }

  80% {
    opacity: 1;
    transform: scale(1.2) rotate(45deg);
  }

  90% {
    opacity: 0.3;
    transform: scale(0.8) rotate(90deg);
  }
}

.hero-description {
  max-width: 650px;
  font-size: 16px;
  color: #e8f5f6;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
   margin-top: -20px;
}

/* =========================
   8. BUTTONS
   ========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.3s ease;
}

.primary-btn {
  background: #ffffff;
  color: #087f8c;
}

.primary-btn:hover {
  background: #70e1e9;
  color: #063f46;
  transform: translateY(-3px);
}

.secondary-btn {
  border: 2px solid #ffffff;
  color: #ffffff;
}

.secondary-btn:hover {
  background: #ffffff;
  color: #087f8c;
  transform: translateY(-3px);
}

/* =========================
   9. SECTION HEADING
   ========================= */

.section-heading {
  text-align: center;
  margin-bottom: 50px;
}

.section-heading span {
  display: inline-block;
  color: #087f8c;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.section-heading h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
  color: #173c43;
  margin-bottom: 12px;
}

.section-heading p {
  max-width: 700px;
  margin: auto;
  color: #68777c;
  font-size: 15px;
}

.section-heading.light span {
  color: #a7f0f4;
}

.section-heading.light h2 {
  color: #ffffff;
}

.section-heading.light p {
  color: #d9eff1;
}

/* =========================
   10. ABOUT
   ========================= */

.about {
  background: #ffffff;
} 

 .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
} 

 .about-image {
  min-height: 470px;
  border-radius: 20px;
  overflow: hidden;
  background: #e7f4f5;
  box-shadow: 0 15px 40px rgba(0, 80, 90, 0.12);
} 

 .about-image img {
  width: 100%;
  height: auto !important;
  object-fit: contain;
  display: block;
  border-radius: 15px;
}

.about-content h3 {
  font-size: 32px;
  line-height: 1.3;
  color: #173c43;
  margin-bottom: 20px;
}

.about-content > p {
  color: #65767a;
  margin-bottom: 15px;
  font-size: 15px;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 30px;
}

.about-features > div {
  padding: 20px 12px;
  border-radius: 14px;
  background: #f2fafb;
  text-align: center;
  transition: 0.3s ease;
}

.about-features > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 90, 100, 0.1);
}

.about-features i {
  font-size: 25px;
  color: #087f8c;
  margin-bottom: 10px;
}

.about-features h4 {
  font-size: 15px;
  color: #173c43;
  margin-bottom: 5px;
}

.about-features p {
  font-size: 11px;
  color: #708084;
}

.emergency {
  background: linear-gradient(135deg, #075e69, #087f8c);
}

.emergency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.emergency-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 30px 25px;
  text-align: center;
  color: #ffffff;
  transition: 0.3s ease;
  backdrop-filter: blur(5px);
}

.emergency-card:hover {
  background: #ffffff;
  color: #173c43;
  transform: translateY(-7px);
}

/* =========================
   EMERGENCY ICONS
   ========================= */

.emergency-card i {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  font-size: 30px;

  background: rgba(255, 255, 255, 0.12);

  transition: all 0.3s ease;
}

/* Different icon colors */

.emergency-card:nth-child(1) i {
  color: #ff4d4d;
}

.emergency-card:nth-child(2) i {
  color: #ff5c8a;
}

.emergency-card:nth-child(3) i {
  color: #ff9f43;
}

.emergency-card:nth-child(4) i {
  color: #ff4757;
}

.emergency-card:nth-child(5) i {
  color: #70d6ff;
}

.emergency-card:nth-child(6) i {
  color: #ffd32a;
}

.emergency-card:nth-child(7) i {
  color: #48dbfb;
}

.emergency-card:nth-child(8) i {
  color: #ff6b6b;
}

.emergency-card:nth-child(9) i {
  color: #a29bfe;
}

.emergency-card:nth-child(10) i {
  color: #ff7f50;
}

.emergency-card:nth-child(11) i {
  color: #c56cf0;
}

.emergency-card:nth-child(12) i {
  color: #7bed9f;
}

.emergency-card:nth-child(13) i {
  color: #ffa502;
}

.emergency-card:nth-child(14) i {
  color: #ff9ff3;
}

.emergency-card:nth-child(15) i {
  color: #ff6b81;
}

/* Icon hover */

.emergency-card:hover i {
  background: #ffffff;
  transform: scale(1.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.emergency-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.emergency-card p {
  font-size: 13px;
  color: #d7eff1;
}

.emergency-card:hover p {
  color: #68777c;
}

/* =========================
   12. DEPARTMENTS
   ========================= */

.departments {
  background: #f7fbfb;
}

.department-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.department-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px 22px;
  text-align: center;
  border: 1px solid #e5eeee;
  transition: 0.3s ease;
  position: relative;
  overflow: hidden;
}

.department-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #087f8c;
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.3s ease;
}

.department-card:hover::before {
  transform: scaleX(1);
}

.department-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 15px 35px rgba(0, 80, 90, 0.1);
}

.department-card i {
  width: 65px;
  height: 65px;
  margin: auto auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e7f7f8;
  color: #087f8c;
  font-size: 27px;
}

.department-card h3 {
  color: #173c43;
  font-size: 17px;
  margin-bottom: 8px;
}

.department-card p {
  color: #718084;
  font-size: 13px;
}

/* =========================
   13. DOCTORS
   ========================= */

.doctors {
  background: #ffffff;
}

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.doctor-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 25px;

    /* Premium visible background */
    background: #e8f5f6 !important;

    border: 1px solid #b8dfe2;
    border-radius: 18px;
    padding: 22px;
    overflow: hidden;

    transition: 0.3s ease;

    /* Dark text */
    color: #17434a !important;

    box-shadow: 0 10px 25px rgba(23, 67, 74, 0.10);
}
.doctor-card h3 {
    color: #123f46 !important;
}

.doctor-card h4 {
    color: #167c80 !important;
}

.doctor-card p {
    color: #405a5f !important;
}

.doctor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0, 80, 90, 0.1);
}

.doctor-image {
  height: 230px;
  border-radius: 14px;
  background: linear-gradient(135deg, #dff4f5, #f1fbfb);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #087f8c;
  font-size: 14px;
  font-weight: 600;
}


.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 14px;
}

.doctor-info h3 {
  color: #123f46 !important;
  font-size: 21px;
  margin-bottom: 10px;
}

.qualification {
  color: #405a5f !important;
  font-size: 13px;
  margin-bottom: 4px;
}

.doctor-info h4 {
  display: inline-block;
  margin: 15px 0 12px;
  padding: 5px 12px;
  border-radius: 20px;
  background: #e5f7f8;
  color: #087f8c;
  font-size: 13px;
}

.doctor-info ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 15px;
}

.doctor-info li {
  position: relative;
  padding-left: 15px;
  color: #405a5f !important;
  font-size: 12px;
}

.doctor-info li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #087f8c;
  font-weight: 700;
}

/* =========================================
   MOBILE DOCTORS - CLEAN CARD LAYOUT
   ========================================= */

@media (max-width: 600px) {

    .doctor-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .doctor-card {
        display: block;
        padding: 0;
        overflow: hidden;
        border-radius: 20px;
        background: #e8f5f6 !important;
    }

    .doctor-image {
        width: 100%;
        height: 300px;
        border-radius: 0;
        overflow: hidden;
    }

    .doctor-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: 0;
    }

    .doctor-info {
        padding: 18px 18px 20px;
        position: static;
    }

    .doctor-info h3 {
        font-size: 21px;
        line-height: 1.3;
        margin: 0 0 5px;
        color:  #0b6f75 !important;
    }

    .qualification {
        font-size: 13px;
        line-height: 1.4;
        margin: 0 0 4px;
        color: #405a5f !important;
    }

    .doctor-info h4 {
        display: inline-block;
        margin: 7px 0 12px;
        padding: 6px 12px;
        font-size: 13px;
        border-radius: 20px;
        background: #e5f7f8;
        color: #087f8c !important;
    }

    .doctor-info ul {
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
        margin: 0;
        padding: 0;
    }

    .doctor-info li {
        font-size: 13px;
        line-height: 1.45;
        padding-left: 18px;
        color: #405a5f !important;
    }

    .doctor-info li::before {
        left: 0;
        color: #087f8c;
    }
}




/* =========================
   14. FACILITIES
   ========================= */

.facilities {
  background: #f7fbfb;
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.facility-card {
  background: #ffffff;
  border: 1px solid #e4eeee;
  padding: 28px 20px;
  border-radius: 15px;
  text-align: center;
  transition: 0.3s ease;
}

.facility-card:hover {
  background: #087f8c;
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 80, 90, 0.15);
}

.facility-card i {
  display: block;
  font-size: 30px;
  color: #087f8c;
  margin-bottom: 12px;
}

.facility-card h3 {
  font-size: 16px;
  color: #173c43;
}

.facility-card:hover i,
.facility-card:hover h3 {
  color: #ffffff;
}

/* =========================
   15. CTA
   ========================= */

.cta {
  background: linear-gradient(135deg, #064e58, #087f8c);
  padding: 55px 0;
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta-content span {
  color: #a7f0f4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

.cta-content h2 {
  color: #ffffff;
  font-size: clamp(24px, 3vw, 36px);
  margin-top: 5px;
}

.cta-btn {
  background: #ffffff;
  color: #087f8c;
  white-space: nowrap;
}

.cta-btn:hover {
  background: #70e1e9;
  color: #063f46;
  transform: translateY(-3px);
}

/* =========================
   16. CONTACT
   ========================= */

.contact {
  background: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.contact-card {
  text-align: center;
  padding: 35px 25px;
  background: #f7fbfb;
  border: 1px solid #e2eeee;
  border-radius: 18px;
  transition: 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 15px 35px rgba(0, 80, 90, 0.1);
}

.contact-card > i {
  width: 65px;
  height: 65px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e4f7f8;
  color: #087f8c;
  border-radius: 50%;
  font-size: 26px;
}

.contact-card h3 {
  color: #173c43;
  font-size: 19px;
  margin-bottom: 12px;
}

.contact-card p {
  color: #68777c;
  font-size: 14px;
  margin-bottom: 6px;
}

.contact-card p a {
  color: #087f8c;
  font-weight: 600;
}

.contact-card p a:hover {
  text-decoration: underline;
}

.contact-emergency {
  display: inline-block;
  margin-top: 15px;
  background: #087f8c;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  transition: 0.3s ease;
}

.contact-emergency:hover {
  background: #05636d;
}

/* =========================
   17. CONTACT FORM
   ========================= */

.contact-form-wrapper {
  margin-top: 50px;
  background: #f7fbfb;
  border: 1px solid #e2eeee;
  border-radius: 20px;
  padding: 40px;
}

.contact-form-wrapper h3 {
  text-align: center;
  color: #173c43;
  font-size: 27px;
  margin-bottom: 8px;
}

.contact-form-wrapper > p {
  text-align: center;
  color: #718084;
  font-size: 14px;
  margin-bottom: 30px;
}

.contact-form {
  max-width: 900px;
  margin: auto;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #304b50;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid #d5e3e5;
  background: #ffffff;
  border-radius: 10px;
  padding: 13px 15px;
  font-family: inherit;
  font-size: 14px;
  color: #263238;
  outline: none;
  transition: 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #087f8c;
  box-shadow: 0 0 0 3px rgba(8, 127, 140, 0.08);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-submit {
  text-align: center;
}

.submit-btn {
  border: none;
  cursor: pointer;
  background: #087f8c;
  color: #ffffff;
  padding: 13px 35px;
}

.submit-btn:hover {
  background: #05636d;
  transform: translateY(-2px);
}

/* =========================
   18. FOOTER
   ========================= */

.footer {
  background: #102f35;
  color: #ffffff;
  border-top: 5px solid #70e1e9;
}

.footer-content {
  padding: 64px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(150px, 1fr));
  gap: 56px;
  align-items: start;
}

.footer-brand {
  max-width: 520px;
}

.footer-brand p {
  color: #bdd3d6;
  font-size: 14px;
  line-height: 1.8;
  margin: 16px 0 22px;
}

.footer-logo img {
  width: 190px;
  height: auto;
  max-height: 88px;
  object-fit: contain;
}

.footer-kicker {
  display: block;
  color: #70e1e9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  margin-top: 22px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(167, 240, 244, 0.35);
  border-radius: 50%;
  color: #d9eff1;
  font-size: 15px;
  transition: 0.3s ease;
}

.footer-socials a:hover {
  background: #70e1e9;
  border-color: #70e1e9;
  color: #102f35;
  transform: translateY(-3px);
}

.footer-links,
.footer-emergency {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h3,
.footer-emergency h3 {
  color: #ffffff;
  font-size: 19px;
  line-height: 1.3;
  margin: 4px 0 4px;
}

.footer-links a {
  color: #bdd3d6;
  font-size: 13px;
  transition: 0.3s ease;
}

.footer-links a:hover {
  color: #70e1e9;
  padding-left: 5px;
}

.footer-emergency a {
  color: #70e1e9;
  font-size: 17px;
  font-weight: 600;
}

.footer-emergency-text {
  color: #bdd3d6;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 4px;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 11px 16px;
  border: 1px solid rgba(112, 225, 233, 0.45);
  border-radius: 8px;
  background: rgba(112, 225, 233, 0.08);
}

.footer-phone:hover {
  background: #70e1e9;
  color: #102f35;
}

.footer-emergency p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.footer-emergency p i {
  color: #70e1e9;
  font-size: 15px;
  flex-shrink: 0;
}

.footer-emergency p a {
  color: #70e1e9;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  display: inline;
}

.copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 5%;
}

.copyright p {
  color: #9bb4b8;
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #bdd3d6;
  font-size: 12px;
  white-space: nowrap;
}

.back-to-top:hover {
  color: #70e1e9;
}

/* =========================
   SOCIAL MEDIA FLOATING ICONS
========================= */

.social-float {
  position: fixed;
  right: 25px;
  bottom: 25px;

  display: flex;
  flex-direction: column;
  gap: 12px;

  z-index: 9999;
}

.social-icon {
  width: 50px;
  height: 50px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #ffffff;
  text-decoration: none;

  font-size: 24px;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);

  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

/* WhatsApp */
.whatsapp {
  background: #25d366;
}

/* Instagram */
.instagram {
  background: #e4405f;
}

/* Facebook */
.facebook {
  background: #1877f2;
}

/* YouTube */
.youtube {
  background: #ff0000;
}

/* Mobile */
@media (max-width: 600px) {
  .logo img {
    max-width: 140px;
  }

  .social-float {
    right: 15px;
    bottom: 15px;
    gap: 8px;
  }

  .social-icon {
    width: 45px;
    height: 45px;
    font-size: 21px;
  }
}

/* =========================================================
   19. RESPONSIVE DESIGN - TABLET
   ========================================================= */

@media (max-width: 1100px) {
  .nav-menu {
    gap: 15px;
  }

  .nav-menu a {
    font-size: 13px;
  }

  .department-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .facility-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .doctor-card {
    grid-template-columns: 150px 1fr;
  }
}

/* =========================================================
   20. RESPONSIVE DESIGN - MOBILE
   ========================================================= */

@media (max-width: 850px) {
  .section {
    padding: 70px 0;
  }

  .navbar {
    min-height: 72px;
  }

  .call-btn {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #ffffff;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 15px 5%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    padding: 12px 5px;
    border-bottom: 1px solid #edf2f2;
  }

  .nav-menu a::after {
    display: none;
  }

  .hero {
    min-height: 600px;
  }

  .hero-content {
    margin-left: 0;
    max-width: 100%;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-unit {
    font-size: 18px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .about-image,
  .image-placeholder {
    min-height: 350px;
  }

  .emergency-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .department-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .doctor-grid {
    grid-template-columns: 1fr;
  }

  .facility-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cta-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* =========================================================
   21. SMALL MOBILE
   ========================================================= */

@media (max-width: 550px) {
  .container {
    width: 92%;
  }

  .logo span {
    font-size: 23px;
  }

  .logo small {
    font-size: 9px;
    letter-spacing: 3px;
  }

  .hero {
    min-height: 580px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-tag {
    font-size: 11px;
    letter-spacing: 0.7px;
  }

  .hero-unit {
    font-size: 16px;
  }

  .hero-content > p:not(.hero-description) {
    font-size: 18px;
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .emergency-grid,
  .department-grid,
  .facility-grid {
    grid-template-columns: 1fr;
  }

  .doctor-card {
    grid-template-columns: 1fr;
  }

  .doctor-image {
    height: 280px;
  }

  .doctor-info ul {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form-wrapper {
    padding: 25px 18px;
  }

  .contact-form-wrapper h3 {
    font-size: 23px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 42px 0 34px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-brand p {
    font-size: 13px;
  }

  .footer-links,
  .footer-emergency {
    gap: 6px;
  }

  .copyright {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 5%;
  }

  .footer-phone {
    width: 100%;
  }
}

/* =========================================================
   22. ANIMATION
   ========================================================= */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: fadeUp 1s ease;
}

/* ================================
   HERO ANIMATION
================================ */

.hero-animate > * {
  opacity: 0;
  transform: translateY(30px);
  animation: dhHeroFade 0.8s ease-out forwards;
}

.hero-animate .hero-tag {
  animation-delay: 0.2s;
}

.hero-animate h1 {
  animation-delay: 0.4s;
}

.hero-animate .hero-unit {
  animation-delay: 0.6s;
}

.hero-animate > p:not(.hero-unit):not(.hero-description) {
  animation-delay: 0.8s;
}

.hero-animate .hero-description {
  animation-delay: 1s;
}

.hero-animate .hero-buttons {
  animation-delay: 1.2s;
}

@keyframes dhHeroFade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =================================
   ABOUT REVEAL ANIMATION
================================= */

.about-reveal .container {
  opacity: 0;
  transform: translateX(-80px);
  transition:
    opacity 1s ease,
    transform 1s ease;
}

.about-reveal.show .container {
  opacity: 1;
  transform: translateX(0);
}

/* =================================
   HERO SOFT REVEAL ANIMATION
================================= */

.hero-simple-animation {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(20px);
  animation: heroSoftReveal 1.2s ease-out 0.2s forwards;
}

@keyframes heroSoftReveal {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(20px);
  }

  60% {
    opacity: 0.8;
    filter: blur(2px);
    transform: translateY(5px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* ==========================================
   DOCTORS ALTERNATE LEFT / RIGHT ANIMATION
========================================== */

.doctors-alternate-reveal .doctor-card {
  opacity: 0;
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Odd cards come from LEFT */

.doctors-alternate-reveal .doctor-card:nth-child(odd) {
  transform: translateX(-100px);
}

/* Even cards come from RIGHT */

.doctors-alternate-reveal .doctor-card:nth-child(even) {
  transform: translateX(100px);
}

/* ==========================================
   SHOW ANIMATION
========================================== */

.doctors-alternate-reveal.show .doctor-card {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================
   DELAY
========================================== */

.doctors-alternate-reveal.show .doctor-card:nth-child(1) {
  transition-delay: 0.1s;
}

.doctors-alternate-reveal.show .doctor-card:nth-child(2) {
  transition-delay: 0.25s;
}

.doctors-alternate-reveal.show .doctor-card:nth-child(3) {
  transition-delay: 0.4s;
}

.doctors-alternate-reveal.show .doctor-card:nth-child(4) {
  transition-delay: 0.55s;
}

.doctors-alternate-reveal.show .doctor-card:nth-child(5) {
  transition-delay: 0.7s;
}

.doctors-alternate-reveal.show .doctor-card:nth-child(6) {
  transition-delay: 0.85s;
}

/* ==========================================
   MOBILE
========================================== */

/* ==========================================
   DOCTORS MOBILE FIX
========================================== */

@media (max-width: 576px) {

  .doctors-alternate-reveal {
    overflow: hidden !important;
  }

  .doctors-alternate-reveal .doctor-grid {
    width: 100%;
    max-width: 100%;
    overflow: hidden !important;
  }

  .doctors-alternate-reveal .doctor-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Left animation */
  .doctors-alternate-reveal .doctor-card:nth-child(odd) {
    transform: translateX(-25px);
  }

  /* Right animation */
  .doctors-alternate-reveal .doctor-card:nth-child(even) {
    transform: translateX(25px);
  }

  /* Final position */
  .doctors-alternate-reveal.show .doctor-card {
    transform: translateX(0);
  }
}
/* ==========================================
   FACILITIES POP-UP ANIMATION
========================================== */

.facilities-pop-animation .section-heading {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.facilities-pop-animation .facility-card {
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================
   SHOW
========================================== */

.facilities-pop-animation.show .section-heading {
  opacity: 1;
  transform: translateY(0);
}

.facilities-pop-animation.show .facility-card {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================
   ONE-BY-ONE DELAY
========================================== */

.facilities-pop-animation.show .facility-card:nth-child(1) {
  transition-delay: 0.1s;
}

.facilities-pop-animation.show .facility-card:nth-child(2) {
  transition-delay: 0.2s;
}

.facilities-pop-animation.show .facility-card:nth-child(3) {
  transition-delay: 0.3s;
}

.facilities-pop-animation.show .facility-card:nth-child(4) {
  transition-delay: 0.4s;
}

.facilities-pop-animation.show .facility-card:nth-child(5) {
  transition-delay: 0.5s;
}

.facilities-pop-animation.show .facility-card:nth-child(6) {
  transition-delay: 0.6s;
}

.facilities-pop-animation.show .facility-card:nth-child(7) {
  transition-delay: 0.7s;
}

.facilities-pop-animation.show .facility-card:nth-child(8) {
  transition-delay: 0.8s;
}

.facilities-pop-animation.show .facility-card:nth-child(9) {
  transition-delay: 0.9s;
}

.facilities-pop-animation.show .facility-card:nth-child(10) {
  transition-delay: 1s;
}

.facilities-pop-animation.show .facility-card:nth-child(11) {
  transition-delay: 1.1s;
}

/* ==========================================
   ICON ANIMATION
========================================== */

.facilities-pop-animation .facility-card i {
  transition: transform 0.4s ease;
}

.facilities-pop-animation .facility-card:hover i {
  transform: scale(1.15) rotate(5deg);
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 576px) {
  .facilities-pop-animation .facility-card {
    transform: scale(0.9);
  }
}

/* =========================================
   MOBILE BOOK APPOINTMENT BUTTON
========================================= */

.mobile-appointment-btn {
  transition: transform 0.3s ease;
}

/* Mobile only */

@media (max-width: 576px) {
  .mobile-appointment-btn {
    position: fixed;
    right: 70px;
    z-index: 9999;

    display: flex;
    align-items: center;
    gap: 13px;

    animation: appointmentBlink 1s ease-in-out 2;
  }
}

/* =========================================
   OPEN WEBSITE BLINK ANIMATION
========================================= */

@keyframes appointmentBlink {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  25% {
    opacity: 0.35;
    transform: scale(1.08);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }

  75% {
    opacity: 0.35;
    transform: scale(1.08);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* =========================================
   DEPARTMENTS TOP TO DOWN ANIMATION
========================================= */

.departments-drop-animation .department-card {
  opacity: 0;
  transform: translateY(-70px);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* When section becomes visible */

.departments-drop-animation.show .department-card {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   CTA RIGHT SIDE REVEAL
========================================= */

.cta-right-reveal .cta-content {
  opacity: 0;
  transform: translateX(120px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

/* Show */

.cta-right-reveal.show .cta-content {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================
   EMERGENCY INDIVIDUAL SCROLL ANIMATION
========================================== */

.emergency-scroll-animation .emergency-card {
  opacity: 0;
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Odd cards come from LEFT */

.emergency-scroll-animation .emergency-card:nth-child(odd) {
  transform: translateX(-100px);
}

/* Even cards come from RIGHT */

.emergency-scroll-animation .emergency-card:nth-child(even) {
  transform: translateX(100px);
}

/* Card reaches normal position */

.emergency-scroll-animation .emergency-card.card-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 576px) {
  .emergency-scroll-animation {
    overflow-x: hidden;
  }

  .emergency-scroll-animation .emergency-card:nth-child(odd) {
    transform: translateX(-45px);
  }

  .emergency-scroll-animation .emergency-card:nth-child(even) {
    transform: translateX(45px);
  }

  .emergency-scroll-animation .emergency-card.card-visible {
    opacity: 1;
    transform: translateX(0);
  }
}
/* ==========================================
   DEPARTMENTS INDIVIDUAL TOP / BOTTOM
========================================== */

.departments-top-bottom-animation .department-card {
  opacity: 0;
  transition:
    opacity 0.7s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Odd cards come from TOP */

.departments-top-bottom-animation .department-card:nth-child(odd) {
  transform: translateY(-80px);
}

/* Even cards come from BOTTOM */

.departments-top-bottom-animation .department-card:nth-child(even) {
  transform: translateY(80px);
}

/* Card becomes visible */

.departments-top-bottom-animation .department-card.card-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 576px) {
  .departments-top-bottom-animation {
    overflow: hidden;
  }

  .departments-top-bottom-animation .department-card:nth-child(odd) {
    transform: translateY(-50px);
  }

  .departments-top-bottom-animation .department-card:nth-child(even) {
    transform: translateY(50px);
  }

  .departments-top-bottom-animation .department-card.card-visible {
    opacity: 1;
    transform: translateY(0);
  }
}
.achievement-ticker {
  width: 100%;
  overflow: hidden;
  background: #075e69;
  color: #ffffff;
  height: 38px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 5;
}

.ticker-content {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  animation: tickerMove 20s linear infinite;
}

.ticker-content span {
  color: #ffffff;
  font-size: 16px;
}

@keyframes tickerMove {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

@media (max-width: 576px) {
  .achievement-ticker {
    height: 34px;
  }

  .ticker-content {
    font-size: 11px;
    gap: 12px;
    animation-duration: 16s;
  }
}
.achievements {
  background: #f5fbfc;
}

.achievement-highlight {
  margin-top: 40px;

  background: linear-gradient(135deg, #075e69, #087f8c);

  border-radius: 22px;

  padding: 35px 45px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  color: #ffffff;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* MAIN ICON */

.achievement-icon {
  width: 70px;
  height: 70px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.15);

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
}

.achievement-icon i {
  font-size: 32px;
}

/* MAIN CONTENT */

.achievement-content {
  flex: 1;
  margin-left: 25px;
}

.achievement-content h3 {
  font-size: 52px;

  margin: 0;

  line-height: 1;

  font-weight: 700;
}

.achievement-content h3 span {
  font-size: 35px;
}

.achievement-content h4 {
  margin: 8px 0 5px;

  font-size: 20px;
}

.achievement-content p {
  margin: 0;

  font-size: 14px;

  opacity: 0.9;
}

/* 80 DAYS */

.achievement-days {
  text-align: center;

  border-left: 1px solid rgba(255, 255, 255, 0.3);

  padding-left: 40px;
}

.achievement-days strong {
  display: block;

  font-size: 42px;

  line-height: 1;
}

.achievement-days span {
  font-size: 14px;

  opacity: 0.9;
}

/* SMALL CARDS */

.achievement-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 20px;

  margin-top: 25px;
}

.achievement-small-card {
  background: #ffffff;

  padding: 25px;

  text-align: center;

  border-radius: 16px;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);

  transition: 0.3s ease;
}

.achievement-small-card:hover {
  transform: translateY(-5px);
}

.achievement-small-card i {
  font-size: 27px;

  color: #087f8c;

  margin-bottom: 10px;
}

.achievement-small-card h3 {
  margin: 5px 0;

  color: #075e69;

  font-size: 30px;
}

.achievement-small-card p {
  margin: 0;

  color: #666;

  font-size: 14px;
}

@media (max-width: 576px) {
  .achievement-highlight {
    padding: 25px 18px;

    flex-direction: column;

    text-align: center;

    gap: 18px;
  }

  .achievement-content {
    margin-left: 0;
  }

  .achievement-content h3 {
    font-size: 45px;
  }

  .achievement-content h4 {
    font-size: 18px;
  }

  .achievement-days {
    border-left: none;

    border-top: 1px solid rgba(255, 255, 255, 0.3);

    padding-left: 0;

    padding-top: 15px;

    width: 100%;
  }

  .achievement-grid {
    grid-template-columns: 1fr;

    gap: 12px;
  }
}
/* Small Achievement Animation */
.achievements-small-animation .section-heading,
.achievements-small-animation .achievement-highlight,
.achievements-small-animation .achievement-small-card {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.achievements-small-animation.show .section-heading {
  opacity: 1;
  transform: translateY(0);
}

.achievements-small-animation.show .achievement-highlight {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.achievements-small-animation.show .achievement-small-card {
  opacity: 1;
  transform: translateY(0);
}

.achievements-small-animation.show .achievement-small-card:nth-child(1) {
  transition-delay: 0.25s;
}

.achievements-small-animation.show .achievement-small-card:nth-child(2) {
  transition-delay: 0.35s;
}

.achievements-small-animation.show .achievement-small-card:nth-child(3) {
  transition-delay: 0.45s;
}

/* =========================================================
   NEW DHARANI HOSPITALS
   CELEBRATION POPUP
   RESPONSIVE DESKTOP + TABLET + MOBILE
========================================================= */

/* =========================================================
   POPUP MAIN
========================================================= */

.celebration-popup {
  position: fixed;
  inset: 0;

  width: 100%;
  height: 100vh;
  height: 100dvh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 16px;

  overflow: hidden;

  z-index: 999999;

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

/* OPEN STATE */

.celebration-popup.show {
  opacity: 1;
  visibility: visible;
}

/* =========================================================
   BACKGROUND OVERLAY
========================================================= */

.celebration-overlay {
  position: absolute;
  inset: 0;

  background:
    radial-gradient(circle at 50% 30%, rgba(0, 188, 212, 0.2), transparent 40%),
    rgba(3, 22, 31, 0.88);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* =========================================================
   MAIN CARD
========================================================= */

.celebration-card {
  position: relative;

  width: min(650px, 94vw);

  max-height: calc(100dvh - 32px);

  overflow: hidden;

  padding: 30px 42px 25px;

  border-radius: 30px;

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.98),
    rgba(245, 253, 255, 0.97)
  );

  border: 1px solid rgba(255, 255, 255, 0.9);

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.35),
    0 0 50px rgba(0, 188, 212, 0.18);

  text-align: center;

  transform: scale(0.82) translateY(25px);

  opacity: 0;

  transition:
    transform 0.65s cubic-bezier(0.17, 0.67, 0.35, 1.25),
    opacity 0.45s ease;

  isolation: isolate;
}

/* CARD OPEN */

.celebration-popup.show .celebration-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* =========================================================
   CARD SHINE
========================================================= */

.celebration-card::before {
  content: "";

  position: absolute;

  top: -80%;
  left: -120%;

  width: 70%;
  height: 250%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );

  transform: rotate(20deg);

  animation: cardShine 5s ease-in-out infinite;

  pointer-events: none;

  z-index: -1;
}

@keyframes cardShine {
  0% {
    left: -120%;
  }

  45%,
  100% {
    left: 150%;
  }
}

/* =========================================================
   CLOSE BUTTON
========================================================= */

.celebration-close {
  position: absolute;

  top: 14px;
  right: 14px;

  width: 38px;
  height: 38px;

  border: none;
  border-radius: 50%;

  background: rgba(7, 94, 105, 0.1);

  color: #075e69;

  font-size: 17px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;

  z-index: 20;
}

.celebration-close:hover {
  background: #075e69;
  color: white;

  transform: rotate(90deg) scale(1.08);
}

/* =========================================================
   TOP CELEBRATION
========================================================= */

.celebration-top {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 12px;

  margin-bottom: 10px;
}

.celebration-line {
  width: 55px;
  height: 1px;

  background: linear-gradient(90deg, transparent, #54cbd5, transparent);
}

.celebration-title {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  color: #087f8c;

  font-size: 11px;
  font-weight: 800;

  letter-spacing: 1.8px;

  white-space: nowrap;
}

.celebration-title i {
  font-size: 14px;

  animation: iconFloat 2s ease-in-out infinite;
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }

  50% {
    transform: translateY(-4px) rotate(5deg);
  }
}

/* =========================================================
   ACHIEVEMENT BADGE
========================================================= */

.achievement-badge-new {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  padding: 7px 15px;

  margin-bottom: 8px;

  border-radius: 50px;

  background: linear-gradient(135deg, #075e69, #0b8d98);

  color: white;

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 1px;

  box-shadow: 0 8px 20px rgba(7, 94, 105, 0.25);

  overflow: hidden;
}

.achievement-badge-new i {
  font-size: 12px;
}

.badge-glow {
  position: absolute;

  inset: -50%;

  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(255, 255, 255, 0.4),
    transparent 60%
  );

  transform: translateX(-100%);

  animation: badgeShine 3.5s infinite;
}

@keyframes badgeShine {
  0% {
    transform: translateX(-100%);
  }

  55%,
  100% {
    transform: translateX(100%);
  }
}

/* =========================================================
   MEDICAL ICON
========================================================= */

.celebration-medical-icon {
  position: relative;

  width: 62px;
  height: 62px;

  margin: 2px auto 7px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(135deg, #075e69, #0b9ca8);

  color: white;

  font-size: 26px;

  box-shadow: 0 10px 28px rgba(7, 94, 105, 0.3);
}

.medical-glow {
  position: absolute;

  inset: -7px;

  border-radius: 50%;

  border: 1px solid rgba(0, 188, 212, 0.35);

  animation: medicalPulse 2.5s ease-in-out infinite;
}

@keyframes medicalPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.12);
    opacity: 0;
  }
}

.medical-ring {
  position: absolute;

  border-radius: 50%;

  border: 1px solid rgba(0, 188, 212, 0.25);

  pointer-events: none;
}

.ring-one {
  inset: -12px;

  animation: ringRotate 7s linear infinite;
}

.ring-two {
  inset: -18px;

  border-style: dashed;

  animation: ringRotateReverse 10s linear infinite;
}

@keyframes ringRotate {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes ringRotateReverse {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0);
  }
}

/* =========================================================
   CONTENT
========================================================= */

.celebration-content {
  position: relative;
  z-index: 2;
}

.celebration-small-title {
  margin: 3px 0 3px;

  color: #6a858b;

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 2px;
}

/* =========================================================
   MAIN HEADING
========================================================= */

.celebration-content h2 {
  margin: 0;

  display: flex;
  flex-direction: column;
  align-items: center;

  line-height: 1;
}

.celebration-number {
  display: block;

  font-size: clamp(55px, 8vw, 76px);

  font-weight: 900;

  line-height: 0.95;

  letter-spacing: -3px;

  background: linear-gradient(135deg, #075e69, #08a4b0, #075e69);

  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;

  animation: numberGlow 2.5s ease-in-out infinite;
}

@keyframes numberGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(8, 164, 176, 0));
  }

  50% {
    filter: drop-shadow(0 0 12px rgba(8, 164, 176, 0.35));
  }
}

.celebration-heading {
  margin-top: 5px;

  color: #173f46;

  font-size: clamp(20px, 3vw, 27px);

  font-weight: 800;

  letter-spacing: -0.5px;
}

/* =========================================================
   DIVIDER
========================================================= */

.celebration-divider {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  margin: 10px auto 9px;

  max-width: 310px;
}

.celebration-divider > span {
  flex: 1;

  height: 1px;

  background: linear-gradient(90deg, transparent, #9bdce2);
}

.celebration-divider > span:last-child {
  background: linear-gradient(90deg, #9bdce2, transparent);
}

.divider-heart {
  width: 28px;
  height: 28px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #e9f9fa;

  color: #087f8c;

  font-size: 13px;

  box-shadow: 0 5px 15px rgba(7, 94, 105, 0.1);
}

/* =========================================================
   MESSAGE
========================================================= */

.celebration-message {
  max-width: 540px;

  margin: 0 auto 13px;

  color: #526c72;

  font-size: 12px;

  line-height: 1.55;

  font-weight: 500;
}

.celebration-message strong {
  color: #075e69;

  font-weight: 800;
}

/* =========================================================
   STATS
========================================================= */

.celebration-stats {
  display: flex;
  align-items: stretch;
  justify-content: center;

  width: 100%;

  max-width: 460px;

  margin: 0 auto 12px;

  padding: 9px 5px;

  border-radius: 17px;

  background: linear-gradient(
    135deg,
    rgba(7, 94, 105, 0.055),
    rgba(0, 188, 212, 0.025)
  );

  border: 1px solid rgba(7, 94, 105, 0.07);
}

.celebration-stat {
  flex: 1;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-width: 0;
}

.stat-icon {
  width: 27px;
  height: 27px;

  margin-bottom: 3px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #e5f8fa;

  color: #087f8c;

  font-size: 11px;
}

.celebration-stat strong {
  color: #075e69;

  font-size: 18px;
  font-weight: 900;

  line-height: 1.1;
}

.celebration-stat span {
  margin-top: 2px;

  color: #71878c;

  font-size: 8px;
  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.8px;
}

.celebration-stat-divider {
  width: 1px;

  margin: 5px 8px;

  background: #cce7ea;
}

/* =========================================================
   FOOTER
========================================================= */

.celebration-footer {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  color: #55747a;

  font-size: 9.5px;
  font-weight: 700;

  line-height: 1.3;
}

.footer-heart {
  color: #e85c68;

  font-size: 12px;

  animation: heartBeat 1.6s ease-in-out infinite;
}

@keyframes heartBeat {
  0%,
  100% {
    transform: scale(1);
  }

  15% {
    transform: scale(1.18);
  }

  30% {
    transform: scale(1);
  }
}

/* =========================================================
   BOTTOM WAVE
========================================================= */

.bottom-wave {
  position: absolute;

  bottom: -1px;
  left: 0;

  width: 100%;
  height: 7px;

  background: linear-gradient(90deg, #075e69, #0ba0ab, #075e69);

  border-radius: 0 0 30px 30px;
}

/* =========================================================
   BALLOONS
========================================================= */

.balloons {
  position: absolute;

  inset: 0;

  pointer-events: none;

  overflow: hidden;
}

.balloon {
  position: absolute;

  width: 22px;
  height: 28px;

  border-radius: 50% 50% 48% 48%;

  opacity: 0.75;

  animation: balloonFloat 6s ease-in-out infinite;
}

.balloon::after {
  content: "";

  position: absolute;

  bottom: -18px;
  left: 50%;

  width: 1px;
  height: 20px;

  background: rgba(255, 255, 255, 0.45);
}

.balloon span {
  position: absolute;

  bottom: -3px;
  left: 50%;

  width: 5px;
  height: 5px;

  transform: translateX(-50%) rotate(45deg);

  background: inherit;
}

.balloon-1 {
  top: 9%;
  left: 5%;

  background: #63cbd3;

  animation-delay: 0s;
}

.balloon-2 {
  top: 18%;
  left: 10%;

  background: #f29b9b;

  transform: scale(0.75);

  animation-delay: 1s;
}

.balloon-3 {
  top: 7%;
  right: 6%;

  background: #f3c969;

  animation-delay: 2s;
}

.balloon-4 {
  top: 23%;
  right: 11%;

  background: #8ac9a7;

  transform: scale(0.75);

  animation-delay: 1.5s;
}

.balloon-5 {
  bottom: 12%;
  left: 5%;

  background: #b7a0db;

  transform: scale(0.65);

  animation-delay: 2.5s;
}

.balloon-6 {
  bottom: 10%;
  right: 6%;

  background: #63cbd3;

  transform: scale(0.7);

  animation-delay: 3s;
}

@keyframes balloonFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }

  50% {
    transform: translateY(-14px) rotate(3deg);
  }
}

/* =========================================================
   RIBBONS
========================================================= */

.ribbons {
  position: absolute;

  inset: 0;

  pointer-events: none;

  overflow: hidden;
}

.ribbon {
  position: absolute;

  width: 4px;
  height: 70px;

  border-radius: 5px;

  opacity: 0.65;

  animation: ribbonFloat 5s ease-in-out infinite;
}

.ribbon-left-1 {
  top: 14%;
  left: 2%;

  background: #0a9ca7;

  transform: rotate(25deg);
}

.ribbon-left-2 {
  top: 30%;
  left: 7%;

  background: #ef9c9c;

  height: 50px;

  transform: rotate(-20deg);

  animation-delay: 1s;
}

.ribbon-right-1 {
  top: 15%;
  right: 2%;

  background: #e9c35f;

  transform: rotate(-25deg);

  animation-delay: 2s;
}

.ribbon-right-2 {
  top: 32%;
  right: 7%;

  background: #8bc9a8;

  height: 50px;

  transform: rotate(20deg);

  animation-delay: 1.5s;
}

@keyframes ribbonFloat {
  0%,
  100% {
    transform: translateY(0) rotate(20deg);
  }

  50% {
    transform: translateY(-10px) rotate(30deg);
  }
}

/* =========================================================
   SPARKLES
========================================================= */

.sparkles {
  position: absolute;

  inset: 0;

  pointer-events: none;
}

.sparkles span {
  position: absolute;

  color: #ffffff;

  font-size: 18px;

  opacity: 0;

  animation: sparkle 3s ease-in-out infinite;
}

.sparkles span:nth-child(1) {
  top: 12%;
  left: 20%;
}

.sparkles span:nth-child(2) {
  top: 20%;
  right: 20%;

  animation-delay: 0.7s;
}

.sparkles span:nth-child(3) {
  top: 45%;
  left: 8%;

  animation-delay: 1.2s;
}

.sparkles span:nth-child(4) {
  top: 42%;
  right: 8%;

  animation-delay: 1.8s;
}

.sparkles span:nth-child(5) {
  bottom: 22%;
  left: 14%;

  animation-delay: 2.3s;
}

.sparkles span:nth-child(6) {
  bottom: 20%;
  right: 15%;

  animation-delay: 0.5s;
}

.sparkles span:nth-child(7) {
  top: 8%;
  left: 48%;

  animation-delay: 1.5s;
}

.sparkles span:nth-child(8) {
  bottom: 12%;
  right: 42%;

  animation-delay: 2.5s;
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0;

    transform: scale(0.5) rotate(0);
  }

  50% {
    opacity: 1;

    transform: scale(1.2) rotate(180deg);
  }
}

/* =========================================================
   CONFETTI
========================================================= */

.confetti-container {
  position: absolute;

  inset: 0;

  pointer-events: none;

  overflow: hidden;
}

/* =========================================================
   PREVENT BACKGROUND SCROLL
========================================================= */

body.celebration-open {
  overflow: hidden;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {
  .celebration-popup {
    padding: 14px;
  }

  .celebration-card {
    width: min(620px, 94vw);

    padding: 25px 30px 22px;

    border-radius: 27px;
  }

  .celebration-medical-icon {
    width: 58px;
    height: 58px;

    font-size: 24px;
  }

  .celebration-message {
    font-size: 11.5px;
  }

  .celebration-number {
    font-size: clamp(52px, 10vw, 70px);
  }

  .celebration-heading {
    font-size: 23px;
  }

  .balloon {
    transform: scale(0.8);
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {
  .celebration-popup {
    padding: 10px;
  }

  .celebration-card {
    width: 100%;

    max-width: 430px;

    max-height: calc(100dvh - 20px);

    padding: 22px 17px 19px;

    border-radius: 24px;
  }

  .celebration-close {
    top: 10px;
    right: 10px;

    width: 34px;
    height: 34px;

    font-size: 15px;
  }

  .celebration-top {
    gap: 6px;

    margin-bottom: 7px;
  }

  .celebration-line {
    width: 28px;
  }

  .celebration-title {
    gap: 5px;

    font-size: 8px;

    letter-spacing: 1.1px;
  }

  .celebration-title i {
    font-size: 11px;
  }

  .achievement-badge-new {
    padding: 6px 12px;

    margin-bottom: 6px;

    font-size: 8px;

    letter-spacing: 0.7px;
  }

  .celebration-medical-icon {
    width: 51px;
    height: 51px;

    margin-bottom: 5px;

    font-size: 21px;
  }

  .celebration-small-title {
    font-size: 7px;

    letter-spacing: 1.4px;

    margin-bottom: 3px;
  }

  .celebration-number {
    font-size: 55px;

    letter-spacing: -2.5px;
  }

  .celebration-heading {
    font-size: 20px;

    margin-top: 3px;
  }

  .celebration-divider {
    margin: 8px auto 7px;

    gap: 7px;
  }

  .divider-heart {
    width: 25px;
    height: 25px;

    font-size: 11px;
  }

  .celebration-message {
    max-width: 390px;

    margin-bottom: 10px;

    font-size: 10px;

    line-height: 1.45;
  }

  .celebration-stats {
    margin-bottom: 10px;

    padding: 7px 3px;

    border-radius: 14px;
  }

  .stat-icon {
    width: 24px;
    height: 24px;

    margin-bottom: 2px;

    font-size: 9px;
  }

  .celebration-stat strong {
    font-size: 16px;
  }

  .celebration-stat span {
    font-size: 7px;

    letter-spacing: 0.5px;
  }

  .celebration-stat-divider {
    margin: 4px 5px;
  }

  .celebration-footer {
    gap: 5px;

    font-size: 8px;
  }

  .footer-heart {
    font-size: 10px;
  }

  .balloon {
    opacity: 0.5;
  }

  .ribbon {
    opacity: 0.4;
  }

  .sparkles span {
    font-size: 13px;
  }
}

/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {
  .celebration-popup {
    padding: 7px;
  }

  .celebration-card {
    max-height: calc(100dvh - 14px);

    padding: 18px 12px 16px;

    border-radius: 21px;
  }

  .celebration-close {
    width: 30px;
    height: 30px;

    top: 8px;
    right: 8px;

    font-size: 13px;
  }

  .celebration-top {
    margin-bottom: 5px;
  }

  .celebration-title {
    font-size: 7px;

    letter-spacing: 0.8px;
  }

  .celebration-line {
    width: 22px;
  }

  .achievement-badge-new {
    padding: 5px 10px;

    font-size: 7px;
  }

  .celebration-medical-icon {
    width: 44px;
    height: 44px;

    font-size: 18px;
  }

  .celebration-number {
    font-size: 48px;
  }

  .celebration-heading {
    font-size: 17px;
  }

  .celebration-small-title {
    font-size: 6.5px;

    letter-spacing: 1px;
  }

  .celebration-message {
    font-size: 9px;

    line-height: 1.38;

    margin-bottom: 8px;
  }

  .celebration-divider {
    margin: 6px auto;
  }

  .celebration-stats {
    padding: 5px 2px;

    margin-bottom: 7px;
  }

  .stat-icon {
    width: 21px;
    height: 21px;

    font-size: 8px;
  }

  .celebration-stat strong {
    font-size: 14px;
  }

  .celebration-stat span {
    font-size: 6px;
  }

  .celebration-footer {
    font-size: 7px;
  }
}

/* =========================================================
   SHORT MOBILE SCREENS
   Example: 360x640 / 390x667
========================================================= */

@media (max-height: 650px) and (max-width: 600px) {
  .celebration-card {
    padding-top: 15px;
    padding-bottom: 13px;
  }

  .celebration-medical-icon {
    width: 42px;
    height: 42px;

    font-size: 17px;
  }

  .celebration-number {
    font-size: 46px;
  }

  .celebration-heading {
    font-size: 17px;
  }

  .celebration-message {
    font-size: 8.5px;

    line-height: 1.32;

    margin-bottom: 7px;
  }

  .celebration-stats {
    padding: 4px 2px;

    margin-bottom: 6px;
  }

  .stat-icon {
    width: 20px;
    height: 20px;
  }

  .celebration-stat strong {
    font-size: 13px;
  }

  .celebration-footer {
    font-size: 6.8px;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .celebration-card,
  .celebration-popup,
  .balloon,
  .ribbon,
  .sparkles span,
  .medical-glow,
  .ring-one,
  .ring-two,
  .footer-heart,
  .celebration-title i,
  .celebration-number,
  .badge-glow,
  .celebration-card::before {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================================================
   JAVASCRIPT CONFETTI
========================================================= */

.celebration-confetti {
  position: absolute;

  top: -20px;

  border-radius: 2px;

  background: #0b8d98;

  opacity: 0.85;

  animation: confettiFall linear infinite;
}

.celebration-confetti:nth-child(3n) {
  background: #f3c969;
}

.celebration-confetti:nth-child(3n + 1) {
  background: #ef9c9c;
}

.celebration-confetti:nth-child(3n + 2) {
  background: #8ac9a7;
}

@keyframes confettiFall {
  0% {
    top: -20px;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  100% {
    top: 110%;
    opacity: 0;

    transform: translateX(40px) rotate(720deg);
  }
}


/* =========================================================
   MOBILE HERO - ONLY MOBILE VIEW
   ========================================================= */

@media (max-width: 600px) {

    /* Increase hero height */
    .hero {
        min-height: 600px !important;
        height: auto !important;
        padding-bottom: 50px !important;
        box-sizing: border-box;
    }

    /* Give content more space from screen edges */
    .hero-content {
        width: 100% !important;
        max-width: none !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        padding-left: 30px !important;
        padding-right: 10px !important;

        box-sizing: border-box;
        transform: none !important;
    }

    /* Heading */
    .hero h1 {
        margin-top: 35px;
    }

    /* Hero unit text */
    .hero-unit,
    .hero-content > p:not(.hero-description) {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Description */
    .hero-description {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Buttons */
    .hero-buttons {
        margin-left: 0 !important;
        margin-right: 0 !important;
         margin-top: -20px !important;
    }
}

@media (max-width: 600px) {
    .about-image {
        width: 100%;
        height: auto;
        overflow: visible;
    }

    .about-image img {
        width: 100%;
        height: auto !important;
        object-fit: contain;
        display: block;
        border-radius: 15px;
    }
}


/* ==========================================
   DOCTORS MOBILE FIX
   Keeps mobile animation
   ========================================== */

@media (max-width: 768px) {

    .doctors .doctor-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .doctors .doctor-card {
        display: grid !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        visibility: visible !important;
    }

    .doctors .doctor-image {
        width: 100%;
        max-width: 100%;
    }

    .doctors .doctor-image img {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        height: auto !important;
    }

}


/* DOCTOR CARDS - TABLET */
@media (max-width: 768px) {
  .doctor-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 16px;
    padding: 16px;
  }

  .doctor-image {
    flex: 0 0 180px;
    width: 180px;
    min-width: 0;
  }

  .doctor-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center top;
  }

  .doctor-info {
    flex: 1;
    min-width: 0;
  }

  .doctor-info h3 {
    font-size: 21px;
    overflow-wrap: anywhere;
  }

  .doctor-info ul {
    padding-left: 18px;
  }
}

/* DOCTOR CARDS - MOBILE */
@media (max-width: 576px) {
  /* Stack cards vertically */
  .doctor-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;

    gap: 16px;
    padding: 16px;
    margin: 0 0 20px;

    border-radius: 14px;
    overflow: hidden;
  }

  /* Image */
  .doctor-image {
    flex: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .doctor-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center top;
    border-radius: 10px;
  }

  /* Text details */
  .doctor-info {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .doctor-info h3 {
    font-size: 21px;
    line-height: 1.4;
    margin: 0 0 10px;
    overflow-wrap: anywhere;
  }

  .doctor-info .qualification {
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  .doctor-info h4 {
    font-size: 17px;
    margin: 12px 0;
  }

  /* Treatment list: single column */
  .doctor-info ul {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;

    width: 100%;
    padding-left: 20px;
    margin: 0;
    box-sizing: border-box;
  }

  .doctor-info li {
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: normal;
  }
}

/* VERY SMALL MOBILE SCREENS */
@media (max-width: 360px) {
  .doctor-card {
    padding: 12px;
  }

  .doctor-info h3 {
    font-size: 19px;
  }

  .doctor-info li {
    font-size: 13px;
  }
}




/* DOCTORS SECTION - SCROLL REVEAL */
#doctors .doctor-card.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

/* Show card when it enters the viewport */
#doctors .doctor-card.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for multiple doctor cards */
#doctors .doctor-card.reveal-delay-1 {
    transition-delay: 0.15s;
}

#doctors .doctor-card.reveal-delay-2 {
    transition-delay: 0.3s;
}

/* Mobile animation */
@media (max-width: 576px) {
    #doctors .doctor-card.reveal {
        transform: translateY(22px);
        transition:
            opacity 0.6s ease,
            transform 0.6s ease;
    }

    #doctors .doctor-card.reveal.is-visible {
        transform: translateY(0);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    #doctors .doctor-card.reveal,
    #doctors .doctor-card.reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}







/* MOBILE HERO BACKGROUND */
@media screen and (max-width: 600px) {
    .hero {
        background:
            linear-gradient(
                90deg,
                rgba(0, 73, 81, 0.92),
                rgba(0, 73, 81, 0.68),
                rgba(0, 73, 81, 0.35)
            ),
            url("images/hospital.jpg") center / cover no-repeat;

        overflow: hidden;
    }
}
