/* Home news alignment: preserve desktop three-column layout without changing mobile. */
@media (min-width: 1131px) {
  .section-news .news-layout > .news-list {
    justify-content: space-between;
    min-width: 0;
  }
  .section-news .news-list-item {
    min-width: 0;
  }
  .section-news .news-list-item > div {
    min-width: 0;
  }
}

/* Centriranje i optimalno proporcionalno uklapanje fotografija na vijestima */
.main-news {
  display: flex;
  flex-direction: column;
}

.main-news-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto !important;
  min-height: 220px;
  max-height: 275px;
  background: #eef3f7;
  overflow: hidden;
  position: relative;
  border-radius: 8px 8px 0 0;
}

.main-news-image img,
.main-news-photo {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block;
  transition: transform .3s ease;
}

.main-news-image:hover img,
.main-news-image:hover .main-news-photo {
  transform: scale(1.025);
}

.news-list-item {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 75px;
}

.news-list-image {
  width: 105px;
  height: 75px;
  border-radius: 7px;
  overflow: hidden;
  background: #eef3f7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.news-list-image img,
.news-list-photo {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block;
  transition: transform .25s ease;
}

.news-list-item:hover .news-list-image img,
.news-list-item:hover .news-list-photo {
  transform: scale(1.04);
}

/* Sekcija: Upoznajte potencijale Kalesije (3 kartice po uzoru na moderni općinski izlog) */
.section-potentials {
  background: var(--wash, #f4f8fb);
  border-bottom: 1px solid var(--line, #e0e9f0);
}

.potentials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.potential-card {
  background: #ffffff;
  border: 1px solid #e6edf3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(12, 48, 78, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.potential-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(12, 48, 78, 0.12);
  border-color: #c5d9e8;
}

.potential-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #e6eff5;
  overflow: hidden;
}

.potential-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform .35s ease;
}

.potential-card:hover .potential-card-image img {
  transform: scale(1.035);
}

.potential-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.potential-card-body h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 760;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--navy, #092d50);
}

.potential-card-body h3 a:hover {
  color: var(--blue, #0d4e83);
}

.potential-card-body p {
  margin: 0 0 16px;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--muted, #597083);
}

.potential-card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--blue, #0d4e83);
  transition: gap .18s ease, color .18s ease;
}

.potential-card:hover .potential-card-link {
  color: var(--navy, #092d50);
  gap: 10px;
}

@media (max-width: 960px) {
  .potentials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .potentials-grid {
    grid-template-columns: 1fr;
  }
}
