/* ===== BLOG-SPECIFIC STYLES ===== */
/* Imports base styles from ../style.css */

/* ---- Blog Hero ---- */
.blog-hero {
  padding: clamp(110px,15vw,148px) 0 clamp(48px,6vw,72px);
  background: var(--gh);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.042) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .4;
  pointer-events: none;
}
.blog-hero::after {
  content: '';
  position: absolute;
  top: -90px; right: -70px;
  width: clamp(380px,54vw,720px);
  height: clamp(380px,54vw,720px);
  background: radial-gradient(ellipse at 58% 38%, rgba(190,255,0,.17) 0%, rgba(100,220,120,.12) 34%, transparent 64%);
  pointer-events: none;
}
.blog-hero-inner { position: relative; z-index: 1; }
.blog-hero h1 { color: #fff; margin-bottom: clamp(10px,1.5vw,14px); }
.blog-hero p  { color: rgba(255,255,255,.82); font-size: clamp(.92rem,1.4vw,1.07rem); max-width: 560px; margin: 0 auto; }

/* ---- Search Bar ---- */
.blog-search-wrap {
  margin-top: clamp(24px,3.5vw,36px);
  display: flex;
  justify-content: center;
}
.blog-search {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  width: min(480px, 90vw);
}
.blog-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: .92rem;
  font-family: 'Roboto', sans-serif;
}
.blog-search input::placeholder { color: rgba(255,255,255,.5); }
.blog-search button {
  background: var(--accent);
  border: none;
  border-radius: 999px;
  padding: 9px 20px;
  font-size: .85rem;
  font-weight: 700;
  color: #1A2B1A;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  transition: filter .2s;
  white-space: nowrap;
}
.blog-search button:hover { filter: brightness(1.08); }

/* ---- Category Filter ---- */
.blog-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: clamp(32px,5vw,52px);
  padding-top: clamp(28px,4vw,40px);
}
.blog-cat-btn {
  padding: 7px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--card-b);
  background: var(--bg);
  color: var(--tm);
  font-size: .83rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  transition: all .22s ease;
}
.blog-cat-btn:hover,
.blog-cat-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* ---- Post Grid ---- */
.blog-section {
  padding: clamp(48px,7vw,80px) 0 clamp(60px,8vw,100px);
  background: var(--bg2);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px,2.8vw,32px);
}
@media (max-width: 960px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---- Post Card ---- */
.blog-card {
  background: var(--card);
  border-radius: var(--rl);
  border: 1px solid var(--card-b);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--tr), box-shadow var(--tr);
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(100,165,73,.18);
}
.blog-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #1f6b49 0%, #246e4a 100%);
}
.blog-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--gg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .18;
}
.blog-card-body {
  padding: clamp(18px,2.4vw,26px);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.blog-card-cat {
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-d);
  background: rgba(100,165,73,.1);
  border: 1px solid rgba(100,165,73,.22);
  border-radius: 100px;
  padding: 3px 10px;
}
.blog-card-date {
  font-size: .76rem;
  color: #94A3B8;
}
.blog-card h3 {
  font-size: clamp(.97rem,1.4vw,1.12rem);
  font-weight: 700;
  color: var(--t);
  margin-bottom: 8px;
  line-height: 1.35;
}
.blog-card p {
  font-size: clamp(.82rem,1vw,.88rem);
  color: var(--tm);
  line-height: 1.72;
  flex: 1;
}
.blog-card-read {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .83rem;
  font-weight: 700;
  color: var(--green-d);
  transition: gap .2s;
}
.blog-card:hover .blog-card-read { gap: 10px; }

/* ---- Featured Post ---- */
.blog-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
}
.blog-card--featured .blog-card-img-wrap {
  flex-shrink: 0;
  width: 44%;
  overflow: hidden;
  border-radius: var(--rl) 0 0 var(--rl);
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card--featured .blog-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
}
.blog-card--featured .blog-card-img-placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
}
.blog-card--featured .blog-card-body {
  padding: clamp(24px,3.5vw,40px);
  justify-content: center;
}
.blog-card--featured h3 {
  font-size: clamp(1.15rem,2.2vw,1.55rem);
}
.blog-card--featured p {
  font-size: clamp(.86rem,1.1vw,.96rem);
}
@media (max-width: 720px) {
  .blog-card--featured { flex-direction: column; }
  .blog-card--featured .blog-card-img-wrap { width: 100%; border-radius: var(--rl) var(--rl) 0 0; }
  .blog-card--featured .blog-card-img { width: 100%; height: auto; }
  .blog-card--featured .blog-card-img-placeholder { aspect-ratio: 16/9; height: auto; }
}

/* ---- Pagination ---- */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: clamp(40px,6vw,64px);
}
.blog-pg-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--card-b);
  background: var(--card);
  color: var(--tm);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  transition: all .22s;
  display: flex; align-items: center; justify-content: center;
}
.blog-pg-btn:hover,
.blog-pg-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.blog-pg-btn:disabled { opacity: .38; cursor: not-allowed; }

/* ---- Single Post Page ---- */
.post-hero { padding: clamp(110px,14vw,144px) 0 clamp(40px,5vw,60px); background: var(--gh); position: relative; overflow: hidden; }
.post-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.042) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .4;
  pointer-events: none;
}
.post-hero-inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }
.post-hero-meta { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(14px,2vw,20px); flex-wrap: wrap; }
.post-hero h1 { color: #fff; margin-bottom: clamp(14px,2vw,20px); }
.post-hero-desc { color: rgba(255,255,255,.82); font-size: clamp(.92rem,1.4vw,1.06rem); line-height: 1.78; }
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .83rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  margin-bottom: clamp(20px,3vw,28px);
  transition: color .2s;
  text-decoration: none;
}
.post-back:hover { color: #fff; }

.post-body-section { padding: clamp(48px,7vw,80px) 0 clamp(60px,8vw,100px); background: var(--bg2); }
.post-layout { display: grid; grid-template-columns: 1fr 300px; gap: clamp(28px,4vw,52px); align-items: start; max-width: 1100px; margin: 0 auto; }
@media (max-width: 900px) { .post-layout { grid-template-columns: 1fr; } }

.post-content {
  background: var(--card);
  border-radius: var(--rl);
  border: 1px solid var(--card-b);
  padding: clamp(28px,4vw,52px);
}
.post-content h2 { font-size: clamp(1.15rem,2vw,1.45rem); color: var(--t); margin: clamp(28px,4vw,40px) 0 14px; }
.post-content h3 { font-size: clamp(1rem,1.6vw,1.18rem); color: var(--t); margin: clamp(20px,3vw,30px) 0 10px; }
.post-content p  { color: var(--tm); line-height: 1.82; margin-bottom: 18px; font-size: clamp(.88rem,1.1vw,.97rem); }
.post-content ul, .post-content ol { padding-left: 22px; color: var(--tm); line-height: 1.82; margin-bottom: 18px; font-size: clamp(.88rem,1.1vw,.97rem); }
.post-content li { margin-bottom: 6px; }
.post-content strong { color: var(--t); }
.post-content blockquote {
  border-left: 3px solid var(--green);
  padding: 12px 20px;
  margin: 24px 0;
  background: rgba(100,165,73,.06);
  border-radius: 0 var(--r) var(--r) 0;
  color: var(--tm);
  font-style: italic;
}
.post-content .post-callout {
  background: rgba(100,165,73,.08);
  border: 1px solid rgba(100,165,73,.25);
  border-radius: var(--r);
  padding: clamp(16px,2.5vw,24px);
  margin: 24px 0;
}
.post-content .post-callout p { margin-bottom: 0; }

/* Sidebar */
.post-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card {
  background: var(--card);
  border-radius: var(--rl);
  border: 1px solid var(--card-b);
  padding: clamp(18px,2.5vw,26px);
}
.sidebar-card h4 { font-size: .83rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tm); margin-bottom: 14px; }
.sidebar-card ul { list-style: none; padding: 0; }
.sidebar-card ul li { border-bottom: 1px solid var(--card-b); padding: 8px 0; }
.sidebar-card ul li:last-child { border-bottom: none; }
.sidebar-card ul li a { font-size: .86rem; color: var(--tm); transition: color .2s; }
.sidebar-card ul li a:hover { color: var(--green-d); }
.sidebar-cta { background: var(--gg); border: none; }
.sidebar-cta h4 { color: #1A2B1A; }
.sidebar-cta p { font-size: .86rem; color: #2a4a20; line-height: 1.65; margin-bottom: 14px; }

/* Responsive nav tweaks for blog pages */
.blog-page-nav .nav-links a[href="../"] { pointer-events: auto; }
