/* ═══════════════════════════════════════════════════════════
   Perfect Medical Marketing — Doctor Styles (Profile + Directory)
   ═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────
   1. DOCTOR PROFILE PAGE (dr-ahmed.html)
   ───────────────────────────────────────────────────────── */

/* Doctor Hero */
.dr-hero {
  padding: 60px 0;
  background: linear-gradient(180deg, var(--bg-alt) 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
}

.dr-hero-inner {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 50px;
  align-items: center;
}

.dr-photo-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 8px solid #fff;
  background: #eaf2f8;
  aspect-ratio: 4/5;
}

.dr-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dr-badge {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--navy);
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.dr-info h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--navy-dark);
  margin-bottom: 8px;
}

.dr-specialty {
  display: inline-block;
  font-size: 1.1rem;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 20px;
}

.dr-bio-short {
  font-size: 1.05rem;
  color: var(--text-soft);
  margin-bottom: 28px;
  line-height: 1.8;
}

.dr-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.dr-stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--navy);
  font-weight: 900;
}

.dr-stat span {
  font-size: .85rem;
  color: var(--text-soft);
}

.dr-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Doctor Sections */
.dr-section {
  padding: 80px 0;
}

.dr-section-alt {
  background: var(--bg-alt);
}

.dr-sec-title {
  font-size: 1.8rem;
  color: var(--navy-dark);
  margin-bottom: 32px;
  position: relative;
  padding-bottom: 12px;
}

.dr-sec-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--teal));
  border-radius: 2px;
}

/* Services Grid */
.dr-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.dr-service-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all var(--transition);
}

.dr-service-item:hover {
  box-shadow: var(--shadow);
  border-color: var(--teal);
  transform: translateY(-2px);
}

.dr-service-icon {
  width: 40px;
  height: 40px;
  background: rgba(0,151,167,.1);
  color: var(--teal);
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.dr-service-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.dr-service-item h4 {
  color: var(--navy-dark);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.dr-service-item p {
  font-size: .85rem;
  color: var(--text-soft);
  margin: 0;
}

/* Clinic Info & Booking Form */
.dr-contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.dr-info-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.dr-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.dr-info-item:last-child {
  margin-bottom: 0;
}

.dr-info-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-alt);
  color: var(--navy);
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.dr-info-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.dr-info-text strong {
  display: block;
  font-size: .95rem;
  color: var(--navy-dark);
  margin-bottom: 2px;
}

.dr-info-text span {
  font-size: .9rem;
  color: var(--text-soft);
  line-height: 1.5;
  display: block;
}

/* ─────────────────────────────────────────────────────────
   2. DOCTORS DIRECTORY PAGE (doctors.html)
   ───────────────────────────────────────────────────────── */

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.dr-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.dr-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}

.dr-card-img {
  height: 300px;
  background: #eaf2f8;
  position: relative;
  overflow: hidden;
}

.dr-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.dr-card:hover .dr-card-img img {
  transform: scale(1.05);
}

.dr-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--navy);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.dr-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dr-card-name {
  font-size: 1.3rem;
  color: var(--navy-dark);
  font-weight: 800;
  margin-bottom: 4px;
}

.dr-card-spec {
  font-size: .95rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 12px;
}

.dr-card-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  color: var(--text-soft);
  margin-bottom: 20px;
}

.dr-card-loc svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.dr-card-btn {
  margin-top: auto;
  width: 100%;
  padding: 10px;
  text-align: center;
  background: var(--bg-alt);
  color: var(--navy);
  border-radius: 8px;
  font-weight: 700;
  font-size: .9rem;
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.dr-card:hover .dr-card-btn {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ─────────────────────────────────────────────────────────
   3. RESPONSIVE (Tablet & Mobile)
   ───────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  /* Profile Page */
  .dr-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  
  .dr-photo-wrap {
    max-width: 300px;
    margin: 0 auto;
  }
  
  .dr-stats {
    justify-content: center;
  }
  
  .dr-cta-group {
    justify-content: center;
  }
  
  .dr-sec-title::after {
    right: 50%;
    transform: translateX(50%);
  }
  
  .dr-sec-title {
    text-align: center;
  }
  
  .dr-contact-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Directory Page */
  .doctors-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .dr-card-img {
    height: 250px;
  }
}

@media (max-width: 480px) {
  /* Profile Page */
  .dr-stats {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  
  /* Directory Page */
  .doctors-grid {
    grid-template-columns: 1fr;
  }
  
  .dr-card-img {
    height: 280px;
  }
}