:root {
  --city-blue: #10599c;
  --city-green: #159464;
  --city-gold: #f0b429;
  --ink: #1f2933;
  --muted: #667085;
  --line: #e5e7eb;
  --soft: #f7fafc;
}

html { font-size: 15px; }

body {
  margin: 0;
  font-family: Vazirmatn, Tahoma, sans-serif;
  color: var(--ink);
  background: #fff;
}

a { color: inherit; text-decoration: none; }

.top-strip {
  background: var(--city-blue);
  color: #fff;
  font-size: .9rem;
  padding: .55rem 0;
}

.premium-navbar { padding: 12px 0; }

.navbar-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand-text {
  font-weight: 800;
  color: var(--city-blue);
  white-space: nowrap;
}

.nav-search {
  justify-content: space-between;
  width: 80%;
}

.main-menu { gap: .35rem; }

.main-menu .nav-link {
  border-radius: 6px;
  color: #253858;
  font-weight: 600;
  padding: .65rem .9rem;
}

.main-menu .nav-link:hover {
  background: #eef6ff;
  color: var(--city-blue);
}

.nav-item { position: relative; }

.submenu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 210px;
  margin: 0;
  padding: .5rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(16, 24, 40, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .2s ease;
  z-index: 20;
}

.nav-item:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu a {
  display: block;
  padding: .65rem .75rem;
  border-radius: 6px;
}

.submenu a:hover {
  background: var(--soft);
  color: var(--city-blue);
}

.tool-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--city-blue);
}

.header-search-wrapper { position: relative; }

.search-input {
  position: absolute;
  top: 52px;
  left: 0;
  width: 260px;
  padding: .7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(16, 24, 40, .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .2s ease;
  z-index: 30;
}

.search-input.search-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero-slide {
  min-height: 520px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 89, 156, .2), rgba(9, 34, 66, .78));
}

.hero-content {
  position: relative;
  max-width: 680px;
  color: #fff;
  padding: 3rem 0;
}

.hero-content span,
.section-heading span,
.mayor-box span {
  color: var(--city-gold);
  font-weight: 800;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 900;
  line-height: 1.35;
  margin: .75rem 0 1rem;
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 2;
}

.hero-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.hero-actions a,
.mayor-box a,
.search-page-form button,
.contact-form button {
  background: var(--city-green);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: .8rem 1.2rem;
  font-weight: 800;
}

.hero-actions a + a {
  background: #fff;
  color: var(--city-blue);
}

.manual-container-section { padding: 3.5rem 0; }

.quick-links {
  padding: 0;
  margin-top: -42px;
  position: relative;
  z-index: 5;
}

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

.quick-item,
.service-card,
.manual-container,
.news-card,
.search-result {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, .08);
}

.quick-item,
.service-card {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  align-items: center;
  justify-content: center;
  color: var(--city-blue);
  font-weight: 800;
}

.quick-item i,
.service-card i {
  font-size: 1.8rem;
  color: var(--city-green);
}

.section-heading { margin-bottom: 1.75rem; }

.section-heading h2 {
  font-weight: 900;
  margin-top: .45rem;
}

.services-section,
.media-section,
.inner-page { background: var(--soft); }

.news-card {
  overflow: hidden;
  height: 100%;
}

.news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.news-card-body { padding: 1.2rem; }

.news-card-body span {
  color: var(--muted);
  font-size: .9rem;
}

.news-card h2,
.news-card h3 {
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.8;
  margin: .5rem 0;
}

.news-card p,
.manual-container p,
.search-result p {
  color: var(--muted);
  line-height: 2;
}

.mayor-box {
  display: grid;
  grid-template-columns: 1fr 320px;
  align-items: center;
  gap: 2rem;
  background: #123a5f;
  color: #fff;
  border-radius: 8px;
  padding: 2rem;
  overflow: hidden;
}

.mayor-box h2 { font-weight: 900; }

.mayor-box p {
  line-height: 2;
  color: #e6edf5;
}

.mayor-box img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.media-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
}

.media-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
}

.page-title-band {
  background: linear-gradient(135deg, var(--city-blue), #123a5f);
  color: #fff;
  padding: 3rem 0;
}

.page-title-band h1 { font-weight: 900; }

.manual-container,
.search-result { padding: 1.5rem; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.info-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.info-grid strong,
.info-grid span { display: block; }

.content-cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.related-link {
  display: block;
  padding: 1rem;
  margin-bottom: .75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.side-menu ul,
.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-menu li,
.footer-links li,
.footer-contact li { padding: .55rem 0; }

.footer-contact li {
  display: flex;
  gap: .65rem;
  align-items: center;
}

.search-page-form,
.contact-form {
  display: grid;
  gap: .75rem;
  max-width: 680px;
}

.search-page-form {
  grid-template-columns: 1fr auto;
  margin-top: 1.25rem;
}

.search-page-form input,
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .85rem 1rem;
  font: inherit;
}

.minimal-footer {
  background: #102a43;
  color: #e6edf5;
  padding-top: 3rem;
}

.footer-brand {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.footer-widget-title,
.footer-brand h3 {
  color: #fff;
  font-weight: 900;
}

.footer-about,
.footer-contact,
.footer-links { color: #cbd5e1; }

.footer-social {
  display: flex;
  gap: .6rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .08);
  border-radius: 50%;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 2rem;
  padding: 1rem 0;
}

.mobile-menu-panel-container { display: none; }

@media (max-width: 991.98px) {
  .nav-search { width: auto; }

  #mainMenu {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 1050;
    padding: 0;
  }

  .mobile-menu-panel-container { display: block; }

  .mobile-menu-header {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    border-bottom: 1px solid var(--line);
  }

  .mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .mobile-menu-link {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
  }

  .quick-grid,
  .info-grid,
  .media-grid,
  .mayor-box { grid-template-columns: 1fr; }

  .hero-slide { min-height: 460px; }
}

@media (max-width: 575.98px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .search-page-form { grid-template-columns: 1fr; }
}
