/* =================== UPDATES SECTION =================== */
.updates-section {
  padding: 60px 15px;
  max-width: 1200px;
  margin: auto;
  position: relative;
  z-index: 1;
}

.updates-section h1 {
  font-size: 2rem;
  text-align: center;
  margin: 80px 0 40px;  /* ⬅ pushes it down */
  color: #ffffff;
  font-weight: bold;
}


.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* ensures 1 card per row on phones */
  gap: 20px;
}

.update-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.update-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.update-card img {
  width: 100%;
  height: 200px; /* smaller image height for mobile */
  object-fit: cover;
}

.update-content {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.update-content h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #4b0082;
  margin-bottom: 10px;
}

.update-content p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 12px;
}

.update-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 12px 0 6px;
}

.update-content ul {
  padding-left: 18px;
  margin: 0 0 12px;
}

.update-content ul li {
  margin-bottom: 5px;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
}

/* ================= RESPONSIVE ================= */
@media (min-width: 768px) {
  .updates-section h1 {
    font-size: 2.5rem;
    margin-bottom: 50px;
  }

  .update-card img {
    height: 220px;
  }

  .update-content h2 {
    font-size: 1.4rem;
  }

  .update-content p,
  .update-content ul li {
    font-size: 1rem;
  }
}
