/**
 * sections.css — أقسام الصفحات: الشريط العلوي، الهيدر، الهيرو، الخدمات،
 * الرحلة، الإحصاءات، الفوتر… كل قسم معنون بوضوح.
 */

/* == الشريط العلوي ========================================= */
.topbar { background: var(--navy); color: #cfe0ee; font-size: .86rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 8px; flex-wrap: wrap; }
.topbar a { color: #cfe0ee; display: inline-flex; align-items: center; gap: 5px; }
.topbar-info { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar-info > span { display: inline-flex; align-items: center; gap: 5px; }
.lang-switch ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.lang-switch li { list-style: none; }
.site-footer li, .foot li, .lang-switch li, .menu li { list-style: none; }
.foot li { margin: 0; }
.lang-switch a {
	border: 1px solid #3a597a; color: #fff; border-radius: 20px; padding: 3px 14px;
	font-weight: 700; display: inline-block; min-height: 28px;
}
.lang-switch a:hover, .lang-switch .current-lang a { background: rgba(255, 255, 255, .14); text-decoration: none; }

/* == الهيدر ================================================ */
.site-header {
	position: sticky; top: 0; z-index: 50; background: #fff;
	border-bottom: 1px solid var(--line);
	transition: box-shadow var(--speed), background var(--speed);
}
.site-header.is-stuck { box-shadow: 0 4px 20px rgba(11, 37, 64, .10); border-bottom-color: transparent; }
.nav { display: flex; align-items: center; gap: 16px; padding-block: 14px; }

/* الشعار */
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--navy); flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand img { height: 48px; width: auto; }
.brand-text { line-height: 1.25; white-space: nowrap; font-size: .95rem; }
.brand-text small {
	display: block; font-weight: 600; color: var(--muted);
	font-size: .7rem; letter-spacing: .01em; margin-top: 2px;
}

/* القائمة */
.menu { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; flex-wrap: nowrap; }
.menu ul { list-style: none; margin: 0; padding: 0; display: contents; }
.menu li { margin: 0; list-style: none; }
.menu a {
	position: relative; display: inline-block; color: var(--navy); font-weight: 600;
	font-size: .93rem; padding: 10px 9px; border-radius: 8px; white-space: nowrap;
	transition: color var(--speed), background var(--speed);
}
.menu a::after {
	content: ""; position: absolute; inset-inline: 9px; bottom: 4px; height: 2px;
	border-radius: 2px; background: var(--blue);
	transform: scaleX(0); transform-origin: center; transition: transform var(--speed);
}
.menu a:hover { color: var(--blue); background: transparent; text-decoration: none; }
.menu a:hover::after { transform: scaleX(1); }
.menu .current-menu-item > a,
.menu .current_page_item > a { color: var(--blue); background: transparent; }
.menu .current-menu-item > a::after,
.menu .current_page_item > a::after { transform: scaleX(1); }

/* الجهة اليسرى: زر الحجز والقائمة الجانبية */
.nav-cta { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; margin-inline-start: 8px; }
.nav-cta .btn { white-space: nowrap; }
.burger {
	display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px;
	color: var(--navy); cursor: pointer; padding: 8px; min-height: 44px; min-width: 44px;
	align-items: center; justify-content: center; transition: border-color var(--speed), color var(--speed);
}
.burger:hover { border-color: var(--blue); color: var(--blue); }

/* أحجام متوسطة: تضييق تدريجي قبل التحول للقائمة الجانبية */
@media (max-width: 1440px) {
	.brand-text small { font-size: .66rem; }
}
@media (max-width: 1240px) {
	.nav { gap: 12px; }
	.menu a { padding: 10px 7px; font-size: .9rem; }
	.menu a::after { inset-inline: 7px; }
	.brand-text small { display: none; }
	.nav-cta .btn { padding: 10px 18px; font-size: .92rem; }
}

/* == هيرو الرئيسية ========================================= */
.hero { background: radial-gradient(1200px 500px at 80% -10%, rgba(107, 182, 216, .25), transparent), linear-gradient(180deg, #fff, var(--bg-soft)); }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-art {
	background: linear-gradient(135deg, var(--light-blue), var(--blue));
	background-size: cover; background-position: center;
	border-radius: var(--radius-lg); min-height: 420px; box-shadow: var(--shadow);
}
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; height: auto; }
/* فيديو الهيرو: نفس شكل الصورة، مع Poster احتياطي */
.hero-video { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); line-height: 0; }
.hero-video video { width: 100%; height: auto; min-height: 300px; object-fit: cover; display: block; }
@media (max-width: 680px) { .hero-video video { min-height: 220px; } }

/* == هيرو سينمائي: فيديو بكامل عرض وارتفاع الشاشة ========== */
.hero-cinema {
	position: relative; overflow: hidden; background: var(--navy);
	min-height: min(88svh, 860px);
	display: flex; align-items: center; padding-block: 90px;
}
.hero-cinema > video {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; object-position: center;
}
.hero-cinema::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(11, 37, 64, .55) 0%, rgba(11, 37, 64, .25) 45%, rgba(11, 37, 64, .72) 100%);
}
.hero-cinema .container {
	position: relative; z-index: 2; text-align: center;
	max-width: 880px; color: #fff;
}
.hero-cinema .eyebrow { color: var(--beige); background: rgba(255, 255, 255, .12); }
.hero-cinema h1 { color: #fff; text-shadow: 0 2px 18px rgba(11, 37, 64, .45); }
.hero-cinema .lead { color: rgba(255, 255, 255, .92); margin-inline: auto; text-shadow: 0 1px 12px rgba(11, 37, 64, .45); }
.hero-cinema .hero-btns { justify-content: center; margin-top: 18px; }
.hero-cinema .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .08); }
.hero-cinema .btn-ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.hero-cinema .hero-badges { justify-content: center; }
.hero-cinema .hero-badges .badge { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .25); }
@media (max-width: 680px) {
	.hero-cinema { min-height: min(78svh, 640px); padding-block: 64px; }
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* == هيرو الصفحات الداخلية ================================= */
.page-hero {
	background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff;
	padding-block: 54px; position: relative; overflow: hidden;
}
.page-hero::before {
	content: ""; position: absolute; inset: 0;
	background: url('../../../../uploads/2026/07/page-hero-bg.jpg') center / cover no-repeat;
}
.lang-en .page-hero::before { transform: scaleX(-1); }
/* المقالات (الأرشيف والمقال المفرد): بانر خاص */
body.blog .page-hero::before,
body.single-post .page-hero::before,
body.archive .page-hero::before {
	background-image: url('../../../../uploads/2026/07/blog-hero-bg.jpg');
}
body.blog.lang-en .page-hero::before,
body.single-post.lang-en .page-hero::before,
body.archive.lang-en .page-hero::before { transform: scaleX(-1); }
/* صفحة «قصص نجاح»: بانر خاص */
.page-id-34 .page-hero::before, .page-id-35 .page-hero::before {
	background-image: url('../../../../uploads/2026/07/success-hero-bg.jpg');
}
.page-id-35 .page-hero::before { transform: scaleX(-1); }
/* صفحة «البرامج»: بانر خاص */
.page-id-30 .page-hero::before, .page-id-31 .page-hero::before {
	background-image: url('../../../../uploads/2026/07/programs-hero-bg.jpg');
}
.page-id-31 .page-hero::before { transform: scaleX(-1); }
/* صفحة «خدماتنا»: بانر خاص */
.page-id-8 .page-hero::before, .page-id-9 .page-hero::before {
	background-image: url('../../../../uploads/2026/07/services-hero-bg.jpg');
}
.page-id-9 .page-hero::before { transform: scaleX(-1); }
/* صفحة «التدريب والتطوع»: بانر خاص */
.page-id-38 .page-hero::before, .page-id-39 .page-hero::before {
	background-image: url('../../../../uploads/2026/07/training-hero-bg.jpg');
}
.page-id-39 .page-hero::before { transform: scaleX(-1); }
/* صفحة «من نحن»: بانر خاص بشعار المركز فوق المبنى */
.page-id-6 .page-hero::before, .page-id-7 .page-hero::before {
	background-image: url('../../../../uploads/2026/07/about-hero-bg.jpg');
}
.page-id-7 .page-hero::before { transform: scaleX(-1); }
.page-hero::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(11, 58, 98, .18), rgba(11, 58, 98, .38));
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1, .page-hero .crumbs { text-shadow: 0 1px 10px rgba(11, 58, 98, .45); }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero-desc { color: #dce8f3; max-width: 720px; margin: 10px 0 0; }
.page-hero .hero-tag { color: var(--beige); font-weight: 700; font-size: .9rem; }
.crumbs { color: #cfe0ee; font-size: .9rem; margin-top: 8px; }
.crumbs a { color: #cfe0ee; }
.post-meta { color: #cfe0ee; font-size: .88rem; margin: 10px 0 0; }

/* == شبكة الخدمات (الرئيسية) =============================== */
.smc-services .smc-head { text-align: center; max-width: 720px; margin: 0 auto 42px; }
.smc-services .smc-eyebrow {
	display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .06em;
	color: var(--gold-d); background: rgba(181, 141, 75, .12); padding: 6px 14px;
	border-radius: 999px; margin-bottom: 14px;
}
.smc-services h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 0 0 12px; }
.smc-services .smc-head p { font-size: 17px; line-height: 1.7; color: var(--muted); margin: 0; }
.smc-services .smc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.smc-svc {
	position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px;
	padding: 28px 24px; overflow: hidden;
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.smc-svc::before {
	content: ""; position: absolute; inset-inline-start: 0; top: 0; height: 100%; width: 4px;
	background: linear-gradient(var(--blue), var(--gold));
	transform: scaleY(0); transform-origin: top; transition: transform .22s ease;
}
.smc-svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-h); border-color: transparent; }
.smc-svc:hover::before { transform: scaleY(1); }
.smc-svc .smc-ico, .svc .smc-ico {
	position: relative; width: 56px; height: 56px; border-radius: 14px;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, rgba(17, 117, 188, .12), rgba(107, 182, 216, .16));
	color: var(--blue); margin-bottom: 16px; transition: background .22s ease, color .22s ease;
}
.smc-svc:hover .smc-ico, .svc:hover .smc-ico { background: linear-gradient(135deg, var(--blue), var(--gold)); color: #fff; }
.smc-svc .smc-ico svg, .svc .smc-ico svg { width: 28px; height: 28px; }
.smc-svc h3 { font-size: 19px; margin: 0 0 8px; }
.smc-svc p { font-size: 15px; line-height: 1.7; color: var(--muted); margin: 0; }
.smc-services .smc-cta { text-align: center; margin-top: 40px; }

/* == صفحة الخدمات (بطاقات تفصيلية) ========================= */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; align-items: stretch; }
.svc-grid > .svc { margin: 0; display: flex; flex-direction: column; height: 100%; }
.svc-grid > .svc > div:last-child { margin-top: auto; padding-top: 8px; }
.svc-grid .cta-band { grid-column: 1 / -1; margin-top: 8px; }
/* بطاقات الخدمات في الرئيسية: 3 أعمدة على الشاشات الواسعة + رابط المزيد */
.svc-grid-home { max-width: none; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1080px) { .svc-grid-home { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .svc-grid-home { grid-template-columns: 1fr; } }
.svc .more {
	display: inline-flex; align-items: center; gap: 6px;
	font-weight: 700; color: var(--blue); margin-top: auto; padding-top: 12px;
}
[dir="rtl"] .svc .more { --dir: -1; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); margin-bottom: 22px; transition: transform .22s ease, box-shadow .22s ease; }
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow-h); }
.svc .head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.svc .head .ico { display: none; }
.svc h3 { margin: 0; }
.svc .sub { color: var(--gold-d); font-weight: 700; font-size: .9rem; }
.svc ul { margin: 10px 0 0; padding-inline-start: 20px; }
.svc li { margin-bottom: 6px; }
/* تبديل الأيقونة عند التحويم */
.svc .smc-ico .ic { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: opacity .35s ease, transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.svc .smc-ico .ic svg { width: 30px; height: 30px; }
.svc .smc-ico .ic-b { opacity: 0; transform: scale(.5) rotate(-8deg); }
.svc:hover .smc-ico .ic-a { opacity: 0; transform: scale(.5) rotate(8deg); }
.svc:hover .smc-ico .ic-b { opacity: 1; transform: scale(1) rotate(0); }

/* == رحلة الطفل ============================================ */
.journey { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 14px; text-align: center; box-shadow: var(--shadow); }
.step .n { width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.step b { display: block; color: var(--navy); font-size: .95rem; }

/* == رحلة الطفل: مسار مصوّر بكامل العرض ==================== */
.journey-cinema { background: #0c6dae; color: #fff; }
.journey-cinema h2 { color: #fff; }
.journey-cinema .lead { color: rgba(255, 255, 255, .88); }
.journey-track { max-width: 1680px; margin-inline: auto; }
.journey-track img { width: 100%; height: auto; display: block; }
.lang-en .journey-track img { transform: scaleX(-1); }
.journey-labels { position: relative; height: 4.2em; margin-top: -2.6%; }
.journey-labels .jp {
	position: absolute; left: var(--x); top: 0; transform: translateX(-50%);
	display: flex; flex-direction: column; align-items: center; gap: 2px;
	white-space: nowrap; text-align: center;
	font-weight: 700; font-size: clamp(.8rem, 1.45vw, 1.32rem); color: #fff;
	text-shadow: 0 1px 8px rgba(11, 37, 64, .45);
}
.journey-labels .jp i {
	font-style: normal; font-weight: 500; font-size: .72em;
	color: rgba(255, 255, 255, .78); letter-spacing: .4px;
}
.journey-grid-sm { display: none; }
@media (max-width: 760px) {
	.journey-labels { display: none; }
	.journey-grid-sm {
		display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px;
		padding-inline: var(--gutter, 20px); margin-top: 18px;
		max-width: 480px; margin-inline: auto;
	}
	.journey-grid-sm .jp {
		display: flex; align-items: center; gap: 10px;
		font-weight: 600; font-size: .92rem; color: #fff;
	}
	.journey-grid-sm .jp i {
		font-style: normal; font-weight: 400; font-size: .8rem;
		color: rgba(255, 255, 255, .72); min-width: 1.2em; text-align: center;
	}
}

/* == إحصاءات =============================================== */
/* إحصاءات بخلفية صورة: طبقة تعتيم للحفاظ على وضوح الأرقام */
.stats-photo { position: relative; background-size: cover; background-position: center; }
.stats-photo::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(9, 45, 78, .62), rgba(9, 45, 78, .38) 45%, rgba(9, 45, 78, .66));
}
.stats-photo .container { position: relative; }
.stats-photo .stat .num, .stats-photo h2 { text-shadow: 0 2px 14px rgba(9, 45, 78, .5); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.stat .num { font-size: 2.4rem; font-weight: 800; color: var(--beige); }
.stat .lbl { color: #dce8f3; font-size: .95rem; }

/* == شريط CTA ============================================== */
.cta-band { background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; border-radius: var(--radius-lg); padding: 46px; text-align: center; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; }

/* == بطاقات تواصل ========================================== */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow); }
.cc .ico { color: var(--blue); margin-bottom: 8px; }

/* == معرض الصور ============================================ */
.smc-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.smc-gallery img { width: 100%; height: 180px; object-fit: cover; border-radius: 14px; }

/* == المقال المفرد ========================================= */
.article-body { max-width: 820px; padding-block: 40px; }
.article-thumb img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; height: auto; }
.article-thumb { margin: 0 0 28px; }
.entry-content .wp-block-image { margin: 28px 0; }
.entry-content .wp-block-image img {
	border-radius: var(--radius-lg); box-shadow: var(--shadow);
	width: 100%; height: auto; display: block;
}
/* صندوق دعوة لاتخاذ إجراء داخل المقال */
.article-cta {
	margin-top: 40px; padding: 28px;
	background: linear-gradient(135deg, rgba(17, 117, 188, .07), rgba(107, 182, 216, .12));
	border: 1px solid rgba(17, 117, 188, .15); border-inline-start: 4px solid var(--gold);
	border-radius: var(--radius-lg); text-align: center;
}
.article-cta h3 { margin: 0 0 8px; }
.article-cta p { color: var(--muted); margin: 0 0 16px; }
.related-wrap { padding-block: 34px 60px; border-top: 1px solid var(--line); }
.related-wrap h2 { font-size: 1.35rem; margin: 0 0 22px; }

/* == 404 =================================================== */
.notfound-code { font-size: clamp(80px, 16vw, 140px); font-weight: 800; color: var(--line); line-height: 1; margin: 0; }

/* == الفوتر ================================================ */
.site-footer { background: var(--navy); color: #bcd0e3; padding-block: 54px 0; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; }
.site-footer a { color: #bcd0e3; display: flex; align-items: center; gap: 7px; padding-block: 4px; width: fit-content; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer .brand-text small { color: #8fa9c2; }
.foot-contact .addr { display: flex; align-items: flex-start; gap: 7px; padding-block: 4px; }
.foot-contact .ic { margin-top: 5px; }
.socials { display: flex; gap: 6px; margin-top: 14px; }
.socials a {
	width: 40px; height: 40px; border: 1px solid #2b4a6d; border-radius: 10px;
	display: flex; align-items: center; justify-content: center; padding: 0;
}
.socials a:hover { background: rgba(255, 255, 255, .1); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot-bottom { border-top: 1px solid #21456a; margin-top: 36px; padding-block: 18px; font-size: .85rem; text-align: center; color: #9fb5cb; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: center; }
.foot-bottom .foot-credit { color: #8aa3bd; }
.foot-bottom .foot-credit a { color: #cfe0f0; text-decoration: none; border-bottom: 1px solid rgba(207, 224, 240, .35); padding-bottom: 1px; transition: color var(--speed), border-color var(--speed); }
.foot-bottom .foot-credit a:hover { color: #fff; border-bottom-color: #fff; }

/* == واتساب عائم =========================================== */
.wa-float {
	position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 80;
	background: var(--wa-green); color: #fff; width: 58px; height: 58px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform var(--speed);
}
.wa-float:hover { transform: scale(1.08); color: #fff; }

/* == استجابة =============================================== */
@media (max-width: 960px) {
	.hero .container { grid-template-columns: 1fr; }
	.g4, .stats { grid-template-columns: repeat(2, 1fr); }
	.journey { grid-template-columns: repeat(3, 1fr); }
	.smc-services .smc-grid { grid-template-columns: repeat(2, 1fr); }
	.foot { grid-template-columns: 1fr 1fr; }
	.smc-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
	.svc-grid { grid-template-columns: 1fr; }
}
/* القائمة الجانبية: تظهر عندما تضيق المساحة عن عناصر القائمة */
@media (max-width: 1100px) {
	.menu {
		display: none; position: absolute; top: 100%; inset-inline: 0; background: #fff;
		flex-direction: column; align-items: stretch; gap: 0;
		padding: 8px 20px 16px; border-bottom: 1px solid var(--line);
		box-shadow: 0 12px 28px rgba(11, 37, 64, .12); max-height: calc(100svh - 120px); overflow-y: auto;
	}
	.menu.open { display: flex; animation: smc-menu-in .22s ease both; }
	.menu a { display: block; padding: 13px 10px; border-bottom: 1px solid var(--bg-soft); font-size: 1rem; border-radius: 0; }
	.menu a::after { inset-inline-start: 0; inset-inline-end: auto; bottom: auto; top: 10px; width: 3px; height: calc(100% - 20px); transform: scaleY(0); }
	.menu a:hover::after, .menu .current-menu-item > a::after, .menu .current_page_item > a::after { transform: scaleY(1); }
	.burger { display: flex; }
}
@keyframes smc-menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .menu.open { animation: none; } }

@media (max-width: 680px) {
	.nav { gap: 8px; padding-block: 10px; }
	.brand { min-width: 0; }
	.brand img { height: 40px; }
	.brand-text {
		font-size: .88rem; white-space: normal;
		overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
		-webkit-line-clamp: 2; -webkit-box-orient: vertical; line-clamp: 2;
	}
	.nav-cta { margin-inline-start: auto; gap: 8px; }
	.nav-cta .btn { padding: 9px 13px; font-size: .85rem; }
	.g2, .g3, .g4, .contact-cards, .smc-services .smc-grid { grid-template-columns: 1fr; }
	.journey { grid-template-columns: repeat(2, 1fr); }
	.row2 { grid-template-columns: 1fr; }
	.cta-band { padding: 30px 20px; }
	.brand-text small { display: none; }
	.smc-gallery { grid-template-columns: 1fr; }
	.hero-art { min-height: 300px; }
}
@media (max-width: 560px) {
	/* الشريط العلوي: سطر واحد مرتّب على الجوال */
	.topbar .container { padding-block: 6px; gap: 8px; flex-wrap: nowrap; }
	.topbar { font-size: .78rem; }
	.topbar-info { gap: 8px; min-width: 0; flex-wrap: nowrap; }
	.topbar-info .smc-hours { display: none; }
	.topbar-info .smc-sep { display: none; }
	.lang-switch a { padding: 3px 10px; font-size: .78rem; }
}
@media (max-width: 420px) {
	.brand-text { display: none; }
	.nav-cta .btn { padding: 9px 12px; font-size: .82rem; }
}

/* == صفحة التدريب والتطوع: مكونات احترافية ================= */
/* شريط القيم (لماذا تنضم إلينا) */
.value-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value-item { text-align: center; padding: 6px; }
.value-item .vi {
	width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 12px;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, rgba(17, 117, 188, .10), rgba(107, 182, 216, .22));
	color: var(--blue); box-shadow: inset 0 0 0 1px rgba(17, 117, 188, .14);
}
.value-item h4 { margin: 0 0 4px; color: var(--navy); font-size: 1rem; }
.value-item p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.7; }
@media (max-width: 900px) { .value-strip { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 460px) { .value-strip { grid-template-columns: 1fr; } }

/* مسارات الانضمام (بطاقتان) */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; }
.path {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
	padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column;
	position: relative; overflow: hidden; transition: transform var(--speed), box-shadow var(--speed);
}
.path:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); }
.path::before {
	content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px;
	background: linear-gradient(90deg, var(--blue), var(--light-blue));
}
.path.gold::before { background: linear-gradient(90deg, var(--gold), var(--beige)); }
.path .p-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.path .p-ico {
	flex: 0 0 auto; width: 60px; height: 60px; border-radius: 16px;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, rgba(17, 117, 188, .10), rgba(107, 182, 216, .22));
	color: var(--blue); box-shadow: inset 0 0 0 1px rgba(17, 117, 188, .12);
}
.path.gold .p-ico {
	background: linear-gradient(135deg, rgba(181, 142, 75, .12), rgba(181, 142, 75, .24));
	color: var(--gold-d); box-shadow: inset 0 0 0 1px rgba(181, 142, 75, .2);
}
.path h3 { margin: 0; font-size: 1.3rem; }
.path .p-sub { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.path > p { color: var(--muted); line-height: 1.9; }
.path .p-label { font-weight: 700; color: var(--navy); margin: 18px 0 8px; font-size: .95rem; }
.check-list { list-style: none; margin: 0 0 4px; padding: 0; }
.check-list li {
	position: relative; padding-inline-start: 28px; margin-bottom: 9px;
	color: var(--text); font-size: .95rem; line-height: 1.7;
}
.check-list li::before {
	content: ""; position: absolute; inset-inline-start: 0; top: .45em;
	width: 16px; height: 16px; border-radius: 50%;
	background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.path.gold .check-list li::before { background-color: var(--gold-d); }
.path .p-foot { margin-top: auto; padding-top: 20px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; gap: 20px; } }

/* مسار التقديم (4 خطوات مرقمة أفقياً) */
.apply-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.apply-step { text-align: center; position: relative; }
.apply-step .as-n {
	width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 14px;
	display: flex; align-items: center; justify-content: center;
	background: var(--blue); color: #fff; font-weight: 800; font-size: 1.1rem;
	box-shadow: 0 0 0 6px rgba(17, 117, 188, .10); position: relative; z-index: 2;
}
.apply-step h4 { margin: 0 0 6px; color: var(--navy); font-size: 1.02rem; }
.apply-step p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.7; }
.apply-step:not(:last-child)::after {
	content: ""; position: absolute; top: 26px; inset-inline-start: 50%;
	width: 100%; height: 2px; background: repeating-linear-gradient(90deg, rgba(17,117,188,.28) 0 8px, transparent 8px 16px);
	z-index: 1;
}
@media (max-width: 860px) {
	.apply-steps { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
	.apply-step:not(:last-child)::after { display: none; }
}
@media (max-width: 420px) { .apply-steps { grid-template-columns: 1fr; } }

/* بطاقات الالتزامات/السياسات */
.policy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 26px; }
.policy-item { display: flex; gap: 12px; align-items: flex-start; }
.policy-item .pi {
	flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px;
	display: flex; align-items: center; justify-content: center;
	background: rgba(181, 142, 75, .14); color: var(--gold-d);
}
.policy-item p { margin: 0; font-size: .94rem; line-height: 1.7; color: var(--text); }
.policy-wrap {
	background: linear-gradient(180deg, rgba(181, 142, 75, .07), rgba(181, 142, 75, .03));
	border: 1px solid rgba(181, 142, 75, .28); border-radius: var(--radius-lg); padding: 32px;
}
@media (max-width: 760px) { .policy-grid { grid-template-columns: 1fr; } }

/* == صفحة قصص النجاح ======================================= */
/* شريط الأثر */
.impact-strip {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
	background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff;
	border-radius: var(--radius-lg); padding: 30px 26px; box-shadow: var(--shadow);
	text-align: center;
}
.impact-strip .im-n { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; color: var(--beige); line-height: 1.2; }
.impact-strip .im-l { font-size: .92rem; color: #dce8f3; margin-top: 4px; }
@media (max-width: 640px) { .impact-strip { grid-template-columns: 1fr; gap: 22px; padding: 26px 20px; } }

/* بطاقة قصة نجاح */
.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.story {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
	padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column;
	position: relative; overflow: hidden; transition: transform var(--speed), box-shadow var(--speed);
}
.story:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); }
.story::before {
	content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px;
	background: linear-gradient(90deg, var(--blue), var(--light-blue));
}
.story.gold::before { background: linear-gradient(90deg, var(--gold), var(--beige)); }
.story-head { display: flex; align-items: center; gap: 13px; margin-bottom: 4px; }
.story-avatar {
	flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-weight: 800; font-size: 1.25rem; color: var(--blue);
	background: linear-gradient(135deg, rgba(17, 117, 188, .12), rgba(107, 182, 216, .24));
	box-shadow: inset 0 0 0 1px rgba(17, 117, 188, .14);
}
.story.gold .story-avatar {
	color: var(--gold-d);
	background: linear-gradient(135deg, rgba(181, 142, 75, .14), rgba(181, 142, 75, .26));
	box-shadow: inset 0 0 0 1px rgba(181, 142, 75, .2);
}
.story-head h3 { margin: 0; font-size: 1.1rem; }
.story-svc { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.story-ba { display: grid; gap: 12px; margin: 18px 0 14px; }
.story-ba .ba {
	background: var(--bg-soft); border-radius: 12px; padding: 13px 15px;
	position: relative; padding-inline-start: 15px;
}
.story-ba .ba.after { background: rgba(17, 117, 188, .07); }
.story.gold .story-ba .ba.after { background: rgba(181, 142, 75, .10); }
.story-ba .ba-l {
	display: block; font-size: .74rem; font-weight: 700; letter-spacing: .04em;
	color: var(--muted); margin-bottom: 4px; text-transform: uppercase;
}
.story-ba .ba.after .ba-l { color: var(--blue); }
.story.gold .story-ba .ba.after .ba-l { color: var(--gold-d); }
.story-ba p { margin: 0; font-size: .93rem; line-height: 1.75; color: var(--text); }
.story-quote {
	margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line);
	font-size: .92rem; color: var(--muted); line-height: 1.8; font-style: italic;
}
.story-quote b { display: block; font-style: normal; color: var(--navy); font-size: .85rem; margin-top: 6px; }
@media (max-width: 1000px) { .stories { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .stories { grid-template-columns: 1fr; } }

/* ملاحظة الخصوصية */
.privacy-note {
	display: flex; gap: 16px; align-items: flex-start; max-width: 900px; margin-inline: auto;
	background: linear-gradient(180deg, rgba(181, 142, 75, .08), rgba(181, 142, 75, .03));
	border: 1px solid rgba(181, 142, 75, .3); border-radius: var(--radius-lg); padding: 22px 24px;
}
.privacy-note .pn-ico {
	flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
	display: flex; align-items: center; justify-content: center;
	background: rgba(181, 142, 75, .16); color: var(--gold-d);
}
.privacy-note h4 { margin: 0 0 4px; font-size: 1rem; color: var(--navy); }
.privacy-note p { margin: 0; font-size: .93rem; line-height: 1.8; color: var(--muted); }

/* آراء أولياء الأمور — تصميم أنقى */
.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.voice {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
	padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.voice .v-mark { font-size: 42px; line-height: .8; color: var(--light-blue); margin-bottom: 6px; }
.voice p { margin: 0 0 16px; font-size: .97rem; line-height: 1.9; color: var(--text); flex: 1; }
.voice .v-who { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted); }
.voice .v-av {
	width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto;
	display: flex; align-items: center; justify-content: center; font-weight: 800;
	background: rgba(17, 117, 188, .10); color: var(--blue); font-size: .9rem;
}
@media (max-width: 900px) { .voices { grid-template-columns: 1fr; } }

/* == معرض الصور: شبكة Masonry + Lightbox ================== */
.gal-grid {
	display: grid; grid-template-columns: repeat(3, 1fr);
	gap: 18px; grid-auto-rows: 220px;
}
.gal-item {
	position: relative; display: block; overflow: hidden; margin: 0;
	border-radius: var(--radius); background: var(--bg-soft);
	box-shadow: var(--shadow); cursor: zoom-in; border: none; padding: 0;
	transition: box-shadow var(--speed), transform var(--speed);
}
.gal-item.tall { grid-row: span 2; }
.gal-item.wide { grid-column: span 2; }
.gal-item img {
	width: 100%; height: 100%; object-fit: cover; display: block;
	transition: transform .5s ease;
}
.gal-item:hover { box-shadow: var(--shadow-h); }
.gal-item:hover img { transform: scale(1.05); }
.gal-item::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, transparent 55%, rgba(11, 37, 64, .62));
	opacity: 0; transition: opacity var(--speed);
}
.gal-item:hover::after, .gal-item:focus-visible::after { opacity: 1; }
.gal-cap {
	position: absolute; inset-inline: 0; bottom: 0; z-index: 2;
	padding: 14px 16px; color: #fff; font-size: .92rem; font-weight: 600;
	text-align: start; transform: translateY(8px); opacity: 0;
	transition: opacity var(--speed), transform var(--speed);
}
.gal-item:hover .gal-cap, .gal-item:focus-visible .gal-cap { opacity: 1; transform: none; }
.gal-zoom {
	position: absolute; inset-inline-end: 12px; top: 12px; z-index: 2;
	width: 34px; height: 34px; border-radius: 50%;
	background: rgba(255, 255, 255, .92); color: var(--navy);
	display: flex; align-items: center; justify-content: center;
	opacity: 0; transform: scale(.85); transition: opacity var(--speed), transform var(--speed);
}
.gal-item:hover .gal-zoom, .gal-item:focus-visible .gal-zoom { opacity: 1; transform: none; }
@media (max-width: 900px) {
	.gal-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; grid-auto-rows: 180px; }
	.gal-item.wide { grid-column: span 2; }
}
@media (max-width: 560px) {
	.gal-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; gap: 14px; }
	.gal-item.tall, .gal-item.wide { grid-row: auto; grid-column: auto; }
	.gal-cap { opacity: 1; transform: none; }
	.gal-item::after { opacity: 1; }
}

/* Lightbox */
.smc-lightbox {
	position: fixed; inset: 0; z-index: 999; display: none;
	background: rgba(8, 26, 45, .93); backdrop-filter: blur(4px);
	align-items: center; justify-content: center; padding: 24px;
}
.smc-lightbox.open { display: flex; animation: lb-in .2s ease both; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.smc-lightbox figure { margin: 0; max-width: min(1200px, 94vw); text-align: center; }
.smc-lightbox img {
	max-width: 100%; max-height: 78svh; width: auto; height: auto;
	border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); display: block; margin-inline: auto;
}
.smc-lightbox figcaption { color: #e8f1f8; margin-top: 14px; font-size: .95rem; }
.smc-lightbox .lb-count { color: rgba(255, 255, 255, .6); font-size: .84rem; margin-top: 6px; }
.lb-btn {
	position: absolute; width: 48px; height: 48px; border-radius: 50%;
	background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
	color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
	transition: background var(--speed);
}
.lb-btn:hover { background: rgba(255, 255, 255, .28); }
.lb-close { top: 20px; inset-inline-end: 20px; }
.lb-prev { inset-inline-start: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { inset-inline-end: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 560px) {
	.lb-prev { inset-inline-start: 10px; }
	.lb-next { inset-inline-end: 10px; }
	.lb-btn { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
	.gal-item img, .gal-item::after, .gal-cap, .smc-lightbox.open { transition: none; animation: none; }
}

/* == صفحة تواصل معنا: النموذج + بطاقة الموقع ================ */
.contact-layout {
	display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px; align-items: start;
	max-width: 1120px; margin-inline: auto;
}
.contact-layout .smc-form-wrap { max-width: none; margin-inline: 0; }

/* بطاقة الخريطة */
.map-card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
	box-shadow: var(--shadow); overflow: hidden; position: sticky; top: 96px;
	transition: box-shadow var(--speed), transform var(--speed);
}
.map-card:hover { box-shadow: var(--shadow-h); }
.map-frame {
	position: relative; line-height: 0;
	/* خلفية احتياطية بهوية الموقع إن تعذّر تحميل الخريطة */
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / 44px no-repeat,
		linear-gradient(135deg, var(--blue), var(--navy));
}
.map-frame iframe { width: 100%; height: 280px; border: 0; display: block; filter: saturate(.92); }
.map-frame::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	box-shadow: inset 0 -30px 40px -30px rgba(11, 37, 64, .25);
}
.map-body { padding: 22px 24px; }
.map-title { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 1.12rem; color: var(--navy); }
.map-title svg { color: var(--blue); flex: 0 0 auto; }
.map-addr { margin: 0 0 16px; font-size: .93rem; line-height: 1.8; color: var(--muted); }
.map-rows { display: grid; gap: 12px; margin-bottom: 18px; }
.map-row { display: flex; align-items: flex-start; gap: 11px; font-size: .93rem; color: var(--text); }
.map-row .mr-ico {
	flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px;
	display: flex; align-items: center; justify-content: center;
	background: rgba(17, 117, 188, .10); color: var(--blue);
}
.map-row b { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; margin-bottom: 1px; }
.map-row a { color: var(--navy); font-weight: 700; }
.map-row a:hover { color: var(--blue); }
.map-coords {
	display: block; font-size: .78rem; color: var(--muted); letter-spacing: .3px;
	margin-bottom: 14px; direction: ltr; text-align: start;
}
.map-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.map-actions .btn { flex: 1 1 auto; }
@media (max-width: 940px) {
	.contact-layout { grid-template-columns: 1fr; gap: 26px; }
	.map-card { position: static; }
}
