/* ── Section shell ─────────────────────────────────────────────── */
.nc-section {
    padding: 80px 0 90px;
    background: var(--sg-tint-bg);
    position: relative;
    overflow: hidden;
}

/* Subtle background geometry */
.nc-section::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--sg-tint-border) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Section header ────────────────────────────────────────────── */
.nc-header {
    margin-bottom: 48px;
}

.nc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--sg-brand-orange);
    margin-bottom: 10px;
}

.nc-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sg-brand-orange);
    animation: nc-pulse 2s ease infinite;
}

@keyframes nc-pulse {
    0%, 100% { opacity: 1;  transform: scale(1); }
    50%       { opacity: .4; transform: scale(.7); }
}

.nc-title {
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--sg-brand-navy);
    line-height: 1.15;
    margin-bottom: 0;
    position: relative;
    display: inline-block;
}

.nc-title::after {
    content: '';
    display: block;
    margin-top: 10px;
    width: 52px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--sg-brand-orange), var(--sg-brand-navy));
}

.nc-subtitle {
    font-size: 15px;
    color: var(--sg-color-muted);
    margin-top: 14px;
    max-width: 460px;
    line-height: 1.7;
    margin-bottom: 0;
}

/* "View all" header link */
.nc-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--sg-brand-navy);
    text-decoration: none;
    border-bottom: 2px solid var(--sg-tint-border);
    padding-bottom: 2px;
    transition: var(--sg-transition);
}

.nc-view-all:hover {
    color: var(--sg-brand-orange);
    border-bottom-color: var(--sg-brand-orange);
}

.nc-view-all i { transition: transform .2s; }
.nc-view-all:hover i { transform: translateX(4px); }

/* ── Cards grid ─────────────────────────────────────────────────── */
.nc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 991px) { .nc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .nc-grid { grid-template-columns: 1fr; } }

/* ── Individual card ─────────────────────────────────────────────── */
.nc-card {
    background: var(--sg-color-white);
    border: 1.5px solid var(--sg-tint-border);
    border-radius: var(--sg-radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--sg-transition);
    position: relative;
}

.nc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0, 58, 89, .13);
    border-color: var(--sg-tint-mid);
}

/* ── "NEW" ribbon ─────────────────────────────────────────────── */
.nc-ribbon {
    position: absolute;
    top: 16px;
    left: -2px;
    z-index: 4;
    background: var(--sg-brand-orange);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    padding: 4px 12px 4px 14px;
    border-radius: 0 var(--sg-radius-sm) var(--sg-radius-sm) 0;
    box-shadow: 2px 2px 8px rgba(0,0,0,.18);
    line-height: 1;
}

.nc-ribbon::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    border-top: 5px solid var(--sg-brand-orange-dark);
    border-left: 6px solid transparent;
}

/* ── Image area ──────────────────────────────────────────────────── */
.nc-img-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    flex-shrink: 0;
}

.nc-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.nc-card:hover .nc-img-wrap img {
    transform: scale(1.05);
}

/* Gradient overlay on image */
.nc-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 45%,
        rgba(0, 30, 50, .55) 100%
    );
    pointer-events: none;
}

/* Badges floating on image (bottom-left of image) */
.nc-img-badges {
    position: absolute;
    bottom: 10px;
    left: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 3;
}

.nc-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: var(--sg-radius-pill);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .04em;
    backdrop-filter: blur(6px);
    line-height: 1.4;
}

.nc-badge-lang {
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
}

.nc-badge-diff {
    background: var(--sg-brand-orange);
    color: #fff;
}

.nc-badge-diff.beginner  { background: var(--sg-color-success-bg); color: var(--sg-color-success-text); }
.nc-badge-diff.intermediate { background: var(--sg-color-warning-bg); color: var(--sg-color-warning-text); }
.nc-badge-diff.advanced  { background: var(--sg-color-danger-bg);  color: var(--sg-color-danger-text); }

/* ── Card body ────────────────────────────────────────────────────── */
.nc-body {
    padding: 20px 22px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Extra text / promo label */
.nc-promo {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--sg-brand-orange);
    margin-bottom: 6px;
}

/* Course title */
.nc-course-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--sg-brand-navy);
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Description */
.nc-desc {
    font-size: 13.5px;
    color: var(--sg-color-muted);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Card meta row ────────────────────────────────────────────────── */
.nc-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    border-top: 1px solid var(--sg-tint-bg);
    margin-top: 16px;
    flex-wrap: wrap;
}

.nc-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--sg-color-muted);
}

.nc-meta-item i {
    font-size: 13px;
    color: var(--sg-brand-navy);
    opacity: .5;
}

/* ── Card footer ──────────────────────────────────────────────────── */
.nc-footer {
    padding: 14px 22px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* Instructor micro-block */
.nc-instructor {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.nc-instructor-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-linear-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid var(--sg-tint-border);
}

.nc-instructor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nc-instructor-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--sg-color-body);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* CTA button */
.nc-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: var(--sg-brand-navy);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: var(--sg-radius-md);
    text-decoration: none;
    transition: var(--sg-transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.nc-cta i { font-size: 11px; transition: transform .2s; }

.nc-cta:hover {
    background: var(--sg-brand-navy-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 58, 89, .3);
}

.nc-cta:hover i { transform: translateX(3px); }

/* ── Empty state ──────────────────────────────────────────────────── */
.nc-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--sg-color-muted);
}

.nc-empty i {
    font-size: 2.5rem;
    color: var(--sg-tint-mid);
    margin-bottom: 12px;
    display: block;
}

/* ── Bottom CTA strip ─────────────────────────────────────────────── */
.nc-bottom-cta {
    margin-top: 48px;
    text-align: center;
}