/*
 * Nahdha Executive Education — طبقة تصميم القسم التنفيذي
 *
 * قاعدتان تحكمان هذا الملف:
 *  1. لا بطاقة ملوّنة ولا ظلّ ثقيل ولا زاوية دائرية مبالغة — التمييز يأتي
 *     من التباعد والخط والخطوط الشعرية، لا من الزينة.
 *  2. كل الألوان عبر متغيّرات، والوضع الداكن يعيد تعريفها فقط.
 *
 * البادئة nee = Nahdha Executive Education.
 */

.nee {
    --nee-ink:        #0f1a13;
    --nee-ink-2:      #46564b;
    --nee-ink-3:      #7c8a81;
    --nee-paper:      #fbfaf7;
    --nee-paper-2:    #f3f1ec;
    --nee-surface:    #ffffff;
    --nee-rule:       #e2ded6;
    --nee-rule-soft:  #eeebe4;
    --nee-forest:     #203526;
    --nee-accent:     #51ba74;
    --nee-gold:       #9a7b3f;

    --nee-measure:    68ch;
    --nee-radius:     2px;

    background: var(--nee-paper);
    color: var(--nee-ink);
    font-feature-settings: "kern" 1, "liga" 1;
}

html.dark .nee {
    --nee-ink:        #eef1ee;
    --nee-ink-2:      #a3b0a7;
    --nee-ink-3:      #75837a;
    --nee-paper:      #0b100c;
    --nee-paper-2:    #111813;
    --nee-surface:    #121a15;
    --nee-rule:       #24302a;
    --nee-rule-soft:  #1a231d;
    --nee-forest:     #d9e6dd;
    --nee-accent:     #51ba74;
    --nee-gold:       #c9a967;
}

/* ── إيقاع الصفحة ─────────────────────────────────────────── */
.nee-wrap      { max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
.nee-wrap-tight{ max-width: 840px;  margin-inline: auto; padding-inline: 24px; }
.nee-section   { padding-block: 88px; }
.nee-section--tight { padding-block: 56px; }
.nee-rule      { border: 0; border-top: 1px solid var(--nee-rule); margin: 0; }

@media (max-width: 768px) {
    .nee-section { padding-block: 56px; }
    .nee-wrap, .nee-wrap-tight { padding-inline: 20px; }
}

/* ── العناوين ─────────────────────────────────────────────── */
.nee-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--nee-ink-3);
    margin: 0 0 18px;
}

.nee-h1 {
    font-size: clamp(2.15rem, 5.2vw, 3.9rem);
    line-height: 1.08;
    letter-spacing: -0.022em;
    font-weight: 600;
    margin: 0;
    color: var(--nee-ink);
}

.nee-h2 {
    font-size: clamp(1.55rem, 3vw, 2.3rem);
    line-height: 1.18;
    letter-spacing: -0.018em;
    font-weight: 600;
    margin: 0;
    color: var(--nee-ink);
}

.nee-h3 {
    font-size: 1.12rem;
    line-height: 1.35;
    letter-spacing: -0.008em;
    font-weight: 600;
    margin: 0;
    color: var(--nee-ink);
}

.nee-lede {
    font-size: clamp(1rem, 1.6vw, 1.16rem);
    line-height: 1.75;
    color: var(--nee-ink-2);
    max-width: var(--nee-measure);
    margin: 22px 0 0;
}

.nee-body { line-height: 1.85; color: var(--nee-ink-2); max-width: var(--nee-measure); }
.nee-body p + p { margin-top: 1.1em; }

/* ── الغلاف العلوي ────────────────────────────────────────── */
.nee-hero {
    background: var(--nee-paper);
    border-bottom: 1px solid var(--nee-rule);
    padding-block: 108px 76px;
}

@media (max-width: 768px) { .nee-hero { padding-block: 72px 52px; } }

.nee-crumbs {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    list-style: none; margin: 0 0 28px; padding: 0;
    font-size: 12px; color: var(--nee-ink-3);
}
.nee-crumbs li + li::before { content: "/"; margin-inline-end: 8px; opacity: .5; }
.nee-crumbs a { color: inherit; text-decoration: none; }
.nee-crumbs a:hover { color: var(--nee-ink); }

/* ── الشبكات ──────────────────────────────────────────────── */
.nee-grid { display: grid; gap: 1px; background: var(--nee-rule); border: 1px solid var(--nee-rule); }
.nee-grid > * { background: var(--nee-surface); }
.nee-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nee-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nee-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) { .nee-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .nee-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  {
    .nee-grid--2, .nee-grid--3, .nee-grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* ── بطاقة برنامج ─────────────────────────────────────────── */
.nee-card {
    display: flex; flex-direction: column;
    padding: 30px 28px 26px;
    text-decoration: none; color: inherit;
    transition: background-color .18s ease;
    min-height: 100%;
}
.nee-card:hover { background: var(--nee-paper-2); }
.nee-card:focus-visible { outline: 2px solid var(--nee-accent); outline-offset: -2px; }

.nee-card__index {
    font-size: 11px; font-weight: 600; letter-spacing: .14em;
    color: var(--nee-ink-3); margin-bottom: 16px;
}
.nee-card__title { font-size: 1.12rem; font-weight: 600; line-height: 1.35; margin: 0 0 10px; }
.nee-card__sub   { font-size: .86rem; color: var(--nee-ink-3); margin: 0 0 18px; line-height: 1.6; }
.nee-card__body  { font-size: .92rem; color: var(--nee-ink-2); line-height: 1.7; margin: 0 0 24px; }
.nee-card__foot  {
    margin-top: auto; padding-top: 18px; border-top: 1px solid var(--nee-rule-soft);
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    font-size: .82rem; color: var(--nee-ink-3);
}

/* ── السعر ────────────────────────────────────────────────── */
.nee-price       { font-size: 1.05rem; font-weight: 600; color: var(--nee-ink); letter-spacing: -.01em; }
.nee-price--lg   { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 600; letter-spacing: -.025em; }
.nee-price__unit { font-size: .62em; font-weight: 500; color: var(--nee-ink-3); margin-inline-start: 6px; }
.nee-price__note { font-size: 12px; color: var(--nee-ink-3); margin-top: 8px; }
.nee-price__was  { font-size: .9rem; color: var(--nee-ink-3); text-decoration: line-through; }

/* ── الأزرار ──────────────────────────────────────────────── */
.nee-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 30px; border-radius: var(--nee-radius);
    font-size: .9rem; font-weight: 600; letter-spacing: .01em;
    text-decoration: none; border: 1px solid transparent; cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.nee-btn--primary { background: var(--nee-forest); color: var(--nee-paper); }
html.dark .nee-btn--primary { background: var(--nee-accent); color: #0b100c; }
.nee-btn--primary:hover { background: #2c4733; }
html.dark .nee-btn--primary:hover { background: #6fcb8d; }

.nee-btn--ghost { background: transparent; color: var(--nee-ink); border-color: var(--nee-rule); }
.nee-btn--ghost:hover { border-color: var(--nee-ink-3); }

.nee-btn:focus-visible { outline: 2px solid var(--nee-accent); outline-offset: 2px; }
.nee-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ── قائمة موصوفة ─────────────────────────────────────────── */
.nee-list { list-style: none; margin: 0; padding: 0; }
.nee-list li {
    padding: 15px 0; border-top: 1px solid var(--nee-rule-soft);
    color: var(--nee-ink-2); line-height: 1.65; font-size: .95rem;
}
.nee-list li:first-child { border-top: 0; }

.nee-numbered { list-style: none; margin: 0; padding: 0; counter-reset: nee; }
.nee-numbered li {
    counter-increment: nee; position: relative;
    padding: 18px 0 18px 0; padding-inline-start: 46px;
    border-top: 1px solid var(--nee-rule-soft);
    color: var(--nee-ink-2); line-height: 1.65;
}
.nee-numbered li:first-child { border-top: 0; }
.nee-numbered li::before {
    content: counter(nee, decimal-leading-zero);
    position: absolute; inset-inline-start: 0; top: 18px;
    font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--nee-ink-3);
}

/* ── الوحدات (أكورديون) ───────────────────────────────────── */
.nee-module { border-top: 1px solid var(--nee-rule); }
.nee-module:last-child { border-bottom: 1px solid var(--nee-rule); }
.nee-module__head {
    width: 100%; display: flex; align-items: baseline; gap: 18px;
    padding: 26px 0; background: none; border: 0; cursor: pointer;
    text-align: start; color: inherit; font: inherit;
}
.nee-module__num { font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--nee-ink-3); min-width: 26px; }
.nee-module__title { font-size: 1.05rem; font-weight: 600; flex: 1; }
.nee-module__count { font-size: .8rem; color: var(--nee-ink-3); }
.nee-module__body { padding: 0 0 26px; padding-inline-start: 44px; }
.nee-module[open] .nee-module__head { padding-bottom: 14px; }
.nee-module summary::-webkit-details-marker { display: none; }
.nee-module summary { list-style: none; }

/* ── جدول المقارنة ────────────────────────────────────────── */
.nee-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nee-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .92rem; }
.nee-table th, .nee-table td {
    padding: 18px 20px; text-align: start; vertical-align: top;
    border-bottom: 1px solid var(--nee-rule-soft); line-height: 1.6;
}
.nee-table thead th {
    border-bottom: 1px solid var(--nee-rule);
    font-weight: 600; color: var(--nee-ink); font-size: .95rem;
}
.nee-table tbody th {
    font-weight: 500; color: var(--nee-ink-3); font-size: .82rem;
    white-space: nowrap; width: 200px;
}

/* ── لوحة داكنة للمقاطع البارزة ───────────────────────────── */
/*
 * اللوحة الداكنة تقلب المتغيّرات بدل أن تُرقَّع عنصراً عنصراً.
 *
 * ترقيع العناوين وحدها هو ما جعل القوائم والأسعار والأزرار تختفي: كلها
 * ترث --nee-ink وأخواته، وكان الحبر داكناً على أرضية داكنة. قلب المتغيّرات
 * هنا يُصلح كل ما بداخلها دفعة واحدة، وكل عنصر يُضاف لاحقاً يرث الصحيح.
 */
.nee-panel {
    --nee-ink:        #f3f7f4;
    --nee-ink-2:      rgba(243, 247, 244, .78);
    --nee-ink-3:      rgba(243, 247, 244, .58);
    --nee-surface:    rgba(255, 255, 255, .05);
    --nee-rule:       rgba(255, 255, 255, .18);
    --nee-rule-soft:  rgba(255, 255, 255, .11);

    /* يقلبان الزرّ الأساسي: فاتح على الأرضية الداكنة بدل غابي على غابي. */
    --nee-forest:     #f3f7f4;
    --nee-paper:      #1b2d21;
    --nee-paper-2:    #294034;

    background: #203526;
    color: var(--nee-ink);
    padding: 72px 0;
}

.nee-panel .nee-btn--primary:hover { background: #ffffff; }
.nee-panel .nee-btn--ghost:hover { border-color: var(--nee-ink-2); }

html.dark .nee-panel {
    --nee-ink:        #eef1ee;
    --nee-ink-2:      #a3b0a7;
    --nee-ink-3:      #75837a;
    --nee-surface:    #121a15;
    --nee-rule:       #24302a;
    --nee-rule-soft:  #1a231d;
    --nee-forest:     #d9e6dd;
    --nee-paper:      #0b100c;
    --nee-paper-2:    #111813;

    background: #111813;
    border-block: 1px solid #24302a;
}
html.dark .nee-panel .nee-btn--primary { background: var(--nee-accent); color: #0b100c; }
html.dark .nee-panel .nee-btn--primary:hover { background: #6fcb8d; }

/* ── مؤشّرات رقمية ────────────────────────────────────────── */
.nee-stat__value { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 600; letter-spacing: -.025em; line-height: 1; }
.nee-stat__label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--nee-ink-3); margin-top: 12px; }

/* ── وسم حالة ─────────────────────────────────────────────── */
.nee-tag {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    color: var(--nee-ink-3); border: 1px solid var(--nee-rule); border-radius: var(--nee-radius);
    padding: 5px 10px;
}
.nee-tag--draft { color: var(--nee-gold); border-color: var(--nee-gold); }

/* ── تنبيه بيانات ناقصة ───────────────────────────────────── */
.nee-pending {
    border: 1px dashed var(--nee-rule); border-radius: var(--nee-radius);
    padding: 24px 26px; color: var(--nee-ink-3); font-size: .9rem; line-height: 1.7;
}

/* ── حركة مقيّدة ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .nee *, .nee *::before, .nee *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* ── نموذج التقديم ────────────────────────────────────────── */
.nee-form { display: grid; gap: 0; }
.nee-fieldset {
    border: 0; margin: 0; padding: 34px 0;
    border-top: 1px solid var(--nee-rule);
}
.nee-fieldset:first-of-type { border-top: 0; padding-top: 0; }
.nee-fieldset legend {
    padding: 0; margin: 0 0 24px;
    font-size: 11px; font-weight: 600; letter-spacing: .16em;
    text-transform: uppercase; color: var(--nee-ink-3);
}
.nee-fields { display: grid; gap: 24px; }
@media (min-width: 720px) { .nee-fields--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.nee-field label,
.nee-field .nee-label {
    display: block; font-size: .9rem; font-weight: 600;
    color: var(--nee-ink); margin-bottom: 8px;
}
.nee-field__optional { font-weight: 400; color: var(--nee-ink-3); font-size: .82rem; }
.nee-field__hint { font-size: .82rem; color: var(--nee-ink-3); margin: 0 0 10px; line-height: 1.6; }

.nee-input, .nee-textarea, .nee-select {
    width: 100%; box-sizing: border-box;
    padding: 12px 14px;
    font: inherit; font-size: .95rem;
    color: var(--nee-ink);
    background: var(--nee-surface);
    border: 1px solid var(--nee-rule);
    border-radius: var(--nee-radius);
    transition: border-color .18s ease;
}
.nee-textarea { min-height: 132px; resize: vertical; line-height: 1.7; }
.nee-input:focus, .nee-textarea:focus, .nee-select:focus {
    outline: none; border-color: var(--nee-accent);
}
.nee-input[aria-invalid="true"], .nee-textarea[aria-invalid="true"], .nee-select[aria-invalid="true"] {
    border-color: #c0392b;
}
.nee-error { display: block; font-size: .82rem; color: #c0392b; margin-top: 7px; }

.nee-check { display: flex; gap: 12px; align-items: flex-start; }
.nee-check input { margin-top: 4px; accent-color: var(--nee-accent); flex-shrink: 0; }
.nee-check span { font-size: .92rem; line-height: 1.6; color: var(--nee-ink-2); }

.nee-alert {
    border: 1px solid var(--nee-rule); border-radius: var(--nee-radius);
    padding: 16px 20px; margin-bottom: 28px;
    font-size: .92rem; line-height: 1.65;
}
.nee-alert--error { border-color: #c0392b; color: #c0392b; }
.nee-alert--success { border-color: var(--nee-accent); color: var(--nee-ink); }

/* ── جدول الإدارة ─────────────────────────────────────────── */
.nee-status {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 600; letter-spacing: .06em;
    padding: 4px 9px; border-radius: var(--nee-radius);
    border: 1px solid currentColor; white-space: nowrap;
}
.nee-status--submitted    { color: #2f6fa8; }
.nee-status--under_review { color: #9a7b3f; }
.nee-status--interview    { color: #7a5aa8; }
.nee-status--accepted     { color: #2f7d4f; }
.nee-status--waitlisted   { color: #a8762f; }
.nee-status--rejected     { color: #a83f37; }
.nee-status--withdrawn    { color: var(--nee-ink-3); }
.nee-status--draft        { color: var(--nee-ink-3); }
