body {
    font-family: 'Monadi';
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center; /* Centers the columns themselves */
    justify-items: center;
}

.course-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-image img {
    width: 100%;
    height: auto;
    display: block;
}

.course-info {
    padding: 15px;
    text-align: center;
}

.course-info h2 {
    margin: 0 0 10px;
    font-size: 1.2em;
}

.course-price {
    font-weight: bold;
    color: #007bff; /* A nice blue color for the price */
    margin: 0;
}

.course-provider {
    color: #777;
    font-size: 0.9em;
}

/* Responsive design for smaller screens */
@media (max-width: 1024px) {
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .course-grid {
        grid-template-columns: 1fr;
    }
}


.loader {
  width: 48px;
  height: 48px;
  border: 5px solid #e0e0e0;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.loader {
  display: none;
  width: 40px;
  height: 40px;
  margin: 40px auto;
  border: 4px solid #ddd;
  border-top: 4px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
