/* Training list catalog styles - ported from the inline <style> block
   in src/pages/traininglist.jsx.
   The page wrapper/filter-bar styling now reuses courses.php's own
   classes (results-bar, section-heading, etc.) directly, so only the
   card-specific rules remain here. */

.course-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.course-card {
    width: 380px;
    height: 220px;
    background: linear-gradient(135deg, #0f9bb0, #087b8d);
    border-radius: 22px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: 0.3s ease;
    box-shadow: 0 10px 25px rgba(15, 155, 176, 0.18);

    display: flex;
    flex-direction: column;
    justify-content: center;

    flex-shrink: 0;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(15, 155, 176, 0.28);
}

.course-card::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: -30px;
    right: -30px;
}

.course-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

.text-decoration-none {
    text-decoration: none;
}

.course-name {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.course-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.90);
    line-height: 1.6;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;

    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.course-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.20);
    padding: 6px 12px;
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}
