/* =========================================================
   CATEGORY ARCHIVE — 2 Column Grid (Prefix: ncat25)
   ========================================================= */

.ncat25-area {
    padding: 30px 0 80px;
    background: #fff;
}

.ncat25-area * {
    box-sizing: border-box;
}

/* =========================================================
   CATEGORY HEADER
   ========================================================= */
.ncat25-header {
    margin: 24px 0 40px;
    padding-bottom: 24px;
    border-bottom: 2px solid #0d1626;
    position: relative;
}

.ncat25-header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 80px;
    height: 2px;
    background: #d70017;
}

.ncat25-header-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #d70017;
    margin-bottom: 10px;
}

.ncat25-header-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1px;
    color: #0d1626;
    margin: 0;
    text-transform: capitalize;
}

.ncat25-header-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #7a869c;
    margin: 14px 0 0;
    max-width: 720px;
}

/* =========================================================
   FEATURED POST
   ========================================================= */
.ncat25-featured {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e6ebf2;
}

.ncat25-featured-link {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 44px;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.ncat25-featured-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    overflow: hidden;
    background: #0d1626;
    box-shadow: 0 20px 50px rgba(13, 22, 38, 0.12);
}

.ncat25-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ncat25-featured:hover .ncat25-featured-img img {
    transform: scale(1.06);
}

.ncat25-featured-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.25) 100%);
    pointer-events: none;
    border-radius: inherit;
}

.ncat25-featured-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #d70017;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 8px 14px;
    border-radius: 6px;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(215, 0, 23, 0.4);
}

.ncat25-featured-body {
    min-width: 0;
}

.ncat25-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.ncat25-meta-cat {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #d70017;
    text-transform: uppercase;
}

.ncat25-meta-dot {
    color: #cbd3dd;
    font-size: 10px;
}

.ncat25-meta-time {
    font-size: 12px;
    font-weight: 600;
    color: #7a869c;
    letter-spacing: 0.3px;
}

.ncat25-featured-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.6px;
    color: #0d1626;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s ease;
}

.ncat25-featured:hover .ncat25-featured-title {
    color: #d70017;
}

.ncat25-featured-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: #5b6577;
    margin: 0 0 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ncat25-featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid #f0f3f8;
    flex-wrap: wrap;
}

.ncat25-featured-author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ncat25-featured-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1.5px #d70017;
}

.ncat25-featured-author span {
    font-size: 13px;
    font-weight: 700;
    color: #0d1626;
    letter-spacing: 0.2px;
}

.ncat25-featured-read {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #d70017;
    transition: gap 0.3s ease;
}

.ncat25-featured-read i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.ncat25-featured:hover .ncat25-featured-read {
    gap: 11px;
}

.ncat25-featured:hover .ncat25-featured-read i {
    transform: translateX(3px);
}

/* =========================================================
   REST POSTS — 2 Column Grid
   ========================================================= */
.ncat25-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 28px;
    margin-bottom: 10px;
}

.ncat25-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px;
    align-items: flex-start;
    padding: 22px 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #e6ebf2;
    position: relative;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Left red bar on hover */
.ncat25-item::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 50%;
    width: 3px;
    height: 0;
    background: #d70017;
    border-radius: 2px;
    transform: translateY(-50%);
    transition: height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ncat25-item:hover::before {
    height: 65%;
}

.ncat25-item:hover {
    padding-left: 12px;
}

/* ---------- Thumbnail ---------- */
.ncat25-item-thumb {
    position: relative;
    width: 160px;
    height: 110px;
    border-radius: 12px;
    overflow: hidden;
    background: #0d1626;
    flex-shrink: 0;
    transition: box-shadow 0.4s ease;
}

.ncat25-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ncat25-item:hover .ncat25-item-thumb {
    box-shadow: 0 12px 26px rgba(215, 0, 23, 0.20);
}

.ncat25-item:hover .ncat25-item-thumb img {
    transform: scale(1.08);
}

/* Small category tag */
.ncat25-item-cat {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: #d70017;
    color: #fff;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 0px 4px;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(215, 0, 23, 0.45);
    transition: transform 0.3s ease;
}

.ncat25-item:hover .ncat25-item-cat {
    transform: translateY(-2px);
}

/* ---------- Body ---------- */
.ncat25-item-body {
    min-width: 0;
}

.ncat25-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ncat25-item-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #7a869c;
    letter-spacing: 0.3px;
}

.ncat25-item-time i {
    color: #d70017;
    font-size: 9px;
}

.ncat25-item-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.2px;
    color: #0d1626;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s ease;
}

.ncat25-item:hover .ncat25-item-title {
    color: #d70017;
}

.ncat25-item-excerpt {
    font-size: 13px;
    line-height: 1.6;
    color: #7a869c;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ncat25-item-author {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 600;
    color: #5b6577;
    letter-spacing: 0.2px;
}

.ncat25-item-author img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid #fff;
    box-shadow: 0 0 0 1px #d70017;
}

/* =========================================================
   PAGINATION
   ========================================================= */
.ncat25-pagination-wrap {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.ncat25-pagination {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.ncat25-page-item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ncat25-page-link,
.ncat25-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 10px;
    color: #0d1626;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-family: inherit;
    cursor: pointer;
}

.ncat25-page-link:hover,
.ncat25-pagination .page-numbers:hover {
    border-color: #d70017;
    color: #d70017;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(215, 0, 23, 0.12);
}

.ncat25-page-item.is-active .ncat25-page-link,
.ncat25-pagination .page-numbers.current {
    background: linear-gradient(135deg, #d70017 0%, #a50012 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 20px rgba(215, 0, 23, 0.28);
}

.ncat25-pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
    color: #7a869c;
    cursor: default;
    box-shadow: none;
}

.ncat25-pagination .page-numbers.dots:hover {
    transform: none;
    border-color: transparent;
    color: #7a869c;
    box-shadow: none;
}

/* =========================================================
   EMPTY STATE
   ========================================================= */
.ncat25-empty {
    text-align: center;
    padding: 80px 20px;
}

.ncat25-empty i {
    font-size: 48px;
    color: #cbd3dd;
    margin-bottom: 16px;
    display: block;
}

.ncat25-empty h1,
.ncat25-empty h2,
.ncat25-empty h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0d1626;
    margin: 0 0 8px;
    letter-spacing: -0.2px;
}

.ncat25-empty p {
    font-size: 14px;
    color: #7a869c;
    margin: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991px) {
    .ncat25-header-title { font-size: 42px; }

    .ncat25-featured-link {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .ncat25-featured-img {
        aspect-ratio: 16 / 10;
    }

    .ncat25-featured-title {
        font-size: 28px;
    }

    .ncat25-item {
        grid-template-columns: 140px 1fr;
        gap: 16px;
    }

    .ncat25-item-thumb {
        width: 140px;
        height: 96px;
    }

    .ncat25-item-title { font-size: 15px; }
}

@media (max-width: 767px) {
    .ncat25-area { padding: 20px 0 60px; }

    .ncat25-header {
        margin: 16px 0 30px;
        padding-bottom: 20px;
    }

    .ncat25-header-title { font-size: 32px; }

    .ncat25-featured {
        margin-bottom: 40px;
        padding-bottom: 32px;
    }

    .ncat25-featured-img {
        aspect-ratio: 4 / 3;
        border-radius: 16px;
    }

    .ncat25-featured-title {
        font-size: 22px;
        letter-spacing: -0.3px;
    }

    .ncat25-featured-excerpt {
        font-size: 14px;
    }

    /* Grid → single column */
    .ncat25-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .ncat25-item {
        grid-template-columns: 140px 1fr;
        gap: 16px;
        padding: 20px 0;
    }

    .ncat25-item-title { font-size: 15px; }
    .ncat25-item-excerpt { font-size: 12.5px; }

    .ncat25-pagination-wrap { margin-top: 36px; }
}

@media (max-width: 575px) {
    .ncat25-header-title { font-size: 26px; }
    .ncat25-header-desc { font-size: 13.5px; }

    .ncat25-featured-title { font-size: 20px; }
    .ncat25-featured-excerpt { font-size: 13.5px; -webkit-line-clamp: 2; }

    /* Item stacks vertically */
    .ncat25-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 18px 0;
    }

    .ncat25-item-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .ncat25-item-title {
        font-size: 15px;
        -webkit-line-clamp: 2;
    }

    .ncat25-item:hover {
        padding-left: 0;
    }

    .ncat25-item:hover::before {
        display: none;
    }

    .ncat25-page-link,
    .ncat25-pagination .page-numbers {
        min-width: 38px;
        height: 38px;
        font-size: 12.5px;
        padding: 0 12px;
    }
}

/* =========================================================
   v2.2.0 — Archive sidebar layout (category / tag / author / search)
   ========================================================= */
.ncat25-grid--side {
    grid-template-columns: 1fr;
    gap: 0;
}
.ncat25-grid--side .ncat25-item {
    grid-template-columns: 220px 1fr;
    gap: 22px;
}
.ncat25-grid--side .ncat25-item-thumb {
    width: 220px;
    height: 140px;
}
.nsr-arch-side { margin-top: 6px; }
.nsr-arch-side .nsr-mostread { margin-bottom: 8px; }
.nsr-arch-side-ad { margin-top: 28px; }
.nsr-arch-side-ad:empty { display: none; }
@media (min-width: 992px) {
    .nsr-arch-side-ad { position: sticky; top: 90px; }
}
@media (max-width: 991px) {
    .nsr-arch-side { margin-top: 40px; }
    .ncat25-grid--side .ncat25-item { grid-template-columns: 140px 1fr; gap: 16px; }
    .ncat25-grid--side .ncat25-item-thumb { width: 140px; height: 96px; }
}
@media (max-width: 575px) {
    .ncat25-grid--side .ncat25-item { grid-template-columns: 1fr; gap: 12px; }
    .ncat25-grid--side .ncat25-item-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}
