/* ==========================================================================
   Medicine Way — "Clinical Calm" design system (Arabic-first, RTL)
   ========================================================================== */

:root {
	--ink: #0B2440;
	--ink-2: #3B4D63;
	--muted: #6B7B8F;
	--line: #E3E8EF;
	--bg: #FFFFFF;
	--surface: #F5F7FA;
	--blue: #1767C1;
	--blue-dark: #0F57A8;
	--blue-soft: #E8F1FB;
	--coral: #E4644F;
	--coral-soft: #FDEDEA;
	--green: #1F8A5B;
	--green-soft: #E6F4EC;
	--radius: 12px;
	--radius-lg: 16px;
	--wrap: 1200px;
	--shadow: 0 20px 40px -28px rgba(11, 36, 64, .45);
	--font: "IBM Plex Sans Arabic", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-latin: "Inter", "IBM Plex Sans Arabic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.75; font-size: 16px; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }
[dir="auto"] { text-align: right; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 96px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid rgba(23, 103, 193, .45); outline-offset: 2px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons ------------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 11px 20px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-light { background: #fff; color: var(--ink); }
.btn-wa { background: var(--green-soft); color: var(--green); }
.btn-wa:hover { background: #D6EEE1; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--ink-2); }

/* Header ------------------------------------------------------------------- */
.topbar { background: var(--ink); color: #C9D6E6; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar-links { display: flex; gap: 16px; }
.topbar a:hover { color: #fff; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.site-header > .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; white-space: nowrap; font-family: var(--font-latin); }
.brand .logo { width: 48px; height: 48px; object-fit: contain; }
.brand small { display: block; font-family: var(--font); font-size: 11px; font-weight: 500; color: var(--muted); line-height: 1.2; }
.main-nav { flex: 1; min-width: 0; }
.main-nav .menu, .drawer .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav a { display: block; padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { background: var(--surface); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; }
.search-panel { border-top: 1px solid var(--line); background: #fff; padding: 14px 0; }
.drawer { border-top: 1px solid var(--line); background: #fff; padding: 12px 16px 20px; }
.drawer .menu { flex-direction: column; margin-bottom: 14px; }
.drawer .menu a { display: block; padding: 12px 10px; border-radius: 10px; font-weight: 500; }
.drawer .menu a:hover { background: var(--surface); }
.drawer .btn { width: 100%; }

/* Search form ------------------------------------------------------------- */
.search-form { display: flex; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 6px; }
.search-form:focus-within { border-color: var(--blue); }
.search-form input[type="search"] { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; padding: 10px 14px; background: transparent; color: var(--ink); }
.search-form input[type="search"]::-webkit-search-cancel-button { display: none; }

/* Hero -------------------------------------------------------------------- */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--surface), #fff); }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; }
.hero .wrap > * { min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--blue); background: var(--blue-soft); padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.25; font-weight: 700; margin: 18px 0 16px; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { font-size: 18px; color: var(--ink-2); max-width: 560px; }
.hero .search-form { margin-top: 28px; max-width: 600px; box-shadow: 0 10px 30px -18px rgba(11, 36, 64, .35); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--muted); align-items: center; }
.chip { border: 1px solid var(--line); background: #fff; padding: 4px 12px; border-radius: 999px; color: var(--ink-2); font-size: 13px; }
.chip:hover, .chip.is-active { border-color: var(--blue); color: var(--blue); }
.chip.is-active { background: var(--blue-soft); }
.hero-panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: 0 24px 60px -36px rgba(11, 36, 64, .4); }
.hero-panel h2 { font-size: 15px; color: var(--muted); font-weight: 500; margin-bottom: 16px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.stat { background: var(--surface); border-radius: 12px; padding: 14px 8px; text-align: center; }
.stat b { display: block; font-family: var(--font-latin); font-size: 28px; font-weight: 700; }
.stat span { font-size: 13px; color: var(--muted); }
.path { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); margin-top: 10px; transition: background .2s, border-color .2s; }
.path:hover { border-color: var(--blue); background: var(--blue-soft); }
.path i { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-weight: 700; font-family: var(--font-latin); flex: none; }
.path b { display: block; font-size: 15px; }
.path span { font-size: 13px; color: var(--muted); }
.path .arr { margin-inline-start: auto; color: var(--muted); }

/* Sections ---------------------------------------------------------------- */
.block { padding: 72px 0; }
.block.alt { background: var(--surface); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; }
.sec-head p { color: var(--muted); margin-top: 6px; max-width: 600px; }
.sec-head .more { color: var(--blue); font-weight: 600; white-space: nowrap; }
.grid { display: grid; gap: 20px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.empty { padding: 40px; text-align: center; color: var(--muted); background: var(--surface); border-radius: var(--radius-lg); }

/* Page header (archives, templates) --------------------------------------- */
.page-hero { background: linear-gradient(180deg, var(--surface), #fff); padding: 44px 0 36px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; margin-top: 10px; }
.page-hero p { color: var(--ink-2); font-size: 17px; margin-top: 10px; max-width: 680px; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs a:hover { color: var(--blue); }
.crumbs span { opacity: .5; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

/* Cards ------------------------------------------------------------------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.media { position: relative; aspect-ratio: 16 / 10; background: var(--surface); overflow: hidden; }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media.square { aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid var(--line); }
.media.square img { object-fit: contain; padding: 16px; background: #fff; }
.cover { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 18px; color: #fff; background: linear-gradient(135deg, #0B2440 0%, #1767C1 100%); overflow: hidden; }
.cover::before { content: ""; position: absolute; top: -30px; inset-inline-start: -30px; width: 140px; height: 140px; border-radius: 50%; border: 22px solid rgba(255, 255, 255, .08); }
.cover span { font-family: var(--font-latin); font-size: 12px; font-weight: 600; color: #9FC4EE; }
.cover b { font-family: var(--font-latin); font-size: 19px; line-height: 1.35; position: relative; }
.cover.tone-1 { background: linear-gradient(135deg, #0B2440, #0F8A7E); }
.cover.tone-2 { background: linear-gradient(135deg, #1B2D52, #6A45C2); }
.cover.tone-3 { background: linear-gradient(135deg, #0B2440, #2C7BD6); }
.cover.tone-4 { background: linear-gradient(135deg, #20304A, #D24B36); }
.cover.tone-5 { background: linear-gradient(135deg, #0B2440, #1F8A5B); }
.badge { position: absolute; top: 12px; z-index: 2; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; font-family: var(--font-latin); }
.badge.off { inset-inline-start: 12px; background: var(--coral); color: #fff; }
.badge.tag { inset-inline-end: 12px; background: rgba(255, 255, 255, .94); color: var(--ink); font-family: var(--font); }
.card .body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 16px; font-weight: 600; line-height: 1.55; }
.card .kicker { font-size: 12px; font-weight: 600; color: var(--blue); }
.card .excerpt { font-size: 14px; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); }
.price b { font-family: var(--font-latin); font-size: 20px; }
.price s { color: var(--muted); font-size: 14px; }
.price .cur { font-size: 13px; color: var(--muted); }
.card .btn { margin-top: 10px; }

/* Channels library -------------------------------------------------------- */
.lib { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.lib-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; position: sticky; top: 96px; }
.lib-side h3 { font-size: 18px; margin-bottom: 4px; }
.lib-side p { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.tabs { display: flex; flex-direction: column; gap: 6px; }
.tab { text-align: start; padding: 10px 14px; border-radius: 10px; border: 0; background: transparent; font-size: 15px; color: var(--ink-2); cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.tab:hover { background: var(--surface); }
.tab.is-active { background: var(--ink); color: #fff; }
.tab small { font-family: var(--font-latin); opacity: .7; }
.chan-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.chan { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; transition: border-color .2s; }
.chan:hover { border-color: var(--blue); }
.chan .dot { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-latin); font-weight: 700; font-size: 14px; flex: none; }
.chan div { min-width: 0; }
.chan b { display: block; font-size: 15px; font-weight: 600; }
.chan span { font-size: 13px; color: var(--muted); display: block; }
.chan .go { margin-inline-start: auto; font-size: 13px; color: var(--blue); font-weight: 600; white-space: nowrap; }
.lib-collapse.is-collapsed .chan-list { max-height: 470px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.lib-collapse .expand { display: flex; margin: 18px auto 0; }
.lib-collapse:not(.is-collapsed) .expand { display: none; }

/* Home articles ----------------------------------------------------------- */
.articles { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; }
.feature { background: var(--ink); color: #fff; border-radius: 20px; padding: 36px; display: flex; flex-direction: column; justify-content: space-between; min-height: 380px; position: relative; overflow: hidden; }
.feature::after { content: ""; position: absolute; inset-inline-end: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .06); }
.feature .kicker { color: #9FC4EE; font-size: 14px; font-weight: 600; }
.feature h3 { font-size: 28px; line-height: 1.45; margin: 14px 0; }
.feature p { color: #C9D6E6; }
.feature .btn { align-self: flex-start; margin-top: 20px; position: relative; z-index: 1; }
.alist { display: flex; flex-direction: column; }
.aitem { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.aitem:first-child { padding-top: 0; }
.aitem .n { font-family: var(--font-latin); font-weight: 700; font-size: 22px; color: #C3CDD9; }
.aitem .kicker { font-size: 12px; font-weight: 600; color: var(--blue); }
.aitem h3 { font-size: 16px; font-weight: 600; line-height: 1.55; margin-top: 2px; }
.aitem:hover h3 { color: var(--blue); }

/* People ------------------------------------------------------------------ */
.doc { display: flex; align-items: center; gap: 10px; }
.doc img, .doc .ph { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--blue-soft); flex: none; }
.doc b { font-size: 14px; display: block; }
.doc span { font-size: 12px; color: var(--muted); display: block; line-height: 1.4; }

/* CTA + newsletter -------------------------------------------------------- */
.newsletter-wrap { margin-top: 72px; }
.cta { background: var(--blue); color: #fff; border-radius: 24px; padding: 48px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.cta h2 { font-size: 32px; line-height: 1.35; }
.cta p { color: #D6E6F8; margin-top: 10px; }
.cta-form { background: #fff; color: var(--ink); border-radius: 16px; padding: 18px; }

/* Newsletter (MailPoet forms), restyled to match ------------------------- */
.mw-nl .mailpoet_form { padding: 0 !important; background: none !important; text-align: start !important; }
.mw-nl .mailpoet_paragraph { margin: 0 0 12px !important; }
.mw-nl input.mailpoet_text { font-family: var(--font) !important; font-size: 15px !important; border: 1.5px solid var(--line) !important; border-radius: 10px !important; padding: 11px 14px !important; background: #fff !important; color: var(--ink) !important; margin: 0 !important; }
.mw-nl input.mailpoet_text:focus { border-color: var(--blue) !important; outline: 0; }
.mw-nl fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.mw-nl .mailpoet_segment_label { display: block; font-size: 13px !important; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.mw-nl fieldset { display: flex; flex-wrap: wrap; gap: 8px; }
.mw-nl fieldset legend { flex-basis: 100%; }
.mw-nl .mailpoet_checkbox_label { display: inline-flex !important; align-items: center; gap: 8px; font-size: 14px !important; font-family: var(--font-latin); color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; line-height: 1.3 !important; direction: ltr; }
.mw-nl .mailpoet_checkbox_label:has(input:checked) { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-dark); }
.mw-nl .mailpoet_checkbox { accent-color: var(--blue); margin: 0; width: 16px; height: 16px; }
.mw-nl input.mailpoet_submit { font-family: var(--font) !important; background: var(--blue) !important; color: #fff !important; border: 0 !important; border-radius: 10px !important; padding: 13px 22px !important; font-weight: 700 !important; font-size: 15px !important; width: 100% !important; cursor: pointer; }
.mw-nl input.mailpoet_submit:hover { background: var(--blue-dark) !important; }
.mw-nl .mw-nl-note { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; line-height: 1.7; }
.mw-nl .mailpoet_message p { border-radius: 10px; padding: 12px 14px; font-size: 14px; margin: 8px 0 0; }
.mw-nl .mailpoet_validate_success { background: var(--green-soft); color: var(--green) !important; }
.mw-nl .mailpoet_validate_error { background: var(--coral-soft); }
.mw-nl .parsley-errors-list { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; }
.mw-nl .mailpoet_form_loading { margin: 10px auto 0; }
.cta.nl-home { grid-template-columns: 1fr 1.3fr; }
.nl-home .cta-form { padding: 22px; }
.nl-inline { margin-top: 28px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, var(--blue-soft), #fff 70%); }
.nl-inline-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.nl-inline-head > svg { flex: none; width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--blue); color: #fff; }
.nl-inline-head b { display: block; color: var(--ink); font-size: 17px; }
.nl-inline-head span { color: var(--muted); font-size: 14px; }
.nl-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: start; }
.nl-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.nl-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.nl-points li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.nl-points li > svg { flex: none; color: var(--blue); margin-top: 3px; }
.nl-points b { display: block; color: var(--ink); }
.nl-points span { color: var(--muted); font-size: 14px; }
.nl-mailpoet { max-width: 760px; margin-inline: auto; }
.nl-mailpoet form { display: grid; gap: 12px; }
.nl-mailpoet input[type="text"], .nl-mailpoet input[type="email"], .nl-mailpoet select { font-family: var(--font); font-size: 15px; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 14px; width: 100%; }
.nl-mailpoet input[type="submit"], .nl-mailpoet .mailpoet-submit-success, .nl-mailpoet button { font-family: var(--font); background: var(--blue); color: #fff; border: 0; border-radius: 10px; padding: 12px 22px; font-weight: 700; cursor: pointer; }
.nl-next { max-width: 980px; margin: 28px auto 0; }
.nl-next .pcard { display: block; text-align: center; transition: border-color .2s; }
.nl-next .pcard:hover { border-color: var(--blue); }
.nl-next .pcard .img3d, .nl-next .pcard .brand-logo { margin: 0 auto 10px; display: block; }

/* Forminator forms, restyled to match ------------------------------------- */
:is(.mw-form, .entry-elementor) .forminator-ui.forminator-custom-form { margin: 0 !important; }
:is(.mw-form, .entry-elementor) .forminator-row { margin-bottom: 12px !important; }
:is(.mw-form, .entry-elementor) .forminator-label { font-family: var(--font) !important; font-size: 14px !important; font-weight: 600 !important; color: var(--ink) !important; margin-bottom: 6px !important; }
:is(.mw-form, .entry-elementor) .forminator-input, :is(.mw-form, .entry-elementor) .forminator-textarea, :is(.mw-form, .entry-elementor) select { font-family: var(--font) !important; font-size: 15px !important; border: 1.5px solid var(--line) !important; border-radius: 10px !important; padding: 10px 14px !important; background: #fff !important; color: var(--ink) !important; width: 100% !important; }
:is(.mw-form, .entry-elementor) .forminator-input:focus, :is(.mw-form, .entry-elementor) .forminator-textarea:focus { border-color: var(--blue) !important; box-shadow: none !important; outline: 0 !important; }
:is(.mw-form, .entry-elementor) .forminator-button-submit { font-family: var(--font) !important; background: var(--blue) !important; color: #fff !important; border: 0 !important; border-radius: 10px !important; padding: 12px 22px !important; font-weight: 600 !important; font-size: 15px !important; width: 100%; cursor: pointer; }
:is(.mw-form, .entry-elementor) .forminator-button-submit:hover { background: var(--blue-dark) !important; }
:is(.mw-form, .entry-elementor) select, :is(.mw-form, .entry-elementor) .forminator-select2 + .select2 .select2-selection, :is(.mw-form, .entry-elementor) .select2-container--default .select2-selection--single { background: #fff !important; border: 1.5px solid var(--line) !important; border-radius: 10px !important; min-height: 46px; font-family: var(--font) !important; color: var(--ink) !important; }
:is(.mw-form, .entry-elementor) .select2-selection__rendered { line-height: 42px !important; padding-inline: 14px !important; font-family: var(--font) !important; }
:is(.mw-form, .entry-elementor) .forminator-response-message { border-radius: 10px !important; font-family: var(--font) !important; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--ink); color: #B9C7D8; padding: 64px 0 28px; margin-top: 72px; }
.fgrid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.fgrid h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.fgrid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.fgrid a:hover { color: #fff; }
.fbrand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 20px; margin-bottom: 12px; font-family: var(--font-latin); }
.fbrand .logo { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 12px; padding: 4px; }
.fcol-brand p { font-size: 14px; max-width: 320px; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; font-family: var(--font-latin); font-size: 12px; font-weight: 700; }
.socials a:hover { background: var(--blue); }
.fbottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }

/* Article ----------------------------------------------------------------- */
.article-hero { padding: 40px 0 28px; background: linear-gradient(180deg, var(--surface), #fff); }
.article-hero .inner { max-width: 820px; }
.article-hero .kicker { display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--blue); background: var(--blue-soft); padding: 4px 12px; border-radius: 999px; }
.article-hero h1 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; line-height: 1.45; margin: 14px 0; }
.article-hero .meta { font-size: 14px; }
.article-cover { margin: 8px 0 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); max-width: 1000px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding-top: 36px; align-items: start; }
.article-layout.full { grid-template-columns: minmax(0, 1fr); }
.side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 96px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.side-card h3 { font-size: 16px; margin-bottom: 12px; }
.side-card.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.side-card.dark p { color: #C9D6E6; font-size: 14px; margin-bottom: 16px; }
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.side-list a { font-size: 14px; font-weight: 500; line-height: 1.6; display: block; }
.side-list a:hover { color: var(--blue); }
.side-list small { display: block; color: var(--muted); font-size: 12px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.share a, .share button { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; background: #fff; color: var(--ink); cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--blue); color: var(--blue); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.related { margin-top: 56px; }

/* Prose (classic content and Elementor text) ----------------------------- */
.prose { font-size: 17px; line-height: 1.95; color: #1E3550; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 26px; margin-top: 1.8em; }
.prose h3 { font-size: 21px; margin-top: 1.5em; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose img { border-radius: 12px; }
.prose blockquote { margin: 1.4em 0; padding: 16px 20px; border-inline-start: 4px solid var(--blue); background: var(--surface); border-radius: 0 12px 12px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: start; }
.prose th { background: var(--surface); }
.prose iframe { max-width: 100%; border-radius: 12px; }
.prose code { font-family: ui-monospace, monospace; background: var(--surface); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
/* Elementor-built content keeps its own layout; just contain it. */
.mw-elementor-content .prose { font-size: inherit; line-height: inherit; color: inherit; }
.mw-elementor-content .prose > * + * { margin-top: 0; }
.entry-elementor { overflow-x: clip; }
/* Old landing pages put fixed-width HTML widgets in full-width flex containers; in RTL they hugged the right edge. */
.entry-elementor .e-con > .elementor-widget-html,
.entry-elementor .e-con > .e-con-inner > .elementor-widget-html { margin-inline: auto; max-width: 100%; }

/* Detail pages (course, product, channel) -------------------------------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; padding-top: 36px; align-items: start; }
.buy-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; }
.buy-card .price { border-top: 0; padding-top: 0; margin-top: 0; }
.buy-card .price b { font-size: 30px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.facts span { color: var(--muted); }
.note { font-size: 13px; color: var(--muted); }
.gallery { display: grid; gap: 12px; }
.gallery-main { border: 1px solid var(--line); border-radius: 20px; background: #fff; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumbs button { width: 72px; height: 72px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 6px; cursor: pointer; }
.thumbs button.is-active { border-color: var(--blue); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.res-group.depth-0 { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 18px; }
.res-group.depth-0 > h2 { font-size: 20px; margin-bottom: 10px; }
.res-group.depth-1 { margin-top: 14px; }
.res-group.depth-1 > h3 { font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.res-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.res-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; background: #fff; }
.res-list a:hover { border-color: var(--blue); color: var(--blue); }
.res-list i { font-style: normal; color: var(--muted); }

/* Contact ----------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; padding-top: 40px; }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.contact-card:hover { border-color: var(--blue); }
.contact-card i { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-style: normal; font-weight: 700; font-family: var(--font-latin); background: var(--blue-soft); color: var(--blue); flex: none; }
.contact-card b { display: block; }
.contact-card span { font-size: 14px; color: var(--muted); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 22px; margin-bottom: 6px; }
.form-card > p { color: var(--muted); margin-bottom: 18px; }

/* Search results, pagination, 404 --------------------------------------- */
.result { display: block; padding: 20px 0; border-bottom: 1px solid var(--line); }
.result .kicker { font-size: 12px; font-weight: 600; color: var(--blue); }
.result h2 { font-size: 19px; margin: 4px 0; }
.result p { color: var(--muted); font-size: 15px; }
.result:hover h2 { color: var(--blue); }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 40px; }
.pagination .page-numbers { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; font-family: var(--font-latin); font-size: 14px; background: #fff; }
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination a.page-numbers:hover { border-color: var(--blue); color: var(--blue); }
.notfound { text-align: center; padding: 80px 0 40px; }
.notfound .code { font-family: var(--font-latin); font-size: 96px; font-weight: 700; color: var(--blue-soft); line-height: 1; -webkit-text-stroke: 2px var(--blue); }
.notfound h1 { font-size: 30px; margin: 16px 0 8px; }
.notfound p { color: var(--muted); }
.notfound .search-form { max-width: 520px; margin: 28px auto 0; }

/* Icons (Tabler) --------------------------------------------------------- */
.icon { flex: none; display: inline-block; vertical-align: middle; }
.meta span, .share a, .share button, .more, .contact-list li, .kicker { display: inline-flex; align-items: center; gap: 6px; }
.meta .icon { color: #9AA8B8; }
.stat .icon { display: block; margin: 0 auto 6px; color: var(--blue); }
.path .arr .icon, .chan .go .icon { color: var(--muted); transition: transform .2s, color .2s; }
.path:hover .arr .icon, .chan:hover .go .icon { color: var(--blue); transform: translateX(-3px); }
.socials .icon { width: 18px; height: 18px; }
.contact-list .icon { color: #7F95AE; }
.res-list .icon { color: var(--muted); }
.contact-card i .icon { width: 24px; height: 24px; }

/* 3D illustrations (Fluent Emoji 3D) */
.img3d { display: block; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(11, 36, 64, .14)); }
.chan .dot { width: 52px; height: 52px; border-radius: 14px; }
.path i { width: 48px; height: 48px; border-radius: 12px; }
.chan:hover .img3d, .path:hover .img3d { transform: scale(1.08) rotate(-4deg); transition: transform .25s; }

/* About / Support / Hub pages -------------------------------------------- */
.page-hero .updated { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); margin-top: 8px; }
.about-stats { grid-template-columns: repeat(4, 1fr); margin-bottom: 40px; }
.about-story { display: grid; grid-template-columns: 1fr 200px; gap: 40px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px 36px; }
.about-story .img3d { justify-self: center; }
.feature-card .body { gap: 12px; }
.feature-card .img3d, .donate-card .img3d { margin-bottom: 4px; }
.value { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.value i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); margin-bottom: 12px; }
.value h3 { font-size: 17px; margin-bottom: 6px; }
.value p { color: var(--ink-2); font-size: 15px; }
.about-link { display: flex; align-items: center; gap: 18px; transition: border-color .2s; }
.about-link:hover { border-color: var(--blue); }
.about-link div { flex: 1; }
.about-link p { color: var(--ink-2); font-size: 15px; }
.support-head, .hub-head { display: flex; align-items: center; gap: 28px; margin-top: 12px; }
.support-head h1, .hub-head h1 { margin-top: 0; }
.support-stats { max-width: 640px; margin: 28px 0 0; }
.donate-card .body { gap: 10px; }
.copy-box { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px dashed var(--line); border-radius: 10px; padding: 6px 6px 6px 12px; margin-top: 6px; }
.copy-box code { flex: 1; font-family: var(--font-latin); font-size: 15px; font-weight: 600; overflow-wrap: anywhere; text-align: left; }
.copy-box .btn { padding: 7px 12px; font-size: 13px; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-latin); font-size: 20px; color: var(--blue); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); padding-bottom: 14px; }
.hub-hero { padding-bottom: 0; }
.hub-head .eyebrow { margin-bottom: 4px; }
.hub-intro { color: var(--ink-2); font-size: 17px; max-width: 720px; margin-top: 8px; }
.hub-intro p + p { margin-top: 8px; }
.hub-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; max-width: 760px; }
.hub-stats a { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; transition: border-color .2s; }
.hub-stats a:hover { border-color: var(--blue); }
.hub-stats b { display: block; font-family: var(--font-latin); font-size: 24px; }
.hub-stats span { font-size: 13px; color: var(--muted); }
.hub-nav { display: flex; gap: 4px; margin-top: 24px; overflow-x: auto; }
.hub-nav a { padding: 12px 16px; font-weight: 600; color: var(--ink-2); border-bottom: 3px solid transparent; white-space: nowrap; }
.hub-nav a:hover { color: var(--blue); border-bottom-color: var(--blue); }
.hadith { margin: 0 0 40px; padding: 22px 26px; border-radius: 16px; background: linear-gradient(135deg, #F2F8F4, #E8F1FB); border: 1px solid #D6E8DD; text-align: center; }
.hadith p { font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.8; }
/* EMLE page */
.emle-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.emle-stats div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.emle-stats b { display: block; font-family: var(--font-latin); font-size: 22px; }
.emle-stats span { font-size: 13px; color: var(--muted); }
.emle-hero { padding-bottom: 36px; }
.steps .step { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.steps .step span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-family: var(--font-latin); margin-bottom: 10px; }
.steps .step h3 { font-size: 17px; margin-bottom: 4px; }
.steps .step p { color: var(--ink-2); font-size: 15px; }
.emle-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 860px; margin: 32px auto 0; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; text-align: center; }
.price-card span { color: var(--muted); font-weight: 600; }
.price-card b { display: block; font-family: var(--font-latin); font-size: 36px; margin: 6px 0; }
.price-card b small { font-size: 15px; color: var(--muted); }
.price-card p { color: var(--ink-2); font-size: 14px; }
.price-card.featured { border: 2px solid var(--blue); box-shadow: var(--shadow); }
.levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.level { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 2px; transition: border-color .2s, transform .2s; }
.level:hover { border-color: var(--blue); transform: translateY(-2px); }
.level .lvl-num { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-family: var(--font-latin); font-weight: 700; font-size: 18px; margin-bottom: 10px; }
.level b { font-family: var(--font-latin); font-size: 17px; text-align: right; }
.level span { color: var(--ink-2); font-size: 14px; }
.level small { color: var(--muted); font-size: 13px; margin-top: 6px; }
@media (max-width: 1024px) { .levels { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .emle-prices { grid-template-columns: 1fr !important; } .levels { grid-template-columns: 1fr 1fr; } }

/* Founder profile (English, LTR) */
.profile { font-family: var(--font-latin); text-align: left; }
.profile [dir="rtl"], .profile [dir="auto"] { text-align: inherit; }
.profile-hero { background: radial-gradient(900px 400px at 0% 0%, rgba(23, 103, 193, .12), transparent 60%), linear-gradient(180deg, var(--surface), #fff); padding: 48px 0 32px; border-bottom: 1px solid var(--line); }
.profile-head { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; }
.profile-photo { margin: 0; position: relative; }
/* The portrait is a transparent cut-out: show it whole (no cropping) on a soft backdrop with headroom. */
.profile-photo > img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: contain; object-position: center bottom; padding: 36px 18px 0; border-radius: 28px; box-shadow: 0 30px 60px -30px rgba(11, 36, 64, .45); background: radial-gradient(120% 70% at 50% 0%, #FFFFFF 0%, #E8F1FB 55%, #D6E6F8 100%); }
.profile-photo figcaption { position: absolute; right: -18px; bottom: 24px; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 13px; line-height: 1.35; color: var(--muted); }
.profile-photo figcaption b { color: var(--ink); font-size: 15px; }
.profile-intro .eyebrow { font-family: var(--font-latin); }
.profile-intro h1 { font-size: clamp(32px, 4vw, 50px); line-height: 1.15; margin: 14px 0 8px; letter-spacing: -.5px; }
.arabic-name { font-family: var(--font); font-size: 20px; color: var(--blue); font-weight: 600; text-align: left; }
.roles { list-style: none; margin: 14px 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.roles li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.roles li:last-child { background: var(--ink); color: #fff; border-color: var(--ink); }
.profile .bio { color: var(--ink-2); font-size: 17px; line-height: 1.75; max-width: 680px; }
.profile .bio + .bio { margin-top: 10px; }
.profile-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.profile-links a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; }
.profile-links a:hover { border-color: var(--blue); color: var(--blue); }
.brand-logo { flex: none; display: block; }
.profile-links .brand-btn { padding: 9px 16px 9px 12px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.profile-links .brand-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -12px rgba(11, 36, 64, .5); color: var(--ink); }
.brand-btn-linkedin:hover { border-color: #0A66C2 !important; }
.brand-btn-orcid:hover { border-color: #A6CE39 !important; }
.brand-btn-x:hover { border-color: #000 !important; }
.brand-btn-facebook:hover { border-color: #1877F2 !important; }
.brand-btn-instagram:hover { border-color: #D6249F !important; }
.socials a.social-telegram:hover { background: #26A5E4; }
.socials a.social-facebook:hover { background: #1877F2; }
.socials a.social-x:hover { background: #000; }
.socials a.social-whatsapp:hover { background: #25D366; }
.contact-card i .brand-logo { width: 26px; height: 26px; }
.profile-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 36px; }
.profile-facts div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; }
.profile-facts i { grid-row: span 2; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.profile-facts span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.profile-facts b { font-size: 14px; line-height: 1.4; }
.profile-nav { position: sticky; top: 72px; z-index: 30; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.profile-nav .wrap { display: flex; gap: 4px; overflow-x: auto; }
.profile-nav a { padding: 14px 16px; font-weight: 600; font-size: 14px; color: var(--ink-2); border-bottom: 3px solid transparent; white-space: nowrap; }
.profile-nav a:hover { color: var(--blue); border-bottom-color: var(--blue); }
.profile h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 12px; }
.sec-num { display: inline-block; font-weight: 700; font-size: 13px; color: var(--blue); background: var(--blue-soft); border-radius: 8px; padding: 2px 10px; margin-bottom: 10px; }
.sec-lead { color: var(--ink-2); font-size: 17px; line-height: 1.75; max-width: 820px; margin-bottom: 26px; }
.sub-h { font-size: 20px; margin: 36px 0 8px; }
.pgrid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.lead-en { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.aka { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.aka li { background: var(--surface); border-radius: 8px; padding: 4px 12px; font-size: 14px; }
.card-soft { background: var(--ink); color: #fff; border-radius: 18px; padding: 24px; }
.card-soft h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin-bottom: 8px; }
.card-soft p { color: #C9D6E6; line-height: 1.9; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.pcard h3 { font-size: 17px; margin: 12px 0 6px; }
.pcard p { color: var(--ink-2); font-size: 15px; }
.mw-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mw-stats a { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; transition: border-color .2s; }
.mw-stats a:hover { border-color: var(--blue); }
.mw-stats b { display: block; font-size: 24px; }
.mw-stats span { color: var(--muted); font-size: 14px; }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.person { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; }
.person .avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-weight: 700; flex: none; }
.person b { display: block; font-size: 15px; }
.person span { font-size: 13px; color: var(--muted); line-height: 1.5; display: block; }
.collabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.collab { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.collab:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.collab-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.collab-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.collab:hover .collab-photo img { transform: scale(1.04); }
.collab figcaption { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.collab figcaption b { font-size: 15px; line-height: 1.4; }
.collab figcaption span { font-size: 13px; color: var(--muted); line-height: 1.5; }
@media (max-width: 1024px) { .collabs { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .collabs { grid-template-columns: repeat(2, 1fr); gap: 12px; } .collab figcaption { padding: 12px; } }
.en-chips { margin-bottom: 24px; }
.papers { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: p; }
.papers li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px 18px 60px; position: relative; }
.papers li::before { counter-increment: p; content: counter(p, decimal-leading-zero); position: absolute; left: 20px; top: 18px; font-weight: 700; color: #C3CDD9; font-size: 18px; }
.papers .journal { font-size: 13px; font-weight: 600; color: var(--blue); }
.papers h3 { font-size: 17px; line-height: 1.5; margin: 4px 0 8px; }
.plinks { display: flex; gap: 14px; font-size: 14px; font-weight: 600; }
.plinks a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); }
.plinks a:hover { color: var(--blue); }
.ai-box { display: flex; gap: 32px; align-items: center; }
.profile .faq summary::after { margin-left: auto; }
.profile .note { margin-top: 14px; }
@media (max-width: 1024px) {
	.profile-head, .pgrid2 { grid-template-columns: 1fr; }
	.profile-photo { max-width: 320px; }
	.profile-facts, .mw-stats { grid-template-columns: repeat(2, 1fr); }
	.people { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.profile-facts, .mw-stats, .people { grid-template-columns: 1fr; }
	.profile-photo figcaption { right: 8px; }
	.profile-nav { top: 64px; }
	.ai-box { flex-direction: column; align-items: flex-start; }
}
.med-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 28px; padding: 14px 16px; background: var(--surface); border-radius: 12px; font-size: 14px; color: var(--ink-2); }
.med-note .icon { color: var(--blue); margin-top: 3px; }
.med-note a { color: var(--blue); }
.hub-banner { display: flex; align-items: center; gap: 14px; margin-top: 20px; max-width: 620px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; transition: border-color .2s; }
.hub-banner:hover { border-color: var(--blue); }
.hub-banner span { flex: 1; font-size: 14px; color: var(--muted); }
.hub-banner b { display: block; color: var(--ink); font-size: 16px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legal-links a:hover, .topbar .support-link:hover { color: #fff; }
.topbar .support-link { display: inline-flex; align-items: center; gap: 5px; color: #FFB4A6; }
@media (max-width: 1024px) {
	.about-stats, .hub-stats { grid-template-columns: repeat(2, 1fr); }
	.about-story { grid-template-columns: 1fr; }
	.about-story .img3d { display: none; }
}
@media (max-width: 640px) {
	.support-head, .hub-head { flex-direction: column; align-items: flex-start; gap: 12px; }
	.support-head .img3d, .hub-head .img3d { width: 72px; height: 72px; }
	.about-story { padding: 22px; }
}

/* Responsive ------------------------------------------------------------- */
/* Header balance: wider bar than the content, menu centred between logo and actions. */
.site-header > .wrap, .topbar .wrap { max-width: 1360px; }
.main-nav .menu { justify-content: center; }
.main-nav a { padding: 8px 11px; }
@media (max-width: 1599px) {
	.header-cta .cta-text { display: none; }
	.header-cta { padding: 11px 13px; }
}
@media (max-width: 1360px) {
	.site-header > .wrap { gap: 14px; }
	.main-nav a { padding: 8px 8px; font-size: 14.5px; }
}
@media (max-width: 1240px) {
	.main-nav, .header-cta { display: none; }
	.menu-toggle { display: inline-grid; }
	.header-actions { margin-inline-start: auto; }
}
@media (max-width: 1024px) {
	.hero .wrap, .articles, .lib, .cta, .article-layout, .detail, .contact-grid, .nl-grid, .cta.nl-home { grid-template-columns: 1fr; }
	.g4 { grid-template-columns: repeat(2, 1fr); }
	.g3 { grid-template-columns: repeat(2, 1fr); }
	.lib-side, .side, .buy-card { position: static; }
	.fgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 782px) {
	.admin-bar .site-header { top: 0; }
}
@media (max-width: 640px) {
	.wrap { padding: 0 16px; }
	.topbar { display: none; }
	.site-header > .wrap { height: 64px; }
	.brand .logo { width: 40px; height: 40px; }
	.hero { padding: 40px 0; }
	.g4, .g3, .g2, .chan-list, .res-list { grid-template-columns: 1fr; }
	.block { padding: 48px 0; }
	.sec-head { flex-direction: column; align-items: start; }
	.cta { padding: 28px; }
	.fgrid { grid-template-columns: 1fr; }
	.stat b { font-size: 22px; }
	.feature { padding: 26px; min-height: 0; }
	.feature h3 { font-size: 22px; }
	.fbottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
