.nsc-latest-updates {
    padding: 64px 24px;
    background: #FBFCFC;
}

.nsc-latest-updates__inner {
    max-width: 1464px;
    margin: 0 auto;
}

.nsc-latest-updates .nsc-hp-overline {
    font-size: 18px;
    font-weight: 350;
    line-height: 23px;
}

.nsc-latest-updates .nsc-hp-heading {
    margin-bottom: 32px;
}

.nsc-latest-updates__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.nsc-latest-updates__grid[data-card-count="1"] {
    grid-template-columns: 1fr;
}

.nsc-latest-updates__grid[data-card-count="2"] {
    grid-template-columns: repeat(2, 1fr);
}

a.nsc-update-card {
    display: flex;
    flex-direction: column;
    padding: 32px;
    border: 2px solid #F0F3F3;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s;
}

a.nsc-update-card:hover {
    border-color: #00A2C6;
}

a.nsc-update-card:hover .nsc-update-card__title {
    text-decoration: underline;
}

.nsc-update-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.nsc-update-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'GT Eesti Display', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #333F48;
    background: #f3f9ee;
    border: 1px solid #8bc058;
    border-radius: 999px;
    height: 32px;
    min-width: 32px;
    padding: 0 8px;
    line-height: 19px;
}

.nsc-update-card__chevron {
    width: 7px;
    height: 12px;
    flex-shrink: 0;
}

.nsc-update-card__title {
    font-size: 22px;
    font-weight: 400;
    color: #333F48;
    margin: 0 0 8px;
    line-height: 29px;
}

.nsc-update-card__excerpt {
    font-size: 18px;
    font-weight: 350;
    color: #333F48;
    margin: 0;
    line-height: 23px;
    flex: 1;
}

.nsc-featured-course {
    border: 2px solid #F0F3F3;
    background: #fff;
    overflow: visible;
    transition: border-color 0.2s;
    margin-top: 32px;
}

.nsc-featured-course:hover {
    border-color: #00A2C6;
}

.nsc-featured-course:hover .nsc-featured-course__title {
    text-decoration: underline;
}

.nsc-featured-course__link {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 32px;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.nsc-featured-course__image {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    background: #e5e7eb;
    position: relative;
    aspect-ratio: 464 / 261;
}

.nsc-featured-course__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'GT Eesti Display', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #333F48;
    background: #f3f9ee;
    border: 1px solid #8bc058;
    border-radius: 999px;
    height: 32px;
    min-width: 32px;
    padding: 0 8px;
    line-height: 19px;
}

.nsc-featured-course__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nsc-featured-course__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nsc-featured-course__overline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 32px;
}

.nsc-featured-course__category {
    font-size: 14px;
    font-weight: 350;
    color: #333F48;
    line-height: 19px;
}

.nsc-featured-course__title {
    font-size: 22px;
    font-weight: 400;
    color: #333F48;
    margin: 0;
    line-height: 29px;
}

.nsc-featured-course__excerpt {
    font-size: 18px;
    font-weight: 350;
    color: #333F48;
    line-height: 23px;
    margin: 0;
}

.nsc-featured-course__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    font-size: 14px;
    font-weight: 350;
    color: #333F48;
    margin-top: 8px;
}

.nsc-featured-course__meta .nsc-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.nsc-featured-course__meta .nsc-meta-item svg {
    flex-shrink: 0;
}

@media screen and (max-width: 768px) {
    .nsc-update-card__title {
        font-size: 18px;
        line-height: 23px;
    }

    .nsc-update-card__excerpt {
        font-size: 16px;
        line-height: 21px;
    }

    .nsc-featured-course {
        margin-right: 16px;
    }

    .nsc-featured-course__link {
        flex-direction: column;
        padding: 24px;
    }

    .nsc-featured-course__image {
        width: 100%;
        aspect-ratio: 464 / 261;
    }
}

