.index--section {
  width: 100%;
  padding: 30px 0px;
  display: flex;
  justify-content: center;
}

.sdg-detail {
  width: 100%;
}

.back-link {
  position: fixed;
  text-align: left;
  margin-top: 40px;
  display: inline-block;
  margin-bottom: 20px;
  color: #0077cc;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 1.3rem;
  background: rgb(255, 255, 255);
  width: 100%;
  padding-left: 20px;
}

.back-link:hover {
  color: #005999;
}


/* Tablets */
@media (max-width: 992px) {
  .back-link {
    font-size: 1.1rem;
    top: 15px;
    left: 15px;
  }
}

/* Phones */
@media (max-width: 576px) {
  .back-link {
    font-size: 0.8rem;   /* smaller text */
    top: 57px;         /* tighter padding */
    left: 0px;
  }
}

.sdg-header {
  margin: 80px 0 20px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* ✅ allows responsive wrapping */
  text-align: center;
}

.sdg-header .sdglogo-image {
  width: 900px;
  height: auto;
  max-width: 100%; /* ✅ responsive scaling */
}

.sdg-header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap; /* ✅ stack on smaller screens */
}

.sdg-image {
  max-width: 100px;
  height: auto;
  border-radius: 12px;
}

.sdg-title {
  font-size: 2rem;
  margin: 0;
  color: #222;
}

.sdg-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #444;
  text-align: justify;
  margin-top: 15px;
}

/* ✅ SDG list (cards) */
.achievements-section .container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 15px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.achievement-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 30px rgba(0,0,0,0.15);
}

.achievement-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.achievement-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.achievement-card:hover .achievement-image img {
  transform: scale(1.05);
}

.achievement-text {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.achievement-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0a2a66;
  margin-bottom: 8px;
  border-left: 5px solid #007bff;
  padding-left: 8px;
  word-break: break-word;
}

.achievement-description {
  flex-grow: 1;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

.achievement-date {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 5px;
}

.achievement-venue {
  font-size: 0.9rem;
  font-weight: 600;
  color: #007bff;
  margin-bottom: 10px;
}

.btn-view {
  margin-top: auto;
  align-self: stretch;
  text-align: center;
  background: #007bff;
  color: white;
  padding: 10px 0;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-view:hover {
  background: #0056b3;
  transform: scale(1.05);
}

/* ✅ Responsive Breakpoints */

/* Tablets (portrait & small laptops) */
@media (max-width: 992px) {
  .achievements-section .container {
    grid-template-columns: repeat(2, 1fr);
  }
  .sdg-title {
    font-size: 1.6rem;
  }
  .sdg-image {
    max-width: 80px;
  }
}

/* Phones & small tablets */
@media (max-width: 600px) {
  .achievements-section .container {
    grid-template-columns: 1fr;
  }
  .sdg-header {
    margin: 80px 0 15px 0;
    flex-direction: column;
    gap: 15px;
  }
  .sdg-header-row {
    flex-direction: column;
    gap: 10px;
  }
  .sdg-image {
    max-width: 80px;
  }
  .sdg-title {
    font-size: 1.3rem;
  }
  .sdg-description {
    font-size: 0.95rem;
    text-align: left; /* easier to read on phones */
  }
}
