.course-item-three {
    display: flex !important;
    flex-direction: column;
    border: none;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.course-item-three:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.course-item-three .course-img {
    min-height: 200px;
    overflow: hidden;
    position: relative;
    background-color: #f8f9fa;
}

.course-item-three .course-img img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-item-three:hover .course-img img {
    transform: scale(1.05);
}

.course-item-three .course-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.course-item-three .course-content .title {
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.course-item-three .course-content .title a {
    color: #2c3e50;
    transition: color 0.3s;
    text-decoration: none;
}

.course-item-three .course-content .title a:hover {
    color: #ff4f01;
}

.course-item-three .course-content .course-info {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #6c757d;
}

.course-item-three .course-content .button-container {
    margin-top: 0;
}

.badge-custom {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    font-weight: 600;
}

/* Fix for category icon symmetry */
.categories-item-two .categories-icon {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.categories-item-two .categories-icon img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}