/*
 * Afghanistan transit module v16
 * Integrated into the SLC homepage on 2026-08-29.
 * All selectors and custom properties are scoped to this module.
 */

.afg-section {
  --afg-page-bg:
    radial-gradient(circle at 84% 12%, rgb(var(--slc-ref-accent-light-rgb, 104 183 222) / 12%), transparent 30rem),
    radial-gradient(circle at 12% 88%, rgb(var(--slc-ref-accent-rgb, 46 134 189) / 6.5%), transparent 32rem),
    linear-gradient(
      180deg,
      var(--slc-color-canvas-top, #f8fcff) 0%,
      var(--slc-color-canvas, #edf5fb) 100%
    );
  --afg-surface: var(--slc-color-surface, #ffffff);
  --afg-surface-strong: var(--slc-color-surface-strong, #d7e9f5);
  --afg-text: var(--slc-color-ink-strong, #12324d);
  --afg-muted: var(--slc-color-ink-muted, #496b82);
  --afg-accent: var(--slc-color-action, #176a9f);
  --afg-accent-deep: var(--slc-color-action-hover, #125681);
  --afg-on-accent: var(--slc-color-on-action, #ffffff);
  --afg-outline: var(--slc-color-line-strong, rgb(46 134 189 / 34%));
  --afg-badge-blue: var(--slc-color-action, #176a9f);
  --afg-badge-blue-rgb: var(--slc-ref-accent-rgb, 46 134 189);
  --afg-shadow-rgb: var(--slc-ref-shadow-rgb, 30 83 115);
  --afg-tag-background: var(--slc-component-regional-badge-background);
  --afg-tag-shadow: var(--slc-component-regional-badge-shadow);
  --afg-tag-sheen: var(--slc-component-regional-badge-sheen);
  --afg-container-max: 1380px;
  --afg-font-ui: var(--slc-site-font, "Vazirmatn", "IRANSansX", Tahoma, Arial, sans-serif);

  isolation: isolate;
  overflow-x: hidden;
  overflow-x: clip;
  scroll-margin-top: 96px;
  background: var(--afg-page-bg);
  color: var(--afg-text);
  font-family: var(--afg-font-ui);
}

.afg-section,
.afg-section *,
.afg-section *::before,
.afg-section *::after {
  box-sizing: border-box;
}

.afg-section .afg-container {
  width: min(calc(100% - clamp(32px, 4.1667vw, 64px)), var(--afg-container-max));
  margin-inline: auto;
  padding-block: clamp(72px, 6.6vw, 102px) clamp(76px, 6.1vw, 94px);
  display: grid;
  grid-template-columns: clamp(500px, 41.667vw, 640px) minmax(0, 1fr);
  column-gap: clamp(60px, 5vw, 92px);
  align-items: start;
  direction: ltr;
}

.afg-section .afg-visual {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 640 / 720;
  overflow: visible;
  direction: ltr;
}

.afg-section .afg-photo {
  position: absolute;
  margin: 0;
  overflow: hidden;
  background: var(--afg-surface-strong);
}

.afg-section .afg-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.afg-section .afg-photo--upper {
  left: 8.28125%;
  top: 0;
  width: 67.96875%;
  height: 70.55556%;
  border-radius: 50% 50% 0 0 / 27% 27% 0 0;
  z-index: 2;
}

.afg-section .afg-photo--upper img {
  object-position: 50% 50%;
}

.afg-section .afg-photo--lower {
  left: 50.46875%;
  top: 55%;
  width: 59.53125%;
  height: 65.69444%;
  border-radius: 0 0 49% 49% / 0 0 41% 41%;
  z-index: 3;
}

.afg-section .afg-photo--lower img {
  object-position: 46% 50%;
}

.afg-section .afg-route-badge {
  position: absolute;
  left: 39.53125%;
  top: 60.83333%;
  width: 20.3125%;
  aspect-ratio: 1;
  z-index: 5;
  border-radius: 50%;
  background: transparent;
  overflow: visible;
}

.afg-section .afg-route-badge__donut,
.afg-section .afg-route-badge__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.afg-section .afg-route-badge__donut {
  z-index: 2;
  overflow: visible;
  filter: drop-shadow(0 3px 0 rgb(var(--afg-shadow-rgb) / 10%));
}

.afg-section .afg-route-badge__donut-path {
  fill: var(--afg-badge-blue);
  fill-rule: evenodd;
}

.afg-section .afg-route-badge__ring {
  z-index: 3;
  overflow: visible;
}

.afg-section .afg-route-badge__ring text {
  font-family: var(--afg-font-ui);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0;
  fill: var(--afg-on-accent);
  direction: rtl;
  unicode-bidi: plaintext;
}

.afg-section .afg-route-badge__core {
  position: absolute;
  inset: 29%;
  z-index: 1;
  border-radius: 50%;
  background: rgb(var(--afg-badge-blue-rgb) / 12%);
  pointer-events: none;
}

.afg-section .afg-content {
  min-width: 0;
  padding-top: 16px;
  direction: rtl;
  text-align: right;
}

.afg-section .afg-eyebrow {
  position: relative;
  isolation: isolate;
  width: 282px;
  max-width: min(282px, 100%);
  height: 52px;
  margin: 0;
  padding: 2px 31px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--afg-tag-background);
  color: var(--afg-text);
  font-family: var(--afg-font-ui);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.012em;
  white-space: nowrap;
}

.afg-section .afg-eyebrow::before {
  content: "";
  position: absolute;
  inset: 8px 4px 5px 28px;
  z-index: -1;
  border-radius: 999px;
  background: var(--afg-tag-shadow);
  filter: blur(7px);
  opacity: 0.78;
  pointer-events: none;
  transform: translateY(12px);
}

.afg-section .afg-eyebrow::after {
  content: "";
  position: absolute;
  inset-block: 1px;
  inset-inline: 1px 32px;
  border-radius: inherit;
  background: var(--afg-tag-sheen);
  pointer-events: none;
}

.afg-section .afg-title {
  max-width: 1160px;
  margin: 22px 0 0;
  color: var(--afg-text);
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 800;
  line-height: 1.82;
}

.afg-section .afg-intro {
  max-width: 1110px;
  margin: 20px 0 0;
  color: var(--afg-muted);
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 400;
  line-height: 2;
}

.afg-section .afg-route-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.25vw, 18px);
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.afg-section .afg-route-pill {
  min-width: 0;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 0.75vw, 12px);
  padding: 0 20px;
  border: 1px solid var(--afg-outline);
  border-radius: 999px;
  background: var(--slc-color-glass, rgb(251 253 255 / 80%));
  color: var(--afg-text);
  font-size: clamp(15px, 1.12vw, 17px);
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  direction: rtl;
}

.afg-section .afg-route-pill::before {
  content: "";
  width: clamp(12px, 0.9vw, 14px);
  aspect-ratio: 1;
  flex: none;
  border: 2px solid var(--afg-surface);
  border-radius: 50%;
  background: var(--afg-accent);
  box-shadow: 0 0 0 1px rgb(var(--afg-shadow-rgb) / 18%);
}

.afg-section .afg-statement {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 28px;
}

.afg-section .afg-statement__led.footer-experience__led {
  --footer-experience-led-size: 0.8rem;
  --footer-experience-led-color: var(--afg-accent);
  --footer-experience-led-rgb: var(--afg-badge-blue-rgb);
  --footer-experience-led-cycle: 2.7s;
  position: relative;
  top: auto;
  left: auto;
  display: block;
  width: var(--footer-experience-led-size);
  height: var(--footer-experience-led-size);
  align-self: center;
  margin: 0 auto;
  transform: none;
}

.afg-section .afg-statement__title {
  margin: 0;
  color: var(--afg-text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.55;
}

.afg-section .afg-services > .why-choose-one {
  width: 100%;
  margin-top: clamp(14px, 1.2vw, 20px);
  direction: ltr;
}

@media (max-width: 1120px) {
  .afg-section .afg-photo--lower {
    top: 39%;
  }

  .afg-section .afg-container {
    grid-template-columns: 1fr;
    row-gap: clamp(38px, 5vw, 52px);
    padding-top: 52px;
    padding-bottom: 64px;
  }

  .afg-section .afg-visual {
    width: min(90.909%, 640px);
    justify-self: center;
    transform: translateX(-5%);
  }

  .afg-section .afg-content {
    width: min(100%, 760px);
    justify-self: center;
    padding-top: 0;
  }

  .afg-section .afg-title {
    max-width: 100%;
    font-size: clamp(15px, 1.8vw, 18px);
  }

  .afg-section .afg-intro {
    max-width: 100%;
  }
}

@media (max-width: 680px) {
  .afg-section {
    scroll-margin-top: 72px;
  }

  .afg-section .afg-container {
    padding-top: 32px;
    padding-bottom: 44px;
  }

  .afg-section .afg-eyebrow {
    width: 238px;
    max-width: 100%;
    height: 46px;
    padding: 2px 24px 0;
    font-size: 15px;
  }

  .afg-section .afg-eyebrow::before {
    inset: 7px 3px 5px 24px;
    filter: blur(6px);
    transform: translateY(10px);
  }

  .afg-section .afg-title {
    margin-top: 18px;
    font-size: 14.5px;
    line-height: 1.9;
  }

  .afg-section .afg-intro {
    margin-top: 16px;
    font-size: 14.5px;
    line-height: 1.95;
  }

  .afg-section .afg-route-pills {
    margin-top: 26px;
    gap: 10px;
  }

  .afg-section .afg-route-pill {
    min-height: 48px;
    padding-inline: 14px;
    gap: 8px;
    font-size: 13.5px;
  }

  .afg-section .afg-route-pill::before {
    width: 11px;
    border-width: 2px;
  }

  .afg-section .afg-statement {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    margin-top: 28px;
  }

  .afg-section .afg-statement__title {
    font-size: 17px;
  }

}

@media (max-width: 520px) {
  .afg-section .afg-route-pills {
    grid-template-columns: 1fr;
    max-width: none;
  }
}
