/* ================================================
   جمعية ديرتي تستاهل للتطوع الاحترافي
   images.css – أنماط الصور والمؤثرات البصرية
   ================================================ */

/* ══════════════════════════════════════
   الشعار في شريط التنقل
══════════════════════════════════════ */
.nav-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}
.nav-logo-fallback { display: none; } /* تظهر فقط عند فشل تحميل الصورة */

/* ══════════════════════════════════════
   شعار وسط قسم Hero
══════════════════════════════════════ */
.hero-logo-wrap {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}
.hero-logo-img {
  width: 120px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(46,204,113,0.4));
  animation: fadeInDown 0.8s ease forwards;
}

/* ══════════════════════════════════════
   صورة خلفية Hero
══════════════════════════════════════ */
/* ══════════════════════════════════════
   Hero Slider – 4 صور متعاقبة
══════════════════════════════════════ */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* كل شريحة */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  /* Ken Burns – تكبير بطيء */
  animation: kenBurns 7s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.hero-slide.active {
  opacity: 1;
  animation-play-state: running;
}

/* تأثير Ken Burns – 4 اتجاهات مختلفة */
.hero-slide:nth-child(1) { animation-name: kb1; }
.hero-slide:nth-child(2) { animation-name: kb2; }
.hero-slide:nth-child(3) { animation-name: kb3; }
.hero-slide:nth-child(4) { animation-name: kb4; }

@keyframes kb1 {
  from { transform: scale(1)    translateX(0)     translateY(0); }
  to   { transform: scale(1.08) translateX(-1.5%) translateY(-1%); }
}
@keyframes kb2 {
  from { transform: scale(1.06) translateX(1%)    translateY(0); }
  to   { transform: scale(1)    translateX(-0.5%) translateY(-1.5%); }
}
@keyframes kb3 {
  from { transform: scale(1)    translateX(-1%)   translateY(1%); }
  to   { transform: scale(1.07) translateX(1%)    translateY(-0.5%); }
}
@keyframes kb4 {
  from { transform: scale(1.05) translateX(0)     translateY(-1%); }
  to   { transform: scale(1)    translateX(1.5%)  translateY(0.5%); }
}

/* طبقة التعتيم */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 65% 45%, rgba(26,122,78,0.85) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 75%, rgba(10,140,110,0.70) 0%, transparent 50%),
    linear-gradient(to bottom,
      rgba(7,28,16,0.92) 0%,
      rgba(7,28,16,0.72) 45%,
      rgba(7,28,16,0.94) 100%);
  pointer-events: none;
  animation: overlayPulse 8s ease-in-out infinite alternate;
}

@keyframes overlayPulse {
  from {
    background:
      radial-gradient(ellipse at 65% 45%, rgba(26,122,78,0.85) 0%, transparent 60%),
      radial-gradient(ellipse at 20% 75%, rgba(10,140,110,0.70) 0%, transparent 50%),
      linear-gradient(to bottom, rgba(7,28,16,0.92) 0%, rgba(7,28,16,0.72) 45%, rgba(7,28,16,0.94) 100%);
  }
  to {
    background:
      radial-gradient(ellipse at 35% 55%, rgba(10,140,110,0.78) 0%, transparent 58%),
      radial-gradient(ellipse at 75% 30%, rgba(26,122,78,0.72) 0%, transparent 52%),
      linear-gradient(to bottom, rgba(7,28,16,0.94) 0%, rgba(7,28,16,0.70) 45%, rgba(7,28,16,0.92) 100%);
  }
}
}

/* نقاط التنقل */
.slider-dots {
  position: absolute;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.55rem;
  z-index: 10;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.35s ease;
}
.slider-dot.active {
  background: var(--green-bright);
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(46,204,113,0.6);
}
.slider-dot:hover:not(.active) {
  background: rgba(255,255,255,0.6);
}

/* شريط التقدم */
.slider-dot.active::after {
  content: '';
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--green-bright), var(--teal));
  animation: dotProgress 5s linear;
}
@keyframes dotProgress {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0); }
}

/* ══════════════════════════════════════
   أيقونات الشارات (ترخيص وميدالية)
══════════════════════════════════════ */
.badge-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}
.medal-img {
  width: 60px;
  height: 60px;
}

/* ══════════════════════════════════════
   أيقونات الرؤية والرسالة
══════════════════════════════════════ */
.vm-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);      /* تحويل للأبيض */
  opacity: 0.9;
}

/* ══════════════════════════════════════
   أيقونات القيم
══════════════════════════════════════ */
.value-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 20px;
  background: rgba(46,204,113,0.1);
  border: 1px solid rgba(46,204,113,0.2);
  transition: all 0.3s ease;
}
.value-card:hover .value-icon-wrap {
  background: rgba(46,204,113,0.2);
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(46,204,113,0.2);
}
.value-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(62%) sepia(44%) saturate(636%) hue-rotate(100deg) brightness(100%) contrast(90%);
  /* تحويل اللون ليصبح أخضر يتناسب مع النمط */
  transition: filter 0.3s ease;
}
.value-card:hover .value-img {
  filter: brightness(0) saturate(100%) invert(62%) sepia(100%) saturate(700%) hue-rotate(100deg) brightness(110%) contrast(95%);
}
.vi-fb { font-size: 2.2rem; display: block; }

/* ══════════════════════════════════════
   أيقونات الأهداف
══════════════════════════════════════ */
.obj-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.25;
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s ease;
}
.obj-card:hover .obj-img { opacity: 0.45; }

/* ══════════════════════════════════════
   أيقونات وصور المبادرات
══════════════════════════════════════ */
.initiative-icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: rgba(46,204,113,0.12);
  border: 1px solid rgba(46,204,113,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  overflow: hidden;
}
.initiative-card:hover .initiative-icon-wrap {
  background: rgba(46,204,113,0.2);
  box-shadow: 0 6px 20px rgba(46,204,113,0.25);
  transform: scale(1.05);
}
.initiative-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(62%) sepia(44%) saturate(636%) hue-rotate(100deg) brightness(100%) contrast(90%);
  transition: transform 0.3s ease;
}
.initiative-card:hover .initiative-img { transform: scale(1.1); }
.ini-fb { font-size: 1.8rem; }

/* ══════════════════════════════════════
   أيقونات الفئات المستهدفة
══════════════════════════════════════ */
.target-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(62%) sepia(44%) saturate(636%) hue-rotate(100deg) brightness(100%) contrast(90%);
  transition: transform 0.3s ease, filter 0.3s ease;
}
.target-card:hover .target-img {
  transform: scale(1.1);
  filter: brightness(0) saturate(100%) invert(62%) sepia(100%) saturate(900%) hue-rotate(100deg) brightness(120%) contrast(95%);
}

/* ══════════════════════════════════════
   أيقونات التواصل
══════════════════════════════════════ */
.contact-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin: 0 auto 1rem;
  display: block;
  filter: brightness(0) saturate(100%) invert(62%) sepia(44%) saturate(636%) hue-rotate(100deg) brightness(100%) contrast(90%);
  transition: transform 0.3s ease;
}
.contact-card:hover .contact-img { transform: scale(1.1) translateY(-3px); }

/* ══════════════════════════════════════
   شعار الفوتر
══════════════════════════════════════ */
.footer-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-left: 0.8rem;
  opacity: 0.8;
}

/* ══════════════════════════════════════
   صور أعضاء مجلس الإدارة
   ── المؤثرات الاحترافية ──
══════════════════════════════════════ */

/* غلاف الصورة */
.member-photo-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* الصورة نفسها */
.member-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: grayscale(15%) contrast(1.05);
}
.board-card:hover .member-photo {
  transform: scale(1.06);
  filter: grayscale(0%) contrast(1.1);
}

/* حلقة التوهج حول الصورة */
.photo-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(46,204,113,0.4);
  z-index: 1;
  animation: ringPulse 3s ease-in-out infinite;
}
.photo-ring-2 {
  inset: -10px;
  border-color: rgba(46,204,113,0.15);
  animation-delay: 1s;
  animation-duration: 3.5s;
}
.photo-ring-teal {
  border-color: rgba(10,140,110,0.5);
}
.photo-ring-teal.photo-ring-2 {
  border-color: rgba(10,140,110,0.2);
}

@keyframes ringPulse {
  0%,100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.04); opacity: 0.6; }
}

/* ── رئيس مجلس الإدارة – صورة كبيرة ── */
.chairman-photo-wrap {
  width: 130px;
  height: 130px;
  margin: 0 auto 1.5rem;
}
.chairman-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 8px 40px rgba(46,204,113,0.35), 0 0 0 4px rgba(46,204,113,0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  filter: contrast(1.08) brightness(1.02);
}
.chairman-card:hover .chairman-photo {
  transform: scale(1.04);
  box-shadow: 0 12px 50px rgba(46,204,113,0.45), 0 0 0 6px rgba(46,204,113,0.25);
}

/* بطاقة الرئيس – توهج خلفي */
.member-glow {
  position: absolute;
  top: 30px; left: 50%;
  transform: translateX(-50%);
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(46,204,113,0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 4s ease-in-out infinite;
}
.ceo-glow {
  background: radial-gradient(circle, rgba(10,140,110,0.2) 0%, transparent 70%);
}
@keyframes glowPulse {
  0%,100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.2); }
}

/* بطاقة الرئيس – ضمان ظهور المحتوى فوق التوهج */
.chairman-card > * { position: relative; z-index: 1; }

/* ── بطاقة المدير التنفيذي ── */
.ceo-card {
  border-color: rgba(10,140,110,0.4) !important;
  background: linear-gradient(135deg, rgba(10,140,110,0.25), rgba(26,122,78,0.15)) !important;
}
.ceo-photo {
  box-shadow: 0 8px 40px rgba(10,140,110,0.35), 0 0 0 4px rgba(10,140,110,0.15) !important;
}

/* ── مؤثر هوفر لبطاقات الأعضاء ── */
.board-card {
  position: relative;
  overflow: hidden;
}
.board-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-mid), var(--green-bright));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}
.board-card:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* صورة عضو مجلس الإدارة مع تأثير ضوء على الهوفر */
.board-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(46,204,113,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.board-card:hover::after { opacity: 1; }

/* ══════════════════════════════════════
   Fallbacks – حالة فشل تحميل الصورة
══════════════════════════════════════ */
.member-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-mid), var(--green-bright));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  font-weight: 900;
  font-family: 'Tajawal', sans-serif;
  box-shadow: 0 4px 20px rgba(46,204,113,0.3);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.board-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(46,204,113,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--green-bright);
  font-family: 'Tajawal', sans-serif;
  font-weight: 800;
  margin: 0 auto 1rem;
}

/* ══════════════════════════════════════
   Responsive – تكيّف الصور
══════════════════════════════════════ */
@media (max-width: 768px) {
  .hero-logo-img      { width: 90px; }
  .nav-logo-img       { width: 40px; height: 40px; }
  .chairman-photo-wrap,
  .chairman-photo     { width: 110px; height: 110px; }
  .member-photo-wrap,
  .member-photo       { width: 70px; height: 70px; }
  .value-icon-wrap    { width: 60px; height: 60px; }
  .value-img          { width: 30px; height: 30px; }
}

/* ══════════════════════════════════════
   قسم المؤسسين – أعضاء الجمعية العمومية
══════════════════════════════════════ */

/* فاصل مرئي */
.founders-separator {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46,204,113,0.3), rgba(201,162,39,0.4), rgba(46,204,113,0.3), transparent);
  margin: 4rem 0 0;
  position: relative;
}
.founders-separator::before {
  content: '✦ المؤسسون ✦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--dark);
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  padding: 0 1.5rem;
  white-space: nowrap;
}

/* عنوان الجمعية العمومية */
.board-title-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
  margin-left: 0.4rem;
  opacity: 0.7;
  filter: brightness(0) saturate(100%) invert(62%) sepia(44%) saturate(636%) hue-rotate(100deg);
}

/* مقدمة المؤسسين */
.founders-intro {
  text-align: center;
  margin: 1rem auto 2.5rem;
  max-width: 600px;
}
.founders-intro p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
  font-style: italic;
}

/* شبكة المؤسسين – 5 في الصف */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* بطاقة المؤسس */
.founder-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(201,162,39,0.12);
  border-radius: 20px;
  padding: 1.8rem 1rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: default;
}
.founder-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(201,162,39,0.3));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}
.founder-card:hover {
  border-color: rgba(201,162,39,0.3);
  background: rgba(201,162,39,0.04);
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(201,162,39,0.1);
}
.founder-card:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* غلاف صورة المؤسس */
.founder-photo-wrap {
  width: 72px !important;
  height: 72px !important;
  margin: 0 auto 1rem !important;
}

/* صورة المؤسس */
.founder-photo {
  width: 72px !important;
  height: 72px !important;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  position: relative;
  z-index: 2;
  filter: grayscale(10%) contrast(1.05);
  transition: transform 0.4s ease, filter 0.4s ease;
}
.founder-card:hover .founder-photo {
  transform: scale(1.07);
  filter: grayscale(0%) contrast(1.08);
}

/* حلقة ذهبية للمؤسسين */
.founder-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid rgba(201,162,39,0.35) !important;
  z-index: 1;
  animation: ringPulseGold 3.5s ease-in-out infinite;
}
@keyframes ringPulseGold {
  0%,100% { transform: scale(1);    opacity: 0.7; }
  50%      { transform: scale(1.06); opacity: 0.3; }
}

/* دور المؤسس */
.founder-role {
  font-size: 0.72rem !important;
  color: var(--gold) !important;
  opacity: 0.8;
  font-weight: 500;
}

/* اسم المؤسس */
.founder-card .member-name {
  font-size: 0.88rem;
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .founders-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .founders-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .founder-card  { padding: 1.4rem 0.8rem; }
}
@media (max-width: 480px) {
  .founders-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════
   نجوم عنوان المؤسسين
══════════════════════════════════════ */
.board-title-star {
  color: var(--gold);
  font-size: 0.7rem;
  opacity: 0.8;
  margin: 0 0.3rem;
}

/* فاصل مجلس الإدارة (بعد المؤسسين) */
.founders-separator {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46,204,113,0.3), rgba(46,204,113,0.3), transparent);
  margin: 4rem 0 3rem;
  position: relative;
}
.founders-separator::before {
  content: '— مجلس الإدارة —';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--dark);
  color: var(--green-bright);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0 1.5rem;
  white-space: nowrap;
}
