.map-container {
  position: relative;
  width: 1360px;
  height: 665px;
  background-image: url('../images/WorldMap.webp');
  background-size: cover;
  margin-left: -100px;
  overflow: hidden;
}

.marker {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 2;
}

.marker a{
  color: #fff !important;
}

.marker-label,
.marker-label-office {
  color: white;
  font-family: sans-serif;
  font-size: 13px;
  font-weight: bold;
  padding: 4px 4px;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.marker-label {
  background: #8dbf41;
}

.marker-label-office {
  background: #31353d;
}

.marker-dot,
.marker-dot-office {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  position: absolute;
  top: 100%;
  left: 50%;
  margin-top: 5px;
  transform: translate(-50%, 0);
  transition: background 0.2s, transform 0.2s;
}

.marker-dot {
  background: #8dbf41;
}

.marker-dot-office {
  background: #31353d;
}

.marker:hover .marker-label,
.marker.hovered .marker-label {
  background: #31353d;
}

.marker:hover .marker-dot,
.marker.hovered .marker-dot {
  background: #31353d;
  transform: translate(-50%, -2px) scale(1.2);
}

.marker:hover .marker-label-office,
.marker.hovered .marker-label-office {
  background: #8dbf41;
}

.marker:hover .marker-dot-office,
.marker.hovered .marker-dot-office {
  background: #8dbf41;
  transform: translate(-50%, -2px) scale(1.2);
}

.label-left-up,
.label-right,
.label-top,
.label-left,
.label-croatia,
.label-croatia2 {
  position: absolute;
}

.label-left-up {
  left: -10px;
  top: -10px;
  transform: translate(-100%, -100%);
}

.label-right {
  left: 10px;
  top: 50%;
}

.label-top {
  left: 50%;
  transform: translate(-50%, -100%);
}

.label-croatia {
  left: 50%;
  transform: translate(-113%, 23%);
}

.label-croatia2 {
  left: 50%;
  transform: translate(-98%, 100%);
}

.label-left {
  left: -10px;
  top: 50%;
  transform: translate(-100%, -50%);
}

.maxko-info-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #efefef;
  color: #1a1a1a;
  padding-top: 22px;
  flex-wrap: wrap;
  gap: 30px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.info-item {
  text-align: center;
  min-width: 200px;
  color: #31353d;
}

.info-title {
  font-size: 24px;
  font-weight: bold;
  color: #8dbf41;
  margin-bottom: 5px;
}

.info-subtitle {
  font-size: 16px;
  font-weight: 600;
}

.info-desc {
  font-size: 13px;
  margin-top: 5px;
}

.legend-box {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  color: #1a1a1a;
  background-color: #efefef;
  padding: 12px 18px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.legend-dot,
.legend-dc,
.legend-office {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  position: relative;
  top: 1px;
}

.legend-dc {
  background-color: #8dbf41;
}

.legend-office {
  background-color: #31353d;
}

.partners-section {
  background: #f5f5f5;
  padding: 60px 20px;
  text-align: center;
}

.partner-block {
  background: #efefef;
  padding: 40px 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  max-width: 1300px;
  margin: 0 30px 40px;
}

.partner-block h3 {
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8dbf41;
}

.logos-grid,
.logos-grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 30px;
  justify-items: center;
  align-items: center;
}

.logos-grid img {
  width: 150px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.logos-grid2 img {
  width: 200px;
  height: 70px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logos-grid img:hover,
.logos-grid2 img:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .partner-block {
    padding: 30px 20px;
  }

  .logos-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
  }

  .logos-grid img {
    max-height: 60px;
  }

  .legend-box {
    font-size: 12px;
    padding: 10px 14px;
  }

  .marker-label,
  .marker-label-office {
    font-size: 11px;
    padding: 3px 5px;
  }

  .maxko-info-bar {
    padding-top: 15px;
    gap: 20px;
  }

  .info-title {
    font-size: 18px;
  }

  .info-subtitle {
    font-size: 13px;
  }

  .info-desc p {
    font-size: 12px;
    margin-top: 3px;
  }
}

@media only screen and (max-width: 991px) and (orientation: landscape) {
  .logos-grid img {
    width: 120px;
    height: 60px;
  }

  .logos-grid {
    gap: 10px;
  }

  .map-container {
    margin-left: -230px;
  }

  .maxko-info-bar {
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: space-between;
    padding: 20px;
  }

  .info-item {
    min-width: 20%;
  }

  .partner-block {
    margin-right: 0px;
  }

  .info-title {
    font-size: 18px;
  }

  .info-subtitle {
    font-size: 13px;
  }
}

@media only screen and (max-width: 768px) and (orientation: portrait) {
  .logos-grid img {
    width: 90px;
    height: 45px;
  }

  h2 .h3 {
    font: normal 14px/14px Open Sans;
  }

  .partner-block h2 {
    font-size: 22px;
  }

  .partner-block h3 {
    font-size: 18px;
  }

  .partner-block {
    margin-left: 0px;
    margin-right: 0px;
  }

  .map-container {
    margin-left: -530px;
  }

  h2 {
    font: normal 30px/30px Open Sans;
    color: #363f45;
  }
}

@media (hover: none) and (pointer: coarse) {
  .logos-grid img:hover {
    transform: none;
  }
}

.latest-news-section {
  text-align: center;
  margin: 60px 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  justify-items: center;
}

.news-item {
  width: 100%;
  max-width: 260px;
  background: #f8f8f8;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  transition: 0.3s;
}

.news-item:hover {
  transform: translateY(-5px);
}

.news-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
}

.news-item h3 {
  font-size: 18px;
  margin-top: 15px;
  margin-bottom: 5px;
}

.news-date {
  display: block;
  font-size: 14px;
  color: #777;
  margin-bottom: 10px;
}

.news-item p {
  font-size: 14px;
  color: #555;
}

@media (max-width: 991px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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