/* ==========================================================================
   صفحه‌ی اصلی — نسخه‌ی ۲ «پرتال اداری»
   پالت رسمی: آبی سازمانی + سفید. فقط برای index.html بارگذاری می‌شود.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1) توکن‌های اختصاصی صفحه‌ی اصلی
   -------------------------------------------------------------------------- */
body[data-page="index"] {
  --paper: #f3f7fc;
  --paper-2: #e9f1fa;
  --surface: #ffffff;
  --surface-2: #f8fbfe;

  --ink: #0b2136;
  --ink-2: #27445f;
  --muted: #566c80;
  --faint: #7d92a6;

  --line: #d8e4f0;
  --line-strong: #bfd2e5;

  --forest: #082b49;
  --forest-deep: #061f36;
  --forest-mid: #0c3b63;
  --panel-dark: #082b49;

  --teal: #155e9c;
  --teal-bright: #1e73be;
  --mint: #e7f1fb;

  --amber: #2f8ad9;
  --amber-strong: #4aa1e8;
  --amber-soft: #e3f0fb;
  --amber-ink: #0b4f86;

  --sky: #8fc4f0;
  --clay: #b4533a;

  --on-dark: #f2f7fc;
  --on-dark-muted: #b9cde0;
  --line-dark: rgba(214, 231, 246, 0.16);
  --line-dark-strong: rgba(214, 231, 246, 0.3);

  --focus: #f0b24c;
  --shadow-sm: 0 1px 2px rgba(8, 40, 64, 0.04), 0 12px 26px -20px rgba(8, 40, 64, 0.28);
  --shadow-md: 0 4px 14px rgba(8, 40, 64, 0.05), 0 30px 60px -34px rgba(8, 40, 64, 0.32);
  --shadow-lg: 0 4px 18px rgba(8, 40, 64, 0.05), 0 60px 100px -50px rgba(8, 40, 64, 0.42);
}

html[data-theme="dark"] body[data-page="index"] {
  --paper: #071522;
  --paper-2: #0a1d2e;
  --surface: #0d2234;
  --surface-2: #10283c;

  --ink: #eef5fb;
  --ink-2: #cfe0ef;
  --muted: #a6bdd1;
  --faint: #7f99af;

  --line: #1c3850;
  --line-strong: #2a4c69;

  --forest: #0f3a5f;
  --forest-deep: #040f19;
  --forest-mid: #15507d;
  --panel-dark: #0a2033;

  --teal: #6fb4ee;
  --teal-bright: #8cc7f5;
  --mint: #123048;

  --amber: #6fb4ee;
  --amber-strong: #8cc7f5;
  --amber-soft: #0f2d45;
  --amber-ink: #bfe0fb;

  --on-dark: #eef5fb;
  --on-dark-muted: #a9c2d8;
  --line-dark: rgba(214, 231, 246, 0.14);
  --line-dark-strong: rgba(214, 231, 246, 0.26);

  --focus: #f4c168;
  --shadow-sm: 0 10px 30px -20px rgba(0, 0, 0, 0.8);
  --shadow-md: 0 30px 60px -34px rgba(0, 0, 0, 0.85);
  --shadow-lg: 0 60px 100px -50px rgba(0, 0, 0, 0.9);
}

/* هدر و فوتر مشترک، در صفحه‌ی اصلی آبی می‌شوند */
body[data-page="index"] .site-header {
  background: color-mix(in srgb, #061f36 94%, transparent);
  border-bottom-color: rgba(214, 231, 246, 0.12);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  body[data-page="index"] .site-header { background: #061f36; }
}
body[data-page="index"] .header-cta {
  background: #ffffff;
  color: #082b49 !important;
  box-shadow: 0 12px 24px -16px rgba(0, 0, 0, 0.55);
}
body[data-page="index"] .header-cta:hover {
  background: #e9f3fd;
  color: #082b49 !important;
}
body[data-page="index"] .nav__link {
  position: relative;
}
body[data-page="index"] .nav__link[aria-current="page"] {
  color: #a9d4ff;
}
body[data-page="index"] .nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-inline: 50%;
  bottom: 1px;
  width: 4px;
  height: 4px;
  margin-inline-start: -2px;
  border-radius: 50%;
  background: #a9d4ff;
}
body[data-page="index"] .site-footer {
  background: #04182b;
  margin-top: 0;
}
body[data-page="index"] .footer-col h3 {
  color: #8fc4f0;
}
body[data-page="index"] .footer-social a:hover {
  color: #a9d4ff;
  border-color: #a9d4ff;
}
body[data-page="index"] .newsletter button {
  background: #8fc4f0;
  color: #04182b;
}
body[data-page="index"] .footer-bottom,
body[data-page="index"] .footer-col a,
body[data-page="index"] .footer-brand p,
body[data-page="index"] .footer-contact,
body[data-page="index"] .footer-news p {
  color: #b9cde0;
}
body[data-page="index"] .footer-col a:hover {
  color: #ffffff;
}
body[data-page="index"] :focus-visible {
  outline-color: #0b4f86;
}
body[data-page="index"] .site-header :focus-visible,
body[data-page="index"] .site-footer :focus-visible,
body[data-page="index"] .home-intro :focus-visible,
body[data-page="index"] .home-cta :focus-visible {
  outline-color: #f4c168;
}

/* --------------------------------------------------------------------------
   2) اسلایدر اینترو
   -------------------------------------------------------------------------- */
.home-intro {
  position: relative;
  overflow: hidden;
  color: var(--on-dark);
  background:
    radial-gradient(58% 90% at 86% 0%, rgba(47, 138, 217, 0.28), transparent 62%),
    radial-gradient(42% 70% at 4% 100%, rgba(47, 138, 217, 0.16), transparent 60%),
    linear-gradient(135deg, #051b2f 0%, #082b49 52%, #0a3559 100%);
  border-radius: 0 0 26px 26px;
}
.home-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(70% 90% at 80% 20%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 90% at 80% 20%, #000 0%, transparent 78%);
}
.home-intro::after {
  content: "";
  position: absolute;
  inset-inline-end: -60px;
  bottom: -150px;
  width: 540px;
  height: 540px;
  background: url("../img/logo-light.png") center / contain no-repeat;
  opacity: 0.045;
  pointer-events: none;
}
.home-intro__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-areas:
    "content media"
    "footer media";
  align-items: center;
  gap: clamp(32px, 4.6vw, 64px);
  padding-block: clamp(34px, 4.4vw, 54px) clamp(72px, 6vw, 92px);
  min-height: 530px;
}
.home-intro__content {
  grid-area: content;
  align-self: end;
}
.home-intro__footer {
  grid-area: footer;
  align-self: start;
  min-width: 0;
}
.home-intro__media {
  grid-area: media;
  align-self: center;
}
.home-intro__content {
  min-width: 0;
}
.home-intro__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 10px;
  border: 1px solid rgba(214, 231, 246, 0.24);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.74rem;
  color: #d7e9f8;
}
.home-intro__eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7fc0f4;
  box-shadow: 0 0 0 4px rgba(127, 192, 244, 0.12);
}
.home-intro__slides {
  display: grid;
  margin-top: 18px;
}
.home-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.55s var(--ease),
    visibility 0.5s;
}
.home-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.home-slide h2 {
  font-size: clamp(2.3rem, 4.3vw, 3.9rem);
  line-height: 1.14;
  font-weight: 800;
  color: #ffffff;
  margin: 12px 0 16px;
  letter-spacing: -0.012em;
  max-width: 15ch;
}
.home-slide h2 em {
  font-style: normal;
  color: #8fc4f0;
}
.home-slide p {
  font-size: clamp(0.94rem, 1.15vw, 1.04rem);
  line-height: 2;
  color: #c3d8ea;
  max-width: 50ch;
  margin-bottom: 26px;
}
.home-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s,
    transform 0.2s var(--ease);
  white-space: nowrap;
}
.sbtn svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.sbtn:hover {
  transform: translateY(-2px);
}
.sbtn--white {
  background: #ffffff;
  color: #082b49;
}
.sbtn--white:hover {
  background: #e9f3fd;
}
.sbtn--ghost {
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
}
.sbtn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
}

.home-intro__controls {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(214, 231, 246, 0.14);
}
.slider-tabs {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex: 1;
  min-width: 0;
}
.slider-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
  min-width: 0;
  padding: 0 0 2px;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-align: start;
  transition: color 0.2s;
}
.slider-tab::after {
  content: "";
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.25s;
}
.slider-tab:hover {
  color: rgba(255, 255, 255, 0.8);
}
.slider-tab[aria-selected="true"] {
  color: #ffffff;
}
.slider-tab[aria-selected="true"]::after {
  background: #4aa1e8;
}
.slider-tab .tab-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0;
  color: inherit;
  opacity: 0.75;
}
.slider-nav {
  display: flex;
  gap: 6px;
  flex: none;
}
.slider-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(214, 231, 246, 0.28);
  color: #ffffff;
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.slider-nav button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}
.slider-nav button:active {
  transform: scale(0.96);
}
.slider-nav svg {
  width: 16px;
  height: 16px;
}
.slider-progress {
  height: 2px;
  margin-top: 12px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.slider-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: #4aa1e8;
}

/* رسانه‌ی اسلایدر */
.home-intro__media {
  position: relative;
  padding: 9px;
  border: 1px solid rgba(214, 231, 246, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.62);
}
.home-intro__frames {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 13px;
  overflow: hidden;
  background: #0a2b45;
}
.home-intro__frames img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 0.7s var(--ease), transform 1.4s var(--ease-out);
}
.home-intro__frames img.is-active {
  opacity: 1;
  transform: none;
}
.home-intro__frames::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 20, 36, 0.05) 42%, rgba(4, 20, 36, 0.72) 100%);
  pointer-events: none;
}
.home-intro__count {
  position: absolute;
  top: 22px;
  inset-inline-start: 22px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(4, 20, 36, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--pill);
  padding: 5px 10px;
  backdrop-filter: blur(8px);
}
.home-intro__badge {
  position: absolute;
  top: 22px;
  inset-inline-end: 22px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.66rem;
  color: #082b49;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--pill);
  padding: 5px 10px;
  backdrop-filter: blur(8px);
}
.home-intro__badge svg {
  width: 12px;
  height: 12px;
}
.home-intro__caption {
  position: absolute;
  bottom: 20px;
  inset-inline-start: auto;
  inset-inline-end: 22px;
  max-width: 55%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.home-intro__caption::before {
  content: "";
  width: 18px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  flex: none;
}
.home-float {
  position: absolute;
  inset-inline-start: -14px;
  bottom: 34px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 12px;
  background: #ffffff;
  color: #082b49;
  box-shadow: 0 20px 44px -22px rgba(4, 20, 36, 0.65);
  transition: transform 0.2s var(--ease);
}
.home-float:hover {
  transform: translateY(-2px);
}
.home-float__icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #e7f1fb;
  color: #155e9c;
  display: grid;
  place-items: center;
  flex: none;
}
.home-float__icon svg {
  width: 18px;
  height: 18px;
}
.home-float strong {
  display: block;
  font-size: 0.78rem;
  line-height: 1.5;
}
.home-float span span {
  display: block;
  font-size: 0.66rem;
  color: #5b7186;
}

/* --------------------------------------------------------------------------
   3) نوار جست‌وجو (Dock)
   -------------------------------------------------------------------------- */
.portal-dock-wrap {
  position: relative;
  z-index: 5;
  margin-top: -34px;
}
.portal-dock {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 30px 60px -34px rgba(8, 40, 64, 0.38);
}
.portal-dock__form {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-inline: 10px 4px;
}
.portal-dock__form > svg {
  width: 19px;
  height: 19px;
  color: var(--teal);
  flex: none;
}
.portal-dock__form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: 0;
  font-size: 0.9rem;
  color: var(--ink);
  padding-block: 12px;
}
.portal-dock__form input::placeholder {
  color: var(--muted);
}
.portal-dock__submit {
  flex: none;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 9px;
  background: var(--forest);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.2s;
}
.portal-dock__submit:hover {
  background: var(--forest-mid);
}
.portal-dock__submit svg {
  width: 15px;
  height: 15px;
}
.portal-dock__links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-inline-start: 10px;
  border-inline-start: 1px solid var(--line);
  flex: none;
}
.portal-dock__links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.76rem;
  color: var(--ink-2);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.portal-dock__links a:hover {
  background: var(--mint);
  color: var(--teal);
}
.portal-dock__links svg {
  width: 15px;
  height: 15px;
  color: var(--teal);
}

/* --------------------------------------------------------------------------
   4) خدمات
   -------------------------------------------------------------------------- */
.services-hub {
  padding-block: clamp(40px, 5vw, 62px) clamp(50px, 6vw, 76px);
  background: var(--paper);
}
.hub-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 26px;
}
.hub-head__text {
  max-width: 640px;
}
.hub-head h2 {
  font-size: clamp(1.9rem, 3.1vw, 2.7rem);
  margin-bottom: 10px;
}
.hub-head p {
  color: var(--muted);
  max-width: 58ch;
  font-size: 0.92rem;
}
.hub-head .btn {
  flex: none;
}
.svc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.svc-toolbar .chips {
  gap: 6px;
}
.svc-toolbar .chip {
  min-height: 34px;
  padding-inline: 13px;
  font-size: 0.76rem;
  background: var(--surface);
}
.svc-toolbar .chip[aria-pressed="true"] {
  background: var(--forest);
  border-color: var(--forest);
  color: #ffffff;
}
html[data-theme="dark"] .svc-toolbar .chip[aria-pressed="true"] {
  background: var(--amber);
  border-color: var(--amber);
  color: #04182b;
}
html[data-theme="dark"] body[data-page="index"] .portal-dock__submit {
  background: var(--amber);
  color: #04182b;
}
html[data-theme="dark"] body[data-page="index"] .portal-dock__submit:hover {
  background: var(--amber-strong);
}
.svc-count {
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.svc {
  display: flex;
  flex-direction: column;
  min-height: 148px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s var(--ease);
  position: relative;
}
.svc:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}
.svc__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.svc__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--mint);
  color: var(--teal);
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s;
}
.svc__icon svg {
  width: 20px;
  height: 20px;
}
.svc__arrow {
  width: 15px;
  height: 15px;
  color: var(--faint);
  transition: color 0.2s, transform 0.2s var(--ease);
}
.svc strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.55;
  color: var(--ink);
}
.svc__sub {
  display: block;
  margin-top: 3px;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.6;
}
.svc__tag {
  position: absolute;
  inset-inline-end: 18px;
  bottom: 15px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
  color: var(--muted);
}
.svc__tag::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber);
}
.svc:hover .svc__icon {
  background: var(--forest);
  color: #ffffff;
}
.svc:hover .svc__arrow {
  color: var(--teal);
  transform: translateX(-3px);
}
.svc.is-hidden {
  display: none;
}
.svc-empty {
  display: none;
  padding: 34px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  grid-column: 1 / -1;
}
.svc-empty.is-visible {
  display: block;
}

/* --------------------------------------------------------------------------
   5) ماژول‌های «آنچه در شهر می‌گذرد»
   -------------------------------------------------------------------------- */
.city-modules {
  padding-block: clamp(50px, 6vw, 76px);
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.modules-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 24px;
}
.modules-head h2 {
  font-size: clamp(1.9rem, 3.1vw, 2.7rem);
  margin-bottom: 8px;
}
.modules-head p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 56ch;
}
.modules-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.mod {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.mod__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.mod__icon {
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--teal);
  display: grid;
  place-items: center;
  flex: none;
}
.mod__icon svg {
  width: 15px;
  height: 15px;
}
.mod__head h3 {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 650;
  margin: 0;
  line-height: 1.4;
}
.mod__more {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--teal);
  flex: none;
}
.mod__more svg {
  width: 13px;
  height: 13px;
  transition: transform 0.2s;
}
.mod__more:hover svg {
  transform: translateX(-3px);
}
.mod__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* ماژول خبر شاخص — چیدمان افقی برای هم‌قد شدن با ماژول آخرین اخبار */
.mod--feature {
  grid-column: span 7;
}
.mod--feature .mod__body {
  flex-direction: row;
}
.feature-media {
  position: relative;
  display: block;
  width: 54%;
  min-height: 326px;
  flex: none;
  overflow: hidden;
  background: var(--paper-2);
}
.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.mod--feature:hover .feature-media img {
  transform: scale(1.035);
}
.feature-media .tag {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: #ffffff;
  color: #082b49;
  font-weight: 600;
}
.feature-body {
  width: 46%;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-body .meta {
  margin-bottom: 6px;
}
.feature-body h4 {
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.6vw, 1.3rem);
  font-weight: 700;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 8px;
}
.feature-body h4 a:hover {
  color: var(--teal);
}
.feature-body p {
  font-size: 0.8rem;
  line-height: 1.85;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.feature-body .mod__more {
  margin-inline-start: 0;
  margin-top: 10px;
  font-size: 0.76rem;
}
.mod--latest {
  grid-column: span 5;
}
.mod--latest .mod__body {
  justify-content: space-between;
}
.news-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
  flex: 1;
}
.news-row:last-child {
  border-bottom: 0;
}
.news-row:hover {
  background: var(--surface-2);
}
.news-row__no {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--teal);
  padding-top: 3px;
  flex: none;
}
.news-row__body {
  min-width: 0;
  flex: 1;
}
.news-row strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.75;
  color: var(--ink);
}
.news-row:hover strong {
  color: var(--teal);
}
.news-row__meta {
  display: block;
  margin-top: 2px;
  font-size: 0.66rem;
  color: var(--muted);
}
.news-row > svg {
  width: 13px;
  height: 13px;
  color: var(--faint);
  margin-top: 6px;
  flex: none;
}

/* اطلاعیه‌ها / رویدادها / آمار */
.mod--notices,
.mod--events,
.mod--stats {
  grid-column: span 4;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
  flex: 1;
}
.notice:last-child {
  border-bottom: 0;
}
.notice:hover {
  background: var(--surface-2);
}
.notice__icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--amber-soft);
  color: var(--amber-ink);
  display: grid;
  place-items: center;
  flex: none;
}
.notice__icon svg {
  width: 13px;
  height: 13px;
}
.notice__body {
  min-width: 0;
}
.notice__body strong {
  display: block;
  font-size: 0.77rem;
  font-weight: 600;
  line-height: 1.7;
  color: var(--ink);
}
.notice:hover .notice__body strong {
  color: var(--teal);
}
.notice__body span {
  display: block;
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 2px;
}
.event {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
  flex: 1;
}
.event:last-child {
  border-bottom: 0;
}
.event:hover {
  background: var(--surface-2);
}
.event__date {
  width: 42px;
  height: 46px;
  border-radius: 8px;
  background: var(--forest);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: none;
  line-height: 1.1;
}
.event__date b {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}
.event__date span {
  font-size: 0.56rem;
  color: rgba(255, 255, 255, 0.75);
}
.event__body {
  min-width: 0;
}
.event__body strong {
  display: block;
  font-size: 0.77rem;
  font-weight: 600;
  line-height: 1.7;
  color: var(--ink);
}
.event:hover .event__body strong {
  color: var(--teal);
}
.event__body span {
  display: block;
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 2px;
}
.mod--stats {
  background: linear-gradient(145deg, #082b49 0%, #0a3c65 100%);
  border-color: #0a3c65;
  color: #ffffff;
}
.mod--stats .mod__head {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}
.mod--stats .mod__head h3 {
  color: #ffffff;
}
.mod--stats .mod__icon {
  background: rgba(255, 255, 255, 0.1);
  color: #8fc4f0;
}
.mod--stats .mod__more {
  color: #8fc4f0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 16px;
  flex: 1;
  align-content: center;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 750;
  line-height: 1.15;
  color: #ffffff;
}
.stat span {
  display: block;
  margin-top: 3px;
  font-size: 0.62rem;
  line-height: 1.55;
  color: #b9cde0;
}
.mod--stats__foot {
  padding: 0 16px 16px;
  margin-top: auto;
}
.mod--stats__foot a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: #8fc4f0;
}
.mod--stats__foot svg {
  width: 13px;
  height: 13px;
}

/* --------------------------------------------------------------------------
   6) مشارکت شهروندی
   -------------------------------------------------------------------------- */
.home-cta {
  padding-block: clamp(44px, 5.5vw, 68px);
  background: var(--paper);
}
.home-cta__card {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  min-height: 310px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #061f36 0%, #082f51 55%, #0a3c65 100%);
  box-shadow: var(--shadow-md);
}
.home-cta__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%);
  pointer-events: none;
}
.home-cta__body {
  position: relative;
  z-index: 2;
  padding: clamp(26px, 4vw, 46px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.home-cta__body h2 {
  color: #ffffff;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 10px;
}
.home-cta__body p {
  color: #c3d8ea;
  font-size: 0.9rem;
  line-height: 1.95;
  max-width: 52ch;
  margin-bottom: 22px;
}
.home-cta__body .sbtn--white {
  color: #082b49;
}
.home-cta__media {
  position: relative;
  min-height: 220px;
}
.home-cta__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  filter: saturate(0.82) contrast(1.02);
}
.home-cta__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 47, 81, 0.04) 0%, rgba(8, 47, 81, 0.55) 62%, #082f51 100%);
}

/* --------------------------------------------------------------------------
   7) ریسپانسیو
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .svc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .home-intro__inner {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 34px;
  }
  .home-slide h2 {
    font-size: clamp(2.1rem, 4vw, 3.2rem);
  }
}
@media (max-width: 980px) {
  .home-intro__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "media"
      "footer";
    gap: 28px;
    padding-block: 30px 80px;
    min-height: 0;
  }
  .home-intro__media {
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }
  .home-float {
    inset-inline-start: 10px;
    bottom: 18px;
  }
  .home-slide h2 {
    max-width: 18ch;
  }
  .portal-dock {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
  }
  .portal-dock__links {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
    padding: 6px 0 0;
    justify-content: space-between;
  }
  .portal-dock__links a {
    flex: 1;
    justify-content: center;
  }
  .modules-grid .mod--feature,
  .modules-grid .mod--latest {
    grid-column: span 12;
  }
  .modules-grid .mod--notices,
  .modules-grid .mod--events {
    grid-column: span 6;
  }
  .modules-grid .mod--stats {
    grid-column: span 12;
  }
  .mod--stats .stats-grid {
    max-width: 520px;
  }
  .hub-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (max-width: 700px) {
  .home-intro {
    border-radius: 0 0 18px 18px;
  }
  .home-intro__inner {
    padding-block: 24px 66px;
    gap: 28px;
  }
  .home-intro__eyebrow {
    font-size: 0.68rem;
  }
  .home-slide h2 {
    font-size: clamp(2rem, 9vw, 2.7rem);
    margin-top: 8px;
  }
  .home-slide p {
    font-size: 0.88rem;
    line-height: 1.95;
    margin-bottom: 20px;
  }
  .sbtn {
    min-height: 43px;
    padding-inline: 15px;
    font-size: 0.8rem;
  }
  .home-intro__media {
    padding: 6px;
    border-radius: 15px;
  }
  .home-intro__frames {
    border-radius: 10px;
    aspect-ratio: 16 / 10;
  }
  .home-intro__badge,
  .home-intro__count {
    top: 14px;
    font-size: 0.6rem;
  }
  .home-intro__badge {
    inset-inline-end: 14px;
  }
  .home-intro__count {
    inset-inline-start: 14px;
  }
  .home-intro__caption {
    display: none;
  }
  .home-float {
    bottom: 12px;
    inset-inline-start: 8px;
    padding: 8px 10px;
    gap: 8px;
  }
  .home-float__icon {
    width: 32px;
    height: 32px;
  }
  .home-float strong {
    font-size: 0.7rem;
  }
  .home-float span span {
    font-size: 0.6rem;
  }
  .home-intro__controls {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 22px;
    padding-top: 14px;
  }
  .slider-tabs {
    justify-content: space-between;
    gap: 10px;
  }
  .slider-tab {
    flex: 1;
    min-width: 0;
  }
  .slider-nav {
    align-self: flex-end;
  }
  .portal-dock-wrap {
    margin-top: -28px;
  }
  .portal-dock__form {
    padding-inline: 4px;
    gap: 8px;
  }
  .portal-dock__form input {
    font-size: 0.82rem;
    padding-block: 11px;
  }
  .portal-dock__submit {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 0.74rem;
  }
  .portal-dock__submit svg {
    display: none;
  }
  .portal-dock__links {
    gap: 0;
  }
  .portal-dock__links a {
    font-size: 0.7rem;
    padding: 8px 4px;
    gap: 5px;
  }
  .portal-dock__links svg {
    width: 13px;
    height: 13px;
  }
  .services-hub {
    padding-block: 38px 42px;
  }
  .hub-head h2 {
    font-size: 1.7rem;
  }
  .hub-head p {
    font-size: 0.84rem;
  }
  .svc-toolbar {
    align-items: flex-start;
  }
  .svc-toolbar .chips {
    order: 2;
    width: 100%;
  }
  .svc-count {
    order: 1;
  }
  .svc-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .svc {
    min-height: 0;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 14px;
  }
  .svc__top {
    margin-bottom: 0;
    flex: none;
    gap: 8px;
  }
  .svc__icon {
    width: 38px;
    height: 38px;
  }
  .svc__arrow {
    display: none;
  }
  .svc__tag {
    display: none;
  }
  .svc__body {
    flex: 1;
    min-width: 0;
  }
  .svc strong {
    font-size: 0.88rem;
  }
  .svc__sub {
    font-size: 0.68rem;
  }
  .city-modules {
    padding-block: 38px;
  }
  .modules-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .modules-head h2 {
    font-size: 1.7rem;
  }
  .modules-grid {
    gap: 10px;
  }
  .modules-grid .mod--feature,
  .modules-grid .mod--latest,
  .modules-grid .mod--notices,
  .modules-grid .mod--events,
  .modules-grid .mod--stats {
    grid-column: span 12;
  }
  .mod__head {
    padding: 12px 14px;
  }
  .mod--feature .mod__body {
    flex-direction: column;
  }
  .feature-media {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .feature-body {
    width: 100%;
    padding: 14px;
  }
  .feature-body h4 {
    font-size: 1.05rem;
  }
  .news-row {
    padding: 11px 14px;
  }
  .notice,
  .event {
    padding: 10px 14px;
  }
  .home-cta {
    padding-block: 34px;
  }
  .home-cta__card {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .home-cta__body {
    padding: 24px 20px;
  }
  .home-cta__media {
    min-height: 160px;
    order: -1;
  }
  .home-cta__media::after {
    background: linear-gradient(0deg, #082f51 0%, rgba(8, 47, 81, 0.2) 70%, transparent 100%);
  }
  .home-cta__body h2 {
    font-size: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-slide,
  .home-intro__frames img {
    transition: none;
  }
}
