/* =========================================================
   Happy Homes Infra — Blog styles
   Used by: index.php (blog section), blog.php, blog-*.php
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;1,9..144,400&display=swap');

:root{
  --hb-navy:#2e4072;
  --hb-navy-deep:#1b2a3d;
  --hb-gold:#c9a961;
  --hb-gold-soft:#f4ecd9;
  --hb-ink:#1f2633;
  --hb-text:#4a5263;
  --hb-muted:#8a91a0;
  --hb-line:#e6e8ee;
  --hb-bg:#f8fafc;
}

/* ---------- Shared: blog cards ---------- */
.hb-blog-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
}
.hb-card{
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--hb-line);
  box-shadow:0 10px 30px rgba(27,42,61,.06);
  display:flex;
  flex-direction:column;
  transition:transform .35s ease, box-shadow .35s ease;
}
.hb-card:hover{
  transform:translateY(-6px);
  box-shadow:0 22px 45px rgba(27,42,61,.13);
}
.hb-card-media{
  position:relative;
  display:block;
  aspect-ratio:16/10;
  overflow:hidden;
  background:var(--hb-navy-deep);
}
.hb-card-media img{
  width:100%;height:100%;
  object-fit:cover;
  transition:transform .8s cubic-bezier(.25,1,.5,1);
}
.hb-card:hover .hb-card-media img{transform:scale(1.06);}
.hb-card-cat{
  position:absolute;
  left:16px;top:16px;
  background:var(--hb-gold);
  color:var(--hb-navy-deep);
  font-size:12px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  padding:6px 12px;
  border-radius:30px;
}
.hb-card-body{
  padding:24px 24px 26px;
  display:flex;
  flex-direction:column;
  flex:1;
}
.hb-card-meta{
  display:flex;
  gap:16px;
  font-size:13px;
  color:var(--hb-muted);
  margin-bottom:12px;
}
.hb-card-meta i{color:var(--hb-gold);margin-right:4px;}
.hb-card-title{
  font-family:'Fraunces',serif;
  font-size:21px;
  font-weight:600;
  line-height:1.35;
  margin:0 0 12px;
}
.hb-card-title a{color:var(--hb-ink);text-decoration:none;transition:color .25s;}
.hb-card-title a:hover{color:var(--hb-navy);}
.hb-card-text{
  color:var(--hb-text);
  font-size:15px;
  line-height:1.7;
  margin:0 0 20px;
  flex:1;
}
.hb-read-more{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  font-size:14px;
  color:var(--hb-navy);
  text-decoration:none;
  border-bottom:2px solid var(--hb-gold);
  padding-bottom:3px;
  align-self:flex-start;
  transition:gap .25s, color .25s;
}
.hb-read-more:hover{gap:12px;color:var(--hb-navy-deep);}

/* ---------- Home page section ---------- */
.hb-home-blog{padding:60px 0 70px;background:var(--hb-bg);}
.hb-section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
  flex-wrap:wrap;
  margin-bottom:36px;
}
.hb-section-head .section-title{margin-bottom:0;}
.hb-section-head p{color:var(--hb-text);max-width:520px;margin:10px 0 0;line-height:1.7;}
.hb-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--hb-navy);
  color:#fff !important;
  padding:13px 26px;
  border-radius:40px;
  font-weight:600;
  font-size:15px;
  text-decoration:none;
  transition:background .25s, transform .25s;
}
.hb-btn:hover{background:var(--hb-navy-deep);transform:translateY(-2px);}
.hb-btn-gold{background:var(--hb-gold);color:var(--hb-navy-deep) !important;}
.hb-btn-gold:hover{background:#b8984f;}

/* ---------- Page banner (blog.php + details) ---------- */
.hb-banner{
  position:relative;
  padding:110px 0 90px;
  background-size:cover;
  background-position:center;
  color:#fff;
  isolation:isolate;
}
.hb-banner::before{
  content:'';
  position:absolute;inset:0;
  background:linear-gradient(100deg, rgba(27,42,61,.94) 0%, rgba(46,64,114,.82) 55%, rgba(27,42,61,.6) 100%);
  z-index:-1;
}
.hb-breadcrumb{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  list-style:none;
  padding:0;margin:0 0 18px;
  font-size:14px;
}
.hb-breadcrumb li{color:rgba(255,255,255,.7);}
.hb-breadcrumb li+li::before{content:'/';margin-right:8px;color:var(--hb-gold);}
.hb-breadcrumb a{color:#fff;text-decoration:none;}
.hb-breadcrumb a:hover{color:var(--hb-gold);}
.hb-banner h1{
  font-family:'Fraunces',serif;
  font-weight:600;
  font-size:clamp(30px,4.2vw,50px);
  line-height:1.18;
  color:#fff;
  margin:0;
  max-width:860px;
}
.hb-banner .hb-banner-sub{
  margin:16px 0 0;
  max-width:640px;
  color:rgba(255,255,255,.8);
  font-size:17px;
  line-height:1.7;
}
.hb-banner-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px 24px;
  margin-top:22px;
  font-size:14px;
  color:rgba(255,255,255,.85);
}
.hb-banner-meta i{color:var(--hb-gold);margin-right:6px;}
.hb-banner-meta .hb-tag{
  background:var(--hb-gold);
  color:var(--hb-navy-deep);
  font-weight:700;
  padding:4px 12px;
  border-radius:30px;
  font-size:12px;
  letter-spacing:.06em;
  text-transform:uppercase;
}

/* ---------- Blog listing page ---------- */
.hb-blog-page{padding:70px 0 80px;background:var(--hb-bg);}
.hb-featured{
  display:grid;
  grid-template-columns:1.15fr 1fr;
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--hb-line);
  box-shadow:0 14px 40px rgba(27,42,61,.08);
  margin-bottom:44px;
}
.hb-featured .hb-card-media{aspect-ratio:auto;min-height:360px;}
.hb-featured .hb-card-body{padding:40px;justify-content:center;}
.hb-featured .hb-card-title{font-size:30px;}
.hb-list-label{
  font-size:13px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--hb-navy);
  margin:0 0 20px;
  display:flex;align-items:center;gap:12px;
}
.hb-list-label::after{content:'';flex:1;height:1px;background:var(--hb-line);}

/* ---------- Article detail ---------- */
.hb-article-wrap{padding:70px 0 80px;}
.hb-article{
  color:var(--hb-text);
  font-size:17px;
  line-height:1.85;
}
.hb-article-hero{
  border-radius:16px;
  overflow:hidden;
  margin-bottom:34px;
  box-shadow:0 18px 40px rgba(27,42,61,.12);
}
.hb-article-hero img{width:100%;display:block;aspect-ratio:16/9;object-fit:cover;}
.hb-article .hb-lead{
  font-size:19px;
  color:var(--hb-ink);
  line-height:1.75;
  border-left:4px solid var(--hb-gold);
  padding-left:20px;
  margin-bottom:30px;
}
.hb-article h2{
  font-family:'Fraunces',serif;
  font-weight:600;
  font-size:28px;
  color:var(--hb-ink);
  margin:44px 0 16px;
  line-height:1.3;
}
.hb-article h3{
  font-size:20px;
  font-weight:700;
  color:var(--hb-navy);
  margin:30px 0 10px;
}
.hb-article p{margin:0 0 18px;}
.hb-article ul,.hb-article ol{margin:0 0 22px;padding-left:22px;}
.hb-article li{margin-bottom:8px;}
.hb-article li::marker{color:var(--hb-gold);font-weight:700;}
.hb-article strong{color:var(--hb-ink);}
.hb-article figure{margin:34px 0;}
.hb-article figure img{width:100%;border-radius:14px;display:block;aspect-ratio:16/9;object-fit:cover;}
.hb-article figcaption{font-size:14px;color:var(--hb-muted);margin-top:10px;text-align:center;}

.hb-callout{
  background:var(--hb-gold-soft);
  border:1px solid rgba(201,169,97,.45);
  border-radius:14px;
  padding:22px 24px;
  margin:28px 0;
}
.hb-callout h4{
  font-size:16px;
  font-weight:700;
  color:var(--hb-navy-deep);
  margin:0 0 8px;
  display:flex;align-items:center;gap:8px;
}
.hb-callout p:last-child,.hb-callout ul:last-child{margin-bottom:0;}

.hb-checklist{list-style:none;padding:0 !important;counter-reset:hbc;}
.hb-checklist li{
  position:relative;
  padding:16px 18px 16px 62px;
  background:#fff;
  border:1px solid var(--hb-line);
  border-radius:12px;
  margin-bottom:12px !important;
  counter-increment:hbc;
}
.hb-checklist li::before{
  content:counter(hbc, decimal-leading-zero);
  position:absolute;left:16px;top:15px;
  width:32px;height:32px;
  border-radius:50%;
  background:var(--hb-navy);
  color:#fff;
  font-size:13px;font-weight:700;
  display:flex;align-items:center;justify-content:center;
}

.hb-table-wrap{overflow-x:auto;margin:26px 0;border-radius:12px;border:1px solid var(--hb-line);}
.hb-table{width:100%;border-collapse:collapse;font-size:15px;min-width:620px;background:#fff;}
.hb-table th{background:var(--hb-navy);color:#fff;text-align:left;padding:14px 16px;font-weight:600;}
.hb-table td{padding:13px 16px;border-top:1px solid var(--hb-line);vertical-align:top;}
.hb-table tr:nth-child(even) td{background:#fafbfd;}
.hb-table td:first-child{font-weight:700;color:var(--hb-ink);}

.hb-share{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  border-top:1px solid var(--hb-line);
  padding-top:24px;
  margin-top:40px;
}
.hb-share span{font-weight:700;color:var(--hb-ink);margin-right:6px;}
.hb-share a{
  width:40px;height:40px;
  border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--hb-bg);
  border:1px solid var(--hb-line);
  color:var(--hb-navy);
  font-size:19px;
  text-decoration:none;
  transition:all .25s;
}
.hb-share a:hover{background:var(--hb-navy);color:#fff;border-color:var(--hb-navy);}

.hb-disclaimer{font-size:13.5px;color:var(--hb-muted);font-style:italic;margin-top:24px;}

/* Sidebar */
.hb-sidebar{position:sticky;top:110px;}
.hb-widget{
  background:#fff;
  border:1px solid var(--hb-line);
  border-radius:14px;
  padding:26px;
  margin-bottom:26px;
}
.hb-widget-title{
  font-family:'Fraunces',serif;
  font-size:20px;
  font-weight:600;
  color:var(--hb-ink);
  margin:0 0 18px;
  padding-bottom:12px;
  border-bottom:2px solid var(--hb-gold);
  display:inline-block;
}
.hb-recent{display:flex;gap:14px;align-items:center;text-decoration:none;margin-bottom:16px;}
.hb-recent:last-child{margin-bottom:0;}
.hb-recent img{width:82px;height:66px;object-fit:cover;border-radius:10px;flex-shrink:0;}
.hb-recent h5{font-size:15px;font-weight:700;color:var(--hb-ink);line-height:1.4;margin:0 0 4px;transition:color .25s;}
.hb-recent:hover h5{color:var(--hb-navy);}
.hb-recent small{color:var(--hb-muted);font-size:12.5px;}
.hb-cta{
  background:linear-gradient(140deg,var(--hb-navy-deep),var(--hb-navy));
  color:#fff;
  border:none;
}
.hb-cta .hb-widget-title{color:#fff;}
.hb-cta p{color:rgba(255,255,255,.8);font-size:15px;line-height:1.7;}
.hb-cta .hb-phone{display:flex;align-items:center;gap:10px;color:#fff;font-weight:700;font-size:18px;text-decoration:none;margin:4px 0 18px;}
.hb-cta .hb-phone i{color:var(--hb-gold);font-size:22px;}
.hb-toc{list-style:none;padding:0;margin:0;}
.hb-toc li{border-bottom:1px dashed var(--hb-line);}
.hb-toc li:last-child{border-bottom:none;}
.hb-toc a{display:block;padding:9px 0;color:var(--hb-text);text-decoration:none;font-size:15px;transition:color .25s, padding .25s;}
.hb-toc a:hover{color:var(--hb-navy);padding-left:6px;}

/* Related */
.hb-related{padding:70px 0;background:var(--hb-bg);}
.hb-blog-grid.hb-two{grid-template-columns:repeat(2,1fr);}
@media (max-width:640px){.hb-blog-grid.hb-two{grid-template-columns:1fr;}}

/* ---------- Responsive ---------- */
@media (max-width:991px){
  .hb-blog-grid{grid-template-columns:repeat(2,1fr);}
  .hb-featured{grid-template-columns:1fr;}
  .hb-featured .hb-card-media{min-height:260px;}
  .hb-featured .hb-card-body{padding:28px;}
  .hb-sidebar{position:static;margin-top:40px;}
  .hb-banner{padding:80px 0 64px;}
}
@media (max-width:640px){
  .hb-blog-grid{grid-template-columns:1fr;}
  .hb-featured .hb-card-title{font-size:24px;}
  .hb-article{font-size:16px;}
  .hb-article h2{font-size:24px;}
  .hb-checklist li{padding-left:56px;}
}
