/*
Theme Name: Stemlix
Theme URI: https://stemlix.com/
Author: Stemlix
Author URI: https://stemlix.com/
Description: Informational WordPress theme for Stemlix, an English-first (LTR) stem cell therapy education site with Arabic (RTL) as the second language. Light, airy design with a floating-cells hero, topic navigation and article-first layout. WPML ready.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.8
Text Domain: stemlix
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* -------------------------------------------------------
   1. Design tokens
------------------------------------------------------- */
:root {
	--wn-primary: #0e7c86;
	--wn-primary-dark: #083c47;
	--wn-primary-light: #e0f3f4;
	--wn-accent: #ff6b57;
	--wn-cream: #f1f9f8;
	--wn-text: #10262b;
	--wn-text-soft: #4d6469;
	--wn-white: #ffffff;
	--wn-border: #d5e6e7;
	--wn-radius: 22px;
	--wn-radius-sm: 12px;
	--wn-shadow: 0 18px 46px rgba(8, 60, 71, .12);
	--wn-container: 1180px;
	--wn-header-h: 76px;
	--wn-font: 'Inter', 'Cairo', -apple-system, 'Segoe UI', Tahoma, sans-serif;
	--wn-font-head: 'Sora', 'Cairo', -apple-system, 'Segoe UI', Tahoma, sans-serif;
}
html:lang(ar) { --wn-font: 'Cairo', 'Inter', Tahoma, sans-serif; --wn-font-head: 'Cairo', 'Sora', Tahoma, sans-serif; }

/* -------------------------------------------------------
   2. Reset & base
------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0; font-family: var(--wn-font); color: var(--wn-text); background: #fff;
	line-height: 1.75; font-size: 17px; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.3; letter-spacing: -.01em; font-weight: 700; font-family: var(--wn-font-head); text-wrap: balance; }
p { margin: 0 0 1em; color: var(--wn-text-soft); text-wrap: pretty; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
.wn-icon { flex-shrink: 0; vertical-align: middle; }

:focus-visible { outline: 3px solid var(--wn-accent); outline-offset: 3px; border-radius: 4px; }
.section--dark :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

.skip-link {
	position: absolute; inset-inline-start: 16px; top: -60px; z-index: 300; background: var(--wn-accent); color: var(--wn-primary-dark);
	padding: 10px 18px; border-radius: 0 0 10px 10px; font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 0; }
.screen-reader-text {
	position: absolute !important; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	overflow: hidden; height: 1px; width: 1px; margin: -1px; padding: 0; border: 0; white-space: nowrap;
}

.container { max-width: var(--wn-container); margin: 0 auto; padding-inline: 24px; }
.section { padding-block: clamp(60px, 8vw, 96px); }
.section--soft { background: var(--wn-cream); }
.section--dark { background: var(--wn-primary-dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255, 255, 255, .75); }
[id] { scroll-margin-top: calc(var(--wn-header-h) + 16px); }

.section-head { text-align: start; max-width: 680px; margin: 0 0 48px; }
.section-head h2 { font-size: clamp(25px, 3.3vw, 36px); position: relative; padding-bottom: 18px; }
.section-head h2::after { content: ''; position: absolute; inset-inline-start: 0; bottom: 0; width: 56px; height: 4px; border-radius: 4px; background: var(--wn-accent); }
.section-head p { font-size: 18px; margin-bottom: 0; }
.section-more { margin: 40px 0 0; }

.badge {
	display: inline-flex; align-items: center; gap: 10px; color: var(--wn-primary-dark); background: #fff; border: 1px solid var(--wn-border);
	padding: 5px 16px; border-radius: 50px; font-size: 14px; font-weight: 600; margin-bottom: 22px;
}
.badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--wn-accent); }

/* -------------------------------------------------------
   3. Buttons
------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 26px; border-radius: 50px; font-weight: 700; font-size: 16px; line-height: 1.5; font-family: var(--wn-font-head);
	border: 2px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn--lg { padding: 15px 32px; font-size: 17px; }
.btn--block { display: flex; width: 100%; }
.btn--gold, .btn--accent { background: var(--wn-accent); color: var(--wn-text); }
.btn--gold:hover, .btn--accent:hover { background: #ff8272; transform: translateY(-1px); }
.btn--primary { background: var(--wn-primary); color: #fff; }
.btn--primary:hover { background: var(--wn-primary-dark); }
.btn--outline { border-color: var(--wn-primary); color: var(--wn-primary); background: transparent; }
.btn--outline:hover { background: var(--wn-primary); color: #fff; }
.btn--ghost { color: var(--wn-text); border-color: var(--wn-border); background: #fff; }
.btn--ghost:hover { border-color: var(--wn-primary); color: var(--wn-primary); }
.btn--light { background: #fff; color: var(--wn-primary-dark); }
.btn--light:hover { background: var(--wn-cream); }
.btn--ghost-light { color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn[disabled], .btn.is-loading { opacity: .65; cursor: progress; }

/* -------------------------------------------------------
   4. Top bar + Header
------------------------------------------------------- */
.topbar { background: var(--wn-primary-light); color: var(--wn-primary-dark); font-size: 14px; border-bottom: 1px solid var(--wn-border); }
.topbar .container { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 40px; padding-block: 6px; flex-wrap: wrap; text-align: center; }
.topbar a { color: var(--wn-primary-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.topbar a:hover { color: var(--wn-primary); }

.site-header { position: sticky; top: 0; z-index: 100; isolation: isolate; border-bottom: 1px solid var(--wn-border); transition: box-shadow .25s; }
/* الخلفية الضبابية على عنصر مستقل حتى لا تكسر القائمة المنزلقة (position: fixed) */
.site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(22, 35, 63, .09); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--wn-header-h); }
.site-branding { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.site-branding img { max-height: 44px; width: auto; }
.site-title { font-family: var(--wn-font-head); font-size: 21px; font-weight: 800; color: var(--wn-primary-dark); }

.primary-nav { flex: 1; display: flex; justify-content: center; }
.primary-menu { display: flex; align-items: center; gap: 30px; }
.primary-menu a { display: block; padding: 8px 2px; font-weight: 600; font-size: 16px; color: var(--wn-text); border-bottom: 3px solid transparent; transition: color .2s, border-color .2s; }
.primary-menu a:hover, .primary-menu .current-menu-item > a, .primary-menu a[aria-current="page"] { color: var(--wn-primary); border-bottom-color: var(--wn-accent); }
.primary-menu .sub-menu { display: none; }
.nav-extra { display: none; }

.header-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-cta .btn { padding: 9px 22px; font-size: 15px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--wn-primary-dark); direction: ltr; }
.header-phone .wn-icon { color: var(--wn-primary); }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 10px; margin-inline-end: -10px; }
.menu-toggle span { width: 26px; height: 2px; background: var(--wn-text); border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) { .header-phone span { display: none; } }

@media (max-width: 900px) {
	:root { --wn-header-h: 68px; }
	.menu-toggle { display: flex; }
	.header-phone { display: none; }
	.primary-nav {
		position: fixed; inset: var(--wn-header-h) 0 0 0; background: #fff; z-index: 99; flex-direction: column; justify-content: flex-start;
		padding: 24px 24px 40px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s;
	}
	.primary-nav.is-open { transform: translateX(0); visibility: visible; transition: transform .3s ease, visibility 0s; }
	.primary-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-menu li { border-bottom: 1px solid var(--wn-border); }
	.primary-menu a { padding: 16px 0; font-size: 19px; border-bottom: 0 !important; }
	.nav-extra { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
	body.menu-open { overflow: hidden; }
}
@media (max-width: 560px) { .has-mobile-bar .header-cta .btn--gold { display: none; } .topbar { font-size: 13px; } }

/* -------------------------------------------------------
   5. Hero (light, floating cells)
------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(circle at 85% 20%, var(--wn-primary-light), transparent 55%), linear-gradient(180deg, var(--wn-cream), #fff); padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(32px, 4.8vw, 56px); line-height: 1.18; font-weight: 800; color: var(--wn-primary-dark); margin-bottom: .5em; }
html:lang(ar) .hero h1 { line-height: 1.45; }
.hero p.lead { font-size: 18.5px; max-width: 34em; }

.hero-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--wn-border); border-radius: 60px; padding: 6px; padding-inline-start: 20px; max-width: 560px; margin-top: 28px; box-shadow: 0 10px 30px rgba(8, 60, 71, .08); transition: border-color .2s; }
.hero-search:focus-within { border-color: var(--wn-primary); }
.hero-search-icon { color: var(--wn-primary); display: flex; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 10px 6px; font-size: 16.5px; }
.hero-search .btn { padding: 11px 26px; }
.hero-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 18px 0 0; font-size: 14.5px; }
.hero-popular span { color: var(--wn-text-soft); font-weight: 600; }
.hero-popular a { padding: 4px 14px; border-radius: 30px; background: #fff; border: 1px solid var(--wn-border); color: var(--wn-primary-dark); font-weight: 500; transition: border-color .2s, background-color .2s; }
.hero-popular a:hover { border-color: var(--wn-primary); background: var(--wn-primary-light); }

/* خلايا عائمة: زخرفة هادئة تعبّر عن الموضوع */
.hero-cells { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; margin-inline: auto; }
.cell { position: absolute; border-radius: 50%; display: flex; align-items: center; justify-content: center; animation: sxFloat 9s ease-in-out infinite; }
.cell--1 { width: 64%; aspect-ratio: 1; inset-inline-start: 18%; top: 18%; background: radial-gradient(circle at 32% 28%, #7fd3d8, var(--wn-primary) 62%, var(--wn-primary-dark)); box-shadow: 0 30px 60px rgba(8, 60, 71, .28); }
.cell--1 .nucleus { width: 34%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--wn-primary-light) 60%, #a8dde0); transform: translate(12%, -6%); box-shadow: inset 0 -6px 14px rgba(8, 60, 71, .2); }
.cell--2 { width: 26%; aspect-ratio: 1; inset-inline-end: 2%; top: 6%; background: #fff; color: var(--wn-primary); border: 2px solid var(--wn-border); box-shadow: var(--wn-shadow); animation-delay: -2s; }
.cell--3 { width: 22%; aspect-ratio: 1; inset-inline-start: 4%; bottom: 10%; background: #ffe3de; color: #c2402b; animation-delay: -4s; }
.cell--4 { width: 11%; aspect-ratio: 1; inset-inline-start: 10%; top: 12%; background: var(--wn-accent); animation-delay: -1s; }
.cell--5 { width: 8%; aspect-ratio: 1; inset-inline-end: 12%; bottom: 22%; border: 3px solid var(--wn-primary); animation-delay: -5s; }
.cell--6 { width: 19%; aspect-ratio: 1; inset-inline-end: 6%; bottom: 2%; background: var(--wn-primary-light); color: var(--wn-primary-dark); border: 2px solid #fff; box-shadow: var(--wn-shadow); animation-delay: -3s; }
@keyframes sxFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .cell { animation: none; } }

@media (max-width: 900px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-cells { max-width: 320px; order: -1; }
	.hero-search { max-width: none; }
}
@media (max-width: 480px) { .hero-search .btn { padding: 11px 18px; } }

/* -------------------------------------------------------
   6. لماذا نحن (أيقونة بجانب النص، بدون بطاقات)
------------------------------------------------------- */
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
.feature { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; align-items: start; }
.feature-icon { grid-row: span 2; width: 56px; height: 56px; border-radius: 50%; background: var(--wn-primary); color: #fff; display: flex; align-items: center; justify-content: center; }
.feature h3 { font-size: 19px; margin-bottom: 4px; align-self: end; }
.feature p { margin: 0; font-size: 16px; }
@media (max-width: 900px) { .feature-row { grid-template-columns: 1fr; gap: 28px; } }

/* -------------------------------------------------------
   7. Services (صفوف أفقية)
------------------------------------------------------- */
.service-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.service-card { background: #fff; border-radius: var(--wn-radius); overflow: hidden; border: 1px solid var(--wn-border); transition: border-color .25s, box-shadow .25s; display: grid; grid-template-columns: 200px 1fr; }
.service-card:hover { border-color: var(--wn-primary); box-shadow: var(--wn-shadow); }
.service-thumb { background: var(--wn-primary); color: var(--wn-accent); overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 140px; }
.service-thumb img { width: 100%; height: 100%; object-fit: cover; }
.service-thumb .wn-icon { width: 48px; height: 48px; }
.service-body { padding: 26px 30px; display: flex; flex-direction: column; justify-content: center; }
.service-body h3 { font-size: 20px; margin-bottom: 8px; }
.service-body p { font-size: 16px; margin-bottom: 12px; max-width: 46em; }
.service-link { color: var(--wn-primary); font-weight: 700; font-size: 15px; text-decoration: underline; text-decoration-color: var(--wn-accent); text-underline-offset: 6px; text-decoration-thickness: 3px; align-self: flex-start; }
@media (max-width: 640px) { .service-card { grid-template-columns: 1fr; } .service-thumb { min-height: 110px; } .service-body { padding: 22px; } }

/* -------------------------------------------------------
   9. Team (صور دائرية)
------------------------------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 250px)); justify-content: start; gap: 40px 32px; }
.team-card { text-align: center; }
.team-photo { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; overflow: hidden; background: var(--wn-primary-light); border-radius: 50%; margin: 0 auto 18px; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--wn-accent); max-width: 210px; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-initial { font-family: var(--wn-font-head); font-size: 60px; font-weight: 800; color: var(--wn-primary); opacity: .75; }
.team-card h3 { font-size: 18px; margin-bottom: 2px; }
.team-role { color: var(--wn-primary); font-weight: 500; margin: 0; font-size: 15px; }
.team-years { font-size: 14px; margin: 4px 0 0; }
@media (max-width: 560px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; } }

/* -------------------------------------------------------
   11. FAQ
------------------------------------------------------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-intro { position: sticky; top: calc(var(--wn-header-h) + 32px); }
.faq-intro h2 { font-size: clamp(25px, 3.2vw, 34px); }
.faq-item { background: #fff; border: 1px solid var(--wn-border); border-radius: var(--wn-radius-sm); margin-bottom: 12px; }
.faq-item[open] { border-color: var(--wn-primary); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; padding-inline-end: 60px; position: relative; font-weight: 700; font-size: 17.5px; line-height: 1.7; font-family: var(--wn-font-head); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before, .faq-item summary::after { content: ''; position: absolute; inset-inline-end: 24px; top: 50%; width: 14px; height: 2px; margin-top: -1px; background: var(--wn-primary); border-radius: 2px; transition: transform .25s; }
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0); }
.faq-answer { padding: 0 24px 22px; }
.faq-answer p { font-size: 16.5px; }
.faq-answer > :last-child { margin-bottom: 0; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } .faq-intro { position: static; } }

/* -------------------------------------------------------
   12. Blog, single, pages
------------------------------------------------------- */
.page-hero { background: linear-gradient(180deg, var(--wn-primary-light), var(--wn-cream)); color: var(--wn-text); padding: clamp(44px, 6vw, 72px) 0; position: relative; overflow: hidden; border-bottom: 1px solid var(--wn-border); }
.page-hero::after { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; inset-inline-end: -90px; top: -120px; background: radial-gradient(circle at 35% 30%, rgba(14, 124, 134, .22), rgba(14, 124, 134, 0) 70%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(28px, 3.8vw, 42px); color: var(--wn-primary-dark); max-width: 24em; }
.page-hero-desc { max-width: 40em; margin: 0; font-size: 18px; }
.page-hero-desc p { color: inherit; }
.page-hero .post-meta { margin: 14px 0 0; }
.hero-cats { margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.hero-cats a, .cat-pills a { display: inline-block; padding: 3px 14px; border-radius: 30px; font-size: 14px; font-weight: 600; background: #fff; color: var(--wn-primary-dark); border: 1px solid var(--wn-border); transition: background-color .2s, border-color .2s; }
.hero-cats a:hover, .cat-pills a:hover, .cat-pills .current-cat a { background: var(--wn-primary); color: #fff; border-color: var(--wn-primary); }
.cat-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }

.entry-content { max-width: 760px; margin: 0 auto; padding: 56px 0 24px; font-size: 18px; color: var(--wn-text); }
.entry-content > * + * { margin-top: 1.2em; margin-bottom: 0; }
.entry-content p { color: var(--wn-text); }
.entry-content h2 { font-size: 26px; margin-top: 1.8em; }
.entry-content h3 { font-size: 21px; margin-top: 1.6em; }
.entry-content ul { list-style: disc; padding-inline-start: 1.5em; }
.entry-content ol { list-style: decimal; padding-inline-start: 1.5em; }
.entry-content li + li { margin-top: .4em; }
.entry-content a { color: var(--wn-primary); text-decoration: underline; text-underline-offset: 4px; }
.entry-content blockquote { margin-inline: 0; padding: 4px 24px; border-inline-start: 4px solid var(--wn-accent); background: var(--wn-cream); border-radius: var(--wn-radius-sm); }
.entry-content img, .entry-thumb { border-radius: var(--wn-radius); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid var(--wn-border); text-align: start; }
.entry-content .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.5em; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-tags a { display: inline-block; margin: 0 0 6px 6px; font-size: 14px; text-decoration: none; padding: 2px 12px; background: var(--wn-primary-light); border-radius: 8px; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--wn-text-soft); }

.post-nav { max-width: 760px; margin: 24px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav a { display: block; padding: 16px 20px; border: 1px solid var(--wn-border); border-radius: var(--wn-radius-sm); transition: border-color .2s; height: 100%; }
.post-nav a:hover { border-color: var(--wn-primary); }
.post-nav small { display: block; font-size: 13px; color: var(--wn-text-soft); }
.post-nav span { font-weight: 700; line-height: 1.5; display: block; }
.post-nav-next { grid-column: 2; text-align: end; }
.post-nav-prev { grid-column: 1; }
.related { margin-top: 64px; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding: 60px 0; }
.blog-grid--flush { padding: 0; }
.post-card { background: #fff; border: 1px solid var(--wn-border); border-radius: var(--wn-radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .25s, box-shadow .25s; }
.post-card:hover { border-color: var(--wn-primary); box-shadow: var(--wn-shadow); }
.post-card .thumb { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; background: var(--wn-primary-light); overflow: hidden; color: var(--wn-primary); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 22px 24px 26px; }
.post-card h3 { font-size: 18px; line-height: 1.7; }
.post-card h3 a:hover { color: var(--wn-primary); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--wn-accent); }
.post-card .body > p:last-child { margin-bottom: 0; font-size: 15.5px; }
.post-meta { font-size: 14px; color: var(--wn-text-soft); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; padding-block: 44px; } .post-nav { grid-template-columns: 1fr; } .post-nav-next, .post-nav-prev { grid-column: 1; } }

.navigation.pagination { padding-bottom: 72px; }
.nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.page-numbers { min-width: 42px; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--wn-border); border-radius: 10px; font-weight: 700; font-size: 15px; }
a.page-numbers:hover { border-color: var(--wn-primary); }
.page-numbers.current { background: var(--wn-primary); border-color: var(--wn-primary); color: #fff; }

.empty-state { text-align: center; padding: 72px 0 96px; }
.search-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto 24px; }
.search-form input[type="search"] { flex: 1; min-width: 0; padding: 12px 18px; border: 1px solid var(--wn-border); border-radius: var(--wn-radius-sm); background: var(--wn-cream); }
.search-form input:focus { outline: none; border-color: var(--wn-primary); background: #fff; }

.specialist-layout { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; padding-top: 56px; }
.specialist-layout .entry-content { padding-top: 0; margin: 0; }
.specialist-photo img { width: 100%; border-radius: 50%; aspect-ratio: 1; object-fit: cover; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--wn-accent); }
@media (max-width: 780px) { .specialist-layout { grid-template-columns: 1fr; gap: 0; } .specialist-photo { max-width: 220px; margin: 0 auto; } }

.entry-comments { max-width: 760px; margin: 40px auto 0; padding-bottom: 16px; }
.comment-list { margin: 0 0 32px; }
.comment-list .comment { padding: 18px 0; border-bottom: 1px solid var(--wn-border); }
.comment-list .children { margin-inline-start: 24px; }
.comment-respond input[type="text"], .comment-respond input[type="email"], .comment-respond input[type="url"], .comment-respond textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--wn-border); border-radius: var(--wn-radius-sm); background: var(--wn-cream); }
.comment-respond .submit { background: var(--wn-primary); color: #fff; border: 0; padding: 12px 28px; border-radius: var(--wn-radius-sm); font-weight: 700; cursor: pointer; }

/* -------------------------------------------------------
   13. شريط الدعوة للحجز (ذهبي)
------------------------------------------------------- */
.cta-band { background: var(--wn-accent); color: var(--wn-primary-dark); padding: 52px 0; margin-top: 72px; }
.related + .cta-band { margin-top: 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: var(--wn-primary-dark); font-size: clamp(23px, 3vw, 30px); margin-bottom: 6px; }
.cta-band p { color: rgba(22, 35, 63, .8); margin: 0; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn--light { background: var(--wn-primary-dark); color: #fff; }
.cta-band .btn--light:hover { background: #0e1730; }
.cta-band .btn--ghost-light { color: var(--wn-primary-dark); border-color: rgba(22, 35, 63, .45); }
.cta-band .btn--ghost-light:hover { background: rgba(22, 35, 63, .08); border-color: var(--wn-primary-dark); }

/* -------------------------------------------------------
   15. Contact
------------------------------------------------------- */
.contact-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: stretch; }
.contact-info-card { background: var(--wn-primary-dark); color: #fff; border-radius: var(--wn-radius); padding: 40px; }
.contact-info-card h3 { color: #fff; font-size: 22px; }
.contact-info-card p { color: rgba(255, 255, 255, .8); }
.contact-line { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-line .ic { width: 42px; height: 42px; border-radius: 10px; background: var(--wn-accent); color: var(--wn-primary-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-line strong { display: block; font-size: 14px; color: rgba(255, 255, 255, .7); font-weight: 500; line-height: 1.5; }
.contact-line span:not(.ic), .contact-line a { font-size: 17px; font-weight: 600; color: #fff; }
.contact-line a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-map { display: block; margin-top: 4px; font-size: 14px !important; font-weight: 500 !important; color: rgba(255, 255, 255, .85) !important; text-decoration: underline; text-underline-offset: 4px; }
.social-row { display: flex; gap: 10px; margin-top: 28px; }
.social-row a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #fff; display: flex; align-items: center; justify-content: center; transition: background-color .2s, color .2s; }
.social-row a:hover { background: var(--wn-accent); color: var(--wn-primary-dark); }

.contact-form { background: #fff; border: 1px solid var(--wn-border); border-radius: var(--wn-radius); padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 13px 16px; border: 1px solid var(--wn-border); border-radius: var(--wn-radius-sm); background: var(--wn-cream); transition: border-color .2s, background-color .2s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--wn-primary); background: #fff; box-shadow: 0 0 0 3px var(--wn-primary-light); }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; font-size: 14.5px; color: var(--wn-text-soft); line-height: 1.7; cursor: pointer; }
.form-consent input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--wn-primary); flex-shrink: 0; }
.form-consent a { color: var(--wn-primary); text-decoration: underline; text-underline-offset: 3px; margin-inline-start: 4px; }
.form-notice { padding: 14px 18px; border-radius: var(--wn-radius-sm); margin-bottom: 20px; font-size: 15.5px; }
.form-notice--success { background: #e3f4ec; color: #1f5a41; }
.form-notice--error { background: #fbeaea; color: #8f2626; }
.hp-field { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-intro { max-width: 720px; margin: 0 0 48px; font-size: 18px; }
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; } .contact-info-card, .contact-form { padding: 28px; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

/* -------------------------------------------------------
   16. Footer + عناصر عائمة
------------------------------------------------------- */
.site-footer { background: #06303a; color: rgba(255, 255, 255, .78); padding: 68px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 44px; }
.footer-grid h4 { color: #fff; font-size: 16px; margin-bottom: 18px; padding-bottom: 10px; position: relative; }
.footer-grid h4::after { content: ''; position: absolute; inset-inline-start: 0; bottom: 0; width: 28px; height: 3px; background: var(--wn-accent); border-radius: 3px; }
.footer-grid p { color: rgba(255, 255, 255, .68); font-size: 15px; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { font-size: 15px; color: rgba(255, 255, 255, .78); }
.footer-grid a:hover { color: var(--wn-accent); }
.footer-grid .custom-logo-link img { max-height: 48px; width: auto; margin-bottom: 14px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.footer-contact .wn-icon { margin-top: 5px; color: var(--wn-accent); }
.footer-about .social-row { margin-top: 20px; }
.footer-emergency { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 18px 0; font-size: 14.5px; line-height: 1.7; color: rgba(255, 255, 255, .72); border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-emergency .wn-icon { margin-top: 3px; color: var(--wn-accent); }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0 0; }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-legal a { font-size: 14px; color: rgba(255, 255, 255, .78); }
.footer-legal a:hover { color: var(--wn-accent); }
.footer-bottom { padding: 16px 0 22px; font-size: 14px; color: rgba(255, 255, 255, .55); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.wa-float { position: fixed; z-index: 90; inset-inline-end: 24px; bottom: 24px; width: 56px; height: 56px; border-radius: 50%; background: #1a9c53; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); transition: transform .2s, background-color .2s; }
.wa-float:hover { transform: scale(1.06); background: #147d42; }

.mobile-bar { display: none; }
@media (max-width: 768px) {
	.wa-float { display: none; }
	.has-mobile-bar { padding-bottom: 76px; }
	.mobile-bar { display: flex; gap: 8px; position: fixed; z-index: 95; inset-inline: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--wn-border); box-shadow: 0 -6px 20px rgba(22, 35, 63, .09); }
	.mobile-bar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 8px; border-radius: var(--wn-radius-sm); font-weight: 700; font-size: 15px; font-family: var(--wn-font-head); color: var(--wn-primary-dark); border: 1.5px solid var(--wn-border); }
	.mobile-bar a.is-primary { flex: 1.5; background: var(--wn-accent); border-color: var(--wn-accent); }
}

/* -------------------------------------------------------
   17. مبدّل اللغات (WPML)
------------------------------------------------------- */
.sx-lang-switcher ul { display: flex; gap: 6px; }
.sx-lang-switcher a { display: inline-block; padding: 5px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; line-height: 1.6; border: 1px solid var(--wn-border); color: var(--wn-text-soft); transition: background-color .2s, color .2s, border-color .2s; }
.sx-lang-switcher li.is-active a, .sx-lang-switcher a:hover { background: var(--wn-primary); border-color: var(--wn-primary); color: #fff; }
.sx-lang-switcher--select select { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--wn-border); background: var(--wn-cream); font-weight: 700; font-size: 14px; cursor: pointer; }
html[dir="ltr"] .entry-content .alignleft { margin: .3em 1.5em 1em 0; }

/* -------------------------------------------------------
   18. تقليل الحركة + الطباعة
------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; }
}
@media print {
	.topbar, .site-header, .site-footer, .mobile-bar, .wa-float, .cta-band { display: none !important; }
	body { font-size: 12pt; }
}

/* -------------------------------------------------------
   19. Topics + articles grid + therapies (dark section)
------------------------------------------------------- */
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.topic-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 26px; background: #fff; border: 1px solid var(--wn-border); border-radius: var(--wn-radius); transition: border-color .25s, box-shadow .25s, transform .25s; }
.topic-card:hover { border-color: var(--wn-primary); box-shadow: var(--wn-shadow); transform: translateY(-3px); }
.topic-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--wn-primary-light); color: var(--wn-primary); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.topic-icon .wn-icon { width: 28px; height: 28px; }
.topic-name { font-family: var(--wn-font-head); font-weight: 700; font-size: 18px; line-height: 1.4; color: var(--wn-primary-dark); }
.topic-count { font-size: 14px; color: var(--wn-text-soft); }
@media (max-width: 960px) { .topic-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .topic-grid { grid-template-columns: 1fr; } .topic-card { flex-direction: row; align-items: center; gap: 16px; } .topic-icon { margin: 0; } }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.article-grid .post-card--feature { grid-column: span 2; }
.post-card--feature .thumb { aspect-ratio: 16 / 9; }
.article-grid .post-card:not(.post-card--feature) .thumb { flex: 1; min-height: 160px; }
.post-card--feature .body { padding: 28px 30px 32px; }
.post-card--feature h3 { font-size: 26px; line-height: 1.35; }
.post-card--feature .body > p:last-child { font-size: 17px; }
@media (max-width: 900px) { .article-grid { grid-template-columns: 1fr 1fr; } .article-grid .post-card--feature { grid-column: span 2; } }
@media (max-width: 600px) { .article-grid { grid-template-columns: 1fr; } .article-grid .post-card--feature { grid-column: auto; } }

.section--dark .service-card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.section--dark .service-card:hover { border-color: var(--wn-accent); box-shadow: none; }
.section--dark .service-thumb { background: rgba(255, 255, 255, .08); color: var(--wn-accent); }
.section--dark .service-body p { color: rgba(255, 255, 255, .75); }
.section--dark .service-link { color: #fff; }
.section--dark .section-head p { color: rgba(255, 255, 255, .75); }

/* -------------------------------------------------------
   مبدّل اللغات: زر + قائمة منسدلة
------------------------------------------------------- */
.langsw { position: relative; }
.langsw-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--wn-border); border-radius: 50px; background: #fff; color: var(--wn-primary-dark); font-weight: 700; font-size: 14px; line-height: 1.4; cursor: pointer; transition: border-color .2s, background-color .2s; }
.langsw-btn:hover, .langsw-btn[aria-expanded="true"] { border-color: var(--wn-primary); background: var(--wn-primary-light); }
.langsw-btn .wn-icon { color: var(--wn-primary); }
.langsw-btn[aria-expanded="true"] .wn-icon:last-child { transform: rotate(180deg); }
.langsw-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); min-width: 190px; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--wn-border); border-radius: 16px; box-shadow: var(--wn-shadow); z-index: 150; }
.langsw-menu[hidden] { display: none; }
.langsw-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--wn-text); }
.langsw-menu a:hover, .langsw-menu a[aria-current] { background: var(--wn-primary-light); color: var(--wn-primary-dark); }
.langsw-menu .code { width: 30px; font-size: 12px; font-weight: 800; color: var(--wn-primary); letter-spacing: .02em; }
.langsw-menu a[aria-current] .code::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-inline-start: 4px; border-radius: 50%; background: var(--wn-accent); vertical-align: middle; }
@media (max-width: 900px) { .langsw-btn { padding: 8px 11px; } }

/* -------------------------------------------------------
   مكوّنات جديدة: Breadcrumbs، صندوق الكاتب/المراجع، الأسئلة الشائعة،
   عناقيد المحتوى (Content Clusters)، مبدّل اللغة الذاتي
------------------------------------------------------- */
.sx-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; font-size: 13px; }
.sx-crumbs li:not(:last-child)::after { content: '/'; margin-inline-start: 6px; opacity: .5; }
.sx-crumbs a { color: var(--wn-text-muted, #667085); }
.sx-crumbs a:hover { color: var(--wn-primary); }
.sx-crumbs [aria-current] { color: var(--wn-primary-dark); font-weight: 700; }

.sx-author-box { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 14px 18px; background: var(--wn-primary-light, #f3f6ff); border-radius: 14px; margin-bottom: 20px; }
.sx-person { display: flex; align-items: center; gap: 10px; }
.sx-person img { border-radius: 50%; }
.sx-label { display: block; font-size: 11px; color: var(--wn-text-muted, #667085); }
.sx-person a { font-weight: 700; color: var(--wn-primary-dark); }
.sx-date { display: block; font-size: 11px; color: var(--wn-text-muted, #667085); }
.sx-dates { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--wn-text-muted, #667085); margin-inline-start: auto; }

.sx-faq-block { margin: 34px 0; }
.sx-faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.sx-faq-item { background: #fff; border: 1px solid var(--wn-border); border-radius: 12px; padding: 4px 18px; }
.sx-faq-item summary { padding: 14px 0; font-weight: 700; cursor: pointer; }
.sx-faq-a { padding-bottom: 16px; color: var(--wn-text-muted, #667085); }

.sx-related-cluster { margin: 30px 0; padding: 22px; background: #fafafa; border-radius: 14px; }
.sx-pillar-link { display: inline-block; margin: 6px 0 12px; font-weight: 700; color: var(--wn-primary); }
.sx-related-cluster ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sx-related-cluster a { font-weight: 600; color: var(--wn-primary-dark); }

.sx-page-hero { padding: 40px 0 30px; background: var(--wn-primary-light, #f3f6ff); }
.sx-container { max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
.sx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 16px; }
.sx-card, .sx-post-card { display: block; padding: 20px; background: #fff; border: 1px solid var(--wn-border); border-radius: 14px; }
.sx-card:hover, .sx-post-card:hover { border-color: var(--wn-primary); }
.sx-cluster-nav, .sx-archive-posts { padding-block: 26px; }
@media (max-width: 900px) { .sx-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .sx-grid { grid-template-columns: 1fr; } }

.sx-lang-switcher { position: relative; display: inline-block; }
.sx-lang-current { padding: 8px 14px; border: 1px solid var(--wn-border); border-radius: 50px; background: #fff; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.sx-lang-list { display: none; position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 160px; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--wn-border); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.12); z-index: 150; }
.sx-lang-switcher:hover .sx-lang-list, .sx-lang-switcher:focus-within .sx-lang-list { display: block; }
.sx-lang-list a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; }
.sx-lang-list a:hover, .sx-lang-list a[aria-current] { background: var(--wn-primary-light, #f3f6ff); }

body.sx-dir-rtl { direction: rtl; }
