/* =========================================
   AROGYA ORTHO & OG CLINIC - Main Stylesheet
   Purple Professional Medical Theme
   ========================================= */

@import 'tokens.css';

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: clip;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
}


/* ---- UTILITY ---- */
.section-pad {
  padding: 80px 0;
}

@media (max-width: 767.98px) {
  .section-pad {
    padding: 40px 0;
  }

  .section-badge {
    font-size: 0.7rem;
    padding: 5px 12px;
    margin-bottom: 12px;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 24px;
  }

  .section-divider {
    margin-bottom: 24px;
  }
}

.section-pad-sm {
  padding: 60px 0;
}

.bg-purple {
  background: var(--primary-bg);
}

.bg-medical-green {
  background: var(--medical-green-bg);
}

.text-purple {
  color: var(--primary);
}

.text-medical-green {
  color: var(--medical-green);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-badge {
  display: inline-block;
  background: rgba(107, 33, 168, 0.1);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-title {
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-title span {
  color: var(--primary);
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-lighter));
  border-radius: 2px;
  margin: 0 auto 40px;
}

.section-divider.left {
  margin: 0 0 40px;
}

/* ---- BUTTONS ---- */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(107, 33, 168, 0.3);
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(107, 33, 168, 0.4);
  color: var(--white);
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline-custom:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--whatsapp);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #1da851;
  color: var(--white);
  transform: translateY(-2px);
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #059669;
  color: var(--white);
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-call:hover {
  background: #047857;
  color: var(--white);
  transform: translateY(-2px);
}

/* ---- NAVBAR ---- */
.navbar-custom {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1050;
  transition: var(--transition);
  border-bottom: 1px solid var(--border);
}

.navbar-brand-custom {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1E1B4B, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  letter-spacing: -0.2px;
}

.brand-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-top: 1px;
}

.nav-link-custom {
  color: var(--text-dark) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 14px !important;
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--primary) !important;
  background: rgba(107, 33, 168, 0.07);
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white) !important;
  padding: 9px 24px !important;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(107, 33, 168, 0.35);
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(107, 33, 168, 0.5);
  color: var(--white) !important;
}

/* ---- TOP BAR ---- */
.top-bar {
  background: #1E1B4B;
  /* Rich Dark Indigo */
  color: #E2E8F0;
  padding: 10px 0;
  font-size: 0.82rem;
  z-index: 1060;
}

.top-bar a {
  color: #E2E8F0;
  white-space: nowrap;
}

.top-bar a:hover {
  color: white;
  opacity: 1;
}


.lang-toggle-wrap {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 2px;
  display: inline-flex;
  align-items: center;
}

.lang-toggle-btn {
  padding: 4px 12px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  color: #6c757d !important;
  text-decoration: none;
}

.lang-toggle-btn.active {
  background: var(--primary-light);
  color: white !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.lang-toggle-btn:hover:not(.active) {
  color: white !important;
}

/* ---- HERO ---- */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--primary);
  overflow: hidden;
  padding: 80px 0 120px;
  margin-bottom: -2px;
  z-index: 1;
}

.hero-slider-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1;
}

.hero-slider-bg .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: heroSlideFade 20s infinite linear;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.hero-slider-bg .slide:nth-child(1) {
  background-image: url('../images/clinic images/IMG_20260524_123132.jpg');
  animation-delay: 0s;
}

.hero-slider-bg .slide:nth-child(2) {
  background-image: url('../images/clinic images/IMG_20260524_124401.jpg');
  animation-delay: 5s;
}

.hero-slider-bg .slide:nth-child(3) {
  background-image: url('../images/clinic images/IMG_20260524_123330.jpg');
  animation-delay: 10s;
}

.hero-slider-bg .slide:nth-child(4) {
  background-image: url('../images/clinic images/IMG_20260524_124152.jpg');
  animation-delay: 15s;
}

@keyframes heroSlideFade {
  0% {
    opacity: 0;
    transform: scale(1);
  }

  7.5% {
    opacity: 1;
  }

  25% {
    opacity: 1;
  }

  32.5% {
    opacity: 0;
  }

  100% {
    opacity: 0;
    transform: scale(1.1);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.35);
  /* Subtle dark overlay for text readability without purple tint */
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-title {
  color: white;
  margin-bottom: 20px;
}

.hero-title span {
  background: linear-gradient(90deg, #F0ABFC, #E9D5FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 50px;
}

.hero-stats {
  display: inline-flex;
  gap: 24px;
  flex-wrap: nowrap;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  display: block;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.hero-image-col {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-shape-divider-bottom {
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 3;
}

.custom-shape-divider-bottom svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 70px;
}

.custom-shape-divider-bottom .shape-fill {
  fill: var(--medical-green-bg);
}

.hero-card-float {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 30px;
  color: white;
  text-align: center;
  max-width: 280px;
  animation: floatAnim 4s ease-in-out infinite;
}

@keyframes floatAnim {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.hero-card-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.hero-card-text {
  font-size: 0.82rem;
  opacity: 0.85;
}

/* ---- ABOUT SNIPPET ---- */
.about-icon-box {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  margin-bottom: 16px;
  transition: var(--transition);
}

.about-icon-box:hover {
  transform: scale(1.08);
}

/* ---- SERVICE CARDS ---- */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-lighter));
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
  border-color: var(--primary-lighter);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 0.88rem;
  color: var(--text-body);
  border-bottom: 1px dashed var(--border);
}

.service-list li:last-child {
  border-bottom: none;
}



/* ---- DOCTOR CARDS (HORIZONTAL) ---- */
.doctor-card-horizontal {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.doctor-card-horizontal:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.doctor-img-wrap-h {
  position: relative;
  height: 100%;
  min-height: 420px;
  background: var(--primary-bg);
}

.doctor-img-wrap-h img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.doctor-specialty-tag {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  z-index: 2;
}

.doctor-body-h {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.doctor-desc-h {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

@media (max-width: 767.98px) {
  .doctor-img-wrap-h {
    height: 320px;
  }

  .doctor-body-h {
    padding: 24px;
  }
}

.doctor-body {
  padding: 26px;
}

.doctor-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.doctor-qual {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.doctor-exp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-bg);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.membership-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.membership-tag {
  background: rgba(107, 33, 168, 0.08);
  color: var(--primary);
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ---- WHY CHOOSE US ---- */
.why-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.why-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.why-text h5 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.why-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---- TRUST SECTION ---- */
.trust-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
}

.trust-section h2 {
  color: white;
}

.trust-section p {
  color: rgba(255, 255, 255, 0.85);
}

/* ---- CONTACT STRIP ---- */
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-card:hover {
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.08);
  transform: translateY(-6px);
  border-color: rgba(124, 58, 237, 0.15);
}

.contact-info-card:hover .contact-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, var(--accent), var(--primary));
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  margin-bottom: 18px;
  transition: all 0.3s ease;
}

.contact-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  margin-top: 15px;
  transition: all 0.2s ease;
}

.contact-card-btn:hover {
  color: var(--accent);
  text-decoration: underline;
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border: 6px solid var(--white);
  height: 100%;
  min-height: 450px;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.map-wrap:hover {
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-lighter);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---- QUICK FLOAT BUTTONS ---- */
.float-buttons {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  text-decoration: none;
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-wa {
  background: var(--whatsapp);
  color: white;
  animation: pulse-wa 2s infinite;
}

.float-call {
  background: var(--primary);
  color: white;
  animation: pulse-call 2s infinite;
}

@keyframes pulse-wa {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes pulse-call {
  0% {
    box-shadow: 0 0 0 0 rgba(107, 33, 168, 0.6);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(107, 33, 168, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(107, 33, 168, 0);
  }
}

/* ---- MAP ---- */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 380px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---- FOOTER ---- */
.footer {
  background: linear-gradient(135deg, #120F2D 0%, #1D1845 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 80px 0 0;
}

.footer-brand {
  margin-bottom: 20px;
}

.footer-brand .brand-name {
  color: white;
  font-size: 1.1rem;
}

.footer-brand .brand-sub {
  color: rgba(255, 255, 255, 0.6);
}

.footer-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer h5 {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--primary-lighter);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a i {
  opacity: 0.5;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  padding-left: 6px;
}

.footer-links a:hover i {
  opacity: 1;
  color: var(--primary-lighter);
}

.lang-switcher a {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}

.lang-switcher a:hover,
.lang-switcher a.active {
  color: #fff;
}

.lang-switcher a.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--primary-lighter);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px 0;
  margin-top: 60px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ---- PAGE HERO ---- */
.page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 140px 0 120px;
  color: white;
  z-index: 1;
}

@media (min-width: 992px) {
  .page-hero {
    background-position: center top;
  }
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: -1;
}

.page-hero h1 {
  color: white;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  margin: 0;
}

.breadcrumb-custom {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.breadcrumb-custom a {
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb-custom span {
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-custom .active {
  color: white;
}

/* ---- DOCTOR PAGE PROFILE ---- */
.dr-profile-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dr-profile-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: top;
}

.dr-profile-body {
  padding: 36px;
}

.expertise-tag {
  display: inline-block;
  background: rgba(107, 33, 168, 0.08);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 4px;
}

/* ---- GALLERY ---- */
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item::after {
  content: '🔍';
  position: absolute;
  inset: 0;
  background: rgba(107, 33, 168, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.07);
}

/* ---- FORM ---- */
.form-control-custom {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 16px;
  /* 16px prevents iOS zoom */
  transition: var(--transition);
  width: 100%;
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text-dark);
}

.form-control-custom:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(107, 33, 168, 0.12);
}

.form-label-custom {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  display: block;
}

.form-group-custom {
  margin-bottom: 20px;
}

/* ---- LAB SECTION ---- */
.lab-card {
  background: var(--medical-green-bg);
  color: var(--text-dark);
  border: 1px solid var(--medical-green);
  border-radius: var(--radius-lg);
  padding: 32px;
  height: 100%;
  text-align: center;
  transition: var(--transition);
}

.lab-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.15);
}

.lab-card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--medical-green);
}

.lab-card h4 {
  color: var(--text-dark);
  font-size: 1rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.lab-card p {
  color: var(--text-body);
  font-size: 0.85rem;
  margin: 0;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-up {
  animation: fadeInUp 0.7s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 991.98px) {
  .hero-section {
    text-align: center;
    padding-top: 40px;
  }

  .hero-content {
    margin-bottom: 40px;
  }

  .hero-badge {
    margin: 0 auto 24px;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-divider.left {
    margin-left: auto;
    margin-right: auto;
  }

  .page-hero {
    padding: 60px 0;
    text-align: center;
  }

  .breadcrumb-custom {
    justify-content: center;
  }

  .section-pad {
    padding: 60px 0;
  }

  .hero-section {
    min-height: auto;
    padding: 80px 0 120px;
  }

  .hero-stats {
    gap: 24px;
  }

  .doctor-img-wrap {
    height: 260px;
  }

  .navbar-collapse {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 15px;
    box-shadow: var(--shadow-hover);
  }

  .navbar-nav {
    gap: 10px;
  }

  .nav-cta {
    text-align: center;
    margin-top: 10px;
  }
}

@media (max-width: 767.98px) {
  .top-bar {
    font-size: 0.72rem;
  }
  .brand-name {
    font-size: 1.05rem;
  }
  .brand-sub {
    font-size: 0.5rem;
    letter-spacing: 0.5px;
  }

  .top-bar .d-flex.justify-content-between {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .top-bar .lang-switcher {
    margin-top: 5px;
    display: inline-block;
  }

  .section-pad {
    padding: 60px 0;
  }

  .hero-slider-bg .slide {
    animation-name: heroSlideFadeMobile;
  }

  .hero-slider-bg .slide:nth-child(1) {
    background-position: 64% center;
  }

  .hero-slider-bg .slide:nth-child(2) {
    background-position: 53% center;
  }

  .hero-slider-bg .slide:nth-child(3) {
    background-position: 30% center;
  }

  .hero-slider-bg .slide:nth-child(4) {
    background-position: 53% center;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .doctor-card {
    max-width: 400px;
    margin: 0 auto;
  }

  .section-pad {
    padding: 50px 0;
  }

  .hero-btns {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-stats {
    gap: 20px;
    flex-wrap: wrap;
  }

  .hero-stat-num {
    font-size: 1.5rem;
  }

  .float-buttons {
    bottom: 16px;
    right: 16px;
  }

  .float-btn {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .map-wrap {
    height: 280px;
  }

  .dr-profile-img {
    height: 280px;
  }
}

@media (max-width: 767.98px) {
  .footer-bottom .d-flex {
    justify-content: center !important;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    margin-right: 0;
  }

  .navbar-brand-custom {
    gap: 8px;
  }

  .navbar-brand-custom img {
    width: 36px !important;
    height: 36px !important;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .brand-sub {
    font-size: 0.6rem;
  }

  .lang-toggle-btn {
    padding: 3px 8px;
    font-size: 0.7rem;
  }


  .hero-title {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-btns .btn-primary-custom,
  .hero-btns .btn-call,
  .hero-btns .btn-whatsapp {
    width: 100%;
    justify-content: center;
  }

  .float-btn {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    right: 12px !important;
  }

  .float-wa {
    bottom: 80px !important;
  }

  .float-call {
    bottom: 20px !important;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-pad {
    padding: 40px 0;
  }

  .breadcrumb-custom {
    font-size: 0.75rem;
  }

  .contact-info-card {
    padding: 20px 15px;
  }

  .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px 12px !important;
    width: 100% !important;
  }
}

/* ---- DOCTOR PROFILE ---- */
.dr-profile-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  position: sticky;
  top: 100px;
}

.dr-profile-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.doctor-exp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-bg);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.82rem;
}

@media (max-width: 991.98px) {
  .dr-profile-card {
    position: static;
    margin-bottom: 30px;
  }
}

/* ---- GALLERY ---- */
.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 250px;
  background: var(--primary-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

@keyframes heroSlideFadeMobile {
  0% {
    opacity: 0;
    transform: translateZ(0);
  }

  7.5% {
    opacity: 1;
  }

  25% {
    opacity: 1;
  }

  32.5% {
    opacity: 0;
  }

  100% {
    opacity: 0;
    transform: translateZ(0);
  }
}

/* Navbar Mobile Fix */
@media (max-width: 450px) {
  .navbar .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .navbar-brand-custom {
    gap: 4px;
    margin-right: 0 !important;
  }
  .navbar-brand-custom img {
    width: 36px !important;
    height: 36px !important;
  }
  .brand-name {
    font-size: 0.8rem;
    white-space: nowrap;
    line-height: 1.1;
  }
  .brand-sub {
    font-size: 0.5rem;
    letter-spacing: 0.5px;
  }
  .lang-toggle-btn {
    padding: 2px 6px;
    font-size: 0.65rem;
  }
  .navbar .d-flex.d-md-none {
    gap: 2px !important;
  }
  .navbar-toggler {
    padding: 0.2rem 0.35rem;
  }
}