/* Page-specific styles: unser-team.html */

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
    .team-member { text-align: center; }
    .team-img { width: 100%; height: 350px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 20px; }

/* --- Doctor Clickable & CV Hint Styles --- */
.team-name-new.doctor-clickable {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 6px 0;
  text-align: inherit;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark, #0a192f);
  transition: color 0.2s ease;
}
.team-name-new.doctor-clickable:hover {
  color: var(--primary, #1cc2b2) !important;
}
.team-name-new.doctor-clickable .doc-name-text {
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: rgba(28, 194, 178, 0.5);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
}
.team-name-new.doctor-clickable:hover .doc-name-text {
  text-decoration-color: var(--primary, #1cc2b2);
}
.bio-click-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary, #1cc2b2);
  background: rgba(28, 194, 178, 0.1);
  border: 1px solid rgba(28, 194, 178, 0.28);
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: 0.3px;
  vertical-align: middle;
  line-height: 1.3;
  transition: all 0.2s ease;
}
.team-name-new.doctor-clickable:hover .bio-click-hint {
  background: var(--primary, #1cc2b2);
  color: #ffffff;
  border-color: var(--primary, #1cc2b2);
  transform: translateY(-1px);
}

/* --- Doctor Bio Modal --- */
.doctor-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
}
.doctor-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.doctor-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.doctor-modal-window {
  position: relative;
  width: 100%;
  max-width: 660px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.doctor-modal-backdrop.active .doctor-modal-window {
  transform: translateY(0) scale(1);
}
.doctor-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 12;
}
[dir="rtl"] .doctor-modal-close {
  right: auto;
  left: 16px;
}
.doctor-modal-close:hover {
  background: rgba(229, 62, 62, 0.12);
  color: #e53e3e;
  transform: rotate(90deg);
}
.doctor-modal-header {
  padding: 28px 28px 20px;
  background: linear-gradient(135deg, rgba(28, 194, 178, 0.08) 0%, rgba(10, 25, 47, 0.03) 100%);
  border-bottom: 1px solid rgba(28, 194, 178, 0.15);
  display: flex;
  align-items: center;
  gap: 20px;
}
.doctor-modal-avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 12%;
  border: 3px solid #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}
.doctor-modal-header-info {
  flex: 1;
}
.doctor-modal-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0a192f;
  margin: 0 0 6px;
  line-height: 1.25;
}
.doctor-modal-role {
  display: inline-block;
  background: #1cc2b2;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}
.doctor-modal-degree {
  font-size: 0.86rem;
  color: #64748b;
  font-weight: 500;
}
.doctor-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.doc-bio-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.doc-bio-block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.96rem;
  font-weight: 700;
  color: #0a192f;
}
.doc-bio-block-title svg {
  color: #1cc2b2;
}
.doc-bio-block-content {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #475569;
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: 10px;
  border-left: 3px solid #1cc2b2;
}
[dir="rtl"] .doc-bio-block-content {
  border-left: none;
  border-right: 3px solid #1cc2b2;
}
.doc-bio-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.doc-bio-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #475569;
}
[dir="rtl"] .doc-bio-list li {
  padding-left: 0;
  padding-right: 20px;
}
.doc-bio-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1cc2b2;
}
[dir="rtl"] .doc-bio-list li::before {
  left: auto;
  right: 0;
}
.doc-bio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.doc-bio-tag {
  background: rgba(28, 194, 178, 0.08);
  color: #0a6962;
  border: 1px solid rgba(28, 194, 178, 0.25);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
}
.doctor-modal-footer {
  padding: 16px 28px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
}
@media (max-width: 640px) {
  .doctor-modal-window {
    max-height: 94vh;
    border-radius: 16px;
  }
  .doctor-modal-header {
    padding: 20px 18px 16px;
    gap: 14px;
  }
  .doctor-modal-avatar {
    width: 68px;
    height: 68px;
  }
  .doctor-modal-name {
    font-size: 1.15rem;
  }
  .doctor-modal-body {
    padding: 18px;
    gap: 16px;
  }
  .doctor-modal-footer {
    padding: 12px 18px;
  }
}


/* --- Interactive Doctor Cards (Click anywhere on card or showcase) --- */
.team-card-new.doctor-card-interactive {
  cursor: pointer;
  position: relative;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.team-card-new.doctor-card-interactive:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(10, 25, 47, 0.12);
}
.team-card-new.doctor-card-interactive:active {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(10, 25, 47, 0.1);
}
.team-card-new.doctor-card-interactive:hover .bio-click-hint {
  background: var(--primary, #1cc2b2);
  color: #ffffff;
  border-color: var(--primary, #1cc2b2);
  transform: translateY(-1px);
}
.team-card-new.doctor-card-interactive:hover .doc-name-text {
  color: var(--primary, #1cc2b2);
  text-decoration-color: var(--primary, #1cc2b2);
}

.doctor-showcase.doctor-card-interactive {
  cursor: pointer;
  position: relative;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.doctor-showcase.doctor-card-interactive:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(28, 194, 178, 0.15);
}
.doctor-showcase.doctor-card-interactive:hover .bio-click-hint {
  background: var(--primary, #1cc2b2);
  color: #ffffff;
  border-color: var(--primary, #1cc2b2);
  transform: translateY(-1px);
}
.doctor-showcase.doctor-card-interactive:hover .team-name-new .doc-name-text {
  color: var(--primary, #1cc2b2);
}


/* --- RTL (Arabic) Support for Team Page & Doctor Bio --- */
[dir="rtl"] .doctor-showcase-info {
  text-align: right;
}
[dir="rtl"] .doctor-bio-list {
  padding-left: 0;
  padding-right: 0;
}
[dir="rtl"] .doctor-bio-list li {
  padding-left: 0;
  padding-right: 28px;
  text-align: right;
}
[dir="rtl"] .doctor-bio-list li::before {
  left: auto;
  right: 0;
}
[dir="rtl"] .team-info-new {
  text-align: right;
}
[dir="rtl"] .team-name-new {
  justify-content: flex-start;
}
[dir="rtl"] .bio-click-hint {
  direction: rtl;
}
[dir="rtl"] .bio-click-hint svg {
  transform: scaleX(-1);
}
[dir="rtl"] .doctor-modal-header {
  text-align: right;
}
[dir="rtl"] .doctor-modal-footer {
  justify-content: flex-start;
}
