/**
 * West Azerbaijan Weather — State Authoritative theme
 * Page #F8FAFC · Top bar #1A237E · Titles/temp #0F172A · Body #475569 · Footer #0F172A
 */

:root {
  --gov-page: #f8fafc;
  --gov-surface: #ffffff;
  --gov-topbar: #1a237e;
  --gov-title: #0f172a;
  --gov-body: #475569;
  --gov-brand: #1a237e;
  --gov-action: #0f172a;
  --gov-interactive: #1e40af;
  --gov-map-fill-a: #2a7b9b;
  --gov-map-fill-b: #2d8a84;
  --gov-map-glow: rgba(45, 168, 180, 0.14);
  --gov-muted: #64748b;
  --gov-border: #e2e8f0;
  --gov-border-news: #cbd5e0;
  --gov-radius: 12px;
  /* Spec: soft layered shadow */
  --gov-shadow-layered: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --gov-shadow-sm: var(--gov-shadow-layered);
  --gov-shadow-md: 0 4px 12px 0 rgba(0, 0, 0, 0.08), 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  --gov-notice-mid: #fef9c3;
  --gov-notice-mid-text: #1e293b;
  --gov-notice-mid-border: #a5b4fc;
  --gov-tag-info-bg: #ecfdf5;
  --gov-tag-info-fg: #047857;
  --gov-tag-info-border: #6ee7b7;
  --gov-tag-gold-bg: #fffbeb;
  --gov-tag-gold-fg: #b45309;
  --gov-tag-gold-border: #fcd34d;
  --gov-icon-glass: rgba(15, 23, 42, 0.04);

  /* خدمات سازمانی — روشن، خنثی، رسمی */
  --gov-services-bg: #f1f5f9;
  --gov-services-border: #e2e8f0;
  --gov-services-text: #334155;
  --gov-services-icon: #64748b;
  --gov-services-bg-hover: #e8eef5;
  --gov-services-border-hover: #cbd5e1;
  --gov-services-text-hover: #1e293b;
  --gov-services-icon-hover: #1a237e;

  /* هالهٔ آبی کمرنگ — گوشهٔ بالا-راست جدول هواشناسی */
  --weather-halo-blue: rgba(37, 99, 235, 0.065);
  --weather-halo-fade: rgba(255, 255, 255, 0.72);

  --bg-0: var(--gov-page);
  --bg-1: var(--gov-page);
  --text: var(--gov-body);
  --muted: var(--gov-muted);
  --line: var(--gov-border);
  --header-blue: var(--gov-title);
  --accent: var(--gov-interactive);
  --warm: #b45309;
  --cold: var(--gov-interactive);
  --card: #ffffff;
  --glass-border: var(--gov-border);
  --footer-bg: #0f172a;
  --footer-text: #ffffff;
  --notice-bg: var(--gov-notice-mid);
  --focus-ring: rgba(26, 35, 126, 0.35);
  --palette-white: #ffffff;
  --palette-primary: #0f172a;
  --palette-primary-dark: #020617;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --touch-min: 44px;
}

html {
  background: var(--gov-page);
}

body {
  color: var(--gov-body) !important;
  background: var(--gov-page) !important;
  font-weight: 400;
}

h1,
h2,
h3,
.section-title,
.news-hub__col-title,
.news-hub__col-title--side,
.brand-block h1,
.news-hub-item__title {
  color: var(--gov-title) !important;
  font-weight: 700;
}

.news-poster__title {
  color: #ffffff !important;
  font-weight: 800 !important;
}

.news-hub__featured-media .news-hub__featured-title {
  color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

a:focus-visible {
  outline: 2px solid var(--gov-topbar);
  outline-offset: 2px;
}

/* —— Top alert bar: indigo, white text —— */
.header-row--1 {
  background: var(--gov-topbar) !important;
  color: #ffffff !important;
  border-bottom: none !important;
  box-shadow: none;
}

.header-row--1 .ticker-marquee,
.header-row--1 marquee {
  color: #ffffff !important;
}

.header-social a {
  color: #ffffff !important;
  opacity: 0.95 !important;
  text-decoration: none !important;
}

.header-social a:hover {
  opacity: 1 !important;
}

/* Social icons: fallback when FontAwesome brands don't include IR services. */
.social-icon-svg {
  width: 30px;
  height: 30px;
  display: block;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1;
}

.social-icon--eitaa { background: rgba(57, 204, 204, 0.16); }
.social-icon--bale { background: rgba(110, 231, 183, 0.16); }
.social-icon--soroush { background: rgba(251, 191, 36, 0.16); }

/* —— Main header rows: white —— */
.header-row--2 {
  background: var(--gov-surface) !important;
  border-bottom: 1px solid var(--gov-border) !important;
}

.brand-block h1 {
  color: var(--gov-title) !important;
  font-weight: 700 !important;
}

.brand-block span {
  color: var(--gov-body) !important;
  font-weight: 400 !important;
}

.header-datetime {
  color: var(--gov-body) !important;
  font-weight: 400 !important;
}

.header-datetime .clock {
  color: var(--gov-title) !important;
  font-weight: 600 !important;
}

/* Topbar (row--1) datetime should stay white/sky on indigo. */
.header-row--1 .header-datetime--top {
  color: #ffffff !important;
  font-weight: 400 !important;
}

.header-row--1 .header-datetime--top .clock,
.header-row--1 .header-datetime--top #shamsiDate {
  color: #ffffff !important;
  font-weight: 400 !important;
}

.header-row--1 .topbar-social__label,
.header-row--1 .topbar-ticker__label,
.header-row--1 .header-datetime__label,
.header-row--1 .header-datetime__sep {
  color: #ffffff !important;
  font-weight: 400 !important;
}

.header-row--3 {
  background: var(--gov-surface) !important;
  border-bottom: none !important;
  box-shadow: 0 1px 0 rgba(226, 232, 240, 0.65) !important;
}

/* Header banner: match soft glass look */
.header-banner {
    object-position:left;
    width: 400px;
    flex: 0 0 400px;
    position: relative;
    overflow: hidden;
    border-radius: 0px;
    border: 0px solid #e2e8f0; 
}
.header-banner__img {
    position: absolute;
    inset: 0;
    width: auto;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.45s ease;
	margin-right: auto !important;
}

.main-nav__link {
  color: var(--gov-title) !important;
  border-radius: var(--gov-radius) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.main-nav__drop a,
.main-nav__sub a {
  text-decoration: none !important;
}

.main-nav__li:not(.active) .main-nav__link:hover {
  background: #f1f5f9 !important;
  color: var(--gov-title) !important;
}

.main-nav__li.active > .main-nav__link,
.main-nav__li.active > .main-nav__hit .main-nav__link {
  background: #e0f2fe !important;
  color: #0c4a6e !important;
  font-weight: 700 !important;
}

.main-nav__li.active > .main-nav__link:hover,
.main-nav__li.active > .main-nav__hit .main-nav__link:hover {
  background: #bae6fd !important;
}

.nav-toggle,
.header-search__toggle,
.header-notify-btn {
  background: var(--gov-surface) !important;
  color: var(--gov-title) !important;
  border: 1px solid var(--gov-border) !important;
  border-radius: var(--gov-radius) !important;
  box-shadow: var(--gov-shadow-layered) !important;
}

.nav-toggle:hover,
.header-search__toggle:hover,
.header-notify-btn:hover {
  background: #f8fafc !important;
}

.main-nav__head {
  border-bottom: 1px solid var(--gov-border) !important;
  background: var(--gov-surface) !important;
}

.main-nav__title {
  color: var(--gov-title) !important;
}

.nav-close {
  background: #f1f5f9 !important;
  color: var(--gov-title) !important;
  border-radius: var(--gov-radius) !important;
}

/* —— Map: بدون قاب/سایه — همسطح با پس‌زمینه صفحه —— */
.hero-block > .map-area {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  position: relative !important;
  overflow: hidden !important;
  min-height: clamp(280px, 36vw, 430px) !important;
  background-position: 64% center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

/* Unified mask over all map background slides */
.hero-block > .map-area::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    circle at 58% 49%,
    rgba(248, 250, 252, 0.6) 0%,
    rgba(248, 250, 252, 0.6) 20%,
    rgba(248, 250, 252, 0.88) 35%,
    rgba(248, 250, 252, 0.99) 48%,
    #f8fafc 61%,
    #f8fafc 100%
  );
  opacity: 1;
}

.hero-block > .map-area #mapMount,
.hero-block > .map-area .weather-dashboard {
  position: relative;
  z-index: 2;
}

.hero-block > .map-area .map-area__fade-layer {
  z-index: 0 !important;
}

#mapMount svg {
  filter: none !important;
  transform: translateX(-2.5%);
}

/* —— Weather widget: هالهٔ آبی خیلی کمرنگ از گوشهٔ راست-بالا به داخل —— */
.weather-dashboard {
  background:
    radial-gradient(
      ellipse 108% 82% at 100% 0%,
      var(--weather-halo-blue) 0%,
      var(--weather-halo-fade) 44%,
      #ffffff 100%
    ) !important;
  border: 1px solid var(--gov-border-news) !important;
  border-radius: var(--gov-radius) !important;
  box-shadow: var(--gov-shadow-layered) !important;
}

.temp-block h1 {
  color: var(--gov-title) !important;
  font-weight: 700 !important;
}

.temp-block p,
.selector-block .label,
.updated {
  color: var(--gov-body) !important;
  font-weight: 400 !important;
}

.main-icon-wrap {
  padding: 6px 8px !important;
  border-radius: var(--gov-radius) !important;
  background: none !important;
}

.main-weather-icon-img {
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.08)) !important;
}

.weather-dashboard select {
  border-radius: var(--gov-radius) !important;
  font-weight: 500 !important;
  color: var(--gov-title) !important;
}

.metric {
  border-radius: var(--gov-radius) !important;
  background: #fafbfc !important;
  border: 1px solid var(--gov-border) !important;
  box-shadow: none !important;
}

.metric-head {
  font-weight: 500 !important;
  color: var(--gov-body) !important;
}

.metric-value {
  font-weight: 600 !important;
  color: var(--gov-title) !important;
}

.forecast-card,
.day {
  border-radius: var(--gov-radius) !important;
}

.forecast-title {
  color: var(--gov-title) !important;
}

.max {
  color: var(--warm) !important;
}

.min {
  color: var(--gov-interactive) !important;
}

/* Mobile compact weather cards: icon+label inline, values opposite side */
@media (max-width: 768px) {
  .weather-dashboard .metrics {
    gap: 8px !important;
  }

  .weather-dashboard .metric {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 8px;
    min-height: auto !important;
    padding: 8px 10px !important;
  }

  .weather-dashboard .metric-head {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    line-height: 1.3;
  }

  .weather-dashboard .metric-value {
    margin: 0 !important;
    text-align: left;
    white-space: nowrap;
    font-size: 0.9rem !important;
    line-height: 1.2;
  }

  /* 5-day forecast: day + icon on top, max/min stacked below */
  .weather-dashboard .forecast-grid {
    gap: 8px !important;
  }

  .weather-dashboard .day {
    display: grid !important;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "name icon"
      "max max"
      "min min";
    align-items: center;
    row-gap: 3px;
    column-gap: 8px;
    min-height: auto !important;
    padding: 8px 10px !important;
  }

  .weather-dashboard .day-name {
    grid-area: name;
    margin: 0;
    line-height: 1.25;
  }

  .weather-dashboard .day .wicon {
    grid-area: icon;
    width: 20px;
    height: 20px;
  }

  .weather-dashboard .day .max {
    grid-area: max;
    display: block;
    line-height: 1.2;
  }

  .weather-dashboard .day .min {
    grid-area: min;
    display: block;
    line-height: 1.2;
  }
}

/* —— Footer —— */
.site-footer {
  background: var(--footer-bg) !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

.site-footer h4 {
  color: var(--gov-surface) !important;
  font-weight: 700 !important;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.88) !important;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 400 !important;
  font-size:15px;
}

.site-footer a:hover {
  color: #ffffff !important;
}

.footer-bottom {
  color: rgba(255, 255, 255, 0.75) !important;
  border-top-color: rgba(255, 255, 255, 0.15) !important;
  width: 100%;
  padding-inline: 10%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
  text-align: right;
  direction: ltr;
}

.footer-credit {
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1px;
  color: rgba(255, 255, 255, 0.86);
  opacity: 0.98;
}

.footer-bottom__right {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  order: 2;
  margin-left: auto;
  direction: rtl;
  text-align: right;
  white-space: nowrap;
}

.footer-bottom__left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.82);
  order: 1;
  direction: rtl;
  text-align: left;
  white-space: nowrap;
}

.footer-credit__link {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.footer-credit__link:hover {
  color: #39cccc;
  border-bottom-color: #39cccc;
  opacity: 1;
}

/* —— Middle alert banner —— */
.global-notice {
  background: var(--gov-notice-mid) !important;
  border: 1px solid var(--gov-notice-mid-border) !important;
  border-radius: var(--gov-radius) !important;
  box-shadow: var(--gov-shadow-layered) !important;
  color: var(--gov-notice-mid-text) !important;
}

.global-notice i {
  color: #b45309 !important;
}

.global-notice strong {
  color: var(--gov-notice-mid-text) !important;
}

.global-notice .weather-notice-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.global-notice .weather-notice-link:hover {
  color: var(--gov-interactive);
}

/* —— Quick access: cool gray circles, charcoal-blue icons —— */
.quick-slider__viewport {
  border-radius: var(--gov-radius) !important;
  background: transparent !important;
}

.quick-card {
  background: var(--gov-surface) !important;
  border: 1px solid var(--gov-border) !important;
  border-radius: var(--gov-radius) !important;
  box-shadow: var(--gov-shadow-layered) !important;
  font-weight: 600 !important;
  color: var(--gov-title) !important;
  flex: 0 0 calc((100% - ((var(--wp-pro-quick-cols-desktop, 4) - 1) * 16px)) / var(--wp-pro-quick-cols-desktop, 4)) !important;
  max-width: calc((100% - ((var(--wp-pro-quick-cols-desktop, 4) - 1) * 16px)) / var(--wp-pro-quick-cols-desktop, 4)) !important;
}

.quick-card:hover {
  box-shadow: var(--gov-shadow-md) !important;
}

.quick-card__icon {
  border-radius: 50% !important;
  border: none !important;
  box-shadow: none !important;
  background: #e2e8f0 !important;
  color: #1e40af !important;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.quick-card:hover .quick-card__icon {
  background: #dbeafe !important;
  color: #1e3a8a !important;
}

.quick-slider__btn {
  border-radius: var(--gov-radius) !important;
  background: var(--gov-surface) !important;
  color: var(--gov-title) !important;
  border: 1px solid var(--gov-border) !important;
  box-shadow: var(--gov-shadow-layered) !important;
}

@media (max-width: 992px) {
  .quick-card {
    flex: 0 0 calc((100% - ((var(--wp-pro-quick-cols-tablet, 2) - 1) * 16px)) / var(--wp-pro-quick-cols-tablet, 2)) !important;
    max-width: calc((100% - ((var(--wp-pro-quick-cols-tablet, 2) - 1) * 16px)) / var(--wp-pro-quick-cols-tablet, 2)) !important;
  }
}

@media (max-width: 560px) {
  .quick-card {
    flex: 0 0 calc((100% - ((var(--wp-pro-quick-cols-mobile, 1) - 1) * 16px)) / var(--wp-pro-quick-cols-mobile, 1)) !important;
    max-width: calc((100% - ((var(--wp-pro-quick-cols-mobile, 1) - 1) * 16px)) / var(--wp-pro-quick-cols-mobile, 1)) !important;
  }
}

.section-title {
  color: var(--gov-title) !important;
  font-weight: 800 !important;
}

.section-title a:hover {
  color: var(--gov-interactive) !important;
}

/* —— News hub: ۶۵٪ اخبار | باندل ۴۵٪ با دو ستون ۲۵:۲۰ —— */
.news-hub {
  display: grid !important;
  grid-template-columns: minmax(0, 60%) minmax(0, 40%) !important;
  gap: 12px !important;
  align-items: stretch;
}

.news-hub__main {
  background: var(--gov-surface) !important;
  border: 1px solid var(--gov-border-news) !important;
  border-radius: var(--gov-radius) !important;
  box-shadow: var(--gov-shadow-layered) !important;
  overflow: visible !important;
}

.news-hub__panels,
.news-hub__panel,
.news-hub__split,
.news-hub__list {
  overflow: visible !important;
}

.news-hub__featured-media {
  position: relative;
  overflow: hidden;
}

.news-hub__featured-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.news-hub__featured-text,
.news-hub__featured-badge {
  position: relative;
  z-index: 1;
}

.news-hub__side-bundle {
  background: var(--gov-surface) !important;
  border: 1px solid var(--gov-border-news) !important;
  border-radius: var(--gov-radius) !important;
  box-shadow: var(--gov-shadow-layered) !important;
  padding: 12px 14px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-columns: minmax(0, 45%) minmax(0, 55%) !important;
  gap: 10px !important;
  align-items: start !important;
}

.news-hub__middle,
.news-hub__samed {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.news-hub__col-title--ghost {
  visibility: hidden !important;
  min-height: 1.5rem;
}

.samed-block {
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

.news-hub__tab {
  border-radius: var(--gov-radius) !important;
  color: var(--gov-brand) !important;
  font-weight: 700 !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-align: center !important;
  white-space: normal !important;
  min-height: 42px;
  padding: 8px 12px !important;
  flex: 1 1 calc(33.333% - 8px) !important;
  max-width: calc(33.333% - 8px);
  -webkit-tap-highlight-color: transparent;
}

.news-hub__tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  width: 100%;
  overflow: visible !important;
}

@media (max-width: 992px) {
  .news-hub__tab {
    flex-basis: calc(50% - 8px) !important;
    max-width: calc(50% - 8px);
  }
}

@media (max-width: 560px) {
  .news-hub__tab {
    flex-basis: 100% !important;
    max-width: 100%;
  }
}

.news-hub__tab.is-active {
  background: var(--gov-topbar) !important;
  color: var(--gov-surface) !important;
}

@media (max-width: 992px) {
  .news-hub {
    grid-template-columns: 1fr !important;
  }
  .news-hub__side-bundle {
    grid-template-columns: 1fr !important;
  }
}

.news-hub-item {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
}

.news-hub__list .news-hub-item:not(:last-child) {
  border-bottom: 1px solid var(--gov-border-news) !important;
}

.news-hub-item:hover {
  background: rgba(248, 250, 252, 0.95) !important;
}

.news-hub-item__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.news-hub-item__thumb {
  overflow: hidden;
  border-radius: 10px;
}

.news-hub-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.news-hub-item__title {
  font-weight: 800 !important;
  color: var(--gov-title) !important;
}

/* روتیتر: یک خط + سه‌نقطه (با featured-badge و پوستر تفاوت دارد) */
.news-hub-item__rotitr {
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-weight: 400 !important;
  font-size: 0.64rem !important;
  line-height: 1.35 !important;
  color: var(--gov-muted) !important;
  letter-spacing: 0.01em;
}

/* Capsule tags: فقط بج ویژه و پوستر */
.news-hub__featured-badge,
.news-poster__tag {
  display: inline-flex;
  align-items: center;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
  line-height: 1.35 !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  background: var(--gov-tag-info-bg) !important;
  color: var(--gov-tag-info-fg) !important;
  border: 1px solid var(--gov-tag-info-border) !important;
}

.news-hub__featured-media .news-hub__featured-badge {
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--gov-title) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
}

.news-hub__featured-badge--warn,
.tag--warning {
  background: var(--gov-tag-gold-bg) !important;
  color: var(--gov-tag-gold-fg) !important;
  border: 1px solid var(--gov-tag-gold-border) !important;
}

.news-hub__featured-media--warn {
  background:
    linear-gradient(to top, rgba(15, 23, 42, 0.72) 0%, rgba(30, 41, 59, 0.35) 55%, rgba(15, 23, 42, 0.18) 100%),
    url("../images/map-bg-lake-bridge.png") center / cover no-repeat !important;
}

.news-hub__featured-media--warn .news-hub__featured-badge {
  background: var(--gov-tag-gold-bg) !important;
  color: var(--gov-tag-gold-fg) !important;
  border: 1px solid var(--gov-tag-gold-border) !important;
}

.news-hub__featured-excerpt {
  color: rgba(255, 255, 255, 0.94) !important;
  font-weight: 400 !important;
}

/* Live insights cards */
.live-insights-grid { display: grid; grid-template-columns: 1fr; gap: 6px; }
.live-insight-card { background: transparent; border: 0; border-radius: 8px; box-shadow: none; padding: 4px 2px; }
.live-insight-card:first-child {
  padding-bottom: 8px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}
.live-insight-card__title { margin: 0 0 4px; color: var(--gov-title); font-size: 0.86rem; font-weight: 800; }
.live-insight-aqi { display: grid; justify-items: center; align-items: center; gap: 0; }
.live-insight-aqi__dial { width: min(250px, 96%); }
.live-insight-aqi__svg { width: 100%; height: auto; display: block; }
.live-insight-aqi__segment {
  fill: none;
  stroke-width: 45;
  stroke-dasharray: 78.5 1000;
}
.live-insight-aqi__segment.s1 { stroke: #009245; stroke-dashoffset: 0; }
.live-insight-aqi__segment.s2 { stroke: #8cc63f; stroke-dashoffset: -78.5; }
.live-insight-aqi__segment.s3 { stroke: #fcee21; stroke-dashoffset: -157; }
.live-insight-aqi__segment.s4 { stroke: #f7931e; stroke-dashoffset: -235.5; }
.live-insight-aqi__segment.s5 { stroke: #ff0000; stroke-dashoffset: -314; }
.live-insight-aqi__segment.s6 { stroke: #c1272d; stroke-dashoffset: -392.5; }
.live-insight-aqi__separator {
  fill: none;
  stroke: #ffffff;
  stroke-width: 46;
  stroke-dasharray: 3 75.5;
  stroke-dashoffset: 1.5;
}
.live-insight-aqi__pointer { transform-origin: 200px 200px; transition: transform 0.9s cubic-bezier(0.17, 0.67, 0.12, 1); }
.live-insight-aqi__needle { fill: #222 !important; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.3)); }
.live-insight-aqi__pivot { fill: #333; stroke: #ffffff; stroke-width: 3; }
.live-insight-aqi__mark { fill: #1f2937; font-size: 12px; font-weight: 700; font-family: inherit; }
.live-insight-aqi__meta { margin-top: -6px; text-align: center; display: grid; gap: 2px; }
.live-insight-aqi__headline {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  color: #0f172a;
}
.live-insight-aqi__meta .live-insight-aqi__city { color: #0f172a; font-size: 1.06rem; font-weight: 800; }
.live-insight-aqi__meta strong { color: #0f172a; font-size: 1.12rem; line-height: 1; font-weight: 900; letter-spacing: 0.01em; white-space: nowrap; }
.live-insight-aqi__meta strong small { font-size: 0.72rem; color: #475569; font-weight: 800; vertical-align: middle; }
.live-insight-aqi__meta em { font-style: normal; font-size: 0.86rem; color: #334155; font-weight: 700; }
.live-insight-extremes { display: grid; gap: 6px; }
.live-insight-extremes__item { display: flex; align-items: center; gap: 8px; border-radius: 10px; padding: 7px 8px; border: 1px solid; }
.live-insight-extremes__icon-wrap { width: 27px; height: 27px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.live-insight-extremes__item i { font-size: 0.95rem; }
.live-insight-extremes__content { min-width: 0; flex: 1 1 auto; }
.live-insight-extremes__item.is-hot { background: #fff7ed; color: #9a3412; border-color: #fdba74; }
.live-insight-extremes__item.is-hot .live-insight-extremes__icon-wrap { background: #fed7aa; }
.live-insight-extremes__item.is-cold { background: #eff6ff; color: #1e40af; border-color: #93c5fd; }
.live-insight-extremes__item.is-cold .live-insight-extremes__icon-wrap { background: #bfdbfe; }
.live-insight-extremes__label { display: block; font-size: 0.68rem; color: #64748b; margin-bottom: 1px; }
.live-insight-extremes__item strong { color: #0f172a; font-size: 0.8rem; font-weight: 800; }
.live-insight-extremes__meter { margin-top: 4px; width: 100%; height: 4px; border-radius: 999px; background: rgba(148, 163, 184, 0.2); overflow: hidden; }
.live-insight-extremes__meter-fill { display: block; height: 100%; border-radius: inherit; transition: width 0.35s ease; }
.live-insight-extremes__item.is-hot .live-insight-extremes__meter-fill { background: linear-gradient(90deg, #fb923c 0%, #ef4444 100%); }
.live-insight-extremes__item.is-cold .live-insight-extremes__meter-fill { background: linear-gradient(90deg, #38bdf8 0%, #2563eb 100%); }
.live-insight-extremes__temp-badge { font-size: 0.69rem; font-weight: 800; line-height: 1; border-radius: 999px; padding: 4px 7px; background: #ffffff; border: 1px solid #cbd5e1; color: #0f172a; flex: 0 0 auto; }
.live-insight-extremes__spread { margin-top: 4px; font-size: 0.69rem; font-weight: 700; color: #334155; background: #f8fafc; border: 1px solid #dbe6f2; border-radius: 8px; padding: 5px 7px; text-align: center; }

/* —— Services: کارت روشن و خنثی (سازمانی) —— */
.services-scroll {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 12px !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  width: 100%;
}

.services-scroll a {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 132px !important;
  padding: 14px 12px !important;
  border-radius: var(--gov-radius) !important;
  background: var(--gov-services-bg) !important;
  color: var(--gov-services-text) !important;
  border: 1px solid var(--gov-services-border) !important;
  box-shadow: var(--gov-shadow-layered) !important;
  font-weight: 600 !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.services-scroll a i {
  color: var(--gov-services-icon) !important;
  font-size: 1.15rem !important;
  transition: color 0.2s ease;
}

.services-scroll a span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
  min-height: calc(1.6em * 2);
}

.services-scroll a:hover {
  background: var(--gov-services-bg-hover) !important;
  color: var(--gov-services-text-hover) !important;
  border-color: var(--gov-services-border-hover) !important;
}

.services-scroll a:hover i {
  color: var(--gov-services-icon-hover) !important;
}

/* —— Internal / shared —— */
.glass-panel,
.glass-widget,
.page-header-band {
  background: var(--gov-surface) !important;
  border: 1px solid var(--gov-border-news) !important;
  border-radius: var(--gov-radius) !important;
  box-shadow: var(--gov-shadow-layered) !important;
}

.breadcrumb-bar {
  border-radius: var(--gov-radius) !important;
  border: 1px solid var(--gov-border) !important;
}

.article-title,
.page-header-band h1 {
  color: var(--gov-title) !important;
  font-weight: 700 !important;
}

.btn-soft,
button.btn-soft {
  border-radius: var(--gov-radius) !important;
  color: var(--gov-title) !important;
  border: 1px solid var(--gov-border) !important;
  font-weight: 600 !important;
}

.internal-two-col .glass-widget a[class*="btn"],
.contact-form-wide button[type="submit"],
.pagination__btn--accent,
.btn-submit,
.widget-search button {
  background: #0f172a !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--gov-radius) !important;
  font-weight: 700 !important;
  box-shadow: var(--gov-shadow-layered) !important;
}

.internal-two-col .glass-widget a[class*="btn"]:hover,
.contact-form-wide button[type="submit"]:hover,
.btn-submit:hover,
.widget-search button:hover {
  background: #1e293b !important;
}

.service-desk__head {
  background: var(--gov-topbar) !important;
  color: #fff !important;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  border-radius: var(--gov-radius) !important;
  border: 1px solid var(--gov-border) !important;
  color: var(--gov-body) !important;
}

input[type="search"] {
  border-radius: var(--gov-radius) !important;
  border: none !important;
  color: var(--gov-body) !important;
}

/* پنل جستجو: استایل کامل در site-search-overlay.css — اینجا override نکنید */
.site-notify-lightbox__dialog {
  border-radius: var(--gov-radius) !important;
  box-shadow: var(--gov-shadow-layered) !important;
}

.site-search-overlay__heading {
  color: var(--gov-title) !important;
  font-weight: 800 !important;
}

.site-notify-featured__title {
  color: var(--gov-title) !important;
}

.site-notify-featured__text {
  color: var(--gov-body) !important;
  font-weight: 500 !important;
}

.site-notify-past-title {
  color: var(--gov-title) !important;
  font-weight: 700 !important;
}

.site-notify-past-snippet {
  color: var(--gov-body) !important;
  font-weight: 400 !important;
}

.header-notify-btn__badge {
  background: #fbbf24 !important;
  color: #713f12 !important;
}

@media (prefers-reduced-motion: reduce) {
  .quick-card,
  .quick-card__icon {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 768px) {
  .services-scroll {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 480px) {
  .services-scroll {
    grid-template-columns: 1fr !important;
  }
}
