/* ============================================
   BES Kurul Üyeleri - Ön yüz stilleri
   Tema stillerinin metni bozmasını engellemek için
   tüm metin alanlarında word-break / white-space sıfırlanır.
   ============================================ */

.bes-kurullar-wrap {
  max-width: 1480px;
  margin: 0 auto 48px;
  padding: 0 24px 40px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1a1a1a;
  box-sizing: border-box;
}

.bes-kurullar-wrap *,
.bes-kurullar-wrap *::before,
.bes-kurullar-wrap *::after {
  box-sizing: border-box;
}

/* Metin kırılması: tema word-break: break-all vb. uygulayınca harf harf düşmesin
   (modal içeriğini olduğu gibi bırakmak için sadece kart başlık/iletişimi sıfırlıyoruz) */
.bes-kurullar-wrap .bes-kurullar-card-name,
.bes-kurullar-wrap .bes-kurullar-card-unvan,
.bes-kurullar-wrap .bes-kurullar-card-contact,
.bes-kurullar-wrap .bes-kurullar-card-contact a,
.bes-kurullar-wrap .bes-ozgecmis-btn {
  word-break: normal;
  overflow-wrap: normal;
  white-space: normal;
}

/* Uzun e-posta/telefon tek satırda taşarsa satır sonunda kırılsın, harf harf değil */
.bes-kurullar-wrap .bes-kurullar-card-contact {
  overflow-wrap: break-word;
  word-break: normal;
}

/* ---- Başlık ---- */
.bes-kurullar-title {
  font-size: 1.625rem;
  font-weight: 700;
  margin: 0 0 28px 0;
  padding-bottom: 14px;
  border-bottom: 3px solid #c00;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

/* ---- Grid: tek satırda 2 kart ---- */
.bes-kurullar-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .bes-kurullar-board {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

/* ---- Kart kutusu ---- */
.bes-kurullar-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.bes-kurullar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

/* Kart içi: her zaman dikey – önce fotoğraf, hemen altında yazılar */
.bes-kurullar-card-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  min-width: 0;
}

/* ---- Fotoğraf alanı (her zaman üstte) ---- */
.bes-kurullar-card-photo {
  width: 100%;
  flex-shrink: 0;
  aspect-ratio: 4/3;
  max-height: 320px;
  background: linear-gradient(145deg, #f0f1f3 0%, #e8eaed 100%);
  overflow: hidden;
  position: relative;
}

.bes-kurullar-card-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 -20px 24px -12px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.bes-kurullar-card-photo img,
.bes-kurullar-card-photo .bes-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Yüksek çözünürlük ekranlarda keskin görünsün (srcset ile desteklenir) */
}

/* Görevini Tamamlayanlar: kartta kutucuk */
.bes-kurullar-card-photo {
  position: relative;
}

.bes-tamamladı-kutucuk {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: #2d5016;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  letter-spacing: 0.02em;
}

/* ---- Kart gövdesi: fotoğrafın hemen altında, tam genişlik ---- */
.bes-kurullar-card-body {
  width: 100%;
  padding: 22px 24px 24px;
  display: block;
  flex: 1;
  min-height: 0;
}

.bes-kurullar-card-name {
  margin: 0 0 4px 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

.bes-kurullar-card-unvan {
  margin: 0 0 12px 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #c00;
  line-height: 1.4;
}

.bes-kurullar-card-contact {
  font-size: 0.8125rem;
  color: #495057;
  margin-bottom: 12px;
  line-height: 1.5;
}

.bes-kurullar-card-contact a {
  color: #0d6efd;
  text-decoration: none;
}

.bes-kurullar-card-contact a:hover {
  text-decoration: underline;
}

.bes-kurullar-card-contact span + span {
  margin-left: 10px;
}

/* ---- Özgeçmiş butonu (popup açılır) ---- */
.bes-bio-trigger-wrap {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}

.bes-ozgecmis-btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: #c00;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease;
}

.bes-ozgecmis-btn:hover {
  background: #a00;
}

.bes-ozgecmis-btn:focus {
  outline: 2px solid #c00;
  outline-offset: 2px;
}

/* ---- Özgeçmiş popup modal ---- */
.bes-bio-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.2s ease, opacity 0.2s ease;
}

.bes-bio-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.bes-bio-modal.is-open .bes-bio-modal-box {
  transform: scale(1);
}

.bes-bio-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.bes-bio-modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.bes-bio-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.bes-bio-modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
}

.bes-bio-modal-close {
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: #f3f4f6;
  border-radius: 8px;
  font-size: 1.5rem;
  line-height: 1;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.bes-bio-modal-close:hover {
  background: #e5e7eb;
  color: #1a1a1a;
}

.bes-bio-modal-close:focus {
  outline: 2px solid #c00;
  outline-offset: 2px;
}

.bes-bio-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #374151;
}

/* Popup içindeki zengin metin (kalın, liste, link vb.) */
.bes-bio-modal-body p {
  margin: 0 0 1em 0;
}

.bes-bio-modal-body p:last-child {
  margin-bottom: 0;
}

.bes-bio-modal-body ul,
.bes-bio-modal-body ol {
  margin: 0 0 1em 1.5em;
  padding: 0;
}

.bes-bio-modal-body li {
  margin-bottom: 0.35em;
}

.bes-bio-modal-body a {
  color: #c00;
  text-decoration: none;
}

.bes-bio-modal-body a:hover {
  text-decoration: underline;
}

.bes-bio-modal-body strong {
  font-weight: 700;
}

.bes-bio-modal-body h2,
.bes-bio-modal-body h3 {
  margin: 1em 0 0.5em 0;
  font-size: 1.1em;
  font-weight: 700;
  color: #1a1a1a;
}
