:root {
  --ink: #17231c;
  --forest: #123d2c;
  --paper: #f2eee4;
  --lime: #c8f54a;
  --orange: #963817;
  --muted: #4c574f;
  --line: #c9c7b9;
  --card: #fffdf8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, sans-serif;
  text-align: start;
}

[lang^="ar"] body {
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.7;
}

[lang^="ar"] h1,
[lang^="ar"] h2,
[lang^="ar"] h3 {
  letter-spacing: normal;
  line-height: 1.3;
}

[lang^="ar"] .eyebrow,
[lang^="ar"] .card-year,
[lang^="ar"] .nav-link,
[lang^="ar"] .scroll-link {
  letter-spacing: normal;
}

[lang^="ar"] .hero-copy,
[lang^="ar"] .section-heading,
[lang^="ar"] .priority-card,
[lang^="ar"] .timeline-card,
[lang^="ar"] .subscribe-copy,
[lang^="ar"] .subscribe-form,
[lang^="ar"] .site-footer {
  text-align: start;
}

.subscribe-form input[type="email"] {
  direction: ltr;
  text-align: left;
}

a,
button,
input {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  z-index: 10;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  min-height: 650px;
  padding: 1.4rem 5vw 5rem;
  color: var(--paper);
  background: var(--forest);
}

.site-nav {
  display: flex;
  align-items: center;
  max-width: 1280px;
  margin-inline: auto;
  padding-block-end: 1.2rem;
  border-block-end: 1px solid rgba(242, 238, 228, 0.3);
}

.brand {
  display: block;
  width: 95px;
}

.brand img {
  display: block;
  width: 100%;
}

.nav-note {
  margin-inline-start: auto;
  color: #d9ded9;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-inline-start: 2rem;
}

.direction-toggle {
  padding: 0.55rem 0.7rem;
  color: var(--paper);
  background: transparent;
  border: 1px solid rgba(242, 238, 228, 0.65);
  border-radius: 0.2rem;
  cursor: pointer;
  font-size: 0.72rem;
}

.direction-toggle:hover {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
}

.nav-link {
  color: var(--lime);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-link span {
  display: inline-block;
  margin-inline-start: 0.35rem;
  font-size: 1.15rem;
}

.btn-learn span {
  display: inline-block;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  min-height: 540px;
  margin-inline: auto;
  gap: 5rem;
}

.hero-copy {
  flex: 1 1 55%;
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--lime);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  font-weight: 400;
}

h1 {
  max-width: 760px;
  margin: 0 0 1.7rem;
  font-size: clamp(3.9rem, 8vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

h1 em,
h2 em {
  color: var(--lime);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-intro {
  max-width: 430px;
  color: #e1e5e1;
  font-size: 1.05rem;
  line-height: 1.65;
}

.scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-block-start: 1.5rem;
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: var(--forest);
  background: var(--lime);
  border-radius: 50%;
  font-size: 1.2rem;
}

.hero-visual {
  position: relative;
  flex: 0 1 410px;
  padding-block: 2.3rem 3.5rem;
  padding-inline-end: 2.3rem;
}

.hero-image-frame {
  overflow: hidden;
  border: 1px solid rgba(242, 238, 228, 0.65);
}

.hero-image-frame img {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.08);
}

.hero-caption {
  position: absolute;
  inset-inline-end: 0;
  inset-block-end: 0;
  margin: 0;
  color: var(--lime);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.2;
}

.hero-stamp {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  color: var(--paper);
  background: var(--orange);
  border-radius: 50%;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(9deg);
}

.hero-stamp strong {
  font-size: 1.25rem;
}

main {
  padding-block-end: 5rem;
}

.priorities-section,
.timeline-section {
  padding: 6rem 5vw 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto 2.5rem;
  gap: 3rem;
}

.section-heading .eyebrow {
  margin-block-end: 1rem;
  color: var(--orange);
}

h2 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

h2 em {
  color: var(--forest);
}

.section-summary {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.priorities,
.timeline {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  max-width: 1280px;
  margin-inline: auto;
  padding-block-end: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-padding-inline: 1rem;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-color: var(--orange) transparent;
  scrollbar-width: thin;
}

.timeline::-webkit-scrollbar {
  height: 0.55rem;
}

.timeline::-webkit-scrollbar-track {
  background: rgba(23, 35, 28, 0.08);
}

.timeline::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 1rem;
}

.priority-card {
  display: flex;
  flex-direction: column;
  padding: 1.7rem;
  background: var(--card);
  border: 1px solid var(--line);
}

.priority-card h3 {
  display: flex;
  align-items: center;
  margin: 0 0 1rem;
  gap: 0.75rem;
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 400;
}

.heading-icon {
  flex: 0 0 1.8rem;
  width: 1.8rem;
  height: 1.8rem;
  color: var(--orange);
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.priority-card > p {
  flex: 1;
  margin-block-end: 1.5rem;
  color: var(--muted);
  line-height: 1.6;
}

.priority-details {
  max-width: 900px;
  margin: 3rem auto 0;
}

.priority-details-title {
  margin: 0 0 1rem;
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 400;
}

.accordion {
  --bs-accordion-color: var(--ink);
  --bs-accordion-bg: var(--card);
  --bs-accordion-btn-color: var(--forest);
  --bs-accordion-active-color: var(--forest);
  --bs-accordion-active-bg: #e8eddf;
  --bs-accordion-border-color: var(--line);
}

.accordion-button:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 0.2rem rgba(18, 61, 44, 0.25);
}

.accordion-body {
  color: var(--muted);
  line-height: 1.6;
}

.accordion-body a {
  display: inline-block;
  margin-inline-start: 0.25rem;
  color: var(--orange);
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.btn-learn,
.btn-subscribe {
  align-self: flex-start;
  padding: 0.7rem 1rem;
  color: var(--paper);
  background: var(--forest);
  border: 2px solid var(--forest);
  border-radius: 0;
  font-weight: 700;
  text-decoration: none;
}

.btn-learn:hover,
.btn-subscribe:hover {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--forest);
}

.btn-learn span {
  margin-inline-start: 0.5rem;
}

.timeline-section {
  padding-block-start: 7rem;
}

.timeline-card {
  position: relative;
  display: flex;
  flex: 0 0 285px;
  flex-direction: column;
  min-height: 445px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease;
  scroll-margin-block-start: 1.5rem;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.timeline-card:nth-child(3n + 2) {
  transform: translateY(1.5rem);
}

.timeline-card:hover {
  border-color: var(--orange);
  transform: translateY(-0.25rem);
}

.timeline-card:nth-child(3n + 2):hover {
  transform: translateY(1.25rem);
}

.card-image {
  height: 185px;
  overflow: hidden;
  border-block-end: 1px solid var(--line);
}

.card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
  transition: transform 0.3s ease;
}

.timeline-card:hover .card-image img {
  transform: scale(1.03);
}

.card-content {
  padding: 1.4rem;
}

.card-year {
  display: flex;
  align-items: center;
  margin: 0 0 0.8rem;
  gap: 0.6rem;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.card-year::after {
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
}

.card-content h3 {
  margin: 0 0 0.8rem;
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  line-height: 1.05;
  font-weight: 400;
}

.card-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.subscribe-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 7rem auto 0;
  padding: 3rem;
  gap: 3rem;
  color: var(--paper);
  background: var(--forest);
}

.subscribe-copy {
  flex: 1 1 45%;
}

.subscribe-copy .eyebrow {
  margin-block-end: 0.8rem;
}

.subscribe-copy h2 {
  margin-block-end: 1rem;
  font-size: clamp(2.5rem, 4vw, 4rem);
}

.subscribe-copy h2 em {
  color: var(--lime);
}

.subscribe-copy > p:last-child {
  max-width: 380px;
  margin: 0;
  color: #e1e5e1;
  line-height: 1.6;
}

.subscribe-form {
  flex: 1 1 50%;
  max-width: 540px;
}

.subscribe-form label {
  display: block;
  margin-block-end: 0.5rem;
  font-weight: 700;
}

.subscribe-controls {
  display: flex;
  gap: 0.7rem;
}

.subscribe-controls .form-control {
  min-height: 48px;
  border-radius: 0;
}

.btn-subscribe {
  flex: 0 0 auto;
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
}

.btn-subscribe:hover {
  color: var(--paper);
  background: var(--orange);
  border-color: var(--paper);
}

.form-note,
.form-status {
  margin: 0.7rem 0 0;
  color: #e1e5e1;
  font-size: 0.82rem;
  line-height: 1.5;
}

.form-status:empty {
  display: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 1.7rem 5vw;
  gap: 1rem;
  color: var(--paper);
  background: var(--ink);
  font-size: 0.75rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer .footer-mark {
  color: var(--lime);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.08em;
  text-decoration: none;
}

.footer-mark span {
  font-size: 0.5rem;
  vertical-align: top;
}

/* Logical spacing and start/end alignment keep the page flowing in either direction. */
[dir="rtl"] .hero-stamp {
  transform: rotate(-9deg);
}

[dir="rtl"] .nav-link span,
[dir="rtl"] .btn-learn span {
  transform: scaleX(-1);
}

.site-header a:focus-visible,
.site-header button:focus-visible,
.subscribe-section :focus-visible,
.site-footer a:focus-visible,
.btn-learn:focus-visible {
  outline-color: var(--lime);
}

@media (max-width: 760px) {
  .site-header {
    min-height: 0;
    padding: 1.2rem 1.25rem 3.5rem;
  }

  .nav-note {
    display: none;
  }

  .nav-actions {
    gap: 0.75rem;
    margin-inline-start: auto;
  }

  .direction-toggle {
    max-width: 11rem;
    font-size: 0.66rem;
  }

  .nav-link {
    font-size: 0.65rem;
  }

  .hero-content {
    display: block;
    min-height: 0;
    padding-block-start: 4.5rem;
  }

  h1 {
    font-size: clamp(3.6rem, 15vw, 6rem);
  }

  .hero-intro {
    font-size: 0.98rem;
  }

  .hero-visual {
    max-width: 390px;
    margin: 3.5rem auto 0;
    padding-inline-end: 1.5rem;
  }

  .hero-image-frame img {
    height: 270px;
  }

  .hero-caption {
    font-size: 0.9rem;
  }

  .priorities-section,
  .timeline-section {
    padding: 4.5rem 1.25rem 0;
  }

  .section-heading {
    display: block;
    margin-block-end: 2rem;
  }

  .section-summary {
    margin-block-start: 1.2rem;
  }

  .timeline-section {
    padding-block-start: 5rem;
  }

  .timeline {
    display: block;
    padding-block-end: 1rem;
    padding-inline-start: 1.5rem;
    overflow: visible;
    border-inline-start: 1px solid var(--line);
  }

  .timeline-card,
  .timeline-card:nth-child(3n + 2) {
    min-height: 0;
    margin-block-end: 1.4rem;
    transform: none;
  }

  .timeline-card:hover,
  .timeline-card:nth-child(3n + 2):hover {
    transform: translateX(0.3rem);
  }

  .timeline-card::before {
    position: absolute;
    inset-block-start: 1.3rem;
    inset-inline-start: -1.9rem;
    width: 0.75rem;
    height: 0.75rem;
    background: var(--lime);
    border: 4px solid var(--paper);
    border-radius: 50%;
    content: "";
  }

  .card-image {
    height: 170px;
  }

  .subscribe-section {
    display: block;
    margin: 5rem 1.25rem 0;
    padding: 2rem 1.4rem;
  }

  @media (max-width: 760px) {
    [dir="rtl"] .timeline {
      padding-inline-start: 0;
      padding-inline-end: 1.5rem;
      border-inline-start: 0;
      border-inline-end: 1px solid var(--line);
    }

    [dir="rtl"] .timeline-card:hover,
    [dir="rtl"] .timeline-card:nth-child(3n + 2):hover {
      transform: translateX(-0.3rem);
    }
  }

  .subscribe-form {
    margin-block-start: 2rem;
  }

  .site-footer {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .site-nav {
    flex-wrap: wrap;
    gap: 0.7rem;
  }

  .brand {
    width: 76px;
  }

  .nav-actions {
    flex: 1;
    gap: 0.5rem;
  }

  .direction-toggle {
    max-width: 9rem;
  }

  .nav-link {
    max-width: 5.2rem;
    text-align: center;
  }

  .subscribe-controls {
    flex-direction: column;
  }

  .btn-subscribe {
    align-self: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
