/* صفحات محتوى المنصة: صفحات التخصصات والمدن + المدونة */
:root { --ink: #0F1B3D; --navy: #0B1533; --muted: #5B6275; --line: #E3E7F2; --gold: #F2B134; --gold-d: #D9971A; --brand: #3B4FE0; --bg: #F6F8FC; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.pg { margin: 0; background: #fff; color: #263050; font-family: "Cairo", "Inter", system-ui, sans-serif; line-height: 1.8; }
[lang="en"] body.pg, body.pg [lang="en"], body.pg [lang="fr"], body.pg [lang="es"], body.pg [lang="de"] { font-family: "Inter", "Cairo", system-ui, sans-serif; }
.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
a { color: var(--brand); }
img { max-width: 100%; height: auto; }
.pg-w { width: min(1120px, 100% - 40px); margin-inline: auto; }
.pg-narrow { width: min(760px, 100% - 40px); }
.pg-skip { position: absolute; inset-inline-start: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: #fff; border-radius: 8px; }
.pg-skip:focus { inset-inline-start: 8px; }
.pg-nav { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.pg-nav-in { display: flex; align-items: center; gap: 20px; height: 66px; }
.pg-brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; font-weight: 800; }
.brand-lockup { display: inline-flex; align-items: center; direction: ltr; line-height: 0; }
.brand-lockup .brand-mark, .brand-mark { flex: none; display: block; }
.pg-brand .brand-logo { display: block; height: 28px; width: auto; }
.pg-links { display: flex; gap: 18px; }
.pg-links a { color: var(--muted); font-weight: 700; font-size: 14.5px; text-decoration: none; }
.pg-links a:hover { color: var(--ink); }
.pg-act { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.pg-login { color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; }
.pg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 18px; border-radius: 12px; border: 1.5px solid transparent; font: inherit; font-weight: 800; font-size: 14.5px; text-decoration: none; cursor: pointer; transition: transform .12s, background .15s, box-shadow .15s; }
.pg-btn:active { transform: translateY(1px); }
.pg-btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 6px 18px rgba(242, 177, 52, .32); }
.pg-btn-gold:hover { background: #F5BD4E; }
.pg-btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .35); }
.pg-btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.pg-btn-lg { padding: 13px 26px; font-size: 16px; border-radius: 14px; }
@media (max-width: 860px) { .pg-links { display: none; } .pg-login { display: none; } }
@media (max-width: 420px) { .pg-act .langmenu { display: none; } }

.pg-draft { padding: 10px 20px; background: #FEF0C7; color: #7A4A06; text-align: center; font-weight: 700; font-size: 14px; }
.pg-hero { padding: 64px 0 58px; background: radial-gradient(1000px 420px at 85% -10%, #2B3C9E 0%, transparent 60%), linear-gradient(160deg, #0B1533, #15235A); color: #fff; }
.pg-hero-sm { padding: 48px 0 42px; }
.pg-hero h1 { margin: 6px 0 14px; max-width: 820px; font-size: clamp(28px, 4.4vw, 46px); line-height: 1.3; font-weight: 900; }
.pg-lead { max-width: 760px; margin: 0 0 22px; font-size: 18px; color: inherit; opacity: .92; }
.pg-post .pg-lead { color: #3A4565; opacity: 1; font-size: 18.5px; }
.pg-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.pg-note { margin: 12px 0 0; font-size: 13.5px; opacity: .75; }
.pg-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; opacity: .85; }
.pg-crumbs a { color: inherit; text-decoration: none; }
.pg-crumbs a:hover { text-decoration: underline; }
.pg-post .pg-crumbs { color: var(--muted); opacity: 1; margin-top: 28px; }

.pg-sec { padding: 54px 0; }
.pg-sec-alt { background: var(--bg); }
.pg-sec h2 { margin: 0 0 22px; color: var(--ink); font-size: clamp(22px, 3vw, 30px); line-height: 1.35; }
.pg-h-sm { font-size: 20px !important; }
.pg-article { max-width: 780px; font-size: 17px; color: #2B3554; }
.pg-article h3 { margin: 30px 0 10px; color: var(--ink); font-size: 23px; line-height: 1.4; }
.pg-article h3:first-child { margin-top: 0; }
.pg-article p { margin: 0 0 16px; }
.pg-article ul { margin: 0 0 18px; padding-inline-start: 0; list-style: none; display: grid; gap: 10px; }
.pg-article li { position: relative; padding-inline-start: 30px; }
.pg-article li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .55em; width: 13px; height: 7px; border-left: 2.5px solid #12B76A; border-bottom: 2.5px solid #12B76A; transform: rotate(-45deg); }

.pg-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .pg-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pg-feats { grid-template-columns: 1fr; } }
.pg-feat { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.pg-feat span { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 10px; border-radius: 12px; background: #EEF1FD; color: var(--brand); font-size: 21px; }
.pg-feat b { display: block; color: var(--ink); font-size: 16.5px; }
.pg-feat p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.7; }

.pg-shows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .pg-shows { grid-template-columns: 1fr; } }
.pg-show { display: block; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; color: var(--ink); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.pg-show:hover { box-shadow: 0 14px 34px rgba(15, 27, 61, .12); transform: translateY(-2px); }
.pg-show-img { display: block; aspect-ratio: 16 / 10; background: #E9ECF5 top center / cover no-repeat; }
.pg-show b { display: block; padding: 12px 14px 0; }
.pg-show small { display: block; padding: 0 14px 12px; color: var(--muted); }

.pg-faq { max-width: 820px; }
.pg-faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.pg-faq details + details { margin-top: 10px; }
.pg-faq summary { padding: 15px 18px; cursor: pointer; color: var(--ink); font-weight: 800; list-style: none; }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after { content: "+"; float: inline-end; color: var(--brand); font-size: 20px; line-height: 1; }
.pg-faq details[open] summary::after { content: "–"; }
.pg-faq details p { margin: 0; padding: 0 18px 16px; color: #3A4565; }

.pg-final { padding: 56px 0; background: linear-gradient(160deg, #0B1533, #15235A); color: #fff; text-align: center; }
.pg-final h2 { margin: 0 0 8px; font-size: clamp(24px, 3.4vw, 34px); }
.pg-final p { margin: 0 auto 20px; max-width: 620px; opacity: .88; }

.pg-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.pg-tags a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.pg-tags a:hover { border-color: var(--brand); color: var(--brand); }
.pg-grid-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pg-grid-links a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.pg-grid-links a:hover { border-color: var(--brand); box-shadow: 0 10px 24px rgba(15, 27, 61, .08); }
.pg-grid-links b { display: block; color: var(--ink); font-size: 16px; line-height: 1.5; }
.pg-grid-links span { display: block; margin-top: 4px; color: var(--muted); font-size: 13.5px; line-height: 1.65; }

.pg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.pg-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.pg-card:hover { box-shadow: 0 14px 34px rgba(15, 27, 61, .1); transform: translateY(-2px); }
.pg-card-img { display: block; aspect-ratio: 1200 / 630; background: linear-gradient(135deg, #EEF1FD, #E3F4EC) center / cover no-repeat; }
.pg-card-tx { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.pg-card-tx b { color: var(--ink); font-size: 17px; line-height: 1.5; }
.pg-card-tx span { color: var(--muted); font-size: 14px; line-height: 1.7; }
.pg-card-tx small { color: #8A91A6; font-size: 12.5px; }
.pg-pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 28px; font-weight: 700; }

.pg-post h1 { margin: 12px 0 8px; color: var(--ink); font-size: clamp(28px, 4.2vw, 42px); line-height: 1.35; }
.pg-meta { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.pg-post-img { display: block; width: 100%; margin: 0 0 22px; border-radius: 18px; aspect-ratio: 1200 / 630; object-fit: cover; }
.pg-box { margin: 34px 0 10px; padding: 22px; border: 1px solid #F3D48A; border-radius: 18px; background: #FFF9EB; }
.pg-box b { display: block; color: var(--ink); font-size: 18px; }
.pg-box p { margin: 6px 0 14px; color: #4B5470; }

.pg-foot { padding: 40px 0 26px; background: var(--navy); color: #C8CFE4; }
.pg-foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.pg-foot .pg-brand { color: #fff; }
.pg-foot p { max-width: 360px; margin: 10px 0 0; font-size: 14px; }
.pg-foot nav { display: grid; gap: 8px; font-size: 14px; }
.pg-foot nav a { color: #C8CFE4; text-decoration: none; }
.pg-foot nav a:hover { color: #fff; }
.pg-copy { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; opacity: .7; }
