.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem auto;
  max-width: 1200px;
  padding: 0 1rem;
}

.course-item {
  /* linear-gradient(135deg, #ff5e62  0%,  #ff9966 100%); */
  background: #fb5168;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.6s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.course-title {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.course-link {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.9);
  color: #fb5168;
  padding: 0.8rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.course-link:hover {
  transform: translateY(-2px);
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@media screen and (max-width: 768px) {
  #courses-list {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .courses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    justify-items: center;
  }

  .course-item,
  .course-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    box-sizing: border-box;
  }
}
