/* =========================================================
   Zam Zam Estate Blog
   - Keeps the BLOG LISTING / CARDS intact
   - Improves ONLY the single article layout and typography
   ========================================================= */

/* ---------- BLOG LISTING / CARDS: KEEP ORIGINAL ---------- */
.blog-hero{
  background:linear-gradient(90deg,rgba(5,23,32,.96),rgba(5,23,32,.68)),
  url('/assets/images/banner-03.jpg') center/cover;
  color:#fff;
  padding:82px 0;
}
.blog-hero h1{
  font-size:clamp(38px,5vw,60px);
  margin:8px 0 12px;
}
.blog-hero p{
  max-width:720px;
  color:#d6e4ea;
}
.blog-wrap{
  padding:70px 0;
}
.blog-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}
.blog-card{
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
}
.blog-card img{
  width:100%;
  aspect-ratio:16/10;
  object-fit:cover;
  display:block;
}
.blog-card-body{
  padding:20px;
}
.blog-card .cat{
  color:var(--brand);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
}
.blog-card h2{
  font-size:20px;
  line-height:1.3;
  margin:8px 0 10px;
}
.blog-card p{
  color:var(--muted);
  font-size:14px;
  line-height:1.65;
  margin:0 0 12px;
}
.blog-card a.read{
  color:var(--brand);
  font-weight:800;
}
.empty{
  padding:40px;
  border:1px dashed var(--line);
  border-radius:16px;
  text-align:center;
}

@media(max-width:900px){
  .blog-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
  .blog-grid{grid-template-columns:1fr}
}

/* ---------- SINGLE POST ONLY ---------- */
.blog-single-page{
  background:linear-gradient(180deg,#f7fbfe 0,#ffffff 430px);
  padding-bottom:80px;
}

.blog-single-page .blog-shell{
  max-width:1180px;
  margin:0 auto;
  padding:30px 20px 0;
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:38px;
  align-items:start;
}

.blog-single-page .blog-breadcrumb{
  display:flex;
  gap:9px;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom:28px;
  font-size:14px;
  color:#168bd0;
}
.blog-single-page .blog-breadcrumb a{
  color:#168bd0;
  text-decoration:none;
  font-weight:700;
}

.blog-single-page .category-badge{
  display:inline-flex;
  align-items:center;
  padding:7px 14px;
  margin-bottom:15px;
  border-radius:999px;
  background:#dff2ff;
  color:#087fc3;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.blog-single-page .article-title{
  max-width:900px;
  margin:0 0 18px !important;
  color:#082d45;
  font-size:clamp(36px,4.1vw,54px);
  line-height:1.09;
  letter-spacing:-.035em;
}

.blog-single-page .article-byline{
  display:flex;
  flex-wrap:wrap;
  gap:12px 22px;
  margin:0 0 28px;
  color:#314a5f;
  font-size:14px;
}
.blog-single-page .article-byline span{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.blog-single-page .article-byline i{
  color:#0a9be7;
}

.blog-single-page .article-featured-image{
  width:100%;
  max-height:500px;
  object-fit:cover;
  display:block;
  margin:0 0 30px;
  border-radius:18px;
  box-shadow:0 10px 30px rgba(8,45,69,.08);
}

/* ---------- ARTICLE CONTENT STRUCTURE ---------- */
.blog-single-page .article-content{
  color:#203447;
  font-size:17px;
  line-height:1.78;
}

.blog-single-page .article-content > *:first-child{
  margin-top:0 !important;
}

.blog-single-page .article-content p{
  margin:0 0 20px !important;
  padding:0 !important;
}

.blog-single-page .article-content h2{
  position:relative;
  margin:42px 0 14px !important;
  padding:0 0 0 0 !important;
  color:#0a3350;
  font-size:30px;
  line-height:1.22;
  font-weight:800;
  letter-spacing:-.02em;
}

.blog-single-page .article-content h2::after{
  content:"";
  display:block;
  width:54px;
  height:3px;
  margin-top:10px;
  border-radius:3px;
  background:#0b9ee8;
}

.blog-single-page .article-content h3{
  margin:30px 0 12px !important;
  color:#123e5b;
  font-size:23px;
  line-height:1.3;
  font-weight:800;
}

.blog-single-page .article-content h4{
  margin:24px 0 10px !important;
  color:#16445f;
  font-size:19px;
  line-height:1.35;
  font-weight:800;
}

/* Bullets / numbered lists — strong selectors to override theme resets */
.blog-single-page .article-content ul{
  display:block !important;
  list-style-type:disc !important;
  list-style-position:outside !important;
  margin:14px 0 26px 0 !important;
  padding-left:32px !important;
}

.blog-single-page .article-content ol{
  display:block !important;
  list-style-type:decimal !important;
  list-style-position:outside !important;
  margin:14px 0 26px 0 !important;
  padding-left:34px !important;
}

.blog-single-page .article-content ul > li,
.blog-single-page .article-content ol > li{
  display:list-item !important;
  float:none !important;
  width:auto !important;
  list-style:inherit !important;
  margin:0 0 10px !important;
  padding:0 0 0 5px !important;
  line-height:1.7 !important;
}

.blog-single-page .article-content ul > li::marker,
.blog-single-page .article-content ol > li::marker{
  color:#0b9ee8;
  font-weight:800;
  font-size:1.08em;
}

/* Give a clean panel to lists that immediately follow a heading */
.blog-single-page .article-content h3 + ul,
.blog-single-page .article-content h2 + ul{
  padding:17px 22px 17px 43px !important;
  border-radius:14px;
  background:#eef8ff;
  border:1px solid #d7efff;
}

.blog-single-page .article-content strong{
  color:#102f49;
  font-weight:800;
}

.blog-single-page .article-content a{
  color:#087fc3;
  text-decoration:underline;
  text-underline-offset:3px;
}

.blog-single-page .article-content blockquote{
  margin:28px 0 !important;
  padding:20px 23px !important;
  background:#f2f8fc;
  border-left:4px solid #0b9ee8;
  border-radius:0 12px 12px 0;
  color:#274157;
}

.blog-single-page .article-content img{
  display:block;
  max-width:100%;
  height:auto;
  margin:28px auto !important;
  border-radius:14px;
}

.blog-single-page .article-content hr{
  margin:38px 0 !important;
  border:0;
  border-top:1px solid #dce7ee;
}

/* Tables */
.blog-single-page .article-content table{
  width:100%;
  border-collapse:collapse;
  margin:26px 0 !important;
  font-size:15px;
}
.blog-single-page .article-content th,
.blog-single-page .article-content td{
  padding:12px 14px;
  border:1px solid #dce7ee;
  text-align:left;
}
.blog-single-page .article-content th{
  background:#eef6fa;
  color:#0a3350;
}

/* ---------- BOTTOM CTA ---------- */
.blog-single-page .article-bottom-cta{
  display:grid;
  grid-template-columns:58px 1fr auto;
  gap:17px;
  align-items:center;
  margin-top:44px;
  padding:20px 22px;
  border:1px solid #dbe7ee;
  border-radius:14px;
  background:linear-gradient(135deg,#f0f7fb,#eaf4f9);
}
.blog-single-page .article-bottom-cta-icon{
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  color:#0b3c5d;
  font-size:29px;
}
.blog-single-page .article-bottom-cta-copy{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.blog-single-page .article-bottom-cta-copy strong{
  color:#0a2e49;
  font-size:16px;
}
.blog-single-page .article-bottom-cta-copy span{
  color:#607487;
  font-size:13px;
}
.blog-single-page .article-bottom-cta > a{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  min-width:130px;
  padding:13px 20px;
  border-radius:11px;
  background:#082d45;
  color:#fff;
  text-decoration:none;
  font-weight:800;
}

/* ---------- SIDEBAR ---------- */
.blog-single-page .blog-sidebar{
  display:flex;
  flex-direction:column;
  gap:20px;
  position:sticky;
  top:105px;
}

.blog-single-page .sidebar-card{
  padding:19px;
  border:1px solid #e0e9ef;
  border-radius:15px;
  background:#fff;
  box-shadow:0 9px 28px rgba(8,45,69,.05);
}

.blog-single-page .sidebar-card h2{
  margin:0 0 15px !important;
  color:#0a2e49;
  font-size:18px;
  line-height:1.25;
}

.blog-single-page .blog-search{
  display:flex;
  border:1px solid #d8e3ea;
  border-radius:10px;
  overflow:hidden;
  background:#f9fbfd;
}
.blog-single-page .blog-search input{
  width:100%;
  padding:12px 13px;
  border:0;
  outline:0;
  background:transparent;
  font:inherit;
}
.blog-single-page .blog-search button{
  width:44px;
  border:0;
  background:transparent;
  color:#0b4a70;
}

.blog-single-page .recent-posts{
  display:flex;
  flex-direction:column;
  gap:13px;
}
.blog-single-page .recent-post-item{
  display:grid;
  grid-template-columns:70px 1fr;
  gap:11px;
  text-decoration:none;
}
.blog-single-page .recent-post-item img{
  width:70px;
  height:58px;
  object-fit:cover;
  border-radius:9px;
}
.blog-single-page .recent-post-item strong{
  display:block;
  color:#102f49;
  font-size:13px;
  line-height:1.35;
}
.blog-single-page .recent-post-item small{
  display:block;
  margin-top:5px;
  color:#758596;
  font-size:11px;
}

.blog-single-page .category-list{
  display:flex;
  flex-direction:column;
}
.blog-single-page .category-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  min-height:42px;
  padding:0 10px;
  border-bottom:1px solid #edf2f5;
  color:#193650;
  font-size:14px;
}
.blog-single-page .category-row b{
  display:grid;
  place-items:center;
  min-width:27px;
  height:25px;
  padding:0 7px;
  border-radius:7px;
  background:#eef3f6;
  color:#31546d;
  font-size:12px;
}
.blog-single-page .category-row.is-active{
  margin:0 -3px;
  padding-left:13px;
  border-left:4px solid #109cf1;
  border-radius:7px;
  background:#edf8ff;
  color:#087ac0;
}
.blog-single-page .category-row.is-active b{
  background:#109cf1;
  color:#fff;
}

.blog-single-page .assistance-card p{
  margin:5px 0 0 !important;
  color:#617486;
  font-size:13px;
  line-height:1.5;
}
.blog-single-page .assist-heading{
  display:grid;
  grid-template-columns:44px 1fr;
  gap:12px;
}
.blog-single-page .assist-icon{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  color:#0a3554;
  font-size:24px;
}
.blog-single-page .assist-button{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  margin-top:17px;
  padding:13px;
  border-radius:11px;
  background:#082d45;
  color:#fff;
  text-decoration:none;
  font-weight:800;
}

/* ---------- RESPONSIVE ---------- */
@media(max-width:980px){
  .blog-single-page .blog-shell{
    grid-template-columns:1fr;
  }
  .blog-single-page .blog-sidebar{
    position:static;
    display:grid;
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:700px){
  .blog-single-page .blog-shell{
    padding:22px 14px 0;
  }
  .blog-single-page .article-title{
    font-size:34px;
  }
  .blog-single-page .article-content{
    font-size:16.5px;
    line-height:1.72;
  }
  .blog-single-page .article-content h2{
    font-size:25px;
    margin-top:34px !important;
  }
  .blog-single-page .article-content h3{
    font-size:21px;
  }
  .blog-single-page .blog-sidebar{
    grid-template-columns:1fr;
  }
  .blog-single-page .article-bottom-cta{
    grid-template-columns:48px 1fr;
  }
  .blog-single-page .article-bottom-cta > a{
    grid-column:1/-1;
    width:100%;
  }
}