/* ================================================================
   USX CYBER — NEWS & ALERTS / BLOG PAGE
   Dynamic Defense | News & Alerts
   ================================================================ */

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  --cida: #44d7b6;
  --principle: #4fabbd;
  --deep: #006e7b;
  --alert: #f1754a;
  --bg: #07080b;
  --bg2: #0c0f14;
  --bg3: #111620;
  --surface: #161d2a;
  --text: #eef2f8;
  --muted: #9bb8cc;
  --faint: rgba(255, 255, 255, 0.04);
  --border: rgba(68, 215, 182, 0.13);
  --font-d: "Outfit", sans-serif;
  --font-b: "DM Sans", sans-serif;
  --max-w: 1200px;
  --nav-h: 68px;
  --r: 6px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --tr: all 0.2s var(--ease);
}

/* ── Reset ──────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(
    rgba(68, 215, 182, 0.05) 1px,
    transparent 1px
  );
  background-size: 32px 32px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
strong {
  color: var(--text);
  font-weight: 600;
}

/* ── Container ──────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 36px;
}

/* ── Headings ───────────────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-family: var(--font-d);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* ── Eyebrow ─────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cida);
  margin-bottom: 20px;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: var(--r);
  transition: var(--tr);
  cursor: pointer;
  border: none;
}
.btn-cta {
  background: var(--principle);
  color: #fff;
  font-size: 16px;
  padding: 16px 36px;
}
.btn-cta:hover {
  background: #5cbece;
  box-shadow: 0 0 32px rgba(79, 171, 189, 0.45);
  transform: translateY(-2px);
}
.btn-cida {
  background: var(--cida);
  color: #000;
  font-size: 16px;
  padding: 16px 36px;
}
.btn-cida:hover {
  background: #5ce8c7;
  box-shadow: 0 0 28px rgba(68, 215, 182, 0.35);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 16px;
  padding: 16px 36px;
}
.btn-outline:hover {
  border-color: var(--cida);
  color: var(--cida);
  background: rgba(68, 215, 182, 0.04);
}

/* ── Scroll-reveal ───────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s var(--ease),
    transform 0.65s var(--ease);
}
[data-reveal-right] {
  opacity: 0;
  transform: translateX(22px);
  transition:
    opacity 0.65s var(--ease) 0.12s,
    transform 0.65s var(--ease) 0.12s;
}
.revealed {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease);
}
[data-reveal-stagger].revealed > *:nth-child(1) {
  transition-delay: 0s;
  opacity: 1;
  transform: none;
}
[data-reveal-stagger].revealed > *:nth-child(2) {
  transition-delay: 0.1s;
  opacity: 1;
  transform: none;
}
[data-reveal-stagger].revealed > *:nth-child(3) {
  transition-delay: 0.2s;
  opacity: 1;
  transform: none;
}
[data-reveal-stagger].revealed > *:nth-child(4) {
  transition-delay: 0.3s;
  opacity: 1;
  transform: none;
}
[data-reveal-stagger].revealed > *:nth-child(5) {
  transition-delay: 0.4s;
  opacity: 1;
  transform: none;
}
[data-reveal-stagger].revealed > *:nth-child(6) {
  transition-delay: 0.5s;
  opacity: 1;
  transform: none;
}

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes orbDrift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(30px, -20px);
  }
  66% {
    transform: translate(-20px, 30px);
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes sbShimmer {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(7, 8, 11, 0.65);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(68, 215, 182, 0.06);
  transition: var(--tr);
}
.nav-wrap.scrolled {
  background: rgba(7, 8, 11, 0.96);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.55);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 36px;
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo img {
  height: 42px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 44px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a.active {
  color: var(--cida);
}
.nav-mobile-cta {
  display: none;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.nav-login {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 14px;
  transition: color 0.15s;
}
.nav-login:hover {
  color: var(--text);
}
.nav-cta {
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: var(--r);
  background: var(--principle);
  color: #fff;
  transition: all 0.17s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: #5cbece;
  box-shadow: 0 0 20px rgba(79, 171, 189, 0.35);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: 16px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--tr);
}
.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ================================================================
   HERO — short centered
   ================================================================ */
.hero {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero-orb-1 {
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(68, 215, 182, 0.05) 0%,
    transparent 60%
  );
  top: -300px;
  right: -200px;
  animation: orbDrift 12s ease-in-out infinite;
}
.hero-orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(0, 110, 123, 0.07) 0%,
    transparent 60%
  );
  bottom: -200px;
  left: -160px;
  animation: orbDrift 14s ease-in-out infinite reverse;
}
.hero-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 760px;
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 64px;
  padding-left: 36px;
  padding-right: 36px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cida);
  margin-bottom: 28px;
  animation: fadeUp 0.5s ease both 0.05s;
}
.eyebrow-line {
  width: 28px;
  height: 1px;
  background: var(--cida);
  flex-shrink: 0;
}
.hero-body h1 {
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.01;
  margin-bottom: 22px;
  animation: fadeUp 0.55s ease both 0.15s;
}
.hero-lede {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--muted);
  line-height: 1.78;
  max-width: 600px;
  animation: fadeUp 0.5s ease both 0.25s;
}

/* ================================================================
   FILTER BAR
   ================================================================ */
.filter-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
}
.filter-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 0;
  scrollbar-width: none;
}
.filter-inner::-webkit-scrollbar {
  display: none;
}
.filter-btn {
  flex-shrink: 0;
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: var(--tr);
  white-space: nowrap;
}
.filter-btn:hover {
  border-color: var(--cida);
  color: var(--text);
}
.filter-btn.active {
  background: var(--cida);
  color: #000;
  border-color: var(--cida);
}
.filter-count {
  font-size: 10px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  border-radius: 100px;
  padding: 1px 7px;
  margin-left: 4px;
  transition: var(--tr);
}
.filter-btn.active .filter-count {
  background: rgba(0, 0, 0, 0.2);
  color: rgba(0, 0, 0, 0.65);
}

/* ================================================================
   CATEGORY TAGS (on cards)
   ================================================================ */
.post-tag {
  display: inline-block;
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.tag-blog {
  background: rgba(68, 215, 182, 0.12);
  color: var(--cida);
}
.tag-press {
  background: rgba(79, 171, 189, 0.12);
  color: var(--principle);
}
.tag-case {
  background: rgba(125, 211, 221, 0.15);
  color: #7dd3dd;
}
.tag-report {
  background: rgba(155, 184, 204, 0.12);
  color: var(--muted);
}
.tag-bulletin {
  background: rgba(241, 117, 74, 0.12);
  color: var(--alert);
}
/* Retired categories — kept for backwards compatibility in case of external links */
.tag-announce {
  background: rgba(79, 171, 189, 0.12);
  color: var(--principle);
}
.tag-alert {
  background: rgba(241, 117, 74, 0.12);
  color: var(--alert);
}
.tag-compliance {
  background: rgba(0, 110, 123, 0.2);
  color: #7dd3dd;
}

/* ================================================================
   FEATURED POST
   ================================================================ */
.section-featured {
  background: var(--bg);
  padding: 72px 0 0;
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.featured-card:hover {
  border-color: rgba(68, 215, 182, 0.25);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.featured-img {
  min-height: 360px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.featured-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  height: 100%;
  min-height: 360px;
  background: linear-gradient(
    135deg,
    var(--bg3) 0%,
    rgba(0, 110, 123, 0.15) 100%
  );
}
.featured-img-placeholder svg {
  opacity: 0.25;
}
.featured-img-placeholder span {
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(68, 215, 182, 0.3);
}
.featured-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--cida);
  color: #000;
  padding: 5px 12px;
  border-radius: 100px;
}

.featured-body {
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.featured-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 500;
}
.featured-body h2 {
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  transition: color 0.15s;
}
.featured-card:hover .featured-body h2 {
  color: var(--cida);
}
.featured-body p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.78;
  margin-bottom: 32px;
}
.featured-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cida);
  transition: gap 0.15s;
}
.featured-link:hover {
  gap: 12px;
}
.featured-link svg {
  transition: transform 0.15s;
}
.featured-link:hover svg {
  transform: translateX(3px);
}

/* ================================================================
   POST GRID
   ================================================================ */
.section-posts {
  background: var(--bg);
  padding: 56px 0 108px;
}

.posts-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
}
.posts-header h3 {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-d);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.posts-count {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.2);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.post-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  border-color: rgba(68, 215, 182, 0.22);
}
.post-card[data-hidden="true"] {
  display: none;
}

.post-card-img {
  height: 180px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition:
    opacity 0.2s,
    transform 0.3s;
}
.post-card:hover .post-card-img img {
  opacity: 0.85;
  transform: scale(1.03);
}
.post-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg3), rgba(0, 110, 123, 0.1));
}
.post-card-img-placeholder svg {
  opacity: 0.15;
}

.post-card-body {
  padding: 28px 28px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.post-card-date {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 500;
}
.post-card-body h3 {
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  transition: color 0.15s;
}
.post-card:hover h3 {
  color: var(--cida);
}
.post-card-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.72;
  margin-bottom: 24px;
  flex: 1;
}
.post-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition:
    color 0.15s,
    gap 0.15s;
}
.post-card:hover .post-read-more {
  color: var(--cida);
  gap: 9px;
}

/* Empty state */
.posts-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 72px 0;
  font-family: var(--font-d);
  color: rgba(255, 255, 255, 0.18);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: none;
}
.posts-empty.visible {
  display: block;
}

/* ================================================================
   NEWSLETTER / ALERT SIGNUP
   ================================================================ */
.section-subscribe {
  background: var(--bg2);
  padding: 96px 0;
  border-top: 1px solid var(--border);
}
.subscribe-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.subscribe-inner h2 {
  font-size: clamp(26px, 3.5vw, 44px);
  margin-bottom: 16px;
}
.subscribe-inner p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 36px;
}

.subscribe-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
}
.subscribe-input {
  flex: 1;
  background: var(--bg3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r);
  padding: 14px 18px;
  font-family: var(--font-b);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.subscribe-input::placeholder {
  color: rgba(255, 255, 255, 0.22);
}
.subscribe-input:focus {
  border-color: var(--cida);
}
.subscribe-btn {
  flex-shrink: 0;
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: var(--r);
  background: var(--cida);
  color: #000;
  border: none;
  cursor: pointer;
  transition: var(--tr);
  white-space: nowrap;
}
.subscribe-btn:hover {
  background: #5ce8c7;
  box-shadow: 0 0 24px rgba(68, 215, 182, 0.3);
}
.subscribe-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.2);
  margin-top: 14px;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: #000;
  border-top: 1px solid rgba(68, 215, 182, 0.07);
  padding: 64px 0 32px;
}
.ft-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 48px;
}
.ft-logo {
  height: 44px;
  width: auto;
  margin-bottom: 14px;
}
.ft-tagline {
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cida);
  margin-bottom: 10px;
}
.ft-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
  max-width: 260px;
}
.ft-addr {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
  margin-top: 14px;
}
.ft-col h4 {
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  margin-bottom: 18px;
}
.ft-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ft-col a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.15s;
}
.ft-col a:hover {
  color: var(--cida);
}
.ft-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.ft-bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}
.ft-awards {
  display: flex;
  gap: 12px;
  align-items: center;
}
.ft-awards img {
  height: 56px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  filter: none;
  transition: opacity 0.2s;
}
.ft-awards img:hover {
  opacity: 1;
}

/* ================================================================
   RESPONSIVE — TABLET  (≤ 1024px)
   ================================================================ */
@media (max-width: 1024px) {
  :root {
    --nav-h: 64px;
  }
  .container {
    padding: 0 28px;
  }

  .nav-links {
    display: none;
  }
  .nav-right {
    display: none;
  }
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .hero-body {
    padding-left: 28px;
    padding-right: 28px;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }
  .featured-img {
    min-height: 260px;
  }

  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ft-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* Mobile nav overlay */
.nav-links.open {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 8, 11, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 36px 36px;
  gap: 0;
  z-index: 9999;
  overflow-y: auto;
}
.nav-links.open li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-links.open a {
  display: block;
  padding: 18px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-links.open a:hover {
  color: var(--cida);
}
.nav-links.open .nav-mobile-cta {
  display: block;
  border-bottom: none;
  padding-top: 28px;
}
.nav-links.open .nav-mobile-cta .btn {
  width: 100%;
  justify-content: center;
  font-size: 15px;
  padding: 15px 28px;
}

/* ================================================================
   RESPONSIVE — MOBILE  (≤ 640px)
   ================================================================ */
@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }
  .subscribe-form {
    flex-direction: column;
  }
  .subscribe-btn {
    width: 100%;
  }
  .ft-top {
    grid-template-columns: 1fr;
  }
  .posts-header {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 400px) {
  :root {
    --nav-h: 60px;
  }
  .nav-logo img {
    height: 34px;
  }
}
