/*
Theme Name: IoTVPS
Theme URI: https://iotvps.co.uk
Author: Peter Green
Author URI: https://petergreen.xyz
Description: Custom theme for iotvps.co.uk. VPS-for-IoT content hub, two-column layout with sticky lead-gen sidebar. White/light base with blue (structure/trust) and orange (CTAs) accents. The homepage hero is the one deliberate exception - dark navy background image, kept as-is.
Version: 1.1
Text Domain: iotvps
*/

/* =========================================================
   0. TOKENS
   ========================================================= */
:root{
  /* Brand - used everywhere EXCEPT inside .hero */
  --blue:        #1f63c4;
  --blue-dark:   #144a96;
  --blue-tint:   #eaf2fc;
  --orange:      #f6921e;
  --orange-dark: #d97a0f;
  --orange-tint: #fdf1e3;

  /* Hero exception only - dark navy background image lives here */
  --hero-bg-1:   #0d1f33;
  --hero-bg-2:   #16314f;

  --white:       #ffffff;
  --bg-page:     #ffffff;
  --bg-card:     #f5f7fa;
  --text-dark:   #1f2d3d;
  --text-muted:  #5b6b7c;
  --red:         #c5483f;
  --red-bg:      #fdf2f1;
  --border:      #e3e8ee;
  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 2px 14px rgba(31,99,196,0.07);
  --shadow-lg:   0 12px 32px rgba(13,31,51,0.16);
  --content-w:   820px;
  --sidebar-w:   320px;
  --max-w:       1240px;
  --font:        "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-display:"Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* =========================================================
   1. RESET / BASE
   ========================================================= */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font);
  color:var(--text-dark);
  background:var(--bg-page);
  line-height:1.65;
  font-size:17px;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--blue); text-decoration:none; }
a:hover{ color:var(--blue-dark); text-decoration:underline; }
ul,ol{ padding-left:1.3em; }
h1,h2,h3,h4{
  font-family:var(--font-display);
  color:var(--blue-dark);
  line-height:1.25;
  letter-spacing:-0.01em;
  font-weight:700;
  margin:1.8em 0 0.6em;
}
h1{ font-size:2.4rem; margin-top:0; }
h2{ font-size:1.65rem; padding-top:.2em; border-top:1px solid var(--border); margin-top:2.4em; }
h2:first-child{ border-top:none; margin-top:0; }
h3{ font-size:1.22rem; }
p{ margin:0 0 1.2em; }
.container{ max-width:var(--max-w); margin:0 auto; padding:0 24px; }
:focus-visible{ outline:3px solid var(--orange); outline-offset:2px; }
@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}

/* =========================================================
   2. SITE HEADER + MEGA MENU
   ========================================================= */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,0.96);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--border);
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  height:74px;
}
.site-logo{ display:flex; align-items:center; gap:.6em; font-family:var(--font-display); font-weight:700; font-size:1.2rem; color:var(--blue-dark); }
.site-logo .mark{
  width:34px; height:34px; border-radius:9px;
  background:linear-gradient(135deg, var(--orange), var(--orange-dark));
  display:flex; align-items:center; justify-content:center;
  color:var(--white); font-weight:800; font-size:1rem;
}
.site-logo span small{ display:block; font-size:.62rem; font-weight:600; letter-spacing:.08em; color:var(--text-muted); text-transform:uppercase; }

.primary-nav{ display:flex; align-items:center; gap:1.9rem; }
.primary-nav > ul{ display:flex; list-style:none; margin:0; padding:0; gap:1.9rem; }
.primary-nav > ul > li{ position:relative; }
.primary-nav > ul > li > a{
  color:var(--text-dark); font-weight:600; font-size:.96rem;
  padding:1.6rem 0; display:inline-block;
}
.primary-nav > ul > li > a:hover{ color:var(--blue); text-decoration:none; }

.mega-panel{
  position:absolute; top:100%; left:50%; transform:translateX(-50%);
  width:340px; background:var(--white); border:1px solid var(--border);
  border-radius:var(--radius); box-shadow:var(--shadow-lg);
  padding:1.1rem; opacity:0; visibility:hidden; translate:0 8px;
  transition:opacity .15s ease, translate .15s ease, visibility .15s;
}
.primary-nav li:hover .mega-panel,
.primary-nav li:focus-within .mega-panel{ opacity:1; visibility:visible; translate:0 0; }
.mega-panel .eyebrow{ font-size:.7rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--blue); margin-bottom:.5rem; }
.mega-panel ul{ list-style:none; margin:0; padding:0; }
.mega-panel li a{
  display:block; padding:.5rem .6rem; border-radius:var(--radius-sm);
  color:var(--text-dark); font-size:.92rem; font-weight:500;
}
.mega-panel li a:hover{ background:var(--blue-tint); color:var(--blue-dark); text-decoration:none; }

.nav-toggle{ display:none; background:none; border:none; cursor:pointer; }

@media (max-width: 880px){
  .primary-nav{ display:none; }
  .primary-nav.is-open{
    display:block; position:absolute; top:100%; left:0; right:0;
    background:var(--white); border-top:1px solid var(--border);
    box-shadow:var(--shadow-lg); padding:.5rem 0;
  }
  .primary-nav.is-open > ul{ flex-direction:column; gap:0; }
  .primary-nav.is-open > ul > li > a{ padding:.9rem 1.5rem; }
  /* Mega-panels are hover-triggered, which doesn't work on touch -
     simplify to flat links on mobile rather than leaving them
     unreachable. Tapping a top-level link still goes to that
     category's full archive. */
  .primary-nav.is-open .mega-panel{ display:none; }
  .nav-toggle{ display:block; }
}
@media (max-width: 480px){
  .site-logo small{ display:none; }
}

/* =========================================================
   3. HERO + CALCULATOR
   The deliberate exception: dark navy background image,
   kept exactly as briefed. Everything else on the page is
   white/light/blue/orange - this section is not.
   ========================================================= */
.hero{
  background-image:
    linear-gradient(90deg, rgba(13,31,51,0.97) 0%, rgba(13,31,51,0.85) 35%, rgba(13,31,51,0.45) 60%, rgba(13,31,51,0.05) 85%),
    url('assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  background-color: var(--hero-bg-1);
  color:var(--white); padding:3rem 0 0;
  position:relative; overflow:hidden;
}
@media (max-width: 880px){
  .hero{ background-image: linear-gradient(180deg, rgba(13,31,51,0.9), rgba(13,31,51,0.96)), url('assets/images/hero-bg.jpg'); background-position:center; }
}
.hero-inner{ display:grid; grid-template-columns:1.15fr .85fr; gap:2.5rem; align-items:center; padding-bottom:2.5rem; }
.hero-text{ max-width:560px; }
.hero-eyebrow{
  display:inline-block; font-size:.75rem; font-weight:700; letter-spacing:.1em;
  text-transform:uppercase; color:var(--orange); background:rgba(246,146,30,.12);
  border:1px solid rgba(246,146,30,.4); padding:.35rem .8rem; border-radius:999px; margin-bottom:.8rem;
}
.hero h1{ color:var(--white); font-size:2.3rem; line-height:1.2; margin:0 0 .6rem; }
.hero p.lead{ color:#c9d6e3; font-size:1.02rem; margin-bottom:1.2rem; }
.hero-actions{ display:flex; gap:1rem; flex-wrap:wrap; margin-bottom:1rem; }
.hero-quicklinks{ display:flex; gap:1.5rem; flex-wrap:wrap; font-size:.86rem; }
.hero-quicklinks a{ color:#c9d6e3; border-bottom:1px solid rgba(255,255,255,.3); padding-bottom:2px; }
.hero-quicklinks a:hover{ color:var(--orange); border-color:var(--orange); text-decoration:none; }

/* Example-stack card: deliberately translucent, not a solid white box -
   it should sit alongside the background image, not block it. This is
   what replaced the old calculator, which got removed for exactly that
   reason (it was opaque and covered the artwork). */
.hero-stack{
  background:rgba(13,31,51,.5); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.14); border-radius:var(--radius-lg); padding:1.5rem 1.6rem;
}
.hero-stack-title{ font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; color:var(--orange); margin-bottom:.9rem; }
.stack-row{ display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:.65rem 0; border-top:1px solid rgba(255,255,255,.1); }
.stack-row:first-of-type{ border-top:none; }
.stack-row span:first-child{ font-weight:700; color:var(--white); font-size:.88rem; }
.stack-row span:last-child{ color:#9fd6cc; font-weight:600; font-size:.8rem; text-align:right; }
@media (max-width: 880px){
  .hero-inner{ grid-template-columns:1fr; }
  .hero-text{ max-width:none; }
}
.btn{
  display:inline-flex; align-items:center; gap:.5em;
  padding:.85rem 1.5rem; border-radius:999px; font-weight:700; font-size:.95rem;
  border:2px solid transparent; cursor:pointer;
}
.btn-primary{ background:var(--orange); color:var(--white); border-color:var(--orange); }
.btn-primary:hover{ background:var(--orange-dark); border-color:var(--orange-dark); color:var(--white); text-decoration:none; }
.btn-ghost{ background:transparent; color:var(--white); border-color:rgba(255,255,255,.4); }
.btn-ghost:hover{ background:rgba(255,255,255,.08); color:var(--white); text-decoration:none; }
.btn-outline{ background:transparent; color:var(--blue); border-color:var(--blue); }
.btn-outline:hover{ background:var(--blue-tint); color:var(--blue-dark); border-color:var(--blue-dark); text-decoration:none; }
.btn-sm{ padding:.55rem 1.1rem; font-size:.85rem; }

/* Compact calculator - lives BELOW the hero, not over the image */
.vps-calc-compact{
  background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:1.5rem 1.75rem 1.3rem;
}
.calc-compact-head{ display:flex; align-items:baseline; gap:.6rem; flex-wrap:wrap; margin-bottom:1.1rem; }
.calc-compact-head strong{ font-size:1.02rem; color:var(--blue-dark); }
.calc-compact-head span{ font-size:.85rem; color:var(--text-muted); }
.calc-compact-inner{ display:grid; grid-template-columns:1.3fr 1fr 1.1fr; gap:1.5rem; align-items:end; }
.calc-field label{ display:block; font-size:.82rem; font-weight:600; color:var(--text-muted); margin-bottom:.45rem; }
.calc-field .range-value{ font-weight:700; color:var(--blue-dark); }
.calc-field input[type=range]{ width:100%; accent-color:var(--orange); }
.calc-field select{
  width:100%; padding:.55rem .7rem; border-radius:var(--radius-sm); border:1px solid var(--border);
  font-family:var(--font); font-size:.9rem; background:var(--white);
}
.calc-field-result{ background:var(--blue-tint); border-radius:var(--radius); padding:.85rem .95rem; }
.calc-field-result .spec{ font-weight:800; color:var(--blue-dark); font-size:.88rem; margin-bottom:.6rem; line-height:1.3; }
.calc-field-result .btn{ width:100%; justify-content:center; }
.calc-note{ margin:1rem 0 0; font-size:.82rem; color:var(--text-muted); }
@media (max-width: 780px){
  .calc-compact-inner{ grid-template-columns:1fr; }
}

@media (max-width: 880px){
  .hero h1{ font-size:1.9rem; }
}

/* =========================================================
   4. PILLAR CARDS (homepage)
   ========================================================= */
.pillars{ padding:4rem 0 1rem; }
.section-head{ max-width:640px; margin:0 auto 2.5rem; text-align:center; }
.section-head .eyebrow{ color:var(--blue); font-weight:700; font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; }
.section-head h2{ border:none; margin-top:.4rem; }
.pillar-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr)); gap:1.4rem; }
.pillar-card{
  background:var(--white); border:1px solid var(--border); border-top:4px solid var(--blue);
  border-radius:var(--radius); padding:1.6rem; box-shadow:var(--shadow);
  transition:translate .15s ease, box-shadow .15s ease;
}
.pillar-card:hover{ translate:0 -4px; box-shadow:var(--shadow-lg); }
.pillar-card .icon{ font-size:1.6rem; margin-bottom:.6rem; display:block; }
.pillar-card h3{ margin:.2rem 0 .4rem; font-size:1.08rem; color:var(--text-dark); }
.pillar-card p{ font-size:.92rem; color:var(--text-muted); margin-bottom:.8rem; }
.pillar-card a.more{ font-weight:700; font-size:.88rem; color:var(--orange); }

/* Doorbell flow mini-diagram - reuses the same gradient-line language
   as the audience spectrum row, deliberately, for visual consistency */
.flow-row{ position:relative; display:flex; flex-wrap:wrap; justify-content:center; gap:1.5rem; margin:2rem 0; }
.flow-row::before{
  content:""; position:absolute; top:9px; left:6%; right:6%; height:2px;
  background:var(--blue); z-index:0;
}
.flow-item{ position:relative; z-index:1; flex:1 1 130px; max-width:160px; text-align:center; }
.flow-item::before{ content:""; display:block; width:18px; height:18px; margin:0 auto .7rem; border-radius:50%; background:var(--white); border:3px solid var(--blue); }
.flow-item strong{ display:block; color:var(--blue-dark); font-size:.9rem; margin-bottom:.25rem; }
.flow-item span{ font-size:.76rem; color:var(--text-muted); line-height:1.3; }

/* Getting-started sequence - numbered because it's a genuine order
   (security before building), not decoration. Same connecting-line
   language as the audience row and doorbell flow, for consistency. */
.steps-row{ position:relative; display:flex; flex-wrap:wrap; justify-content:center; gap:2rem; margin:2.5rem 0 0; }
.steps-row::before{
  content:""; position:absolute; top:19px; left:10%; right:10%; height:2px;
  background:linear-gradient(90deg, var(--blue), var(--orange));
  z-index:0;
}
.step-item{ position:relative; z-index:1; flex:1 1 220px; max-width:280px; text-align:center; }
.step-num{
  display:flex; align-items:center; justify-content:center; width:40px; height:40px; margin:0 auto .9rem;
  background:var(--white); border:2px solid var(--blue); border-radius:50%;
  font-weight:800; color:var(--blue-dark); font-size:1.1rem;
}
.step-item:last-child .step-num{ border-color:var(--orange); color:var(--orange-dark); }
.step-item h3{ margin:0 0 .4rem; font-size:1.02rem; }
.step-item p{ font-size:.88rem; color:var(--text-muted); line-height:1.5; }
@media (max-width: 700px){ .steps-row::before{ display:none; } }

/* Audience spectrum row - the gradient line is the point: it shows
   progression from hobbyist (blue, exploratory) through to
   industrial (orange, production), not just five random icons. */
.audience-row{ position:relative; display:flex; flex-wrap:wrap; justify-content:center; gap:2rem 1rem; margin:2.5rem 0 1.5rem; padding-top:1rem; }
.audience-row::before{
  content:""; position:absolute; top:31px; left:8%; right:8%; height:2px;
  background:linear-gradient(90deg, var(--blue) 0%, var(--blue) 60%, var(--orange) 100%);
  z-index:0;
}
.audience-item{ position:relative; z-index:1; flex:1 1 150px; max-width:190px; text-align:center; }
.audience-item .icon{
  display:flex; align-items:center; justify-content:center; width:38px; height:38px; margin:0 auto .6rem;
  background:var(--white); border:2px solid var(--blue); border-radius:50%; font-size:1.05rem;
}
.audience-item:last-child .icon{ border-color:var(--orange); }
.audience-item strong{ display:block; color:var(--blue-dark); font-size:.92rem; margin-bottom:.3rem; }
.audience-item span{ font-size:.8rem; color:var(--text-muted); line-height:1.4; }
.audience-item a.more{ display:inline-block; margin-top:.5rem; font-size:.78rem; font-weight:700; color:var(--orange); }
@media (max-width: 700px){
  .audience-row::before{ display:none; }
  .audience-row{ gap:1.5rem; }
}

/* =========================================================
   5. TWO-COLUMN PAGE LAYOUT
   ========================================================= */
.page-wrap{ padding:3rem 0 4rem; }
.layout{ display:grid; grid-template-columns:var(--content-w) var(--sidebar-w); gap:3rem; align-items:start; }
.content-col{ max-width:var(--content-w); }
.content-col .entry-meta{ font-size:.85rem; color:var(--text-muted); margin-bottom:.5rem; }
.content-col .entry-title{ margin-bottom:.3rem; }
@media (max-width: 1080px){
  .layout{ grid-template-columns:1fr; }
  .content-col{ max-width:none; }
}

/* =========================================================
   6. CALLOUT BOX COMPONENTS
   Quick Answer = blue (informational/AEO), Tip = orange
   (actionable), Warning = red. Keep this discipline -
   it's what makes orange mean something when it shows up.
   ========================================================= */
.iotvps-box{ border-radius:var(--radius); padding:1.3rem 1.5rem; margin:1.8rem 0; }
.iotvps-box .label{ display:block; font-size:.72rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; margin-bottom:.4rem; }
.iotvps-box p:last-child{ margin-bottom:0; }

.iotvps-quick-answer{ background:var(--blue-tint); border-left:4px solid var(--blue); }
.iotvps-quick-answer .label{ color:var(--blue-dark); }

.iotvps-tip{ background:var(--orange-tint); border-left:4px solid var(--orange); }
.iotvps-tip .label{ color:var(--orange-dark); }

.iotvps-warning{ background:var(--red-bg); border-left:4px solid var(--red); }
.iotvps-warning .label{ color:var(--red); }

.iotvps-stat{ background:var(--blue-dark); color:var(--white); border-radius:var(--radius-lg); padding:2rem; text-align:center; }
.iotvps-stat .number{ font-size:2.6rem; font-weight:800; color:var(--orange); font-variant-numeric:tabular-nums; line-height:1; }
.iotvps-stat .stat-label{ color:#cfe0f7; font-size:.92rem; margin-top:.5rem; }

.iotvps-inline-cta{
  display:flex; align-items:center; justify-content:space-between; gap:1.5rem; flex-wrap:wrap;
  background:linear-gradient(135deg, var(--blue-dark), var(--blue)); color:var(--white);
  border-radius:var(--radius-lg); padding:1.6rem 1.8rem; margin:2rem 0;
}
.iotvps-inline-cta .copy strong{ display:block; font-size:1.05rem; margin-bottom:.2rem; }
.iotvps-inline-cta .copy span{ color:#cfe0f7; font-size:.88rem; }
.iotvps-inline-cta .btn{ flex-shrink:0; }

/* =========================================================
   7. SIDEBAR WIDGETS
   ========================================================= */
.sidebar{ position:sticky; top:96px; }
.widget{
  background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius);
  padding:1.5rem; margin-bottom:1.5rem;
}
.widget h4{ margin:0 0 .9rem; font-size:.98rem; color:var(--text-dark); }

.widget-lumadock{
  background:linear-gradient(160deg, var(--blue-dark), var(--blue));
  color:var(--white); border:none;
}
.widget-lumadock h4{ color:var(--white); margin-bottom:.3rem; }
.widget-lumadock .price-line{ font-size:1.4rem; font-weight:800; color:var(--orange); margin:0; }
.widget-lumadock .price-note{ font-size:.74rem; color:#9fb4cc; margin:0 0 1.1rem; }
.widget-lumadock ul{ list-style:none; padding:0; margin:0 0 1.1rem; font-size:.86rem; color:#cfe0f7; }
.widget-lumadock ul li{ padding-left:1.3em; position:relative; margin-bottom:.4rem; }
.widget-lumadock ul li::before{ content:"✓"; position:absolute; left:0; color:var(--orange); font-weight:700; }
.widget-lumadock .btn{ width:100%; justify-content:center; }

.widget-newsletter form{ display:flex; flex-direction:column; gap:0; }
.newsletter-row{
  display:flex; align-items:stretch; background:var(--white);
  border:1px solid var(--border); border-radius:999px; overflow:hidden;
}
.newsletter-row input[type=email]{
  flex:1; min-width:0; border:none; outline:none; background:transparent;
  padding:.7rem 1rem; font-family:var(--font); font-size:.88rem; color:var(--text-dark);
}
.newsletter-row .btn{ margin:3px; flex-shrink:0; white-space:nowrap; }
.widget-newsletter .fine{ font-size:.74rem; color:var(--text-muted); margin-top:.3rem; }
.widget-newsletter .form-msg{ font-size:.85rem; margin-top:.5rem; display:none; }

.widget-recommended ul{ list-style:none; padding:0; margin:0; }
.widget-recommended li{ padding:.6rem 0; border-top:1px solid var(--border); }
.widget-recommended li:first-child{ border-top:none; padding-top:0; }
.widget-recommended a{ font-weight:600; font-size:.92rem; color:var(--text-dark); }
.widget-recommended a:hover{ color:var(--blue); text-decoration:none; }
.widget-recommended .cat{ display:block; font-size:.72rem; color:var(--blue); font-weight:700; text-transform:uppercase; letter-spacing:.05em; margin-bottom:.15rem; }

.widget-ad{
  border:1px dashed var(--border); background:var(--white); text-align:center;
  padding:1.2rem .8rem; font-size:.78rem; color:var(--text-muted);
}
.widget-ad .ad-label{ display:block; font-size:.65rem; text-transform:uppercase; letter-spacing:.08em; margin-bottom:.6rem; color:#9aa7b4; }
.widget-ad a{ display:block; }
.widget-ad img{ border-radius:var(--radius-sm); }

/* =========================================================
   8. FOOTER
   ========================================================= */
.site-footer{ background:var(--blue-dark); color:#cfe0f7; padding:3.5rem 0 0; margin-top:4rem; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:2.5rem; padding-bottom:3rem; border-bottom:1px solid rgba(255,255,255,.12); }
.footer-grid h5{ color:var(--white); font-size:.85rem; text-transform:uppercase; letter-spacing:.06em; margin:0 0 1rem; }
.footer-grid ul{ list-style:none; padding:0; margin:0; }
.footer-grid li{ margin-bottom:.55rem; font-size:.92rem; }
.footer-grid a{ color:#cfe0f7; }
.footer-grid a:hover{ color:var(--orange); text-decoration:none; }
.footer-about p{ font-size:.92rem; color:#a8c2e6; }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding:1.4rem 0; font-size:.82rem; color:#9bb6dc; flex-wrap:wrap; gap:.6rem; }

@media (max-width: 880px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width: 540px){ .footer-grid{ grid-template-columns:1fr; } }

/* =========================================================
   9. /iot-news/ BLOG GRID (home.php - WP "Posts page" template)
   Full width, no sidebar, 3-4 cards across depending on viewport.
   ========================================================= */
.news-header{ max-width:720px; margin:0 auto 2.5rem; text-align:center; }
.news-header .eyebrow{ color:var(--blue); font-weight:700; font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; }
.news-header h1{ margin-top:.4rem; }
.news-header .news-intro{ color:var(--text-muted); font-size:1rem; }

.news-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(270px, 1fr)); gap:1.8rem; margin-bottom:2.5rem; }
.news-card{
  background:var(--white); border:1px solid var(--border); border-radius:var(--radius);
  overflow:hidden; box-shadow:var(--shadow); display:flex; flex-direction:column;
  transition:translate .15s ease, box-shadow .15s ease;
}
.news-card:hover{ translate:0 -3px; box-shadow:var(--shadow-lg); }
.news-card .thumb-link{ display:block; }
.news-card .thumb{ width:100%; aspect-ratio:16/9; object-fit:cover; }
.news-card .thumb-placeholder{
  aspect-ratio:16/9; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, var(--blue), var(--blue-dark));
  color:#fff; font-weight:800; font-size:1.05rem; letter-spacing:.02em;
}
.news-card .body{ padding:1.25rem 1.4rem 1.5rem; display:flex; flex-direction:column; flex:1; }
.news-card .cat{ font-size:.7rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; color:var(--blue); margin-bottom:.5rem; }
.news-card h3{ margin:0 0 .4rem; font-size:1.12rem; line-height:1.35; }
.news-card h3 a{ color:var(--text-dark); }
.news-card h3 a:hover{ color:var(--blue); text-decoration:none; }
.news-card .date{ font-size:.78rem; color:var(--text-muted); margin-bottom:.7rem; display:block; }
.news-card .excerpt{ font-size:.92rem; color:var(--text-muted); flex:1; margin-bottom:1.1rem; }
.news-card .btn{ align-self:flex-start; }

.pagination{ display:flex; justify-content:center; gap:.5rem; margin:2rem 0 3rem; flex-wrap:wrap; }
.pagination .page-numbers{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:38px; height:38px; padding:0 .6rem; border-radius:var(--radius-sm);
  border:1px solid var(--border); color:var(--text-dark); font-weight:600; font-size:.9rem;
}
.pagination .page-numbers:hover{ border-color:var(--blue); color:var(--blue); text-decoration:none; }
.pagination .page-numbers.current{ background:var(--blue); border-color:var(--blue); color:var(--white); }
.pagination .page-numbers.dots{ border:none; }
