/*
Theme Name: Východ News
Theme URI: https://example.com/
Author: OpenAI
Description: Responzívna spravodajská WordPress téma s výrazným hlavným článkom, rýchlymi správami a kartovým výpisom článkov.
Version: 1.5.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: vychod-news
License: GPL-2.0-or-later
*/

:root {
  --vn-navy: #061e35;
  --vn-navy-2: #0b2a47;
  --vn-blue: #0d5dac;
  --vn-red: #d34035;
  --vn-text: #0d2037;
  --vn-muted: #6f7b88;
  --vn-border: #e4e8ec;
  --vn-bg: #ffffff;
  --vn-soft: #f5f7f9;
  --vn-radius: 4px;
  --vn-shadow: 0 6px 24px rgba(8, 30, 51, .06);
  --vn-container: 1390px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--vn-text);
  background: var(--vn-bg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--vn-blue); }
button, input, textarea, select { font: inherit; }

.vn-container {
  width: min(calc(100% - 32px), var(--vn-container));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  clip: auto !important; width: auto; height: auto;
  padding: 10px 14px; margin: 8px; background: #fff;
  z-index: 100000; top: 0; left: 0;
}

/* Top bar */
.vn-topbar {
  background: var(--vn-navy);
  color: rgba(255,255,255,.88);
  font-size: 13px;
}
.vn-topbar__inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.vn-topbar__left, .vn-topbar__right { display: flex; align-items: center; gap: 22px; }
.vn-topbar__date { font-weight: 700; white-space: nowrap; }
.vn-topbar .menu { display: flex; align-items: center; gap: 20px; list-style: none; padding: 0; margin: 0; }
.vn-topbar a { color: rgba(255,255,255,.86); }
.vn-topbar a:hover { color: #fff; }
.vn-social { display: flex; align-items: center; gap: 16px; }
.vn-social a { font-weight: 800; opacity: .92; }

/* Branding */
.vn-branding {
  min-height: 130px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
}
.vn-branding__logo { display: flex; align-items: center; min-width: 0; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { max-height: 96px; width: auto; }
.vn-site-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -1.5px;
}
.vn-site-description { margin: 4px 0 0; color: var(--vn-muted); font-size: 13px; }
.vn-branding__actions { display: flex; align-items: stretch; border-left: 1px solid var(--vn-border); }
.vn-icon-action, .vn-login-link {
  min-height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 28px;
  border: 0;
  background: transparent;
  color: var(--vn-text);
  font-weight: 700;
  cursor: pointer;
}
.vn-icon-action { font-size: 27px; border-right: 1px solid var(--vn-border); }
.vn-login-link { font-size: 14px; }
.vn-icon { width: 22px; height: 22px; display: inline-block; }

/* Search */
.vn-search-panel { display: none; border-top: 1px solid var(--vn-border); border-bottom: 1px solid var(--vn-border); padding: 16px 0; background: #fff; }
.vn-search-panel.is-open { display: block; }
.vn-search-form { display: flex; gap: 10px; }
.vn-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid #cfd6dd;
  border-radius: var(--vn-radius);
}
.vn-search-form button {
  border: 0;
  background: var(--vn-navy);
  color: #fff;
  font-weight: 800;
  padding: 0 22px;
  border-radius: var(--vn-radius);
  cursor: pointer;
}

/* Main navigation */
.vn-mainnav-wrap { border-top: 1px solid var(--vn-border); border-bottom: 1px solid var(--vn-border); background: #fff; }
.vn-mainnav { min-height: 56px; display: flex; align-items: stretch; }
.vn-home-link {
  width: 58px;
  flex: 0 0 58px;
  background: var(--vn-navy);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.vn-home-link:hover { color: #fff; background: var(--vn-navy-2); }
.vn-menu-toggle { display: none; margin-left: auto; border: 0; background: transparent; font-size: 25px; padding: 0 16px; cursor: pointer; }
.vn-primary-nav { flex: 1; min-width: 0; }
.vn-primary-nav .menu {
  list-style: none;
  margin: 0;
  padding: 0 8px;
  display: flex;
  align-items: stretch;
  height: 100%;
}
.vn-primary-nav .menu > li { position: relative; display: flex; }
.vn-primary-nav .menu > li > a {
  display: flex;
  align-items: center;
  padding: 0 24px;
  min-height: 56px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.1px;
  white-space: nowrap;
}
.vn-primary-nav .menu > li.current-menu-item > a,
.vn-primary-nav .menu > li.current-menu-ancestor > a { color: var(--vn-blue); }
.vn-primary-nav .menu > li.menu-item-has-children > a::after { content: "⌄"; font-size: 14px; margin-left: 9px; transform: translateY(-2px); }
.vn-primary-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 230px;
  background: #fff;
  list-style: none;
  padding: 7px 0;
  margin: 0;
  border: 1px solid var(--vn-border);
  box-shadow: var(--vn-shadow);
  z-index: 50;
}
.vn-primary-nav li:hover > .sub-menu,
.vn-primary-nav li:focus-within > .sub-menu { display: block; }
.vn-primary-nav .sub-menu a { display: block; padding: 10px 15px; font-size: 14px; font-weight: 700; }

/* Homepage */
.vn-home { padding: 24px 0 50px; }
.vn-lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(315px, .9fr);
  gap: 22px;
  align-items: stretch;
}
.vn-hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 470px;
  overflow: hidden;
  border-radius: var(--vn-radius);
  background: var(--vn-navy);
  box-shadow: var(--vn-shadow);
}
.vn-hero__media { position: relative; min-height: 370px; background: #dce3e8; }
.vn-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vn-placeholder { width: 100%; height: 100%; min-height: 220px; background: linear-gradient(135deg, #dbe3e9, #aebbc6); }
.vn-hero__content {
  background: var(--vn-navy);
  color: #fff;
  padding: clamp(30px, 4vw, 52px) clamp(26px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.vn-kicker {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 8px;
  background: var(--vn-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 15px;
}
.vn-hero__title {
  margin: 0;
  font-size: clamp(31px, 3.3vw, 50px);
  line-height: 1.05;
  letter-spacing: -1.4px;
  font-weight: 900;
}
.vn-hero__title a { color: #fff; }
.vn-hero__excerpt { margin: 20px 0 0; color: rgba(255,255,255,.82); font-size: 17px; line-height: 1.48; }
.vn-meta { margin-top: 24px; color: rgba(255,255,255,.76); display: flex; flex-wrap: wrap; gap: 10px 14px; font-size: 13px; }
.vn-meta--dark { color: var(--vn-muted); }

/* Quick news */
.vn-quick {
  border: 1px solid var(--vn-border);
  border-radius: var(--vn-radius);
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.vn-quick__title { margin: 0; padding: 18px 22px 12px; font-size: 20px; line-height: 1.1; text-transform: uppercase; font-weight: 900; }
.vn-quick__list { list-style: none; margin: 0; padding: 0 22px; flex: 1; }
.vn-quick__item { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 13px 0; border-top: 1px solid var(--vn-border); }
.vn-quick__time { color: var(--vn-red); font-size: 13px; font-weight: 900; }
.vn-quick__link { font-size: 14px; line-height: 1.32; font-weight: 800; }
.vn-quick__all { margin-top: auto; display: flex; align-items: center; justify-content: center; min-height: 48px; background: var(--vn-navy); color: #fff; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.vn-quick__all:hover { color: #fff; background: var(--vn-navy-2); }

.vn-card-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.vn-card { border: 1px solid var(--vn-border); border-radius: var(--vn-radius); overflow: hidden; background: #fff; box-shadow: 0 3px 14px rgba(8, 30, 51, .035); }
.vn-card__media { aspect-ratio: 16/7.4; background: #dfe5e9; position: relative; overflow: hidden; }
.vn-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; display: block; }
.vn-card:hover .vn-card__media img { transform: scale(1.025); }
.vn-card__label { position: absolute; left: 12px; bottom: 0; padding: 4px 8px; background: var(--vn-blue); color: #fff; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.vn-card__body { padding: 14px 14px 13px; }
.vn-card__title { margin: 0; font-size: 18px; line-height: 1.2; font-weight: 900; letter-spacing: -.2px; }
.vn-card__meta { margin-top: 9px; color: var(--vn-muted); font-size: 12px; }

/* Generic pages */
.vn-content-grid { padding: 36px 0 60px; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; }
.vn-page-title { margin: 0 0 25px; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; }
.vn-post-list { display: grid; gap: 25px; }
.vn-list-card { display: grid; grid-template-columns: 290px 1fr; gap: 22px; padding-bottom: 25px; border-bottom: 1px solid var(--vn-border); }
.vn-list-card__media { aspect-ratio: 16 / 10; background: #e0e6eb; overflow: hidden; }
.vn-list-card__media img { width: 100%; height: 100%; object-fit: cover; }
.vn-list-card h2 { margin: 0 0 10px; font-size: 26px; line-height: 1.16; }
.vn-list-card p { color: #4d5965; margin: 10px 0 0; }
.vn-pagination { margin-top: 35px; }
.vn-pagination .nav-links { display: flex; gap: 7px; flex-wrap: wrap; }
.vn-pagination a, .vn-pagination span { padding: 8px 12px; border: 1px solid var(--vn-border); border-radius: 3px; }
.vn-pagination .current { background: var(--vn-navy); color: #fff; border-color: var(--vn-navy); }

.vn-sidebar .widget { border: 1px solid var(--vn-border); padding: 20px; margin-bottom: 20px; }
.vn-sidebar .widget-title { margin: 0 0 14px; font-size: 18px; text-transform: uppercase; }
.vn-sidebar ul { margin: 0; padding-left: 20px; }

/* Single */
.vn-article { max-width: 860px; }
.vn-article__category { margin-bottom: 12px; }
.vn-article__title { margin: 0; font-size: clamp(36px, 5.2vw, 62px); line-height: 1.03; letter-spacing: -1.7px; }
.vn-article__lead { font-size: 20px; color: #475461; margin: 20px 0; }
.vn-article__image { margin: 28px 0; }
.vn-article__image img { width: 100%; display: block; }
.vn-entry-content { font-size: 18px; line-height: 1.75; }
.vn-entry-content h2 { margin-top: 1.7em; font-size: 31px; line-height: 1.18; }
.vn-entry-content h3 { margin-top: 1.5em; font-size: 24px; }
.vn-entry-content a { color: var(--vn-blue); text-decoration: underline; }
.vn-entry-content blockquote { margin: 1.6em 0; padding: 10px 0 10px 22px; border-left: 4px solid var(--vn-blue); font-size: 21px; font-weight: 700; }
.vn-entry-content figure { max-width: 100%; }

/* Comments */
.comments-area { margin-top: 50px; padding-top: 25px; border-top: 1px solid var(--vn-border); }
.comment-list { padding-left: 20px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; border: 1px solid #cfd6dd; padding: 12px; border-radius: 3px;
}
.form-submit .submit { background: var(--vn-navy); color: #fff; border: 0; padding: 12px 20px; font-weight: 800; cursor: pointer; }

/* Footer */
.vn-footer { margin-top: 30px; background: var(--vn-navy); color: #fff; }
.vn-footer__inner { padding: 36px 0; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.vn-footer__title { font-size: 24px; font-weight: 900; }
.vn-footer__meta { margin-top: 5px; color: rgba(255,255,255,.68); font-size: 13px; }
.vn-footer .menu { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.vn-footer .menu a { color: rgba(255,255,255,.86); font-size: 13px; }

@media (max-width: 1180px) {
  .vn-primary-nav .menu > li > a { padding-inline: 12px; font-size: 11.5px; }
}

@media (max-width: 900px) {
  .vn-lead-grid { grid-template-columns: 1fr; }
  .vn-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vn-quick__list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 24px; }
  .vn-topbar__inner { min-height: 36px; }
  .vn-topbar__left .menu { display: none; }
  .vn-branding { min-height: 95px; }
  .custom-logo { max-height: 68px; }
  .vn-branding__actions { border-left: 0; }
  .vn-icon-action, .vn-login-link { padding: 0 14px; min-height: 58px; }
  .vn-login-link span { display: none; }

  .vn-menu-toggle { display: block; }
  .vn-primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--vn-border); box-shadow: var(--vn-shadow); z-index: 100; }
  .vn-mainnav-wrap { position: relative; }
  .vn-primary-nav.is-open { display: block; }
  .vn-primary-nav .menu { display: block; padding: 8px 16px 18px; }
  .vn-primary-nav .menu > li { display: block; }
  .vn-primary-nav .menu > li > a { min-height: 44px; padding: 0 4px; }
  .vn-primary-nav .sub-menu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 7px 15px; }
  .vn-primary-nav .sub-menu a { padding: 7px 4px; }

  .vn-hero { grid-template-columns: 1fr; }
  .vn-hero__media { min-height: 360px; }
  .vn-content-grid { grid-template-columns: 1fr; }
  .vn-sidebar { order: 2; }
}

@media (max-width: 640px) {
  .vn-container { width: min(calc(100% - 20px), var(--vn-container)); }
  .vn-topbar__right { display: none; }
  .vn-branding { min-height: 82px; }
  .vn-site-title { font-size: 30px; }
  .vn-site-description { display: none; }
  .vn-login-link { display: none; }
  .vn-home-link { width: 52px; flex-basis: 52px; }
  .vn-home { padding-top: 12px; }
  .vn-lead-grid, .vn-card-grid { gap: 14px; }
  .vn-hero__media { min-height: 285px; }
  .vn-hero__content { padding: 25px 22px 28px; }
  .vn-hero__title { font-size: 32px; }
  .vn-hero__excerpt { font-size: 15px; }
  .vn-quick__list { grid-template-columns: 1fr; }
  .vn-card-grid { grid-template-columns: 1fr; }
  .vn-card__media { aspect-ratio: 16/8.6; }
  .vn-list-card { grid-template-columns: 1fr; }
  .vn-list-card h2 { font-size: 23px; }
  .vn-footer__inner { grid-template-columns: 1fr; }
  .vn-footer .menu { gap: 10px 16px; }
}

/* Homepage refinements: compact four-card strip + news feed + popular filter */
.vn-card-grid {
  margin-top: 20px;
  gap: 18px;
}
.vn-card {
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(8, 30, 51, .035);
}
.vn-card__media {
  aspect-ratio: 16 / 6.3;
}
.vn-card__body {
  padding: 12px 13px 12px;
}
.vn-card__title {
  font-size: 17px;
  line-height: 1.22;
}
.vn-card__meta {
  margin-top: 7px;
  font-size: 11.5px;
}

.vn-home-more {
  margin-top: 34px;
  padding-top: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: start;
}

.vn-home-feed__list {
  display: grid;
  gap: 0;
}
.vn-feed-card {
  display: grid;
  grid-template-columns: minmax(330px, 41%) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--vn-border);
}
.vn-feed-card:first-child {
  border-top: 0;
  padding-top: 0;
}
.vn-feed-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: #dfe5e9;
}
.vn-feed-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}
.vn-feed-card:hover .vn-feed-card__media img {
  transform: scale(1.018);
}
.vn-feed-card__label {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 4px 9px;
  background: var(--vn-blue);
  color: #fff;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}
.vn-feed-card__meta {
  margin-bottom: 11px;
  color: var(--vn-blue);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 900;
}
.vn-feed-card__title {
  margin: 0;
  font-size: clamp(23px, 2vw, 30px);
  line-height: 1.12;
  letter-spacing: -.55px;
  font-weight: 900;
}
.vn-feed-card__excerpt {
  margin: 14px 0 0;
  color: #4c5967;
  font-size: 16px;
  line-height: 1.48;
}
.vn-empty-state {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--vn-border);
  color: var(--vn-muted);
}

.vn-popular {
  position: sticky;
  top: 20px;
  border: 1px solid var(--vn-border);
  background: #fff;
  padding: 22px 22px 18px;
  box-shadow: 0 3px 16px rgba(8, 30, 51, .035);
}
.vn-popular__title {
  margin: 0 0 18px;
  color: var(--vn-text);
  font-size: 22px;
  line-height: 1.12;
  font-weight: 900;
  text-transform: uppercase;
}
.vn-popular__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 18px;
}
.vn-popular__tab {
  min-height: 43px;
  border: 1px solid #d7e0e8;
  background: #fff;
  color: var(--vn-blue);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.vn-popular__tab:hover,
.vn-popular__tab.is-active {
  border-color: var(--vn-blue);
  background: var(--vn-blue);
  color: #fff;
}
.vn-popular__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.vn-popular__list[hidden] {
  display: none !important;
}
.vn-popular__item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--vn-border);
}
.vn-popular__item:first-child {
  padding-top: 3px;
  border-top: 0;
}
.vn-popular__rank {
  color: var(--vn-blue);
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}
.vn-popular__link {
  display: block;
  font-size: 15px;
  line-height: 1.32;
  font-weight: 900;
}
.vn-popular__views {
  margin-top: 7px;
  color: var(--vn-muted);
  font-size: 12px;
  line-height: 1.2;
}

@media (max-width: 1180px) {
  .vn-home-more {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
  }
  .vn-feed-card {
    grid-template-columns: minmax(280px, 40%) minmax(0, 1fr);
    gap: 22px;
  }
}

@media (max-width: 980px) {
  .vn-home-more {
    grid-template-columns: 1fr;
  }
  .vn-popular {
    position: static;
  }
}

@media (max-width: 700px) {
  .vn-feed-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 0;
  }
  .vn-feed-card__media {
    aspect-ratio: 16 / 9;
  }
  .vn-feed-card__title {
    font-size: 24px;
  }
  .vn-feed-card__excerpt {
    font-size: 15px;
  }
  .vn-card__media {
    aspect-ratio: 16 / 8.6;
  }
  .vn-popular {
    padding: 18px 16px 14px;
  }
}


/* Desktop density refinement v1.2
   The desktop layout is intentionally about 10% more compact while mobile
   keeps the existing touch-friendly sizing. */
@media (min-width: 901px) {
  .vn-topbar { font-size: 12px; }
  .vn-topbar__inner { min-height: 36px; }
  .vn-topbar__left, .vn-topbar__right { gap: 20px; }
  .vn-topbar .menu { gap: 18px; }
  .vn-social { gap: 14px; }

  .vn-branding { min-height: 117px; gap: 27px; }
  .custom-logo { max-height: 86px; }
  .vn-site-title { font-size: clamp(25px, 3.6vw, 43px); }
  .vn-site-description { font-size: 12px; }
  .vn-icon-action, .vn-login-link { min-height: 65px; padding-inline: 25px; }
  .vn-icon-action { font-size: 24px; }
  .vn-login-link { font-size: 13px; }
  .vn-icon { width: 20px; height: 20px; }

  .vn-mainnav { min-height: 50px; }
  .vn-home-link { width: 52px; flex-basis: 52px; font-size: 20px; }
  .vn-primary-nav .menu > li > a {
    min-height: 50px;
    padding-inline: 21px;
    font-size: 12px;
  }

  .vn-home { padding: 22px 0 45px; }
  .vn-lead-grid { gap: 20px; }
  .vn-hero { min-height: 423px; }
  .vn-hero__media { min-height: 333px; }
  .vn-hero__content { padding: clamp(27px, 3.6vw, 47px) clamp(23px, 3.6vw, 43px); }
  .vn-kicker { padding: 4px 7px; margin-bottom: 13px; font-size: 10px; }
  .vn-hero__title { font-size: clamp(28px, 3vw, 45px); letter-spacing: -1.2px; }
  .vn-hero__excerpt { margin-top: 18px; font-size: 15.5px; }
  .vn-meta { margin-top: 22px; gap: 9px 13px; font-size: 12px; }

  .vn-quick__title { padding: 16px 20px 11px; font-size: 18px; }
  .vn-quick__list { padding-inline: 20px; }
  .vn-quick__item { grid-template-columns: 47px 1fr; gap: 9px; padding: 12px 0; }
  .vn-quick__time { font-size: 12px; }
  .vn-quick__link { font-size: 13px; }
  .vn-quick__all { min-height: 43px; font-size: 11px; }

  .vn-card-grid { margin-top: 18px; gap: 16px; }
  .vn-card__label { left: 11px; padding: 4px 7px; font-size: 9px; }
  .vn-card__body { padding: 11px 12px; }
  .vn-card__title { font-size: 15.5px; }
  .vn-card__meta { margin-top: 6px; font-size: 10.5px; }

  .vn-home-more {
    margin-top: 31px;
    padding-top: 7px;
    grid-template-columns: minmax(0, 1fr) 324px;
    gap: 38px;
  }
  .vn-feed-card {
    grid-template-columns: minmax(297px, 41%) minmax(0, 1fr);
    gap: 25px;
    padding: 29px 0;
  }
  .vn-feed-card__label { left: 11px; top: 11px; padding: 4px 8px; font-size: 9px; }
  .vn-feed-card__meta { margin-bottom: 10px; font-size: 12px; }
  .vn-feed-card__title { font-size: clamp(21px, 1.8vw, 27px); letter-spacing: -.5px; }
  .vn-feed-card__excerpt { margin-top: 13px; font-size: 14.5px; }

  .vn-popular { top: 18px; padding: 20px 20px 16px; }
  .vn-popular__title { margin-bottom: 16px; font-size: 20px; }
  .vn-popular__tabs { gap: 6px; margin-bottom: 16px; }
  .vn-popular__tab { min-height: 39px; font-size: 12px; }
  .vn-popular__item { grid-template-columns: 31px minmax(0, 1fr); gap: 9px; padding: 13px 0; }
  .vn-popular__rank { font-size: 27px; }
  .vn-popular__link { font-size: 13.5px; }
  .vn-popular__views { margin-top: 6px; font-size: 11px; }

  .vn-content-grid { padding: 32px 0 54px; grid-template-columns: minmax(0, 1fr) 297px; gap: 36px; }
  .vn-page-title { margin-bottom: 23px; font-size: clamp(27px, 3.6vw, 43px); }
  .vn-post-list { gap: 23px; }
  .vn-list-card { grid-template-columns: 261px 1fr; gap: 20px; padding-bottom: 23px; }
  .vn-list-card h2 { margin-bottom: 9px; font-size: 23px; }
  .vn-sidebar .widget { padding: 18px; margin-bottom: 18px; }
  .vn-sidebar .widget-title { margin-bottom: 13px; font-size: 16px; }

  .vn-article { max-width: 774px; }
  .vn-article__title { font-size: clamp(32px, 4.7vw, 56px); letter-spacing: -1.5px; }
  .vn-article__lead { margin: 18px 0; font-size: 18px; }
  .vn-article__image { margin: 25px 0; }
  .vn-entry-content { font-size: 16.2px; }
  .vn-entry-content h2 { font-size: 28px; }
  .vn-entry-content h3 { font-size: 22px; }
  .vn-entry-content blockquote { font-size: 19px; }

  .vn-footer { margin-top: 27px; }
  .vn-footer__inner { padding: 32px 0; gap: 27px; }
  .vn-footer__title { font-size: 22px; }
  .vn-footer__meta, .vn-footer .menu a { font-size: 12px; }
}


/* Main homepage headline refinement v1.3
   Reduce only the main hero article title by 20% across breakpoints. */
.vn-hero__title {
  font-size: clamp(24.8px, 2.64vw, 40px);
}
@media (min-width: 901px) {
  .vn-hero__title { font-size: clamp(22.4px, 2.4vw, 36px); }
}
@media (max-width: 640px) {
  .vn-hero__title { font-size: 25.6px; }
}


/* Homepage reference-match refinement v1.5
   Matches the supplied desktop reference: compact header, 2-column lead block,
   quick-news panel alongside it, and four headline cards in a single row. */
@media (min-width: 901px) {
  .vn-topbar__inner { min-height: 28px; }
  .vn-topbar { font-size: 11.5px; }

  .vn-branding { min-height: 96px; }
  .custom-logo { max-height: 82px; }
  .vn-icon-action, .vn-login-link { min-height: 62px; }

  .vn-mainnav { min-height: 42px; }
  .vn-home-link { width: 46px; flex-basis: 46px; font-size: 19px; }
  .vn-primary-nav .menu > li > a {
    min-height: 42px;
    padding-inline: clamp(10px, 1.45vw, 20px);
    font-size: 11.5px;
  }

  .vn-home { padding-top: 16px; }
  .vn-lead-grid {
    grid-template-columns: minmax(0, 2.1fr) minmax(300px, .9fr);
    gap: 18px;
  }
  .vn-hero {
    min-height: 350px;
    grid-template-columns: 1.05fr .95fr;
  }
  .vn-hero__media { min-height: 350px; }
  .vn-hero__content { padding: 24px 22px 23px; }
  .vn-kicker { margin-bottom: 11px; font-size: 9px; padding: 3px 6px; }
  .vn-hero__title {
    font-size: clamp(25px, 2.65vw, 31px);
    line-height: 1.08;
    letter-spacing: -.8px;
  }
  .vn-hero__excerpt {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.42;
  }
  .vn-meta { margin-top: 16px; font-size: 11px; }

  .vn-quick { min-height: 350px; }
  .vn-quick__title { padding: 13px 17px 9px; font-size: 17px; }
  .vn-quick__list { padding: 0 17px; display: block; }
  .vn-quick__item {
    grid-template-columns: 43px 1fr;
    gap: 8px;
    padding: 8px 0;
  }
  .vn-quick__time { font-size: 11px; }
  .vn-quick__link { font-size: 11.5px; line-height: 1.25; }
  .vn-quick__all { min-height: 35px; font-size: 10px; }

  .vn-card-grid {
    margin-top: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
  }
  .vn-card__media { aspect-ratio: 16 / 6.7; }
  .vn-card__label {
    left: 10px;
    top: auto;
    bottom: 0;
    padding: 3px 6px;
    font-size: 8.5px;
    z-index: 2;
  }
  .vn-card__body { padding: 10px 11px 9px; }
  .vn-card__title {
    position: static;
    margin: 0;
    color: var(--vn-text);
    font-size: 14.5px;
    line-height: 1.18;
    letter-spacing: -.15px;
    text-shadow: none;
    display: block;
    overflow: visible;
  }
  .vn-card__title a { color: inherit; }
  .vn-card__meta { margin-top: 6px; font-size: 10px; }
  .vn-card__media::after { display: none; }
}

/* Keep the familiar two-column tablet strip until mobile. */
@media (min-width: 641px) and (max-width: 900px) {
  .vn-card__label { top: auto; bottom: 0; }
  .vn-card__title { position: static; color: var(--vn-text); text-shadow: none; display: block; }
  .vn-card__media::after { display: none; }
}

@media (max-width: 640px) {
  .vn-card__label { top: auto; bottom: 0; }
  .vn-card__title { position: static; color: var(--vn-text); text-shadow: none; display: block; font-size: 17px; }
  .vn-card__media::after { display: none; }
}


/* Homepage card headline visibility fix v1.6
   Ensure the four cards below the hero always show a visible headline.
   The title is displayed inside the image with a dark gradient overlay,
   while the body below keeps the meta/date line. */
.vn-card__media {
  display: block;
}
.vn-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 34px 12px 10px;
  background: linear-gradient(to top, rgba(5,18,34,.88) 0%, rgba(5,18,34,.55) 45%, rgba(5,18,34,0) 100%);
  z-index: 1;
}
.vn-card__overlay-title {
  display: block;
  color: #fff;
  font-size: 15px;
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: -.15px;
  text-shadow: 0 1px 1px rgba(0,0,0,.18);
}
.vn-card__label {
  z-index: 2;
}
.vn-card__body {
  padding-top: 8px;
}
.vn-card__body .vn-card__title {
  display: none;
}
@media (min-width: 901px) {
  .vn-card__overlay {
    padding: 36px 10px 9px;
  }
  .vn-card__overlay-title {
    font-size: 13.5px;
    line-height: 1.18;
  }
  .vn-card__body {
    padding: 8px 11px 9px;
  }
  .vn-card__meta {
    margin-top: 0;
  }
}
@media (max-width: 640px) {
  .vn-card__overlay-title {
    font-size: 16px;
  }
}


/* Homepage card title fallback fix v1.7
   Show the headline clearly below the image, because this is the most robust
   layout and matches the original homepage-style cards more reliably. */
.vn-card__overlay {
  display: none !important;
}
.vn-card__body {
  padding: 12px 12px 10px !important;
}
.vn-card__body .vn-card__title {
  display: block !important;
  margin: 0 !important;
  color: var(--vn-text) !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
  letter-spacing: -.15px !important;
}
.vn-card__body .vn-card__title a {
  color: inherit !important;
}
.vn-card__meta {
  margin-top: 7px !important;
}
@media (min-width: 901px) {
  .vn-card__body {
    padding: 11px 12px 10px !important;
  }
  .vn-card__body .vn-card__title {
    font-size: 14.5px !important;
    line-height: 1.18 !important;
  }
}
@media (max-width: 640px) {
  .vn-card__body .vn-card__title {
    font-size: 17px !important;
  }
}
