.guide-hero {
  padding-bottom: 4rem;
}

.guide-hero .lead {
  max-width: 720px;
}

.guide-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  max-width: 900px;
  margin: 2rem auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.guide-overview li {
  min-height: 112px;
  padding: 1rem;
  border: 1px solid rgba(22, 101, 52, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-950);
  box-shadow: 0 7px 18px rgba(20, 83, 45, 0.08);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

.guide-overview span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.55rem;
  border-radius: 10px;
  background: var(--green-800);
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 3px 0 var(--green-950);
}

.guide-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0 0;
  padding: 0 !important;
  list-style: none;
}

.guide-checklist li {
  position: relative;
  margin: 0;
  padding: 0.9rem 0.9rem 0.9rem 2.7rem;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--green-50);
}

.guide-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0.9rem;
  top: 0.9rem;
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--green-800);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.guide-actions .button {
  border-color: var(--green-800);
  background: var(--green-800);
  color: #fff;
  box-shadow: 0 4px 0 var(--green-950);
}

.guide-actions .button:hover {
  background: var(--green-700);
  color: #fff;
}

.guide-actions .button.secondary {
  background: #fff;
  color: var(--green-900);
}

.guide-actions .button.secondary:hover {
  background: var(--green-50);
  color: var(--green-900);
}

.instruction-list {
  counter-reset: guide-step;
  margin: 1.1rem 0 1.3rem;
  padding: 0 !important;
  list-style: none;
}

.instruction-list li {
  position: relative;
  min-height: 2.6rem;
  margin: 0;
  padding: 0.1rem 0 1rem 3.1rem;
}

.instruction-list li::before {
  counter-increment: guide-step;
  content: counter(guide-step);
  position: absolute;
  left: 0;
  top: -0.08rem;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 2px solid var(--navy);
  border-radius: 12px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 900;
  box-shadow: 0 3px 0 rgba(15, 37, 64, 0.2);
}

.guide-figure {
  margin: 1.5rem 0 0;
  padding: 0.8rem;
  border: 1px solid var(--navy-line);
  border-radius: 22px;
  background: #f7faf7;
  box-shadow: 0 10px 24px rgba(15, 37, 64, 0.08);
}

.guide-figure img {
  display: block;
  width: 100%;
  border: 1px solid rgba(15, 37, 64, 0.12);
  border-radius: 15px;
  background: #fff;
}

.guide-figure > a,
.guide-figure--phone > a {
  display: block;
  border-radius: 15px;
  line-height: 0;
}

.guide-figure--phone > a {
  width: min(100%, 290px);
  margin: 0 auto;
  border-radius: 27px;
}

.guide-figure figcaption {
  padding: 0.8rem 0.3rem 0.15rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.guide-figure figcaption strong {
  color: var(--green-950);
}

.guide-figure--phone {
  display: grid;
  grid-template-columns: minmax(190px, 290px) minmax(0, 1fr);
  gap: 1.35rem;
  align-items: center;
  padding: 1.25rem;
}

.guide-figure--phone img {
  width: min(100%, 290px);
  margin: 0 auto;
  border: 7px solid var(--navy);
  border-radius: 27px;
  box-shadow: 0 12px 30px rgba(15, 37, 64, 0.2);
}

.guide-figure--phone figcaption {
  padding: 0;
  font-size: 0.95rem;
}

.guide-figure--phone figcaption ol {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
}

.privacy-note {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid #bfdbfe;
  border-radius: 15px;
  background: #eff6ff;
  color: #1e3a5f;
  font-size: 0.9rem;
}

.privacy-note .privacy-icon {
  flex: 0 0 auto;
  font-size: 1.2rem;
}

.success-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem;
  border: 1px solid #86efac;
  border-radius: 18px;
  background: linear-gradient(135deg, #f0fdf4, #fff);
}

.success-box .success-icon {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 14px;
  background: var(--green-800);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 4px 0 var(--green-950);
}

.success-box h3,
.success-box p {
  margin: 0;
}

.success-box p {
  margin-top: 0.35rem;
}

.guide-faq details p {
  padding-right: 1rem;
}

.help-hub-hero {
  padding-bottom: 4.3rem;
}

.help-hub-hero .lead {
  max-width: 760px;
}

.help-quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  width: min(1050px, 100%);
  margin: 2rem auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.help-quick-links li {
  margin: 0;
}

.help-topic-card {
  display: flex;
  flex-direction: column;
  min-height: 178px;
  height: 100%;
  padding: 1rem;
  border: 1px solid rgba(22, 101, 52, 0.2);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--green-950);
  text-decoration: none;
  box-shadow: 0 7px 0 rgba(15, 37, 64, 0.06), 0 14px 26px rgba(20, 83, 45, 0.08);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.help-topic-card:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 101, 52, 0.42);
  color: var(--green-950);
  box-shadow: 0 9px 0 rgba(15, 37, 64, 0.06), 0 19px 32px rgba(20, 83, 45, 0.13);
}

.help-topic-card .topic-number {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 0.7rem;
  border: 2px solid var(--navy);
  border-radius: 12px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: 0 3px 0 rgba(15, 37, 64, 0.18);
}

.help-topic-card strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.05rem;
  line-height: 1.25;
}

.help-topic-card small {
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 700;
  line-height: 1.4;
}

.help-topic-card .topic-arrow {
  margin-top: auto;
  padding-top: 0.65rem;
  color: var(--green-800);
  font-weight: 900;
}

.help-hub-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

.help-hub-intro {
  max-width: 850px;
  margin: 0 auto 2rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--navy-line);
  border-inline-start: 6px solid var(--green-700);
  border-radius: 22px;
  background: linear-gradient(135deg, var(--green-50), #fff);
  box-shadow: var(--shadow);
}

.help-hub-intro p {
  margin: 0;
}

.help-topic-list {
  display: grid;
  gap: 1.1rem;
  max-width: 900px;
  margin: 0 auto;
}

.help-topic-section {
  scroll-margin-top: 100px;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--navy-line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 22px rgba(16, 185, 129, 0.09), inset 0 2px 0 rgba(255, 255, 255, 0.9);
}

.help-topic-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  margin-bottom: 0.7rem;
}

.help-topic-heading .topic-number {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border: 2px solid var(--navy);
  border-radius: 14px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 900;
  box-shadow: 0 3px 0 rgba(15, 37, 64, 0.18);
}

.help-topic-heading h2 {
  margin: 0;
  color: var(--green-950);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.help-topic-section h3 {
  margin: 1.25rem 0 0.45rem;
  font-size: 1.13rem;
}

.help-topic-section p {
  margin: 0.65rem 0;
}

.help-topic-section .instruction-list {
  margin-bottom: 0.4rem;
}

.help-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.help-fact {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--green-50);
}

.help-fact strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--green-950);
}

.help-fact span {
  color: var(--muted);
  font-size: 0.88rem;
}

.help-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.help-inline-actions .button {
  border-color: var(--green-800);
  background: var(--green-800);
  color: #fff;
  box-shadow: 0 4px 0 var(--green-950);
}

.help-inline-actions .button:hover {
  background: var(--green-700);
  color: #fff;
}

.help-inline-actions .button.secondary {
  background: #fff;
  color: var(--green-900);
}

.help-inline-actions .button.secondary:hover {
  background: var(--green-50);
  color: var(--green-900);
}

.help-distinction {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #fde68a;
  border-radius: 15px;
  background: #fffbeb;
  color: #713f12;
}

.help-support-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  max-width: 900px;
  margin: 1.2rem auto 0;
  padding: 1.25rem 1.4rem;
  border: 2px solid var(--navy);
  border-radius: 22px;
  background: var(--green-950);
  color: #fff;
  box-shadow: 0 7px 0 rgba(15, 37, 64, 0.25);
}

.help-support-box h2,
.help-support-box p {
  margin: 0;
}

.help-support-box h2 {
  font-size: 1.35rem;
}

.help-support-box p {
  margin-top: 0.25rem;
  color: #dcfce7;
}

.help-support-box a {
  color: #fff;
}

.help-support-box .button {
  white-space: nowrap;
}

html[dir="rtl"] .guide-overview,
html[dir="rtl"] .help-quick-links {
  text-align: right;
}

html[dir="rtl"] .guide-checklist li {
  padding-right: 2.7rem;
  padding-left: 0.9rem;
}

html[dir="rtl"] .guide-checklist li::before {
  right: 0.9rem;
  left: auto;
}

html[dir="rtl"] .instruction-list li {
  padding-right: 3.1rem;
  padding-left: 0;
}

html[dir="rtl"] .instruction-list li::before {
  right: 0;
  left: auto;
}

html[dir="rtl"] .guide-figure--phone figcaption ol {
  padding-right: 1.2rem;
  padding-left: 0;
}

html[dir="rtl"] .guide-faq details p {
  padding-right: 0;
  padding-left: 1rem;
}

html[dir="rtl"] .help-topic-card strong {
  font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
}

html[dir="rtl"] .topic-arrow {
  transform: scaleX(-1);
  transform-origin: center;
  text-align: left;
}

@media (max-width: 780px) {
  .guide-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .help-quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-figure--phone {
    grid-template-columns: 1fr;
  }

  .guide-figure--phone figcaption {
    text-align: left;
  }

  html[dir="rtl"] .guide-figure--phone figcaption {
    text-align: right;
  }

  .help-support-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .guide-overview,
  .guide-checklist,
  .help-quick-links,
  .help-fact-grid {
    grid-template-columns: 1fr;
  }

  .guide-overview li {
    min-height: auto;
  }

  .guide-figure {
    margin-inline: -0.35rem;
    padding: 0.45rem;
    border-radius: 18px;
  }

  .guide-figure--phone {
    margin-inline: 0;
    padding: 1rem;
  }

  .help-topic-card {
    min-height: auto;
  }

  .help-hub-shell {
    width: min(100% - 1rem, 1120px);
  }

  .help-topic-section {
    padding: 1.2rem;
    border-radius: 21px;
  }
}

@media (max-width: 380px) {
  .nav-wrap {
    padding-inline: 0.45rem;
    gap: 0.25rem;
  }

  .brand img {
    width: 120px;
  }

  .nav-lang {
    gap: 0.22rem;
    font-size: 0.7rem;
  }

  .nav-cta {
    padding: 0.5rem 0.55rem;
    font-size: 0.72rem;
  }
}

@media print {
  .guide-actions,
  .help-quick-links,
  .help-support-box,
  .help-inline-actions {
    display: none;
  }
}
