/* بودكاست لاجئ — visual system */
:root {
  --navy: #061a3a;
  --navy-deep: #041226;
  --navy-mid: #0a2a56;
  --navy-soft: #12366c;
  --blue: #0e5aa8;
  --sky: #3ba4e6;
  --sky-soft: #e8f4fc;
  --gold: #c9a227;
  --gold-light: #e8c75a;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --fg: #0b1f3a;
  --muted: #5a6b82;
  --border: #d6e0ee;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --shadow: 0 0 0 1px rgb(11 31 58 / 0.06), 0 8px 24px -12px rgb(6 26 58 / 0.18);
  --shadow-hover: 0 0 0 1px rgb(11 31 58 / 0.1), 0 16px 36px -16px rgb(6 26 58 / 0.28);
  --wrap: 80rem;
  --font: "IBM Plex Sans Arabic", "Cairo", sans-serif;
  --display: "Cairo", "IBM Plex Sans Arabic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.65;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.25; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
::selection { background: color-mix(in oklab, var(--sky) 35%, white); color: var(--navy); }

.pl-skip {
  position: absolute; right: -999px; top: 0;
  background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.pl-skip:focus { right: 1rem; }

.pl-wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
@media (min-width: 768px) { .pl-wrap { width: min(100% - 3rem, var(--wrap)); } }

.pl-icon { display: inline-grid; place-items: center; width: 1.1em; height: 1.1em; }
.pl-icon svg { width: 100%; height: 100%; }

.pl-gold-rule {
  width: 3.25rem; height: 3px; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin-top: .75rem;
}
.pl-kicker {
  margin: 0 0 .5rem;
  font-size: .75rem; font-weight: 800; letter-spacing: .18em; color: var(--blue);
}
.pl-kicker.gold { color: var(--gold-light); letter-spacing: .22em; }
.pl-muted { color: var(--muted); margin-top: .75rem; max-width: 36rem; font-size: .95rem; line-height: 1.75; }
.pl-lead { color: rgb(255 255 255 / .72); margin-top: .75rem; max-width: 36rem; }

/* Buttons */
.pl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 999px; font-weight: 700; font-size: .95rem;
  padding: .85rem 1.35rem; border: 1px solid transparent; transition: .2s ease;
  line-height: 1;
}
.pl-btn-sm { padding: .65rem 1rem; font-size: .85rem; }
.pl-btn-primary { background: var(--navy); color: #fff; }
.pl-btn-primary:hover { background: var(--blue); }
.pl-btn-sky { background: var(--sky); color: var(--navy-deep); }
.pl-btn-sky:hover { background: #5bb8f0; }
.pl-btn-outline { background: #fff; border-color: var(--border); color: var(--fg); }
.pl-btn-outline:hover { border-color: var(--sky); }
.pl-btn-ghost { background: transparent; color: var(--fg); }
.pl-btn-ghost:hover { background: var(--sky-soft); }
.pl-btn-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / .35); }
.pl-btn-light:hover { background: rgb(255 255 255 / .1); }
.pl-iconbtn {
  width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; display: grid; place-items: center; color: var(--fg);
}
.pl-iconbtn:hover { background: var(--sky-soft); }

/* Header */
.pl-header {
  position: sticky; top: 0; z-index: 40;
  background: rgb(255 255 255 / .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.pl-header.is-elevated {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px -18px rgb(6 26 58 / .35);
}
.pl-header-top-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 4.25rem; gap: 1rem;
}
.pl-logo img { height: 2.75rem; width: auto; }
.pl-header-actions { display: flex; align-items: center; gap: .5rem; }
.pl-header-nav { display: none; border-top: 1px solid rgb(214 224 238 / .6); }
.pl-nav-list {
  list-style: none; margin: 0; padding: .4rem 0;
  display: flex; justify-content: center; gap: .15rem; flex-wrap: wrap;
}
.pl-nav-list a {
  display: block; white-space: nowrap;
  border-radius: 999px; padding: .5rem .9rem;
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.pl-nav-list a:hover { background: var(--bg); color: var(--fg); }
.pl-nav-list .is-active > a,
.pl-nav-list .current-menu-item > a { background: var(--sky-soft); color: var(--blue); }
.pl-menu-btn { display: grid; }
.pl-auth { display: flex; align-items: center; gap: .5rem; }
.pl-auth-desktop { display: none; }
.pl-userchip {
  display: flex; align-items: center; gap: .5rem;
  height: 2.75rem; padding: 0 .75rem 0 .35rem;
  border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: .85rem; font-weight: 600;
}
.pl-userchip img { width: 1.75rem; height: 1.75rem; border-radius: 999px; object-fit: cover; }

@media (min-width: 640px) { .pl-auth-desktop { display: block; } .pl-logo img { height: 3rem; } }
@media (min-width: 1200px) {
  .pl-header-nav { display: block; }
  .pl-menu-btn { display: none; }
}

/* Drawer */
.pl-drawer { position: fixed; inset: 0; z-index: 60; }
.pl-drawer[hidden] { display: none; }
.pl-drawer-backdrop { position: absolute; inset: 0; background: rgb(6 26 58 / .5); }
.pl-drawer-panel {
  position: absolute; inset-block: 0; right: 0;
  width: min(100%, 22rem); background: #fff;
  display: flex; flex-direction: column;
  box-shadow: 0 25px 50px rgb(0 0 0 / .25);
}
.pl-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
.pl-drawer-nav { flex: 1; overflow: auto; padding: 1rem; }
.pl-drawer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.pl-drawer-list a { display: block; padding: .85rem 1rem; border-radius: 12px; font-weight: 600; }
.pl-drawer-list a:hover, .pl-drawer-list .current-menu-item > a { background: var(--navy); color: #fff; }
.pl-drawer-foot { padding: 1rem; border-top: 1px solid var(--border); }

/* Hero */
.pl-hero { position: relative; isolation: isolate; min-height: 32rem; overflow: hidden; }
.pl-hero img.pl-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.pl-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgb(4 18 38 / .82) 0%, rgb(4 18 38 / .28) 38%, rgb(4 18 38 / .08) 62%, rgb(4 18 38 / .14) 100%),
    linear-gradient(90deg, rgb(4 18 38 / .18) 0%, transparent 18%, transparent 82%, rgb(4 18 38 / .16) 100%);
}
.pl-hero-content {
  position: relative; min-height: 32rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 6rem 0 3rem;
}
.pl-hero-content h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; max-width: 22ch; }
.pl-hero-content .pl-lead { font-size: 1rem; line-height: 2; }
.pl-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
@media (min-width: 768px) {
  .pl-hero, .pl-hero-content { min-height: 40rem; }
  .pl-hero-content { padding-bottom: 4rem; }
}
@media (min-width: 1024px) {
  .pl-hero, .pl-hero-content { min-height: 46rem; }
}

/* Page hero */
.pl-page-hero {
  background: var(--navy); color: #fff; padding: 3rem 0;
  position: relative; overflow: hidden;
}
.pl-page-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .4; pointer-events: none;
  background-image: radial-gradient(rgb(255 255 255 / .12) 1px, transparent 1px);
  background-size: 18px 18px;
}
.pl-page-hero .pl-wrap { position: relative; }
.pl-page-hero h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; max-width: 20ch; }

/* Sections */
.pl-section { padding: 4rem 0; }
.pl-section-alt { background: var(--surface); }
.pl-section-soft { background: color-mix(in oklab, var(--sky-soft) 60%, white); }
.pl-section-dark { background: var(--navy-deep); color: #fff; position: relative; overflow: hidden; }
.pl-section-head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.pl-section-head h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 800; color: var(--navy); }
.pl-section-dark .pl-section-head h2 { color: #fff; }
@media (min-width: 768px) {
  .pl-section { padding: 5rem 0; }
  .pl-section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

.pl-grid { display: grid; gap: 1.1rem; }
.pl-grid-2 { grid-template-columns: 1fr; }
.pl-grid-3 { grid-template-columns: 1fr; }
.pl-grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .pl-grid-2, .pl-grid-3, .pl-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .pl-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .pl-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Cards */
.pl-card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.pl-card-media { position: relative; overflow: hidden; }
.pl-card-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .5s ease; }
.pl-card:hover .pl-card-media img { transform: scale(1.04); }
.pl-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.pl-card-body h3 { font-size: 1.1rem; font-weight: 800; }
.pl-card-body h3 a:hover { color: var(--blue); }
.pl-card-cat { font-size: .75rem; font-weight: 700; color: var(--blue); }
.pl-card-excerpt { color: var(--muted); font-size: .9rem; line-height: 1.7; margin-top: .5rem; flex: 1; }
.pl-meta { display: flex; flex-wrap: wrap; gap: .75rem 1rem; font-size: .75rem; color: var(--muted); margin-top: 1rem; }
.pl-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.pl-badge {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: .2rem .65rem; font-size: .72rem; font-weight: 700;
  background: var(--navy); color: #fff;
}
.pl-badge-light { background: rgb(255 255 255 / .9); color: var(--navy); }
.pl-badge-sky { background: var(--sky-soft); color: var(--blue); }
.pl-badge-gold { background: var(--gold); color: var(--navy-deep); }
.pl-card-media .pl-badge { position: absolute; top: .75rem; right: .75rem; }

.pl-service {
  background: var(--surface); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); display: block; transition: .2s ease;
}
.pl-service:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.pl-ico {
  width: 3rem; height: 3rem; border-radius: 1rem;
  display: grid; place-items: center; background: var(--sky-soft); color: var(--blue);
  transition: .2s ease;
}
.pl-service:hover .pl-ico { background: var(--navy); color: #fff; }
.pl-service h3 { margin-top: 1rem; font-size: 1.1rem; }
.pl-service p { margin-top: .5rem; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.pl-service .pl-more { margin-top: 1rem; display: inline-flex; align-items: center; gap: .35rem; color: var(--blue); font-weight: 700; font-size: .9rem; }

.pl-why { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.pl-why .pl-ico { background: var(--navy); color: var(--gold-light); border-radius: 12px; width: 2.75rem; height: 2.75rem; }
.pl-why h3 { margin-top: 1rem; }
.pl-why p { margin-top: .5rem; color: var(--muted); font-size: .9rem; line-height: 1.7; }

/* Episode cards */
.pl-ep {
  background: var(--navy); color: #fff; border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.pl-ep-media { position: relative; }
.pl-ep-media img { width: 100%; aspect-ratio: 1; object-fit: cover; opacity: .9; }
.pl-ep-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--navy), rgb(6 26 58 / .2), transparent);
}
.pl-ep-play {
  position: absolute; left: .75rem; bottom: .75rem; z-index: 1;
  width: 2.6rem; height: 2.6rem; border-radius: 999px; border: 0;
  background: var(--sky); color: var(--navy-deep); display: grid; place-items: center;
}
.pl-ep-cat { position: absolute; right: .75rem; bottom: .85rem; z-index: 1; }
.pl-ep-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.pl-ep-body h3 { font-size: 1rem; }
.pl-ep-body h3 a:hover { color: var(--sky); }
.pl-ep-body p { color: rgb(255 255 255 / .65); font-size: .85rem; margin-top: .5rem; }
.pl-ep-date { font-size: 11px; color: rgb(255 255 255 / .55); }

/* News rows */
.pl-news-row {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
}
.pl-news-row img { width: 100%; height: 11rem; object-fit: cover; }
.pl-news-row > div { padding: 1.25rem; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 640px) {
  .pl-news-row { flex-direction: row; }
  .pl-news-row img { width: 14rem; height: auto; }
}

.pl-job { padding: 1.35rem; }
.pl-job h3 { margin-top: .35rem; }
.pl-job .pl-meta { margin-top: .75rem; }

/* Stats / CTA */
.pl-stats { background: var(--navy); color: #fff; padding: 3.5rem 0; }
.pl-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; text-align: center; }
.pl-stats-grid strong { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--gold-light); }
.pl-stats-grid span { color: rgb(255 255 255 / .7); font-size: .9rem; }
@media (min-width: 768px) { .pl-stats-grid { grid-template-columns: repeat(4, 1fr); } }

.pl-cta {
  background: linear-gradient(to left, var(--navy-mid), var(--navy));
  color: #fff; padding: 4rem 0;
}
.pl-cta-inner { display: flex; flex-direction: column; gap: 1.5rem; }
.pl-cta h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
.pl-cta p { color: rgb(255 255 255 / .7); max-width: 32rem; margin-top: .75rem; }
.pl-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 768px) {
  .pl-cta-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Footer */
.pl-footer { background: var(--navy-deep); color: #fff; }
.pl-footer-grid { display: grid; gap: 2.5rem; padding: 3.5rem 0; }
.pl-footer-logo { display: inline-flex; background: #fff; border-radius: 12px; padding: .25rem .5rem; margin-bottom: 1rem; }
.pl-footer-logo img { height: 3rem; width: auto; }
.pl-footer p { color: rgb(255 255 255 / .7); font-size: .9rem; line-height: 1.8; }
.pl-footer h3 { font-size: .9rem; font-weight: 800; margin-bottom: 1rem; }
.pl-footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.pl-footer-links a { color: rgb(255 255 255 / .7); font-size: .9rem; }
.pl-footer-links a:hover { color: var(--sky); }
.pl-social { display: flex; gap: .5rem; }
.pl-social a {
  width: 2.75rem; height: 2.75rem; border-radius: 999px;
  background: rgb(255 255 255 / .08); color: #fff; display: grid; place-items: center;
}
.pl-social a:hover { background: var(--sky); color: var(--navy-deep); }
.pl-contact { display: flex; align-items: center; gap: .5rem; color: rgb(255 255 255 / .7); margin-top: .65rem; font-size: .9rem; }
.pl-copy { border-top: 1px solid rgb(255 255 255 / .1); padding: 1rem; text-align: center; font-size: .75rem; color: rgb(255 255 255 / .5); }
@media (min-width: 768px) { .pl-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* Player */
.pl-player {
  position: sticky; bottom: 0; z-index: 50;
  background: rgb(4 18 38 / .96); color: #fff;
  backdrop-filter: blur(12px);
  border-top: 1px solid rgb(255 255 255 / .08);
}
.pl-player[hidden] { display: none; }
.pl-player-inner { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; }
.pl-play {
  width: 2.6rem; height: 2.6rem; border-radius: 999px; border: 0;
  background: var(--sky); color: var(--navy-deep); display: grid; place-items: center; flex-shrink: 0;
}
.pl-player-inner img { width: 2.6rem; height: 2.6rem; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.pl-player-meta { min-width: 0; }
.pl-player-meta strong { display: block; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-player-meta span { font-size: .75rem; color: rgb(255 255 255 / .6); }
.pl-player-bar { display: none; flex: 1; align-items: center; gap: .5rem; font-size: .7rem; color: rgb(255 255 255 / .55); }
.pl-player-bar input[type=range] { flex: 1; accent-color: var(--sky); }
@media (min-width: 768px) {
  .pl-player-bar { display: flex; }
}

/* Filters / search */
.pl-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0 2rem; }
.pl-filters input, .pl-filters select {
  border: 1px solid var(--border); border-radius: 999px;
  padding: .7rem 1rem; background: #fff; font-family: inherit; font-size: .9rem; color: var(--fg);
}
.pl-filters input { min-width: min(100%, 16rem); }
.pl-chip {
  border: 1px solid var(--border); background: #fff; border-radius: 999px;
  padding: .45rem .9rem; font-size: .85rem; font-weight: 600; color: var(--muted);
}
.pl-chip.is-on, .pl-chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Single */
.pl-single { padding: 3rem 0 4rem; }
.pl-single-grid { display: grid; gap: 2rem; }
@media (min-width: 960px) {
  .pl-single-grid { grid-template-columns: 1.7fr .9fr; align-items: start; }
}
.pl-prose { background: var(--surface); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow); }
.pl-prose h2, .pl-prose h3 { margin: 1.4rem 0 .6rem; }
.pl-prose p + p { margin-top: 1rem; }
.pl-prose ul { padding-right: 1.1rem; color: var(--muted); }
.pl-cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.25rem; }
.pl-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.pl-aside { background: var(--surface); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); position: sticky; top: 7rem; }
.pl-aside h3 { margin-bottom: .75rem; }
.pl-aside dl { display: grid; gap: .65rem; margin: 0; }
.pl-aside dt { font-size: .75rem; color: var(--muted); }
.pl-aside dd { margin: 0; font-weight: 700; }
.pl-curriculum { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-top: 1rem; }
.pl-curriculum details { border-bottom: 1px solid var(--border); }
.pl-curriculum summary { padding: .9rem 1rem; font-weight: 700; cursor: pointer; }
.pl-curriculum li { padding: .45rem 1rem; color: var(--muted); font-size: .9rem; list-style: none; }

/* Profile / forms */
.pl-form {
  background: var(--surface); border-radius: var(--radius-lg); padding: 1.75rem;
  box-shadow: var(--shadow); display: grid; gap: .9rem; max-width: 28rem;
}
.pl-form label { font-weight: 700; font-size: .85rem; }
.pl-form input {
  width: 100%; border: 1px solid var(--border); border-radius: 12px;
  padding: .75rem 1rem; font-family: inherit; font-size: 1rem;
}
.pl-dash { display: grid; gap: 1rem; }
@media (min-width: 768px) { .pl-dash { grid-template-columns: 16rem 1fr; } }
.pl-profile-card { background: var(--surface); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); text-align: center; }
.pl-profile-card img { width: 5.5rem; height: 5.5rem; border-radius: 999px; margin: 0 auto 1rem; object-fit: cover; }

/* Empty / 404 */
.pl-empty { text-align: center; padding: 4rem 1rem; color: var(--muted); }

/* LearnPress skin */
.learn-press-courses,
.lp-archive-courses { display: grid !important; gap: 1.1rem; }
@media (min-width: 768px) {
  .learn-press-courses, .lp-archive-courses { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .learn-press-courses, .lp-archive-courses { grid-template-columns: repeat(3, 1fr); }
}
.lp-content-area { width: min(100% - 2rem, var(--wrap)) !important; margin-inline: auto !important; }
.course-item, .lp-course-item {
  background: #fff !important; border-radius: 16px !important;
  box-shadow: var(--shadow) !important; overflow: hidden; border: 0 !important;
}

body.admin-bar .pl-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .pl-header { top: 46px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
