/* ============================================================
   News Detail — glassomorphic article page
   Prefix: .v16-nv-
   ============================================================ */

/* ---- Category badge (self-contained for this page) ---- */
.v16-nv-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.v16-nv-badge--is-news {
    background: rgba(0, 104, 142, 0.13);
    color: #00566e;
}

.v16-nv-badge--is-announcement {
    background: rgba(216, 180, 106, 0.18);
    color: #9a6e10;
}

.v16-nv-badge--is-event {
    background: rgba(102, 214, 231, 0.18);
    color: #1a8c9e;
}

/* ---- Hero ---- */
.v16-nv-hero {
    position: relative;
    padding: clamp(56px, 9vw, 88px) 0 clamp(44px, 7vw, 72px);
    background: linear-gradient(
        135deg,
        rgba(10, 54, 82, 0.97) 0%,
        rgba(0, 88, 128, 0.93) 38%,
        rgba(14, 62, 96, 0.95) 62%,
        rgba(10, 54, 82, 0.98) 100%
    );
    overflow: hidden;
}

.v16-nv-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 0% 50%, rgba(102, 214, 231, 0.10), transparent 55%),
        radial-gradient(ellipse 50% 60% at 100% 30%, rgba(216, 180, 106, 0.08), transparent 50%);
    pointer-events: none;
}

.v16-nv-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(3px) saturate(0.6);
    transform: scale(1.06);
    opacity: 0.22;
}

.v16-nv-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(10, 54, 82, 0.90) 0%,
        rgba(0, 88, 128, 0.78) 50%,
        rgba(10, 54, 82, 0.94) 100%
    );
}

.v16-nv-hero--has-image .v16-nv-hero__overlay {
    background: linear-gradient(
        160deg,
        rgba(10, 54, 82, 0.86) 0%,
        rgba(0, 88, 128, 0.72) 50%,
        rgba(10, 54, 82, 0.90) 100%
    );
}

.v16-nv-hero__inner {
    position: relative;
    z-index: 1;
}

/* breadcrumb light override */
.v16-breadcrumb--light,
.v16-breadcrumb--light li,
.v16-breadcrumb--light a {
    color: rgba(255, 255, 255, 0.65);
}

.v16-breadcrumb--light li + li::before {
    color: rgba(255, 255, 255, 0.30);
}

.v16-breadcrumb--light a:hover {
    color: rgba(255, 255, 255, 0.90);
}

.v16-breadcrumb--light [aria-current] {
    color: rgba(255, 255, 255, 0.46);
}

.v16-nv-hero__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: clamp(14px, 2.2vw, 20px) 0 clamp(14px, 2.2vw, 20px);
}

.v16-nv-hero__date {
    font-size: 0.84rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.66);
    letter-spacing: 0.02em;
}

.v16-nv-hero__views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.50);
}

.v16-nv-hero__title {
    margin: 0 0 clamp(12px, 2vw, 18px);
    font-size: clamp(1.55rem, 4vw, 2.7rem);
    font-weight: 800;
    line-height: 1.16;
    color: #fff;
    max-width: 820px;
}

.v16-nv-hero__author {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-size: 0.86rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.56);
}

/* hero badge override for white text */
.v16-nv-hero .v16-nv-badge--is-news {
    background: rgba(102, 214, 231, 0.18);
    color: rgba(255, 255, 255, 0.85);
}

.v16-nv-hero .v16-nv-badge--is-announcement {
    background: rgba(216, 180, 106, 0.22);
    color: rgba(255, 255, 255, 0.85);
}

.v16-nv-hero .v16-nv-badge--is-event {
    background: rgba(102, 214, 231, 0.18);
    color: rgba(255, 255, 255, 0.85);
}

/* ---- Page background ---- */
.v16-nv-page {
    position: relative;
    padding: clamp(32px, 4vw, 56px) 0 clamp(56px, 9vw, 104px);
    background:
        radial-gradient(ellipse 80% 48% at 5% 0%, rgba(102, 214, 231, 0.10), transparent 52%),
        radial-gradient(ellipse 64% 40% at 96% 4%, rgba(216, 180, 106, 0.07), transparent 46%),
        linear-gradient(180deg, #e4f0f7 0%, #f0f7fb 44%, #ffffff 100%);
}

.v16-nv-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0, 104, 142, 0.028) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
    opacity: 0.55;
}

/* ---- Two-column layout ---- */
.v16-nv-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 308px;
    align-items: start;
    gap: clamp(20px, 3.2vw, 40px);
}

/* ---- Article glass panel ---- */
.v16-nv-article {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    box-shadow:
        0 28px 72px rgba(10, 54, 82, 0.08),
        0 4px 16px rgba(10, 54, 82, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
    overflow: hidden;
}

.v16-nv-article::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #00668e 0%, rgba(102, 214, 231, 0.60) 100%);
}

.v16-nv-article__image {
    margin: 0;
    width: 100%;
    max-height: 440px;
    overflow: hidden;
    background: rgba(10, 54, 82, 0.06);
}

.v16-nv-article__image img {
    width: 100%;
    height: 100%;
    max-height: 440px;
    object-fit: cover;
    display: block;
}

/* ---- Article typography ---- */
.v16-nv-article__body {
    padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 48px);
}

.v16-nv-article__body,
.v16-nv-article__body > p,
.v16-nv-article__body > div {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.v16-nv-article__body p {
    margin: 0 0 1.35em;
    font-size: clamp(0.97rem, 1.25vw, 1.07rem);
    line-height: 1.78;
    color: rgba(10, 54, 82, 0.80);
    text-align: justify;
}

.v16-nv-article__body p:last-child {
    margin-bottom: 0;
}

.v16-nv-article__body h2 {
    margin: 1.8em 0 0.65em;
    font-size: clamp(1.18rem, 2vw, 1.42rem);
    font-weight: 700;
    line-height: 1.26;
    color: var(--tma-dark, #0a3652);
    text-align: left;
}

.v16-nv-article__body h3 {
    margin: 1.5em 0 0.6em;
    font-size: clamp(1.05rem, 1.6vw, 1.22rem);
    font-weight: 700;
    line-height: 1.30;
    color: var(--tma-dark, #0a3652);
    text-align: left;
}

.v16-nv-article__body h4,
.v16-nv-article__body h5,
.v16-nv-article__body h6 {
    margin: 1.2em 0 0.5em;
    font-weight: 700;
    color: var(--tma-dark, #0a3652);
    text-align: left;
}

.v16-nv-article__body a {
    color: var(--tma-teal, #00668e);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 160ms ease;
}

.v16-nv-article__body a:hover {
    color: var(--tma-dark, #0a3652);
}

.v16-nv-article__body ul,
.v16-nv-article__body ol {
    margin: 0 0 1.3em;
    padding-left: 1.65em;
    text-align: left;
}

.v16-nv-article__body li {
    margin-bottom: 0.42em;
    font-size: clamp(0.97rem, 1.25vw, 1.07rem);
    line-height: 1.68;
    color: rgba(10, 54, 82, 0.80);
}

.v16-nv-article__body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 1.4em auto;
}

.v16-nv-article__body blockquote {
    margin: 1.7em 0;
    padding: 1em 1.4em;
    border-left: 3px solid var(--tma-teal, #00668e);
    background: rgba(0, 104, 142, 0.045);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: rgba(10, 54, 82, 0.72);
    text-align: left;
}

.v16-nv-article__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    font-size: 0.93rem;
    text-align: left;
}

.v16-nv-article__body th,
.v16-nv-article__body td {
    padding: 10px 14px;
    border: 1px solid rgba(10, 54, 82, 0.10);
}

.v16-nv-article__body th {
    background: rgba(0, 104, 142, 0.07);
    font-weight: 700;
    color: var(--tma-dark, #0a3652);
}

/* ---- Attachments ---- */
.v16-nv-article__attachments {
    padding: clamp(18px, 2.5vw, 24px) clamp(24px, 4vw, 48px);
    border-top: 1px solid rgba(10, 54, 82, 0.07);
    background: rgba(240, 248, 252, 0.55);
}

.v16-nv-article__attachments-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 13px;
    font-size: 0.80rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tma-dark, #0a3652);
}

.v16-nv-article__files {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v16-nv-article__file-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 10px;
    border: 1px solid rgba(0, 104, 142, 0.16);
    background: rgba(255, 255, 255, 0.75);
    color: var(--tma-teal, #00668e);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 180ms ease, border-color 180ms ease;
}

.v16-nv-article__file-link:hover {
    background: rgba(232, 246, 252, 0.98);
    border-color: rgba(0, 104, 142, 0.28);
}

/* ---- Prev / Next ---- */
.v16-nv-prevnext {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(12px, 2vw, 20px);
    margin-top: clamp(18px, 2.5vw, 26px);
}

.v16-nv-prevnext__item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: clamp(14px, 2vw, 18px) clamp(16px, 2.4vw, 22px);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(10, 54, 82, 0.05);
    transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.v16-nv-prevnext__item:hover {
    background: rgba(232, 246, 252, 0.96);
    border-color: rgba(0, 104, 142, 0.24);
    transform: translateY(-2px);
}

.v16-nv-prevnext__item--next {
    text-align: right;
    align-items: flex-end;
}

.v16-nv-prevnext__dir {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--tma-teal, #00668e);
}

.v16-nv-prevnext__title {
    font-size: 0.87rem;
    font-weight: 600;
    line-height: 1.36;
    color: var(--tma-dark, #0a3652);
}

/* ---- Sidebar ---- */
.v16-nv-sidebar {
    position: relative;
}

.v16-nv-sidebar__sticky {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.v16-nv-sidebar__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 999px;
    border: 1px solid rgba(0, 104, 142, 0.18);
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--tma-teal, #00668e);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 180ms ease, border-color 180ms ease;
}

.v16-nv-sidebar__back:hover {
    background: rgba(232, 246, 252, 0.98);
    border-color: rgba(0, 104, 142, 0.30);
}

/* ---- Latest news panel ---- */
.v16-nv-latest {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    box-shadow:
        0 20px 52px rgba(10, 54, 82, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
    overflow: hidden;
}

.v16-nv-latest::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--tma-teal, #00668e) 0%, rgba(102, 214, 231, 0.55) 100%);
}

.v16-nv-latest__heading {
    margin: 0;
    padding: 16px 18px 12px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--tma-dark, #0a3652);
    border-bottom: 1px solid rgba(10, 54, 82, 0.06);
}

.v16-nv-latest__list {
    display: flex;
    flex-direction: column;
}

.v16-nv-latest__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(10, 54, 82, 0.054);
    text-decoration: none;
    transition: background 200ms ease;
}

.v16-nv-latest__item:last-child {
    border-bottom: 0;
}

.v16-nv-latest__item:hover {
    background: rgba(232, 246, 252, 0.50);
}

.v16-nv-latest__thumb {
    flex-shrink: 0;
    width: 58px;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 104, 142, 0.07);
}

.v16-nv-latest__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 340ms ease;
}

.v16-nv-latest__item:hover .v16-nv-latest__thumb img {
    transform: scale(1.06);
}

.v16-nv-latest__thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 104, 142, 0.28);
}

.v16-nv-latest__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.v16-nv-latest__title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.38;
    color: var(--tma-dark, #0a3652);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 160ms ease;
}

.v16-nv-latest__item:hover .v16-nv-latest__title {
    color: var(--tma-teal, #00668e);
}

.v16-nv-latest__date {
    font-size: 0.73rem;
    font-weight: 600;
    color: rgba(10, 54, 82, 0.44);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .v16-nv-layout {
        grid-template-columns: 1fr;
    }

    .v16-nv-sidebar__sticky {
        position: static;
    }

    .v16-nv-latest__list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }

    .v16-nv-latest__item {
        border-bottom: 0;
        border-right: 1px solid rgba(10, 54, 82, 0.054);
    }

    .v16-nv-latest__item:last-child {
        border-right: 0;
    }
}

@media (max-width: 768px) {
    .v16-nv-hero__title {
        font-size: clamp(1.35rem, 5.5vw, 1.9rem);
    }

    .v16-nv-article__body {
        padding: clamp(18px, 5vw, 28px) clamp(16px, 5vw, 24px);
    }

    .v16-nv-article__attachments {
        padding: 16px clamp(16px, 5vw, 24px);
    }

    .v16-nv-prevnext {
        grid-template-columns: 1fr;
    }

    .v16-nv-latest__list {
        grid-template-columns: 1fr;
    }

    .v16-nv-latest__item {
        border-right: 0;
        border-bottom: 1px solid rgba(10, 54, 82, 0.054);
    }

    .v16-nv-latest__item:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 480px) {
    .v16-nv-article__image {
        max-height: 220px;
    }

    .v16-nv-layout {
        gap: 16px;
    }

    .v16-nv-prevnext__item {
        padding: 12px 14px;
    }
}
