/* =========================================================
   SIDEBAR ARCHIVE — NEWS + SIDEBAR (Prefix: ncs-)
   ========================================================= */

.ncs-wrap {
    padding: 26px 0 80px;
    background: #fff;
}

.ncs-wrap * {
    box-sizing: border-box;
}

/* ---------- Breadcrumbs ---------- */
.ncs-topbar {
    margin-bottom: 24px;
}

/* ---------- Row spacing ---------- */
.ncs-row {
    --bs-gutter-x: 1.5rem;
}

/* =========================================================
   LEFT SIDEBAR
   ========================================================= */
.ncs-side {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Unwrap trending-right column from its own col-lg-4 */
.ncs-trending-slot > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ---------- Featured News List section ---------- */
.ncs-feat-list {
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 14px;
    padding: 22px 20px 12px;
    box-shadow: 0 4px 18px rgba(13, 22, 38, 0.04);
}

.ncs-feat-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 2px solid #0d1626;
    position: relative;
}

.ncs-feat-head::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 50px;
    height: 2px;
    background: #d70017;
}

.ncs-feat-bar {
    display: none;
}

.ncs-feat-title {
    font-size: 15px;
    font-weight: 800;
    color: #0d1626;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0;
    line-height: 1.1;
}

.ncs-feat-items {
    display: flex;
    flex-direction: column;
}

.ncs-feat-item {
    display: grid;
    grid-template-columns: 32px 60px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px dashed #e6ebf2;
    transition: all 0.25s ease;
    position: relative;
}

.ncs-feat-item:last-child {
    border-bottom: none;
}

.ncs-feat-item::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 50%;
    width: 3px;
    height: 0;
    background: #d70017;
    border-radius: 2px;
    transform: translateY(-50%);
    transition: height 0.3s ease;
}

.ncs-feat-item:hover::before {
    height: 55%;
}

.ncs-feat-item:hover {
    padding-left: 4px;
}

.ncs-feat-num {
    font-size: 15px;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1.2px #cfd6de;
    line-height: 1;
    text-align: center;
    letter-spacing: -0.5px;
    transition: -webkit-text-stroke 0.25s ease, transform 0.25s ease;
}

.ncs-feat-item:hover .ncs-feat-num {
    -webkit-text-stroke: 1.2px #d70017;
    transform: scale(1.08);
}

.ncs-feat-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #0d1626;
    flex-shrink: 0;
}

.ncs-feat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.ncs-feat-item:hover .ncs-feat-thumb img {
    transform: scale(1.08);
}

.ncs-feat-body {
    min-width: 0;
}

.ncs-feat-item-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: #0d1626;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s ease;
}

.ncs-feat-item:hover .ncs-feat-item-title {
    color: #d70017;
}

.ncs-feat-item-date {
    font-size: 10.5px;
    color: #7a869c;
    letter-spacing: 0.3px;
}

/* =========================================================
   RIGHT MAIN
   ========================================================= */
.ncs-main {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

/* ---------- Main Hero Story ---------- */
.ncs-hero {
    margin: 0;
}

.ncs-hero-link {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ncs-hero:hover .ncs-hero-link {
    border-color: transparent;
    box-shadow: 0 20px 50px rgba(13, 22, 38, 0.10),
                0 6px 16px rgba(215, 0, 23, 0.06);
    transform: translateY(-4px);
}

.ncs-hero-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0d1626;
}

.ncs-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ncs-hero:hover .ncs-hero-img img {
    transform: scale(1.05);
}

.ncs-hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.15) 100%);
    pointer-events: none;
}

.ncs-hero-cat {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    background: #d70017;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    padding: 6px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(215, 0, 23, 0.4);
}

.ncs-hero-flag {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: #0d1626;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.ncs-hero-flag::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d70017;
    box-shadow: 0 0 0 3px rgba(215, 0, 23, 0.20);
    animation: ncsPulse 1.8s ease-out infinite;
}

@keyframes ncsPulse {
    0%   { box-shadow: 0 0 0 3px rgba(215, 0, 23, 0.20); }
    100% { box-shadow: 0 0 0 9px rgba(215, 0, 23, 0); }
}

.ncs-hero-body {
    padding: 24px 26px 22px;
}

.ncs-hero-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #7a869c;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.ncs-hero-date i {
    color: #d70017;
    font-size: 10px;
}

.ncs-hero-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.5px;
    color: #0d1626;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s ease;
}

.ncs-hero:hover .ncs-hero-title {
    color: #d70017;
}

.ncs-hero-excerpt {
    font-size: 14.5px;
    line-height: 1.65;
    color: #5b6577;
    margin: 0 0 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ncs-hero-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid #e6ebf2;
    flex-wrap: wrap;
}

.ncs-hero-author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: #0d1626;
    letter-spacing: 0.2px;
}

.ncs-hero-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1.5px #d70017;
    flex-shrink: 0;
}

.ncs-hero-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;
}

.ncs-hero-read i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.ncs-hero:hover .ncs-hero-read {
    gap: 11px;
}

.ncs-hero:hover .ncs-hero-read i {
    transform: translateX(3px);
}

/* ---------- List Cards (9) ---------- */
.ncs-lists {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ncs-card {
    margin: 0;
}

.ncs-card-link {
    display: grid;
    grid-template-columns: 240px 1fr;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ncs-card:hover .ncs-card-link {
    border-color: transparent;
    box-shadow: 0 14px 36px rgba(13, 22, 38, 0.08),
                0 4px 12px rgba(215, 0, 23, 0.05);
    transform: translateX(4px);
}

.ncs-card-img {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 200px;
    overflow: hidden;
    background: #0d1626;
}

.ncs-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ncs-card:hover .ncs-card-img img {
    transform: scale(1.07);
}

.ncs-card-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: #d70017;
    color: #fff;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 1.2px;
    padding: 5px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(215, 0, 23, 0.4);
}

.ncs-card-body {
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.ncs-card-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #7a869c;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.ncs-card-date i {
    color: #d70017;
    font-size: 10px;
}

.ncs-card-title {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.3px;
    color: #0d1626;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s ease;
}

.ncs-card:hover .ncs-card-title {
    color: #d70017;
}

.ncs-card-excerpt {
    font-size: 13.5px;
    line-height: 1.6;
    color: #7a869c;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ncs-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #e6ebf2;
    flex-wrap: wrap;
}

.ncs-card-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: #5b6577;
    letter-spacing: 0.2px;
    min-width: 0;
}

.ncs-card-author img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid #fff;
    box-shadow: 0 0 0 1px #d70017;
}

.ncs-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f4f7fa;
    color: #7a869c;
    font-size: 10px;
    flex-shrink: 0;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ncs-card:hover .ncs-card-arrow {
    background: #d70017;
    color: #fff;
    transform: rotate(-45deg);
    box-shadow: 0 6px 16px rgba(215, 0, 23, 0.4);
}

/* =========================================================
   PAGINATION
   ========================================================= */
.ncs-pagination {
    margin-top: 12px;
    padding-top: 24px;
    border-top: 1px solid #e6ebf2;
    display: flex;
    justify-content: center;
}

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

.ncs-pagination ul.page-numbers {
    display: flex;
}

.ncs-pagination .page-numbers li {
    display: inline-flex;
}

.ncs-pagination .page-numbers a,
.ncs-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e6ebf2;
    color: #0d1626;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.ncs-pagination .page-numbers a:hover {
    background: #0d1626;
    border-color: #0d1626;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 22, 38, 0.15);
}

.ncs-pagination .page-numbers .current {
    background: #d70017;
    border-color: #d70017;
    color: #fff;
    box-shadow: 0 8px 20px rgba(215, 0, 23, 0.35);
}

.ncs-pagination .page-numbers .dots {
    border-color: transparent;
    background: transparent;
    color: #7a869c;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991px) {
    .ncs-wrap { padding: 22px 0 60px; }

    .ncs-side {
        margin-bottom: 20px;
    }

    .ncs-feat-list {
        padding: 18px 16px 8px;
    }

    .ncs-hero-title { font-size: 22px; }
    .ncs-card-link {
        grid-template-columns: 200px 1fr;
    }
    .ncs-card-title { font-size: 17px; }
}

@media (max-width: 767px) {
    .ncs-wrap { padding: 18px 0 50px; }

    .ncs-hero-body { padding: 20px 20px 18px; }
    .ncs-hero-title { font-size: 20px; }
    .ncs-hero-excerpt { font-size: 13.5px; margin-bottom: 16px; }

    .ncs-card-link {
        grid-template-columns: 1fr;
    }
    .ncs-card-img {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }
    .ncs-card-body { padding: 18px 18px 16px; }
    .ncs-card-title { font-size: 16px; }
    .ncs-card-excerpt { font-size: 13px; }

    .ncs-pagination .page-numbers a,
    .ncs-pagination .page-numbers span {
        min-width: 38px;
        height: 38px;
        font-size: 12.5px;
    }
}

@media (max-width: 575px) {
    .ncs-hero-cat,
    .ncs-hero-flag {
        font-size: 9px;
        padding: 5px 10px;
        top: 12px;
    }
    .ncs-hero-cat { left: 12px; }
    .ncs-hero-flag { right: 12px; }

    .ncs-hero-title { font-size: 18px; }
    .ncs-card-title { font-size: 15.5px; }

    .ncs-feat-item {
        grid-template-columns: 28px 54px 1fr;
        gap: 10px;
    }
    .ncs-feat-thumb { width: 54px; height: 54px; }
    .ncs-feat-item-title { font-size: 12.5px; }

/* ---------- Added: page heading (h1) + a11y helper ---------- */
.ncs-page-title {
    font-size: 28px;
    font-weight: 800;
    color: #0d1626;
    margin: 0 0 24px;
    line-height: 1.2;
}
.ncs-wrap .screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
