/* 3‑column grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

/* Card styling */
.course-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.course-link {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 1rem;
}

/* Force all featured images to have identical dimensions */
.course-image {
    width: 100%;
    height: 200px;          /* Fixed height – adjust as needed */
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* Ensures the image covers the area without distortion */
    display: block;
}

/* Typography */
.entry-title {
    font-size: 2.25rem;
    margin: 0.75rem 0 0.25rem;
    color:rgb(172, 2, 2)
}

.course-instructor {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 0.5rem;
    font-weight: normal;
}

.course-excerpt {
    font-size: 1.5rem;
    line-height: 1.4;
    color: #333;
    margin-top: 0.5rem;
}

/* Responsive: 2 columns on tablets, 1 on mobile */
@media (max-width: 768px) {
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .course-grid {
        grid-template-columns: 1fr;
    }
}