.sdg-container {
  position: relative;
  font-family: 'Arial', sans-serif;
  /* background-color: #e21111; */
  color: #333;
  padding-bottom: 20px;
  margin-top: 70px;

}

/* Header */
.sdg-header {
  /* margin-top: 120px; */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.sdg-header .sdglogo-image {
  max-width: 100%;
  height: auto;
}

/* SDG Grid */
.sdg-list {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 0 300px; /* desktop default */
}

/* SDG Card */
.sdg-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
  background-color: white;
}

.sdg-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.sdg-card img.sdg-image {
  max-width: 180px;
  height: auto;
  margin-bottom: 10px;
}

.sdg-card h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

/* =========================
   RESPONSIVE BREAKPOINTS
   ========================= */

/* Medium desktops & laptops */
@media (max-width: 1200px) {
  .sdg-list {
    padding: 0 150px;
  }

  .sdg-header .sdglogo-image {
    max-width: 600px;
  }
}

/* Tablets (landscape + portrait) */
@media (max-width: 992px) {
  .sdg-list {
    padding: 0 60px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .sdg-header .sdglogo-image {
    max-width: 500px;
  }

  .sdg-card img.sdg-image {
    max-width: 150px;
  }
}

/* Phones */
@media (max-width: 576px) {
  .sdg-list {
    margin-top: 40px;
    padding: 0 20px; /* reduce to look cleaner */
    grid-template-columns: 1fr;
  }

  .sdg-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 90px;
    padding-top: 20px;
  }

  .sdg-header .sdglogo-image {
    /* max-width: 300px;   a bit smaller so it matches the grid */
    width: 100%;
    height: auto;
    margin: 0 auto;     /* centers inside flex */
  }

  .sdg-card img.sdg-image {
    max-width: 100px;
  }

  .sdg-card h2 {
    font-size: 1rem;
  }
}

