/* V16.5 — projects archive, project studies and reliable core archive navigation */
:root {
  --als-v165-green: #004e29;
  --als-v165-green-2: #08683a;
  --als-v165-deep: #064f2c;
  --als-v165-gold: #c59e41;
  --als-v165-gold-soft: #fed266;
  --als-v165-surface: #fbf9f8;
  --als-v165-ivory: #faf9f6;
  --als-v165-sand: #f2ebe1;
  --als-v165-soft: #f6f3f2;
  --als-v165-line: #bfc9be;
  --als-v165-text: #1b1c1c;
  --als-v165-muted: #3f4941;
  --als-v165-shadow: 0 14px 38px rgba(90, 67, 0, .08);
}

.als-v165-projects-page,
.als-v165-project-single,
.als-v165-solution-single {
  background: var(--als-v165-surface);
  color: var(--als-v165-text);
  font-family: "IBM Plex Sans Arabic", Inter, sans-serif;
  overflow: clip;
}

/* The four core menu links remain readable and clearly active. */
.als-v16-main-nav__list > li.current-menu-item > a,
.als-v16-mobile-menu > li.current-menu-item > a {
  color: var(--als-v165-green-2) !important;
  font-weight: 700;
}
.als-v16-main-nav__list > li.current-menu-item > a::after {
  background: var(--als-v165-green-2);
  bottom: -9px;
  content: "";
  height: 2px;
  inset-inline: 0;
  position: absolute;
}
.als-v16-main-nav__list > li > a { position: relative; }

/* Projects hero */
.als-v165-project-hero {
  align-items: center;
  display: grid;
  gap: clamp(34px, 5vw, 76px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 610px;
  padding-block: clamp(42px, 6vw, 88px);
}
.als-v165-project-hero__content > span {
  color: var(--als-v165-gold);
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.als-v165-project-hero__content h1 {
  color: var(--als-v165-deep);
  font-size: clamp(42px, 4.7vw, 68px);
  letter-spacing: -.025em;
  line-height: 1.15;
  margin: 0 0 22px;
}
.als-v165-project-hero__content p {
  color: var(--als-v165-muted);
  font-size: 18px;
  line-height: 1.85;
  margin: 0 0 30px;
  max-width: 680px;
}
.als-v165-project-hero__content > div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.als-v165-project-hero__media {
  border-radius: 18px;
  box-shadow: var(--als-v165-shadow);
  height: clamp(390px, 40vw, 520px);
  overflow: hidden;
}
.als-v165-project-hero__media img {
  height: 100%;
  object-fit: cover;
  transition: transform .75s ease;
  width: 100%;
}
.als-v165-project-hero__media:hover img { transform: scale(1.04); }

/* Proof */
.als-v165-proof {
  background: var(--als-v165-sand);
  padding-block: clamp(72px, 8vw, 120px);
}
.als-v165-proof-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.als-v165-proof-grid article {
  align-items: center;
  background: var(--als-v165-surface);
  border: 1px solid rgba(191, 201, 190, .6);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(90, 67, 0, .04);
  display: flex;
  flex-direction: column;
  min-height: 255px;
  padding: 30px 24px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.als-v165-proof-grid article:hover {
  box-shadow: var(--als-v165-shadow);
  transform: translateY(-4px);
}
.als-v165-proof-grid svg { color: var(--als-v165-gold); }
.als-v165-proof-grid h3 {
  color: var(--als-v165-deep);
  font-size: 23px;
  line-height: 1.35;
  margin: 17px 0 9px;
}
.als-v165-proof-grid p {
  color: var(--als-v165-muted);
  line-height: 1.75;
  margin: 0;
}

/* Featured project */
.als-v165-featured-project {
  background: var(--als-v165-soft);
  border: 1px solid rgba(191, 201, 190, .55);
  border-radius: 20px;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, .85fr);
  overflow: hidden;
}
.als-v165-featured-project__gallery { padding: 18px; }
.als-v165-featured-project__gallery .is-main {
  border-radius: 14px;
  height: 400px;
  object-fit: cover;
  width: 100%;
}
.als-v165-featured-project__gallery > div {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
  margin-top: 14px;
}
.als-v165-featured-project__gallery > div img {
  border-radius: 12px;
  height: 165px;
  object-fit: cover;
  width: 100%;
}
.als-v165-featured-project__content {
  align-self: center;
  padding: clamp(30px, 5vw, 64px);
}
.als-v165-project-chip {
  align-items: center;
  background: var(--als-v165-sand);
  border-radius: 999px;
  color: var(--als-v165-green);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 7px;
  padding: 8px 13px;
}
.als-v165-featured-project__content h2 {
  color: var(--als-v165-deep);
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.25;
  margin: 20px 0 13px;
}
.als-v165-featured-project__content > p {
  color: var(--als-v165-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}
.als-v165-featured-project dl {
  background: #fff;
  border: 1px solid rgba(191, 201, 190, .5);
  border-radius: 14px;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 22px;
  padding: 22px;
}
.als-v165-featured-project dl div { min-width: 0; }
.als-v165-featured-project dt {
  color: var(--als-v165-text);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}
.als-v165-featured-project dd {
  color: var(--als-v165-muted);
  line-height: 1.55;
  margin: 0;
}
.als-v165-project-results { margin-bottom: 24px; }
.als-v165-project-results strong { color: var(--als-v165-deep); }
.als-v165-project-results ul {
  color: var(--als-v165-muted);
  line-height: 1.85;
  margin: 9px 0 0;
  padding-inline-start: 22px;
}

/* Filters and cards */
.als-v165-directory { background: #fff; }
.als-v165-project-filters {
  align-items: end;
  background: var(--als-v165-soft);
  border: 1px solid rgba(191, 201, 190, .5);
  border-radius: 15px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr) auto;
  margin-bottom: 34px;
  padding: 20px;
}
.als-v165-project-filters label { display: grid; gap: 7px; }
.als-v165-project-filters label > span {
  color: var(--als-v165-text);
  font-size: 13px;
  font-weight: 700;
}
.als-v165-project-filters select {
  appearance: none;
  background: #fff;
  border: 1px solid rgba(111, 122, 112, .55);
  border-radius: 9px;
  color: var(--als-v165-muted);
  font: inherit;
  min-height: 46px;
  padding: 8px 12px;
  width: 100%;
}
.als-v165-project-filters select:focus {
  border-color: var(--als-v165-green-2);
  box-shadow: 0 0 0 3px rgba(8, 104, 58, .12);
  outline: 0;
}
.als-v165-project-filters button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--als-v165-green);
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  gap: 7px;
  min-height: 46px;
  padding: 8px 10px;
}
.als-v165-project-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.als-v165-project-grid > article {
  background: var(--als-v165-soft);
  border: 1px solid rgba(191, 201, 190, .55);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
}
.als-v165-project-grid > article:hover {
  box-shadow: var(--als-v165-shadow);
  transform: translateY(-4px);
}
.als-v165-project-card__image { height: 230px; overflow: hidden; }
.als-v165-project-card__image img {
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
  width: 100%;
}
.als-v165-project-grid > article:hover .als-v165-project-card__image img { transform: scale(1.055); }
.als-v165-project-grid > article > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}
.als-v165-project-grid > article > div > span {
  align-self: flex-start;
  background: rgba(8, 104, 58, .08);
  border-radius: 7px;
  color: var(--als-v165-green-2);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 9px;
}
.als-v165-project-grid h3 {
  color: var(--als-v165-deep);
  font-size: 25px;
  line-height: 1.35;
  margin: 14px 0 9px;
}
.als-v165-project-grid h3 a { color: inherit; text-decoration: none; }
.als-v165-project-grid p {
  color: var(--als-v165-muted);
  line-height: 1.75;
  margin: 0 0 16px;
}
.als-v165-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.als-v165-project-tags b {
  background: #fff;
  border: 1px solid rgba(191, 201, 190, .65);
  border-radius: 7px;
  color: var(--als-v165-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 9px;
}
.als-v165-project-grid footer {
  align-items: center;
  border-top: 1px solid rgba(191, 201, 190, .55);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 17px;
}
.als-v165-project-grid footer small { color: var(--als-v165-muted); font-weight: 600; }
.als-v165-project-grid footer a {
  align-items: center;
  color: var(--als-v165-green-2);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 5px;
  text-decoration: none;
}
.als-v165-no-projects {
  background: var(--als-v165-sand);
  border-radius: 12px;
  color: var(--als-v165-muted);
  padding: 24px;
  text-align: center;
}

/* Method and sectors */
.als-v165-methodology {
  background: var(--als-v165-sand);
  padding-block: clamp(72px, 8vw, 120px);
  text-align: center;
}
.als-v165-methodology ol {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(6, 1fr);
  list-style: none;
  margin: 46px 0 34px;
  padding: 0;
  position: relative;
}
.als-v165-methodology ol::before {
  background: rgba(191, 201, 190, .8);
  content: "";
  height: 2px;
  inset-inline: 7%;
  position: absolute;
  top: 27px;
}
.als-v165-methodology li {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.als-v165-methodology li span {
  align-items: center;
  background: var(--als-v165-green-2);
  border: 5px solid var(--als-v165-sand);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 18px;
  font-weight: 700;
  height: 56px;
  justify-content: center;
  width: 56px;
}
.als-v165-methodology li strong { line-height: 1.5; max-width: 170px; }
.als-v165-sector-links {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}
.als-v165-sector-links a {
  align-items: center;
  background: var(--als-v165-soft);
  border: 1px solid rgba(191, 201, 190, .55);
  border-radius: 14px;
  color: var(--als-v165-green);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 155px;
  justify-content: center;
  padding: 22px;
  text-align: center;
  text-decoration: none;
  transition: background .25s ease, transform .25s ease;
}
.als-v165-sector-links a:hover { background: var(--als-v165-sand); transform: translateY(-3px); }
.als-v165-project-cta {
  background: var(--als-v165-green);
  color: #fff;
  padding-block: clamp(76px, 8vw, 120px);
  text-align: center;
}
.als-v165-project-cta h2 {
  color: #fff;
  font-size: clamp(34px, 4vw, 54px);
  margin: 0 0 16px;
}
.als-v165-project-cta p {
  color: rgba(255, 255, 255, .82);
  font-size: 18px;
  line-height: 1.8;
  margin: 0 auto 30px;
  max-width: 820px;
}
.als-v165-project-cta > div > div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.als-v165-project-cta > div > div > a:not(.als-v164-btn) { color: #fff; font-weight: 700; }

/* Single project */
.als-v165-project-single__hero {
  align-items: end;
  color: #fff;
  display: flex;
  min-height: 620px;
  overflow: hidden;
  position: relative;
}
.als-v165-project-single__hero > img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}
.als-v165-project-single__hero > span {
  background: linear-gradient(0deg, rgba(0, 31, 17, .95), rgba(0, 31, 17, .18));
  inset: 0;
  position: absolute;
}
.als-v165-project-single__hero > div {
  padding-bottom: 70px;
  position: relative;
  z-index: 1;
}
.als-v165-project-single__hero b { color: var(--als-v165-gold-soft); }
.als-v165-project-single__hero h1 {
  color: #fff;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.16;
  margin: 12px 0 18px;
  max-width: 920px;
}
.als-v165-project-single__hero p {
  color: rgba(255,255,255,.86);
  font-size: 18px;
  line-height: 1.8;
  max-width: 760px;
}
.als-v165-project-single__hero > div > div { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 25px; }
.als-v165-project-single__layout {
  align-items: start;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) 360px;
}
.als-v165-project-single__layout .als-v164-rich-content { margin: 0; max-width: none; }
.als-v165-project-single__layout aside {
  background: #fff;
  border: 1px solid rgba(191, 201, 190, .55);
  border-radius: 16px;
  box-shadow: var(--als-v165-shadow);
  padding: 27px;
  position: sticky;
  top: 115px;
}
.als-v165-project-single__layout aside h2 { color: var(--als-v165-deep); margin-top: 0; }
.als-v165-project-single__layout aside dl { display: grid; gap: 14px; margin: 0 0 24px; }
.als-v165-project-single__layout aside dl div { border-bottom: 1px solid rgba(191,201,190,.45); padding-bottom: 12px; }
.als-v165-project-single__layout aside dt { color: var(--als-v165-muted); font-size: 12px; font-weight: 700; }
.als-v165-project-single__layout aside dd { color: var(--als-v165-text); font-weight: 600; margin: 4px 0 0; }
.als-v165-project-single__layout aside h3 { color: var(--als-v165-deep); }
.als-v165-project-single__layout aside .als-v164-btn { margin-top: 24px; width: 100%; }

/* More complete single solution page */
.als-v165-solution-single__intro {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 340px;
}
.als-v165-solution-single__side {
  background: var(--als-v165-sand);
  border-radius: 16px;
  padding: 26px;
  position: sticky;
  top: 116px;
}
.als-v165-solution-single__side h2 { color: var(--als-v165-deep); margin-top: 0; }
.als-v165-solution-single__side ul { line-height: 1.9; padding-inline-start: 20px; }
.als-v165-solution-single__side .als-v164-btn { width: 100%; }
.als-v165-solution-steps {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}
.als-v165-solution-steps article {
  background: #fff;
  border: 1px solid rgba(191,201,190,.55);
  border-radius: 14px;
  padding: 24px;
}
.als-v165-solution-steps span {
  align-items: center;
  background: var(--als-v165-green-2);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-weight: 700;
  height: 42px;
  justify-content: center;
  margin-bottom: 14px;
  width: 42px;
}
.als-v165-solution-steps h3 { color: var(--als-v165-deep); margin: 0; }

@media (max-width: 1120px) {
  .als-v165-proof-grid { grid-template-columns: repeat(2, 1fr); }
  .als-v165-featured-project { grid-template-columns: 1fr; }
  .als-v165-featured-project__content { padding-top: 30px; }
  .als-v165-project-grid { grid-template-columns: repeat(2, 1fr); }
  .als-v165-project-filters { grid-template-columns: repeat(2, 1fr); }
  .als-v165-methodology ol { grid-template-columns: repeat(3, 1fr); }
  .als-v165-methodology ol::before { display: none; }
  .als-v165-solution-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .als-v165-project-hero { grid-template-columns: 1fr; }
  .als-v165-project-hero__media { order: -1; }
  .als-v165-project-single__layout,
  .als-v165-solution-single__intro { grid-template-columns: 1fr; }
  .als-v165-project-single__layout aside,
  .als-v165-solution-single__side { position: static; }
  .als-v165-sector-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .als-v165-project-hero { min-height: 0; padding-block: 38px 65px; }
  .als-v165-project-hero__media { height: 330px; }
  .als-v165-project-hero__content h1 { font-size: 38px; }
  .als-v165-project-hero__content > div { flex-direction: column; }
  .als-v165-project-hero__content > div a { width: 100%; }
  .als-v165-proof-grid,
  .als-v165-project-grid,
  .als-v165-project-filters,
  .als-v165-methodology ol,
  .als-v165-solution-steps { grid-template-columns: 1fr; }
  .als-v165-featured-project__gallery .is-main { height: 300px; }
  .als-v165-featured-project__gallery > div img { height: 120px; }
  .als-v165-featured-project dl { grid-template-columns: 1fr; }
  .als-v165-project-grid footer { align-items: flex-start; flex-direction: column; }
  .als-v165-project-card__image { height: 215px; }
  .als-v165-methodology li {
    align-items: center;
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(191,201,190,.5);
    border-radius: 12px;
    flex-direction: row;
    padding: 12px;
    text-align: start;
  }
  .als-v165-methodology li span { border-width: 0; flex: 0 0 48px; height: 48px; width: 48px; }
  .als-v165-sector-links { gap: 12px; }
  .als-v165-sector-links a { min-height: 135px; padding: 15px; }
  .als-v165-project-cta > div > div { flex-direction: column; }
  .als-v165-project-cta > div > div a { width: 100%; }
  .als-v165-project-single__hero { min-height: 540px; }
  .als-v165-project-single__hero > div { padding-bottom: 45px; }
}
