/* ============================================================
   EduSky — الإعلانات والمحتوى الممول في منصة Gravity
   الهوية: كحلي + أزرق ملكي + أخضر نيون (رموز style.css). كل إعلان يحمل شارة «إعلان» ظاهرة واسم الجهة الراعية.
   الأماكن في الصفحة الرئيسية: بعد قسم «ليه منصة جرافيتي؟» وقبل الكورسات (#eduskyBlock) + عمودان جانبيان للشاشات العريضة
   يختفيان وقت ظهور الهيرو (صورة المدرّسة) فلا يجاوران صورتها أبداً. الحركات لا تُعطَّل بـ prefers-reduced-motion (قرار المالك).
   ============================================================ */

:root {
  --es-ink: #0A0E27;
  --es-ink-soft: #0C1233;
  --es-surface: #111B47;
  --es-emerald: #0033CC;
  --es-gold: #AADB1E;
  --es-gold-soft: #C4EC4B;
  --es-gold-deep: #4F6B00;
  --es-cream: #E6ECFF;
  --es-parchment: #EEF3FF;
  --es-khaki: #BCCBF5;
  --es-muted: #B4BFE6;
}

/* ---------- حركات ---------- */
@keyframes eduskySlideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes eduskySlideSide { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes eduskyFadeOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes eduskyShine {
  0% { transform: translateX(160%) skewX(-18deg); }
  60%, 100% { transform: translateX(-220%) skewX(-18deg); }
}
.edusky-enter { animation: eduskySlideDown .45s cubic-bezier(.2, .9, .3, 1.1) both; }
.edusky-side.edusky-enter { animation: eduskySlideSide .5s cubic-bezier(.2, .9, .3, 1.1) both; }
.edusky-leave, .edusky-swap-out { animation: eduskyFadeOut .26s ease both; pointer-events: none; }

/* ---------- مكوّنات مشتركة ---------- */
.edusky-adchip {
  display: inline-flex; align-items: center;
  font: 800 11px/1 'Cairo', sans-serif;
  color: var(--es-ink);
  background: var(--es-parchment);
  border: 1px solid var(--es-khaki);
  border-radius: 6px;
  padding: 4px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.edusky-adchip--corner { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 3; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }

.edusky-tag {
  display: inline-flex; align-items: center;
  font: 800 11px/1 'Cairo', sans-serif;
  color: #0A0E27;
  background: linear-gradient(135deg, var(--es-gold-soft), var(--es-gold));
  border-radius: 9999px;
  padding: 4px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.edusky-tag--gold { color: #0A0E27; }

.edusky-x {
  flex-shrink: 0;
  width: 28px; height: 28px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--es-muted); background: transparent;
  border: 0; border-radius: 50%; cursor: pointer;
  transition: color .2s, background .2s;
}
.edusky-x:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.edusky-x--on-media {
  position: absolute; top: 6px; inset-inline-end: 6px; z-index: 4;
  width: 26px; height: 26px; color: #fff; background: rgba(10, 14, 39, .62);
}
.edusky-x:focus-visible, .edusky-btn:focus-visible, .edusky-top__cta:focus-visible, .edusky-card__link:focus-visible, .edusky-carousel__dot:focus-visible {
  outline: 2px solid var(--es-gold); outline-offset: 2px;
}

.edusky-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 6px 14px;
  font: 800 13px/1.3 'Cairo', sans-serif;
  color: var(--es-ink);
  background: linear-gradient(135deg, var(--es-gold-soft), var(--es-gold));
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(170, 219, 30, .3);
  transition: transform .2s, box-shadow .2s;
}
.edusky-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(170, 219, 30, .45); }
.edusky-btn--lg { min-height: 44px; padding: 8px 20px; font-size: 14px; border-radius: 12px; }

.edusky-sponsor { font: 600 12px/1.4 'Cairo', sans-serif; color: var(--es-muted); }

/* ---------- الوسائط ---------- */
.edusky-media-el { display: block; width: 100%; height: 100%; object-fit: cover; }
.edusky-ph {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  font: 900 34px/1 'Alexandria', 'Cairo', sans-serif; color: var(--es-gold-soft);
  background: radial-gradient(circle at 70% 30%, rgba(170, 219, 30, .28), transparent 55%), linear-gradient(145deg, var(--es-emerald), var(--es-ink));
}
.edusky-carousel { position: relative; width: 100%; height: 100%; }
.edusky-carousel__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.edusky-carousel__slide.is-active { opacity: 1; }
.edusky-carousel__dots { position: absolute; bottom: 4px; inset-inline: 0; display: flex; justify-content: center; z-index: 5; }
.edusky-carousel__dot {
  position: relative; width: 22px; height: 22px; padding: 0;
  background: transparent; border: 0; cursor: pointer;
}
.edusky-carousel__dot::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 7px; height: 7px;
  transform: translate(-50%, -50%); border-radius: 9999px;
  background: rgba(255, 255, 255, .5); box-shadow: 0 0 0 1px rgba(10, 14, 39, .35);
  transition: width .25s, background .25s;
}
.edusky-carousel__dot.is-active::before { width: 16px; background: var(--es-gold); }

/* ============================================================
   1) الشريط العلوي — يطفو فوق الهيرو بلا إزاحة للمحتوى
   ============================================================ */
#eduskyHeroTopSlot { display: flex; justify-content: center; padding: 0 16px; box-sizing: border-box; }
#eduskyHeroTopSlot[hidden] { display: none; }
.edusky-top-wrap { width: 100%; max-width: 880px; display: flex; justify-content: center; min-width: 0; }
.edusky-top {
  position: relative; display: flex; align-items: center; gap: 10px;
  max-width: 100%; min-width: 0; box-sizing: border-box;
  padding: 6px 12px 6px 8px; border-radius: 9999px; overflow: hidden;
  background: linear-gradient(135deg, rgba(19, 36, 31, .97), rgba(10, 14, 39, .97));
  border: 1px solid rgba(170, 219, 30, .5);
  box-shadow: 0 10px 26px -6px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.edusky-top::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 60px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(196, 236, 75, .14), transparent);
  animation: eduskyShine 5s ease-in-out infinite;
}
.edusky-top__media { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; overflow: hidden; border: 1.5px solid rgba(170, 219, 30, .55); background: var(--es-ink); }
.edusky-top__media .edusky-ph { font-size: 14px; }
.edusky-top__body { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; }
.edusky-top__title {
  min-width: 0; margin: 0; color: #fff; font: 700 13px/1.5 'Alexandria', 'Cairo', sans-serif;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.edusky-top__cta {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 9999px; white-space: nowrap; text-decoration: none;
  font: 800 12px/1.3 'Cairo', sans-serif; color: var(--es-ink);
  background: linear-gradient(135deg, var(--es-gold-soft), var(--es-gold));
  box-shadow: 0 3px 10px rgba(170, 219, 30, .35); transition: transform .2s;
}
.edusky-top__cta:hover { transform: translateY(-1px); }
@media (max-width: 560px) {
  .edusky-top { gap: 7px; padding-inline-start: 6px; }
  .edusky-top .edusky-tag { display: none; }
  .edusky-top__title { font-size: 12px; }
  .edusky-top__cta { padding: 6px 10px; }
  .edusky-top__cta svg { display: none; }
  .edusky-top__media { width: 26px; height: 26px; }
}

/* ============================================================
   2) البطاقتان الجانبيتان — للشاشات العريضة فقط (لا تغطيان المحتوى)
   ============================================================ */
.edusky-side {
  position: fixed; top: 130px; width: 156px; z-index: 45;
  transition: opacity .35s ease, visibility .35s;
  display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, var(--es-surface), var(--es-ink));
  border: 1px solid rgba(170, 219, 30, .38); border-radius: 16px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .45);
}
.edusky-side--left { left: 14px; }
.edusky-side--right { right: 14px; }
.edusky-side__media { position: relative; width: 100%; height: 176px; overflow: hidden; background: #050817; }
.edusky-side__grad { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 45%, rgba(10, 14, 39, .9) 100%); }
.edusky-side .edusky-carousel__dots { bottom: 36px; }
.edusky-side__tag { position: absolute; bottom: 8px; inset-inline-start: 8px; z-index: 3; }
.edusky-side__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 7px; text-align: center; }
.edusky-side__title { margin: 0; color: #fff; font: 800 14px/1.5 'Alexandria', 'Cairo', sans-serif; }
.edusky-side__subtitle { margin: 0; color: var(--es-muted); font: 500 12px/1.6 'Cairo', sans-serif; }
@media (max-width: 1023px) { .edusky-side { display: none !important; } }
/* اللابتوب (1024–1759px): الهامش أضيق من العمود، فتظهر بطاقة واحدة مدمجة ثابتة في الركن السفلي الأيمن
   (زر واتساب في الركن الأيسر) بدل العمودين — بنفس قاعدة الاختفاء طالما الهيرو ظاهر، وزر الإغلاق كما هو. */
@media (min-width: 1024px) and (max-width: 1759px) {
  .edusky-side--left { display: none !important; }
  .edusky-side--right { top: auto; bottom: 20px; right: 20px; width: 196px; }
  .edusky-side--right .edusky-side__media { height: 108px; }
  .edusky-side--right .edusky-side__subtitle { display: none; }
}
/* فوق 1760px هامش الصفحة ≥190px على كل جانب والعمود 156px + 14px ⇒ لا يلمس المحتوى.
   وطالما الهيرو (صورة م. نوران) ظاهر في الشاشة تبقى الأعمدة مخفية — يضبط الصنف سكربت edusky-ads.js */
body.edusky-hero-visible .edusky-side { opacity: 0; visibility: hidden; pointer-events: none; }

/* ============================================================
   3) «فرص من شركاء EduSky» — شريط أفقي أسفل الهيرو (دون 1700px)
   ============================================================ */
/* الحاوية تبدأ مطوية (hidden) ولا تُفتح إلا حين يصل إعلان فعلي ⇒ لا حجز مكان فارغ ولا اهتزاز في الصفحة */
#eduskyBlock { background: #FBFBFA; padding: 0 0 48px; }
#eduskyBlock[hidden] { display: none; }
#eduskyBlock .edusky-inner { max-width: 1280px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; gap: 20px; box-sizing: border-box; }
@media (min-width: 1536px) { #eduskyBlock .edusky-inner { max-width: 1380px; } }
@media (min-width: 640px) { #eduskyBlock .edusky-inner { padding: 0 24px; } }
@media (min-width: 1024px) { #eduskyBlock .edusky-inner { padding: 0 32px; } }
#eduskyMobileSlot, #eduskyDailySlot { box-sizing: border-box; }
#eduskyMobileSlot[hidden], #eduskyDailySlot[hidden] { display: none; }
#eduskyHeroTopSlot { padding: 0; }
@media (min-width: 1760px) { #eduskyMobileSlot { display: none; } }

.edusky-section-head {
  display: flex; align-items: center; justify-content: flex-start; gap: 10px; flex-wrap: wrap;
  padding: 0 0 10px;
}
.edusky-section-head__t { font: 800 15px/1.5 'Alexandria', 'Cairo', sans-serif; color: #0A0E27; }
.edusky-strip {
  display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 22px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.edusky-card {
  position: relative; flex: 0 0 252px; scroll-snap-align: start;
  display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(160deg, #14205A, #0A0E27);
  border: 1px solid rgba(170, 219, 30, .38); border-radius: 14px;
  box-shadow: 0 6px 14px rgba(10, 14, 39, .18);
}
.edusky-card__media { position: relative; height: 120px; overflow: hidden; background: #050817; }
.edusky-card__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.edusky-card__title { margin: 0; font: 800 14px/1.5 'Alexandria', 'Cairo', sans-serif; color: #fff; }
.edusky-card__link {
  color: inherit; text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* الرابط يغطي البطاقة كلها؛ نقاط الكاروسيل فوقه */
.edusky-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.edusky-card .edusky-carousel__dots, .edusky-card .edusky-adchip--corner { z-index: 2; }
.edusky-card__meta { font: 600 12px/1.4 'Cairo', sans-serif; color: var(--es-muted); }

/* ============================================================
   4) البطاقة العريضة — «منحة اليوم» وفرص الصفحات الداخلية
   ============================================================ */
.edusky-wide {
  display: grid; grid-template-columns: 1fr; overflow: hidden;
  background: linear-gradient(150deg, #14205A, #0A0E27);
  border: 1px solid rgba(170, 219, 30, .4); border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}
.edusky-wide__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #050817; }
.edusky-wide__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.edusky-wide__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.edusky-wide__title { margin: 0; color: #fff; font: 800 18px/1.6 'Alexandria', 'Cairo', sans-serif; }
.edusky-wide__subtitle { margin: 0; color: var(--es-muted); font: 500 14px/1.8 'Cairo', sans-serif; }
.edusky-wide__foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
@media (min-width: 720px) {
  .edusky-wide { grid-template-columns: minmax(220px, 36%) 1fr; }
  .edusky-wide__media { aspect-ratio: auto; min-height: 200px; }
  .edusky-wide__body { padding: 20px 24px; justify-content: center; }
  .edusky-wide__title { font-size: 21px; }
}
#eduskyOppsSlot[hidden] { display: none; }
#eduskyOppsSlot:not([hidden]) { margin: 0 0 20px; }

/* ============================================================
   5) صفحات الفرص (opportunity · my-plan · compare-destinations)
   تعتمد هيكل الصفحات الداخلية: شريط fusha-app + بطاقات بيضاء + ذهبي للإجراء.
   ============================================================ */
.es-hero { position: relative; overflow: hidden; border-radius: 14px; background: var(--es-ink); color: #fff; padding: 22px 20px; box-shadow: 0 10px 26px rgba(0, 51, 204, .2); }
.es-hero::before { content: ""; position: absolute; inset: 0; opacity: .12; background-size: 48px 48px; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'><path d='M48 0H0V48' fill='none' stroke='%23AADB1E' stroke-width='1'/><circle cx='0' cy='0' r='2' fill='%23AADB1E'/></svg>"); }
.es-hero > * { position: relative; }
.es-hero h1 { margin: 6px 0 0; font: 900 24px/1.6 'Alexandria', 'Cairo', sans-serif; display: flex; align-items: center; gap: 10px; }
.es-hero h1 svg, .es-hero h1 i { color: var(--es-gold); flex-shrink: 0; }
.es-hero p { margin: 6px 0 0; color: rgba(255, 255, 255, .88); font: 500 14px/1.9 'Cairo', sans-serif; max-width: 62ch; }
@media (min-width: 640px) { .es-hero { padding: 28px 30px; } .es-hero h1 { font-size: 30px; } }

.es-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.es-tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border-radius: 10px; border: 1px solid #E7E5E4; background: #fff; color: #44403C;
  font: 700 14px/1.4 'Cairo', sans-serif; text-decoration: none; transition: background .2s, border-color .2s;
}
.es-tab:hover { background: var(--es-parchment); }
.es-tab[aria-current="page"] { background: var(--es-ink-soft); color: var(--es-gold-soft); border-color: var(--es-ink-soft); }
.es-tab svg { width: 16px; height: 16px; }

.es-note {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px;
  background: #EEF3FF; border: 1px solid #BCCBF5; color: #0A1A66; font: 600 13px/1.9 'Cairo', sans-serif;
}
.es-note svg { flex-shrink: 0; margin-top: 4px; width: 16px; height: 16px; }

.es-card { background: #fff; border: 1px solid #E7E5E4; border-radius: 14px; padding: 18px; box-shadow: 0 2px 10px rgba(10, 14, 39, .04); }
@media (min-width: 640px) { .es-card { padding: 24px; } }
.es-card h2, .es-card h3.es-h { margin: 0 0 12px; display: flex; align-items: center; gap: 10px; color: #0A0E27; font: 800 18px/1.6 'Alexandria', 'Cairo', sans-serif; }
.es-card h2::before { content: ""; width: 4px; height: 20px; border-radius: 2px; background: var(--es-gold); flex-shrink: 0; }
.es-prose { color: #44403C; font: 500 15px/2 'Cairo', sans-serif; white-space: pre-line; overflow-wrap: anywhere; }
.es-muted { color: #78716C; font: 500 13px/1.8 'Cairo', sans-serif; }

.es-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 9999px; font: 700 12px/1.5 'Cairo', sans-serif; background: #F5F5F4; color: #44403C; border: 1px solid #E7E5E4; }
.es-chip--gold { background: linear-gradient(135deg, var(--es-gold-soft), var(--es-gold)); color: #0A0E27; border: 0; }
.es-chip--dark { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .22); }
.es-chip--green { background: #ECF4EF; color: #14532D; border-color: #C9DFD0; }

.es-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 18px;
  background: #fff; color: #1C1917; border: 1px solid #D6D3D1; border-radius: 12px; cursor: pointer; text-decoration: none;
  font: 700 14px/1.4 'Cairo', sans-serif; transition: background .2s;
}
.es-btn-ghost:hover { background: #F5F5F4; }
button.edusky-btn { border: 0; cursor: pointer; font-family: 'Alexandria', 'Cairo', sans-serif; }
button.edusky-btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.es-btn-ghost:focus-visible, .es-tab:focus-visible, .es-input:focus-visible { outline: 2px solid var(--es-gold); outline-offset: 2px; }

/* حقول النماذج */
.es-field { margin-bottom: 14px; }
.es-label { display: block; margin-bottom: 6px; color: #292524; font: 700 14px/1.5 'Cairo', sans-serif; }
.es-label .es-req { color: #B42318; margin-inline-start: 4px; }
.es-input {
  display: block; width: 100%; box-sizing: border-box; min-height: 46px; padding: 10px 14px;
  font: 500 15px/1.5 'Cairo', sans-serif; color: #1C1917; background: #FAFAF9;
  border: 1px solid #D6D3D1; border-radius: 10px; transition: border-color .2s, box-shadow .2s;
}
.es-input:focus { outline: none; border-color: var(--es-gold); background: #fff; box-shadow: 0 0 0 3px rgba(170, 219, 30, .25); }
.es-input[aria-invalid="true"] { border-color: #B42318; background: #FEF3F2; }
.es-input::placeholder { color: #A8A29E; }
.es-help { margin-top: 4px; color: #78716C; font: 500 12px/1.6 'Cairo', sans-serif; }
.es-error { margin-top: 4px; color: #B42318; font: 700 13px/1.6 'Cairo', sans-serif; }
.es-error:empty { display: none; }
.es-consent { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 6px; color: #44403C; font: 500 13px/1.9 'Cairo', sans-serif; cursor: pointer; }
.es-consent input { margin-top: 6px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--es-emerald); cursor: pointer; }
.es-alert { padding: 12px 14px; border-radius: 10px; font: 600 14px/1.8 'Cairo', sans-serif; margin: 10px 0; }
.es-alert--err { background: #FEF3F2; color: #7A271A; border: 1px solid #FDA29B; }
.es-alert--ok { background: #ECF4EF; color: #14532D; border: 1px solid #C9DFD0; }

/* خيارات الاستبيان (راديو حقيقي) */
.es-q { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.es-q legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 12px; color: #0A0E27; font: 800 17px/1.6 'Alexandria', 'Cairo', sans-serif; }
.es-q__n { width: 30px; height: 30px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--es-gold); color: #0A0E27; font: 900 14px/1 'Cairo', sans-serif; }
.es-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.es-choice { position: relative; display: block; cursor: pointer; }
.es-choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.es-choice__body { display: block; height: 100%; box-sizing: border-box; padding: 12px 14px; border: 2px solid #E7E5E4; border-radius: 12px; background: #FAFAF9; transition: border-color .2s, background .2s, box-shadow .2s; }
.es-choice__body strong { display: block; color: #1C1917; font: 800 15px/1.6 'Cairo', sans-serif; }
.es-choice__body small { display: block; margin-top: 2px; color: #78716C; font: 500 12.5px/1.7 'Cairo', sans-serif; }
.es-choice:hover .es-choice__body { border-color: #D6D3D1; background: #F5F5F4; }
.es-choice input:checked + .es-choice__body { border-color: var(--es-gold); background: #F3FADC; box-shadow: 0 0 0 3px rgba(170, 219, 30, .18); }
.es-choice input:focus-visible + .es-choice__body { outline: 2px solid var(--es-emerald); outline-offset: 2px; }

/* نتائج الخطة */
.es-result { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; background: #fff; border: 1px solid #E7E5E4; border-inline-start: 5px solid var(--es-gold); border-radius: 14px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(10, 14, 39, .04); }
.es-result h3 { margin: 4px 0 2px; color: #1C1917; font: 800 17px/1.7 'Alexandria', 'Cairo', sans-serif; }
.es-result__meta { color: #57534E; font: 500 14px/1.8 'Cairo', sans-serif; }
.es-result__row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
@media (min-width: 720px) { .es-result { flex-direction: row; align-items: center; justify-content: space-between; } }

/* هيكل التحميل */
@keyframes esPulse { 50% { opacity: .45; } }
.es-skel { background: #E7E5E4; border-radius: 8px; animation: esPulse 1.4s ease-in-out infinite; }
.es-empty { text-align: center; padding: 34px 16px; background: #fff; border: 1px solid #E7E5E4; border-radius: 14px; }
.es-empty img { width: 96px; height: auto; margin: 0 auto 8px; }
.es-empty h3 { margin: 0 0 6px; color: #1C1917; font: 800 17px/1.7 'Alexandria', 'Cairo', sans-serif; }
.es-empty p { margin: 0 auto 14px; max-width: 46ch; color: #57534E; font: 500 14px/1.9 'Cairo', sans-serif; }
.es-empty .es-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* صفحة الفرصة */
.es-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: #78716C; font: 600 13px/1.6 'Cairo', sans-serif; }
.es-crumbs a { color: #57534E; }
.es-crumbs [aria-current] { color: #1C1917; font-weight: 800; overflow-wrap: anywhere; }
.es-opp-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 1024px) { .es-opp-layout { grid-template-columns: minmax(0, 1fr) 390px; } .es-sticky { position: sticky; top: 112px; } }
.es-media { position: relative; border-radius: 12px; overflow: hidden; margin-bottom: 16px; height: clamp(170px, 24vw, 300px); background: #050817; }
.es-media .edusky-media-el { position: absolute; inset: 0; }
.es-media .edusky-adchip { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; }
.es-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 16px; }
.es-spec { padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(170, 219, 30, .28); }
.es-spec dt { margin: 0 0 4px; color: #B4BFE6; font: 600 12px/1.5 'Cairo', sans-serif; }
.es-spec dd { margin: 0; color: #fff; font: 800 15px/1.6 'Cairo', sans-serif; overflow-wrap: anywhere; }
.es-spec--gold dd { color: var(--es-gold-soft); }
.es-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.es-tag { padding: 6px 12px; border-radius: 8px; background: #EEF3FF; color: #0033CC; border: 1px solid var(--es-khaki); font: 700 13px/1.5 'Cairo', sans-serif; }
.es-lead { border: 2px solid var(--es-gold); scroll-margin-top: 110px; }
.es-lead__head { text-align: center; margin-bottom: 14px; }
.es-lead__head h2 { justify-content: center; margin-bottom: 6px; }
.es-lead__head h2::before { display: none; }
.es-partner { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px; background: #fff; border: 1px solid #E7E5E4; border-radius: 14px; }
.es-partner img { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; background: var(--es-ink-soft); padding: 6px; flex-shrink: 0; }
.es-partner__name { color: #1C1917; font: 800 15px/1.5 'Cairo', sans-serif; }
.es-partner__meta { color: #78716C; font: 500 12px/1.6 'Cairo', sans-serif; overflow-wrap: anywhere; }
.es-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.es-related a { display: block; padding: 14px 16px; background: #fff; border: 1px solid #E7E5E4; border-radius: 14px; text-decoration: none; transition: border-color .2s, transform .2s; }
.es-related a:hover { border-color: var(--es-gold); transform: translateY(-2px); }
.es-related h3 { margin: 8px 0 4px; color: #1C1917; font: 800 15px/1.7 'Alexandria', 'Cairo', sans-serif; }
.es-success { text-align: center; padding: 8px 4px; }
.es-success__ic { width: 56px; height: 56px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #ECF4EF; color: var(--es-emerald); }
.es-success h2 { justify-content: center; }
.es-success h2::before { display: none; }
.es-code { display: inline-block; direction: ltr; unicode-bidi: isolate; padding: 4px 10px; border-radius: 8px; background: #EEF3FF; border: 1px dashed var(--es-khaki); font: 700 13px/1.5 ui-monospace, Consolas, monospace; color: #0033CC; }

/* مقارنة الوجهات */
.es-cmp-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.es-cmp-pick label { cursor: pointer; position: relative; }
.es-cmp-pick input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.es-cmp-pick span { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 9999px; border: 1px solid #D6D3D1; background: #fff; color: #44403C; font: 700 13px/1.4 'Cairo', sans-serif; transition: background .2s, border-color .2s; }
.es-cmp-pick input:checked + span { background: var(--es-ink-soft); color: var(--es-gold-soft); border-color: var(--es-ink-soft); }
.es-cmp-pick input:focus-visible + span { outline: 2px solid var(--es-gold); outline-offset: 2px; }
.es-cmp-wrap { display: none; overflow-x: auto; background: #fff; border: 1px solid #E7E5E4; border-radius: 14px; }
.es-cmp { width: 100%; border-collapse: separate; border-spacing: 0; text-align: start; font: 500 14px/1.8 'Cairo', sans-serif; }
.es-cmp th, .es-cmp td { padding: 14px 16px; vertical-align: top; border-bottom: 1px solid #EEECE9; min-width: 170px; }
.es-cmp thead th { background: var(--es-ink-soft); color: #fff; font: 800 15px/1.6 'Alexandria', 'Cairo', sans-serif; border-bottom: 2px solid var(--es-gold); }
.es-cmp tbody th { background: #F4F6FF; color: #0A0E27; font: 800 13px/1.7 'Cairo', sans-serif; min-width: 130px; position: sticky; inset-inline-start: 0; }
.es-cmp thead th:first-child { position: sticky; inset-inline-start: 0; z-index: 2; }
.es-cmp tbody tr:last-child th, .es-cmp tbody tr:last-child td { border-bottom: 0; }
.es-cmp tbody tr:hover td { background: #F8F9FF; }
.es-cmp-cards { display: grid; gap: 12px; }
.es-cmp-card { background: #fff; border: 1px solid #E7E5E4; border-radius: 14px; overflow: hidden; }
.es-cmp-card h3 { margin: 0; padding: 12px 16px; background: var(--es-ink-soft); color: #fff; border-bottom: 2px solid var(--es-gold); font: 800 16px/1.6 'Alexandria', 'Cairo', sans-serif; }
.es-cmp-card dl { margin: 0; padding: 4px 16px 8px; }
.es-cmp-card dt { margin-top: 10px; color: #78716C; font: 700 12px/1.6 'Cairo', sans-serif; }
.es-cmp-card dd { margin: 0; color: #1C1917; font: 600 14px/1.8 'Cairo', sans-serif; overflow-wrap: anywhere; }
@media (min-width: 760px) { .es-cmp-wrap { display: block; } .es-cmp-cards { display: none; } }
.edusky-wide__media:has(> .edusky-ph) { aspect-ratio: 21 / 6; min-height: 0; }
@media (min-width: 720px) { .edusky-wide__media:has(> .edusky-ph) { aspect-ratio: auto; min-height: 200px; } }
