/* =========================
   FITCLASS TRAINERS STYLE
========================= */

.fc-trainers {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 60px 20px;
  background: #2b2b2b;
  direction: rtl;
  text-align: center;
  font-family: Tahoma, Arial, sans-serif;
  color: #fff;
}

.fc-trainers * {
  box-sizing: border-box;
}

/* ===== العنوان ===== */

.fc-head {
  text-align: center;
  margin-bottom: 35px;
}

.fc-title {
  color: #c62828;
  font-size: 36px;
  font-weight: 900;
  margin: 0 0 12px;
  text-align: center;
}

.fc-desc {
  color: #fff;
  font-size: 17px;
  line-height: 2;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.fc-subtitle {
  color: #c62828;
  font-size: 28px;
  font-weight: 900;
  margin: 55px 0 30px;
  text-align: center;
}

/* ===== الشبكة ===== */

.fc-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px;
  width: 100%;
  margin: 0 auto;
}

/* ===== البطاقة ===== */

.fc-card {
  background: linear-gradient(180deg, #232323 0%, #151515 100%);
  border-radius: 22px;
  padding: 18px 18px 24px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .35);
  text-align: center;
  overflow: hidden;
}

.fc-photo {
  width: 100%;
  height: 340px;
  background: #2f2f2f;
  border-radius: 18px;
  overflow: hidden;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fc-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.fc-name {
  margin-top: 18px;
  color: #d32f2f;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.7;
  text-align: center;
}

.fc-role {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-top: 8px;
  line-height: 1.8;
  text-align: center;
}

/* ===== زر تعرف أكثر ===== */

.fc-more {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  background: #c62828;
  color: #fff !important;
  text-decoration: none !important;
  padding: 12px 28px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: .25s;
}

.fc-more:hover {
  background: #ef5350;
  transform: translateY(-2px);
}

/* =========================
        POPUP
========================= */

.fc-popup {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0,0,0,0.88) !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 999999999 !important;
  padding: 20px !important;
}

.fc-popup.active {
  display: flex !important;
}

/* ===== صندوق البوب اب ===== */

.fc-popup-box {
  width: 100% !important;
  max-width: 850px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;

  background: linear-gradient(
    180deg,
    #b71c1c 0%,
    #8e1111 45%,
    #5c0b0b 100%
  ) !important;

  border: 2px solid #ff5252 !important;
  border-radius: 24px !important;
  padding: 35px !important;
  position: relative !important;
  text-align: center !important;
  direction: rtl !important;
  box-shadow: 0 0 40px rgba(0,0,0,.6) !important;
}

/* ===== Scroll ===== */

.fc-popup-box::-webkit-scrollbar {
  width: 6px;
}

.fc-popup-box::-webkit-scrollbar-thumb {
  background: #ffffff;
  border-radius: 20px;
}

/* ===== زر الإغلاق ===== */

.fc-popup-close {
  position: absolute !important;
  top: 15px !important;
  left: 15px !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  border: none !important;
  background: #ffffff !important;
  color: #b71c1c !important;
  font-size: 26px !important;
  font-weight: bold !important;
  cursor: pointer !important;
  z-index: 99999 !important;
}

/* ===== صورة البوب اب ===== */

.fc-popup-img {
  width: 100% !important;
  max-width: 420px !important;
  margin: 0 auto 25px !important;
  background: rgba(255,255,255,0.08) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  padding: 12px !important;
}

.fc-popup-img img {
  width: 100% !important;
  height: auto !important;
  max-height: 500px !important;
  object-fit: contain !important;
  display: block !important;
}

/* ===== النصوص ===== */

.fc-popup-name {
  color: #ffffff !important;
  font-size: 32px !important;
  font-weight: 900 !important;
  margin-bottom: 10px !important;
  line-height: 1.7 !important;
}

.fc-popup-role {
  color: #ffe082 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  margin-bottom: 25px !important;
  line-height: 1.9 !important;
}

.fc-popup-desc {
  background: rgba(0,0,0,0.22) !important;
  color: #ffffff !important;
  padding: 25px !important;
  border-radius: 18px !important;
  font-size: 16px !important;
  line-height: 2.25 !important;
  text-align: right !important;
  white-space: pre-line !important;
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  backdrop-filter: blur(4px);
}

/* ===== الجوال ===== */

@media (max-width: 992px) {

  .fc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

}

@media (max-width: 640px) {

  .fc-trainers {
    padding: 40px 14px;
  }

  .fc-grid {
    grid-template-columns: 1fr !important;
    gap: 22px;
  }

  .fc-photo {
    height: 280px;
  }

  .fc-popup {
    padding: 12px !important;
  }

  .fc-popup-box {
    padding: 25px 18px !important;
    border-radius: 18px !important;
    max-height: 94vh !important;
  }

  .fc-popup-img {
    min-height: 240px !important;
  }

  .fc-popup-img img {
    max-height: 320px !important;
  }

  .fc-popup-name {
    font-size: 24px !important;
  }

  .fc-popup-role {
    font-size: 15px !important;
  }

  .fc-popup-desc {
    font-size: 14px !important;
    line-height: 2 !important;
    padding: 18px !important;
  }

  .fc-popup-close {
    width: 40px !important;
    height: 40px !important;
    font-size: 24px !important;
  }

}