/* Sahtain Guide page — matched to sahtain.sa/guide.html
   rem→px at 16px (Zid html root ≠ 16px). Sections: Hero + FAQ + Assist + Ending. */

.sahtain-guide-page {
  --sg-brand: #0756a8;
  --sg-navy: #061b36;
  --sg-muted: #6d8298;
  --sg-line: rgba(16, 91, 160, 0.13);
  width: 100%;
  background: #ffffff;
  color: #0b2340;
  font-family: inherit;
  font-size: 16px;
  --sg-heading-scale: var(--sg-heading-scale-web, 1);
  --sg-text-scale: var(--sg-text-scale-web, 1);
  --sg-accent-scale: var(--sg-accent-scale-web, 1);
  --sg-btn-scale: var(--sg-btn-scale-web, 1);
  --sg-heading-lh: var(--sg-heading-lh-web, 1);
  --sg-text-lh: var(--sg-text-lh-web, 1);
  --sg-accent-lh: var(--sg-accent-lh-web, 1);
  --sg-btn-lh: var(--sg-btn-lh-web, 1);
}

.sahtain-guide-page *,
.sahtain-guide-page *::before,
.sahtain-guide-page *::after {
  box-sizing: border-box;
}

/* Reveal */
[data-guide-reveal] {
  opacity: 1;
  transform: none;
}

.sahtain-guide-page.is-reveal-ready [data-guide-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(22px);
}

[data-guide-reveal].is-visible {
  animation: sahtainGuideReveal 0.66s cubic-bezier(0.2, 0.78, 0.2, 1) forwards;
}

[data-guide-reveal][data-guide-reveal-delay="1"].is-visible {
  animation-delay: 0.12s;
}

[data-guide-reveal][data-guide-reveal-delay="2"].is-visible {
  animation-delay: 0.18s;
}

[data-guide-reveal][data-guide-reveal-delay="3"].is-visible {
  animation-delay: 0.24s;
}

[data-guide-reveal][data-guide-reveal-delay="4"].is-visible {
  animation-delay: 0.3s;
}

[data-guide-reveal][data-guide-reveal-delay="5"].is-visible {
  animation-delay: 0.36s;
}

[data-guide-reveal][data-guide-reveal-delay="6"].is-visible {
  animation-delay: 0.42s;
}

@keyframes sahtainGuideReveal {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-guide-reveal] {
    opacity: 1;
    transform: none;
  }

  [data-guide-reveal].is-visible {
    animation: none;
  }
}

/* —— 1. Hero —— */
.sahtain-guide-hero {
  position: relative;
  padding: 150px 0 92px;
  overflow: hidden;
  background:
    radial-gradient(circle at 17% 20%, rgba(83, 182, 241, 0.16), transparent 29rem),
    radial-gradient(circle at 88% 70%, rgba(38, 133, 211, 0.08), transparent 32rem),
    linear-gradient(#ffffff 0%, #f6fbff 72%, #edf7ff 100%);
}

.sahtain-guide-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 49.92%, rgba(14, 92, 162, 0.03) 50%, transparent 50.08%) 0 0 / 220px 100%;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 84%, transparent);
  mask-image: linear-gradient(transparent, #000 18%, #000 84%, transparent);
}

.sahtain-guide-hero.has-banner {
  padding: 0;
  background: none;
}

.guide-hero__banner {
  display: block;
  width: 100%;
  height: auto;
}

.sahtain-guide-hero.has-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--guide-overlay-color, #fff) calc(var(--guide-overlay-opacity, 100) * 0.88%), transparent) 0%,
    color-mix(in srgb, var(--guide-overlay-color, #fff) calc(var(--guide-overlay-opacity, 100) * 0.58%), transparent) 48%,
    color-mix(in srgb, var(--guide-overlay-color, #fff) calc(var(--guide-overlay-opacity, 100) * 0.28%), transparent) 100%);
}

.sahtain-guide-hero.has-banner.is-ltr::after {
  background: linear-gradient(270deg,
    color-mix(in srgb, var(--guide-overlay-color, #fff) calc(var(--guide-overlay-opacity, 100) * 0.88%), transparent) 0%,
    color-mix(in srgb, var(--guide-overlay-color, #fff) calc(var(--guide-overlay-opacity, 100) * 0.58%), transparent) 48%,
    color-mix(in srgb, var(--guide-overlay-color, #fff) calc(var(--guide-overlay-opacity, 100) * 0.28%), transparent) 100%);
}

.sahtain-guide-hero.has-banner .guide-hero__shell {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: min(1120px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
}

.sahtain-guide-hero.has-banner::before {
  opacity: 0.16;
}

.guide-hero__shell {
  position: relative;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: clamp(40px, 7vw, 90px);
  align-items: center;
}

.guide-hero__shell.no-visual {
  grid-template-columns: minmax(0, 1fr);
}

.guide-hero__copy {
  text-align: right;
}

.sahtain-guide-hero.is-ltr .guide-hero__copy {
  text-align: left;
  direction: ltr;
}

.guide-hero__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  color: var(--sg-brand);
  font-size: calc(13.44px * var(--sg-accent-scale, 1)); /* 0.84rem */
  font-weight: 900;
}

.guide-hero__kicker::after {
  content: "";
  width: 48px;
  height: 1px;
  background: currentColor;
}

.sahtain-guide-hero.is-ltr .guide-hero__kicker {
  justify-content: flex-start;
}

.guide-hero__title {
  margin: 0;
  max-width: 8ch;
  color: var(--sg-navy);
  font-size: calc(clamp(64px, 6.7vw, 124.8px) * var(--sg-heading-scale, 1)); /* clamp(4rem, 6.7vw, 7.8rem) */
  font-weight: 900;
  line-height: calc(1.01 * var(--sg-heading-lh, 1));
  letter-spacing: -0.04em;
}

.guide-hero__subtitle {
  margin-top: 15px;
  color: var(--sg-brand);
  font-size: calc(clamp(21.6px, 2.2vw, 34.4px) * var(--sg-heading-scale, 1)); /* clamp(1.35rem, 2.2vw, 2.15rem) */
  font-weight: 900;
}

.guide-hero__lead {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--sg-muted, rgb(93, 120, 146));
  font-size: calc(clamp(16px, 1.17vw, 18.24px) * var(--sg-text-scale, 1)); /* clamp(1rem, 1.17vw, 1.14rem) */
  font-weight: 400;
  line-height: calc(1.9 * var(--sg-text-lh, 1));
}

.sahtain-guide-hero.is-ltr .guide-hero__subtitle,
.sahtain-guide-hero.is-ltr .guide-hero__lead {
  text-align: left;
}

.guide-hero__visual {
  position: relative;
  min-height: 330px;
  display: grid;
  place-items: center;
}

.guide-hero__orbit {
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(7, 86, 168, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(7, 86, 168, 0.024),
    0 0 0 68px rgba(7, 86, 168, 0.02);
}

.guide-hero__icon {
  position: relative;
  width: 142px;
  height: 142px;
  display: grid;
  place-items: center;
  border-radius: 42px;
  background: #ffffff;
  color: var(--sg-brand);
  border: 1px solid var(--sg-line);
  box-shadow: 0 24px 70px rgba(7, 57, 104, 0.11);
  transform: rotate(-5deg);
}

.guide-hero__icon svg {
  width: 66px;
  height: 66px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.45;
  transform: rotate(5deg);
}

.guide-hero__icon img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  transform: rotate(5deg);
}

@media (max-width: 900px) {
  .guide-hero__shell {
    grid-template-columns: 1fr;
  }

  .guide-hero__visual {
    min-height: 260px;
    order: -1;
  }
}

@media (max-width: 700px) {
  .sahtain-guide-hero {
    padding: 112px 0 60px;
  }

  .sahtain-guide-hero.has-banner {
    padding: 0;
  }

  .sahtain-guide-hero.has-banner .guide-hero__shell {
    width: min(1120px, calc(100% - 24px));
  }

  .guide-hero__shell {
    width: min(calc(100% - 24px), 1120px);
  }

  .guide-hero__copy,
  .sahtain-guide-hero.is-ltr .guide-hero__copy {
    text-align: center;
  }

  .guide-hero__kicker,
  .sahtain-guide-hero.is-ltr .guide-hero__kicker {
    justify-content: center;
    font-size: calc(12.16px * var(--sg-accent-scale, 1)); /* 0.76rem */
  }
 .guide-hero__kicker{
  justify-content: start !important;
  }

  .guide-hero__title {
    margin-left: auto;
    margin-right: auto;
    max-width: 8ch;
    font-size: calc(clamp(55.2px, 14vw, 78.4px) * var(--sg-heading-scale, 1)); /* clamp(3.45rem, 14vw, 4.9rem) */
  }

  .guide-hero__subtitle {
    font-size: calc(24px * var(--sg-heading-scale, 1)); /* 1.5rem */
  }

  .guide-hero__lead,
  .sahtain-guide-hero.is-ltr .guide-hero__lead {
    margin: 18px auto 0;
    max-width: 31ch;
    font-size: calc(14.72px * var(--sg-text-scale, 1)); /* 0.92rem */
    line-height: calc(1.82 * var(--sg-text-lh, 1));
    text-align: center;
  }

  .guide-hero__visual {
    min-height: 230px;
  }
}

/* —— 2. FAQ —— */
.sahtain-guide-faq {
  padding: clamp(74px, 8vw, 120px) 0;
  background: #ffffff;
}

.guide-faq__shell {
  width: min(1060px, calc(100% - 48px));
  margin: 0 auto;
}

.guide-faq__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 44px;
  text-align: right;
}

.sahtain-guide-faq.is-ltr .guide-faq__head {
  text-align: left;
  direction: ltr;
}

.guide-faq__label {
  margin-bottom: 12px;
  color: var(--sg-brand);
  font-size: calc(10.88px * var(--sg-accent-scale, 1)); /* 0.68rem */
  font-weight: 900;
  letter-spacing: 0.15em;
  direction: ltr;
  unicode-bidi: embed;
}

.guide-faq__title {
  margin: 0;
  color: var(--sg-navy);
  font-size: calc(clamp(56px, 5.8vw, 104px) * var(--sg-heading-scale, 1)); /* clamp(3.5rem, 5.8vw, 6.5rem) */
  font-weight: 900;
  line-height: calc(1.02 * var(--sg-heading-lh, 1));
  letter-spacing: -0.035em;
}

.sahtain-guide-faq.is-ltr .guide-faq__title {
  letter-spacing: -0.02em;
}

.guide-faq__desc {
  margin: 0;
  color: var(--sg-muted);
  font-size: calc(16px * var(--sg-text-scale, 1)); /* 1rem */
  font-weight: 400;
  line-height: calc(1.85 * var(--sg-text-lh, 1));
}

.sahtain-guide-faq.is-ltr .guide-faq__desc {
  text-align: left;
}

.guide-faq__list {
  display: grid;
  gap: 12px;
}

.guide-faq__item {
  border: 1px solid var(--sg-line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(7, 57, 104, 0.043);
  overflow: hidden;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.guide-faq__item[open] {
  border-color: rgba(7, 86, 168, 0.22);
  box-shadow: 0 18px 46px rgba(7, 57, 104, 0.07);
}

.guide-faq__item summary {
  list-style: none;
  min-height: 88px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  user-select: none;
  text-align: right;
}

.sahtain-guide-faq.is-ltr .guide-faq__item summary {
  text-align: left;
  direction: ltr;
}

.guide-faq__item summary::-webkit-details-marker {
  display: none;
}

.guide-faq__icon {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--sg-brand);
  background: #eef7ff;
}

.guide-faq__icon svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guide-faq__question {
  flex: 1 1 0%;
  color: var(--sg-navy);
  font-size: calc(17.28px * var(--sg-heading-scale, 1)); /* 1.08rem */
  font-weight: 900;
  line-height: calc(1.5 * var(--sg-heading-lh, 1));
}

.guide-faq__plus {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f2f8fd;
  color: var(--sg-brand);
  font-size: 22.4px; /* 1.4rem */
  font-weight: 300;
  line-height: 1;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.guide-faq__item[open] .guide-faq__plus {
  transform: rotate(45deg);
  background: var(--sg-brand);
  color: #ffffff;
}

.guide-faq__answer {
  padding: 0 84px 24px 22px;
  color: var(--sg-muted, rgb(96, 121, 144));
  font-size: calc(15.68px * var(--sg-text-scale, 1)); /* 0.98rem */
  line-height: calc(1.9 * var(--sg-text-lh, 1));
  text-align: right;
}

.sahtain-guide-faq.is-ltr .guide-faq__answer {
  padding: 0 22px 24px 84px;
  text-align: left;
  direction: ltr;
}

.guide-faq__answer p {
  margin: 0;
}

.guide-faq__answer a {
  color: var(--sg-brand);
  font-weight: 900;
  text-decoration: none;
  direction: ltr;
  unicode-bidi: embed;
}

.guide-faq__answer a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .guide-faq__head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .sahtain-guide-faq {
    padding: 62px 0;
  }

  .guide-faq__shell {
    width: min(calc(100% - 24px), 1060px);
  }

  .guide-faq__head {
    gap: 18px;
    margin-bottom: 30px;
    text-align: center;
  }

  .sahtain-guide-faq.is-ltr .guide-faq__head {
    text-align: center;
  }

  .guide-faq__title {
    font-size: calc(59.2px * var(--sg-heading-scale, 1)); /* 3.7rem */
  }

  .guide-faq__desc,
  .sahtain-guide-faq.is-ltr .guide-faq__desc {
    max-width: 31ch;
    margin-left: auto;
    margin-right: auto;
    font-size: calc(14.72px * var(--sg-text-scale, 1)); /* 0.92rem */
    text-align: center;
  }

  .guide-faq__item summary {
    min-height: 78px;
    padding: 15px 14px;
    gap: 11px;
  }

  .guide-faq__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .guide-faq__question {
    font-size: calc(15.2px * var(--sg-heading-scale, 1)); /* 0.95rem */
  }

  .guide-faq__plus {
    width: 30px;
    height: 30px;
  }

  .guide-faq__answer {
    padding: 0 67px 20px 14px;
    font-size: calc(14.4px * var(--sg-text-scale, 1)); /* 0.9rem */
  }

  .sahtain-guide-faq.is-ltr .guide-faq__answer {
    padding: 0 14px 20px 67px;
  }
}

/* —— 3. Direct Assistance —— */
.sahtain-guide-assist {
  padding: 0 0 clamp(76px, 8vw, 116px);
  background: #ffffff;
}

.guide-assist__shell {
  width: min(1060px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(30px, 5vw, 54px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 40px;
  align-items: center;
  border: 1px solid var(--sg-line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 84% 18%, rgba(104, 194, 244, 0.14), transparent 368px),
    linear-gradient(135deg, #f7fbff, #edf7ff);
  text-align: right;
}

.sahtain-guide-assist.is-ltr .guide-assist__shell {
  text-align: left;
  direction: ltr;
}

.guide-assist__label {
  margin-bottom: 12px;
  color: var(--sg-brand);
  font-size: calc(10.88px * var(--sg-accent-scale, 1)); /* 0.68rem */
  font-weight: 900;
  letter-spacing: 0.15em;
  direction: ltr;
  unicode-bidi: embed;
}

.guide-assist__title {
  margin: 0;
  max-width: 10ch;
  color: var(--sg-navy);
  font-size: calc(clamp(44.8px, 4.7vw, 80px) * var(--sg-heading-scale, 1)); /* clamp(2.8rem, 4.7vw, 5rem) */
  font-weight: 900;
  line-height: calc(1.08 * var(--sg-heading-lh, 1));
  letter-spacing: -0.03em;
}

.guide-assist__desc {
  max-width: 44ch;
  margin: 18px 0 0;
  color: var(--sg-muted);
  font-size: calc(16px * var(--sg-text-scale, 1));
  font-weight: 400;
  line-height: calc(1.82 * var(--sg-text-lh, 1));
}

.guide-assist__actions {
  display: grid;
  gap: 11px;
}

.guide-assist__link {
  min-height: 68px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--sg-line);
  border-radius: 18px;
  background: var(--sg-btn-bg, #ffffff);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 28px rgba(7, 57, 104, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.sahtain-guide-assist.is-ltr .guide-assist__link {
  direction: ltr;
}

.guide-assist__link:hover {
  border-color: rgba(7, 86, 168, 0.22);
  box-shadow: 0 14px 34px rgba(7, 57, 104, 0.08);
  transform: translateY(-1px);
}

.guide-assist__icon {
  width: 41px;
  height: 41px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--sg-brand);
  background: #eef7ff;
}

.guide-assist__icon svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guide-assist__link-text {
  min-width: 0;
  display: block;
}

.sahtain-guide-assist.is-ltr .guide-assist__link-text {
  text-align: left;
}

.guide-assist__link-text small {
  display: block;
  margin-bottom: 3px;
  color: var(--sg-muted);
  font-size: calc(12.8px * var(--sg-text-scale, 1));
  font-weight: 500;
}

.guide-assist__link-text strong {
  display: block;
  color: var(--sg-btn-fg, var(--sg-navy));
  font-size: calc(15.2px * var(--sg-btn-scale, 1));
  line-height: calc(1.2 * var(--sg-btn-lh, 1));
  font-weight: 900;
  direction: ltr;
  unicode-bidi: embed;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .guide-assist__shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .sahtain-guide-assist {
    padding-bottom: 68px;
  }

  .guide-assist__shell {
    width: min(calc(100% - 24px), 1060px);
    padding: 28px 20px;
    border-radius: 26px;
    text-align: center;
  }

  .sahtain-guide-assist.is-ltr .guide-assist__shell {
    text-align: center;
  }

  .guide-assist__title {
    margin-left: auto;
    margin-right: auto;
    font-size: calc(48px * var(--sg-heading-scale, 1)); /* 3rem */
  }

  .guide-assist__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .guide-assist__link {
    min-height: 64px;
    text-align: right;
  }

  .sahtain-guide-assist.is-ltr .guide-assist__link {
    text-align: left;
  }

  .guide-assist__link-text strong {
    font-size: calc(13.92px * var(--sg-btn-scale, 1)); /* 0.87rem */
  }
}

/* —— 4. Ending —— */
.sahtain-guide-ending {
  padding: clamp(76px, 8vw, 116px) 0;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(108, 199, 248, 0.14), transparent 480px),
    linear-gradient(#f4faff, #eef7ff);
}

.guide-ending__shell {
  width: min(820px, calc(100% - 48px));
  margin: 0 auto;
}

.guide-ending__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border-radius: 21px;
  background: #ffffff;
  color: var(--sg-brand);
  border: 1px solid var(--sg-line);
  box-shadow: 0 14px 36px rgba(7, 57, 104, 0.07);
}

.guide-ending__icon svg {
  width: 31px;
  height: 31px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guide-ending__title {
  display: block;
  color: var(--sg-navy);
  font-size: calc(clamp(41.6px, 4.6vw, 80px) * var(--sg-heading-scale, 1)); /* clamp(2.6rem, 4.6vw, 5rem) */
  font-weight: 900;
  line-height: calc(1.22 * var(--sg-heading-lh, 1));
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.sahtain-guide-ending.is-ltr .guide-ending__title {
  letter-spacing: -0.02em;
}

.guide-ending__tagline {
  display: block;
  margin-top: 20px;
  color: var(--sg-brand);
  font-size: calc(18.72px * var(--sg-accent-scale, 1)); /* 1.17rem */
  font-weight: 900;
}

@media (max-width: 700px) {
  .sahtain-guide-ending {
    padding: 66px 0;
  }

  .guide-ending__shell {
    width: min(calc(100% - 24px), 820px);
  }

  .guide-ending__title {
    font-size: calc(44.8px * var(--sg-heading-scale, 1)); /* 2.8rem */
  }
}

@media (max-width: 700px) {
  .sahtain-guide-page {
    --sg-heading-scale: var(--sg-heading-scale-m, 1);
    --sg-text-scale: var(--sg-text-scale-m, 1);
    --sg-accent-scale: var(--sg-accent-scale-m, 1);
    --sg-btn-scale: var(--sg-btn-scale-m, 1);
    --sg-heading-lh: var(--sg-heading-lh-m, 1);
    --sg-text-lh: var(--sg-text-lh-m, 1);
    --sg-accent-lh: var(--sg-accent-lh-m, 1);
    --sg-btn-lh: var(--sg-btn-lh-m, 1);
  }
}
