/* ============================================================
   4WEALTH FINANCIAL GROUP — BLOGS / INSIGHTS & PERSPECTIVES
   ============================================================
   Table of Contents:
    1. CSS Variables (Design Tokens)
    2. Base / Reset
    3. Background & Overlays
    4. Layout Utility
    5. Typography Utilities
    6. Navigation
    7. Dropdown Menus
    8. Hero Section
    9. Featured Post
   10. Filter Bar & Category Pills
   11. Post Grid
   12. Thumbnail Placeholders
   13. Older Posts Button
   14. CTA Section
   15. Footer
   16. Reveal Animations
   17. Responsive / Media Queries
   ============================================================ */


/* ============================================================
   1. CSS VARIABLES (DESIGN TOKENS)
   ============================================================ */

:root {
  /* Colors */
  --bg:             #091119;
  --panel:          #00827E;    /* teal-green article card background */
  --panel-2:        #00827E;
  --panel-feat:     #00827E;    /* featured post card background */
  --teal:           #00827E;
  --teal-light:     #00827E;
  --teal-link:      #00827E;
  --blue:           #2a6fe0;    /* frame rail accent (reserved) */
  --navy:           #0D1B2A;
  --white:          #F5F4F0;
  --cream:          #F0EFE9;
  --dim:            rgba(245, 244, 240, 0.62);
  --dim-2:          rgba(245, 244, 240, 0.40);
  --rule:           rgba(245, 244, 240, 0.10);
  --rule-strong:    rgba(245, 244, 240, 0.18);

  /* Fonts */
  --serif:  'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:   'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --mono:   'IBM Plex Mono', ui-monospace, monospace;

  /* Layout */
  --maxw: 1180px;
  --pad:  clamp(22px, 5vw, 84px);
}


/* ============================================================
   2. BASE / RESET
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--teal);
  color: #fff;
}


/* ============================================================
   3. BACKGROUND & OVERLAYS
   ============================================================ */

/* Full-page animated canvas (drawn by blogs.js) */
#net {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* Brand teal glow at the top of the page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    90% 55% at 50% 6%,
    rgba(19, 85, 80, 0.13) 0%,
    rgba(0, 0, 0, 0) 70%
  );
}

/* Subtle vignette darkening the edges */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    125% 105% at 50% 42%,
    rgba(0, 0, 0, 0) 48%,
    rgba(0, 0, 0, 0.55) 100%
  );
}


/* ============================================================
   4. LAYOUT UTILITY
   ============================================================ */

/* Centered content wrapper with consistent horizontal padding */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  position: relative;
  z-index: 2;
}


/* ============================================================
   5. TYPOGRAPHY UTILITIES
   ============================================================ */

/* Small all-caps label used above headings */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal-light);
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

/* "Read More →" link used on cards */
.more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  margin-top: 22px;
  transition: gap 0.2s ease;
}

.more .arrow {
  transition: transform 0.22s ease;
}

.more:hover {
  color: var(--teal-light);
}

.more:hover .arrow {
  transform: translateX(5px);
}


/* ============================================================
   6. NAVIGATION
   ============================================================ */

#nav4w {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;

  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;

  padding: 10px 12px 10px 26px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(10, 18, 24, 0.32);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);

  opacity: 1;
  transition: opacity 1.05s cubic-bezier(.16, .84, .44, 1),
              transform 1.05s cubic-bezier(.16, .84, .44, 1);
}

/* Active nav link (first item, underlined) */
.nav-link-active {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  color: #F2F4F3;
  border-bottom: 1.5px solid #00827E;
  transition: color 0.3s;
}

/* Standard nav links */
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  color: rgba(242, 244, 243, 0.62);
  transition: color 0.3s;
}

.nav-link.is-current {
  color: #f2f4f3;
  border-bottom: 1.5px solid rgba(0,130,126, 0.8);
}

.nav-link:hover {
  color: #F2F4F3;
}

/* "Get In Touch" pill button */
.nav-cta {
  margin-left: 4px;
  padding: 12px 22px;
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #F2F4F3;
  border: 1px solid rgba(0,130,126, 0.55);
  border-radius: 999px;
  background: rgba(0,130,126, 0.10);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.nav-cta:hover {
  background: rgba(0,130,126, 0.22);
  transform: translateY(-1px);
}

/* Nav chevron icon */
.nav-chevron {
  width: 11px;
  height: 11px;
  transition: transform 0.25s ease;
}

/* Wrapper for nav items that have dropdowns */
.nav-item {
  position: relative;
}

.nav-item:hover .nav-chevron {
  transform: rotate(180deg);
}


/* ============================================================
   7. DROPDOWN MENUS
   ============================================================ */

.dropdown {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  top: calc(100% + 14px);
  min-width: 300px;
  background: rgba(11, 21, 32, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(245, 244, 240, 0.18);
  border-radius: 14px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dd-row {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 13px 14px;
  border-radius: 9px;
  transition: background 0.16s ease;
}

.dd-row:hover {
  background: rgba(19, 85, 80, 0.08);
}

.dd-ico {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 8px;
  background: rgba(19, 85, 80, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00827E;
}

.dd-title {
  font-size: 15px;
  font-weight: 600;
  color: #F5F4F0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.dd-desc {
  font-size: 12.5px;
  color: rgba(245, 244, 240, 0.40);
  margin-top: 2px;
  line-height: 1.4;
}


/* ============================================================
   8. HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px var(--pad) 90px;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--white);
  font-size: clamp(56px, 9vw, 128px);
  line-height: 0.96;
  letter-spacing: -0.025em;
}

.hero-sub {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--cream);
  font-size: clamp(22px, 3.2vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-top: 30px;
  max-width: 24ch;
}

/* Bouncing "Read the Latest" arrow below the headline */
.hero-cue {
  position: absolute;
  left: 50%;
  bottom: 52px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-cue span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--dim-2);
}

.hero-cue svg {
  color: var(--dim);
  animation: cue 1.9s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}


/* ============================================================
   9. FEATURED POST
   ============================================================ */

.feat-sec {
  position: relative;
  z-index: 2;
  padding: 8px 0 0;
}

/* Two-column card: thumbnail on left, text on right */
.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel-feat);
  border: 1px solid rgba(19, 85, 80, 0.14);
}

.featured .thumb {
  aspect-ratio: auto;
  min-height: 360px;
  border-radius: 0;
}

.feat-body {
  padding: clamp(34px, 4vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feat-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.08;
  font-size: clamp(30px, 3.4vw, 44px);
  color: var(--white);
  max-width: 16ch;
}

.feat-body time {
  display: block;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--dim);
  margin-top: 24px;
}

/* Horizontal rule between featured post and the grid below */
.feat-divider {
  height: 1px;
  background: var(--rule);
  margin: clamp(46px, 7vh, 84px) 0 clamp(30px, 4vh, 46px);
  position: relative;
  z-index: 2;
}


/* ============================================================
   10. FILTER BAR & CATEGORY PILLS
   ============================================================ */

/* Row containing the pills and article count */
.filterbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  margin-bottom: 30px;
}

/* Container for all pill buttons */
.pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Individual category filter button */
.pill {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--dim);
  background: transparent;
  cursor: pointer;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 9px 19px;
  transition: all 0.2s ease;
}

.pill:hover {
  color: var(--white);
  border-color: rgba(245, 244, 240, 0.35);
}

/* Active/selected pill */
.pill.active {
  color: var(--white);
  background: rgba(19, 85, 80, 0.16);
  border-color: rgba(19, 85, 80, 0.5);
}

/* "19 articles" count label */
.count {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--dim-2);
  white-space: nowrap;
}


/* ============================================================
   11. POST GRID
   ============================================================ */

/* 3-column card grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  position: relative;
  z-index: 2;
}

/* Individual article card */
.post {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid rgba(19, 85, 80, 0.12);
  border-radius: 14px;
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.6, 0.2, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.post:hover {
  transform: translateY(-6px);
  border-color: rgba(19, 85, 80, 0.4);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}

/* Hidden state when filtered out */
.post.hiding {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

/* Text area inside a card */
.post-body {
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.32;
  letter-spacing: -0.005em;
  color: var(--white);
}

.post-body time {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--dim);
  margin-top: 14px;
}

.post-body .more {
  margin-top: auto;
  padding-top: 20px;
  font-size: 14px;
}


/* ============================================================
   12. THUMBNAIL PLACEHOLDERS
   Replace .thumb inner content with real <img> tags when ready.
   ============================================================ */

.thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Colored gradient background (each .tg-N has its own palette) */
.thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--tg, linear-gradient(150deg, #16323b, #0e2230));
}

/* Diagonal stripe texture overlay */
.thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.045) 0 2px,
    transparent 2px 22px
  );
  opacity: 0.5;
  transition: transform 0.5s ease;
}

/* Zoom the texture on card hover */
.post:hover .thumb::after,
.featured:hover .thumb::after {
  transform: scale(1.06);
}

/* Caption label shown on top of the placeholder */
.thumb-cap {
  position: relative;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 244, 240, 0.62);
  background: rgba(9, 17, 25, 0.42);
  border: 1px solid rgba(245, 244, 240, 0.12);
  border-radius: 6px;
  padding: 7px 11px;
  text-align: center;
  max-width: 80%;
  line-height: 1.4;
}

/* Thumbnail color variants — swap these for real photos later */
.tg-1 { --tg: linear-gradient(150deg, #3a2a1c, #241a12); }
.tg-2 { --tg: linear-gradient(150deg, #1c3540, #11212c); }
.tg-3 { --tg: linear-gradient(150deg, #243b22, #152417); }
.tg-4 { --tg: linear-gradient(150deg, #2b2536, #191522); }
.tg-5 { --tg: linear-gradient(150deg, #3a2030, #22141d); }
.tg-6 { --tg: linear-gradient(150deg, #16323b, #0e2230); }


/* ============================================================
   13. OLDER POSTS BUTTON
   ============================================================ */

.older {
  display: flex;
  justify-content: center;
  margin-top: clamp(40px, 6vh, 64px);
  position: relative;
  z-index: 2;
}

.btn-older {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: rgba(245, 244, 240, 0.03);
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  padding: 14px 26px;
  transition: all 0.22s ease;
}

.btn-older .arrow {
  transition: transform 0.22s ease;
}

.btn-older:hover {
  border-color: rgba(19, 85, 80, 0.45);
  background: rgba(19, 85, 80, 0.08);
}

.btn-older:hover .arrow {
  transform: translateX(4px);
}


/* ============================================================
   14. CTA SECTION — "Let's build your advantage together"
   ============================================================ */

.cta-sec {
  position: relative;
  z-index: 2;
  padding: clamp(60px, 9vh, 120px) 0 0;
}

/* Rounded card with teal gradient background */
.cta {
  background: linear-gradient(125deg, #0d2723 0%, #123631 52%, #17433d 100%);
  border: 1px solid var(--rule-strong);
  border-radius: 22px;
  padding: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Large teal glow in the upper-right corner */
.cta::before {
  content: '';
  position: absolute;
  width: 660px;
  height: 660px;
  right: -180px;
  top: -230px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(40, 150, 135, 0.42),
    transparent 60%
  );
  pointer-events: none;
}

/* Smaller glow in the lower-right corner */
.cta::after {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  right: 4%;
  bottom: -280px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(25, 95, 88, 0.4),
    transparent 64%
  );
  pointer-events: none;
}

/* "Get In Touch" eyebrow label */
.cta-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal-light);
  position: relative;
  display: block;
  margin-bottom: 18px;
}

/* CTA headline */
.cta h2 {
  position: relative;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.04;
  font-size: clamp(34px, 4.2vw, 54px);
  color: var(--cream);
  max-width: 15ch;
}

/* CTA body text */
.cta-body {
  position: relative;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.62;
  color: var(--dim);
  margin-top: 22px;
  max-width: 46ch;
}

/* Button row */
.cta-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
  position: relative;
}

/* Shared button base */
.btn {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  padding: 14px 26px;
  border-radius: 999px;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.btn .arrow {
  transition: transform 0.22s ease;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* Solid teal "Book a Consultation" button */
.btn-solid {
  background: #00827E;
  color: #f2f4f3;
  border-color: #00827E;
}

.btn-solid:hover {
  background: #006d6a;
  border-color: #006d6a;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,130,126,0.35);
}

/* Ghost "Explore our firms" button */
.btn-ghost {
  background: transparent;
  color: #f2f4f3;
  border-color: #00827E;
}

.btn-ghost:hover {
  background: rgba(0,130,126,0.10);
  border-color: #006d6a;
  transform: translateY(-2px);
}

/* Right column: contact info rows */
.cta-side {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cta-side .row {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

/* Icon box in the contact info rows */
.cta-side .ci {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 9px;
  background: rgba(245, 244, 240, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-light);
}

/* Label (CALL / VISIT / EMAIL) */
.cta-side .ck {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim-2);
}

/* Value text (phone number, address, etc.) */
.cta-side .cv {
  font-size: 15px;
  color: var(--white);
  margin-top: 3px;
  line-height: 1.45;
}


/* ============================================================
   15. FOOTER
   ============================================================ */

footer {
  border-top: 1px solid var(--rule);
  padding: 64px 0 40px;
  margin-top: clamp(60px, 9vh, 110px);
  position: relative;
  z-index: 2;
}

/* 4-column footer grid */
.foot-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

/* Brand name */
.foot-brand .mark-txt {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: -0.01em;
}

.foot-brand .mark-txt sup {
  color: var(--teal);
  font-size: 12px;
}

.foot-brand p {
  font-size: 14px;
  color: var(--dim);
  margin-top: 15px;
  max-width: 32ch;
  line-height: 1.6;
}

/* Social icons row */
.foot-soc {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.foot-soc a {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  transition: all .2s ease;
}

.foot-soc a:hover {
  color: var(--teal-light);
  border-color: rgba(0,130,126, .4);
}

/* Footer link columns */
.foot-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f2f4f3;
  margin-bottom: 16px;
}

.foot-col a {
  display: block;
  font-size: 14px;
  color: var(--dim);
  padding: 7px 0;
  transition: color 0.18s ease;
}

.foot-col a:hover {
  color: var(--teal-light);
}

/* Copyright + disclaimer bar */
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 50px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  font-size: 12.5px;
  color: var(--dim-2);
}

.foot-bottom .disc {
  max-width: 60ch;
  line-height: 1.55;
}


/* ============================================================
   16. REVEAL ANIMATIONS
   Elements with .reveal start invisible and fade in when
   they enter the viewport (triggered by blogs.js).
   [data-reveal] is the attribute-based system from main.js /
   styles.css — copied verbatim so both systems coexist.
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: var(--transition-reveal);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.6, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Staggered delay variants for grid items */
.reveal.d1 { transition-delay: 0.07s; }
.reveal.d2 { transition-delay: 0.14s; }
.reveal.d3 { transition-delay: 0.21s; }


/* ============================================================
   17. RESPONSIVE / MEDIA QUERIES
   ============================================================ */

@media (max-width: 1000px) {
  /* Featured post stacks vertically */
  .featured {
    grid-template-columns: 1fr;
  }

  .featured .thumb {
    min-height: 240px;
    aspect-ratio: 16 / 9;
  }

  /* Post grid becomes 2 columns */
  .post-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* CTA card stacks vertically */
  .cta {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  /* Footer becomes 2-column */
  .foot-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  /* Hide lower-priority nav items on small screens */
  .nav-link.hide-sm {
    display: none;
  }

  .hero {
    min-height: 88vh;
    padding: 120px var(--pad) 80px;
  }

  /* Hide the bouncing scroll cue on mobile */
  .hero-cue {
    display: none;
  }

  /* Post grid becomes 1 column */
  .post-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  /* Footer becomes single column */
  .foot-top {
    grid-template-columns: 1fr;
  }

  /* Tighter nav padding on very small screens */
  .nav {
    padding: 6px 7px;
  }

  .nav-link {
    padding: 10px 12px;
    font-size: 13.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}


/* ============================================================
   MOBILE BREAKPOINTS — blogs.css (blogs + all 19 blog articles)
   ============================================================ */

/* Featured post: stack below 640px */
@media (max-width: 640px) {
  .featured {
    grid-template-columns: 1fr !important;
  }
  .featured .thumb {
    height: 220px;
  }
}

/* Hero sub: enforce readable floor */
@media (max-width: 480px) {
  .hero-sub {
    font-size: max(15px, 3.8vw) !important;
  }
}

/* Filter bar: wrap pills */
@media (max-width: 520px) {
  .filterbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .filter-pill {
    font-size: 12px;
    padding: 7px 14px;
  }
}

/* Contact card in blogs sidebar */
@media (max-width: 600px) {
  .contact-card {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
}

/* Article panel inner padding */
@media (max-width: 520px) {
  .article-panel {
    padding: 28px 18px 44px !important;
    border-radius: 12px !important;
    margin: 0 !important;
  }
  .article-title {
    font-size: clamp(26px, 7vw, 40px) !important;
  }
  .article-zone {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}
