/* Courses */
.lp-courses {
    --lp-green: #0C3B2E;
    --lp-sage: #6D9773;
    --lp-bronze: #BB8A52;
    --lp-muted: #4B5D57;

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 56px;
}

.teacher-section .lp-courses {
    margin-top: 0;
}

.lp-course {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(12, 59, 46, 0.08);
    transition: transform 0.25s, box-shadow 0.25s;
}

.lp-course:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(109, 151, 115, 0.25);
}

.lp-course-media {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--lp-sage), var(--lp-green));
    color: rgba(255, 255, 255, 0.8);
    font-size: 2.5rem;
}

.lp-course-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lp-course-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
    padding: 24px;
}

.lp-course-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.lp-course-body h3 {
    min-width: 0;
    font-size: 1.2rem;
    overflow-wrap: anywhere;
}

.lp-course-body p {
    color: var(--lp-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.lp-course-meta {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 8px;
    white-space: nowrap;
    color: var(--lp-bronze);
    font-weight: 600;
    font-size: 0.9rem;
}

.lp-course-arrow {
    color: var(--lp-green);
    transition: transform 0.25s;
}

.lp-course:hover .lp-course-arrow {
    transform: translateX(4px);
}
