/*
Theme Name: Veritas Medica
Theme URI: https://veritasmedica.org
Author: Veritas Medica
Author URI: https://veritasmedica.org
Description: Медицински портал в стил Medscape — карти с новини, специалности, проекти и статии. Изграден за Veritas Medica.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: veritas-medica
Tags: medical, news, magazine, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #f5f5f5;
  color: #1a1a1a;
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #2d6bcd; text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ── CSS VARIABLES ── */
:root {
  --blue:        #2d6bcd;
  --blue-dark:   #1e5bb5;
  --blue-light:  #eef4fd;
  --navy:        #1a3c6e;
  --navy-light:  #2d5a8e;
  --red-alert:   #c0392b;
  --border:      #dde3ec;
  --border-light:#eef0f4;
  --text-primary:#1a1a1a;
  --text-secondary:#4a5568;
  --text-muted:  #9ca3af;
  --surface:     #ffffff;
  --surface-alt: #f9fafc;
  --surface-bg:  #f5f5f5;
  --radius:      7px;
  --radius-lg:   10px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.07);
}

/* ── TOP BAR ── */
.vm-topbar {
  background: #eef2f7;
  border-bottom: 1px solid var(--border);
  padding: 5px 0;
  font-size: 12px;
  color: #5a6a7e;
  text-align: center;
}

/* ── HEADER ── */
.vm-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-sm);
}
.vm-header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 66px;
  gap: 0;
}
.vm-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin-right: 36px;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}
.vm-logo span { color: var(--blue); }
.vm-logo:hover { text-decoration: none; }

/* Site logo image */
.vm-logo img { max-height: 44px; width: auto; }

/* ── MAIN NAV ── */
.vm-nav { display: flex; align-items: center; flex: 1; }
.vm-nav ul { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.vm-nav ul li { position: relative; }
.vm-nav ul li a {
  font-size: 14px;
  color: #4a5568;
  padding: 0 16px;
  height: 66px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  transition: color .15s;
}
.vm-nav ul li a:hover,
.vm-nav ul li.current-menu-item > a,
.vm-nav ul li.current-menu-ancestor > a {
  color: var(--blue);
  border-bottom-color: var(--blue);
  font-weight: 500;
}

/* Dropdown */
.vm-nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  min-width: 200px;
  z-index: 300;
  flex-direction: column;
}
.vm-nav ul li:hover > ul { display: flex; }
.vm-nav ul li ul li a {
  height: auto;
  padding: 10px 16px;
  border-bottom: none;
  font-size: 13px;
  border-bottom: 1px solid var(--border-light);
}
.vm-nav ul li ul li:last-child a { border-bottom: none; }
.vm-nav ul li ul li a:hover { background: var(--blue-light); color: var(--blue); border-bottom-color: var(--border-light); }

/* Nav right */
.vm-nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.vm-search-toggle {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); border-radius: 24px;
  padding: 7px 16px; font-size: 13px; color: #6b7280;
  cursor: pointer; background: #f9fafc;
  transition: border-color .15s;
}
.vm-search-toggle:hover { border-color: var(--blue); }
.vm-search-toggle i { font-size: 15px; color: #9ca3af; }
.vm-btn-outline {
  font-size: 13px; color: #4a5568; cursor: pointer;
  padding: 7px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface);
  transition: background .15s; font-family: inherit;
}
.vm-btn-outline:hover { background: #f3f4f6; }

/* Search overlay */
.vm-search-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 500;
  align-items: flex-start; justify-content: center;
  padding-top: 80px;
}
.vm-search-overlay.open { display: flex; }
.vm-search-box {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 24px; width: 100%; max-width: 600px;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.vm-search-box form { display: flex; gap: 10px; }
.vm-search-box input {
  flex: 1; padding: 11px 16px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 15px;
  font-family: inherit; outline: none;
}
.vm-search-box input:focus { border-color: var(--blue); }
.vm-search-box button {
  background: var(--blue); color: #fff; border: none;
  border-radius: var(--radius); padding: 11px 20px;
  font-size: 14px; cursor: pointer; font-family: inherit;
}

/* Mobile menu toggle */
.vm-menu-toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 6px 10px; cursor: pointer;
  font-size: 20px; color: var(--navy); margin-left: auto;
}

/* ── LAYOUT ── */
.vm-container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.vm-content-area { padding: 28px 0 60px; }

/* Two-col with sidebar */
.vm-two-col { display: grid; grid-template-columns: 1fr 300px; gap: 32px; }
.vm-sidebar { display: flex; flex-direction: column; gap: 24px; }

/* ── SECTION HEADING ── */
.vm-section-title { font-size: 24px; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.vm-section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--text-primary); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.vm-section-label a { font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--blue); }

/* ── SPECIALTY TABS ── */
.vm-specialty-tabs {
  display: flex; align-items: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px; overflow-x: auto; gap: 0;
  scrollbar-width: none;
}
.vm-specialty-tabs::-webkit-scrollbar { display: none; }
.vm-tab {
  font-size: 13px; color: #4a5568; padding: 10px 14px;
  cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s; user-select: none;
  text-decoration: none; display: block;
}
.vm-tab:hover { color: var(--blue); text-decoration: none; }
.vm-tab.active, .vm-tab:focus { color: var(--blue); border-bottom-color: var(--blue); font-weight: 500; }
.vm-tab-sep { color: var(--border); padding: 0 2px; font-size: 12px; line-height: 38px; }

/* ── FEATURED ROW ── */
.vm-featured-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 22px; margin-bottom: 26px;
}
.vm-featured-main { display: flex; gap: 20px; padding-right: 28px; border-right: 1px solid var(--border); }
.vm-featured-thumb {
  width: 250px; height: 168px; border-radius: 6px; flex-shrink: 0;
  object-fit: cover; background: linear-gradient(135deg,#e0ecfa,#c0d8f5);
  display: flex; align-items: center; justify-content: center; color: var(--blue); overflow: hidden;
}
.vm-featured-thumb i { font-size: 42px; }
.vm-featured-main-text { flex: 1; }
.vm-art-tag { font-size: 11px; color: var(--blue); font-style: italic; margin-bottom: 7px; }
.vm-featured-main-text h2 {
  font-size: 20px; font-weight: 700; color: var(--text-primary);
  line-height: 1.35; margin-bottom: 8px; transition: color .15s;
}
.vm-featured-main-text h2 a { color: inherit; text-decoration: none; }
.vm-featured-main-text h2 a:hover { color: var(--blue); }
.vm-art-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 9px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.vm-art-meta i { font-size: 12px; }
.vm-featured-main-text p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

/* Side cards */
.vm-featured-side { padding-left: 28px; display: flex; flex-direction: column; gap: 14px; }
.vm-side-card { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--border-light); }
.vm-side-card:last-child { border-bottom: none; padding-bottom: 0; }
.vm-side-thumb {
  width: 76px; height: 58px; border-radius: 5px; flex-shrink: 0;
  object-fit: cover; background: linear-gradient(135deg,#eef4fc,#d5e8f7);
  display: flex; align-items: center; justify-content: center; color: #4a7fc1;
}
.vm-side-thumb i { font-size: 20px; }
.vm-side-cat { font-size: 10px; color: var(--red-alert); font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; margin-bottom: 3px; }
.vm-side-card h4 { font-size: 14px; font-weight: 500; color: var(--text-primary); line-height: 1.4; }
.vm-side-card h4 a { color: inherit; text-decoration: none; transition: color .15s; }
.vm-side-card h4 a:hover { color: var(--blue); }
.vm-side-meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* ── NEWS GRID ── */
.vm-news-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.vm-news-card { display: flex; gap: 12px; align-items: flex-start; }
.vm-news-thumb {
  width: 82px; height: 62px; border-radius: 5px; flex-shrink: 0;
  object-fit: cover; background: linear-gradient(135deg,#eef4fc,#d5e8f7);
  display: flex; align-items: center; justify-content: center; color: #4a7fc1;
}
.vm-news-thumb i { font-size: 20px; }
.vm-news-alert { font-size: 10px; color: var(--red-alert); font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; margin-bottom: 3px; }
.vm-news-card h4 { font-size: 14px; font-weight: 500; color: var(--text-primary); line-height: 1.4; }
.vm-news-card h4 a { color: inherit; text-decoration: none; transition: color .15s; }
.vm-news-card h4 a:hover { color: var(--blue); }
.vm-news-meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* ── INFO BANNER ── */
.vm-info-banner {
  background: var(--blue-light); border: 1px solid #c0d4f0;
  border-radius: var(--radius-lg); padding: 24px 28px;
  display: flex; gap: 20px; align-items: center; margin-top: 8px;
}
.vm-info-banner i { font-size: 44px; color: var(--blue); flex-shrink: 0; }
.vm-info-banner h4 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.vm-info-banner p { font-size: 13px; color: var(--text-secondary); line-height: 1.65; }
.vm-info-banner .vm-btn-blue { flex-shrink: 0; }

/* ── BUTTONS ── */
.vm-btn-blue {
  background: var(--blue); color: #fff; border: none;
  border-radius: var(--radius); padding: 11px 22px;
  font-size: 13px; cursor: pointer; font-family: inherit;
  transition: background .15s; white-space: nowrap;
  display: inline-block; text-decoration: none; font-weight: 500;
}
.vm-btn-blue:hover { background: var(--blue-dark); color: #fff; text-decoration: none; }

/* ── ARTICLE LIST (Archive) ── */
.vm-article-list { display: flex; flex-direction: column; }
.vm-article-row { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--border-light); align-items: flex-start; }
.vm-article-row:first-child { padding-top: 0; }
.vm-article-thumb {
  width: 100px; height: 76px; border-radius: 6px; flex-shrink: 0;
  object-fit: cover; background: linear-gradient(135deg,#e0ecfa,#c0d8f5);
  display: flex; align-items: center; justify-content: center; color: var(--blue);
}
.vm-article-thumb i { font-size: 26px; }
.vm-article-row-text .vm-cat { font-size: 11px; color: var(--blue); margin-bottom: 5px; display: flex; align-items: center; gap: 6px; }
.vm-badge { display: inline-block; font-size: 10px; padding: 2px 8px; border-radius: 4px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; }
.vm-badge-active { background: #e6f4ee; color: #1a7a4a; }
.vm-badge-done   { background: #f0f0f0; color: #6b7280; }
.vm-article-row-text h3 { font-size: 16px; font-weight: 700; color: var(--text-primary); line-height: 1.4; margin-bottom: 5px; }
.vm-article-row-text h3 a { color: inherit; text-decoration: none; transition: color .15s; }
.vm-article-row-text h3 a:hover { color: var(--blue); }
.vm-article-row-text p { font-size: 13px; color: var(--text-secondary); line-height: 1.55; margin-bottom: 5px; }
.vm-article-row-text .meta { font-size: 11px; color: var(--text-muted); }

/* ── SINGLE ARTICLE ── */
.vm-single-wrap { max-width: 820px; }
.vm-breadcrumb { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.vm-breadcrumb a { color: var(--blue); }
.vm-single-wrap h1 { font-size: 28px; font-weight: 700; line-height: 1.35; margin-bottom: 14px; color: var(--text-primary); }
.vm-art-meta-bar {
  font-size: 13px; color: var(--text-muted);
  padding-bottom: 14px; border-bottom: 1px solid var(--border-light);
  margin-bottom: 18px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.vm-art-hero-img {
  width: 100%; aspect-ratio: 16/7; border-radius: var(--radius-lg);
  object-fit: cover; margin-bottom: 22px;
  background: linear-gradient(135deg,#ddeaf8,#c4d9f2);
  display: flex; align-items: center; justify-content: center; color: var(--blue); font-size: 52px;
}
.vm-art-body { font-size: 15px; color: #374151; line-height: 1.85; }
.vm-art-body p { margin-bottom: 18px; }
.vm-art-body h2 { font-size: 22px; font-weight: 700; margin: 30px 0 12px; color: var(--text-primary); }
.vm-art-body h3 { font-size: 19px; font-weight: 600; margin: 28px 0 11px; color: var(--text-primary); }
.vm-art-body ul, .vm-art-body ol { margin: 0 0 18px 24px; }
.vm-art-body li { margin-bottom: 6px; }
.vm-art-body blockquote { border-left: 4px solid var(--blue); padding-left: 16px; color: var(--text-secondary); font-style: italic; margin: 20px 0; }
.vm-art-disclaimer {
  background: #f9f9f9; border: 1px solid #e0e0e0;
  border-radius: var(--radius); padding: 16px 20px;
  font-size: 12px; color: #6b7280; margin-top: 26px;
  font-style: italic; line-height: 1.6;
}

/* ── SIDEBAR WIDGETS ── */
.vm-widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.vm-widget-title { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-primary); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--blue); display: inline-block; }
.vm-widget-post { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-light); align-items: flex-start; }
.vm-widget-post:last-child { border-bottom: none; padding-bottom: 0; }
.vm-widget-post-thumb { width: 60px; height: 46px; border-radius: 4px; object-fit: cover; flex-shrink: 0; background: var(--blue-light); }
.vm-widget-post h5 { font-size: 13px; font-weight: 500; color: var(--text-primary); line-height: 1.4; }
.vm-widget-post h5 a { color: inherit; text-decoration: none; transition: color .15s; }
.vm-widget-post h5 a:hover { color: var(--blue); }
.vm-widget-post .meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* Category list widget */
.vm-cat-list li { padding: 8px 0; border-bottom: 1px solid var(--border-light); font-size: 13px; }
.vm-cat-list li:last-child { border-bottom: none; }
.vm-cat-list a { color: var(--text-secondary); text-decoration: none; display: flex; justify-content: space-between; }
.vm-cat-list a:hover { color: var(--blue); }
.vm-cat-list .count { color: var(--text-muted); font-size: 12px; }

/* ── ABOUT PAGE ── */
.vm-about-hero {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px; margin-bottom: 22px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
}
.vm-about-hero h1 { font-size: 30px; font-weight: 700; margin-bottom: 14px; color: var(--navy); }
.vm-about-hero p { font-size: 15px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 10px; }
.vm-about-visual {
  background: linear-gradient(135deg,#ddeaf8,#c4d9f2);
  border-radius: var(--radius-lg); height: 210px;
  display: flex; align-items: center; justify-content: center; color: var(--blue);
}
.vm-about-visual i { font-size: 72px; }
.vm-mission-box {
  background: var(--blue-light); border: 1px solid #c0d4f0;
  border-radius: var(--radius-lg); padding: 26px 30px; margin-bottom: 22px;
}
.vm-mission-box h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.vm-mission-box p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.vm-values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.vm-value-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.vm-value-card i { font-size: 26px; color: var(--blue); margin-bottom: 11px; display: block; }
.vm-value-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 7px; color: var(--text-primary); }
.vm-value-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.65; }

/* ── CONTACT PAGE ── */
.vm-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm-contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.vm-contact-form h3 { font-size: 18px; font-weight: 700; margin-bottom: 18px; color: var(--text-primary); }
.vm-form-group { margin-bottom: 15px; }
.vm-form-group label { font-size: 13px; color: var(--text-secondary); display: block; margin-bottom: 5px; font-weight: 500; }
.vm-form-group input,
.vm-form-group textarea,
.vm-form-group select {
  width: 100%; font-family: inherit; font-size: 14px;
  padding: 9px 13px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface-alt);
  color: var(--text-primary); transition: border-color .15s; outline: none;
}
.vm-form-group input:focus,
.vm-form-group textarea:focus,
.vm-form-group select:focus { border-color: var(--blue); }
.vm-form-group textarea { height: 110px; resize: vertical; }
.vm-contact-info { display: flex; flex-direction: column; gap: 14px; }
.vm-contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.vm-contact-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.vm-contact-card h4 i { color: var(--blue); font-size: 17px; }
.vm-contact-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.vm-contact-card-accent { background: var(--blue-light); border-color: #c0d4f0; }
.vm-contact-card-accent h4 { color: var(--navy); }

/* ── PAGINATION ── */
.vm-pagination { display: flex; gap: 6px; align-items: center; margin-top: 24px; }
.vm-pagination a, .vm-pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 13px; color: var(--text-secondary);
  text-decoration: none; transition: all .15s;
}
.vm-pagination a:hover { border-color: var(--blue); color: var(--blue); }
.vm-pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ── DISCLAIMER ── */
.vm-disclaimer-box {
  background: #f9f9f9; border: 1px solid #e0e0e0;
  border-radius: var(--radius); padding: 16px 20px;
  font-size: 13px; color: #6b7280; font-style: italic;
  display: flex; align-items: flex-start; gap: 10px; line-height: 1.6;
}
.vm-disclaimer-box i { font-size: 16px; flex-shrink: 0; margin-top: 1px; color: var(--text-muted); }

/* ── FOOTER ── */
.vm-footer { background: var(--navy); color: #fff; padding: 40px 24px 24px; }
.vm-footer-inner {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px; margin-bottom: 28px;
}
.vm-footer-logo { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 10px; display: block; text-decoration: none; }
.vm-footer-logo span { color: #7eb3f5; }
.vm-footer-logo:hover { text-decoration: none; }
.vm-footer-tagline { font-size: 13px; color: #aac4e8; line-height: 1.7; margin-bottom: 6px; font-style: italic; }
.vm-footer-desc { font-size: 12px; color: #8aaac8; line-height: 1.7; }
.vm-footer-col h5 { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #7eb3f5; margin-bottom: 12px; }
.vm-footer-col ul li { margin-bottom: 7px; }
.vm-footer-col ul li a { font-size: 13px; color: #aac4e8; text-decoration: none; transition: color .15s; }
.vm-footer-col ul li a:hover { color: #fff; }
.vm-footer-bottom {
  max-width: 1140px; margin: 0 auto;
  border-top: 1px solid var(--navy-light); padding-top: 18px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.vm-footer-bottom p { font-size: 11px; color: #7eb3f5; }

/* ── COMMENTS ── */
.vm-comments { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border); }
.vm-comments h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--border-light); }
.comment-author .fn { font-weight: 600; font-size: 14px; }
.comment-metadata { font-size: 12px; color: var(--text-muted); margin: 2px 0 8px; }
.comment-content p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE OPTIMISED
   Breakpoints: 900 | 768 | 480 | 360
══════════════════════════════════════════ */

/* ── Tablet landscape / small desktop (≤900px) ── */
@media (max-width: 900px) {
  /* Layout */
  .vm-two-col { grid-template-columns: 1fr; }
  .vm-sidebar  { display: none; }

  /* Grids */
  .vm-values-grid { grid-template-columns: 1fr 1fr; }
  .vm-news-grid   { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .vm-footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }

  /* Featured: keep side cards but shrink image */
  .vm-featured-thumb { width: 200px; height: 140px; }
}

/* ── Tablet portrait / large phone (≤768px) ── */
@media (max-width: 768px) {

  /* ── Header ── */
  .vm-header-inner { padding: 0 16px; }
  .vm-logo         { font-size: 20px; margin-right: 0; }

  /* Hide desktop nav, show burger */
  .vm-nav { display: none; }
  .vm-nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 60px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    z-index: 199; padding: 4px 0;
  }
  .vm-nav.open ul { flex-direction: column; width: 100%; }
  .vm-nav.open ul li a {
    height: auto; min-height: 48px; /* touch target */
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-light);
    font-size: 15px;
  }
  .vm-nav.open ul li:last-child a { border-bottom: none; }
  .vm-nav.open ul li ul { /* Dropdown on mobile: inline, indented */
    display: flex; position: static; box-shadow: none;
    border: none; border-radius: 0; flex-direction: column;
    background: var(--surface-alt);
  }
  .vm-nav.open ul li ul li a { padding-left: 36px; font-size: 14px; }
  .vm-menu-toggle { display: flex; align-items: center; margin-left: 12px; }
  .vm-nav-right .vm-btn-outline { display: none; }
  .vm-search-toggle { padding: 7px 10px; }
  .vm-search-toggle span { display: none; }

  /* ── Container padding ── */
  .vm-container   { padding: 0 16px; }
  .vm-content-area { padding: 20px 0 40px; }

  /* ── Typography scaling ── */
  .vm-section-title            { font-size: 20px; }
  .vm-featured-main-text h2    { font-size: 17px; }
  .vm-single-wrap h1           { font-size: 22px; }
  .vm-about-hero h1            { font-size: 24px; }
  .vm-art-body                 { font-size: 15px; }

  /* ── Featured row: stack vertically ── */
  .vm-featured-row {
    grid-template-columns: 1fr;
    padding-bottom: 16px; margin-bottom: 18px;
  }
  .vm-featured-main {
    flex-direction: column;
    padding-right: 0; border-right: none;
    border-bottom: 1px solid var(--border); padding-bottom: 16px;
  }
  .vm-featured-thumb {
    width: 100%; height: 200px;
    border-radius: 8px;
  }
  .vm-featured-side { padding-left: 0; margin-top: 4px; }

  /* Side cards: horizontal thumbnail + text */
  .vm-side-thumb { width: 64px; height: 50px; }
  .vm-side-card h4 { font-size: 13px; }

  /* ── News grid: 2 col on tablet ── */
  .vm-news-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .vm-news-thumb { width: 68px; height: 52px; }
  .vm-news-card h4 { font-size: 13px; }

  /* ── Specialty tabs: scroll hint via gradient mask ── */
  .vm-specialty-tabs {
    -webkit-mask-image: linear-gradient(to right, #000 80%, transparent 100%);
    mask-image: linear-gradient(to right, #000 80%, transparent 100%);
    padding-bottom: 2px;
  }
  .vm-tab { font-size: 13px; padding: 10px 12px; min-height: 44px; }

  /* ── Info banner ── */
  .vm-info-banner { flex-direction: column; gap: 14px; padding: 20px; }
  .vm-info-banner > i { display: none; }
  .vm-info-banner h4 { font-size: 15px; }
  .vm-info-banner .vm-btn-blue { width: 100%; text-align: center; }

  /* ── About page ── */
  .vm-about-hero { grid-template-columns: 1fr; padding: 24px; }
  .vm-about-visual { display: none; }
  .vm-values-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .vm-value-card { padding: 16px; }
  .vm-value-card i { font-size: 22px; }
  .vm-value-card h4 { font-size: 14px; }

  /* ── Contact ── */
  .vm-contact-grid { grid-template-columns: 1fr; }
  .vm-contact-form { padding: 20px; }

  /* ── Article rows (projects/search) ── */
  .vm-article-thumb { width: 80px; height: 62px; }
  .vm-article-row-text h3 { font-size: 15px; }
  .vm-article-row-text p  { font-size: 13px; }

  /* ── Single article ── */
  .vm-art-hero-img { aspect-ratio: 16/9; font-size: 40px; }
  .vm-art-meta-bar { font-size: 12px; gap: 4px; }
  .vm-art-body h2  { font-size: 19px; }
  .vm-art-body h3  { font-size: 17px; }

  /* ── Footer ── */
  .vm-footer { padding: 28px 16px 20px; }
  .vm-footer-inner { grid-template-columns: 1fr 1fr; gap: 20px; }
  .vm-footer-bottom { flex-direction: column; align-items: flex-start; gap: 4px; }

  /* ── Nav pills ── */
  .vm-nav-pills { gap: 6px; }
  .vm-pill { min-height: 36px; display: flex; align-items: center; font-size: 13px; }

  /* ── Pagination ── */
  .vm-pagination a,
  .vm-pagination span { width: 40px; height: 40px; } /* larger touch targets */

  /* ── Buttons ── */
  .vm-btn-blue { padding: 12px 20px; }
}

/* ── Mobile (≤480px) ── */
@media (max-width: 480px) {

  /* Header */
  .vm-header-inner { height: 56px; }
  .vm-nav.open     { top: 56px; }
  .vm-logo         { font-size: 18px; }

  /* All grids: single column */
  .vm-news-grid   { grid-template-columns: 1fr; gap: 12px; }
  .vm-values-grid { grid-template-columns: 1fr; }
  .vm-footer-inner { grid-template-columns: 1fr; gap: 18px; }

  /* Typography */
  .vm-section-title         { font-size: 18px; }
  .vm-featured-main-text h2 { font-size: 16px; }
  .vm-single-wrap h1        { font-size: 20px; line-height: 1.3; }
  .vm-art-body              { font-size: 15px; line-height: 1.8; }

  /* Featured: bigger image on phone */
  .vm-featured-thumb { height: 180px; }

  /* News card: horizontal layout */
  .vm-news-card { gap: 10px; }
  .vm-news-thumb { width: 72px; height: 58px; flex-shrink: 0; }

  /* Article rows */
  .vm-article-row { gap: 12px; }
  .vm-article-thumb { width: 72px; height: 56px; }

  /* Nav pills: wrap & full-width on very small */
  .vm-nav-pills { flex-wrap: wrap; }

  /* Contact form: full width inputs */
  .vm-form-group input,
  .vm-form-group textarea,
  .vm-form-group select { font-size: 16px; } /* prevents iOS zoom on focus */

  /* Mission box */
  .vm-mission-box { padding: 18px 20px; }
  .vm-mission-box h3 { font-size: 16px; }

  /* Footer */
  .vm-footer-logo { font-size: 18px; }

  /* Search overlay */
  .vm-search-box { padding: 16px; margin: 0 12px; }
  .vm-search-box input { font-size: 16px; } /* no iOS zoom */
}

/* ── Very small phones (≤360px) ── */
@media (max-width: 360px) {
  .vm-container { padding: 0 12px; }
  .vm-single-wrap h1 { font-size: 18px; }
  .vm-featured-main-text h2 { font-size: 15px; }
  .vm-logo { font-size: 16px; }

  /* Tab text even smaller */
  .vm-tab { font-size: 12px; padding: 10px 10px; }

  /* Footer cols: single, tighter */
  .vm-footer { padding: 20px 12px 16px; }
}

/* ── Touch device enhancements ── */
@media (hover: none) and (pointer: coarse) {
  /* Make all interactive elements have minimum 44px touch targets */
  .vm-tab       { min-height: 44px; display: inline-flex; align-items: center; }
  .vm-pill      { min-height: 44px; }
  .vm-nav ul li a { min-height: 44px; }
  .vm-btn-blue  { min-height: 44px; }
  .vm-btn-outline { min-height: 44px; }
  .vm-submit-btn  { min-height: 44px; width: 100%; }

  /* Remove hover effects that feel broken on touch */
  .vm-featured-main-text h2 a:hover { color: inherit; }
  .vm-side-card h4 a:hover          { color: inherit; }
  .vm-news-card h4 a:hover          { color: inherit; }
  .vm-article-row-text h3 a:hover   { color: inherit; }

  /* Tap highlight */
  a, button { -webkit-tap-highlight-color: rgba(45,107,205,.15); }
}

/* ── Print styles (bonus) ── */
@media print {
  .vm-topbar, .vm-header, .vm-footer,
  .vm-sidebar, .vm-info-banner,
  .vm-search-overlay { display: none !important; }
  .vm-art-body { font-size: 12pt; line-height: 1.7; }
  .vm-single-wrap h1 { font-size: 18pt; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 10pt; color: #666; }
}
