/* ==========================================================
   11. DOCTORS & TEAM PAGE STYLES (Advanced & Animated)
   ========================================================== */

/* --- Page Header with Floating Orbs --- */
.page-header {
  background: linear-gradient(135deg, var(--clr-primary-900) 0%, var(--clr-primary-500) 100%);
  padding: calc(var(--sp-16) + 20px) 0 var(--sp-12) 0;
  color: white; text-align: center; position: relative; overflow: hidden;
  border-radius: 0 0 var(--rad-lg) var(--rad-lg); margin-bottom: var(--sp-12);
}
.ph-blob { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.05); animation: float 8s ease-in-out infinite; z-index: 1; }
.ph-blob-1 { width: 400px; height: 400px; top: -100px; right: -50px; }
.ph-blob-2 { width: 250px; height: 250px; bottom: -50px; left: 5%; animation-delay: -3s; }
.page-header .container { position: relative; z-index: 2; }
.page-title { font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 900; margin-bottom: 15px; letter-spacing: -1px; }
.page-subtitle { font-size: 1.15rem; opacity: 0.9; max-width: 650px; margin: 0 auto; font-weight: 300; line-height: 1.8; }

/* --- Featured Doctor (مدیر کلینیک) --- */
.featured-doctor {
  background: var(--clr-surface); border-radius: var(--rad-lg);
  box-shadow: var(--shadow-md); border: 1px solid var(--clr-border);
  display: flex; flex-direction: column; overflow: hidden; margin-bottom: var(--sp-12);
}
@media (min-width: 992px) { .featured-doctor { flex-direction: row; align-items: center; } }
.fd-image { width: 100%; height: 400px; object-fit: cover; }
@media (min-width: 992px) { .fd-image-wrap { flex: 0 0 45%; height: 100%; } .fd-image { height: 100%; min-height: 500px; } }
.fd-content { padding: var(--sp-8); flex: 1; }
.fd-badge { display: inline-block; padding: 6px 14px; background: var(--clr-primary-100); color: var(--clr-primary-700); border-radius: var(--rad-pill); font-size: 0.85rem; font-weight: 700; margin-bottom: 15px; }
.fd-name { font-size: 2.2rem; color: var(--clr-primary-900); margin-bottom: 10px; }
.fd-quote { font-size: 1.2rem; color: var(--clr-primary-500); font-style: italic; font-weight: 700; margin-bottom: 20px; border-right: 4px solid var(--clr-primary-300); padding-right: 15px; }
.fd-desc { color: var(--clr-text-muted); line-height: 1.8; margin-bottom: 25px; }

/* --- Advanced Doctor Cards (3D Hover & Stats) --- */
.doctor-card {
  background: var(--clr-surface); border-radius: var(--rad-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--clr-border);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column;
}
.doctor-card:hover { transform: translateY(-12px); box-shadow: 0 20px 40px rgba(2, 132, 199, 0.15); border-color: var(--clr-primary-300); }
.doc-img-wrap { position: relative; height: 350px; overflow: hidden; background: var(--clr-primary-100); }
.doc-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.doctor-card:hover .doc-img { transform: scale(1.08); }
.doc-img-wrap::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 50%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, transparent 100%); z-index: 1;
}

.doc-specialty-badge {
  position: absolute; bottom: 20px; right: 20px;
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(4px);
  color: var(--clr-primary-900); padding: 8px 16px; border-radius: var(--rad-pill);
  font-size: 0.85rem; font-weight: 700; z-index: 2; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.doc-info { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.doc-name { font-size: 1.5rem; color: var(--clr-primary-900); margin-bottom: 5px; }
.doc-reg-number { font-size: 0.85rem; color: var(--clr-text-muted); margin-bottom: 15px; font-weight: 700; }
.doc-desc { font-size: 0.95rem; color: var(--clr-text-muted); line-height: 1.6; margin-bottom: 20px; flex-grow: 1; }

/* آمار و روزهای حضور */
.doc-stats { display: flex; gap: 15px; border-top: 1px dashed var(--clr-border); padding-top: 15px; margin-bottom: 20px; }
.stat-item { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.stat-item span:first-child { font-size: 0.8rem; color: var(--clr-text-muted); }
.stat-item span:last-child { font-size: 0.9rem; font-weight: 700; color: var(--clr-primary-700); display: flex; align-items: center; gap: 5px; }
.stat-item svg { width: 16px; height: 16px; }

.doc-actions { display: flex; gap: 10px; }
.doc-actions .btn { padding: 12px; font-size: 0.9rem; flex: 1; }

/* --- Certificates Section --- */
.certificates-section {
  background: url('https://wsrv.nl/?url=images.unsplash.com/photo-1629909613654-28e377c37b09&w=1200&h=400&fit=cover') center/cover fixed;
  position: relative; padding: var(--sp-12) 0; margin-top: var(--sp-16); border-radius: var(--rad-lg); color: white; text-align: center; overflow: hidden;
}
.certificates-section::before { content: ''; position: absolute; inset: 0; background: rgba(12, 74, 110, 0.9); backdrop-filter: blur(5px); }
.certificates-section .container { position: relative; z-index: 2; }
.cert-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 45px; margin-top: var(--sp-8); }
.cert-item { display: flex; flex-direction: column; align-items: center; gap: 12px; opacity: 0.8; transition: var(--trans-normal); }
.cert-item:hover { opacity: 1; transform: translateY(-8px) scale(1.05); }
.cert-icon { width: 70px; height: 70px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.2); }
.cert-icon svg { width: 35px; height: 35px; color: white; }
.cert-item p { font-size: 0.9rem; font-weight: 700; color: white; margin: 0; line-height: 1.4; }