/* === GRID & LAYOUT === */
.team-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--team-gap, 20px);
  padding: 1em;
  width: 100%;
  box-sizing: border-box;

  /* ortalama */
  justify-content: center;   /* kolonları ortala */
  justify-items: center;     /* kartı kolon içinde ortala */

  max-width: 1200px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 1200px) {
  .team-members-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}
@media (max-width: 768px) {
  .team-members-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}
@media (max-width: 480px) {
  .team-members-grid {
    grid-template-columns: 1fr;
  }
}

/* === CARD === */
.team-member {
  text-align: center;
  padding: 1.5em;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  width: auto;               /* 100% yerine — tek kişi ortalansın */
  max-width: 320px;
  box-sizing: border-box;

  /* estetik */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.team-member:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Avatar */
.team-member-image,
.default-avatar img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 1em;
  display: block;
  object-fit: cover;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-member:hover .team-member-image,
.team-member:hover .default-avatar img {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.default-avatar {
  background-color: #f8f9fa;
  border-radius: 50%;
  overflow: hidden;
}

/* Metinler */
.team-member h3 {
  margin: 0.5em 0;
  color: #333;
  font-size: 1.2em;
  line-height: 1.4;
}
.team-member .department {
  color: #666;
  margin: 0.35em 0 0.5em;
  font-style: italic;
  line-height: 1.3;
}

/* Role (pozisyon) */
.role {
  font-weight: 600;
  letter-spacing: .02em;
  color: #333;
  margin: .25em 0;
}
.role-sep-line {
  border-top: 1px dashed #c8c8c8;
  opacity: .9;
  margin: .35em auto .75em;
  width: 100%;
}
/* Role + kesik çizgi (Network Administrator ———) */
.role-sep{
  display:flex;
  align-items:center;
  gap:.75em;
  margin:.25em 0 .5em;
}
.role-sep .role{
  font-weight:600;
  letter-spacing:.02em;
  color:#333;
}
.role-sep .role-sep-line{
  flex:1;
  border-top:1px dashed #c8c8c8;
  opacity:.9;
}

/* Location satırı (ikon + metin) */
.location{
  display:inline-flex;
  align-items:center;
  gap:.5em;
  margin:.15em 0 .75em;
  color:#444;
}
.location .icon{ display:inline-block; }

/* İkonlu iletişim linkleri */
/* İkonlar yan yana ortalı */
.contact{
  display:flex;
  gap:10px;
  justify-content:center;
  align-items:center;
  margin-top:.35em;
}

/* Sadece ikonlu link görünümü */
.icon-link.icon-only{
  width:36px;
  height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #e6e6e6;
  border-radius:50%;
  text-decoration:none;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
  color:#222;                 /* SVG currentColor kullanırsa etkiler */
  background:#fff;
}

/* SVG boyutu ve hizası */
.icon-link.icon-only .icon{
  display:block;
  width:18px;
  height:18px;
}

/* Hover efekti */
.icon-link.icon-only:hover{
  transform: translateY(-2px);
  box-shadow:0 4px 10px rgba(0,0,0,.08);
  border-color:#d6d6d6;
  background:#f9fafb;
}

/* Tema rengi vurguları (opsiyonel) */
.icon-only.email:hover   { color:#d93025; }  /* Gmail kırmızısı ton */
.icon-only.website:hover { color:#0073aa; }  /* WP mavi ton */

.icon-link{
  display:inline-flex;
  align-items:center;
  gap:.5em;
  padding:.35em .6em;
  border:1px solid #e6e6e6;
  border-radius:6px;
  text-decoration:none;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
  color:#0073aa;
}
.icon-link:hover{
  transform: translateY(-2px);
  box-shadow:0 4px 10px rgba(0,0,0,.08);
  border-color:#d6d6d6;
  color:#00a0d2;
}

/* Genel görüntü tutarlılığı */
.team-member img { max-width:100%; height:auto; }
.team-member > * { margin-bottom: .75em; }
.team-member > *:last-child { margin-bottom: 0; }

/* Bölüm başlıkları */
.team-dept-title {
  margin: 24px 0 12px;
  font-weight: 600;
  font-size: 1.25rem;
  text-align: center;
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}
.team-dept-title::after {
  content: "";
  display: block;
  width: 50%;
  margin: 6px auto 0;
  border-bottom: 2px solid #0073aa;
}
.team-members-grouped .team-members-grid { margin-bottom: 12px; }

/* Print */
@media print {
  .team-members-grid { display:block; }
  .team-member { page-break-inside: avoid; margin-bottom: 20px; border: 1px solid #ddd; }
}