.courses-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    padding: 30px 20px;
    background: #f9f9f9;
}

.course-card {
    flex: 1 1 calc(33.333% - 40px);
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 350px;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
}

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #157347;
    margin: 16px 16px 8px;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 6px 16px 12px;
    font-size: 14px;
    align-items: center;
}

.course-meta span {
    color: #28a745;
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-card p {
    margin: 4px 16px 16px;
    font-size: 15px;
    color: #333;
    line-height: 1.5;
}

.course-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 16px 0 24px;
    flex-wrap: wrap;
}

.course-buttons .btn {
    background-color: #28a745;
    color: white;
    border-radius: 9px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease;
    min-width: 110px;
}

.course-buttons .btn:hover {
    background-color: #218838;
}

@media (max-width: 1024px) {
    .course-card {
        flex: 1 1 calc(50% - 40px);
    }
}

@media (max-width: 640px) {
    .course-card {
        flex: 1 1 100%;
    }

    .course-card img {
        height: 180px;
    }

    .course-card h3 {
        font-size: 18px;
    }

    .course-card p,
    .course-meta {
        font-size: 14px;
    }

    .course-buttons .btn {
        font-size: 14px;
        padding: 9px 14px;
    }

.payment-scroll-container {
  display: flex;
  flex-wrap: wrap;               /* Allow wrapping instead of scrolling */
  gap: 12px;                     /* Space between images */
  padding: 10px 0;
  justify-content: center;      /* Center images horizontally */
}

.payment-scroll-container button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  flex: 0 0 auto;
  text-align: center;
}

.payment-icon {
  width: 55px;                   /* Reduced size */
  height: auto;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.payment-icon:hover {
  transform: scale(1.05);
}
}