/* ============================================================
   أكاديمية أثر | ملف التنسيقات الرئيسي
   الألوان: عدّل المتغيرات أدناه لتغيير هوية الموقع بالكامل
============================================================ */
:root {
  --navy: #2A547E;        /* الكحلي */
  --navy-dark: #1e3d5e;
  --gold: #D8A64A;        /* الذهبي */
  --gold-dark: #c08f33;
  --turquoise: #15A6A1;   /* التركواز */
  --turquoise-dark: #0f8a86;
  --cream: #FBFAF6;       /* الخلفية */
  --text: #3d4a5c;
  --muted: #7a869a;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 40px rgba(42, 84, 126, .10);
  --shadow-lg: 0 20px 60px rgba(42, 84, 126, .16);
  --transition: all .35s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- الخطوط المحلية ---------- */
@font-face { font-family: 'Tajawal'; src: url('../fonts/Tajawal-Regular.ttf') format('truetype'); font-weight: 400; }
@font-face { font-family: 'Tajawal'; src: url('../fonts/Tajawal-Medium.ttf') format('truetype'); font-weight: 500; }
@font-face { font-family: 'Tajawal'; src: url('../fonts/Tajawal-Bold.ttf') format('truetype'); font-weight: 700; }
@font-face { font-family: 'Tajawal'; src: url('../fonts/Tajawal-ExtraBold.ttf') format('truetype'); font-weight: 800; }

/* ---------- أساسيات ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Tajawal', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { width: min(1200px, 92%); margin-inline: auto; }
.section { padding: 100px 0; }
.bg-cream { background: #f4f1e8; }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: var(--gold-dark); color: var(--white); transform: translateY(-3px); box-shadow: 0 12px 25px rgba(216, 166, 74, .35); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-3px); box-shadow: 0 12px 25px rgba(42, 84, 126, .35); }
.btn-outline-light { border: 2px solid rgba(255,255,255,.8); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--navy); transform: translateY(-3px); }

/* ---------- ألوان مساعدة ---------- */
.bg-navy { background: var(--navy); }
.bg-gold { background: var(--gold); }
.bg-turquoise { background: var(--turquoise); }

/* ---------- عناوين الأقسام ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-tag {
  display: inline-block;
  color: var(--turquoise);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .5px;
  margin-bottom: 10px;
}
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.6rem); color: var(--navy); font-weight: 800; line-height: 1.4; }
.section-title em { font-style: normal; color: var(--gold); }
.section-head p { color: var(--muted); margin-top: 12px; }
.section-cta { text-align: center; margin-top: 50px; }

/* ============ الشريط العلوي ============ */
.topbar { background: var(--navy); color: rgba(255,255,255,.85); font-size: .85rem; padding: 8px 0; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.topbar-contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-contact a:hover { color: var(--gold); }
.topbar-social { display: flex; gap: 8px; }
.topbar-social a {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12); font-size: .8rem;
  transition: var(--transition);
}
.topbar-social a:hover { background: var(--gold); color: var(--navy-dark); }

/* ============ الهيدر ============ */
.header {
  background: var(--white);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 4px 25px rgba(42,84,126,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(135deg, var(--turquoise), var(--navy));
  color: var(--white); font-weight: 800; font-size: .95rem;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(21,166,161,.35);
}
.logo-text { font-size: 1.25rem; font-weight: 500; color: var(--navy); }
.logo-text b { font-weight: 800; color: var(--gold); }
.logo-text.light { color: var(--white); }
.nav { display: flex; align-items: center; gap: clamp(10px, 1.25vw, 20px); }
.nav > a { font-weight: 500; font-size: .93rem; white-space: nowrap; color: var(--text); position: relative; padding: 6px 0; transition: var(--transition); }
.nav > a:hover, .nav > a.active { color: var(--navy); }
.nav > a:not(.nav-cta)::after {
  content: ''; position: absolute; bottom: 0; right: 0;
  width: 0; height: 2px; background: var(--gold); border-radius: 2px;
  transition: var(--transition);
}
.nav > a:not(.nav-cta):hover::after, .nav > a:not(.nav-cta).active::after { width: 100%; }
.nav-cta { padding: 10px 26px !important; font-size: .95rem; }
.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.menu-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 3px; transition: var(--transition); }
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ الهيرو سلايدر ============ */
.hero { position: relative; height: clamp(560px, 85vh, 760px); overflow: hidden; }
.hero-slider, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.hero-media, .hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide.active .hero-media img, .hero-slide.active .hero-media video { animation: heroZoom 7s ease forwards; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(30,61,94,.88) 15%, rgba(30,61,94,.55) 55%, rgba(21,166,161,.25) 100%);
}
.hero-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  color: var(--white);
}
.hero-badge {
  display: inline-block;
  background: rgba(216,166,74,.18); border: 1px solid rgba(216,166,74,.5);
  color: var(--gold); padding: 8px 20px; border-radius: 50px;
  font-weight: 700; font-size: .9rem; margin-bottom: 22px;
}
.hero-slide h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 800; line-height: 1.35; margin-bottom: 18px; }
.hero-slide h1 em { font-style: normal; color: var(--gold); position: relative; }
.hero-slide p { max-width: 540px; font-size: 1.1rem; color: rgba(255,255,255,.88); margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-slide.active .hero-badge { animation: fadeUp .8s .2s both; }
.hero-slide.active h1 { animation: fadeUp .8s .4s both; }
.hero-slide.active p { animation: fadeUp .8s .6s both; }
.hero-slide.active .hero-actions { animation: fadeUp .8s .8s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35);
  color: var(--white); font-size: 1.6rem; cursor: pointer;
  transition: var(--transition); backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }
.hero-arrow.prev { right: 28px; }
.hero-arrow.next { left: 28px; }
.hero-dots { position: absolute; bottom: 120px; right: 50%; transform: translateX(50%); z-index: 5; display: flex; gap: 10px; }
.hero-dots button {
  width: 12px; height: 12px; border-radius: 50px; border: none;
  background: rgba(255,255,255,.4); cursor: pointer; transition: var(--transition);
}
.hero-dots button.active { width: 34px; background: var(--gold); }

/* ============ بطاقات المميزات ============ */
.features { position: relative; z-index: 10; margin-top: -85px; padding-bottom: 40px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  background: var(--white); border-radius: var(--radius);
  padding: 34px 26px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}
.feature-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-bottom-color: var(--gold); }
.feature-icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.6rem;
  color: var(--white); margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(42,84,126,.2);
}
.feature-num {
  position: absolute; top: 18px; left: 22px;
  font-size: 2rem; font-weight: 800; color: rgba(42,84,126,.12);
  -webkit-text-stroke: 1px rgba(42,84,126,.3); -webkit-text-fill-color: transparent;
}
.feature-card h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { font-size: .92rem; color: var(--muted); }

/* ============ نبذة عن الأكاديمية ============ */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.about-media { position: relative; }
.about-img-main { border-radius: 200px 20px 200px 20px; box-shadow: var(--shadow-lg); width: 100%; height: 520px; object-fit: cover; }
.about-badge {
  position: absolute; bottom: 30px; right: -20px;
  background: var(--gold); color: var(--navy-dark);
  border-radius: var(--radius); padding: 22px 28px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 15px 40px rgba(216,166,74,.4);
}
.about-badge b { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.about-badge span { font-weight: 700; font-size: .95rem; line-height: 1.5; }
.about-text > p { color: var(--muted); margin: 18px 0 26px; }
.about-points { display: grid; gap: 18px; margin-bottom: 32px; }
.about-points li { display: flex; gap: 16px; align-items: flex-start; }
.point-icon {
  min-width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: var(--white); font-weight: 700;
}
.about-points b { color: var(--navy); }
.about-points p { font-size: .92rem; color: var(--muted); }
.about-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.about-call { display: flex; align-items: center; gap: 12px; }
.call-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; }
.about-call small { display: block; color: var(--muted); font-size: .8rem; }
.about-call b { color: var(--navy); font-size: 1.05rem; }

/* ============ صفحة عن الأكاديمية ============ */
.about-page-hero {
  position: relative; min-height: 500px; isolation: isolate;
  background-image: var(--about-image); background-size: cover; background-position: center 35%;
  display: flex; align-items: center;
}
.about-page-hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to left, rgba(30,61,94,.93) 5%, rgba(30,61,94,.78) 48%, rgba(21,166,161,.35) 100%);
}
.about-page-hero-content { color: var(--white); padding-block: 95px; }
.about-page-hero h1 { max-width: 760px; font-size: clamp(2.25rem, 5.4vw, 4.1rem); font-weight: 800; line-height: 1.35; margin-bottom: 20px; }
.about-page-hero h1 em { color: var(--gold); font-style: normal; }
.about-page-hero-content > p { max-width: 680px; color: rgba(255,255,255,.9); font-size: 1.12rem; margin-bottom: 32px; }
.about-story-grid { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 70px; }
.about-story-media { position: relative; padding: 0 0 38px 38px; }
.about-story-media::before { content: ''; position: absolute; inset: 34px 38px 0 0; border: 2px solid rgba(21,166,161,.24); border-radius: 26px; z-index: -1; }
.about-story-media img { width: 100%; height: 520px; object-fit: cover; border-radius: 28px 120px 28px 28px; box-shadow: var(--shadow-lg); }
.about-story-seal {
  position: absolute; left: 0; bottom: 0; min-width: 176px; padding: 21px 24px;
  border-radius: 20px; background: var(--gold); color: var(--navy-dark); box-shadow: 0 15px 35px rgba(216,166,74,.32);
  text-align: center; font-size: .94rem; line-height: 1.5;
}
.about-story-seal b { font-size: 1.12rem; }
.about-story-copy > p { color: var(--muted); font-size: 1.06rem; margin: 22px 0 30px; }
.about-story-points { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-story-points article { display: flex; gap: 13px; padding: 18px; border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
.about-story-points article > span { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(21,166,161,.12); color: var(--turquoise); font-weight: 800; }
.about-story-points b { color: var(--navy); }
.about-story-points p { color: var(--muted); font-size: .88rem; margin-top: 4px; }
.about-purpose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.about-purpose-card { display: flex; align-items: flex-start; gap: 24px; padding: 38px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border-top: 5px solid var(--turquoise); transition: var(--transition); }
.about-purpose-card:nth-child(2) { border-top-color: var(--gold); }
.about-purpose-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.about-purpose-icon { flex: 0 0 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg,var(--navy),var(--turquoise)); color: var(--white); font-size: 1.8rem; }
.about-purpose-card:nth-child(2) .about-purpose-icon { background: linear-gradient(135deg,var(--gold),var(--navy)); }
.about-purpose-card h3 { color: var(--navy); font-size: 1.45rem; margin-bottom: 8px; }
.about-purpose-card p { color: var(--muted); }
.about-values-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.about-values-grid article { text-align: center; padding: 34px 24px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); transition: var(--transition); }
.about-values-grid article:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.about-values-grid article > span { width: 62px; height: 62px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 18px; background: rgba(21,166,161,.1); color: var(--turquoise); font-size: 1.65rem; }
.about-values-grid h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 8px; }
.about-values-grid p { color: var(--muted); font-size: .9rem; }
.about-page-cta .cta-inner { grid-template-columns: 1.2fr .8fr; }

/* ============ الإحصاءات ============ */
.stats {
  background: linear-gradient(rgba(30,61,94,.92), rgba(30,61,94,.92)), url('../img/hero-2.jpg') center/cover fixed;
  padding: 85px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat-item { text-align: center; color: var(--white); }
.stat-icon {
  width: 78px; height: 78px; margin: 0 auto 18px;
  border-radius: 24px; transform: rotate(45deg);
  background: linear-gradient(135deg, var(--gold), var(--turquoise));
  display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.stat-icon > * , .stat-icon { font-size: 1.7rem; }
.stat-icon { line-height: 1; }
.stat-icon::first-letter { transform: rotate(-45deg); }
.stat-item b { display: block; font-size: 2.7rem; font-weight: 800; color: var(--gold); }
.stat-item span { color: rgba(255,255,255,.85); font-size: 1rem; }

/* ============ مجالات التدريب ============ */
.fields-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.field-card {
  background: var(--white); border-radius: var(--radius);
  padding: 38px 30px; box-shadow: var(--shadow);
  transition: var(--transition); position: relative; overflow: hidden;
}
.field-card::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 100%; height: 5px;
  background: linear-gradient(to left, var(--turquoise), var(--gold));
  transform: scaleX(0); transform-origin: right; transition: var(--transition);
}
.field-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.field-card:hover::before { transform: scaleX(1); }
.field-icon {
  width: 66px; height: 66px; border-radius: 18px;
  background: rgba(21,166,161,.1);
  display: grid; place-items: center; font-size: 1.8rem; margin-bottom: 20px;
  transition: var(--transition);
}
.field-card:hover .field-icon { background: var(--navy); transform: rotate(-8deg) scale(1.05); }
.field-card h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.2rem; }
.field-card p { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.field-link { color: var(--turquoise); font-weight: 700; font-size: .9rem; transition: var(--transition); }
.field-card:hover .field-link { color: var(--gold); letter-spacing: .5px; }

/* ============ الدورات ============ */
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.course-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: var(--transition);
}
.course-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.course-media { position: relative; height: 220px; overflow: hidden; }
.course-media img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.course-card:hover .course-media img { transform: scale(1.08); }
.course-cat {
  position: absolute; top: 16px; right: 16px;
  color: var(--white); font-size: .8rem; font-weight: 700;
  padding: 6px 16px; border-radius: 50px;
}
.course-body { padding: 24px 26px 26px; }
.course-meta { display: flex; gap: 18px; color: var(--muted); font-size: .82rem; margin-bottom: 10px; }
.course-body h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 8px; transition: var(--transition); }
.course-card:hover .course-body h3 { color: var(--turquoise); }
.course-body > p { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.course-foot {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid #eee; padding-top: 16px;
}
.course-rate { color: var(--gold); font-weight: 700; }
.course-rate small { color: var(--muted); font-weight: 400; }
.course-price { color: var(--navy); font-weight: 800; font-size: 1.25rem; }
.course-price small { font-size: .75rem; font-weight: 500; color: var(--muted); }

/* ============ المدربون ============ */
.trainers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.trainer-card {
  background: var(--white); border-radius: var(--radius);
  padding: 22px 22px 28px; text-align: center;
  box-shadow: var(--shadow); transition: var(--transition);
}
.trainer-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.trainer-media { position: relative; border-radius: 14px; overflow: hidden; margin-bottom: 18px; }
.trainer-media img { width: 100%; height: 260px; object-fit: cover; transition: var(--transition); }
.trainer-card:hover .trainer-media img { transform: scale(1.06); }
.trainer-social {
  position: absolute; bottom: 0; right: 0; left: 0;
  display: flex; justify-content: center; gap: 8px;
  padding: 14px; background: linear-gradient(transparent, rgba(30,61,94,.85));
  opacity: 0; transform: translateY(15px); transition: var(--transition);
}
.trainer-card:hover .trainer-social { opacity: 1; transform: translateY(0); }
.trainer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.2); color: var(--white);
  display: grid; place-items: center; font-size: .8rem; transition: var(--transition);
}
.trainer-social a:hover { background: var(--gold); color: var(--navy-dark); }
.trainer-card h3 { color: var(--navy); font-size: 1.1rem; }
.trainer-card > span { color: var(--turquoise); font-size: .88rem; font-weight: 500; }

/* ============ آراء المتدربين ============ */
.testi-slider { max-width: 820px; margin: 0 auto; overflow: hidden; }
.testi-track { display: flex; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.testi-card {
  min-width: 100%; background: var(--white);
  border-radius: var(--radius); padding: 46px 50px;
  box-shadow: var(--shadow); position: relative;
}
.testi-quote {
  position: absolute; top: 20px; left: 36px;
  font-size: 6rem; color: rgba(21,166,161,.12);
  font-family: serif; line-height: 1;
}
.testi-card > p { font-size: 1.08rem; color: var(--text); margin-bottom: 26px; }
.testi-person { display: flex; align-items: center; gap: 16px; }
.testi-person img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); }
.testi-person b { display: block; color: var(--navy); }
.testi-person span { color: var(--muted); font-size: .85rem; }
.testi-stars { margin-right: auto; color: var(--gold); font-size: 1.05rem; letter-spacing: 2px; }
.testi-nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 34px; }
.testi-nav > button {
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--navy); background: transparent;
  color: var(--navy); font-size: 1.4rem; cursor: pointer; transition: var(--transition);
}
.testi-nav > button:hover { background: var(--navy); color: var(--white); }
.testi-dots { display: flex; gap: 8px; }
.testi-dots button { width: 10px; height: 10px; border-radius: 50px; border: none; background: #d4d9e2; cursor: pointer; transition: var(--transition); }
.testi-dots button.active { width: 28px; background: var(--turquoise); }

/* ============ الأسئلة الشائعة ============ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.faq-intro p { color: var(--muted); margin: 16px 0 28px; }
.faq-list { display: grid; gap: 14px; }
.faq-item { background: var(--white); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 15px;
  padding: 20px 26px; background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 1.02rem; font-weight: 700; color: var(--navy); text-align: right;
}
.faq-q span {
  min-width: 32px; height: 32px; border-radius: 50%;
  background: rgba(21,166,161,.12); color: var(--turquoise);
  display: grid; place-items: center; font-size: 1.2rem; transition: var(--transition);
}
.faq-item.open .faq-q span { background: var(--gold); color: var(--navy-dark); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a p { padding: 0 26px 22px; color: var(--muted); font-size: .95rem; }
.faq-item.open .faq-a { max-height: 220px; }

/* ============ دعوة للتسجيل ============ */
.cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 60%, #15304c 100%);
  padding: 90px 0; position: relative; overflow: hidden;
}
.cta::before, .cta::after {
  content: ''; position: absolute; border-radius: 50%;
  background: rgba(216,166,74,.08);
}
.cta::before { width: 380px; height: 380px; top: -140px; left: -100px; }
.cta::after { width: 300px; height: 300px; bottom: -120px; right: -80px; background: rgba(21,166,161,.12); }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
.cta-text h2 { color: var(--white); font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; margin-bottom: 14px; }
.cta-text h2 em { font-style: normal; color: var(--gold); }
.cta-text p { color: rgba(255,255,255,.8); }
.cta-form {
  background: rgba(255,255,255,.07); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 34px;
  display: grid; gap: 14px;
}
.cta-form input, .cta-form select {
  width: 100%; padding: 14px 20px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.95);
  font-family: inherit; font-size: .95rem; color: var(--text); outline: none;
  transition: var(--transition);
}
.cta-form input:focus, .cta-form select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(216,166,74,.2); }
.cta-msg { color: var(--gold); font-weight: 700; text-align: center; min-height: 1.2em; }

/* ============ الفوتر ============ */
.footer { background: var(--navy-dark); color: rgba(255,255,255,.75); padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 45px; padding-bottom: 60px; }
.footer-about p { margin: 18px 0 22px; font-size: .92rem; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: var(--white);
  display: grid; place-items: center; transition: var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--navy-dark); transform: translateY(-4px); }
.footer-col h4 { color: var(--white); font-size: 1.1rem; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; right: 0; width: 40px; height: 3px; background: var(--gold); border-radius: 3px; }
.footer-col ul { display: grid; gap: 12px; font-size: .92rem; }
.footer-col ul a { transition: var(--transition); }
.footer-col ul a:hover { color: var(--gold); padding-right: 6px; }
.footer-contact li { display: flex; gap: 8px; align-items: center; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; font-size: .88rem; }

/* ============ تكامل نسخة ووردبريس ============ */
.stat-item p { color: rgba(255,255,255,.85); font-size: 1rem; }
.trainer-info p { color: var(--turquoise); font-size: .9rem; font-weight: 700; }
.trainer-info small { display: block; margin-top: 8px; color: var(--muted); line-height: 1.7; }
.testi-avatar { flex: 0 0 auto; }
.testi-person small { color: var(--muted); font-size: .85rem; }
.afwl-cta-actions { grid-template-columns: 1fr 1fr; align-items: center; }
.afwl-cta-actions .btn { width: 100%; }
.afwl-cta-actions .btn-outline-light { background: transparent; }

/* ============ دليل المدربين والملف المهني ============ */
.trainer-card { display: block; color: inherit; }
.trainer-media { min-height: 260px; background: linear-gradient(145deg, #eaf7f6, #edf2f7); }
.afwl-trainer-initials { min-height: 260px; display: grid; place-items: center; color: var(--navy); font-size: 3rem; font-weight: 900; }
.afwl-trainer-verified { position: absolute; right: 12px; bottom: 12px; padding: 7px 12px; border-radius: 999px; background: var(--gold); color: var(--navy-dark); font-size: .75rem; }
.afwl-home-trainers-empty, .afwl-trainers-empty, .afwl-no-search-results { max-width: 760px; margin: 0 auto; padding: 44px 28px; text-align: center; border: 1px dashed rgba(16,42,67,.2); border-radius: 24px; background: linear-gradient(145deg,#fff,#f7fbfb); }
.afwl-home-trainers-empty > span, .afwl-trainers-empty > span { display: grid; width: 72px; height: 72px; margin: 0 auto 16px; place-items: center; border-radius: 22px; background: rgba(21,166,161,.12); color: var(--turquoise); font-size: 2rem; }
.afwl-home-trainers-empty h3, .afwl-trainers-empty h3 { color: var(--navy); font-size: 1.45rem; }
.afwl-home-trainers-empty p, .afwl-trainers-empty p { max-width: 580px; margin: 10px auto 24px; color: var(--muted); }

.afwl-trainers-hero { min-height: 560px; display: grid; align-items: center; position: relative; overflow: hidden; background: linear-gradient(110deg,rgba(8,27,45,.97),rgba(16,42,67,.86)),url('../img/course-leadership.jpg') center/cover no-repeat; }
.afwl-trainers-hero::before { content:''; position:absolute; width:420px; height:420px; border-radius:50%; left:-140px; top:-150px; background:rgba(216,166,74,.13); }
.afwl-trainers-hero-inner { position: relative; z-index: 1; max-width: 760px; margin-inline: auto 0; padding-block: 80px; color: #fff; }
.afwl-trainers-hero h1 { margin: 18px 0; color:#fff; font-size:clamp(2.55rem,5vw,4.5rem); line-height:1.2; }
.afwl-trainers-hero h1 em { color:var(--gold); font-style:normal; }
.afwl-trainers-hero p { max-width:650px; margin-bottom:28px; color:rgba(255,255,255,.83); font-size:1.1rem; }
.afwl-trainer-search { width:min(680px,100%); margin:0 auto 36px; display:flex; align-items:center; gap:12px; padding:0 18px; border:1px solid rgba(16,42,67,.12); border-radius:16px; background:#fff; box-shadow:var(--shadow); }
.afwl-trainer-search span { color:var(--turquoise); font-size:1.5rem; }
.afwl-trainer-search input { flex:1; min-height:58px; border:0; outline:0; background:transparent; font:inherit; color:var(--text); }
.afwl-trainers-public-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; }
.afwl-trainer-public-card { overflow:hidden; border:1px solid rgba(16,42,67,.08); border-radius:24px; background:#fff; box-shadow:var(--shadow); transition:var(--transition); }
.afwl-trainer-public-card:hover { transform:translateY(-8px); box-shadow:var(--shadow-lg); }
.afwl-trainer-public-card[hidden] { display:none; }
.afwl-trainer-photo-link { height:330px; position:relative; display:grid; place-items:center; overflow:hidden; background:linear-gradient(145deg,#eaf7f6,#edf2f7); color:var(--navy); }
.afwl-trainer-photo-link img { width:100%; height:100%; object-fit:cover; transition:var(--transition); }
.afwl-trainer-public-card:hover .afwl-trainer-photo-link img { transform:scale(1.045); }
.afwl-trainer-photo-link > span { font-size:3.4rem; font-weight:900; }
.afwl-trainer-photo-link > b { position:absolute; right:16px; bottom:16px; padding:8px 13px; border-radius:999px; background:var(--gold); color:var(--navy-dark); font-size:.78rem; }
.afwl-trainer-public-body { padding:24px; }
.afwl-trainer-public-body h3 { color:var(--navy); font-size:1.35rem; }
.afwl-trainer-title { min-height:28px; color:var(--turquoise); font-weight:700; }
.afwl-trainer-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.afwl-trainer-tags span { padding:7px 11px; border-radius:999px; background:rgba(21,166,161,.1); color:#0b756f; font-size:.76rem; font-weight:700; }
.afwl-trainer-card-metrics { display:flex; flex-wrap:wrap; gap:14px; margin:18px 0; padding-top:16px; border-top:1px solid #edf0f3; color:var(--muted); font-size:.82rem; }
.afwl-profile-link { color:var(--navy); font-weight:800; }

/* ============ دليل الدورات الجديد ============ */
.afwl-courses-directory-hero { min-height:440px; display:grid; align-items:center; position:relative; overflow:hidden; background:linear-gradient(110deg,rgba(8,27,45,.97),rgba(16,42,67,.84)),url('../img/course-business.jpg') center/cover no-repeat; }
.afwl-courses-directory-hero::before { content:''; position:absolute; width:420px; height:420px; border-radius:50%; left:-140px; top:-150px; background:rgba(216,166,74,.13); }
.afwl-courses-directory-hero-inner { position:relative; z-index:1; max-width:780px; margin-inline:auto 0; padding-block:80px; color:#fff; }
.afwl-courses-directory-hero h1 { margin:18px 0; color:#fff; font-size:clamp(2.55rem,5vw,4.5rem); line-height:1.2; }
.afwl-courses-directory-hero h1 em { color:var(--gold); font-style:normal; }
.afwl-courses-directory-hero p { max-width:680px; margin-bottom:28px; color:rgba(255,255,255,.83); font-size:1.1rem; }
.afwl-courses-public-directory { background:linear-gradient(180deg,var(--cream),#fff); }
.afwl-course-shop-layout { display:grid; grid-template-columns:250px minmax(0,1fr); align-items:start; gap:24px; }
.afwl-course-filters { position:sticky; top:118px; padding:20px; border:1px solid rgba(16,42,67,.1); border-radius:20px; background:#fff; box-shadow:0 12px 34px rgba(8,27,45,.08); }
.afwl-course-filters-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:18px; }
.afwl-course-filters-head span { color:var(--turquoise); font-size:.72rem; font-weight:800; }
.afwl-course-filters-head h3 { margin:3px 0 0; color:var(--navy); font-size:1.05rem; }
.afwl-course-filters-head button { padding:0; border:0; background:none; color:#8a5d13; font:inherit; font-size:.72rem; font-weight:800; cursor:pointer; }
.afwl-course-filter-toggle { display:none; width:100%; margin-bottom:14px; padding:13px 16px; border:1px solid rgba(16,42,67,.12); border-radius:12px; background:#fff; color:var(--navy); font:inherit; font-weight:800; }
.afwl-course-public-search { min-width:0; display:flex; align-items:center; gap:10px; padding:0 16px; border:1px solid rgba(16,42,67,.12); border-radius:14px; background:#f9fbfc; }
.afwl-course-public-search span { color:var(--turquoise); font-size:1.45rem; }
.afwl-course-public-search input { width:100%; min-height:50px; border:0; outline:0; background:transparent; color:var(--text); font:inherit; }
.afwl-course-filter-group { margin:20px 0 0; padding:18px 0 0; border:0; border-top:1px solid #edf0f3; }
.afwl-course-filter-group legend,.afwl-course-filter-group > label { display:block; margin-bottom:11px; color:var(--navy); font-size:.84rem; font-weight:900; }
.afwl-course-filter-options { max-height:225px; overflow:auto; padding-inline-end:3px; }
.afwl-course-filter-options label { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:9px; padding:7px 0; color:var(--text); font-size:.78rem; cursor:pointer; }
.afwl-course-filter-options input { width:16px; height:16px; accent-color:var(--navy); }
.afwl-course-filter-options b { min-width:25px; padding:2px 6px; border-radius:999px; background:#f0f3f5; color:var(--muted); text-align:center; font-size:.68rem; }
.afwl-course-filter-group select,.afwl-course-results-bar select { width:100%; min-height:42px; padding:8px 11px; border:1px solid rgba(16,42,67,.14); border-radius:11px; background:#fff; color:var(--text); font:inherit; font-size:.8rem; }
.afwl-course-results { min-width:0; }
.afwl-course-results-bar { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:18px; padding:14px 16px; border:1px solid rgba(16,42,67,.08); border-radius:16px; background:#fff; box-shadow:0 8px 24px rgba(8,27,45,.05); }
.afwl-course-results-bar > div { display:flex; align-items:baseline; gap:8px; }
.afwl-course-results-bar b { color:var(--navy); font-size:1rem; }
.afwl-course-results-bar span { color:var(--muted); font-size:.75rem; }
.afwl-course-results-bar > label { display:grid; grid-template-columns:auto 150px; align-items:center; gap:9px; color:var(--muted); font-size:.76rem; font-weight:700; }
.afwl-courses-public-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.afwl-course-public-card { display:flex; min-width:0; flex-direction:column; overflow:hidden; border:1px solid rgba(16,42,67,.09); border-radius:16px; background:#fff; box-shadow:0 8px 24px rgba(8,27,45,.07); transition:var(--transition); }
.afwl-course-public-card:hover { transform:translateY(-4px); box-shadow:0 16px 34px rgba(8,27,45,.13); }
.afwl-course-public-card[hidden] { display:none; }
.afwl-course-public-cover { height:145px; position:relative; display:grid; place-items:center; overflow:hidden; background:linear-gradient(145deg,var(--navy),var(--turquoise)); color:#fff; }
.afwl-course-public-cover::after { content:''; position:absolute; inset:0; background:linear-gradient(180deg,transparent 45%,rgba(8,27,45,.48)); pointer-events:none; }
.afwl-course-public-cover img { width:100%; height:100%; object-fit:cover; transition:var(--transition); }
.afwl-course-public-card:hover .afwl-course-public-cover img { transform:scale(1.045); }
.afwl-course-public-placeholder { position:relative; z-index:1; display:grid; width:64px; height:64px; place-items:center; border:1px solid rgba(255,255,255,.24); border-radius:20px; background:rgba(255,255,255,.12); font-size:1.45rem; font-weight:900; backdrop-filter:blur(8px); }
.afwl-course-status { position:absolute; z-index:2; right:16px; bottom:16px; padding:8px 13px; border-radius:999px; background:var(--turquoise); color:#fff; font-size:.76rem; font-weight:800; font-style:normal; }
.afwl-course-status.is-coming { background:var(--gold); color:var(--navy-dark); }
.afwl-course-public-cover > i { position:absolute; z-index:2; left:16px; top:16px; padding:7px 11px; border-radius:999px; background:rgba(255,255,255,.93); color:var(--navy); font-size:.72rem; font-weight:800; font-style:normal; }
.afwl-course-public-body { display:flex; flex:1; flex-direction:column; padding:15px; }
.afwl-course-track { align-self:flex-start; padding:6px 10px; border-radius:999px; background:rgba(21,166,161,.1); color:#0b756f; font-size:.76rem; font-weight:800; }
.afwl-course-public-body h3 { margin:9px 0 7px; color:var(--navy); font-size:1rem; line-height:1.45; }
.afwl-course-public-body > p { display:-webkit-box; flex:1; min-height:38px; margin:0; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; color:var(--muted); font-size:.75rem; line-height:1.65; }
.afwl-course-public-meta { display:grid; gap:5px; margin-top:12px; padding-top:11px; border-top:1px solid #edf0f3; color:var(--muted); font-size:.7rem; }
.afwl-course-public-foot { display:flex; align-items:flex-end; justify-content:space-between; gap:8px; margin-top:13px; }
.afwl-course-public-foot > a { color:var(--navy); font-size:.72rem; font-weight:800; }
.afwl-course-price { display:flex; align-items:baseline; gap:8px; }
.afwl-course-price b { color:var(--navy); font-size:.82rem; }
.afwl-course-price del { color:#9aa6b1; font-size:.78rem; }
.afwl-courses-public-empty,.afwl-no-course-results { max-width:760px; margin:0 auto; padding:48px 28px; text-align:center; border:1px dashed rgba(16,42,67,.2); border-radius:24px; background:linear-gradient(145deg,#fff,#f7fbfb); }
.afwl-courses-public-empty > span,.afwl-no-course-results > span { display:grid; width:72px; height:72px; margin:0 auto 16px; place-items:center; border-radius:22px; background:rgba(21,166,161,.12); color:var(--turquoise); font-size:2rem; }
.afwl-courses-public-empty h3,.afwl-no-course-results h3 { color:var(--navy); font-size:1.45rem; }
.afwl-courses-public-empty p,.afwl-no-course-results p { max-width:580px; margin:10px auto 24px; color:var(--muted); }

/* ============ صفحة اتصل بنا المستقلة ============ */
.afwl-contact-hero { min-height:560px; display:grid; align-items:center; position:relative; overflow:hidden; background:linear-gradient(110deg,rgba(8,27,45,.97),rgba(16,42,67,.84)),url('../img/course-projects.jpg') center/cover no-repeat; }
.afwl-contact-hero::before { content:''; position:absolute; width:420px; height:420px; border-radius:50%; left:-140px; top:-150px; background:rgba(216,166,74,.13); }
.afwl-contact-hero::after { content:''; position:absolute; width:430px; height:430px; left:5%; bottom:-170px; background:url('../img/athar-logo-mark-v1.png') center/contain no-repeat; opacity:.07; filter:brightness(0) invert(1); pointer-events:none; }
.afwl-contact-hero-inner { position:relative; z-index:1; max-width:780px; margin-inline:auto 0; padding-block:80px; color:#fff; }
.afwl-contact-hero h1 { margin:18px 0; color:#fff; font-size:clamp(2.55rem,5vw,4.5rem); line-height:1.2; }
.afwl-contact-hero h1 em { color:var(--gold); font-style:normal; }
.afwl-contact-hero p { max-width:680px; margin-bottom:28px; color:rgba(255,255,255,.83); font-size:1.1rem; }
.afwl-contact-directory { background:linear-gradient(180deg,var(--cream),#fff); }
.afwl-contact-methods { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px; }
.afwl-contact-method { min-width:0; padding:28px 24px; border:1px solid rgba(16,42,67,.08); border-radius:22px; background:#fff; box-shadow:var(--shadow); transition:var(--transition); }
a.afwl-contact-method:hover { transform:translateY(-7px); box-shadow:var(--shadow-lg); }
.afwl-contact-method-icon { width:58px; height:58px; display:grid; place-items:center; margin-bottom:22px; border-radius:18px; background:rgba(21,166,161,.1); color:var(--navy); font-size:1.65rem; font-weight:800; }
.afwl-contact-method small { display:block; margin-bottom:5px; color:var(--turquoise); font-size:.78rem; font-weight:800; }
.afwl-contact-method strong { display:block; min-height:34px; overflow-wrap:anywhere; color:var(--navy); font-size:1.1rem; }
.afwl-contact-method p { min-height:58px; margin:8px 0 17px; color:var(--muted); font-size:.84rem; line-height:1.7; }
.afwl-contact-method b { color:var(--navy); font-size:.82rem; }
.afwl-contact-form-section { background:#f3f6f7; }
.afwl-contact-layout { display:grid; grid-template-columns:minmax(280px,.78fr) minmax(0,1.35fr); gap:30px; align-items:stretch; }
.afwl-contact-panel { position:relative; overflow:hidden; padding:44px 38px; border-radius:28px; background:linear-gradient(145deg,var(--navy-dark),var(--navy)); color:#fff; box-shadow:var(--shadow-lg); }
.afwl-contact-panel::after { content:''; position:absolute; width:280px; height:280px; left:-95px; bottom:-110px; border-radius:50%; background:rgba(216,166,74,.09); }
.afwl-contact-panel .section-tag { color:var(--gold); }
.afwl-contact-panel h2 { max-width:420px; margin:7px 0 16px; color:#fff; font-size:clamp(1.9rem,3vw,2.65rem); line-height:1.35; }
.afwl-contact-panel > p { color:rgba(255,255,255,.78); }
.afwl-contact-panel ul { position:relative; z-index:1; display:grid; gap:20px; margin-top:36px; }
.afwl-contact-panel li { display:flex; gap:14px; align-items:flex-start; }
.afwl-contact-panel li > span { flex:0 0 38px; height:38px; display:grid; place-items:center; border-radius:50%; background:var(--gold); color:var(--navy-dark); font-weight:900; }
.afwl-contact-panel li b { display:block; color:#fff; }
.afwl-contact-panel li small { display:block; margin-top:2px; color:rgba(255,255,255,.68); line-height:1.6; }
.afwl-contact-form { padding:42px; border:1px solid rgba(16,42,67,.08); border-radius:28px; background:#fff; box-shadow:var(--shadow); }
.afwl-contact-form-heading { margin-bottom:26px; }
.afwl-contact-form-heading > span { color:var(--turquoise); font-weight:800; font-size:.85rem; }
.afwl-contact-form-heading h2 { margin:4px 0; color:var(--navy); font-size:2rem; }
.afwl-contact-form-heading p { color:var(--muted); font-size:.84rem; }
.afwl-contact-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.afwl-contact-form label { display:grid; gap:7px; color:var(--navy); font-weight:700; font-size:.88rem; }
.afwl-contact-form input,.afwl-contact-form select,.afwl-contact-form textarea { width:100%; padding:13px 15px; border:1px solid #dbe3e8; border-radius:12px; outline:0; background:#fbfcfd; color:var(--text); font:inherit; transition:var(--transition); }
.afwl-contact-form input:focus,.afwl-contact-form select:focus,.afwl-contact-form textarea:focus { border-color:var(--turquoise); background:#fff; box-shadow:0 0 0 4px rgba(21,166,161,.1); }
.afwl-contact-form textarea { min-height:150px; resize:vertical; }
.afwl-contact-form-wide { grid-column:1/-1; }
.afwl-contact-form-foot { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-top:24px; }
.afwl-contact-form-foot p { max-width:430px; color:var(--muted); font-size:.8rem; line-height:1.7; }
.afwl-contact-form-foot .btn { flex:0 0 auto; }
.afwl-contact-alert { margin-bottom:22px; padding:14px 17px; border-radius:12px; font-weight:700; font-size:.88rem; }
.afwl-contact-alert.is-success { border:1px solid #a8ded7; background:#eaf9f6; color:#096b65; }
.afwl-contact-alert.is-error { border:1px solid #f0c2bd; background:#fff0ee; color:#9b2f25; }
.afwl-contact-honeypot { position:absolute!important; width:1px!important; height:1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; }
.afwl-contact-cta .section-tag { color:var(--gold); margin-bottom:5px; }
.afwl-contact-cta .cta-text h2 { color:#fff; }

@media(max-width:980px){
  .afwl-course-shop-layout{grid-template-columns:220px minmax(0,1fr)}.afwl-courses-public-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .afwl-contact-methods{grid-template-columns:repeat(2,minmax(0,1fr))}.afwl-contact-layout{grid-template-columns:1fr}.afwl-contact-panel{padding:38px 32px}
}
@media(max-width:820px){
  .afwl-course-filter-toggle{display:block}.afwl-course-shop-layout{display:block}.afwl-course-filters{display:none;position:static;margin-bottom:18px}.afwl-course-filters.is-open{display:block}.afwl-courses-public-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:640px){
  .afwl-courses-directory-hero{min-height:400px}.afwl-courses-directory-hero-inner{padding-block:54px}.afwl-course-results-bar{align-items:flex-start;flex-direction:column}.afwl-course-results-bar>label{width:100%;grid-template-columns:auto 1fr}.afwl-courses-public-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.afwl-course-public-cover{height:130px}.afwl-course-public-foot{align-items:flex-start;flex-direction:column}
  .afwl-contact-hero{min-height:520px}.afwl-contact-hero-inner{padding-block:65px}.afwl-contact-methods{grid-template-columns:1fr}.afwl-contact-method p{min-height:0}.afwl-contact-form{padding:28px 22px}.afwl-contact-form-grid{grid-template-columns:1fr}.afwl-contact-form-wide{grid-column:auto}.afwl-contact-form-foot{align-items:stretch;flex-direction:column}.afwl-contact-form-foot .btn{width:100%}
}
@media(max-width:430px){.afwl-courses-public-grid{grid-template-columns:1fr}.afwl-course-public-cover{height:165px}}

.afwl-profile-hero { padding:70px 0 0; background:linear-gradient(145deg,var(--navy-dark),var(--navy)); color:#fff; }
.afwl-profile-back { display:inline-flex; margin-bottom:24px; color:rgba(255,255,255,.76); font-weight:700; }
.afwl-profile-summary-card { display:grid; grid-template-columns:240px minmax(0,1fr) auto; align-items:center; gap:34px; padding:34px; border:1px solid rgba(255,255,255,.14); border-radius:30px; background:rgba(255,255,255,.07); backdrop-filter:blur(10px); }
.afwl-profile-photo { width:220px; height:260px; position:relative; display:grid; place-items:center; overflow:hidden; border-radius:24px; background:linear-gradient(145deg,#eaf7f6,#edf2f7); color:var(--navy); font-size:3.5rem; font-weight:900; }
.afwl-profile-photo img { width:100%; height:100%; object-fit:cover; }
.afwl-profile-photo i { position:absolute; right:14px; bottom:14px; width:38px; height:38px; display:grid; place-items:center; border:4px solid var(--navy); border-radius:50%; background:var(--gold); color:var(--navy-dark); font-style:normal; }
.afwl-profile-identity h1 { margin:9px 0; color:#fff; font-size:clamp(2.2rem,4vw,3.6rem); }
.afwl-profile-identity > p { color:var(--gold); font-size:1.15rem; font-weight:700; }
.afwl-profile-identity .afwl-trainer-tags span { background:rgba(255,255,255,.1); color:#fff; }
.afwl-profile-actions { display:grid; gap:12px; min-width:205px; }
.afwl-profile-actions .btn { width:100%; }
.afwl-profile-metrics { position:relative; transform:translateY(45px); display:grid; grid-template-columns:repeat(4,1fr); gap:1px; overflow:hidden; border-radius:22px; background:rgba(16,42,67,.1); box-shadow:var(--shadow-lg); }
.afwl-profile-metrics > div { padding:24px; text-align:center; background:#fff; color:var(--navy); }
.afwl-profile-metrics b { display:block; font-size:1.65rem; }
.afwl-profile-metrics span { color:var(--muted); font-size:.82rem; }
.afwl-profile-content { padding-top:115px; }
.afwl-profile-layout { display:grid; grid-template-columns:minmax(0,1fr) 330px; gap:32px; align-items:start; }
.afwl-profile-main { display:grid; gap:24px; }
.afwl-profile-block, .afwl-profile-side > section { padding:32px; border:1px solid rgba(16,42,67,.08); border-radius:22px; background:#fff; box-shadow:var(--shadow); }
.afwl-profile-block h2 { margin:6px 0 16px; color:var(--navy); font-size:1.65rem; }
.afwl-profile-prose { color:var(--text); line-height:2; }
.afwl-muted { color:var(--muted); }
.afwl-profile-skill-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.afwl-profile-skill-grid span { padding:14px 16px; border-radius:13px; background:#f5faf9; color:var(--navy); font-weight:700; }
.afwl-profile-skill-grid span::first-letter { color:var(--turquoise); }
.afwl-profile-side { display:grid; gap:20px; position:sticky; top:110px; }
.afwl-profile-side h3 { margin-bottom:16px; color:var(--navy); }
.afwl-profile-side ul { display:grid; gap:13px; }
.afwl-profile-side li { display:flex; justify-content:space-between; gap:16px; padding-bottom:12px; border-bottom:1px solid #edf0f3; }
.afwl-profile-side li span { color:var(--muted); }
.afwl-profile-side audio { width:100%; margin-top:14px; }
.afwl-profile-side .afwl-profile-approval { display:flex; gap:14px; background:linear-gradient(145deg,#eefaf8,#fff); }
.afwl-profile-approval > span { flex:0 0 44px; height:44px; display:grid; place-items:center; border-radius:50%; background:var(--turquoise); color:#fff; font-size:1.3rem; }
.afwl-profile-approval p { color:var(--muted); font-size:.86rem; }
.afwl-profile-courses-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.afwl-profile-course { overflow:hidden; border:1px solid #e8edf0; border-radius:18px; background:#fff; color:inherit; transition:var(--transition); }
.afwl-profile-course:hover { transform:translateY(-5px); box-shadow:var(--shadow); }
.afwl-profile-course > img, .afwl-course-placeholder { width:100%; height:170px; display:grid; place-items:center; object-fit:cover; background:linear-gradient(135deg,var(--navy),var(--turquoise)); color:#fff; font-size:2.3rem; font-weight:900; }
.afwl-profile-course > div { padding:20px; }
.afwl-profile-course small { color:var(--turquoise); font-weight:800; }
.afwl-profile-course h3 { margin:6px 0; color:var(--navy); }
.afwl-profile-course p { color:var(--muted); font-size:.86rem; }
.afwl-profile-course b { display:block; margin-top:13px; color:var(--navy); }
.afwl-inline-empty { display:flex; align-items:center; gap:16px; padding:22px; border-radius:16px; background:#f7fafb; }
.afwl-inline-empty > span { font-size:2rem; color:var(--turquoise); }
.afwl-inline-empty h3 { color:var(--navy); }
.afwl-inline-empty p { color:var(--muted); }

/* ============================================================
   التجاوب — الأجهزة اللوحية
============================================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .fields-grid, .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .trainers-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 45px; }
  .about-grid, .faq-grid, .cta-inner { grid-template-columns: 1fr; gap: 45px; }
  .about-badge { right: 10px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .about-story-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-story-media { max-width: 680px; margin-inline: auto; }
  .about-values-grid { grid-template-columns: repeat(2, 1fr); }
  .about-page-cta .cta-inner { grid-template-columns: 1fr; }
  .afwl-trainers-public-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .afwl-profile-summary-card { grid-template-columns:200px minmax(0,1fr); }
  .afwl-profile-photo { width:190px; height:230px; }
  .afwl-profile-actions { grid-column:1/-1; grid-template-columns:1fr 1fr; }
  .afwl-profile-layout { grid-template-columns:1fr; }
  .afwl-profile-side { position:static; grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* القائمة الموسعة تتحول إلى قائمة هاتف مبكرًا حتى لا تتزاحم الروابط. */
@media (max-width: 1180px) {
  .menu-toggle { display: flex; z-index: 110; }
  .nav {
    position: fixed; inset: 0; z-index: 105;
    background: var(--navy);
    flex-direction: column; justify-content: center; gap: 23px;
    transform: translateX(100%); transition: transform .45s cubic-bezier(.4,0,.2,1);
  }
  .nav.open { transform: translateX(0); }
  .nav > a { color: var(--white); font-size: 1.15rem; }
  .nav > a.active { color: var(--gold); }
}

/* ============================================================
   التجاوب — الهواتف
============================================================ */
@media (max-width: 640px) {
  .section { padding: 65px 0; }
  .topbar-loc { display: none; }
  .topbar-inner { justify-content: center; }
  .topbar-social { display: none; }

  /* قائمة الهاتف */
  .menu-toggle { display: flex; z-index: 110; }
  .nav {
    position: fixed; inset: 0; z-index: 105;
    background: var(--navy);
    flex-direction: column; justify-content: center; gap: 26px;
    transform: translateX(100%); transition: transform .45s cubic-bezier(.4,0,.2,1);
  }
  .nav.open { transform: translateX(0); }
  .nav > a { color: var(--white); font-size: 1.25rem; }
  .nav > a.active { color: var(--gold); }

  .hero { height: 620px; }
  .hero-slide p { font-size: .98rem; }
  .hero-arrow { display: none; }
  .hero-dots { bottom: 100px; }

  .features { margin-top: -60px; }
  .features-grid { grid-template-columns: 1fr; gap: 18px; }
  .feature-card { padding: 26px 22px; }

  .about-img-main { height: 340px; border-radius: 120px 16px 120px 16px; }
  .about-badge { padding: 14px 18px; bottom: 16px; }
  .about-badge b { font-size: 1.9rem; }
  .about-page-hero { min-height: 560px; background-position: center; }
  .about-page-hero-content { padding-block: 75px; }
  .about-page-hero-content > p { font-size: 1rem; }
  .about-story-media { padding: 0 0 25px 20px; }
  .about-story-media img { height: 390px; border-radius: 22px 80px 22px 22px; }
  .about-story-seal { min-width: 145px; padding: 16px; }
  .about-story-points, .about-purpose-grid, .about-values-grid { grid-template-columns: 1fr; }
  .about-purpose-card { padding: 28px 24px; }

  .stats { background-attachment: scroll; padding: 60px 0; }
  .stat-item b { font-size: 2.1rem; }

  .fields-grid, .courses-grid, .trainers-grid { grid-template-columns: 1fr; }
  .trainer-media img { height: 300px; }

  .afwl-trainers-hero { min-height:520px; }
  .afwl-trainers-hero-inner { padding-block:65px; }
  .afwl-trainers-public-grid { grid-template-columns:1fr; }
  .afwl-trainer-photo-link { height:350px; }
  .afwl-profile-hero { padding-top:45px; }
  .afwl-profile-summary-card { grid-template-columns:1fr; padding:24px; text-align:center; }
  .afwl-profile-photo { width:190px; height:220px; margin-inline:auto; }
  .afwl-profile-identity .afwl-trainer-tags { justify-content:center; }
  .afwl-profile-actions { grid-column:auto; grid-template-columns:1fr; }
  .afwl-profile-metrics { grid-template-columns:repeat(2,1fr); }
  .afwl-profile-content { padding-top:95px; }
  .afwl-profile-block, .afwl-profile-side > section { padding:24px; }
  .afwl-profile-skill-grid, .afwl-profile-courses-grid, .afwl-profile-side { grid-template-columns:1fr; }

  .testi-card { padding: 34px 24px; }
  .testi-quote { left: 20px; font-size: 4rem; }

  .cta-form { padding: 24px; }
  .afwl-cta-actions { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; padding-bottom: 45px; }
}
