/* Vremea Nouă — custom news theme
   Brand tokens taken from production (Jannah):
   red #c1192b, dark red #8f0000, base dark #2c2f34, headings Poppins */

:root {
    --vn-red: #c1192b;
    --vn-red-dark: #8f0000;
    --vn-dark: #2c2f34;
    --vn-dark-2: #24272b;
    --vn-text: #1f2226;
    --vn-muted: #70757d;
    --vn-line: #e6e8ea;
    --vn-bg: #ffffff;
    --vn-bg-soft: #f5f6f7;
    --font-head: "Poppins", system-ui, -apple-system, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;
    color-scheme: light;
}

* { box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--vn-text);
    background: var(--vn-bg);
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.vn-container { max-width: 122rem; margin: 0 auto; padding: 0 2rem; }
.vn-narrow { max-width: 76rem; margin-left: auto; margin-right: auto; padding: 0 2rem; }

/* ---------- Header (white, drop shadow) ---------- */
.vn-header {
    background: #fff;
    border-top: 4px solid var(--vn-red);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 3px 14px rgba(0,0,0,.1);
}
.vn-header-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 6.4rem;
}
.vn-logo { display: flex; align-items: center; flex-shrink: 0; }
.vn-logo img { height: 4rem; width: auto; }
.vn-logo-text { font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; color: var(--vn-dark); }

.vn-nav { margin-left: auto; }
.vn-nav .nav {
    display: flex;
    align-items: center;
    gap: .2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.vn-nav .nav a {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: 2.2rem 1rem;
    color: var(--vn-dark);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    border-bottom: 3px solid transparent;
    transition: border-color .15s, color .15s;
}
.vn-nav .nav svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--vn-red);
    flex-shrink: 0;
}
.vn-nav .nav a:hover,
.vn-nav .nav .nav-current a {
    color: var(--vn-red);
    border-bottom-color: var(--vn-red);
}

/* Dropdown under Știri */
.vn-has-sub { position: relative; }
.vn-caret {
    width: 1.1rem !important;
    height: 1.1rem;
    color: var(--vn-muted) !important;
    margin-left: -.2rem;
}
.vn-sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 17rem;
    list-style: none;
    margin: 0;
    padding: .4rem 0;
    background: #fff;
    border: 1px solid var(--vn-line);
    border-radius: .4rem;
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
    z-index: 50;
}
.vn-has-sub:hover .vn-sub,
.vn-has-sub:focus-within .vn-sub { display: block; }
.vn-sub a {
    padding: 1rem 1.6rem;
    border-bottom: 0;
    text-transform: none;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0;
    gap: .9rem;
}
.vn-sub a:hover {
    background: var(--vn-bg-soft);
    color: var(--vn-red);
    border-bottom: 0;
}

.vn-search-btn {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-shrink: 0;
    background: var(--vn-bg-soft);
    border: 1px solid var(--vn-line);
    border-radius: 2rem;
    padding: .7rem 1.4rem;
    color: var(--vn-muted);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.3rem;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}
.vn-search-btn svg { width: 1.5rem; height: 1.5rem; color: var(--vn-red); }
.vn-search-btn:hover { border-color: var(--vn-red); color: var(--vn-dark); }

.vn-burger {
    display: none;
    background: none;
    border: 0;
    padding: 1rem;
    cursor: pointer;
}
.vn-burger span {
    display: block;
    width: 2.4rem;
    height: 2px;
    background: var(--vn-dark);
    margin: 5px 0;
}

/* ---------- Promo banner ---------- */
.vn-promo { margin-top: 2.4rem; }
.vn-promo img {
    display: block;
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
}

/* ---------- Breaking-news ticker ---------- */
.vn-ticker {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin-top: 2.4rem;
    border: 1px solid var(--vn-line);
    border-radius: .5rem;
    overflow: hidden;
    min-height: 4.4rem;
}
.vn-ticker-label {
    flex-shrink: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
    background: var(--vn-red);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 0 1.6rem;
}
.vn-ticker-items { position: relative; flex: 1; min-width: 0; height: 2.2rem; }
.vn-ticker-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
    font-weight: 600;
    font-size: 1.45rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vn-ticker-item.is-active { opacity: 1; pointer-events: auto; }
.vn-ticker-item:hover { color: var(--vn-red); }
.vn-ticker-arrows { flex-shrink: 0; display: flex; gap: .4rem; padding-right: .8rem; }
.vn-ticker-arrows button {
    width: 2.8rem;
    height: 2.8rem;
    border: 1px solid var(--vn-line);
    border-radius: .4rem;
    background: #fff;
    color: var(--vn-muted);
    font-size: 1.1rem;
    cursor: pointer;
}
.vn-ticker-arrows button:hover { background: var(--vn-red); border-color: var(--vn-red); color: #fff; }

/* ---------- Hero mosaic (featured posts) ---------- */
.vn-hero { padding: 2rem 0 0; }
.vn-hero-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    height: clamp(38rem, 42vw, 52rem);
}
.vn-tile {
    position: relative;
    margin: 0;
    border-radius: .6rem;
    overflow: hidden;
    background: var(--vn-dark);
}
.vn-tile-0 { grid-column: 1 / 3; grid-row: 1 / 3; }
.vn-tile-1 { grid-column: 3 / 5; grid-row: 1; }
.vn-tile-2 { grid-column: 3 / 4; grid-row: 2; }
.vn-tile-3 { grid-column: 4 / 5; grid-row: 2; }
.vn-tile a { display: block; height: 100%; }
.vn-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.vn-tile:hover img { transform: scale(1.05); }
.vn-tile-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 2rem;
    background: linear-gradient(180deg, rgba(0,0,0,.02) 40%, rgba(0,0,0,.82) 100%);
}
.vn-tile-overlay h2 {
    font-family: var(--font-head);
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 1rem 0 .4rem;
    font-size: 1.6rem;
    text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.vn-tile-0 .vn-tile-overlay { padding: 2.8rem; }
.vn-tile-0 .vn-tile-overlay h2 { font-size: clamp(2rem, 2.4vw, 3rem); font-weight: 800; }
.vn-tile-1 .vn-tile-overlay h2 { font-size: clamp(1.7rem, 1.8vw, 2.3rem); }
.vn-tile-meta { color: rgba(255,255,255,.8); font-size: 1.2rem; font-weight: 500; }
.vn-tile-2 .vn-tile-meta, .vn-tile-3 .vn-tile-meta { display: none; }

/* ---------- Chips (category labels) ---------- */
.vn-chip {
    display: inline-block;
    background: var(--vn-red);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .4rem .9rem;
    border-radius: .3rem;
    line-height: 1.4;
}
a.vn-chip:hover { background: var(--vn-red-dark); }
.vn-chip-lg { font-size: 1.25rem; padding: .5rem 1.1rem; }
.vn-chip-outline {
    background: transparent;
    color: var(--vn-red);
    border: 1px solid var(--vn-red);
}
a.vn-chip-outline:hover { background: var(--vn-red); color: #fff; }

/* ---------- Sections & grid ---------- */
.vn-section { padding: 3.2rem 2rem 1.2rem; }
.vn-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 2px solid var(--vn-line);
    margin-bottom: 2.4rem;
}
.vn-section-head .vn-section-title { border-bottom: 0; margin-bottom: 0; }
.vn-more {
    color: var(--vn-red);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.vn-more:hover { color: var(--vn-red-dark); }
.vn-section-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.9rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin: 0 0 2.4rem;
    border-bottom: 2px solid var(--vn-line);
}
.vn-section-title span {
    display: inline-block;
    border-left: 4px solid var(--vn-red);
    padding: 0 0 .8rem 1.2rem;
    border-bottom: 2px solid var(--vn-red);
    margin-bottom: -2px;
}

.vn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(27rem, 1fr));
    gap: 3rem 2.4rem;
}

/* ---------- Cards ---------- */
.vn-card-img {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: .8rem;
    overflow: hidden;
    background: var(--vn-bg-soft);
}
.vn-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.vn-card:hover .vn-card-img img { transform: scale(1.04); }
.vn-card-img .vn-chip { position: absolute; left: 1rem; bottom: 1rem; }
.vn-card-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--vn-muted);
    font-family: var(--font-head);
    font-weight: 700;
}
.vn-card-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.7rem;
    line-height: 1.35;
    margin: 1.2rem 0 .6rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vn-card-title a:hover { color: var(--vn-red); }
.vn-card-meta {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    font-size: 1.25rem;
    color: var(--vn-muted);
}
.vn-views {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}
.vn-views svg { width: 1.4rem; height: 1.4rem; }
.vn-view-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-left: 1rem;
}
.vn-view-badge svg { width: 1.5rem; height: 1.5rem; color: var(--vn-red); }
.vn-card-meta time::before {
    content: "";
    display: inline-block;
    width: .6rem;
    height: .6rem;
    border-radius: 50%;
    background: var(--vn-red);
    margin-right: .7rem;
    vertical-align: middle;
}

/* ---------- Article ---------- */
.vn-article { padding-top: 4rem; }
.vn-article-header .vn-chip-lg { margin-bottom: 1.6rem; }
.vn-article-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(2.6rem, 4.5vw, 4rem);
    line-height: 1.2;
    margin: 1.2rem 0;
}
.vn-standfirst {
    font-size: 1.9rem;
    line-height: 1.55;
    color: var(--vn-muted);
    font-weight: 500;
    margin: 0 0 1.6rem;
}
.vn-article-meta {
    font-size: 1.35rem;
    color: var(--vn-muted);
    padding: 1.4rem 0;
    border-top: 1px solid var(--vn-line);
    border-bottom: 1px solid var(--vn-line);
}
.vn-article-meta .vn-author { color: var(--vn-red); font-weight: 600; }

.vn-feature { margin: 2.8rem auto; }
.vn-feature img { width: 100%; border-radius: 1rem; }
.vn-feature figcaption {
    font-size: 1.3rem;
    color: var(--vn-muted);
    text-align: center;
    padding-top: .8rem;
}

.vn-content {
    font-size: 1.75rem;
    line-height: 1.75;
}
.vn-content > * + * { margin-top: 2rem; }
.vn-content h2, .vn-content h3, .vn-content h4 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 3.6rem;
}
.vn-content h2 { font-size: 2.6rem; }
.vn-content h3 { font-size: 2.2rem; }
.vn-content a { color: var(--vn-red); text-decoration: underline; text-underline-offset: 2px; }
.vn-content a:hover { color: var(--vn-red-dark); }
.vn-content img { border-radius: .8rem; }
.vn-content blockquote {
    margin: 2.4rem 0;
    padding: .4rem 0 .4rem 2rem;
    border-left: 4px solid var(--vn-red);
    font-style: italic;
    color: var(--vn-muted);
    font-size: 1.9rem;
}
.vn-content figure { margin: 2.4rem 0; }
.vn-content figcaption { font-size: 1.3rem; color: var(--vn-muted); text-align: center; padding-top: .6rem; }
.vn-content iframe { max-width: 100%; }
.vn-content .kg-embed-card iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.vn-content hr { border: 0; border-top: 1px solid var(--vn-line); margin: 3.2rem 0; }
.vn-content ul, .vn-content ol { padding-left: 2.4rem; }
.vn-content .kg-width-wide { max-width: 100rem; margin-left: 50%; transform: translateX(-50%); width: min(100rem, 94vw); }
.vn-content .kg-width-full { width: 94vw; margin-left: 50%; transform: translateX(-50%); }

.vn-article-tags { padding-top: 3.2rem; padding-bottom: .8rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.vn-related { border-top: 1px solid var(--vn-line); margin-top: 4rem; }

/* ---------- Archive (tag/author) ---------- */
.vn-archive-header { padding: 4rem 2rem 0; }
.vn-archive-label {
    color: var(--vn-red);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.vn-archive-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(2.6rem, 4vw, 3.6rem);
    margin: .6rem 0 0;
}
.vn-archive-desc { color: var(--vn-muted); font-size: 1.6rem; margin: 1rem 0 0; }

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4rem;
    font-size: 1.4rem;
    color: var(--vn-muted);
}
.pagination a {
    background: var(--vn-red);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.3rem;
    padding: 1rem 1.8rem;
    border-radius: .5rem;
}
.pagination a:hover { background: var(--vn-red-dark); }

/* ---------- Footer (black, like production) ---------- */
.vn-footer { background: #121417; color: #b9bdc3; margin-top: 5rem; }
.vn-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
    padding-top: 4rem;
    padding-bottom: 3rem;
}
.vn-footer-brand img { height: 3.4rem; width: auto; }
.vn-footer-brand p { margin: 1.2rem 0 0; font-size: 1.4rem; }
.vn-footer-nav .nav {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.vn-footer-nav .nav a {
    color: #cfd3d8;
    font-size: 1.35rem;
    font-weight: 500;
}
.vn-footer-nav .nav a:hover { color: #fff; }
.vn-footer-legal { margin-top: 1.4rem !important; padding-top: 1.4rem !important; border-top: 1px solid rgba(255,255,255,.12); }
.vn-footer-legal a { font-size: 1.25rem; color: #9ba0a8; }
.vn-footer-copy {
    background: #0b0c0e;
    border-top: 3px solid var(--vn-red);
}
.vn-footer-copy-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .4rem 2rem;
}
.vn-footer-copy p { margin: 0; padding: 1.6rem 0; font-size: 1.3rem; }
.vn-credit span { color: #fff; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .vn-burger { display: block; margin-left: auto; }
    .vn-search-btn { margin-left: auto; }
    .vn-search-btn span { display: none; }
    .vn-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 14px 24px rgba(0,0,0,.14);
        border-top: 1px solid var(--vn-line);
    }
    .vn-nav.is-open { display: block; }
    .vn-nav .nav { flex-direction: column; align-items: stretch; gap: 0; }
    .vn-nav .nav a {
        padding: 1.4rem 2rem;
        border-bottom: 1px solid var(--vn-line);
    }
    /* mobile: show the Știri sub-categories inline, indented */
    .vn-sub {
        display: block;
        position: static;
        min-width: 0;
        box-shadow: none;
        border: 0;
        border-radius: 0;
        padding: 0;
    }
    .vn-sub a { padding: 1.2rem 2rem 1.2rem 3.6rem; border-bottom: 1px solid var(--vn-line); }
    .vn-caret { display: none; }
    .vn-hero-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        height: auto;
    }
    .vn-tile-0 { grid-column: 1 / 3; grid-row: auto; min-height: 26rem; }
    .vn-tile-1 { grid-column: 1 / 3; grid-row: auto; min-height: 20rem; }
    .vn-tile-2, .vn-tile-3 { grid-column: auto; grid-row: auto; min-height: 16rem; }
    .vn-tile-0 .vn-tile-overlay h2 { font-size: 2rem; }
    .vn-ticker-arrows { display: none; }
}
