.edg-progress-page h3 {
  font-weight: bold;
  padding: 10px 10px 10px 0;
}

.edg-progress-page p {
  line-height: 155%;
  padding-right: 10px;
}

.egd-block {
  display: flex;
  flex-direction: column;
  padding: 15px;
  margin: 15px 0;
}

.egd-block.incols {
  flex-direction: row;
}

.egd-block.blueme {
  background-color: #f3f5fb;
}

.egd-block a:focus {
  border: 2px solid gray;
}

.egd-block .left {
  flex: 1;
}

.egd-block .left .links {
  margin-bottom: 20px;
}

.egd-block .right {
  margin-top: 10px;
  margin-right: 10px;
}

.egd-block .right .egd-block-images img {
  min-width: 160px;
  max-width: 204px;
  transition: transform 0.7s ease-in-out;
}

.egd-block .right .egd-block-images img:hover {
  cursor: pointer;
  transform: scale(1.1);
}

.egd-block h5 {
  font-weight: bold;
}

.egd-block .block-mid {
  padding-top: 15px;
}

.egd-block .block-source {
  font-style: italic;
  font-size: 80%;
}

.accordion {
  margin: 18px 0;
}

.accordion .title {
  transition: transform 0.4s ease-in-out;
  display: inline-block;
}

.accordion .title:hover {
  cursor: pointer;
  font-weight: 600;
}

.accordion .egd-block {
  display: none;
}

.accordion .egd-block-text {
  padding: 10px;
}

.accordion .egd-block-text p {
  position: relative;
  padding-left: 20px;
  margin: 30px 0;
}

.accordion .egd-block-text p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background-color: #007bff;
  border-radius: 2px;
}

#zoomOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  display: none;
}

#zoomedImage {
  max-width: 90%;
  max-height: 90%;
  transform: scale(1);
  transition: transform 0.3s ease-in-out;
}

#zoomOverlay.show #zoomedImage {
  transform: scale(1.2);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

#results-by-thematic-area {
  padding-bottom: 50px;
}

.sdgs-footer img {
  max-width: 72px;
  transition: transform 0.3s ease-in-out;
}

.sdgs-footer img:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .egd-block {
    flex-direction: column !important; /* Stack items vertically on smaller screens */
  }

  .egd-block .left {
    order: 1; /* Keep the text first */
  }

  .egd-block .right {
    order: 2; /* Move the image to the bottom */
    margin-top: 20px; /* Optional: Adds spacing between text and image */
  }
}
