/* BLOG PAGE — SCOPED STYLES
   -------------------------------------------------- */

/* ===== HERO ===== */
.blog-hero{ background:#0b3d1b; color:#eafff0; padding:56px 0 32px; }
.blog-hero__inner{ max-width:1100px; margin:0 auto; text-align:center; padding:0 20px; }
.blog-hero h1{
  margin:0 0 10px; font-weight:900; letter-spacing:.3px;
  font-size:clamp(28px, 2.6vw + 18px, 44px); display:inline-flex; gap:10px; align-items:center; justify-content:center;
}
.blog-hero h1 .ico{ display:inline-grid; place-items:center; width:36px; height:36px; border-radius:10px; background:#0a2a16; color:#c8f7df; }
.blog-hero p{ margin:0 auto; max-width:880px; color:#cfe9dc; line-height:1.7; font-size:clamp(14px, .5vw + 12px, 18px); }

/* ===== BODY GRID ===== */
.blog-body{ background:#fff; padding:22px 0 48px; }
.blog-grid{ max-width:1100px; margin:0 auto; padding:0 20px; display:grid; gap:18px; grid-template-columns: repeat(12, 1fr); }
.blog-main{ grid-column: span 8; }
.blog-side{ grid-column: span 4; }
@media (max-width: 992px){ .blog-main, .blog-side{ grid-column: span 12; } }

/* heads */
.sec-head{ display:flex; align-items:center; gap:10px; margin:4px 0 10px; }
.sec-head .tag-ico svg{ width:20px; height:20px; color:#0b3d1b; }
.sec-head h2{ margin:0; color:#0b3d1b; font-weight:900; font-size:18px; }

/* ===== FEATURED CARDS ===== */
.feat-grid{ display:grid; gap:16px; grid-template-columns: repeat(12, 1fr); }
.p-card{
  grid-column: span 6; position:relative; overflow:hidden;
  border:1px solid #e5e7eb; border-radius:12px; background:#fff;
  box-shadow:0 10px 24px rgba(0,0,0,.05);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
@media (max-width: 720px){ .p-card{ grid-column: span 12; } }
.p-card::after{
  content:""; position:absolute; inset:-2px; pointer-events:none;
  transform:translateX(-120%);
  background:linear-gradient(115deg,rgba(255,255,255,0) 30%,rgba(255,255,255,.38) 50%,rgba(255,255,255,0) 70%);
  mix-blend-mode:screen; opacity:.26;
}
.p-card:hover{ transform:translateY(-2px) scale(1.01); box-shadow:0 20px 46px rgba(15,23,42,.12), 0 6px 14px rgba(15,23,42,.08); border-color:#e9eff3; background:#fbfdfc; }
.p-card:hover::after{ animation: blog-card-sweep 1.45s ease; }
@keyframes blog-card-sweep{ to{ transform:translateX(120%);} }

.p-media{ display:block; position:relative; height:220px; background:#cbd5e1; overflow:hidden; }
.p-media img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transform:scale(1); transition:transform .45s cubic-bezier(.22,.61,.36,1); }
.p-card:hover .p-media img{ transform:scale(1.08); }
.p-media::before{ content:""; position:absolute; inset:0; background:linear-gradient(to bottom, rgba(0,0,0,.12), rgba(0,0,0,0) 40%); z-index:1; }

/* badges */
.badge{
  position:absolute; z-index:2; top:10px; left:10px;
  display:inline-flex; align-items:center; gap:6px;
  background:#0b3d1b; color:#eafff0; padding:6px 10px; border-radius:999px;
  font-size:12px; font-weight:800; border:1px solid rgba(255,255,255,.18);
}
.badge svg{ width:14px; height:14px; }
.badge--time{ left:auto; right:10px; background:#0f172a; color:#fff; }

/* content */
.p-content{ padding:14px; }
.p-meta{ display:flex; align-items:center; gap:8px; color:#64748b; font-size:12px; }
.chip{
  display:inline-flex; align-items:center; gap:6px; background:#e8f5ee; color:#065f46;
  border:1px solid #b7e7cf; font-weight:800; padding:4px 8px; border-radius:999px;
}
.chip svg{ width:14px; height:14px; }
.dot{ width:4px; height:4px; background:#94a3b8; border-radius:50%; display:inline-block; }
.p-meta time{ display:inline-flex; align-items:center; gap:6px; }
.p-meta time svg{ width:14px; height:14px; color:#64748b; }

.p-title{ margin:8px 0 6px; font-size:20px; line-height:1.25; font-weight:900; }
.p-title a{ color:#0f172a; text-decoration:none; }
.p-title a:hover{ text-decoration:underline; }

.p-excerpt{ margin:0 0 10px; color:#475569; }
.p-foot{ display:flex; align-items:center; justify-content:space-between; gap:12px; color:#64748b; }
.p-foot .author{ white-space:nowrap; display:inline-flex; align-items:center; gap:6px; }
.p-foot .author svg{ width:14px; height:14px; }
.p-foot .read{ display:inline-flex; align-items:center; gap:8px; font-weight:800; color:#0b3d1b; text-decoration:none; }
.p-foot .read svg{ width:16px; height:16px; }
.p-foot .read:hover{ text-decoration:underline; }

/* ===== SIDE CARDS ===== */
.side-card{ border:1px solid #e5e7eb; border-radius:12px; padding:14px; background:#fff; box-shadow:0 10px 24px rgba(0,0,0,.05); position:relative; overflow:hidden; }
.side-card + .side-card{ margin-top:16px; }
.side-card h3{ margin:0 0 8px; color:#0f172a; font-weight:900; font-size:16px; display:flex; align-items:center; gap:8px; }
.side-card .hd-ico{ width:18px; height:18px; color:#0b3d1b; }

/* categories */
.cats ul{ margin:0; padding:0; list-style:none; }
.cats li{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:10px 4px; border-bottom:1px dashed #edf2f7; font-weight:700;
}
.cats li:last-child{ border-bottom:0; }
.cats a{ color:#0b3d1b; text-decoration:none; transition:color .15s ease; }
.cats a.is-active{ color:#065f46; }
.cats a:hover{ text-decoration:underline; }
.count{
  display:inline-grid; place-items:center; min-width:22px; height:22px; padding:0 8px;
  font-size:12px; border-radius:999px; background:#eef3ef; color:#0f3d20; border:1px solid #e1e7e3;
}

/* subscribe */
.sub p{ margin:6px 0 10px; color:#475569; }
.sub-form{ display:grid; gap:8px; }
.sub-form input{ width:100%; border:1px solid #d1d5db; border-radius:10px; padding:10px 12px; font:inherit; }
.sub-form .btn{ justify-content:center; }
.sub small{ display:block; margin-top:8px; color:#94a3b8; }

/* Popular tags */
.tags .tag-list{ display:flex; flex-wrap:wrap; gap:8px; }
.tags .chip{
  display:inline-flex; align-items:center; gap:6px; padding:6px 10px;
  background:#f1f8f4; color:#0b3d1b; border:1px solid #d6e9df; border-radius:999px;
  font-weight:800; font-size:12.5px; position:relative; overflow:hidden;
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.tags .chip svg{ width:14px; height:14px; color:#0b3d1b; }
.tags .chip em{ font-style:normal; opacity:.6; margin-left:2px; }
.tags .chip::after{
  content:""; position:absolute; inset:-2px; transform:translateX(-120%);
  background:linear-gradient(115deg,rgba(255,255,255,0) 30%,rgba(255,255,255,.55) 50%,rgba(255,255,255,0) 70%);
  mix-blend-mode:screen; opacity:.45; pointer-events:none;
}
.tags .chip:hover{ transform:translateY(-1px); box-shadow:0 8px 18px rgba(15,23,42,.10); background:#ffffff; border-color:#bedfd1; }
.tags .chip:hover::after{ animation: tag-sweep 1.25s ease; }
@keyframes tag-sweep{ to{ transform:translateX(120%);} }
.tags .chip.is-active{ background:#0b3d1b; color:#eafff0; border-color:#0b3d1b; }
.tags .chip.is-active svg{ color:#eafff0; }

/* ===== BLOG SIDE CTA (GREEN) — scoped so it can't touch the topbar CTA ===== */
.blog-side .cta{
  background:linear-gradient(180deg,#ecfdf5 0%, #dcfce7 100%);
  border-color:#86efac;
}
.blog-side .cta::before{
  content:""; position:absolute; inset:-2px; transform:translateX(-120%);
  background:linear-gradient(115deg,rgba(255,255,255,0) 30%,rgba(255,255,255,.55) 50%,rgba(255,255,255,0) 70%);
  mix-blend-mode:screen; opacity:.25; pointer-events:none;
}
.blog-side .cta:hover::before{ animation: blog-card-sweep 1.45s ease; }

/* Stacked layout inside the side CTA */
.blog-side .cta__content{ display:flex; flex-direction:column; align-items:stretch; gap:12px; text-align:center; }
.blog-side .cta__text h3{ margin:0 0 4px; color:#0f172a; font-weight:900; font-size:16px; }
.blog-side .cta__text p{ margin:0; color:#475569; }

/* ===== SHARED BUTTONS (SCOPED TO BLOG ONLY) ===== */
.blog-hero .btn,
.blog-body .btn,
.blog-side .btn{
  position:relative; overflow:hidden;
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  border:1px solid transparent; border-radius:10px;
  padding:10px 14px; font-weight:800; text-decoration:none !important;
  transition: transform .08s ease, box-shadow .18s ease, filter .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.blog-hero .btn svg,
.blog-body .btn svg,
.blog-side .btn svg{ width:18px; height:18px; }

.blog-hero .btn::before,
.blog-body .btn::before,
.blog-side .btn::before{
  content:""; pointer-events:none; position:absolute; inset:-2px;
  transform: translateX(-120%);
  background: linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 70%);
  mix-blend-mode:screen; opacity:.60;
}
.blog-hero .btn:hover::before,
.blog-body .btn:hover::before,
.blog-side .btn:hover::before{ animation: blog-card-sweep 1.35s ease; }

/* Green primary */
.blog-hero .btn--primary,
.blog-body .btn--primary,
.blog-side .btn--primary{
  background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
  border-color:#166534; color:#fff;
  box-shadow: 0 10px 18px rgba(22,163,74,.22), inset 0 -2px 0 rgba(0,0,0,.10);
}
.blog-hero .btn--primary:hover,
.blog-body .btn--primary:hover,
.blog-side .btn--primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(34,197,94,.18),
              0 14px 28px rgba(22,163,74,.32),
              inset 0 -2px 0 rgba(0,0,0,.10);
}

/* Orange call hover (kept for other uses) */
.blog-hero .btn--call:hover,
.blog-body .btn--call:hover,
.blog-side .btn--call:hover{
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(249,115,22,.18),
              0 14px 28px rgba(234,88,12,.36),
              inset 0 -2px 0 rgba(0,0,0,.10);
}

/* Make buttons in side CTA full width */
.blog-side .side-card.cta .btn{ width:100%; }

/* === 10% VISUAL SHRINK (exclude article cards & pictures) === */
/* Scale hero text */
.blog-hero .blog-hero__inner{
  transform: scale(.9);
  transform-origin: top center;
}

/* Scale main content EXCEPT the article cards/grids */
.blog-body .blog-main > *:not(.feat-grid):not(#articleList){
  transform: scale(.9);
  transform-origin: top left;
}

/* Scale the right sidebar blocks (categories, subscribe, tags, CTA) */
.blog-body .blog-side > *{
  transform: scale(.9);
  transform-origin: top right;
}

/* Ensure article cards & their media stay 100% (no shrink) */
.feat-grid,
#articleList,
.p-card,
.p-card .p-media,
.p-card .p-media img{
  transform: none !important;
}
