/* ==========================================================================
   SHE MATTERS — Dedicated Doctors & Specialists Page Stylesheet
   Theme: Luxury Multi-Color, Hot Fuchsia (#E60067), Deep Plum (#1B0A2A)
   Design System: 18px Border Radius, Low-Opacity Gradient Auto-Slide Hero,
   Horizontal Doctor Cards (Left Image, Right Details, Bottom Book Button)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. AUTO-SLIDING HERO BANNER (LOW-OPACITY GRADIENT OVERLAY)
   -------------------------------------------------------------------------- */
.doctors-hero-section {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  padding: 70px 0 65px;
  overflow: hidden;
  background-color: #1B0A2A;
}

.doctors-hero-slides {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.doctors-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s ease-in-out, transform 6s ease-out;
}

.doctors-hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Reduced Opacity Gradient Overlay so Natural Slides are clearly visible */
.doctors-hero-gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(27, 10, 42, 0.50) 0%, rgba(27, 10, 42, 0.25) 50%, rgba(27, 10, 42, 0.10) 100%);
  pointer-events: none;
}

.doctors-hero-content-left {
  position: relative;
  z-index: 3;
  text-align: left;
  max-width: 720px;
  margin: 0;
}

.doctors-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 1.15rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.doctors-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.6rem, 4.8vw, 4rem);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.95rem;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

.doctors-hero-title .doctors-title-highlight {
  color: #FFFFFF !important;
  display: inline-block;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

.doctors-hero-subtitle {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1.05rem, 1.25vw, 1.22rem);
  line-height: 1.65;
  margin: 0 0 1.5rem 0;
  max-width: 650px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.doctors-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
}

.doctors-breadcrumb a {
  color: #FFFFFF;
  text-decoration: none;
  transition: var(--transition-fast);
}

.doctors-breadcrumb a:hover {
  color: #FF4D8D;
}

.doctors-breadcrumb span {
  color: var(--primary-color);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   2. MAIN DOCTOR SECTION & QUICK FILTER CONTROLS
   -------------------------------------------------------------------------- */
.doctors-main-section {
  padding: 65px 0 85px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FCF8FA 40%, #FAF5FF 100%);
  position: relative;
}

/* Ensure doctor cards and department groups are immediately visible without waiting for scroll */
.doctors-main-section [data-aos],
.department-group-block,
.doctor-h-card {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  border: 1px solid rgba(230, 0, 103, 0.18);
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-subtitle-small {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.55;
  font-weight: 400;
}

/* Interactive Department Filter Pills */
.dept-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 35px 0 50px;
}

.dept-filter-btn {
  background: #FFFFFF;
  color: var(--text-dark);
  border: 1.5px solid rgba(27, 10, 42, 0.12);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(27, 10, 42, 0.04);
}

.dept-filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(230, 0, 103, 0.15);
}

.dept-filter-btn.active {
  background: var(--primary-color);
  color: #FFFFFF;
  border-color: var(--primary-color);
  box-shadow: 0 8px 24px rgba(230, 0, 103, 0.35);
}

.dept-filter-btn .filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.74rem;
  background: rgba(27, 10, 42, 0.08);
  color: inherit;
  transition: var(--transition-fast);
}

.dept-filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Department Section Groups */
.department-group-block {
  margin-bottom: 60px;
}

.dept-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid rgba(27, 10, 42, 0.08);
}

.dept-group-title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Polished Round Department Logo with Luxury Multi-Ring & Glossy Finish */
.dept-group-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%; /* Strictly round */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #FFFFFF;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border: 3px solid #FFFFFF;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

/* Luxury Glossy Reflection Overlay */
.dept-group-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  pointer-events: none;
}

.dept-group-icon i {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.22));
}

.dept-group-header:hover .dept-group-icon {
  transform: scale(1.08) rotate(4deg);
}

.icon-fertility {
  background: linear-gradient(135deg, #E60067 0%, #FF4D8D 60%, #FFA0C2 100%);
  box-shadow: 0 0 0 2px rgba(230, 0, 103, 0.22), 0 8px 22px rgba(230, 0, 103, 0.32);
}
.dept-group-header:hover .icon-fertility {
  box-shadow: 0 0 0 3.5px rgba(230, 0, 103, 0.38), 0 12px 28px rgba(230, 0, 103, 0.45);
}

.icon-dermatology {
  background: linear-gradient(135deg, #FF4D8D 0%, #F59E0B 75%, #FDE68A 100%);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25), 0 8px 22px rgba(245, 158, 11, 0.32);
}
.dept-group-header:hover .icon-dermatology {
  box-shadow: 0 0 0 3.5px rgba(245, 158, 11, 0.42), 0 12px 28px rgba(245, 158, 11, 0.45);
}

.icon-gynecology {
  background: linear-gradient(135deg, #7928CA 0%, #06B6D4 75%, #A5F3FC 100%);
  box-shadow: 0 0 0 2px rgba(121, 40, 202, 0.25), 0 8px 22px rgba(121, 40, 202, 0.32);
}
.dept-group-header:hover .icon-gynecology {
  box-shadow: 0 0 0 3.5px rgba(121, 40, 202, 0.42), 0 12px 28px rgba(121, 40, 202, 0.45);
}

.dept-group-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
  letter-spacing: -0.015em;
}

.dept-group-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(230, 0, 103, 0.08);
  color: var(--primary-color);
  border: 1px solid rgba(230, 0, 103, 0.15);
}

/* --------------------------------------------------------------------------
   3. DOCTOR CARD DESIGN: STRICT 18px BORDER-RADIUS
      LAYOUT: LEFT IMAGE, RIGHT DETAILS, BOTTOM BOOK BUTTON
      GRID: 3 CARDS IN A ROW
   -------------------------------------------------------------------------- */
.doctor-h-card {
  background: #FFFFFF;
  border-radius: 18px; /* Strict 18px per requirement */
  overflow: hidden;
  border: 1.5px solid rgba(230, 0, 103, 0.22);
  box-shadow: 0 4px 16px rgba(27, 10, 42, 0.04);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.38s ease,
              background 0.38s ease;
  height: 100%;
  display: flex;
  flex-direction: row; /* Horizontal split: left image, right details */
  position: relative;
}

/* Card Hover: Slight Up, Border Appears, Gradient Border Shadow */
.doctor-h-card:hover {
  transform: translateY(-6px);
  border-color: rgba(230, 0, 103, 0.48);
  box-shadow: -4px 14px 28px -2px rgba(230, 0, 103, 0.28),
               4px 16px 32px -2px rgba(121, 40, 202, 0.22),
               0 2px 10px 0 rgba(230, 0, 103, 0.12);
}

/* Left: Doctor Image Container (Comfortable, stable proportional width - no resize/grow) */
.doctor-h-visual {
  flex: 0 0 40%;
  width: 40%;
  position: relative;
  overflow: hidden;
  background: #FDF2F8;
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
}

.doctor-h-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%; /* Perfect eye-level face alignment */
  display: block;
}

.doctor-h-overlay-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--primary-color);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(230, 0, 103, 0.2);
  z-index: 2;
  white-space: nowrap;
}

.doctor-h-exp-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(27, 10, 42, 0.88);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Right: Doctor Information & Booking Button (Stable layout - no resize/padding jump) */
.doctor-h-details {
  flex: 1 1 60%;
  width: 60%;
  padding: 34px 22px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #FFFFFF;
}

.doctor-h-top {
  margin-bottom: 12px;
}

.doctor-h-dept-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.doctor-h-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.22;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.doctor-h-designation {
  font-size: 0.78rem;
  font-weight: 600;
  color: #7928CA;
  line-height: 1.35;
  margin-bottom: 4px;
}

.doctor-h-degrees {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 6px;
}

.doctor-h-bio {
  font-size: 0.76rem;
  color: #554861;
  line-height: 1.45;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Clinical Focus Micro-Tags */
.doctor-h-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.doctor-h-tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  background: #FCF5F8;
  color: #9C1F5C;
  border-radius: 4px;
  border: 1px solid rgba(230, 0, 103, 0.12);
  white-space: nowrap;
}

/* Doctor Card Bottom: Clinic location & CTA */
.doctor-h-bottom {
  margin-top: auto;
}

.doctor-h-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-top: 6px;
  border-top: 1px dashed rgba(27, 10, 42, 0.08);
}

.doctor-h-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.doctor-h-meta .rating-star {
  color: #F59E0B;
}

/* Book Appointment Button inside Card */
.btn-book-doctor-h {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, #FF4D8D 100%);
  color: #FFFFFF !important;
  border: none;
  border-radius: var(--radius-pill);
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(230, 0, 103, 0.28);
  transition: var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}

.btn-book-doctor-h:hover {
  background: linear-gradient(135deg, #C2185B 0%, var(--primary-color) 100%);
  box-shadow: 0 6px 20px rgba(230, 0, 103, 0.45);
  transform: translateY(-2px);
}

.btn-book-doctor-h i {
  transition: transform 0.25s ease;
  font-size: 0.78rem;
}

.btn-book-doctor-h:hover i {
  transform: translateX(3px);
}

/* Social Media Actions & CTA Row inside Doctor Card */
.doctor-h-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.doctor-h-social-links {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.doctor-h-social-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF !important;
  font-size: 0.82rem;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  flex-shrink: 0;
}

.doctor-h-social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.doctor-h-social-fb {
  background: #1877F2;
}

.doctor-h-social-ig {
  background: #00A3E0;
}

.doctor-h-social-yt {
  background: #FF0000;
}

@media (max-width: 500px) {
  .doctor-h-actions-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .doctor-h-social-links {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   4. CONCIERGE ASSISTANCE STRIP (PRE-FOOTER CALL TO ACTION)
   -------------------------------------------------------------------------- */
.doctors-concierge-strip {
  padding: 55px 0;
  background: linear-gradient(135deg, #1B0A2A 0%, #2D1445 100%);
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
}

.doctors-concierge-box {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px; /* Strict 18px radius */
  padding: 38px 40px;
}

.concierge-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.concierge-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.96rem;
  line-height: 1.6;
  margin: 0;
}

/* --------------------------------------------------------------------------
   5. RESPONSIVE DESIGN (3 CARDS PER ROW DESKTOP, ADAPTIVE TABLET/MOBILE)
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
  /* 3 Cards strictly per row on all desktop and laptop screens */
  .col-doc-card {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    width: 33.333333%;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  /* 2 Cards per row on tablet devices */
  .col-doc-card {
    flex: 0 0 50%;
    max-width: 50%;
    width: 50%;
  }
  
  .doctor-h-visual {
    flex: 0 0 42%;
    width: 42%;
  }

  .doctor-h-details {
    flex: 0 0 58%;
    width: 58%;
  }
}

@media (max-width: 767.98px) {
  .col-doc-card {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  .doctor-h-card {
    flex-direction: column; /* Gracefully stacked on small mobile */
  }

  .doctor-h-visual {
    flex: 0 0 260px;
    width: 100%;
    height: 260px;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    border-bottom-left-radius: 0;
  }

  .doctor-h-details {
    flex: 1 1 100%;
    width: 100%;
    padding: 28px 20px;
  }

  .dept-filter-bar {
    gap: 8px;
  }

  .dept-filter-btn {
    padding: 8px 16px;
    font-size: 0.84rem;
  }

  .doctors-concierge-box {
    padding: 28px 20px;
    text-align: center;
  }

  .doctors-concierge-box .d-flex {
    flex-direction: column;
    gap: 16px;
  }
}

/* Modal Title Text Color */
.modal-header .modal-title,
.modal-header h5 {
  color: #FFFFFF !important;
}
