/* ========================================
   NEWS MODULE — st/css/news.css
   Prefix: nw-
   Based on prototype: vinanaz-news.html
   ======================================== */

/* ── PAGE WRAPPER — override site background ── */
.nw-wrapper {
    background: #f1f4fb;
    -webkit-font-smoothing: antialiased;
}
.nw-wrapper *,
.nw-wrapper *::before,
.nw-wrapper *::after {
    box-sizing: border-box;
}

/* ── BANNER CAROUSEL — full viewport section ── */
.nw-banner {
    position: relative;
    width: 100%;
}
.nw-banner-swiper {
    width: 100%;
    height: calc(100vh - 160px);
    min-height: 360px;
    max-height: 600px;
}
.nw-banner-swiper .swiper-slide {
    overflow: hidden;
}
.nw-banner-swiper .swiper-slide {
    position: relative;
}
.nw-banner-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 8s ease-out;
}
.swiper-slide-active .nw-banner-slide {
    transform: scale(1.06);
}
.nw-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 15, 40, 0.75) 0%,
        rgba(10, 15, 40, 0.2) 50%,
        rgba(10, 15, 40, 0.05) 100%
    );
    z-index: 1;
}
.nw-banner-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 48px;
    z-index: 2;
    text-align: left;
}
.nw-banner-text h2 {
    color: #fff;
    margin: 0 0 10px;
    max-width: 700px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.nw-banner-text p {
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    max-width: 560px;
}

/* banner controls */
.nw-banner-pagination {
    bottom: 20px !important;
}
.nw-banner-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #fff;
    opacity: 0.4;
    transition: all 0.3s;
}
.nw-banner-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    width: 28px;
    border-radius: 5px;
    background: #e8341a;
}
.nw-banner-prev,
.nw-banner-next {
    color: #fff !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    backdrop-filter: blur(6px);
    transition: all 0.2s;
}
.nw-banner-prev:hover,
.nw-banner-next:hover {
    background: rgba(0, 0, 0, 0.45);
}
.nw-banner-prev::after,
.nw-banner-next::after {
    font-size: 18px !important;
    font-weight: 900;
}
.nw-banner-prev {
    left: 20px !important;
}
.nw-banner-next {
    right: 20px !important;
}

/* ── BREAKING TICKER ── */
.nw-ticker {
    background: #1e2d8f;
    padding: 10px 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: hidden;
}
.nw-ticker-tag {
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #fff;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.15);
    padding: 3px 10px;
    border-radius: 4px;
}
.nw-ticker-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
}
.nw-ticker-track {
    display: inline-flex;
    gap: 32px;
    animation: nwTicker 30s linear infinite;
    white-space: nowrap;
    padding-left: 100%;
}
.nw-ticker-track:hover {
    animation-play-state: paused;
}
.nw-ticker-item {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s;
}
.nw-ticker-item:hover {
    color: #fff;
}
.nw-ticker-item::before {
    content: "◆";
    margin-right: 10px;
    font-size: 7px;
    color: rgba(255, 255, 255, 0.3);
}
@keyframes nwTicker {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* ── PAGE LAYOUT ── */
.nw-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 24px 60px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}
.nw-main {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}

/* ── SECTION HEADER ── */
.nw-sec-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.nw-sec-line {
    width: 4px;
    height: 20px;
    background: #e8341a;
    border-radius: 2px;
    flex-shrink: 0;
}
.nw-sec-title {
    font-family: inherit;
    font-size: 16px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.2px;
    flex: 1;
}
.nw-sec-more {
    font-size: 13px;
    font-weight: 600;
    color: #2b50d0;
    text-decoration: none;
    transition: color 0.15s;
    flex-shrink: 0;
}
.nw-sec-more:hover {
    color: #1e2d8f;
}

/* ── CATEGORY PILLS ── */
.nw-cat-pills {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.nw-cat-pill {
    padding: 6px 14px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid #e2e8f0;
    color: #64748b;
    background: #fff;
    transition: all 0.15s;
    white-space: nowrap;
    text-decoration: none;
}
.nw-cat-pill:hover {
    border-color: #c4d2f0;
    color: #1e2d8f;
    background: #eef1fb;
}
.nw-cat-pill.on {
    background: #2b50d0;
    color: #fff;
    border-color: #2b50d0;
}

/* ── FEATURED GRID ── */
.nw-featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 6px;
}
.nw-card-big {
    display: block;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.22s;
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.05),
        0 6px 20px rgba(30, 45, 143, 0.07);
    text-decoration: none;
    color: inherit;
    animation: nwFadeUp 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.nw-card-big:nth-child(2) {
    animation-delay: 0.06s;
}
.nw-card-big:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(30, 45, 143, 0.12);
    border-color: #c4d2f0;
}
.nw-card-thumb {
    position: relative;
    overflow: hidden;
}
.nw-card-thumb img {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.4s;
}
.nw-card-big:hover .nw-card-thumb img {
    transform: scale(1.04);
}
.nw-card-thumb-ph {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #dde4f6, #c4d2f0);
    display: flex;
    align-items: center;
    justify-content: center;
}
.nw-card-thumb-ph svg {
    width: 40px;
    height: 40px;
    stroke: #c4d2f0;
    fill: none;
    stroke-width: 1.5;
}
.nw-card-cat {
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: inherit;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 3px 9px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
    background: rgba(232, 52, 26, 0.9);
    color: #fff;
}
.nw-card-body {
    padding: 14px 16px;
}
.nw-card-title {
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nw-card-summary {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 10px;
}
.nw-card-foot {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}
.nw-card-av {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #dde4f6;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    color: #2b50d0;
    font-weight: 700;
}
.nw-card-author {
    font-size: 12px;
    font-weight: 600;
    color: #2b50d0;
    cursor: pointer;
    transition: color 0.15s;
}
.nw-card-author:hover {
    color: #1e2d8f;
    text-decoration: underline;
}
.nw-card-date {
    font-size: 11.5px;
    color: #94a3b8;
    margin-left: auto;
}
.nw-card-read {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* ── LIST CARDS ── */
.nw-list-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.nw-list-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.05),
        0 6px 20px rgba(30, 45, 143, 0.07);
    text-decoration: none;
    color: inherit;
    animation: nwFadeUp 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.nw-list-card:nth-child(1) {
    animation-delay: 0.05s;
}
.nw-list-card:nth-child(2) {
    animation-delay: 0.1s;
}
.nw-list-card:nth-child(3) {
    animation-delay: 0.15s;
}
.nw-list-card:nth-child(4) {
    animation-delay: 0.2s;
}
.nw-list-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(30, 45, 143, 0.12);
    border-color: #c4d2f0;
}
.nw-lc-thumb {
    position: relative;
    overflow: hidden;
}
.nw-lc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}
.nw-list-card:hover .nw-lc-thumb img {
    transform: scale(1.06);
}
.nw-lc-thumb-ph {
    width: 100%;
    height: 100%;
    min-height: 90px;
    background: linear-gradient(135deg, #dde4f6, #c4d2f0);
    display: flex;
    align-items: center;
    justify-content: center;
}
.nw-lc-thumb-ph svg {
    width: 28px;
    height: 28px;
    stroke: #c4d2f0;
    fill: none;
    stroke-width: 1.5;
}
.nw-lc-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
}
.nw-lc-cat {
    font-family: inherit;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #e8341a;
}
.nw-lc-title {
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nw-lc-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: #94a3b8;
}
.nw-lc-author {
    color: #2b50d0;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s;
}
.nw-lc-author:hover {
    color: #1e2d8f;
    text-decoration: underline;
}
.nw-lc-dot {
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #94a3b8;
}

/* ── SIDEBAR ── */
.nw-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 72px;
}
.nw-side-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.05),
        0 6px 20px rgba(30, 45, 143, 0.07);
}
.nw-side-head {
    padding: 14px 18px 10px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nw-sh-line {
    width: 3px;
    height: 16px;
    background: #e8341a;
    border-radius: 2px;
    flex-shrink: 0;
}
.nw-sh-title {
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.1px;
}

/* trending */
.nw-trending-list {
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.nw-trend-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    color: inherit;
}
.nw-trend-item:last-child {
    border-bottom: none;
    padding-bottom: 2px;
}
.nw-trend-item:hover .nw-trend-title {
    color: #2b50d0;
}
.nw-trend-n {
    font-family: inherit;
    font-size: 18px;
    font-weight: 900;
    color: #e2e8f0;
    line-height: 1;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
    transition: color 0.15s;
}
.nw-trend-item:hover .nw-trend-n {
    color: #c4d2f0;
}
.nw-trend-title {
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.45;
    transition: color 0.15s;
}
.nw-trend-cat {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 3px;
}

/* topics */
.nw-topic-grid {
    padding: 14px 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.nw-topic {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid #e2e8f0;
    color: #64748b;
    background: #f1f4fb;
    transition: all 0.15s;
    text-decoration: none;
}
.nw-topic:hover {
    background: #eef1fb;
    border-color: #c4d2f0;
    color: #1e2d8f;
}

/* newsletter */
.nw-nl-box {
    padding: 18px;
}
.nw-nl-title {
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}
.nw-nl-sub {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 14px;
}
.nw-nl-input {
    width: 100%;
    padding: 9px 13px;
    background: #f1f4fb;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    font-size: 13.5px;
    color: #0f172a;
    outline: none;
    margin-bottom: 8px;
    transition: border 0.15s;
    font-family: inherit;
}
.nw-nl-input:focus {
    border-color: #2b50d0;
    background: #fff;
}
.nw-nl-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #1e2d8f, #2b50d0);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.18s;
    box-shadow: 0 3px 12px rgba(30, 45, 143, 0.25);
}
.nw-nl-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(30, 45, 143, 0.32);
}
.nw-nl-emoji {
    font-size: 24px;
    margin-bottom: 10px;
}

/* ── CATEGORY PAGE ── */
.nw-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #64748b;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.nw-breadcrumb a {
    color: #2b50d0;
    text-decoration: none;
    font-weight: 600;
}
.nw-breadcrumb a:hover {
    text-decoration: underline;
}
.nw-breadcrumb i {
    font-size: 9px;
    color: #94a3b8;
}
.nw-breadcrumb span {
    color: #374151;
    font-weight: 600;
}
.nw-cate-header {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}
.nw-cate-title {
    font-size: 22px;
    font-weight: 900;
    color: #1e2d8f;
    margin: 0 0 8px;
    line-height: 1.3;
}
.nw-cate-desc {
    font-size: 13.5px;
    color: #374151;
    line-height: 1.6;
    margin: 0 0 12px;
}
.nw-cate-count {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #2b50d0;
    background: #eef1fb;
    border: 1px solid #c4d2f0;
    padding: 3px 10px;
    border-radius: 7px;
}
.nw-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px 14px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 11px;
    transition: border-color 0.2s;
}
.nw-search-bar:focus-within {
    border-color: #2b50d0;
}
.nw-search-icon {
    color: #2b50d0;
    font-size: 15px;
    flex-shrink: 0;
}
.nw-search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 13.5px;
    color: #1e293b;
}
.nw-search-input::placeholder {
    color: #94a3b8;
}
.nw-search-btn {
    border: none;
    background: #2b50d0;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}
.nw-search-btn:hover {
    background: #1e2d8f;
}

/* ── CATEGORY PAGE — 2-column layout ── */
.nw-cate-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 24px 60px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}
.nw-cate-main {
    min-width: 0;
}

.nw-cate-hero {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.nw-cate-hero h1 {
    margin: 12px 0 8px;
}
.nw-cate-hero p {
    color: #64748b;
    margin: 0 0 14px;
}
.nw-cate-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #2b50d0;
    background: #eef1fb;
    border: 1px solid #c4d2f0;
    padding: 3px 10px;
    border-radius: 7px;
}

.nw-cate-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.nw-cate-filter-left {
    flex-shrink: 0;
}
.nw-cate-filter-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 12px;
    transition: border-color 0.2s;
}
.nw-cate-filter-search:focus-within {
    border-color: #2b50d0;
}
.nw-cate-filter-search i {
    color: #94a3b8;
    font-size: 14px;
    flex-shrink: 0;
}
.nw-cate-filter-search input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 13.5px;
    color: #1e293b;
    font-family: inherit;
}
.nw-cate-filter-search input::placeholder {
    color: #94a3b8;
}
.nw-cate-filter-search button {
    border: none;
    background: #2b50d0;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}
.nw-cate-filter-search button:hover {
    background: #1e2d8f;
}

.nw-topic--active {
    background: #2b50d0;
    color: #fff;
    border-color: #2b50d0;
}

/* ── EMPTY STATE ── */
.nw-empty {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}
.nw-empty i {
    font-size: 48px;
    color: #c4d2f0;
    display: block;
    margin-bottom: 12px;
}
.nw-empty p {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

/* ══════════════════════════════════════
   ALL NEWS PAGE
   ══════════════════════════════════════ */
.nw-all-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 24px 60px;
}
.nw-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 7px 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.15s;
    text-decoration: none;
}
.nw-btn-back:hover {
    background: #eef1fb;
    color: #1e2d8f;
    border-color: #c4d2f0;
}
.nw-btn-back svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.nw-all-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.nw-all-title {
    font-family: inherit;
    font-size: 22px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.4px;
}
.nw-all-count {
    font-size: 13px;
    color: #64748b;
}
.nw-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 22px;
    flex-wrap: wrap;
}
.nw-filter-select {
    padding: 8px 32px 8px 13px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    font-family: inherit;
    font-size: 13.5px;
    color: #374151;
    outline: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%239CA3AF'%3E%3Cpath d='M4.427 6.427l3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.396 6H4.604a.25.25 0 0 0-.177.427z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 10px) center;
    background-size: 16px;
    transition: border 0.15s;
}
.nw-filter-select:focus {
    border-color: #2b50d0;
}
.nw-filter-search {
    flex: 1;
    max-width: 320px;
    padding: 8px 13px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    font-family: inherit;
    font-size: 13.5px;
    color: #374151;
    outline: none;
    transition: border 0.15s;
}
.nw-filter-search:focus {
    border-color: #2b50d0;
}

.nw-all-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.nw-all-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.05),
        0 6px 20px rgba(30, 45, 143, 0.07);
    text-decoration: none;
    color: inherit;
    animation: nwFadeUp 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.nw-all-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(30, 45, 143, 0.12);
    border-color: #c4d2f0;
}
.nw-all-card:hover .nw-ac-thumb img {
    transform: scale(1.04);
}
.nw-ac-thumb {
    position: relative;
    overflow: hidden;
}
.nw-ac-thumb img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}
.nw-ac-thumb-ph {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #dde4f6, #c4d2f0);
    display: flex;
    align-items: center;
    justify-content: center;
}
.nw-ac-thumb-ph svg {
    width: 32px;
    height: 32px;
    stroke: #c4d2f0;
    fill: none;
    stroke-width: 1.5;
}
.nw-ac-cat {
    position: absolute;
    top: 9px;
    left: 9px;
    font-family: inherit;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
    background: rgba(232, 52, 26, 0.9);
    color: #fff;
}
.nw-ac-body {
    padding: 13px 14px;
}
.nw-ac-title {
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}
.nw-ac-summary {
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 10px;
}
.nw-ac-foot {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 9px;
    border-top: 1px solid #e2e8f0;
}
.nw-ac-av {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dde4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
    color: #2b50d0;
    font-weight: 700;
}
.nw-ac-author {
    font-size: 11.5px;
    font-weight: 600;
    color: #2b50d0;
    cursor: pointer;
    transition: color 0.15s;
}
.nw-ac-author:hover {
    color: #1e2d8f;
    text-decoration: underline;
}
.nw-ac-date {
    font-size: 11px;
    color: #94a3b8;
    margin-left: auto;
}

/* ══════════════════════════════════════
   DETAIL PAGE
   ══════════════════════════════════════ */
.nw-detail-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 24px 60px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}
.nw-detail-main {
    min-width: 0;
}
.nw-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 72px;
}

/* hero banner */
.nw-art-banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    aspect-ratio: 21/9;
}
.nw-art-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.nw-art-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 15, 40, 0.85) 0%,
        rgba(10, 15, 40, 0.3) 50%,
        rgba(10, 15, 40, 0.05) 100%
    );
}
.nw-art-banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 32px;
    z-index: 2;
}
.nw-art-banner-cat {
    display: inline-block;
    background: #e8341a;
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.nw-art-banner-content h1 {
    color: #fff;
    margin: 0 0 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.nw-art-banner-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.65);
}
.nw-art-banner-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nw-art-banner-meta i {
    font-size: 13px;
}

/* title fallback (no image) */
.nw-art-title {
    margin-bottom: 16px;
}

/* author card */
.nw-art-author-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    flex-wrap: wrap;
}
.nw-art-author-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}
.nw-art-author-wrap:hover .nw-art-author-name {
    color: #2b50d0;
}
.nw-art-av {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dde4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #2b50d0;
    flex-shrink: 0;
    overflow: hidden;
}
.nw-art-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nw-art-author-name {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}
.nw-art-author-role {
    font-size: 11.5px;
    color: #94a3b8;
}
.nw-art-meta-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12.5px;
    color: #94a3b8;
}
.nw-art-meta-right span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nw-art-meta-right i {
    font-size: 13px;
}

/* article content card */
.nw-art-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    margin-bottom: 28px;
}
.nw-art-body {
    font-size: 15px;
    color: #374151;
    line-height: 1.85;
    margin-bottom: 24px;
}
.nw-art-body p {
    margin-bottom: 18px;
}
.nw-art-body h2 {
    letter-spacing: -0.3px;
    margin: 28px 0 14px;
}
.nw-art-body h3 {
    margin: 22px 0 10px;
}
.nw-art-body blockquote {
    border-left: 3px solid #e8341a;
    padding: 14px 20px;
    background: #fff1ee;
    border-radius: 0 10px 10px 0;
    margin: 22px 0;
    font-style: italic;
    color: #1e293b;
    font-size: 15px;
    line-height: 1.7;
}
.nw-art-body ul {
    padding-left: 20px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.nw-art-body li {
    color: #374151;
    line-height: 1.7;
}
.nw-art-body strong {
    color: #0f172a;
    font-weight: 700;
}
.nw-art-card {
    overflow-wrap: break-word;
}
.nw-art-body {
    overflow-wrap: break-word;
    word-break: break-word;
}
.nw-art-body img {
    max-width: 100%;
    height: auto;
}
.nw-art-body table {
    display: block;
    width: 100%;
    overflow-x: auto;
}
.nw-art-body iframe,
.nw-art-body video,
.nw-art-body embed {
    max-width: 100%;
}
.nw-art-body pre {
    overflow-x: auto;
    max-width: 100%;
}

.nw-art-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 28px;
}
.nw-art-tag {
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #2b50d0;
    background: #eef1fb;
    border: 1.5px solid #c4d2f0;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}
.nw-art-tag:hover {
    background: #2b50d0;
    color: #fff;
    border-color: #2b50d0;
}

.nw-share-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.nw-share-lbl {
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}
.nw-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    text-decoration: none;
}
.nw-sb-fb {
    background: #1877f2;
    color: #fff;
}
.nw-sb-fb:hover {
    background: #1560c0;
}
.nw-sb-tw {
    background: #000;
    color: #fff;
}
.nw-sb-tw:hover {
    background: #222;
}
.nw-sb-cp {
    background: #f1f4fb;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
}
.nw-sb-cp:hover {
    background: #eef1fb;
    color: #1e2d8f;
}

.nw-related-full {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 60px;
}
.nw-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

/* ── ANIMATIONS ── */
@keyframes nwFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .nw-page {
        grid-template-columns: 1fr;
    }
    .nw-sidebar {
        position: static;
    }
    .nw-banner-swiper {
        max-height: 400px;
    }
    .nw-banner-text {
        padding: 32px;
    }
    .nw-all-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .nw-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .nw-detail-wrap {
        grid-template-columns: 1fr;
    }
    .nw-detail-sidebar {
        position: static;
    }
    .nw-cate-page {
        grid-template-columns: 1fr;
    }
    .nw-art-banner {
        aspect-ratio: 16/9;
    }
    .nw-art-card {
        padding: 24px;
    }
}
@media (max-width: 640px) {
    .nw-featured-grid {
        grid-template-columns: 1fr;
    }
    .nw-banner-swiper {
        min-height: 240px;
        max-height: 300px;
    }
    .nw-banner-text {
        padding: 20px 16px;
    }
    .nw-list-card {
        grid-template-columns: 100px 1fr;
    }
    .nw-empty {
        padding: 32px 16px;
    }
    .nw-empty i {
        font-size: 36px;
    }
    .nw-ticker {
        padding: 10px 16px;
    }
    .nw-banner-prev,
    .nw-banner-next {
        display: none !important;
    }
    .nw-all-grid,
    .nw-related-grid {
        grid-template-columns: 1fr;
    }
    .nw-art-card {
        padding: 16px;
    }
    .nw-art-banner-content {
        padding: 16px 20px;
    }
    .nw-art-author-card {
        padding: 12px 14px;
    }
    .nw-cate-hero {
        padding: 20px;
    }
    .nw-cate-filter-search {
        min-width: 0;
    }
}

/* ── HOMEPAGE SECTION ── */
.nw-home-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition:
        box-shadow 0.2s,
        transform 0.2s;
    height: 100%;
}
.nw-home-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}
.nw-home-card__thumb {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f0f0f0;
}
.nw-home-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.nw-home-card:hover .nw-home-card__thumb img {
    transform: scale(1.05);
}
.nw-home-card__ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #ccc;
    font-size: 40px;
    background: #f5f5f5;
}
.nw-home-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(30, 45, 143, 0.85);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}
.nw-home-card__body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.nw-home-card__title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #111;
    margin-bottom: 8px;
}
.nw-home-card__author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.nw-home-card__av {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e8eaf6;
    color: #3949ab;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
}
.nw-home-card__av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nw-home-card__aname {
    font-weight: 600;
    color: #333;
}
.nw-home-card__verified {
    color: #3949ab;
    font-size: 12px;
}
.nw-home-card__date {
    color: #999;
    font-size: 11px;
}
.nw-home-card__desc {
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}
