.hero-judges {
  background-image: url("../img/officials-bg.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;

  position: relative;
  margin-bottom: 0;
  padding: 3.75rem;
  isolation: isolate;
}

.hero-judges::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: #7b1222;
  opacity: 0.5;
}

.hero-judges > h2 {
  font-family: "RobotoCondensed", Sans-serif;
  font-size: 1rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
}

@keyframes pushUp {
  from {
    transform: translateY(80px);
  }
  to {
    transform: translateY(0);
  }
}

.hero-judges > h1 {
  color: #fff;
  font-family: "KorolevBold", Sans-serif;
  font-size: 55px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.3em;
  letter-spacing: 0;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.76);
  text-align: center;
  animation: pushUp 1.5s ease-out;
}

.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-block: 2rem;
  gap: 2rem;
}

/* 🧱 Standardized container style */
.officials-section,
.officials-header {
  max-width: 1140px;
  width: 100%;
  padding-inline: 1rem;
  margin-inline: auto;
}

.officials-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.officials-header h4 {
  color: #7b1222;
  font-family: "KorolevBold", Sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.officials-header p {
  text-align: left;
  color: #1b325f;
  font-family: "RobotoCondensed", Sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
}

.officials-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1.5rem;
}

.officials-section h5 {
  color: #7b1222;
  font-family: "KorolevBold", Sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
}

.officials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 4rem;
  width: 100%;
  padding-inline: 1rem;
}

.officials-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: start;
  width: 100%;
  height: auto;
}

.officials-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.5rem;
}

.default-image {
  background-color: #1b325f;
}

.officials-card__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.5em;
}

.officials-card__content h3 {
  font-family: "KorolevBold", Sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0;
}

.officials-card__content p {
  color: #1b325f;
  font-family: "RobotoCondensed", Sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0px;
}

@media (width >=640px) {
  .officials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (width >=768px) {
  .officials-header p {
    text-align: left;
  }
}

@media (width >=1366px) {
  .officials-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
