/* ============================================================
   FORCE WHITE BACKGROUND (REMOVE ANY DARK BLEED)
============================================================ */

body,
.single-blog,
.home-main,
.home-grid,
.blog-wrapper{
  background:#ffffff !important;
}

/* Remove theme max width restrictions */

body.single-post .site,
body.single-post .container,
body.single-post .content-area,
body.single-post .wrap,
body.single-post #page{
  max-width:100% !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
  background:#ffffff !important;
}

/* ============================================================
   HERO SECTION (MATCH ARCHIVE STYLE)
============================================================ */

.blog-hero{
  padding:60px 20px;
  text-align:center;
  background:#ffffff;
  border-bottom:1px solid #e5e7eb;
}

.blog-hero h1{
  font-size:32px;
  font-weight:900;
  color:#1A3552;
  margin-bottom:8px;
}

.blog-meta{
  color:#64748b;
  font-size:13px;
}

/* ============================================================
   EDGE TO EDGE GRID (MATCH DIRECTORY)
============================================================ */

.blog-container{
  width:100%;
  max-width:100%;
  padding:40px 40px 80px;
}

.blog-grid{
  width:100%;
  display:grid;
  grid-template-columns: minmax(0,1fr) 320px;
  gap:40px;
  align-items:start;
}

/* ============================================================
   LEFT CONTENT CARD (MATCH BLOG CARD STYLE)
============================================================ */

.blog-content{
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:40px;
  box-shadow:0 10px 26px rgba(2,6,23,.08);
}

/* Featured Image */

.blog-featured-image img{
  width:100%;
  border-radius:12px;
  margin-bottom:25px;
}

/* Typography */

.blog-content p{
  font-size:15px;
  line-height:1.75;
  color:#334155;
  margin-bottom:18px;
}

.blog-content h2,
.blog-content h3{
  font-size:20px;
  font-weight:800;
  color:#1A3552;
  margin:30px 0 14px;
}

/* Lists */

.blog-content ul{
  padding-left:20px;
  margin-bottom:20px;
}

.blog-content li{
  margin-bottom:8px;
}

/* ============================================================
   POST NAVIGATION (MATCH CARD STYLE)
============================================================ */

.blog-post-nav{
  margin-top:50px;
  display:flex;
  justify-content:space-between;
  gap:20px;
}

.blog-post-nav a{
  flex:1;
  padding:16px;
  border-radius:14px;
  border:1px solid #e5e7eb;
  background:#ffffff;
  text-decoration:none;
  font-size:13px;
  font-weight:700;
  color:#1A3552;
  text-align:center;
  transition:.2s ease;
}

.blog-post-nav a:hover{
  background:#f1f5f9;
  transform:translateY(-2px);
}

/* ============================================================
   RIGHT SIDEBAR (MATCH SITE SIDEBAR)
============================================================ */

.blog-sidebar{
  position:sticky;
  top:100px;
  align-self:start;
}

/* ============================================================
   MOBILE RESPONSIVE
============================================================ */

@media(max-width:1100px){

  .blog-grid{
    grid-template-columns:1fr;
  }

  .blog-sidebar{
    position:relative;
    top:auto;
    margin-top:40px;
  }

  .blog-container{
    padding:30px 20px 60px;
  }

  .blog-content{
    padding:30px;
  }

  .blog-hero h1{
    font-size:24px;
  }
}

@media(max-width:640px){

  .blog-container{
    padding:20px 16px 50px;
  }

  .blog-content{
    padding:22px;
  }

  .blog-post-nav{
    flex-direction:column;
  }
}
/* ============================================================
   HERO WITH FEATURED IMAGE
============================================================ */

.blog-hero{
  position:relative;
  width:100%;
  min-height:420px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#ffffff;
  overflow:hidden;
}

.blog-hero-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

.blog-hero-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.blog-hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    180deg,
    rgba(0,0,0,.55),
    rgba(0,0,0,.65)
  );
}

.blog-hero-content{
  position:relative;
  z-index:2;
  max-width:900px;
  padding:40px 20px;
}

.blog-hero-content h1{
  font-size:38px;
  font-weight:900;
  margin-bottom:12px;
  color:#ffffff;
}

.blog-hero .blog-meta{
  color:rgba(255,255,255,.85);
  font-size:14px;
}