/* Shared Naje7 course card — homepage, /courses/, taxonomy and instructor course lists. */
.n7cc-card {
    --n7cc-primary: #0863d8;
    --n7cc-text: #202733;
    --n7cc-muted: #687386;
    --n7cc-border: #e2e9f2;
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--n7cc-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(28,47,74,.07);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.n7cc-card:hover {
    transform: translateY(-3px);
    border-color: #d1deed;
    box-shadow: 0 15px 36px rgba(28,47,74,.11);
}
.n7cc-media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #edf3f9;
    text-decoration: none !important;
}
.n7cc-media img,
.n7cc-placeholder {
    display: block;
    width: 100% !important;
    height: 100% !important;
}
.n7cc-media img {
    max-width: none !important;
    object-fit: cover;
    transition: transform .3s ease;
}
.n7cc-card:hover .n7cc-media img { transform: scale(1.025); }
.n7cc-placeholder { background: linear-gradient(135deg,#eef4fb,#f8fbfe); }
.n7cc-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 17px 18px 18px;
}
.n7cc-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 13px;
}
.n7cc-title {
    min-width: 0;
    color: var(--n7cc-text) !important;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.5;
    text-align: right;
    text-decoration: none !important;
    overflow-wrap: anywhere;
}
.n7cc-title:hover { color: var(--n7cc-primary) !important; }
.n7cc-language {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 42px;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e9f4ff;
    color: #0879c9;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}
.n7cc-teacher {
    display: flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 10px;
    color: var(--n7cc-muted) !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none !important;
}
.n7cc-teacher img {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px;
    margin: 0 !important;
    border-radius: 50%;
    object-fit: cover;
}
.n7cc-teacher span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.n7cc-teacher:hover { color: var(--n7cc-primary) !important; }
.n7cc-lessons {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
    color: #657184;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}
.n7cc-lessons__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1px solid #d5e0ed;
    border-radius: 50%;
    color: var(--n7cc-primary);
    font-size: 8px;
    line-height: 1;
}
.n7cc-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    margin-top: auto;
    padding: 9px 14px;
    border-radius: 9px;
    background: var(--n7cc-primary);
    color: #fff !important;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.3;
    text-decoration: none !important;
    transition: transform .18s ease, filter .18s ease;
}
.n7cc-action:hover { transform: translateY(-1px); filter: brightness(.95); }

@media (max-width: 767px) {
    .n7cc-card { border-radius: 15px; }
    .n7cc-body { padding: 15px 15px 16px; }
    .n7cc-title { font-size: 17px; }
    .n7cc-language { min-width: 40px; min-height: 27px; }
}
