/* ==========================================================================
   Course listing (/courses) — tighter grid, better space usage
   ========================================================================== */

/* Trim the section's top/bottom whitespace without touching .ptb-50 globally */
.course-three.ptb-50 {
    padding-top: 30px;
    padding-bottom: 40px;
}

/* Tighter, gap-based grid instead of per-column margin-bottom */
.course-three .row {
    --bs-gutter-x: 1.25rem;
    row-gap: 22px;
}

.course-three .single-course-box {
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(91, 33, 182, .08);
    transition: transform .3s ease, box-shadow .3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-three .single-course-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(91, 33, 182, .18);
}

.course-three .course-thumb img {
    transition: transform .4s ease;
}

.course-three .single-course-box:hover .course-thumb img {
    transform: scale(1.05);
}

.course-three .course-content {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-three .course-content h3 {
    margin-bottom: 6px;
}

.course-three .course-content h3 a {
    font-size: 18px;
    line-height: 1.35;
}

.course-three .post-date {
    margin-top: 6px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    gap: 12px;
}

.course-three .course-content .theme-btn {
    padding: 10px 20px;
    font-size: 14px;
    margin-top: auto;
}
