﻿/* ===== Ajyal v4 =====
   الألوان كلها مصمتة (من غير تدرج جوه العناصر).
   الفصل بين الأقسام بدرجات خلفية مختلفة: tone-0 أبيض، tone-1 أزرق فاتح، tone-2 أغمق درجة، tone-dark كحلي. */
:root {
    --brand: #2A82CC;       /* أزرق اللوجو */
    --brand-dark: #1F6BAE;
    --navy: #0F2F52;
    --navy-2: #0A2240;
    --navy-3: #071A31;
    --accent: #F2B544;      /* لمسة دافئة للأزرار المهمة فوق الكحلي */
    --accent-dark: #DFA02E;
    --silver: #8C96A3;      /* رمادي اللوجو */
    --tone-0: #FFFFFF;
    --tone-1: #F1F7FC;
    --tone-2: #E2EEF8;
    --text: #1C2B3A;
    --muted: #5C6B7A;
    --line: #DCE6EF;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(15, 47, 82, .08);
    --shadow-hover: 0 18px 44px rgba(15, 47, 82, .14);
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: 'Tajawal', Tahoma, sans-serif; color: var(--text); background: var(--tone-0); line-height: 1.85; overflow-x: hidden; }
h1, h2, h3, h4 { color: var(--navy); font-weight: 800; line-height: 1.35; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; }
.text-brand { color: var(--brand); }
.text-accent { color: var(--accent); }
.text-muted-2 { color: var(--muted); }
.skip-link { position: fixed; top: -100px; right: 16px; z-index: 2000; background: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Buttons — solid */
.btn { border-radius: 12px; font-weight: 700; padding: .7rem 1.6rem; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; transition: background-color .2s, transform .2s, box-shadow .2s; }
.btn-lg { padding: .9rem 2rem; font-size: 1.05rem; }
.btn-brand { background: var(--brand); color: #fff; border: 0; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(42, 130, 204, .3); }
.btn-accent { background: var(--accent); color: var(--navy); border: 0; }
.btn-accent:hover, .btn-accent:focus { background: var(--accent-dark); color: var(--navy); transform: translateY(-2px); }
.btn-accent i { transition: transform .2s; }
.btn-accent:hover i { transform: translateX(-4px); }
.btn-outline-light { border: 2px solid rgba(255, 255, 255, .6); }
.btn-outline-light:hover { background: #fff; color: var(--navy); }

/* Top bar */
.topbar { background: var(--navy); color: rgba(255, 255, 255, .8); font-size: .85rem; padding: .45rem 0; }
.topbar a { color: #fff; }
.topbar i { color: var(--accent); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(15, 47, 82, .08); }
.navbar { padding: .55rem 0; }
.navbar-brand { display: flex; align-items: center; gap: .6rem; }
.navbar-brand img { height: 56px; }
.navbar-brand strong { display: block; color: var(--navy); font-size: 1.2rem; line-height: 1.2; }
.navbar-brand small { display: block; color: var(--brand); font-weight: 700; font-size: .8rem; }
.navbar-toggler { border: 1px solid var(--line); font-size: 1.6rem; color: var(--navy); padding: .2rem .6rem; box-shadow: none !important; }
.nav-link { position: relative; color: var(--text); font-weight: 600; padding: .5rem 1rem !important; }
.nav-link:hover, .nav-link.active { color: var(--brand); }
@media (min-width: 992px) {
    .offcanvas-body { display: flex; align-items: center; gap: .5rem; }
    .nav-link::after { content: ''; position: absolute; right: 1rem; left: 1rem; bottom: .1rem; height: 3px; border-radius: 3px; background: var(--brand); transform: scaleX(0); transition: transform .25s; }
    .nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
}
@media (max-width: 991.98px) {
    .offcanvas-body .nav-link { font-size: 1.1rem; border-bottom: 1px solid var(--line); }
    .offcanvas-body .btn { width: 100%; margin-top: 1.5rem; }
}

/* Section tones */
.section { padding: 96px 0; }
.tone-0 { background: var(--tone-0); }
.tone-1 { background: var(--tone-1); }
.tone-2 { background: var(--tone-2); }
.tone-dark { background: var(--navy); color: #fff; }
.tone-dark h2, .tone-dark h3 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; color: var(--brand); font-weight: 700; font-size: .92rem; margin-bottom: .8rem; }
.eyebrow::before { content: ''; width: 24px; height: 3px; border-radius: 3px; background: var(--accent); }
.tone-dark .eyebrow { color: #9CCBF0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 2.2rem; }
.section-head p { color: var(--muted); max-width: 380px; margin: 0; }
.section-head.center { display: block; text-align: center; margin-bottom: 3rem; }
.section-head.center .eyebrow { justify-content: center; }

/* Hero — full-width slider, one solid overlay per slide */
.hero { position: relative; height: clamp(540px, 80vh, 760px); overflow: hidden; background: var(--navy); }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: center; background: var(--navy) var(--img, none) center / cover no-repeat; opacity: 0; visibility: hidden; transition: opacity 1s, visibility 1s; }
.hero-slide::before { content: ''; position: absolute; inset: 0; background: rgba(15, 47, 82, .78); }
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-content { position: relative; z-index: 2; max-width: 660px; color: #fff; }
.hero-slide.active .hero-content > * { animation: heroIn .8s both; }
.hero-slide.active .hero-content > *:nth-child(2) { animation-delay: .1s; }
.hero-slide.active .hero-content > *:nth-child(3) { animation-delay: .2s; }
.hero-slide.active .hero-content > *:nth-child(4) { animation-delay: .3s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-tag { display: inline-block; background: rgba(255, 255, 255, .12); padding: .35rem 1rem; border-radius: 50px; font-weight: 600; margin-bottom: 1.3rem; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; line-height: 1.28; margin-bottom: 1.2rem; }
.hero h1 span { color: var(--accent); }
.hero p { color: rgba(255, 255, 255, .85); font-size: clamp(1.05rem, 1.5vw, 1.2rem); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-nav { position: absolute; top: 50%; z-index: 5; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; font-size: 1.25rem; transition: background-color .2s, color .2s; }
.hero-nav:hover { background: #fff; color: var(--navy); }
.hero-nav.prev { right: 24px; }
.hero-nav.next { left: 24px; }
.hero-dots { position: absolute; bottom: 100px; right: 0; left: 0; z-index: 5; display: flex; justify-content: center; gap: .5rem; }
.hero-dots button { width: 12px; height: 12px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .4); padding: 0; transition: width .3s, background-color .3s; }
.hero-dots button.active { width: 34px; background: var(--accent); }

/* Promise strip — white card overlapping hero, sits on tone-1 below */
.promises { position: relative; z-index: 10; margin-top: -64px; background: linear-gradient(transparent 64px, var(--tone-1) 64px); }
.promises-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow-hover); padding: .6rem; }
.promise { display: flex; align-items: center; gap: .9rem; padding: 1.2rem 1rem; height: 100%; }
.promise i { flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--tone-2); color: var(--brand); font-size: 1.5rem; }
.promise strong { display: block; color: var(--navy); line-height: 1.3; }
.promise small { color: var(--muted); }
@media (min-width: 992px) { .promises .col-lg-3 + .col-lg-3 .promise { border-right: 1px solid var(--line); } }

/* Curriculum */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters button { border: 1px solid var(--line); background: #fff; color: var(--muted); font-weight: 700; font-size: .92rem; padding: .5rem 1.2rem; border-radius: 50px; transition: all .2s; }
.filters button:hover { border-color: var(--brand); color: var(--brand); }
.filters button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.course-card { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(15, 47, 82, .05); transition: transform .25s, box-shadow .25s; }
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.course-top { display: flex; justify-content: space-between; align-items: center; padding: 1.3rem 1.4rem; background: var(--brand); color: #fff; }
.course-col:nth-child(3n+2) .course-top { background: var(--navy); }
.course-col:nth-child(3n) .course-top { background: var(--brand-dark); }
.course-stage { font-weight: 700; font-size: .92rem; }
.course-top i { font-size: 1.6rem; opacity: .8; }
.course-body { display: flex; flex-direction: column; flex-grow: 1; padding: 1.4rem; }
.course-body h3 { font-size: 1.18rem; flex-grow: 1; margin-bottom: 1.2rem; }
.course-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: .9rem; color: var(--muted); font-weight: 600; }
.course-foot i { color: var(--brand); }
.course-foot .go { color: var(--brand); display: flex; align-items: center; gap: .3rem; transition: gap .2s; }
.course-card:hover .go { gap: .7rem; }
.course-col.is-hidden { display: none; }

/* About */
.about-visual { position: relative; margin-left: 24px; }
.about-img { width: 100%; aspect-ratio: 5 / 4; border-radius: 24px; background: var(--tone-2) var(--img, none) center / cover no-repeat; }
.about-stamp { position: absolute; left: -24px; bottom: 28px; background: var(--accent); color: var(--navy); padding: 1.2rem 1.5rem; border-radius: 14px; font-size: 1.2rem; line-height: 1.5; box-shadow: var(--shadow); }
.about-text { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.2rem; }
.about-point { display: flex; gap: 1rem; margin-bottom: 1.2rem; }
.about-point > i { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--tone-1); color: var(--brand); font-size: 1.25rem; }
.about-point h3 { font-size: 1.08rem; margin: 0 0 .2rem; }
.about-point p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Journey */
.step { background: #fff; border-radius: 20px; padding: 2.2rem 1.8rem; text-align: center; height: 100%; transition: transform .25s, box-shadow .25s; }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step-num { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--tone-1); color: var(--brand); font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; }
.step.featured { background: var(--navy); }
.step.featured h3 { color: #fff; }
.step.featured p { color: rgba(255, 255, 255, .75); }
.step.featured .step-num { background: var(--accent); color: var(--navy); }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); margin: 0; }

/* Contact */
.lead-muted { color: rgba(255, 255, 255, .72); font-size: 1.05rem; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact-list li { display: flex; gap: 1rem; margin-bottom: 1.3rem; }
.contact-list li > i { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: var(--accent); display: grid; place-items: center; font-size: 1.2rem; }
.contact-list div { display: flex; flex-direction: column; font-size: .95rem; word-break: break-word; }
.contact-list strong { font-size: .88rem; text-align: right; }
.contact-list span, .contact-list a { color: rgba(255, 255, 255, .82); }
.contact-list [dir="ltr"] { text-align: right; }
.contact-list a:hover { color: #fff; }
.form-card { background: #fff; color: var(--text); border-radius: 22px; padding: 2.4rem; }
.form-card h3 { color: var(--navy); font-size: 1.4rem; margin-bottom: 1.4rem; }
.form-label { font-weight: 600; font-size: .92rem; }
.form-control { border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem 1rem; background: var(--tone-1); }
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(42, 130, 204, .14); background: #fff; }
.form-control[dir="ltr"] { text-align: right; }

/* Inner page header */
/* الصورة في النص الفاضي على الشمال، وبتختفي تدريجياً ناحية العنوان.
   كل صفحة تقدر تغيّر الصورة بـ style="--img:url(...)" على الـ section. */
.page-hero { --img: url('/v4/img/hero-3.jpg'); background: var(--navy); color: #fff; padding: 72px 0 80px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 58%; background: var(--img) center / cover no-repeat;
    -webkit-mask-image: linear-gradient(to right, #000 35%, transparent 100%); mask-image: linear-gradient(to right, #000 35%, transparent 100%); opacity: .55; }
.page-hero .container { position: relative; z-index: 1; }
@media (max-width: 767.98px) {
    /* على الموبايل الصورة ورا الكلام كله بطبقة كحلي */
    .page-hero::before { width: 100%; opacity: .22; -webkit-mask-image: none; mask-image: none; }
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin: .4rem 0 .6rem; }
.page-hero p { color: rgba(255, 255, 255, .78); font-size: 1.1rem; margin: 0; max-width: 560px; }
.page-hero .breadcrumb { margin: 0; font-size: .92rem; --bs-breadcrumb-divider-color: rgba(255, 255, 255, .5); --bs-breadcrumb-item-active-color: var(--accent); }
.page-hero .breadcrumb a { color: rgba(255, 255, 255, .8); }
.page-hero .breadcrumb a:hover { color: #fff; }
/* Bootstrap RTL بيعمل الفاصل "/"؛ نخليه سهم مناسب للعربي */
.page-hero .breadcrumb-item + .breadcrumb-item::before { content: "‹"; }

/* Value cards (about page) */
.value-card { height: 100%; background: #fff; border-radius: 20px; padding: 2.2rem 1.8rem; transition: transform .25s, box-shadow .25s; }
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.value-card > i { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--tone-1); color: var(--brand); font-size: 1.6rem; margin-bottom: 1.1rem; }
.value-card h3 { font-size: 1.25rem; }
.value-card p { color: var(--muted); margin: 0; }
.value-card.featured { background: var(--brand); }
.value-card.featured h3 { color: #fff; }
.value-card.featured p { color: rgba(255, 255, 255, .85); }
.value-card.featured > i { background: rgba(255, 255, 255, .15); color: #fff; }

/* Feature tiles */
.feature { height: 100%; text-align: center; padding: 2rem 1.4rem; border: 1px solid var(--line); border-radius: 20px; transition: border-color .25s, box-shadow .25s, transform .25s; }
.feature:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-5px); }
.feature > i { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--tone-1); color: var(--brand); font-size: 1.7rem; margin-bottom: 1rem; }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

/* CTA band */
/* أزرق مصمت عشان يبان فاصل بينه وبين الفوتر الكحلي */
.cta-band { padding: 64px 0; background: var(--brand); color: #fff; }
.cta-band .btn-accent:hover { background: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; margin-bottom: .4rem; }
.cta-inner p { color: rgba(255, 255, 255, .75); margin: 0; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 575.98px) {
    .cta-actions, .cta-actions .btn { width: 100%; }
    .page-hero { padding: 44px 0 52px; }
}

/* Contact page */
.company-card { background: #fff; border-radius: 24px; padding: 2rem; box-shadow: var(--shadow); }
.company-name { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.4rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.company-name img { width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; }
.company-name strong { display: block; color: var(--navy); font-size: 1.05rem; text-align: right; }
.company-name span { color: var(--muted); }
.info-tile { display: flex; gap: 1rem; height: 100%; padding: 1.2rem; border-radius: 16px; background: var(--tone-1); color: var(--text); transition: background-color .2s; }
a.info-tile:hover { background: var(--tone-2); color: var(--text); }
.info-tile > i { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 1.25rem; }
.info-tile h3 { font-size: 1rem; margin-bottom: .3rem; }
.info-tile p { margin: 0; color: var(--muted); word-break: break-word; }
.info-tile p[dir="ltr"] { text-align: right; }
.contact-side p { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 1.4rem 0 1.8rem; }
.check-list li { display: flex; gap: .6rem; align-items: center; margin-bottom: .7rem; font-weight: 600; }
.check-list i { color: var(--brand); font-size: 1.2rem; }
.whatsapp-btn { display: inline-flex; align-items: center; gap: .6rem; background: #1FA855; color: #fff; font-weight: 700; padding: .8rem 1.6rem; border-radius: 12px; transition: background-color .2s; }
.whatsapp-btn:hover { background: #178A45; color: #fff; }
.whatsapp-btn i { font-size: 1.3rem; }
.shadow-card { box-shadow: var(--shadow); }
/* Legal pages (privacy / terms) */
.lang-switch { display: inline-flex; gap: .3rem; background: #fff; padding: .3rem; border-radius: 12px; margin-bottom: 1.5rem; box-shadow: 0 2px 10px rgba(15, 47, 82, .05); }
.lang-switch button { border: 0; background: transparent; color: var(--muted); font-weight: 700; padding: .5rem 1.4rem; border-radius: 9px; transition: background-color .2s, color .2s; }
.lang-switch button.active { background: var(--navy); color: #fff; }
.legal-card { background: #fff; border-radius: 20px; padding: 2.4rem; max-width: 900px; }
.legal-card h2 { font-size: 1.25rem; margin: 2rem 0 .7rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.legal-card h2:first-of-type { margin-top: 1.4rem; }
.legal-card p, .legal-card li { color: var(--text); line-height: 1.95; }
.legal-card ul { padding-inline-start: 1.2rem; }
.legal-card li { margin-bottom: .35rem; }
.legal-card li::marker { color: var(--brand); }
.legal-card a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.legal-lead { font-size: 1.1rem; background: var(--tone-1); border-inline-start: 4px solid var(--accent); padding: 1rem 1.2rem; border-radius: 10px; }
[dir="ltr"] .legal-card, .legal-card[dir="ltr"] { font-family: 'Tajawal', 'Segoe UI', sans-serif; }
@media (max-width: 575.98px) { .legal-card { padding: 1.4rem; } }

.map-card { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: var(--tone-2); }
.map-card iframe { display: block; width: 100%; height: 420px; border: 0; }
@media (max-width: 575.98px) { .map-card iframe { height: 300px; } }
@media (max-width: 575.98px) {
    .company-card { padding: 1.3rem; }
    .company-name { flex-direction: column; text-align: center; }
    .company-name strong, .company-name span { display: block; text-align: center; }
    .whatsapp-btn { width: 100%; justify-content: center; }
}

/* Course list page */
.grade-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.grade-toolbar h2 { margin: 0; }
.grade-search { position: relative; width: min(340px, 100%); }
.grade-search i { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.grade-search .form-control { padding-right: 2.6rem; background: #fff; }
.grade-card { height: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(15, 47, 82, .05); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.grade-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.grade-top { display: flex; align-items: center; gap: .9rem; padding: 1.4rem; background: var(--brand); color: #fff; }
.grade-col:nth-child(3n+2) .grade-top { background: var(--navy); }
.grade-col:nth-child(3n) .grade-top { background: var(--brand-dark); }
.grade-top i { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .15); font-size: 1.35rem; }
.grade-top h3 { color: #fff; font-size: 1.2rem; margin: 0; }
.grade-terms { padding: 1.3rem 1.4rem 1.5rem; flex-grow: 1; }
.grade-terms > span { display: block; color: var(--muted); font-size: .9rem; margin-bottom: .8rem; }
.term-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.term-links a { flex: 1 1 auto; text-align: center; padding: .55rem .9rem; border-radius: 10px; background: var(--tone-1); color: var(--brand-dark); font-weight: 700; font-size: .92rem; transition: background-color .2s, color .2s; }
.term-links a:hover { background: var(--brand); color: #fff; }
.grade-col.is-hidden { display: none; }
.grade-empty { text-align: center; color: var(--muted); padding: 2rem 0 0; margin: 0; }

/* Empty message from code-behind (lit_empty) */
.db-empty:empty { display: none; }
.empty-state { background: #fff; border-radius: var(--radius); padding: 2.5rem 1.5rem; text-align: center; color: var(--muted); font-size: 1.05rem; margin-bottom: 1.5rem; }
.empty-state::before { content: "\F3E8"; font-family: "bootstrap-icons"; display: block; font-size: 2.4rem; color: var(--brand); margin-bottom: .5rem; }

/* Subjects (subjectList) */
.subject-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; height: 100%; background: #fff; border-radius: var(--radius); padding: 1.6rem 1rem; color: var(--text); box-shadow: 0 2px 10px rgba(15, 47, 82, .05); transition: transform .25s, box-shadow .25s; }
.subject-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); color: var(--text); }
.subject-card > i { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--tone-1); color: var(--brand); font-size: 1.5rem; transition: background-color .25s, color .25s; }
.subject-card:hover > i { background: var(--brand); color: #fff; }
.subject-card h3 { font-size: 1.08rem; margin: 0; flex-grow: 1; }
.subject-card .go { color: var(--brand); font-weight: 700; font-size: .9rem; }

/* Lessons (PostList) */
.lesson-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.lesson-list a { display: flex; align-items: center; gap: 1rem; background: #fff; border-radius: 14px; padding: 1rem 1.2rem; color: var(--text); font-weight: 600; transition: box-shadow .2s, transform .2s; }
.lesson-list a:hover { box-shadow: var(--shadow); transform: translateX(-4px); color: var(--brand); }
.lesson-num { flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--tone-2); color: var(--brand-dark); font-weight: 800; }
.lesson-title { flex-grow: 1; }
.lesson-list a > i { color: var(--muted); }

/* Single lesson (showpost) */
.post-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-bottom: 1.4rem; }
.post-meta > div { background: #fff; border-radius: 14px; padding: 1rem; display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; align-items: center; }
.post-meta i { grid-row: span 2; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--tone-1); color: var(--brand); font-size: 1.15rem; }
.post-meta span { color: var(--muted); font-size: .82rem; }
.post-meta strong { color: var(--navy); font-size: .95rem; }
.post-card { background: #fff; border-radius: 20px; padding: 1.8rem; }
.post-video:not(:empty) { margin-bottom: 1.5rem; }
.post-video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 14px; display: block; }
.post-title { font-size: 1.5rem; margin-bottom: .3rem; }
.post-date { color: var(--muted); font-size: .9rem; }
.post-body { margin-top: 1rem; }
.dl-box:not(:empty) { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
/* lit_Download فيه <i class="fa fa-download">؛ نخفيه ونحط أيقونة Bootstrap */
.dl-box a { display: inline-flex; align-items: center; gap: .6rem; background: var(--brand); color: #fff; font-weight: 700; padding: .8rem 1.6rem; border-radius: 12px; transition: background-color .2s; }
.dl-box a:hover { background: var(--brand-dark); color: #fff; }
.dl-box a .fa { display: none; }
.dl-box a::before { content: "\F30A"; font-family: "bootstrap-icons"; font-size: 1.2rem; }
.side-card { background: #fff; border-radius: 20px; padding: 1.5rem; margin-bottom: 1.2rem; }
.side-card h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.related-list { list-style: none; padding: 0; margin: 0; }
.related-list li + li { border-top: 1px solid var(--line); }
.related-list a { display: block; padding: .7rem 0; color: var(--text); font-weight: 500; }
.related-list a::before { content: "\F284"; font-family: "bootstrap-icons"; color: var(--brand); margin-left: .5rem; font-size: .8rem; }
.related-list a:hover { color: var(--brand); }
.side-cta { background: var(--navy); color: #fff; }
.side-cta h3 { color: #fff; }
.side-cta p { color: rgba(255, 255, 255, .75); }
@media (max-width: 767.98px) {
    .post-meta { grid-template-columns: 1fr; }
    .post-card { padding: 1.3rem; }
}

/* Outline button */
.btn-outline-brand { border: 2px solid var(--brand); color: var(--brand); background: transparent; }
.btn-outline-brand:hover, .btn-outline-brand:focus { background: var(--brand); color: #fff; }

/* محتوى جاي من لوحة التحكم (lit_Aboutus / lit_Objective) — بنوحّد شكله مهما كان الـ HTML */
.db-content h1, .db-content h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); color: var(--navy); margin-bottom: .8rem; }
.db-content h3 { font-size: 1.05rem; color: var(--brand); font-weight: 700; }
.db-content h4, .db-content h5 { font-size: 1rem; }
.db-content p { color: var(--muted); }
.db-content img { max-width: 100%; height: auto; border-radius: 12px; }
/* النص المكتوب من المحرر بييجي بـ font/size/align inline؛ نلغيهم عشان الصفحة تبقى بخط واحد */
.db-content, .db-content * { font-family: inherit !important; }
.db-content p, .db-content span, .db-content li, .db-content div { font-size: 1.02rem !important; line-height: 1.9 !important; text-align: right !important; }
.db-content h1 *, .db-content h2 *, .db-content h3 * { font-size: inherit !important; }
.db-content strong, .db-content b { color: var(--navy); }
.objective:not(:empty) { margin-top: 1.4rem; padding: 1.2rem 1.4rem; background: var(--tone-1); border-right: 4px solid var(--accent); border-radius: 12px; }
.objective h2 { font-size: 1.3rem; }

/* Testimonials */
.testi { height: 100%; margin: 0; background: var(--tone-1); border-radius: 20px; padding: 1.8rem; display: flex; flex-direction: column; }
.testi > i { font-size: 2.4rem; line-height: 1; color: var(--accent); }
.testi blockquote { flex-grow: 1; margin: .6rem 0 1.4rem; color: var(--text); font-size: 1.02rem; }
.testi figcaption { display: flex; align-items: center; gap: .8rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.testi img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--tone-2); }
.testi strong { color: var(--navy); }

/* Footer extras */
.footer-about p { margin-bottom: 1rem; }
.social { display: flex; gap: .5rem; }
.social li { margin: 0; }
.social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.1rem; transition: background-color .2s, color .2s; }
.social a:hover { background: var(--accent); color: var(--navy); }
.site-footer .hours li, .site-footer .hours span { color: rgba(255, 255, 255, .72); }

/* FAQ */
.accordion-item { border: 0; border-radius: 14px !important; margin-bottom: .8rem; overflow: hidden; }
.accordion-button { font-weight: 700; color: var(--navy); padding: 1.1rem 1.3rem; }
.accordion-button:not(.collapsed) { background: #fff; color: var(--brand); box-shadow: none; }
.accordion-button:focus { box-shadow: none; }
.accordion-button::after { margin-right: auto; margin-left: 0; }
.accordion-body { color: var(--muted); padding-top: 0; }

/* Footer — darker than contact to separate */
.site-footer { background: var(--navy-2); color: rgba(255, 255, 255, .72); padding-top: 72px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1.2rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .6rem; }
.site-footer a { color: rgba(255, 255, 255, .72); transition: color .2s; }
.site-footer a:hover { color: var(--accent); }
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.footer-brand img { height: 58px; background: #fff; border-radius: 14px; padding: 4px; }
.footer-brand strong { color: #fff; font-size: 1.2rem; }
.footer-contact li { display: flex; gap: .6rem; }
.footer-contact i { color: var(--accent); }
.phone-list { display: flex; flex-direction: column; gap: .3rem; }
.phone-list a { text-align: right; }
.footer-bottom { background: var(--navy-3); margin-top: 56px; padding: 1.3rem 0; text-align: center; font-size: .86rem; }

/* To top */
.to-top { position: fixed; left: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 14px; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s, background-color .2s; z-index: 1000; }
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--brand-dark); color: #fff; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-slide.active .hero-content > * { animation: none; }
}

/* Responsive */
@media (max-width: 991.98px) {
    .section { padding: 68px 0; }
    .section-head { display: block; }
    .section-head p { margin-top: .5rem; }
    .hero-content { text-align: center; margin: 0 auto; }
    .hero-actions { justify-content: center; }
    .hero-nav { display: none; }
    .promise { padding: 1rem .6rem; }
    .form-card { padding: 1.8rem 1.4rem; }
    /* الفلتر سطر واحد بيتسحب بالعرض بدل ما يلف على كذا سطر */
    .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -12px; padding: 0 12px 4px; }
    .filters::-webkit-scrollbar { display: none; }
    .filters button { flex-shrink: 0; }
}
@media (max-width: 767.98px) {
    .footer-bottom { padding: 1.3rem 64px; }
}
@media (max-width: 575.98px) {
    .navbar-brand img { height: 44px; }
    .navbar-brand strong { font-size: 1.02rem; }
    .hero { height: auto; min-height: 580px; }
    .hero-slide { padding: 48px 0 130px; }
    .hero-actions .btn { width: 100%; }
    .promise { flex-direction: column; text-align: center; gap: .5rem; }
    .promise small { font-size: .78rem; }
    .about-visual { margin-left: 12px; }
    .about-stamp { left: -12px; font-size: 1rem; padding: .9rem 1.1rem; }
}
