/* =========================================================
BLOG PAGE — blog.css
Matches your HTML class names exactly:
.blog-hero, .blog-featured, .blog-grid-section, .post-card, .blog-cta, etc.
Relies on variables + base styles from main.css
========================================================= */

/* Page breathing room if navbar is fixed */
body{
  background: var(--bg);
}

/* ---------------------------
BLOG HERO
---------------------------- */
.blog-hero{
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.blog-hero-overlay{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 35%, rgba(0,0,0,.25), rgba(0,0,0,0) 55%),
    linear-gradient(90deg, rgba(0,0,0,.52), rgba(0,0,0,.16) 58%, rgba(0,0,0,.45)),
    linear-gradient(180deg, rgba(0,0,0,.50), rgba(0,0,0,.15) 45%, rgba(0,0,0,.50));
}

.blog-hero-content{
  position: relative;
  z-index: 2;
  padding: 130px 0 80px;
  max-width: 820px;
  color: #fff;
}

.blog-hero-content h1{
  font-family: var(--fontH);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin: 10px 0 14px;
}

.blog-hero-content .hero-sub{
  max-width: 65ch;
  font-size: 1.06rem;
  opacity: .95;
  margin: 0 0 18px;
}

/* Tools (search + select + reset) */
.blog-tools{
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.tool{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
}

.tool.search{
  flex: 1;
  min-width: 240px;
}

.tool .icon{
  opacity: .9;
  font-size: 1rem;
  transform: translateY(-1px);
}

.tool input,
.tool select{
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-family: var(--fontB);
  font-size: .95rem;
}

.tool input::placeholder{
  color: rgba(255,255,255,.82);
}

.tool select{
  cursor: pointer;
  min-width: 170px;
}

/* Reset button in tools */
.tool-btn{
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.26);
  background: rgba(255,255,255,.10);
  color: #fff;
  font-weight: 600;
}
.tool-btn:hover{
  background: rgba(255,255,255,.16);
}

/* ---------------------------
FEATURED POST
---------------------------- */
.blog-featured{
  padding: 70px 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,0));
}

.featured-grid{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  align-items: stretch;
}

.featured-image{
  border-radius: var(--radius2);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: block;
  min-height: 340px;
}

.featured-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .6s ease;
}
.featured-image:hover img{
  transform: scale(1.06);
}

.featured-copy{
  border-radius: var(--radius2);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 50px rgba(0,0,0,.08);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-copy h2{
  font-family: var(--fontH);
  margin: 6px 0 10px;
}

.meta{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 18px;
  flex-wrap: wrap;
}

.pill{
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(201,164,91,.35);
  background: rgba(201,164,91,.10);
  color: rgba(201,164,91,.98);
  font-size: .82rem;
  font-weight: 600;
}

.dot{
  opacity: .55;
}

/* ---------------------------
BLOG GRID
---------------------------- */
.blog-grid-section{
  padding: 70px 0 90px;
}

.blog-grid{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.post-card{
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(0,0,0,.10);
  transition: transform .18s ease, box-shadow .18s ease;
}

.post-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 26px 60px rgba(0,0,0,.14);
}

.post-media{
  display: block;
}

.post-media img{
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform .6s ease;
}

.post-card:hover .post-media img{
  transform: scale(1.04);
}

.post-body{
  padding: 16px 16px 18px;
}

.post-body h3{
  font-family: var(--fontH);
  margin: 8px 0 10px;
  line-height: 1.2;
}

.post-body h3 a:hover{
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tag{
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(201,164,91,.98);
}

.post-meta{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* ---------------------------
CTA (blog-cta)
---------------------------- */
.blog-cta{
  position: relative;
  padding: 95px 0;
  color: #fff;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.blog-cta-overlay{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.20) 58%, rgba(0,0,0,.55)),
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.20) 45%, rgba(0,0,0,.55));
}

.blog-cta-content{
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.blog-cta-content h2{
  font-family: var(--fontH);
  margin-bottom: 10px;
}

.blog-cta-content p{
  opacity: .94;
  margin: 0 auto 18px;
  max-width: 62ch;
}

/* Use your existing .hero-buttons + .btn from main.css,
but ensure spacing in this block */
.blog-cta .hero-buttons{
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

/* ---------------------------
Responsive
---------------------------- */
@media (max-width: 980px){
  .blog-hero-content{
    padding: 120px 0 70px;
  }

  .featured-grid{
    grid-template-columns: 1fr;
  }

  .featured-image{
    min-height: 280px;
  }

  .blog-grid{
    grid-template-columns: 1fr;
  }

  .post-media img{
    height: 220px;
  }
}

@media (max-width: 700px){
  /* Tools bar becomes 2 rows (clean on mobile) */
  .blog-tools{
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
  }

  .tool.search{
    grid-column: 1 / -1;
    min-width: 0;
  }

  .tool select{
    min-width: 0;
    width: 100%;
  }

  .tool{
    width: 100%;
  }

  

  .blog-cta{
    padding: 80px 0;
  }
}

/* temp override if blog does not appear below */
/* .reveal{ opacity: 1 !important; transform: none !important; } */ 

.blog-cta{
  margin-top: 120px;
}