/* ==========================================================================
   Vibcons site styles (A+ "Precision" design)
   Light/dark themes are driven by [data-theme] on <html>, set before paint
   by the inline script in includes/head.php and switched by js/site.js.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --surface: #f5f7fa;
  --nav-bg: rgba(255, 255, 255, .86);
  --text: #0b1220;
  --muted: #566070;
  --border: #e3e8ef;
  --chip: #edf1f5;
  --thumb-bg: #ffffff;
  --thumb-fg: #0b1220;
  --accent: #1673c2;
  --accent-hover: #125e9f;
  --accent-soft: #e6f1fb;
  --accent-text: #125e9f;
  --cta-bg: #1673c2;
  --shadow: 0 20px 40px rgba(11, 18, 32, .10);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b1018;
  --surface: #121a26;
  --nav-bg: rgba(11, 16, 24, .82);
  --text: #e8edf4;
  --muted: #9aa6b8;
  --border: #223044;
  --chip: #1a2433;
  --thumb-bg: #2a3850;
  --thumb-fg: #e8edf4;
  --accent: #2b8fe0;
  --accent-hover: #4da8f0;
  --accent-soft: rgba(77, 168, 240, .14);
  --accent-text: #7cc0f5;
  --cta-bg: #13508a;
  --shadow: 0 20px 40px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}
/* Keep Bootstrap's own variables in step with ours */
:root, :root[data-theme="dark"] {
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-border-color: var(--border);
  --bs-secondary-color: var(--muted);
  --bs-link-color-rgb: 22, 115, 194;
  --bs-body-font-family: var(--font);
}
h1, h2, h3, h4, h5, h6 { color: var(--text); letter-spacing: -0.02em; font-weight: 700; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; color: #fff; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.section { padding: 96px 0; }
@media (max-width: 767px) { .section { padding: 64px 0; } }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow { display: inline-block; font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.eyebrow-mono { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.section-title { font-size: clamp(30px, 4vw, 42px); line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 16px; }
.lead-text { font-size: 18px; line-height: 1.7; color: var(--muted); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn-x {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .2s;
}
.btn-x:active { transform: translateY(1px); }
.btn-x-primary { background: var(--accent); color: #fff; }
.btn-x-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-x-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-x-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-x-light { background: #fff; color: #0b3b66; }
.btn-x-light:hover { background: #e8f1fa; color: #0b3b66; }
.btn-x-outline-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-x-outline-light:hover { border-color: #fff; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .navbar { padding-top: 0; padding-bottom: 0; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--text); margin-right: 32px; }
.brand:hover { color: var(--text); }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-mark rect { fill: var(--accent); }
.site-header .navbar-nav .nav-link {
  color: var(--muted); font-weight: 500; font-size: 15px; padding: 10px 14px; border-radius: 10px;
}
.site-header .navbar-nav .nav-link:hover,
.site-header .navbar-nav .nav-link[aria-current="page"],
.site-header .navbar-nav .nav-link.active { color: var(--text); }
.site-header .navbar-nav .nav-link[aria-current="page"] { background: var(--chip); }
.site-header .dropdown-menu {
  background: var(--bg); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow); padding: 8px; min-width: 280px;
}
.site-header .dropdown-item { color: var(--text); border-radius: 10px; padding: 10px 12px; font-size: 15px; }
.site-header .dropdown-item:hover, .site-header .dropdown-item:focus { background: var(--chip); color: var(--text); }
.site-header .dropdown-item.active, .site-header .dropdown-item[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.navbar-toggler { border: 1px solid var(--border); border-radius: 12px; width: 44px; height: 44px; padding: 0; color: var(--text); }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler svg { display: block; margin: auto; }
@media (min-width: 992px) {
  .site-header .navbar-collapse { order: 1; }
  .header-actions { order: 2; }
}
@media (max-width: 991.98px) {
  .site-header .navbar-collapse { flex-basis: 100%; padding: 8px 0 16px; }
  .header-actions { margin-left: auto; margin-right: 8px; }
}
@media (max-width: 575.98px) {
  .header-cta { display: none !important; }
  .brand { margin-right: 12px; }
}

/* Theme switch (Light / Dark / Auto) */
.theme-switch { display: flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--chip); }
.theme-switch button {
  height: 36px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 999px;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); background: transparent; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.theme-switch button:hover { color: var(--text); }
.theme-switch button[aria-checked="true"] { background: var(--thumb-bg); color: var(--thumb-fg); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
@media (max-width: 430px) {
  .theme-switch { padding: 3px; }
  .theme-switch button { height: 34px; padding: 0 8px; min-width: 38px; font-size: 12px; }
  .brand { font-size: 18px; gap: 8px; }
  .header-actions { margin-right: 6px; gap: 8px; }
}

/* ---------- Hero (home) ---------- */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 104px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 60px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; margin: 20px 0 24px; }
.hero p { font-size: 19px; color: var(--muted); max-width: 560px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 24px; display: block; }
.spectrum-card {
  position: absolute; left: -24px; bottom: -28px; width: 240px; padding: 18px 20px;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.spectrum-card span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.spectrum-card path { stroke: var(--accent); }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 56px; padding-bottom: 80px; }
  .spectrum-card { left: 16px; }
}

/* ---------- Service cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.service-card {
  display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); color: var(--text); }
.service-card .num { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; background: var(--accent-soft); color: var(--accent-text); }
.service-card h3 { font-size: 20px; margin: 0; }
.service-card p { margin: 0; font-size: 15px; color: var(--muted); }
.service-card .more { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--accent-text); }

/* ---------- About (home) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; display: block; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.founder-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.founder-card { grid-column: span 2; padding: 40px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.founder-card .label { font-size: 13px; font-weight: 700; color: var(--accent-text); }
.founder-card .quote { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.4; font-weight: 600; letter-spacing: -0.015em; margin: 14px 0; }
.founder-card .meta { margin: 0; font-size: 15px; color: var(--muted); }
.years-card { padding: 36px; border-radius: 24px; background: var(--accent); color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.years-card strong { font-size: 72px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.years-card span { font-size: 17px; font-weight: 600; }
@media (max-width: 767px) { .founder-grid { grid-template-columns: 1fr; } .founder-card { grid-column: auto; padding: 28px; } }

/* ---------- Clients: two rows scrolling in opposite directions ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: 16px; }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee-left 50s linear infinite; }
.marquee-reverse .marquee-track { animation-name: marquee-right; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.logo-tile {
  flex: none; width: 200px; height: 112px; padding: 12px 16px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-radius: 18px; background: #fff; border: 1px solid var(--border);
}
/* Fill the tile: many logo files already include their own white margin */
.logo-tile img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
@media (max-width: 575.98px) { .logo-tile { width: 150px; height: 86px; padding: 10px 13px; } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .marquee-reverse { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- CTA band + footer ---------- */
.cta-band {
  border-radius: var(--radius-lg); padding: 64px; background: var(--cta-bg); color: #fff;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
}
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 12px; }
.cta-band p { margin: 0; font-size: 18px; opacity: .9; max-width: 600px; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 767px) { .cta-band { padding: 40px 28px; } }

.site-footer { border-top: 1px solid var(--border); padding: 64px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--accent-text); }
.site-footer address { font-style: normal; color: var(--muted); margin: 0; display: grid; gap: 10px; }
.footer-blurb { color: var(--muted); margin: 16px 0 20px; max-width: 320px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border); color: var(--text); font-size: 18px; }
.socials a:hover { border-color: var(--accent); color: var(--accent-text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.footer-bottom a { color: var(--muted); }

/* ---------- Inner pages ---------- */
.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--border); background: var(--surface); }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; margin: 16px 0 0; max-width: 860px; }
.page-hero .lead-text { margin: 16px 0 0; max-width: 720px; }
.breadcrumb-x { font-size: 14px; color: var(--muted); }
.breadcrumb-x a { color: var(--muted); }
.breadcrumb-x a:hover { color: var(--accent-text); }

.page-body { padding: 72px 0 96px; }
.service-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .service-layout { grid-template-columns: 1fr; gap: 32px; } }
.service-layout .media img { width: 100%; border-radius: 24px; display: block; position: sticky; top: 104px; }

.prose { font-size: 17px; line-height: 1.75; color: var(--text); }
.prose p { margin: 0 0 18px; }
.prose h2, .prose h3 { font-size: 24px; margin: 32px 0 12px; }
.prose ul { list-style: none; padding: 0; margin: 8px 0 24px; display: grid; gap: 10px; }
.prose ul li { position: relative; padding: 12px 16px 12px 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 16px; line-height: 1.5; }
.prose ul li::before { content: ""; position: absolute; left: 16px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 0 0 5px var(--accent); }
.prose ul ul { margin: 10px 0 0; }
.prose ul ul li { background: var(--bg); }
.prose strong, .prose b { color: var(--text); }

.more-services { margin-top: 72px; }
.more-services .card-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* About page */
.founder-profile { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: start; }
.founder-profile img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 24px; display: block; }
@media (max-width: 900px) { .founder-profile { grid-template-columns: 1fr; } .founder-profile img { max-width: 360px; } }
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr; } }
.timeline-item { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--border); background: var(--bg); display: flex; flex-direction: column; }
.timeline-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.timeline-item .body { padding: 24px 28px 28px; }
.timeline-item .year { font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: .12em; color: var(--accent-text); }
.timeline-item p { margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.vm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 767px) { .vm-grid { grid-template-columns: 1fr; } }
.vm-card { padding: 36px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.vm-card h3 { font-size: 22px; margin: 0 0 14px; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card, .form-card { padding: 36px; border-radius: 24px; border: 1px solid var(--border); background: var(--surface); }
.form-card { background: var(--bg); box-shadow: var(--shadow); }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-size: 18px; }
.contact-list small { display: block; font-size: 13px; color: var(--muted); }
.contact-list a, .contact-list span { color: var(--text); font-weight: 600; }
.form-card label { font-size: 14px; font-weight: 600; margin-bottom: 6px; display: block; }
.form-card .form-control {
  min-height: 50px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 16px;
}
.form-card textarea.form-control { min-height: 130px; }
.form-card .form-control::placeholder { color: var(--muted); opacity: .8; }
.form-card .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.map-frame { margin-top: 32px; border-radius: 24px; overflow: hidden; border: 1px solid var(--border); }
.map-frame iframe { display: block; width: 100%; height: 420px; border: 0; }
:root[data-theme="dark"] .map-frame iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6); }

/* Numbered steps inside prose */
.prose ol { list-style: none; counter-reset: step; padding: 0; margin: 8px 0 24px; display: grid; gap: 10px; }
.prose ol li { counter-increment: step; position: relative; padding: 14px 16px 14px 60px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 16px; line-height: 1.55; }
.prose ol li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 16px; top: 14px; font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--accent-text); }
.prose .fw-bold { color: var(--text); }

/* ---------- Newsletter ---------- */
.wrap-narrow { max-width: 840px; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent-text);
}
.cat-chip.cat-article { background: rgba(22, 163, 74, .12); color: #15803d; }
.cat-chip.cat-event { background: rgba(217, 119, 6, .13); color: #b45309; }
:root[data-theme="dark"] .cat-chip.cat-article { color: #5fd38d; }
:root[data-theme="dark"] .cat-chip.cat-event { color: #f5b454; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip-filter {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted); font-size: 14px; font-weight: 600;
  transition: border-color .2s, color .2s, background-color .2s;
}
.chip-filter:hover { color: var(--text); border-color: var(--accent); }
.chip-filter[aria-current="page"] { background: var(--text); border-color: var(--text); color: var(--bg); }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
@media (max-width: 400px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.news-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); color: var(--text); }
.news-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.news-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.news-card:hover .news-media img { transform: scale(1.03); }
.news-media-empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%); }
.news-media-empty svg { width: 46%; stroke: var(--accent); opacity: .55; }
.news-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.news-card h2, .news-card h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; margin: 0; }
.news-card p { margin: 0; font-size: 15px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-event { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.news-event i { color: var(--accent-text); }
.news-author { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; }
.news-card-featured { display: grid; grid-template-columns: 1.25fr 1fr; margin-bottom: 24px; border-radius: var(--radius-lg); }
.news-card-featured .news-media { aspect-ratio: auto; min-height: 360px; }
.news-card-featured .news-body { justify-content: center; gap: 14px; padding: 44px; }
.news-card-featured h2 { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.15; letter-spacing: -0.025em; }
.news-card-featured p { font-size: 17px; -webkit-line-clamp: 4; }
.news-card-featured .news-author { margin-top: 8px; }
@media (max-width: 860px) {
  .news-card-featured { grid-template-columns: 1fr; border-radius: var(--radius); }
  .news-card-featured .news-media { min-height: 0; aspect-ratio: 16 / 10; }
  .news-card-featured .news-body { padding: 24px; }
}
.pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; font-size: 14px; color: var(--muted); }
.empty-state { text-align: center; padding: 72px 24px; border: 1px dashed var(--border); border-radius: var(--radius-lg); }
.empty-state .icon { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; background: var(--accent-soft); color: var(--accent-text); }
.empty-state h2 { font-size: 24px; margin: 0 0 8px; }
.empty-state p { margin: 0 0 24px; }

/* Single post */
.post-hero h1 { max-width: none; margin-top: 14px; }
.post-meta-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; font-size: 14px; color: var(--muted); }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; }
.byline strong { display: block; font-size: 15px; line-height: 1.3; }
.byline small { display: block; font-size: 13px; color: var(--muted); }
.post-body { padding-top: 48px; padding-bottom: 80px; }
.post-cover { margin: 0 0 44px; }
.post-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px; display: block; }
.event-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-bottom: 44px; padding: 24px 28px;
  border-radius: 20px; background: var(--surface); border: 1px solid var(--border);
}
.event-box > div { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.event-box .icon { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: var(--accent-soft); color: var(--accent-text); }
.event-box small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.event-box .btn-x { margin-left: auto; }
@media (max-width: 600px) { .event-box .btn-x { margin-left: 0; width: 100%; } }

.article-body { font-size: 18px; line-height: 1.75; overflow-wrap: break-word; }
.article-body p { margin: 0 0 22px; }
.article-body h2 { font-size: 28px; line-height: 1.25; margin: 48px 0 14px; }
.article-body h3 { font-size: 22px; line-height: 1.3; margin: 36px 0 10px; }
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 1.4em; }
.article-body li { margin: 6px 0; padding-left: 4px; }
.article-body li::marker { color: var(--accent); font-weight: 700; }
.article-body blockquote { margin: 32px 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--accent); font-size: 21px; line-height: 1.55; font-weight: 500; }
.article-body img { display: block; width: 100%; height: auto; margin: 32px 0; border-radius: 16px; }
.article-body pre { margin: 0 0 22px; padding: 16px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-family: var(--mono); font-size: 14px; line-height: 1.6; overflow-x: auto; }
.article-body code { font-family: var(--mono); font-size: .88em; }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article-body hr { margin: 44px 0; border: 0; border-top: 1px solid var(--border); opacity: 1; }
.article-body > :first-child { margin-top: 0; }

.post-gallery { margin-top: 56px; }
.post-gallery h2 { font-size: 22px; margin: 0 0 18px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.gallery-grid button { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--surface); cursor: zoom-in; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.gallery-grid button:hover img { transform: scale(1.05); }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

.lightbox { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: transparent; }
.lightbox::backdrop { background: rgba(5, 8, 14, .93); }
.lightbox-inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; padding: 56px 80px; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 12px; }
.lightbox figcaption { color: #e8edf4; font-size: 15px; text-align: center; }
.lb-btn { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; display: grid; place-items: center; font-size: 20px; color: #fff; background: rgba(255, 255, 255, .12); cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox-inner { padding: 64px 12px 88px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.share-row > span { margin-right: 6px; font-weight: 600; }
.share-row a, .share-row button {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--border); background: transparent; color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
}
.share-row a:hover, .share-row button:hover { border-color: var(--accent); color: var(--text); }
.more-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.more-head .section-title { margin: 0; font-size: clamp(26px, 3vw, 34px); }
.more-head a { font-weight: 600; }

.preview-bar { padding: 12px 0; font-size: 14px; background: #fef3c7; color: #78350f; border-bottom: 1px solid #fcd34d; }
.preview-bar a { color: inherit; text-decoration: underline; margin-left: 6px; font-weight: 600; }
:root[data-theme="dark"] .preview-bar { background: #3a2a06; color: #fde68a; border-color: #6b4f0f; }
