/* OPTION 1 */

.page-header h1 {
    margin-bottom: 8px;
}

.courses-title {
    margin: 0 0 16px 0;
}

.courses {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ========================================
   COURSE CARD
   ======================================== */

.course-card {
    display: flex;
    align-items: center;

    min-height: 145px;
    width: 100%;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;

    color: inherit;
    text-decoration: none;

    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -2px rgba(0, 0, 0, 0.05);

    transition:
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.course-card:hover {
    border-color: #cbd5e1;

    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.08),
        0 4px 6px -4px rgba(0, 0, 0, 0.08);

    transform: translateY(-1px);
}


/* ========================================
   COURSE IMAGE
   ======================================== */

.course-image {
    flex: 0 0 95px;

    width: 110px;
    height: 130px;

    margin: 18px 24px;

    overflow: hidden;

    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.course-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* ========================================
   COURSE INFORMATION
   ======================================== */

.course-info {
    display: flex;
    gap: 22px;

    flex: 1;
    min-width: 0;

    padding: 20px 0;
}

.course-number {
    flex-shrink: 0;

    padding-top: 3px;

    font-size: 13px;
    font-weight: 600;

    color: #94a3b8;
}

.course-details {
    min-width: 0;
}

.course-details h3 {
    margin: 0 0 6px 0;

    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;

    color: #0f172a;
}

.course-description {
    margin: 0;

    font-size: 15px;
    line-height: 1.5;

    color: #64748b;
}

.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    margin-top: 12px;
}

.course-tags span {
    padding: 3px 8px;

    background: #f1f5f9;
    border-radius: 5px;

    font-size: 11px;
    font-weight: 500;

    color: #475569;
}


/* ========================================
   EXPLORE
   ======================================== */

.course-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    flex: 0 0 115px;
    align-self: stretch;

    background: #f8fafc;
    border-left: 1px solid #e2e8f0;

    font-size: 14px;
    font-weight: 600;

    color: #002554;
}

.course-arrow {
    font-size: 18px;
}


/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 700px) {

    .course-card {
        flex-wrap: wrap;
    }

    .course-image {
        flex: 0 0 75px;

        width: 75px;
        height: 85px;

        margin: 18px 0 18px 20px;
    }

    .course-info {
        flex: 1;
        padding: 18px 20px 18px 16px;
    }

    .course-action {
        flex: 0 0 100%;
        min-height: 50px;

        border-left: none;
        border-top: 1px solid #e2e8f0;
    }
}