/* ═══════════════════════════════════════════════════
   css/news.css — HTI News / Blog Page
   Depends on global.css variables
═══════════════════════════════════════════════════ */

/* ── HERO ─────────────────────────────────────────── */
.nw-hero {
    position: relative;
    padding: 160px 0 70px;
    overflow: hidden;
    text-align: center;
}
.nw-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.nw-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(to bottom, transparent, transparent 79px, rgba(0,194,255,0.05) 80px),
        repeating-linear-gradient(to right,  transparent, transparent 79px, rgba(0,194,255,0.05) 80px);
}
.nw-bg-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(0,194,255,0.09), transparent);
}
.nw-hero-inner { position: relative; z-index: 1; }

/* breadcrumb */
.nw-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    justify-content: center;
}
.nw-breadcrumb a { color: var(--text-muted); transition: color .2s; }
.nw-breadcrumb a:hover { color: var(--highlight); }
.nw-breadcrumb svg { opacity: .5; }
.nw-breadcrumb span:last-child { color: var(--highlight); }

/* eyebrow */
.nw-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.nw-dot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--highlight);
    box-shadow: 0 0 8px var(--highlight);
    animation: nw-dot-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes nw-dot-pulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:.4; transform:scale(.7); }
}

/* H1 */
.nw-hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
    text-shadow: 0 0 40px rgba(0,194,255,0.15);
}
.nw-hero h1 em { font-style: normal; color: var(--highlight); }
.nw-hero-desc {
    max-width: 680px;
    margin: 0 auto 32px;
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.8;
}

/* search bar */
.nw-search {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 520px;
    margin: 0 auto;
    background: rgba(8,28,46,0.7);
    border: 1px solid rgba(0,194,255,0.2);
    border-radius: 12px;
    padding: 4px 4px 4px 16px;
    transition: border-color .25s, box-shadow .25s;
}
.nw-search:focus-within {
    border-color: var(--highlight);
    box-shadow: 0 0 0 3px rgba(0,240,255,0.08);
}
.nw-search svg { flex-shrink: 0; color: var(--text-muted); }
.nw-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.92rem;
    font-family: inherit;
    padding: 10px 12px;
}
.nw-search input::placeholder { color: rgba(160,196,226,0.4); }
.nw-search button {
    height: 40px;
    padding: 0 20px;
    background: linear-gradient(90deg, var(--accent), var(--highlight));
    color: #05121e;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: inherit;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .2s;
}
.nw-search button:hover { opacity: .85; }

/* ── FILTER TABS ──────────────────────────────────── */
.nw-tabs {
    border-top: 1px solid rgba(0,194,255,0.1);
    border-bottom: 1px solid rgba(0,194,255,0.1);
    background: rgba(255,255,255,0.02);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.nw-tabs-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 0;
}
.nw-tabs-inner::-webkit-scrollbar { display: none; }

.nw-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 52px;
    padding: 0 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color .2s, background .2s, border-color .2s;
}
.nw-tab:hover { color: #fff; background: rgba(0,194,255,0.04); }
.nw-tab.active {
    color: var(--highlight);
    border-bottom-color: var(--highlight);
    background: rgba(0,194,255,0.05);
}
.nw-tab-count {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(0,194,255,0.1);
    border: 1px solid rgba(0,194,255,0.2);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
}
.nw-tab.active .nw-tab-count {
    background: rgba(0,194,255,0.15);
    border-color: var(--highlight);
    color: var(--highlight);
}

/* ── SECTION COMMON ──────────────────────────────── */
.nw-section { padding: 70px 0; }
.nw-section-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 22px;
}

/* ── FEATURED ARTICLE ─────────────────────────────── */
.nw-featured-section { border-top: 1px solid rgba(0,194,255,0.08); }
.nw-featured {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(0,194,255,0.12);
    border-radius: 18px;
    overflow: hidden;
    transition: border-color .3s, box-shadow .3s;
}
.nw-featured:hover {
    border-color: rgba(0,194,255,0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.nw-featured-img-wrap {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: block;
}
.nw-featured-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
    display: block;
}
.nw-featured:hover .nw-featured-img-wrap img { transform: scale(1.05); }
.nw-featured-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 60%, rgba(8,28,46,0.6));
}
.nw-featured-body {
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}
.nw-featured-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.nw-featured-body h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.35;
    letter-spacing: -0.2px;
    margin: 0;
}
.nw-featured-body > p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0;
}

/* ── SHARED ELEMENTS ──────────────────────────────── */
.nw-badge {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(0,194,255,0.3);
    background: rgba(0,194,255,0.07);
    color: var(--highlight);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    white-space: nowrap;
}
.nw-badge--sm { height: 22px; font-size: 0.7rem; padding: 0 10px; }

.nw-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.nw-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    background: linear-gradient(90deg, var(--accent), var(--highlight));
    color: #05121e;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 9px;
    align-self: flex-start;
    transition: all .25s;
}
.nw-read-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,194,255,0.3); }

/* ── ARTICLE GRID ─────────────────────────────────── */
.nw-grid-section { border-top: 1px solid rgba(0,194,255,0.08); }
.nw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}
.nw-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(0,194,255,0.1);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .3s ease, border-color .3s, box-shadow .3s;
    display: flex;
    flex-direction: column;
    position: relative;
}
.nw-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--highlight), transparent);
    transform: translateX(-100%);
    transition: transform .5s ease;
}
.nw-card:hover { transform: translateY(-6px); border-color: rgba(0,194,255,0.3); box-shadow: 0 16px 44px rgba(0,0,0,0.5); }
.nw-card:hover::before { transform: translateX(100%); }

.nw-card-img-wrap {
    height: 200px;
    overflow: hidden;
    display: block;
    background: #0a1628;
}
.nw-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
    display: block;
}
.nw-card:hover .nw-card-img-wrap img { transform: scale(1.06); }

.nw-card-body {
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.nw-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.nw-card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.45;
    margin: 0;
}
.nw-card-body h3 a {
    transition: color .2s;
}
.nw-card-body h3 a:hover { color: var(--highlight); }
.nw-card-body > p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nw-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--highlight);
    margin-top: auto;
    transition: gap .2s;
}
.nw-card-link:hover { gap: 10px; }

/* empty state */
.nw-empty {
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
}
.nw-empty p { font-size: 1rem; }

/* ── PAGINATION ───────────────────────────────────── */
.nw-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.nw-page-btn {
    display: grid;
    place-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 9px;
    border: 1px solid rgba(0,194,255,0.15);
    background: rgba(255,255,255,0.025);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all .2s ease;
}
.nw-page-btn:hover {
    color: var(--highlight);
    border-color: rgba(0,194,255,0.4);
    background: rgba(0,194,255,0.07);
}
.nw-page-btn--active {
    color: var(--highlight);
    border-color: var(--highlight);
    background: rgba(0,194,255,0.1);
    box-shadow: 0 0 14px rgba(0,194,255,0.15);
}
.nw-page-sep {
    border: none;
    background: transparent;
    cursor: default;
    color: rgba(160,196,226,0.3);
}

/* ── CTA ──────────────────────────────────────────── */
.nw-cta {
    position: relative;
    padding: 90px 0;
    text-align: center;
    overflow: hidden;
    border-top: 1px solid rgba(0,194,255,0.1);
}
.nw-cta-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 280px;
    background: radial-gradient(ellipse, rgba(0,194,255,0.1), transparent 70%);
    pointer-events: none;
}
.nw-cta-inner { position: relative; z-index: 1; }
.nw-cta h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}
.nw-cta p {
    max-width: 600px;
    margin: 0 auto 32px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}
.nw-cta-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.nw-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 26px;
    background: linear-gradient(90deg, var(--accent), var(--highlight));
    color: #05121e;
    font-weight: 700;
    font-size: 0.92rem;
    border-radius: 10px;
    transition: all .25s;
    white-space: nowrap;
}
.nw-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(0,194,255,0.35); }
.nw-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(0,194,255,0.25);
    color: var(--text);
    font-size: 0.92rem;
    border-radius: 10px;
    transition: all .25s;
    white-space: nowrap;
}
.nw-btn-ghost:hover { border-color: var(--highlight); color: var(--highlight); }

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 1024px) {
    .nw-grid { grid-template-columns: repeat(2, 1fr); }
    .nw-featured { grid-template-columns: 1fr; }
    .nw-featured-img-wrap { min-height: 240px; }
    .nw-featured-img-overlay { background: linear-gradient(to bottom, transparent 50%, rgba(8,28,46,0.7)); }
    .nw-featured-body { padding: 28px 28px 32px; }
}
@media (max-width: 640px) {
    .nw-hero { padding: 130px 0 50px; }
    .nw-grid { grid-template-columns: 1fr; }
    .nw-featured-body { padding: 22px 20px 26px; }
    .nw-tabs-inner { justify-content: flex-start; }
    .nw-cta-btns { flex-direction: column; align-items: center; }
    .nw-btn-primary, .nw-btn-ghost { width: 100%; max-width: 300px; justify-content: center; }
}
