.government-procedures {
  padding: clamp(36px, 4vw, 60px) 0;
  border-block: 1px solid #e4e9e2;
  background: #f5f7f3;
  color: #061a31;
  scroll-margin-top: 84px;
}

.government-procedures__shell {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(22px, 4.2vw, 64px);
}

.government-procedures__header {
  margin-bottom: 24px;
}

.government-procedures__header h2 {
  margin: 0;
  color: #06172e;
  font-family: "Poppins", sans-serif;
  font-size: clamp(29px, 3.2vw, 46px);
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: -.03em;
}

[dir="rtl"] .government-procedures__header h2 {
  letter-spacing: normal;
}

.government-procedures__header p {
  max-width: 84ch;
  margin: 12px 0 0;
  color: #425360;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  text-wrap: pretty;
}

.government-procedures__marquee {
  overflow: hidden;
  padding-block: 10px;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.government-procedures__track {
  display: flex;
  width: max-content;
  direction: ltr;
  animation: government-logo-scroll 42s linear infinite;
}

/* Each identical set includes its trailing gap for a seamless join. */
.government-procedures__set {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 48px;
  margin: 0;
  padding: 0 48px 0 0;
  list-style: none;
}

.government-procedures__set li {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 176px;
  width: 176px;
  height: 104px;
}

.government-procedures__set img {
  display: block;
  width: 150px;
  height: 94px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .75;
  transition: opacity .25s, transform .25s;
}

.government-procedures__set .government-procedures__compact-logo { width: 100px; height: 94px; }
.government-procedures__set li:hover img { opacity: 1; transform: scale(1.05); }
.government-procedures__marquee:hover .government-procedures__track { animation-play-state: paused; }

/* Keep entity names available to screen readers without repeating logo captions. */
.government-procedures__set li > span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes government-logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 600px) {
  .government-procedures__set { gap: 28px; padding-right: 28px; }
  .government-procedures__set li { flex-basis: 132px; width: 132px; height: 88px; }
  .government-procedures__set img { width: 120px; height: 82px; }
  .government-procedures__set .government-procedures__compact-logo { width: 82px; height: 82px; }
}

@media (prefers-reduced-motion: reduce) {
  .government-procedures__marquee { overflow: visible; mask-image: none; }
  .government-procedures__track { width: auto; animation: none; }
  .government-procedures__set { width: 100%; flex-wrap: wrap; justify-content: center; gap: 18px; padding: 0; }
  .government-procedures__set[aria-hidden="true"] { display: none; }
  .government-procedures__set img { transition: none; }
  .government-procedures__set li:hover img { transform: none; }
}
