/* Naje7 modern LearnPress courses archive v0.9.10 */
body.naje7-modern-courses-archive .top_site_main,
body.naje7-modern-courses-archive .breadcrumbs-wrapper,
body.naje7-modern-courses-archive .learn-press-breadcrumb,
body.naje7-modern-courses-archive .site-content > .breadcrumbs,
body.naje7-modern-courses-archive .page-title-wrapper {
    display: none !important;
}

.n7ca {
    --n7ca-primary: #0863d8;
    --n7ca-text: #202733;
    --n7ca-muted: #6d788a;
    --n7ca-border: #e3eaf3;
    --n7ca-soft: #f6f9fd;
    background: #fff;
    color: var(--n7ca-text);
    padding: 42px 20px 82px;
}

.n7ca__container {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.n7ca-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(250px, .6fr);
    gap: 34px;
    align-items: center;
    padding: 34px 38px;
    margin-bottom: 34px;
    border: 1px solid #dfebf8;
    border-radius: 22px;
    background:
        radial-gradient(circle at 7% 15%, rgba(8,99,216,.08), transparent 28%),
        linear-gradient(135deg, #f7faff 0%, #f2f7fd 100%);
}

.n7ca-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.n7ca-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    margin-bottom: 0;
    border-radius: 999px;
    background: #e8f2ff;
    color: var(--n7ca-primary);
    font-size: 12px;
    font-weight: 800;
}

.n7ca-badge--branch {
    background: #ffffff;
    color: #536074;
    border: 1px solid #dce8f5;
}

.n7ca-hero h1 {
    margin: 0 0 10px;
    color: var(--n7ca-text);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 900;
    line-height: 1.2;
}

.n7ca-hero p {
    max-width: 650px;
    margin: 0;
    color: var(--n7ca-muted);
    font-size: 15px;
    line-height: 1.9;
}

.n7ca-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid #dae5f1;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(42,67,101,.07);
    width: min(100%, 285px);
    justify-self: end;
}

.n7ca-search input[type="search"] {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 46px;
    margin: 0 !important;
    padding: 0 13px !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--n7ca-text);
    font-size: 14px;
}

.n7ca-search button,
.n7ca-search__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 17px;
    border: 0;
    border-radius: 9px;
    text-decoration: none !important;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.n7ca-search button {
    background: var(--n7ca-primary);
    color: #fff;
    cursor: pointer;
}

.n7ca-search__clear {
    background: #eef3f8;
    color: #586579 !important;
}

.n7ca-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 2px 18px;
}

.n7ca-toolbar__count {
    color: var(--n7ca-text);
    font-size: 18px;
    font-weight: 900;
}

.n7ca-toolbar__search {
    color: var(--n7ca-muted);
    font-size: 13px;
}

.n7ca-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.n7ca-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--n7ca-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(32,51,77,.065);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.n7ca-card:hover {
    transform: translateY(-3px);
    border-color: #d3e1f2;
    box-shadow: 0 16px 38px rgba(32,51,77,.105);
}

.n7ca-card__media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 8.5;
    overflow: hidden;
    background: #edf3f9;
    text-decoration: none !important;
}

.n7ca-card__media img,
.n7ca-card__placeholder {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.n7ca-card__media img {
    max-width: none !important;
    object-fit: cover;
    transition: transform .3s ease;
}

.n7ca-card:hover .n7ca-card__media img {
    transform: scale(1.025);
}

.n7ca-card__placeholder {
    background: linear-gradient(135deg, #edf4fb, #f9fbfd);
}

.n7ca-card__body {
    padding: 20px 22px 21px;
}

.n7ca-card__title {
    display: block;
    margin-bottom: 15px;
    color: var(--n7ca-text) !important;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.45;
    text-decoration: none !important;
}

.n7ca-card__title:hover {
    color: var(--n7ca-primary) !important;
}

.n7ca-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    gap: 16px;
    margin-bottom: 17px;
}

.n7ca-card__branch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    flex: 0 0 auto;
    min-height: 38px;
    padding: 7px 12px;
    border: 1px solid #cbd9ea;
    border-radius: 999px;
    background: #f4f8fd;
    color: #435167 !important;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none !important;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.n7ca-card__branch:hover {
    border-color: #a9c5e8;
    background: #eaf3ff;
    color: var(--n7ca-primary) !important;
}

.n7ca-card__teacher {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 0;
    color: #687386 !important;
    text-decoration: none !important;
}

.n7ca-card__teacher img {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px;
    margin: 0 !important;
    border-radius: 50%;
    object-fit: cover;
}

.n7ca-card__teacher span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.n7ca-card__teacher small {
    margin-bottom: 1px;
    color: #9aa4b3;
    font-size: 11px;
    line-height: 1.2;
}

.n7ca-card__teacher strong {
    overflow: hidden;
    color: #536074;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.n7ca-card__teacher:hover strong {
    color: var(--n7ca-primary);
}

.n7ca-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 15px;
    border-top: 1px solid #edf1f5;
    color: var(--n7ca-primary) !important;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none !important;
}

.n7ca-card__action:hover {
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.n7ca-pagination {
    margin-top: 36px;
}

.n7ca-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.n7ca-pagination a,
.n7ca-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 7px 11px;
    border: 1px solid var(--n7ca-border);
    border-radius: 9px;
    background: #fff;
    color: #536074 !important;
    text-decoration: none !important;
}

.n7ca-pagination .current {
    border-color: var(--n7ca-primary);
    background: var(--n7ca-primary);
    color: #fff !important;
}

.n7ca-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 60px 20px;
    border: 1px dashed #cdd8e5;
    border-radius: 18px;
    background: #fbfcfe;
    text-align: center;
}

.n7ca-empty strong {
    font-size: 20px;
}

.n7ca-empty span {
    color: var(--n7ca-muted);
}

.n7ca-empty a {
    margin-top: 9px;
    color: var(--n7ca-primary) !important;
    font-weight: 800;
}

@media (max-width: 900px) {
    .n7ca {
        padding-top: 28px;
    }
    .n7ca-hero {
        grid-template-columns: 1fr;
        padding: 28px 26px;
    }
    .n7ca-search {
        width: min(100%, 360px);
        justify-self: start;
    }
    .n7ca-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .n7ca {
        padding: 22px 14px 56px;
    }
    .n7ca-hero {
        gap: 22px;
        padding: 24px 19px;
        margin-bottom: 26px;
        border-radius: 18px;
    }
    .n7ca-hero h1 {
        font-size: 30px;
    }
    .n7ca-search {
        flex-wrap: wrap;
    }
    .n7ca-search input[type="search"] {
        flex-basis: 100%;
    }
    .n7ca-search button {
        flex: 1 1 auto;
    }
    .n7ca-toolbar {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 14px;
    }
    .n7ca-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .n7ca-card {
        border-radius: 15px;
    }
    .n7ca-card__body {
        padding: 16px 17px 17px;
    }
    .n7ca-card__title {
        font-size: 18px;
    }
    .n7ca-card__meta {
        align-items: flex-start;
        gap: 10px;
    }
    .n7ca-card__branch {
        min-height: 34px;
        padding: 6px 10px;
        font-size: 11px;
    }
}
