/* COURSE CARD CONTAINER */
.course-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* THUMBNAIL */
.course-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    /* Fixed height for consistency */
    overflow: hidden;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-thumbnail img {
    transform: scale(1.05);
}

/* CONTENT CONTAINER */
.course-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* META ROW */
.course-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

/* CATEGORY */
.course-category {
    font-size: 23px;
    font-weight: 600;
    color: #334155;
    /* Dark Slate */
    margin: 0;
    font-family: 'nunito sans';
}

/* PRICE */
.course-price {
    font-size: 23px;
    font-weight: 700;
    color: #5eaeb8;
    font-family: 'nunito sans';
    /* Light Blue/Teal from design */
}

/* TITLE */
.course-title {
    margin: 0 0 16px 0;
    font-size: 23px;
    line-height: 1.4;
    font-weight: 700;
    color: #202b5d;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 75px;
    font-family: 'nunito sans';
    /* Ensure consistent height for titles */
}

.course-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.course-title a:hover {
    color: #3b82f6;
}

/* EXCERPT REMOVED IN REDESIGN */

/* FOOTER */
.course-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    /* Push to bottom */
    padding-top: 16px;
}

/* BUTTON - UPDATED STYLE */
.course-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #64748b;
    /* Slate 500 */
    color: #fff;
    padding: 33px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 23px;
    transition: background-color 0.2s;
    height: 44px;
    font-family: 'nunito sans';
}

.course-button:hover {
    background-color: #475569;
    /* Slate 600 */
    color: #fff;
}

/* DIFFICULTY FLAG */
.course-difficulty-flag {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 23px;
    font-weight: 700;
    color: #334155;
    font-family: 'nunito sans';
}

.difficulty-icon svg {
    display: block;
    width: 30px;
    height: 65px;
}