/* ألوان الشعار: كحلي A، أحمر U، تركوازي S، أخضر الأرز. خصائص منطقية (inline/block) كي يخدم الملف نفسه العربية والإنجليزية. */
:root { --navy: #0b2545; --teal: #0a8fb0; --red: #d92d20; --green: #0b6b2f; --bg: #f5f8fb; --text: #15202e; --muted: #5a6677; --card: #fff; --line: #e3e9f0; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* الرأس */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-bottom: 3px solid var(--teal); }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 700; font-size: 1.05rem; text-decoration: none; white-space: nowrap; }
.brand img { height: 37px; width: auto; }
.top-nav { display: none; gap: 20px; margin-inline-start: auto; }
.top-nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; }
.top-nav a:hover { color: var(--teal); }
.lang { margin-inline-start: auto; padding: 4px 14px; border: 2px solid var(--teal); border-radius: 999px; color: var(--teal); font-weight: 700; text-decoration: none; font-size: .9rem; white-space: nowrap; }
.lang:hover { background: var(--teal); color: #fff; }
@media (min-width: 820px) {
  .top-nav { display: flex; }
  .top-nav + .lang { margin-inline-start: 8px; }
}
@media (max-width: 420px) {
  .brand span { font-size: .9rem; }
}

/* الواجهة */
.hero { position: relative; color: #fff; text-align: center; padding: 64px 0 60px; overflow: hidden; background: var(--navy); }
.hero-bg { position: absolute; inset: 0; background: url('/assets/school.jpg') center / cover no-repeat; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 37, 69, .55), rgba(11, 37, 69, .85)); }
.hero-in { position: relative; z-index: 1; }
.hero-logo { width: 170px; height: auto; background: rgba(255, 255, 255, .94); border-radius: 18px; padding: 12px 18px; margin-bottom: 14px; }
.hero h1 { margin: 0 0 6px; font-size: clamp(1.9rem, 7vw, 3rem); font-weight: 700; letter-spacing: .01em; line-height: 1.15; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.tagline { margin: 4px 0 2px; font-size: clamp(1.1rem, 4.2vw, 1.5rem); font-weight: 700; color: #bfeaf6; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.lead { margin: 0; font-size: .95rem; opacity: .95; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.btn { display: inline-block; padding: 10px 22px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); transition: transform .12s; }
.btn:hover, .btn:focus-visible { transform: translateY(-2px); outline: none; }
.btn.ghost { background: rgba(255, 255, 255, .12); border: 2px solid rgba(255, 255, 255, .8); box-shadow: none; }

/* الأقسام */
section { padding: 36px 0 8px; scroll-margin-top: 72px; }
h2 { margin: 0 0 16px; font-size: 1.4rem; color: var(--navy); position: relative; padding-inline-start: 14px; }
h2::before { content: ''; position: absolute; inset-inline-start: 0; top: 6px; bottom: 6px; width: 5px; border-radius: 3px; background: var(--red); }
.about p { margin: 0 0 12px; font-size: 1.02rem; }
.about strong { color: var(--navy); }
.about strong[dir="ltr"] { white-space: nowrap; }
.sub { margin: -6px 0 18px; color: var(--muted); }

.levels { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; margin-top: 12px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-inline-start: 5px solid var(--teal); border-radius: 14px; }
.levels .k { font-weight: 600; color: var(--navy); }

/* الذكاء الاصطناعي — شريط داكن يبرز القسم */
.ai-band { margin-top: 36px; padding: 44px 0 40px; background: radial-gradient(1200px 400px at 85% 0%, rgba(10, 143, 176, .35), transparent 60%), linear-gradient(160deg, #0b2545 0%, #0e3460 100%); color: #e8f1fa; }
h2.on-dark { color: #fff; }
h2.on-dark::before { background: var(--teal); }
.ai-lead { margin: 0 0 20px; max-width: 760px; font-size: 1.05rem; color: #d6e4f2; }
.ai-stat { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0 0 22px; padding: 16px 20px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.ai-stat strong { font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1; color: #7fd8ef; direction: ltr; }
.ai-stat span { flex: 1 1 260px; color: #d6e4f2; }
.ai-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ai-card { padding: 20px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.ai-card .f-ico { background: rgba(127, 216, 239, .16); }
.ai-card h3 { margin: 10px 0 6px; font-size: 1.08rem; color: #fff; }
.ai-card p { margin: 0; font-size: .95rem; color: #c9d8e8; }
.tag { display: inline-block; margin-inline-start: 6px; padding: 0 8px; border-radius: 999px; background: #f5b301; color: #0b2545; font-size: .72rem; font-weight: 700; vertical-align: middle; }
.principles-title { margin: 30px 0 12px; font-size: 1.15rem; color: #fff; }
.principles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.principle { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .95); color: var(--text); border-inline-start: 5px solid var(--teal); }
.principle:nth-child(2) { border-inline-start-color: var(--red); }
.principle:nth-child(3) { border-inline-start-color: var(--green); }
.principle strong { color: var(--navy); }
.principle span { font-size: .93rem; color: var(--muted); }

/* مدرسة بروح العصر */
.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature { padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(11, 37, 69, .06); }
.feature:nth-child(3n + 1) { border-top: 4px solid var(--teal); }
.feature:nth-child(3n + 2) { border-top: 4px solid var(--red); }
.feature:nth-child(3n + 3) { border-top: 4px solid var(--green); }
.f-ico { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: #eaf6fa; font-size: 1.5rem; }
.feature h3 { margin: 10px 0 6px; font-size: 1.1rem; color: var(--navy); }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* البوابات */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 14px; color: var(--text); text-decoration: none; box-shadow: 0 1px 2px rgba(11, 37, 69, .06); transition: transform .12s, box-shadow .12s; }
.card:nth-child(2) { border-top-color: var(--red); }
.card:hover, .card:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(11, 37, 69, .14); outline: none; }
.card .ico { font-size: 2rem; }
.card strong { font-size: 1.15rem; color: var(--navy); }
.card small { color: var(--muted); }
.note { color: var(--muted); font-size: .92rem; margin-top: 14px; }

/* تواصل */
.contact-list { list-style: none; padding: 0; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.contact-list li { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .k { min-width: 150px; font-weight: 600; color: var(--navy); }
.contact-list a { color: var(--teal); text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }

.foot { margin-top: 40px; padding: 18px 0; background: var(--navy); color: #cdd8e6; text-align: center; font-size: .9rem; }

/* كل نصوص الصفحة متساوية الأسطر (طلب الإدارة 2026-10-18) — عدا أسطر الواجهة القصيرة الموسّطة (الشعار والعنوان والأزرار). */
main section:not(.hero) p, .principle span, .ai-stat span, .card small { text-align: justify; text-justify: inter-word; hyphens: auto; }
