/* =====================================================================
   هُدى — theme.css : الهيدر، الصفحة الرئيسية، الصفحات الداخلية، التذييل
   (الرموز والمكوّنات المشتركة في brand.css، وأنماط المكوّنات في blocks.css)
   ===================================================================== */

main, .site-main { overflow-x: clip; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--palm); color: var(--pearl); padding: 10px 18px; border-radius: 10px; }
.skip:focus { top: 12px; }
.container--narrow { max-width: 820px; }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.section--top-0 { padding-top: 0; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 240, .82);
  backdrop-filter: saturate(1.2) blur(14px); -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, background-color .4s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(250, 246, 240, .94); }
.header__bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; height: 84px; }
.header__logo { font-size: 38px; }
.logo--custom img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.3vw, 34px); }
.nav .menu, .nav .sub-menu { list-style: none; margin: 0; padding: 0; }
.nav .menu { display: flex; align-items: center; gap: clamp(18px, 2.3vw, 34px); }
.nav .menu > li { position: relative; }
.nav a { position: relative; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--palm); padding-block: 8px; transition: color .3s; }
.nav a:hover { color: var(--khoos); }
.nav .menu > li > a[aria-current="page"]::after, .nav .menu > li.current-menu-ancestor > a::after {
  content: ""; position: absolute; left: 50%; bottom: -3px; width: 6px; height: 6px;
  background: var(--khoos); transform: translateX(-50%) rotate(45deg);
}
.nav .menu-item-has-children > a::after { content: ""; width: 5px; height: 5px; border-inline-end: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; position: static; background: none; }
.nav .sub-menu {
  position: absolute; top: calc(100% + 6px); inset-inline-start: -14px; min-width: 230px; z-index: 5;
  display: none; flex-direction: column; gap: 2px; padding: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.nav .sub-menu a { display: block; padding: 10px 14px; border-radius: 10px; }
.nav .sub-menu a:hover { background: var(--linen); color: var(--palm); }
.nav .menu > li:hover > .sub-menu, .nav .menu > li:focus-within > .sub-menu, .nav .menu > li.is-open > .sub-menu { display: flex; }
.nav__extra { display: none; }
.header__actions { display: flex; align-items: center; gap: 20px; }
.header__login { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--palm); transition: color .3s; }
.header__login:hover { color: var(--khoos); }
.header__login .icon { width: 20px; height: 20px; color: var(--khoos); }
.nav-toggle { display: none; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--sand); background: transparent; color: var(--palm); cursor: pointer; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-menu { display: none; }
.nav-open .nav-toggle .i-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(40px, 5vw, 76px) clamp(80px, 9vw, 128px);
  background: radial-gradient(900px 560px at 16% 6%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%), var(--pearl);
}
.hero .frond-shadow { width: 780px; height: 780px; top: -150px; left: -190px; transform: rotate(-26deg); }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero h1 { font-size: var(--fs-h1); line-height: 1.22; margin-bottom: 1.5rem; }
.hl { position: relative; z-index: 0; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; z-index: -1; inset-inline: -4%; bottom: .02em; height: .3em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M4 13C52 6 118 4 196 9' fill='none' stroke='%2374231C' stroke-opacity='.45' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.hero__lead { font-size: var(--fs-lead); font-weight: 300; line-height: 2.05; max-width: 31em; margin-bottom: 2.3rem; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 2.6rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--text); max-width: 36em;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 22px; }
.hero__meta span + span::before { content: ""; width: 5px; height: 5px; background: var(--khoos-soft); transform: rotate(45deg); }
.hero__visual { position: relative; isolation: isolate; justify-self: center; width: min(100%, 470px); }
.hero__visual .arch { box-shadow: var(--shadow-lg); }
.hero__frame {
  position: absolute; inset: 0; z-index: -1; transform: translate(-22px, -22px);
  border: 1px solid var(--khoos-soft); opacity: .7;
  border-radius: 50% 50% var(--radius) var(--radius) / 40% 40% var(--radius) var(--radius);
}
.hero__note {
  position: absolute; right: -44px; bottom: 46px;
  display: flex; align-items: center; gap: 16px; padding: 16px 22px 16px 26px;
  background: var(--paper); border-radius: 18px; box-shadow: var(--shadow);
}
.hero__note b { font-family: var(--font-display); font-weight: 600; font-size: 46px; line-height: 1; color: var(--jujube); }
.hero__note span { font-family: var(--font-display); font-size: 20px; line-height: 1.35; color: var(--palm); }
.hero__seal {
  position: absolute; left: -30px; top: 18%; width: 86px; height: 86px; border-radius: 50%;
  display: grid; place-items: center; background: var(--palm); color: var(--khoos-pale); box-shadow: var(--shadow);
}
.hero__seal svg { width: 48px; height: 48px; }
.arch__empty { display: grid; place-items: center; width: 100%; height: 100%; background: var(--linen); color: var(--khoos-soft); }
.arch__frond { width: 42%; height: 42%; opacity: .7; }

/* ---------- Intro ---------- */
.intro { background: var(--paper); overflow: hidden; }
.intro__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(48px, 8vw, 128px); align-items: center; }
.intro h2 { font-size: var(--fs-h2); margin-bottom: 1.5rem; }
.intro__text p { font-size: var(--fs-lead); font-weight: 300; line-height: 2.05; max-width: 31em; }
.intro__note { display: flex; align-items: center; gap: 14px; margin-top: 2.2rem; font-family: var(--font-display); font-size: 1.55rem; color: var(--palm); }
.intro__note svg { width: 42px; height: 42px; color: var(--ghaf); flex: none; }
.intro__visual { position: relative; isolation: isolate; justify-self: center; width: min(100%, 410px); }
.intro__shape {
  position: absolute; z-index: -1; width: 80%; aspect-ratio: 4 / 5; left: -16%; bottom: -9%;
  background: var(--linen); border-radius: 50% 50% 0 0 / 40% 40% 0 0;
}

/* ---------- Roots (dark) ---------- */
.roots { background: var(--palm); color: var(--on-dark); overflow: hidden; }
.roots .frond-shadow { color: #000; opacity: .2; width: 940px; height: 940px; right: -280px; top: -230px; transform: rotate(18deg) scaleX(-1); filter: blur(7px); }
.roots__top { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.roots .eyebrow { color: var(--khoos-pale); }
.roots h2 { color: var(--pearl); font-size: var(--fs-h2); margin-bottom: 1.6rem; }
.roots h2 em { font-style: normal; color: var(--khoos-pale); }
.roots__text p { font-size: var(--fs-lead); font-weight: 300; line-height: 2.05; max-width: 32em; }
.roots__art { justify-self: center; width: min(100%, 360px); color: var(--khoos-pale); }
.pillars {
  position: relative; z-index: 1; list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  margin: clamp(56px, 7vw, 96px) 0 0; border-top: 1px solid var(--line-dark);
}
.pillar { padding: 34px 26px 4px; border-inline-start: 1px solid var(--line-dark); }
.pillar:first-child { border-inline-start: 0; padding-inline-start: 0; }
.pillar:last-child { padding-inline-end: 0; }
.pillar .icon { width: 30px; height: 30px; color: var(--khoos-pale); margin-bottom: 22px; }
.pillar__pct { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--khoos-soft); line-height: 1; }
.pillar h3 { color: var(--pearl); font-size: 1.75rem; margin: .35rem 0 .5rem; }
.pillar p { font-size: var(--fs-sm); line-height: 1.85; }

/* ---------- Offers ---------- */
.offers__head { text-align: center; max-width: 640px; margin: 0 auto clamp(44px, 5vw, 68px); }
.offers__head .eyebrow { justify-content: center; }
.offers__head h2 { font-size: var(--fs-h2); }
.offers__head p { margin-top: .9rem; font-size: var(--fs-lead); font-weight: 300; }
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); }
.offer {
  position: relative; display: flex; flex-direction: column; padding: 38px 34px 30px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
}
.offer:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--sand); }
.offer__icon { width: 66px; height: 80px; display: grid; place-items: center; margin-bottom: 28px; color: var(--khoos); background: var(--linen); border-radius: 33px 33px 12px 12px; }
.offer__icon .icon { width: 30px; height: 30px; }
.offer__tag { font-size: var(--fs-xs); font-weight: 500; color: var(--ghaf-deep); margin-bottom: .35rem; }
.offer h3 { font-size: var(--fs-h3); margin-bottom: .75rem; }
.offer p { flex: 1; margin-bottom: 1.5rem; font-size: var(--fs-sm); line-height: 1.95; }
.offer__foot { padding-top: 1.2rem; border-top: 1px solid var(--line); }
.offer .link-arrow::before, .course .link-arrow::before, .post__link::before, .course__link::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* ---------- Courses ---------- */
.courses { background: var(--linen); }
.section-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-top h2 { font-size: var(--fs-h2); }
.section-top p { margin-top: .8rem; font-size: var(--fs-lead); font-weight: 300; max-width: 30em; }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.course { position: relative; display: flex; flex-direction: column; }
.course__media { position: relative; }
.course__media img { transition: transform 1.2s var(--ease); }
.course:hover .course__media img { transform: scale(1.045); }
.course__media .badge { position: absolute; bottom: 16px; right: 16px; }
.course__body { display: flex; flex-direction: column; flex: 1; padding: 24px 6px 0; }
.course h3 { font-size: 1.9rem; margin-bottom: .4rem; }
.course h3 a { color: inherit; }
.course p { flex: 1; font-size: var(--fs-sm); line-height: 1.9; }
.course__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 1.1rem; padding-block: 1rem; border-top: 1px solid var(--sand); font-size: var(--fs-xs); color: var(--text); }
.course__meta span { display: inline-flex; align-items: center; gap: 7px; }
.course__meta .icon { width: 17px; height: 17px; color: var(--khoos-soft); }
.courses--archive .course-grid { row-gap: clamp(40px, 5vw, 64px); }

.event { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; margin-top: clamp(56px, 7vw, 96px); background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.course-grid:empty + .event, .section-top + .event { margin-top: 0; }
.event__media { position: relative; min-height: 380px; background: var(--sand); }
.event__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event__body { padding: clamp(32px, 4.5vw, 64px); }
.event__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(3rem, 2rem + 2.6vw, 4.4rem); line-height: 1.1; color: var(--palm); }
.event__sub { font-family: var(--font-display); font-size: 1.65rem; color: var(--jujube); margin: .5rem 0 1.1rem; }
.event__body > p { max-width: 30em; }
.event__meta { display: flex; flex-wrap: wrap; gap: 12px 26px; margin: 1.6rem 0 2.1rem; font-size: var(--fs-sm); color: var(--palm); }
.event__meta span { display: inline-flex; align-items: center; gap: 8px; }
.event__meta .icon { width: 19px; height: 19px; color: var(--khoos); }

/* ---------- Quote ---------- */
.quote { text-align: center; overflow: hidden; }
.quote .frond-shadow { width: 620px; height: 620px; right: -120px; bottom: -260px; transform: rotate(-150deg); opacity: .05; }
.quote__mark { width: 58px; height: 58px; margin: 0 auto 26px; color: var(--khoos-soft); }
.quote blockquote { position: relative; z-index: 1; margin: 0 auto; max-width: 21em; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.9rem, 1.25rem + 2.3vw, 3.05rem); line-height: 1.6; color: var(--palm); }
.quote blockquote em { font-style: normal; color: var(--jujube); }
.quote__sign, .sig { font-family: var(--font-sign); font-size: 46px; line-height: 1.2; color: var(--jujube); }
.quote__sign { margin-top: 1.5rem; }

/* ---------- About ---------- */
.about { background: var(--paper); }
.about__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(48px, 8vw, 128px); align-items: center; }
.about__visual { display: flex; align-items: flex-end; gap: 30px; justify-self: center; }
.about__visual .arch { width: min(100%, 360px); }
.about__verse { font-family: var(--font-display); font-size: 1.4rem; line-height: 2; color: var(--khoos); white-space: nowrap; padding-bottom: 8px; }
.about__verse b { display: block; margin-top: .4rem; font-weight: 600; color: var(--palm); }
.about h2 { font-size: var(--fs-h2); margin-bottom: 1.5rem; }
.about__text p { font-size: var(--fs-lead); font-weight: 300; line-height: 2.05; max-width: 31em; }
.about__sign { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: 2rem; }
.about__sign .sig { font-size: 48px; }

/* ---------- Journal ---------- */
.journal-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: clamp(16px, 2vw, 26px); }
.journal-grid--archive, .journal-grid--related { grid-template-columns: repeat(3, 1fr); }
.journal-grid--archive { row-gap: clamp(20px, 3vw, 36px); }
.post { position: relative; display: flex; flex-direction: column; min-height: 470px; border-radius: var(--radius-lg); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post--image { background: var(--paper); border: 1px solid var(--line); }
.post__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.post__media img { width: 100%; height: 100%; object-fit: cover; }
.post__body { display: flex; flex-direction: column; flex: 1; padding: 26px 30px 28px; }
.post h3 { font-size: 1.95rem; margin: .7rem 0 .45rem; }
.post h3 a { color: inherit; }
.post p { flex: 1; font-size: var(--fs-sm); line-height: 1.9; }
.post__meta { display: flex; align-items: center; gap: 8px; margin-top: 1.2rem; font-size: var(--fs-xs); color: var(--text); }
.post__meta .icon { width: 16px; height: 16px; }
.post__dot { width: 4px; height: 4px; background: var(--khoos-soft); transform: rotate(45deg); }
.post--type { background: var(--linen); padding: 32px 32px 28px; }
.post__quote { flex: 1; display: flex; align-items: center; margin: 1.2rem 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 1.4rem + 1.1vw, 2.35rem); line-height: 1.55; color: var(--palm); }
.post__quote a { color: inherit; }
.post__quote em { font-style: normal; color: var(--jujube); }
.post--type .badge { background: var(--paper); }
.post--dark { background: var(--palm); }
.post--dark .post__quote { color: var(--pearl); }
.post--dark .post__quote em { color: var(--khoos-pale); }
.post--dark .post__meta { color: var(--on-dark); }
.post--dark .badge { background: rgba(250, 246, 240, .1); color: var(--khoos-pale); }
.journal-grid--archive .post, .journal-grid--related .post { min-height: 400px; }

.newsletter {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 64px; align-items: center;
  margin-top: clamp(72px, 8vw, 112px); padding: clamp(36px, 5vw, 64px);
  background: var(--linen); border-radius: var(--radius-lg);
}
.section--top-0 .newsletter, .journal-grid:empty + .newsletter { margin-top: 0; }
.journal > .container > .newsletter:first-child { margin-top: 0; }
.newsletter > * { position: relative; z-index: 1; }
.newsletter h3 { font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.55rem); margin-bottom: .55rem; }
.newsletter p { font-size: var(--fs-sm); max-width: 30em; }
.newsletter .frond-deco, .cta-band .frond-deco { position: absolute; z-index: 0; left: -30px; bottom: -70px; width: 270px; height: 270px; color: var(--khoos-soft); opacity: .2; transform: rotate(-14deg); }
.nl-form { display: flex; gap: 8px; padding: 6px; background: var(--paper); border: 1px solid var(--sand); border-radius: 999px; transition: border-color .3s; }
.nl-form:focus-within { border-color: var(--khoos-soft); }
.nl-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 20px; font-size: var(--fs-sm); outline: none; direction: ltr; text-align: right; }
.nl-form input[type="search"] { direction: rtl; }
.nl-form input::placeholder { color: #A39488; }
.nl-note, .nl-success { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: var(--fs-xs); }
.nl-note .icon, .nl-success .icon { width: 16px; height: 16px; color: var(--ghaf); flex: none; }
.nl-note--error { color: var(--jujube); }
.nl-note--error .icon { color: var(--jujube); }
.nl-success { margin: 0; padding: 14px 20px; background: var(--paper); border: 1px solid var(--sand); border-radius: 999px; font-size: var(--fs-sm); color: var(--palm); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
  padding: clamp(32px, 4.5vw, 56px); background: var(--palm); color: var(--on-dark); border-radius: var(--radius-lg);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band .eyebrow { color: var(--khoos-pale); margin-bottom: .6rem; }
.cta-band h3 { color: var(--pearl); font-size: clamp(1.7rem, 1.3rem + 1.3vw, 2.4rem); max-width: 24em; }
.cta-band .frond-deco { color: var(--khoos-pale); opacity: .14; }
.cta-band .btn--primary { background: var(--pearl); color: var(--palm); }
.cta-band .btn--primary:hover { background: var(--khoos-pale); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero, .post-hero, .course-hero {
  position: relative; overflow: hidden;
  padding-block: clamp(40px, 5vw, 72px) clamp(48px, 6vw, 84px);
  background: radial-gradient(900px 560px at 16% 6%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%), var(--pearl);
}
.page-hero--linen, .course-hero { background: var(--linen); }
.page-hero--compact { padding-block: clamp(28px, 4vw, 52px) clamp(28px, 4vw, 52px); }
.page-hero .frond-shadow, .post-hero .frond-shadow, .course-hero .frond-shadow { width: 720px; height: 720px; top: -220px; left: -220px; transform: rotate(-26deg); }
.page-hero__in, .post-hero__in { position: relative; z-index: 1; max-width: 820px; }
.page-hero h1, .post-hero h1 { font-size: clamp(2.4rem, 1.5rem + 3vw, 4.2rem); line-height: 1.22; }
.page-hero__lead { font-size: var(--fs-lead); font-weight: 300; line-height: 2.05; max-width: 34em; margin-top: 1.2rem; }
.page-hero__search { max-width: 520px; margin-top: 1.8rem; }
.post-hero__in .post__meta { margin-top: 1.4rem; color: var(--khoos); }
.post-hero__in .post__meta time { color: var(--text); }

/* ---------- Entry content (block content) ---------- */
.entry { padding-block: clamp(40px, 5vw, 72px) var(--section); }
.entry--post { padding-top: 0; }
.entry__figure { margin: 0 auto clamp(32px, 4vw, 56px); }
.entry__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.entry-content > * { max-width: 760px; margin-inline: auto; }
.entry-content > .alignwide { max-width: var(--container); }
.entry-content > .alignfull { max-width: none; width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter)); }
.entry-content { padding-inline: var(--gutter); }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content > h2, .entry-content > h3, .entry-content > h4 { margin-top: 2.2em; }
.entry-content h2 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); line-height: 1.3; }
.entry-content h3 { font-size: var(--fs-h3); }
.entry-content h4 { font-size: 1.35rem; }
.entry-content p, .entry-content li { font-size: var(--fs-body); }
.entry-content > p:first-child { font-size: var(--fs-lead); font-weight: 300; line-height: 2.05; }
.entry-content a:not(.btn):not(.wp-block-button__link):not(.link-arrow) { color: var(--khoos); text-decoration: underline; text-decoration-color: var(--khoos-pale); text-underline-offset: .2em; transition: color .3s; }
.entry-content a:not(.btn):not(.wp-block-button__link):hover { color: var(--palm); }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; }
.entry-content li + li { margin-top: .4em; }
.entry-content li::marker { color: var(--khoos-soft); }
.entry-content blockquote { margin: 2.2em auto; padding: 0 1.4em; border-inline-start: 2px solid var(--khoos-pale); font-family: var(--font-display); font-size: 1.5rem; line-height: 1.7; color: var(--palm); }
.entry-content blockquote cite { display: block; margin-top: .6em; font-family: var(--font-body); font-size: var(--fs-sm); font-style: normal; color: var(--khoos); }
.entry-content img { border-radius: var(--radius); }
.entry-content figcaption { margin-top: .6em; font-size: var(--fs-xs); color: var(--text); text-align: center; }
.entry-content hr { border: 0; height: 1px; background: var(--line); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.entry-content th, .entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: start; }
.entry-content th { color: var(--palm); font-weight: 600; }
.entry-content code, .entry-content kbd { font-size: .9em; background: var(--linen); padding: .1em .4em; border-radius: 6px; direction: ltr; unicode-bidi: isolate; }
.entry-content pre { padding: 1.2em 1.4em; background: var(--linen); border-radius: var(--radius); overflow: auto; direction: ltr; text-align: left; }
.entry-content .wp-block-embed iframe { max-width: 100%; border-radius: var(--radius); }
.page-links { margin-top: 2em; display: flex; gap: 8px; font-size: var(--fs-sm); }
.entry-content--course > *:not(.learndash-wrapper), .entry-content--learning > *:not(.learndash-wrapper) { max-width: 760px; }
.entry-content > .learndash-wrapper { max-width: 980px; }

/* ---------- Post footer ---------- */
.entry__footer { max-width: calc(760px + 2 * var(--gutter)); padding-top: clamp(40px, 5vw, 64px); }
.entry__sign { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.entry__sign .sig { font-size: 52px; }
.entry__sign .ornament { font-size: 14px; }
.entry__tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 1.8rem; }
.entry__tags a { display: inline-flex; padding: .3rem .85rem; border-radius: 999px; background: var(--linen); color: var(--khoos); font-size: var(--fs-xs); transition: background-color .3s, color .3s; }
.entry__tags a:hover { background: var(--khoos); color: var(--pearl); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); }
.post-nav__item { display: flex; flex-direction: column; gap: 6px; }
.post-nav__item--next { text-align: end; }
.post-nav__label { font-size: var(--fs-xs); color: var(--khoos); }
.post-nav a { font-family: var(--font-display); font-size: 1.4rem; color: var(--palm); line-height: 1.4; transition: color .3s; }
.post-nav a:hover { color: var(--khoos); }
.related { background: var(--paper); border-top: 1px solid var(--line); }

/* ---------- Chips / results / empty ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(28px, 4vw, 44px); }
.chip { display: inline-flex; align-items: center; padding: .45rem 1.1rem; border-radius: 999px; border: 1px solid var(--sand); color: var(--palm); font-size: var(--fs-sm); background: var(--paper); transition: background-color .3s, color .3s, border-color .3s; }
.chip:hover { border-color: var(--khoos); color: var(--khoos); }
.chip.is-active { background: var(--palm); border-color: var(--palm); color: var(--pearl); }
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.result { padding: 26px 30px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.result h2 { font-size: 1.6rem; margin: .6rem 0 .4rem; }
.result h2 a { color: inherit; }
.result h2 a:hover { color: var(--khoos); }
.result p { font-size: var(--fs-sm); margin: 0; }
.empty-state { text-align: center; max-width: 520px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 0; }
.empty-state__frond { width: 56px; height: 56px; margin: 0 auto 20px; color: var(--khoos-soft); }
.empty-state h2 { font-size: var(--fs-h3); margin-bottom: .6rem; }
.empty-state .link-arrow { margin-top: 1rem; }
.not-found { overflow: hidden; }
.not-found .frond-shadow { width: 720px; height: 720px; right: -220px; bottom: -300px; transform: rotate(150deg); }
.not-found__in { position: relative; z-index: 1; text-align: center; }
.not-found .eyebrow { justify-content: center; }
.not-found .hero__ctas { justify-content: center; }
.not-found .page-hero__search { margin-inline: auto; }

/* ---------- Pagination ---------- */
.huda-pagination { margin-top: clamp(40px, 5vw, 64px); }
.huda-pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.huda-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--sand); color: var(--palm); font-size: var(--fs-sm); transition: background-color .3s, color .3s, border-color .3s; }
.huda-pagination .page-numbers:hover { border-color: var(--khoos); color: var(--khoos); }
.huda-pagination .page-numbers.current { background: var(--palm); border-color: var(--palm); color: var(--pearl); }
.huda-pagination .page-numbers.dots { border: 0; }
.huda-pagination .icon { width: 18px; height: 18px; }
.huda-pagination .icon--next { transform: scaleX(-1); }
.huda-pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Course single ---------- */
.course-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.course-hero__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 1rem; }
.course-hero__tags .eyebrow { margin: 0; }
.course-hero h1 { font-size: clamp(2.4rem, 1.5rem + 3vw, 4.2rem); line-height: 1.22; }
.course__meta--hero { border-top: 0; border-bottom: 1px solid var(--sand); padding-block: 1.2rem; margin-top: 1.6rem; font-size: var(--fs-sm); color: var(--palm); }
.course__meta--hero .icon { color: var(--khoos); width: 19px; height: 19px; }
.course-hero__action { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; margin-top: 1.8rem; }
.course-hero__price { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.course-hero__price span { font-size: var(--fs-xs); color: var(--khoos); }
.course-hero__price b { font-family: var(--font-display); font-size: 2.1rem; line-height: 1.1; color: var(--palm); font-weight: 600; }
.course-hero__price del { color: var(--text); font-size: .7em; margin-inline-end: .4em; }
.course-hero__login { flex-basis: 100%; margin: 0; font-size: var(--fs-xs); color: var(--text); }
.course-hero__login a { color: var(--khoos); text-decoration: underline; text-underline-offset: .2em; }
.course-hero__visual { position: relative; isolation: isolate; justify-self: center; width: min(100%, 430px); }
.course-hero__visual .arch { box-shadow: var(--shadow-lg); }
.course-body { padding-top: clamp(40px, 5vw, 72px); }
.course-cta .btn-join, .course-cta .ld-button, .course-cta input[type="submit"], .course-cta .learndash_checkout_buttons .btn-join {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 52px; padding: 0 1.8rem; border-radius: 999px;
  font-family: var(--font-body); font-weight: 500; font-size: 1rem; line-height: 1; border: 1px solid transparent; cursor: pointer;
  background: var(--khoos); color: var(--pearl); text-decoration: none; transition: background-color .35s var(--ease);
}
.course-cta .btn-join:hover, .course-cta .ld-button:hover, .course-cta input[type="submit"]:hover { background: var(--palm); color: var(--pearl); }
.course-cta form { margin: 0; display: inline; }
.progress { min-width: 260px; }
.progress__head { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--fs-xs); color: var(--khoos); margin-bottom: 8px; }
.progress__head b { font-family: var(--font-display); font-size: 1.4rem; color: var(--palm); font-weight: 600; }
.progress__bar { height: 6px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.progress__bar span { display: block; height: 100%; border-radius: inherit; background: var(--ghaf); transition: width .8s var(--ease); }
.progress--sm { min-width: 0; margin: 14px 0 22px; }

/* ---------- Learning layout (non-focus) ---------- */
.learning { padding-block: clamp(32px, 4vw, 56px) var(--section); }
.learning__grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.learning__nav { position: sticky; top: 100px; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.learning__course { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.3rem; color: var(--palm); line-height: 1.3; }
.learning__course .icon { width: 18px; height: 18px; color: var(--khoos); transform: scaleX(-1); flex: none; }
.learning__head .eyebrow { margin-bottom: .6rem; }
.learning__head h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); margin-bottom: 1.4rem; }
.learning__content .entry-content { padding-inline: 0; }
.learning__content .entry-content > * { margin-inline: 0; max-width: 760px; }

/* ---------- Notices ---------- */
.huda-notice { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; margin: 0 0 28px; border-radius: var(--radius); background: var(--linen); color: var(--text); }
.huda-notice--ghaf { background: #E9EADF; }
.huda-notice__icon { width: 26px; height: 26px; color: var(--ghaf-deep); margin-top: 4px; }
.huda-notice strong { display: block; color: var(--palm); font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; }
.huda-notice p { margin: .3rem 0 .6rem; font-size: var(--fs-sm); }

/* ---------- Forms ---------- */
.entry-content input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), .entry-content textarea, .entry-content select,
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea {
  width: 100%; padding: 12px 18px; border: 1px solid var(--sand); border-radius: 14px; background: var(--paper); color: var(--palm); font: inherit; font-size: var(--fs-sm); transition: border-color .3s;
}
.entry-content textarea, .comment-form textarea { border-radius: var(--radius); }
.entry-content input:focus, .entry-content textarea:focus, .comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--khoos-soft); box-shadow: 0 0 0 3px rgba(140, 106, 76, .12); }
.comment-form label { display: block; font-size: var(--fs-sm); color: var(--palm); margin-bottom: 6px; }
.comment-form p { margin-bottom: 1rem; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: center; font-size: var(--fs-xs); }
.comment-form .comment-form-cookies-consent label { margin: 0; }

/* ---------- Comments ---------- */
.entry__comments { max-width: calc(760px + 2 * var(--gutter)); padding-block: clamp(40px, 5vw, 64px); }
.comments__title, .comment-reply-title { font-size: var(--fs-h3); margin-bottom: 1.2rem; }
.comment-list { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; gap: 14px; }
.comment-list .children { list-style: none; margin: 14px 0 0 0; padding-inline-start: 28px; display: grid; gap: 14px; }
.comment-body { padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); font-size: var(--fs-sm); }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: .8rem; }
.comment-author { display: flex; align-items: center; gap: 10px; }
.comment-author img { border-radius: 50%; }
.comment-author .fn { font-weight: 600; color: var(--palm); font-style: normal; }
.comment-metadata { font-size: var(--fs-xs); color: var(--text); }
.comment-content p:last-child { margin: 0; }
.reply { margin-top: .6rem; font-size: var(--fs-xs); }
.reply a { color: var(--khoos); }
.comment-notes { font-size: var(--fs-xs); }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--palm); color: var(--on-dark); }
.site-footer .braid { opacity: .32; }
.footer__grid { display: grid; grid-template-columns: 1.35fr repeat(var(--cols, 3), 1fr) 1.15fr; gap: 40px; padding-top: clamp(60px, 7vw, 96px); }
.footer__brand { text-align: center; justify-self: start; }
.footer__brand .logo-stack { font-size: 58px; color: var(--pearl); }
.footer__brand .logo-stack__mark, .footer__brand .logo-stack__latin { color: var(--khoos-pale); }
.footer__brand .ornament { color: var(--khoos-soft); }
.footer__brand p { margin-top: 1.1rem; font-family: var(--font-display); font-size: 1.35rem; color: var(--pearl); }
.footer__col h4 { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600; color: var(--pearl); margin-bottom: 1rem; }
.footer__menu, .footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: var(--fs-sm); }
.footer__col a { transition: color .3s; }
.footer__col a:hover { color: var(--pearl); }
.socials { display: flex; gap: 10px; margin-bottom: 1.1rem; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-dark); color: var(--khoos-pale); transition: background-color .3s, color .3s; }
.socials a:hover { background: var(--pearl); color: var(--palm); }
.socials .icon { width: 20px; height: 20px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: clamp(48px, 6vw, 80px); padding-block: 24px; border-top: 1px solid var(--line-dark); font-size: var(--fs-xs); }
.footer__bottom span { display: inline-flex; align-items: center; gap: 8px; }
.footer__bottom .icon { width: 16px; height: 16px; color: var(--khoos-pale); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-grid; }
  .header__actions .btn, .header__actions .header__login { display: none; }
  .nav {
    position: absolute; top: 100%; inset-inline: calc(-1 * var(--gutter)); display: none;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 28px;
    background: var(--pearl); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: calc(100vh - 84px); overflow: auto;
  }
  .nav-open .nav { display: flex; }
  .nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .nav .menu > li > a { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .menu > li > a[aria-current="page"]::after { left: auto; inset-inline-start: 6px; bottom: 50%; transform: translateY(50%) rotate(45deg); }
  .nav .sub-menu { position: static; display: none; border: 0; box-shadow: none; background: transparent; padding: 0 0 8px 0; min-width: 0; }
  .nav .menu > li.is-open > .sub-menu { display: flex; }
  .nav .menu > li:hover > .sub-menu:not(:where(.is-open .sub-menu)) { display: none; }
  .nav .sub-menu a { padding: 10px 18px; font-size: .98rem; }
  .nav__extra { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; }
  .nav__extra a { border: 0; padding: 0; }
  .nav__extra .btn { padding: 0 1.6rem; color: var(--pearl); }

  .pillars { grid-template-columns: repeat(2, 1fr); gap: 0 32px; border-top: 0; }
  .pillar, .pillar:first-child, .pillar:last-child { padding: 26px 0 24px; border-inline-start: 0; border-top: 1px solid var(--line-dark); }
  .pillar:last-child { grid-column: 1 / -1; }

  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; justify-self: center; }
  .learning__grid { grid-template-columns: 1fr; }
  .learning__nav { position: static; }
}
@media (max-width: 900px) {
  .hero__grid, .intro__grid, .roots__top, .about__grid, .newsletter, .event, .course-hero__grid { grid-template-columns: 1fr; }
  .hero__visual, .course-hero__visual { width: min(100%, 420px); margin-top: 12px; }
  .hero__note { right: -12px; bottom: 32px; }
  .hero__seal { left: -12px; }
  .intro__visual { width: min(86%, 380px); }
  .roots__art { width: min(70%, 300px); }
  .offer-grid { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .journal-grid, .journal-grid--archive, .journal-grid--related { grid-template-columns: 1fr 1fr; }
  .journal-grid .post--image { grid-column: 1 / -1; }
  .journal-grid--archive .post--image { grid-column: auto; }
  .event__media { min-height: 300px; }
  .section-top { flex-direction: column; align-items: flex-start; }
  .about__visual { justify-self: stretch; justify-content: center; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__item--next { text-align: start; }
}
@media (max-width: 640px) {
  .header__bar { height: 72px; }
  .header__logo { font-size: 33px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__meta { gap: 6px 16px; }
  .hero__meta span { gap: 16px; }
  .hero__note { padding: 12px 16px 12px 20px; gap: 12px; }
  .hero__note b { font-size: 36px; }
  .hero__note span { font-size: 17px; }
  .hero__seal { width: 64px; height: 64px; }
  .hero__seal svg { width: 36px; height: 36px; }
  .course-grid, .journal-grid, .journal-grid--archive, .journal-grid--related { grid-template-columns: 1fr; }
  .post { min-height: 0; }
  .pillars { grid-template-columns: 1fr; }
  .pillar:last-child { grid-column: auto; }
  .about__verse { display: none; }
  .nl-form { flex-direction: column; border-radius: 22px; }
  .nl-form input { min-height: 48px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .entry-content > .alignfull { width: calc(100% + 2 * var(--gutter)); }
  .course-hero__action { gap: 16px; }
  .progress { min-width: 0; width: 100%; }
}

/* ---------- Contact links ---------- */
.contact-links { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.contact-links .btn .icon { width: 20px; height: 20px; }
