/* =========================
   COURSES - VERTICAL LIST (Responsive)
========================= */

.courses-vertical {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* Make sure cards take full width properly */
.courses-vertical .card {
  width: 100%;
  max-width: 100%;
  padding: 20px;
  box-sizing: border-box;
  transition: 0.3s;
}

/* Improve card spacing and readability on mobile */
.courses-vertical .card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.courses-vertical .card p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Buttons inside courses */
.courses-vertical .btn-primary {
  padding: 10px 16px;
  font-size: 0.95rem;
  border-radius: 6px;
  margin-top: 12px;
  display: inline-block;
}

/* Hover effect for better UX */
.courses-vertical .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(88, 166, 255, 0.25);
}

/* =========================
   RESPONSIVE IMPROVEMENTS
========================= */

/* Small mobile screens */
@media (max-width: 480px) {
  .courses-vertical {
    gap: 16px;
  }

  .courses-vertical .card {
    padding: 18px;
  }

  .courses-vertical .card h3 {
    font-size: 1.15rem;
  }

  .courses-vertical .btn-primary {
    padding: 9px 14px;
    font-size: 0.9rem;
    width: 100%;           /* Full width button on very small screens */
    text-align: center;
  }
}

/* Tablets */
@media (min-width: 481px) and (max-width: 768px) {
  .courses-vertical .card {
    padding: 22px;
  }

  .courses-vertical .btn-primary {
    padding: 10px 18px;
  }
}

/* Large screens - optional max width for better readability */
@media (min-width: 1024px) {
  .courses-vertical {
    max-width: 900px;
    margin: 0 auto;        /* Center the courses section */
  }
}