/* =========================
   AUTOWHEELSGUIDE - THEME
   Complete CSS (Responsive + MOBILE MENU FIXED)
========================= */

:root{
  --bg:#ffffff;
  --surface:#ffffff;
  --surface-2:#f8fafc;
  --text:#0f172a;
  --muted:#64748b;
  --border:#e2e8f0;
  --shadow: 0 10px 30px rgba(15,23,42,.08);
  --shadow-sm: 0 6px 16px rgba(15,23,42,.08);
  --primary:#2563eb;
  --primary-dark:#1d4ed8;
  --ring: rgba(37,99,235,.25);
  --radius:16px;
  --container: 1180px;
}

/* Reset */
*{box-sizing:border-box}
html,body{margin:0;padding:0}

/* Smooth scroll + header offset */
html{
  scroll-behavior:smooth;
  scroll-padding-top: 84px; /* header height */
}

body{
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  position:relative; /* ✅ helps stacking consistency */
}

img{max-width:100%; height:auto; display:block;}
a{color:inherit;text-decoration:none}

/* Container */
.container{
  width:min(var(--container), calc(100% - 32px));
  margin-inline:auto;
}

/* Utilities */
.muted{color:var(--muted)}
.hr{height:1px;background:var(--border);border:0;margin:0}
.section{padding:56px 0}
.section--tight{padding:36px 0}
.center{text-align:center}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid #dbeafe;
  background:#eff6ff;
  color:#1e3a8a;
  font-weight:800;
  font-size:13px;
}

.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad{padding:18px}

/* Focus accessibility */
:focus-visible{
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 10px;
}

/* =========================
   HEADER
========================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000; /* ✅ keep below mobile menu */
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.mainbar{position:relative;}
.mainbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
  flex-wrap: nowrap !important;
}

/* Brand */
.brand{
  display:flex;
  align-items:center;
  flex:0 0 auto;
}
.brand__logo{
  height:54px;
  width:auto;
  object-fit:contain;
  max-width:240px;
}

/* Desktop Nav */
.nav{display:flex; align-items:center;}
.nav--desktop{
  justify-content:center;
  gap:10px;
  flex:1 1 auto;
  min-width:0;
  overflow:hidden;
}
.nav__link{
  padding:10px 5px;
  border-radius:999px;
  color:var(--muted);
  font-weight:800;
  font-size:15px;
  white-space:nowrap;
  transition: background .15s ease, color .15s ease, transform .15s ease;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.nav__link:hover{
  color:var(--text);
  background:#f1f5f9;
  transform: translateY(-1px);
}
.nav__icon{font-size:14px;}

/* Actions */
.header-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
  white-space:nowrap;
}

.icon-btn{
  width:44px;height:44px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  display:grid;
  place-items:center;
  cursor:pointer;
  box-shadow: 0 1px 0 rgba(15,23,42,.04);
  transition: box-shadow .15s ease, transform .15s ease;
}
.icon-btn:hover{box-shadow: var(--shadow); transform: translateY(-1px);}
.icon{font-size:18px; line-height:1}

.btn{
  border:1px solid transparent;
  border-radius:999px;
  padding:11px 14px;
  font-weight:900;
  font-size:14px;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover{transform: translateY(-1px);}

.btn--primary{
  background:var(--primary);
  color:#fff;
  box-shadow: 0 12px 24px rgba(37,99,235,.18);
}
.btn--primary:hover{background:var(--primary-dark)}

.btn--soft{
  background:#eff6ff;
  color:#1e3a8a;
  border-color:#dbeafe;
}
.btn--soft:hover{background:#e0edff}

.btn--full{width:100%; display:inline-flex; justify-content:center}

/* Hide CTA earlier to avoid breaking */
@media (max-width: 1100px){
  .btn--primary{display:none;}
}

/* Mobile toggle */
.menu-btn{display:none;}
@media (max-width: 980px){
  .nav--desktop{display:none;}
  .menu-btn{display:grid;}
  .brand__logo{height:46px; max-width:190px;}
}

/* =========================
   MOBILE DRAWER (LEFT) - FINAL FIX
========================= */
.mobile-menu{
  position:fixed;
  inset:0;
  z-index: 999999; /* ✅ always above */
  display:block;
}
.mobile-menu[hidden]{display:none !important;}

/* only for mobile */
@media (min-width: 981px){
  .mobile-menu{display:none !important;}
}

.mobile-menu__backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.55);
  border:0;
  width:100%;
  height:100%;
  opacity:0;
  pointer-events:none;
  transition: opacity .18s ease;
  z-index: 9999;
}

.mobile-menu__panel{
  position:fixed;          /* ✅ fixed to viewport */
  left:0;
  top:0;
  height:100vh;
  width:min(340px, 86vw);
  background:#fff;
  border-right:1px solid var(--border);
  box-shadow: var(--shadow);
  padding:16px;
  padding-bottom: 90px;  /
  display:flex;
  flex-direction:column;
  gap:14px;
  transform: translateX(-105%);
  transition: transform .18s ease;
  z-index: 10000;
  overflow-y:auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.is-open .mobile-menu__backdrop{
  opacity:1;
  pointer-events:auto;
}
.mobile-menu.is-open .mobile-menu__panel{
  transform: translateX(0);
}

.mobile-menu__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-bottom:10px;
  border-bottom:1px solid var(--border);
  position: sticky;
  top: 0;
  background:#fff;
  z-index: 2;
}

.mobile-menu__title{font-weight:1000; font-size:16px;}

.nav--mobile{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:10px;
  align-items:stretch;
}
.nav--mobile .nav__link{
  width:100%;               /* ✅ take full row */
  justify-content:flex-start;/* ✅ text left */
  text-align:left;
  border-radius:12px;
  padding:12px 14px;
  background:#f8fafc;
  border:1px solid var(--border);
  color:var(--text);
  font-weight:900;
  gap:10px;
}

.nav--mobile .nav__icon{
  width:18px;
  text-align:center;
}

.nav--mobile .nav__link[aria-current="page"]{
  background:#eff6ff;
  border-color:#dbeafe;
  color:#1d4ed8;
}
.mobile-menu__cta{
  position: sticky;
  bottom: 0;
  background:#fff;
  padding: 12px 0 10px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}
.mobile-menu__links{
  display:flex;
  gap:14px;
  justify-content:flex-start; /* ✅ left */
  padding-top:6px;
}

/* =========================
   RESPONSIVE POLISH
========================= */
@media (max-width: 980px){
  .section{padding:44px 0}
  .container{width:min(var(--container), calc(100% - 24px));}
}

@media (max-width: 768px){
  html{scroll-padding-top: 74px;}
  .mainbar__inner{padding:12px 0;}
  .icon-btn{width:42px;height:42px;border-radius:14px;}
  .container{width: calc(100% - 20px);}
}

@media (max-width: 420px){
  .brand__logo{height:42px; max-width:170px;}
  .nav--mobile .nav__link{padding:11px 12px;}
  .mobile-menu__panel{padding:14px;}
}




/* =========================
   HERO SLIDER — FINAL (ALL SCREENS RESPONSIVE + USER FRIENDLY)
   - Desktop hero taller (premium look)
   - Tablet balanced
   - Mobile compact (no extra height)
========================= */
.hero-slider{
  position:relative;
  width:100%;
  height: clamp(560px, 72vh, 720px); /* ✅ desktop premium height */
  overflow:hidden;
  border-bottom:1px solid var(--border);
}

/* media layer */
.hero-slider__media{
  position:absolute;
  inset:0;
  z-index:0;
}

/* slides */
.hero-slide{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;

  object-fit: cover;              /* ✅ correct */
  object-position: center;

  background:#000;
  opacity:0;
  transition: opacity .8s ease;
}
.hero-slide.is-active{ opacity:1; }

/* overlay for text readability */
.hero-slider__overlay{
  position:absolute;
  inset:0;
  z-index:1;
  background:
    radial-gradient(900px 320px at 18% 28%, rgba(15,23,42,.58), transparent 58%),
    linear-gradient(to right, rgba(15,23,42,.62), rgba(15,23,42,.18));
}

/* content wrapper */
.hero-slider__content{
  position:relative;
  z-index:2;
  height:100%;
  display:flex;
  align-items:center;
  padding: clamp(14px, 2.4vw, 28px) 0;
}

/* copy */
.hero-copy{
  max-width: 660px;
  color:#fff;
}

/* badge */
.hero-copy .badge{
  background: rgba(255,255,255,.92);
  border-color: rgba(255,255,255,.55);
  color:#0f172a;
}

/* title + subtitle */
.hero-title{
  margin: 12px 0 10px;
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.6px;
  text-wrap: balance;
}
.hero-sub{
  margin:0;
  font-size: clamp(14px, 1.6vw, 18px);
  color: rgba(255,255,255,.90);
  font-weight: 650;
  max-width: 62ch;
}

/* actions */
.hero-actions{
  margin-top: 16px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}
.hero-actions .btn{
  padding: 12px 16px;
}

/* dots */
.hero-dots{
  margin-top: 14px;
  display:flex;
  gap:10px;
  align-items:center;
}
.dot{
  width:12px;
  height:12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.22);
  cursor:pointer;
  transition: width .18s ease, background .18s ease, border-color .18s ease;
}
.dot.is-active{
  width:28px;
  background:#fff;
  border-color:#fff;
}

/* =========================
   RESPONSIVE TUNING
========================= */

/* Tablet */
@media (max-width: 980px){
  .hero-slider{
    height: clamp(520px, 68vh, 640px);
  }

  .hero-slider__overlay{
    background:
      radial-gradient(700px 260px at 30% 10%, rgba(15,23,42,.62), transparent 60%),
      linear-gradient(to bottom, rgba(15,23,42,.66), rgba(15,23,42,.16));
  }
}

/* Mobile (compact height) */
@media (max-width: 560px){
  .hero-slider{
    height: 390px;
  }
  .hero-slider__content{
    padding: 12px 0;
  }
  .hero-slide{
    object-position: 65% center;
  }
  .hero-sub{
    max-width: 46ch;
  }
  .hero-actions{
    margin-top: 12px;
    gap:10px;
  }
  .hero-dots{
    margin-top: 10px;
  }
}

/* Small phones */
@media (max-width: 380px){
  .hero-slider{ height: 360px; }
  .hero-title{ font-size: 26px; }
  .hero-actions .btn{
    width:100%;
    justify-content:center;
  }
  .dot.is-active{ width:26px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .hero-slide{ transition:none !important; }
  .dot{ transition:none !important; }
}


/* =========================
   Featured Categories (Premium + ALL SCREEN RESPONSIVE)
========================= */
.cats{
  padding: 54px 0;
  background:
    radial-gradient(900px 260px at 10% 0%, rgba(37,99,235,.08), transparent 60%),
    radial-gradient(700px 260px at 90% 10%, rgba(99,102,241,.07), transparent 60%);
  border-bottom: 1px solid var(--border);
}

.cats__head{
  max-width: 760px;
  margin-bottom: 18px;
}

.cats__title{
  margin: 12px 0 8px;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.4px;
}

.cats__sub{
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

/* Grid */
.cats__grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

/* Card */
.cat-card{
  grid-column: span 6; /* ✅ 2 cards per row on desktop */
  position: relative;
  min-height: clamp(220px, 26vw, 280px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: #0b1220;
  transform: translateY(0);
  transition: transform .18s ease, box-shadow .18s ease;
  isolation: isolate; /* ✅ ensures overlays behave */
}

.cat-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Background image */
.cat-card::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform .8s ease;
  filter: saturate(1.05) contrast(1.05);
  z-index: 0;
}
.cat-card:hover::before{ transform: scale(1.12); }

/* Overlay for readability */
.cat-card__overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(to right, rgba(15,23,42,.78), rgba(15,23,42,.20)),
    radial-gradient(600px 220px at 20% 30%, rgba(15,23,42,.55), transparent 60%);
  z-index: 1;
}

/* Content */
.cat-card__content{
  position:relative;
  z-index:2;
  padding: 18px;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap: 10px;
  color:#fff;
}

/* top pill */
.cat-card__top{
  position:absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
}

.cat-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color:#0f172a;
  font-weight: 900;
  font-size: 13px;
  border: 1px solid rgba(226,232,240,.9);
}

/* Text */
.cat-card__title{
  margin:0;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.cat-card__desc{
  margin:0;
  color: rgba(255,255,255,.86);
  font-weight: 650;
  max-width: 52ch;
  font-size: 14px;
}

/* Button */
.cat-card__actions{ margin-top: 4px; }

.cat-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  color:#0f172a;
  font-weight: 900;
  border: 1px solid rgba(226,232,240,.9);
  transition: transform .15s ease, background .15s ease;
  min-height: 42px; /* ✅ better tap target */
}
.cat-btn:hover{
  transform: translateY(-1px);
  background: #ffffff;
}

/* =========================
   RESPONSIVE BREAKPOINTS
========================= */

/* ✅ Large tablets: keep 2-column */
@media (max-width: 980px){
  .cats{ padding: 48px 0; }
  .cat-card{ grid-column: span 6; min-height: 240px; }
}

/* ✅ Tablets / small tablets: 2-column still */
@media (max-width: 820px){
  .cat-card{ grid-column: span 6; min-height: 230px; }
}

/* ✅ Phones: single column */
@media (max-width: 680px){
  .cat-card{ grid-column: span 12; min-height: 220px; }
}

/* ✅ Small phones */
@media (max-width: 420px){
  .cats{ padding: 40px 0; }
  .cat-card{ min-height: 210px; }
  .cat-card__content{ padding: 16px; }
  .cat-pill{ font-size: 12px; padding: 7px 10px; }
  .cat-btn{ width: 100%; }
}




/* =========================
   SECBAR (AutoWheelsGuide) — FINAL
   - theme match
   - responsive
========================= */
.secbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-radius:18px;
  background:
    radial-gradient(900px 240px at 10% 0%, rgba(37,99,235,.10), transparent 60%),
    radial-gradient(700px 240px at 90% 10%, rgba(99,102,241,.08), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border:1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom:16px;
  color:var(--text);
}

.secbar__left,
.secbar__right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  min-width: 0;
}

.secbar__badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid #dbeafe;
  background:#eff6ff;
  color:#1e3a8a;
  font-weight:1000;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  white-space:nowrap;
}

.secbar__pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background:#ffffff;
  border:1px solid var(--border);
  color:var(--muted);
  font-weight:900;
  font-size:12px;
  white-space:nowrap;
}

/* button */
.secbar__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  background:#fff;
  color:var(--text);
  border:1px solid var(--border);
  font-weight:1000;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  min-height: 42px; /* ✅ tap friendly */
}
.secbar__btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  background:#f8fafc;
}

/* ✅ tablet: stack right actions to next line if needed */
@media (max-width: 980px){
  .secbar{
    flex-wrap: wrap;
  }
  .secbar__right{
    width:100%;
    justify-content:flex-start;
  }
}

/* ✅ mobile */
@media (max-width:560px){
  .secbar{
    flex-direction:column;
    align-items:flex-start;
    padding:12px;
  }
  .secbar__right{
    width:100%;
    justify-content:flex-start;
  }
  .secbar__btn{
    width:100%;
  }
}


/* =========================
   POSTS GRID + CARDS — FINAL
   - 3 desktop
   - 2 tablet
   - 1 mobile
   - clean clamp + equal heights
========================= */

.sec{ padding:56px 0; }

.post-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

/* Card */
.post-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display:flex;
  flex-direction:column;
  min-height: 100%;
  transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Image */
.post-thumb{
  display:block;
  position:relative;
  width:100%;
  background:#0b1220;
  overflow:hidden;
  aspect-ratio: 16/9; /* ✅ more familiar, better look */
}
.post-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  transform: scale(1.02);
  transition: transform .5s ease;
}
.post-card:hover .post-thumb img{ transform: scale(1.08); }

/* Body */
.post-body{
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap: 8px;
  flex: 1;
}

/* Meta */
.post-meta{
  display:flex;
  gap: 8px;
  align-items:center;
  flex-wrap:wrap;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}

.post-tag{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 1000;
  font-size: 12px;
}

/* Title */
.post-title{
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: -0.2px;
  font-weight: 1000;

  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
}

/* Excerpt */
.post-excerpt{
  margin:0;
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;

  display:-webkit-box;
  -webkit-line-clamp: 2; /* ✅ 2 lines more readable */
  -webkit-box-orient: vertical;
  overflow:hidden;
}

/* Actions */
.post-actions{
  margin-top: auto; /* ✅ keep button at bottom */
  display:flex;
  justify-content:flex-end;
}
.post-actions .btn{
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 1000;
  min-height: 40px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 980px){
  .post-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 560px){
  .sec{ padding:44px 0; }

  .post-grid{
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .post-body{ padding: 12px; }

  .post-title{ font-size: 16px; }
  .post-excerpt{ -webkit-line-clamp: 2; }

  .post-actions .btn{
    width: 100%;
    justify-content:center;
  }
}





/* =========================
   FOOTER — COMPLETE (AutoWheelsGuide)
   - 3 columns
   - Recent posts width controlled
   - Soft (normal) background
   - Fully responsive
========================= */

.site-footer{
  padding: 56px 0 20px;
  background:
    radial-gradient(800px 240px at 12% 0%, rgba(37,99,235,.06), transparent 62%),
    radial-gradient(700px 240px at 88% 8%, rgba(99,102,241,.05), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border-top: 1px solid var(--border);
  color: var(--text);
}

.footer__wrap{
  display:flex;
  flex-direction:column;
  gap: 22px;
}

/* ✅ 3-column layout with controlled center width */
.footer-3col{
  display:grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 560px) minmax(220px, 0.8fr);
  gap: 22px;
  align-items:start;
}

.footer-about,
.footer-recent,
.footer-linkscol{ min-width: 0; }

/* LEFT */
.footer-logo img{
  height: 54px;
  width:auto;
  max-width:240px;
  object-fit:contain;
}

.footer-tagline{
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 650;
  max-width: 62ch;
}

/* email row */
.footer-email{
  margin-top: 14px;
  display:flex;
  align-items:center;
  gap:10px;
  color: var(--muted);
  font-weight: 750;
}
.footer-email a{
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ft-ic{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background:#fff;
  display:grid;
  place-items:center;
  box-shadow: 0 1px 0 rgba(15,23,42,.04);
}

/* socials */
.footer-social{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}
.soc{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background:#fff;
  display:grid;
  place-items:center;
  box-shadow: 0 1px 0 rgba(15,23,42,.04);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.soc:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  background:#f8fafc;
}
.soc i{ font-size:16px; color: var(--text); }

/* TITLES */
.footer-col__title{
  font-weight: 1000;
  margin-bottom: 12px;
  letter-spacing: .02em;
}

/* CENTER: Recent Posts column */
.footer-recent{
  max-width: 560px;     /* ✅ width control */
  justify-self: center; /* ✅ stays centered */
}

.footer-posts{
  display:flex;
  flex-direction:column;
  gap: 14px;
}

/* post card */
.fpost{
  display:grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items:center;

  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background:#fff;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.fpost:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.fpost__img{
  width:56px;
  height:56px;
  border-radius:16px;
  overflow:hidden;
  background:#0b1220;
  border:1px solid rgba(226,232,240,.9);
}
.fpost__img img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.fpost__ph{
  width:100%;
  height:100%;
  background: linear-gradient(135deg, #0b1220, #1f2937);
}

.fpost__meta{
  display:flex;
  gap: 8px;
  align-items:center;
  flex-wrap:wrap;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}

.fpost__cat{
  padding: 6px 10px;
  border-radius: 999px;
  background:#eff6ff;
  border:1px solid #dbeafe;
  color:#1e3a8a;
  font-weight:1000;
  font-size: 12px;
}

.fpost__title{
  margin-top: 6px;
  font-weight: 1000;
  font-size: 15px;
  letter-spacing:-.2px;
  line-height:1.25;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.footer-more{
  display:inline-flex;
  margin-top: 10px;
  color: var(--text);
  font-weight: 1000;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* RIGHT: links */
.footer-links{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.footer-links a{
  color: var(--muted);
  font-weight: 800;
  transition: color .15s ease;
}
.footer-links a:hover{ color: var(--text); }

/* bottom */
.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.footer-copy{
  margin:0;
  color: var(--muted);
  font-weight: 600;
}
.footer-bottom__links{
  display:flex;
  gap: 10px;
  align-items:center;
  color: var(--muted);
  font-weight: 600;
}
.footer-bottom__links a:hover{ color: var(--text); }
.dot-sep{ opacity:.6; }

/* =========================
   RESPONSIVE
========================= */

/* Tablet: stack */
@media (max-width: 980px){
  .footer-3col{
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .footer-recent{
    max-width: 680px;
    justify-self: start;
  }
  .fpost{ max-width: 680px; }
}

/* Mobile: full width cards + better taps */
@media (max-width: 560px){
  .site-footer{ padding: 44px 0 18px; }

  .footer-recent{ max-width: 100%; }
  .fpost{
    grid-template-columns: 52px 1fr;
    padding: 10px 12px;
  }
  .fpost__img{
    width:52px;
    height:52px;
    border-radius:14px;
  }

  .footer-bottom{
    flex-direction:column;
    align-items:flex-start;
  }
  .footer-bottom__links{ flex-wrap:wrap; }
}