/*
 * Nahdha Executive Education — صفحة القسم الرئيسية (طبقة إبداعية فوق أسلوب الأكاديمية)
 *
 * الاتجاه (من مهارة UI/UX Pro Max): Bento Box Grid — شبكة معيارية غير متناظرة، زوايا 16-24px،
 * ظلال خفيفة، تكبير 1.02 عند المرور — مع لمسات Exaggerated Minimalism: أرقام عرض ضخمة
 * شبه شفافة ومساحات سالبة واسعة. الخط خط الموقع. كل الحركة تتوقف مع prefers-reduced-motion.
 *
 * البادئة xh = eXecutive Home. الأصناف هنا تُكمّل Tailwind المبني ولا تستبدله.
 */

.xh { --xh-forest: #203526; --xh-green: #51ba74; --xh-gold: #b8943f; --xh-ease: cubic-bezier(.22, .61, .36, 1); }

/* ── نقش خلفي هادئ للوحات الداكنة ─────────────────────────── */
.xh-pattern { position: relative; isolation: isolate; overflow: hidden; }
.xh-pattern::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000 20%, transparent 70%);
            mask-image: radial-gradient(ellipse at 70% 20%, #000 20%, transparent 70%);
}
.xh-pattern::after {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    width: 520px; height: 520px; border-radius: 50%;
    inset-inline-end: -160px; top: -200px;
    background: radial-gradient(circle, rgba(81,186,116,.28), transparent 62%);
}

/* ── الكشف التدريجي ────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
    html.xh-js .xh-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--xh-ease), transform .6s var(--xh-ease); }
    html.xh-js .xh-reveal.is-in { opacity: 1; transform: none; }
    html.xh-js .xh-reveal[data-delay="1"] { transition-delay: 90ms; }
    html.xh-js .xh-reveal[data-delay="2"] { transition-delay: 180ms; }
    html.xh-js .xh-reveal[data-delay="3"] { transition-delay: 270ms; }
    .xh-lift { transition: transform .35s var(--xh-ease), box-shadow .35s ease, border-color .35s ease; }
    .xh-lift:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 14px 36px rgba(15,23,42,.10); }
}

/* ── شبكة بينتو للغلاف ─────────────────────────────────────── */
.xh-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; }
@media (max-width: 960px) { .xh-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

.xh-bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.xh-bento > * { border-radius: 20px; }
.xh-bento__wide { grid-column: 1 / -1; }
.xh-tile {
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
    padding: 20px 20px 18px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    transition: background-color .3s ease, border-color .3s ease;
}
.xh-tile:hover { background: rgba(255,255,255,.12); border-color: rgba(81,186,116,.5); }
.xh-tile__num { font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.xh-tile__num small { font-size: .45em; font-weight: 600; color: var(--xh-green); margin-inline-start: 6px; }
.xh-tile__label { display: block; margin-top: 10px; font-size: .84rem; line-height: 1.5; color: rgba(255,255,255,.78); }
.xh-tile--accent { background: linear-gradient(135deg, rgba(81,186,116,.28), rgba(81,186,116,.08)); border-color: rgba(81,186,116,.45); }

/* عنوان العرض */
.xh-display { font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; }
.xh-display em { font-style: normal; color: var(--xh-green); position: relative; white-space: nowrap; }
.xh-display em::after {
    content: ""; position: absolute; inset-inline: 0; bottom: .06em; height: .12em; border-radius: 99px;
    background: linear-gradient(90deg, var(--xh-green), var(--xh-gold)); opacity: .55;
}

/* ── رؤوس الأقسام مع رقم ضخم شبه شفاف ─────────────────────── */
.xh-section { position: relative; }
.xh-ghost {
    position: absolute; inset-inline-end: 0; top: -.35em; z-index: 0; pointer-events: none; user-select: none;
    font-size: clamp(5rem, 14vw, 11rem); line-height: 1; font-weight: 700; letter-spacing: -.05em;
    color: var(--xh-forest); opacity: .05;
}
html.dark .xh-ghost { color: #fff; opacity: .05; }
.xh-section > :not(.xh-ghost) { position: relative; z-index: 1; }
.xh-eyebrow {
    display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .12em;
    text-transform: uppercase; color: var(--xh-green); margin-bottom: 10px;
}
.xh-eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 99px; background: linear-gradient(90deg, var(--xh-green), var(--xh-gold)); }

/* ── سلّم الرحلة: بينتو 4 أعمدة، الذروة تمتد عمودين ─────────── */
.xh-ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.xh-ladder__peak { grid-column: span 2; }
@media (max-width: 1024px) { .xh-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .xh-ladder { grid-template-columns: minmax(0, 1fr); } .xh-ladder__peak { grid-column: auto; } }
.xh-step { position: relative; overflow: hidden; }
.xh-step__ghost {
    position: absolute; inset-inline-end: 14px; top: -6px; font-size: 5.5rem; line-height: 1; font-weight: 700;
    letter-spacing: -.05em; color: var(--xh-forest); opacity: .06; pointer-events: none; user-select: none;
}
html.dark .xh-step__ghost { color: #fff; }
.xh-step--peak {
    background: linear-gradient(135deg, #203526 0%, #1f4d33 100%) !important; color: #fff; border-color: transparent !important;
}
.xh-step--peak .xh-step__ghost { color: #fff; opacity: .08; }
.xh-step--peak::after {
    content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 4px;
    background: linear-gradient(90deg, var(--xh-green), var(--xh-gold));
}

/* ── دورة التعلّم: مسار متصل ────────────────────────────────── */
.xh-cycle { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .xh-cycle { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .xh-cycle { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.xh-cycle__item { position: relative; border-radius: 16px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); padding: 18px 16px 16px; color: #fff; }
.xh-cycle__dot {
    display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
    background: #fff; color: var(--xh-forest); font-size: .78rem; font-weight: 700; margin-bottom: 12px;
}
@media (min-width: 1101px) {
    .xh-cycle::before {
        content: ""; position: absolute; top: 33px; inset-inline: 40px; height: 2px;
        background: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 8px, transparent 8px 16px); z-index: 0;
    }
    .xh-cycle__item { z-index: 1; }
}

/* ── الركائز: أيقونة في مربّع متدرّج ──────────────────────────── */
.xh-icon-tile {
    display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; color: #fff;
    background: linear-gradient(135deg, var(--xh-forest), #2e5a3d);
    box-shadow: 0 8px 20px rgba(32,53,38,.18);
}

/* ── الذروة ───────────────────────────────────────────────────── */
.xh-climax { position: relative; overflow: hidden; }
.xh-climax__mark {
    position: absolute; inset-inline-start: -.05em; bottom: -.35em; z-index: 0; pointer-events: none; user-select: none;
    font-size: clamp(6rem, 18vw, 15rem); line-height: 1; font-weight: 700; letter-spacing: -.06em; color: #fff; opacity: .045;
}
.xh-climax > :not(.xh-climax__mark) { position: relative; z-index: 1; }
.xh-price-box { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 24px; padding: 28px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.xh-price-box::before { content: ""; display: block; width: 44px; height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--xh-green), var(--xh-gold)); margin-bottom: 16px; }

/* ── مقابلة ───────────────────────────────────────────────────── */
.xh-vs {
    position: absolute; top: 50%; inset-inline-start: 50%; transform: translate(-50%, -50%);
    width: 44px; height: 44px; border-radius: 50%; display: none; align-items: center; justify-content: center;
    background: var(--xh-forest); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; box-shadow: 0 6px 16px rgba(32,53,38,.25);
}
html[dir="rtl"] .xh-vs { transform: translate(50%, -50%); }
@media (min-width: 768px) { .xh-vs { display: inline-flex; } }
