/* ==========================================================================
   استایل اصلی سایت شهرداری علویجه
   تم رنگی: سفید / آبی #4064d7 / طلایی #C9A227
   ========================================================================== */

/* ---------- فونت وزیرمتن (خودمیزبان، بدون نیاز به اینترنت) ---------- */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-arabic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- متغیرهای رنگ و اندازه ---------- */
:root {
  --color-white: #ffffff;
  --color-primary: #4064d7;
  --color-primary-dark: #2f4cb0;
  --color-primary-light: #eef2fd;
  --color-gold: #c9a227;
  --color-gold-dark: #8f6f14;
  --color-gold-light: #f7f1dd;
  --color-text: #3a3a3a;
  --color-heading: #000000;
  --color-border: #e4e4e4;
  --color-muted: #7a7a7a;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(64, 100, 215, 0.12);

  --radius: 14px;
  --radius-sm: 10px;

  --header-height: 72px;
  --container: 1180px;
}

/* ---------- ریست پایه ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* فاصله برای هدر چسبان هنگام پرش به لنگرها */
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text);
  background-color: var(--color-white);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
  vertical-align: middle;
}

h1,
h2,
h3,
h4 {
  color: var(--color-heading);
  line-height: 1.6;
  margin: 0 0 0.6em;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--color-primary-dark);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- ابزارهای عمومی ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

.section--tint {
  background-color: #fafbff;
}

.section__head {
  text-align: center;
  margin-bottom: 40px;
}

.section__title {
  font-size: 1.75rem;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

/* خط تزئینی طلایی زیر عنوان بخش‌ها */
.section__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 64px;
  height: 3px;
  border-radius: 3px;
  background: var(--color-gold);
}

.section__subtitle {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin: 0;
}

.section__cta {
  margin-top: 32px;
  text-align: center;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border: 2px solid transparent;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover,
.btn--primary:focus {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
}

.btn--outline {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--outline:hover,
.btn--outline:focus {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn--gold {
  background-color: var(--color-gold);
  color: #2a2205;
}

.btn--gold:hover,
.btn--gold:focus {
  background-color: #b18f1f;
  color: #2a2205;
}

.btn--blue {
  background-color: var(--color-primary);
  color: #fff;
}

.btn--blue:hover,
.btn--blue:focus {
  background-color: var(--color-primary-dark);
  color: #fff;
}

.btn--block {
  width: 100%;
}

/* ---------- هدر چسبان ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.header__inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-gold);
  font-weight: 800;
  font-size: 1.15rem;
  white-space: nowrap;
}

.brand:hover,
.brand:focus {
  color: var(--color-gold);
}

.brand__mark {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
}

.brand__text {
  line-height: 1.3;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-gold);
}

.brand__text small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 0.5px;
}

/* منوی ناوبری دسکتاپ */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav__link {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav__link:hover,
.nav__link:focus,
.nav__link.is-active {
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}

/* دکمه منوی همبرگری (فقط موبایل) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background-color: var(--color-white);
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  border-radius: 2px;
  background-color: var(--color-primary);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ---------- اسلایدر اصلی ---------- */
.slider {
  position: relative;
  overflow: hidden;
  direction: ltr;
}

.slider__track {
  display: flex;
  transition: transform 0.6s ease;
}

.slide {
  flex: 0 0 100%;
  min-height: 440px;
  display: flex;
  align-items: center;
  direction: rtl;
}

.slide--seal {
  background:
    radial-gradient(circle at 12% 20%, rgba(201, 162, 39, 0.16), transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #f7f4ea 100%);
}

.slide--services {
  background:
    radial-gradient(circle at 85% 20%, rgba(201, 162, 39, 0.35), transparent 50%),
    linear-gradient(135deg, #4064d7 0%, #2f4cb0 60%, #24397f 100%);
}

.slide--tourism {
  background:
    radial-gradient(circle at 15% 80%, rgba(201, 162, 39, 0.3), transparent 50%),
    linear-gradient(135deg, #1d6f5c 0%, #155843 60%, #0e3d2f 100%);
}

.slide__inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
  padding-top: 48px;
  padding-bottom: 48px;
}

.slide__seal {
  display: grid;
  place-items: center;
}

.slide__seal svg {
  width: min(280px, 64vw);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(143, 111, 20, 0.35));
}

.slide__title {
  font-size: 2.4rem;
  margin-bottom: 12px;
  color: var(--color-gold);
}

.slide__text {
  font-size: 1.05rem;
  color: var(--color-muted);
  margin-bottom: 24px;
  max-width: 520px;
  line-height: 2;
}

.slide__content--light .slide__title {
  color: #fff;
}

.slide__content--light .slide__text {
  color: rgba(255, 255, 255, 0.92);
}

.slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, transform 0.2s ease;
}

.slider__nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}

.slider__nav svg {
  width: 20px;
  height: 20px;
}

.slider__nav--prev {
  left: 18px;
}

.slider__nav--next {
  right: 18px;
}

.slider__dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.slide--seal ~ * .slider__dot,
.slider__dots--dark .slider__dot {
  background: rgba(0, 0, 0, 0.18);
}

.slider__dot.is-active {
  background: var(--color-gold);
  transform: scale(1.25);
}

/* ---------- کارت‌های خدمات ---------- */
.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card--hover:hover {
  transform: translateY(-5px);
  border-color: rgba(64, 100, 215, 0.35);
  box-shadow: var(--shadow-md);
}

.service-card {
  text-align: center;
  display: block;
  color: var(--color-text);
}

.service-card:hover,
.service-card:focus {
  color: var(--color-text);
}

.service-card__icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  display: grid;
  place-items: center;
}

.service-card__icon svg {
  width: 30px;
  height: 30px;
}

.service-card:hover .service-card__icon {
  background-color: var(--color-gold-light);
  color: var(--color-gold);
}

.service-card__title {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.service-card__text {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin: 0;
}

/* ---------- اخبار و رویدادها ---------- */
.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.news-card__thumb {
  height: 150px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.95);
  background: linear-gradient(135deg, #4064d7, #2f4cb0);
}

.news-card:nth-child(2) .news-card__thumb {
  background: linear-gradient(135deg, #c9a227, #a5841b);
}

.news-card:nth-child(3) .news-card__thumb {
  background: linear-gradient(135deg, #4064d7, #6a83e6);
}

.news-card__thumb svg {
  width: 48px;
  height: 48px;
}

.news-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card__date {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 6px;
}

.news-card__title {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.news-card__text {
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 14px;
}

.news-card__more {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---------- اطلاعیه‌ها ---------- */
.notice-list {
  display: grid;
  gap: 14px;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-right: 4px solid var(--color-gold);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.notice__icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  display: grid;
  place-items: center;
}

.notice__icon svg {
  width: 20px;
  height: 20px;
}

.notice__title {
  font-size: 1rem;
  margin: 0 0 4px;
}

.notice__date {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin: 0;
}

/* ---------- پروژه‌های شهری ---------- */
.project-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.project-card__title {
  font-size: 1.02rem;
  margin: 0;
}

.project-card__percent {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.95rem;
}

.project-card__text {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.progress {
  height: 10px;
  border-radius: 50px;
  background-color: #eef0f6;
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: 0;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-primary));
  transition: width 1.1s ease-out;
}

/* ---------- گالری علویجه گردی ---------- */
.gallery {
  gap: 18px;
}

.gallery__item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  color: inherit;
}

.gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery__thumb {
  height: 150px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.95);
}

.gallery__thumb svg {
  width: 52px;
  height: 52px;
}

.gallery__thumb--1 { background: linear-gradient(135deg, #5b7fe0, #2f4cb0); }
.gallery__thumb--2 { background: linear-gradient(135deg, #c9a227, #8c6f14); }
.gallery__thumb--3 { background: linear-gradient(135deg, #3aa88f, #1d6f5c); }
.gallery__thumb--4 { background: linear-gradient(135deg, #8a6fd6, #5b3fa8); }
.gallery__thumb--5 { background: linear-gradient(135deg, #e08a5b, #b05a2f); }
.gallery__thumb--6 { background: linear-gradient(135deg, #5ba8e0, #2f6fb0); }
.gallery__thumb--7 { background: linear-gradient(135deg, #7bc96f, #3f8f3a); }
.gallery__thumb--8 { background: linear-gradient(135deg, #d66f8a, #a83f5b); }

.gallery__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.92rem;
}

.gallery__caption em {
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-primary);
  white-space: nowrap;
}

/* ---------- رویدادها ---------- */
.event {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.event__date {
  flex: 0 0 62px;
  text-align: center;
  border-radius: 12px;
  background-color: var(--color-gold-light);
  color: #7a5f0d;
  padding: 8px 4px;
  line-height: 1.3;
}

.event__day {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
}

.event__month {
  font-size: 0.72rem;
}

.event__title {
  font-size: 1rem;
  margin: 0 0 4px;
}

.event__text {
  font-size: 0.87rem;
  color: var(--color-muted);
  margin: 0;
}

/* ---------- درباره / تب‌ها ---------- */
.about-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 26px;
}

.about-tabs__btn {
  padding: 10px 20px;
  border: 1px solid var(--color-border);
  border-radius: 50px;
  background-color: var(--color-white);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.about-tabs__btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.about-tabs__btn.is-active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.about-tabs__panel {
  display: none;
}

.about-tabs__panel.is-active {
  display: block;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.info-list li {
  position: relative;
  padding-right: 22px;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.info-list li::before {
  content: "";
  position: absolute;
  right: 4px;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-gold);
}

.panel-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

/* ---------- لینک‌های مرتبط ---------- */
.related-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.related-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  min-height: 88px;
  padding: 18px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.related-link:hover,
.related-link:focus {
  color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.related-link svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: var(--color-gold);
}

/* ---------- فرم تماس ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}

.form-row {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-heading);
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(64, 100, 215, 0.15);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background-color: #e9f7ef;
  border: 1px solid #b7e2c8;
  color: #1e7a44;
  font-size: 0.9rem;
  display: none;
}

.form-note.is-visible {
  display: block;
}

.contact-info li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 0.92rem;
}

.contact-info svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: var(--color-primary);
  margin-top: 4px;
}

/* ---------- فوتر ---------- */
.site-footer {
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding-top: 50px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 34px;
}

.footer__title {
  font-size: 1rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  position: relative;
}

.footer__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 38px;
  height: 2px;
  background-color: var(--color-gold);
}

.footer__text {
  font-size: 0.88rem;
  color: var(--color-muted);
}

.footer__links li {
  margin-bottom: 8px;
}

.footer__links a {
  font-size: 0.9rem;
  color: var(--color-text);
}

.footer__links a:hover,
.footer__links a:focus {
  color: var(--color-primary);
  padding-right: 4px;
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding: 18px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* ---------- واکنش‌گرایی (ریسپانسیو) ---------- */

/* تبلت */
@media (max-width: 992px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .slide__title {
    font-size: 2rem;
  }

  .slide__inner {
    grid-template-columns: 240px 1fr;
    gap: 32px;
  }
}

/* موبایل */
@media (max-width: 768px) {
  .nav-toggle {
    display: grid;
  }

  /* منوی کشویی موبایل */
  .nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 24px;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.1);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    padding: 13px 12px;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    font-size: 1rem;
  }

  .nav__link:last-child {
    border-bottom: none;
  }

  .slide {
    min-height: 380px;
  }

  .slide__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 40px;
    padding-bottom: 56px;
    text-align: center;
  }

  .slide__seal {
    order: -1;
  }

  .slide__seal svg {
    width: min(200px, 56vw);
  }

  .slide__text {
    margin-inline: auto;
  }

  .slide__title {
    font-size: 1.7rem;
  }

  .slider__nav {
    width: 38px;
    height: 38px;
  }

  .slider__nav--prev {
    left: 8px;
  }

  .slider__nav--next {
    right: 8px;
  }

  .section {
    padding: 48px 0;
  }

  .section__title {
    font-size: 1.45rem;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .related-links {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .brand__text small {
    display: none;
  }
}

/* موبایل کوچک */
@media (max-width: 420px) {
  .hero__actions .btn {
    width: 100%;
  }

  .notice {
    flex-direction: column;
    gap: 10px;
  }
}

/* احترام به تنظیم کاهش انیمیشن */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}

/* ---------- تصاویر آپلودی گالری و اسلایدر (از پنل مدیریت) ---------- */
.gallery__thumb {
  overflow: hidden;
}

.gallery__thumb img.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide--photo {
  position: relative;
  background-size: cover;
  background-position: center;
}

.slide--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20, 32, 70, 0.55), rgba(20, 32, 70, 0.3));
}

.slide--photo .slide__inner {
  position: relative;
  z-index: 1;
}

.slide--photo .slide__title {
  color: #fff;
}

.slide--photo .slide__text {
  color: rgba(255, 255, 255, 0.95);
}

/* ==========================================================================
   افزودنی‌های نسخه جدید: خبر فوری، کارت خبر، متن غنی و صفحات خبری
   ========================================================================== */

/* ------------------------------ نوار خبر فوری ------------------------------ */
.breaking {
  background: linear-gradient(90deg, #24397f, #4064d7);
  color: #fff;
}

.breaking__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}

.breaking__label {
  background-color: var(--color-gold);
  color: #4a3a08;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.breaking__text {
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ------------------------------ کارت خبر ---------------------------------- */
.news-card {
  position: relative;
}

.news-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card--featured {
  border: 2px solid var(--color-gold);
}

.news-card__flag {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 2;
  background-color: var(--color-gold);
  color: #4a3a08;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

/* ------------------------------ متن غنی ----------------------------------- */
.rich-text p {
  margin: 0 0 10px;
  line-height: 1.95;
}

.rich-text p:last-child {
  margin-bottom: 0;
}

.rich-text h2,
.rich-text h3 {
  margin: 14px 0 8px;
  color: var(--color-heading);
}

.rich-text ul,
.rich-text ol {
  padding-inline-start: 22px;
  margin: 8px 0;
}

.rich-text li {
  margin-bottom: 4px;
}

.rich-text img {
  max-width: 100%;
  border-radius: 12px;
}

.rich-text blockquote {
  border-inline-start: 3px solid var(--color-gold);
  padding-inline-start: 12px;
  color: var(--color-muted);
  margin: 10px 0;
}

.rich-text a {
  color: var(--color-primary);
}

/* --------------------------- صفحه آرشیو خبر -------------------------------- */
.news-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.news-pagination a,
.news-pagination span {
  display: inline-block;
  min-width: 40px;
  text-align: center;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background-color: #fff;
  color: var(--color-text);
  font-size: 0.88rem;
}

.news-pagination .is-active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ----------------------------- صفحه یک خبر -------------------------------- */
.post-single {
  padding: 30px 0 56px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 10px;
}

.breadcrumb a {
  color: var(--color-primary);
}

.post-single__title {
  font-size: 1.7rem;
  color: var(--color-heading);
  margin: 0 0 10px;
  line-height: 1.6;
}

.post-single__meta {
  color: var(--color-muted);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.post-single__image {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 4px 0 22px;
}

.post-single__body {
  font-size: 1.02rem;
  line-height: 2;
  color: var(--color-text);
}

.post-single__body h2,
.post-single__body h3 {
  color: var(--color-heading);
  margin: 20px 0 10px;
}

.post-single__body p {
  margin: 0 0 14px;
}

.post-single__body img {
  max-width: 100%;
  border-radius: 12px;
  margin: 10px 0;
}

.post-single__body ul,
.post-single__body ol {
  padding-inline-start: 24px;
  margin: 10px 0;
}

.post-single__body blockquote {
  border-inline-start: 4px solid var(--color-gold);
  padding-inline-start: 16px;
  color: var(--color-muted);
  margin: 16px 0;
}

.post-single__back {
  margin-top: 28px;
}
