/* BLOG POST LAYOUT */

/* Hero */
.post-hero{
  background:var(--foam);
  border-bottom:1px solid rgba(11,61,107,.08);
  padding:60px 0 30px;
}

.post-title{
  font-family:Poppins,sans-serif;
  font-size:clamp(2rem,4vw,3rem);
  line-height:1.1;
  color:var(--ocean);
  margin:0 0 10px;
}

.post-sub{
  max-width:760px;
  font-size:15px;
  color:var(--text-muted);
  line-height:1.7;
  margin:0;
}

.post-meta{
  margin-top:12px;
  font-size:13px;
  color:var(--text-muted);
}

.post-hero-img{
  width:100%;
  height:auto;
  border-radius:16px;
  margin-top:18px;
  box-shadow:0 18px 50px rgba(11,61,107,.12);
  object-fit:cover;
}

.related-text{
  margin:0;
  color:var(--text-muted);
  font-size:13.5px;
  line-height:1.7;
}
.related-text a{
  font-weight:700;
}

/* Layout */
.post-wrap{ padding:50px 0 80px; }

.post-grid{
  display:grid;
  grid-template-columns:1fr 320px;
  gap:40px;
  align-items:start;
}

.article{ max-width:760px; }

/* Typography */
.article h2{
  font-family:Poppins,sans-serif;
  font-size:22px;
  color:var(--ocean);
  margin:30px 0 12px;
  letter-spacing:-.2px;
}

.article h3{
  font-family:Poppins,sans-serif;
  font-size:18px;
  color:var(--ocean);
  margin:20px 0 8px;
}

.article p{
  font-size:15px;
  line-height:1.9;
  color:var(--text-muted);
  margin:0 0 15px;
}

.article ul{
  margin:10px 0 20px 18px;
}

.article li{
  margin-bottom:6px;
  color:var(--text-muted);
  line-height:1.75;
}

/* Make links look like your site (no purple visited) */
.article a,
.article a:visited{
  color:var(--ocean);
  font-weight:800;
  text-decoration:none;
  border-bottom:1px solid rgba(11,61,107,.25);
}
.article a:hover{ border-bottom-color: rgba(11,61,107,.65); }

/* Figures */
.post-figure{
  margin:26px 0;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 14px 40px rgba(11,61,107,.12);
  border:1px solid rgba(11,61,107,.08);
  background:#fff;
}
.post-figure img{
  width:100%;
  height:auto;
  display:block;
}
.post-figure figcaption{
  font-size:13px;
  padding:10px 12px;
  background:#fff;
  color:var(--text-muted);
}
/* Table of contents */
.post-toc{
  background:#f8fbff;
  border:1px solid rgba(11,61,107,.12);
  border-radius:14px;
  padding:18px 20px;
  margin:28px 0 30px;
}

.toc-title{
  font-family:Poppins,sans-serif;
  font-size:14px;
  font-weight:700;
  color:var(--ocean);
  margin:0 0 10px;
}

.post-toc ul{
  list-style:none;
  padding:0;
  margin:0;
}

.post-toc li{
  margin:6px 0;
}

.post-toc a{
  color:var(--ocean);
  font-weight:600;
  text-decoration:none;
  border-bottom:1px solid rgba(11,61,107,.25);
}

.post-toc a:hover{
  border-bottom-color:rgba(11,61,107,.6);
}

/* PREMIUM LAYOUT 1: Split (text + image) */
.post-split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:26px;
  align-items:center;
  margin:36px 0;
  padding:18px;
  border-radius:16px;
  border:1px solid rgba(11,61,107,.10);
  background:linear-gradient(135deg, rgba(11,61,107,.03), rgba(247,127,58,.06));
}
.post-split-img img{
  width:100%;
  height:auto;
  display:block;
  border-radius:14px;
  box-shadow:0 10px 30px rgba(11,61,107,.12);
  border:1px solid rgba(11,61,107,.08);
}

/* PREMIUM LAYOUT 2: 2-up gallery */
.post-gallery{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  margin:28px 0;
}
.post-gallery img{
  width:100%;
  height:auto;
  display:block;
  border-radius:14px;
  box-shadow:0 10px 30px rgba(11,61,107,.12);
  border:1px solid rgba(11,61,107,.08);
}

/* Sidebar cards */
.side-card{
  background:#fff;
  border-radius:14px;
  border:1px solid rgba(11,61,107,.1);
  padding:18px;
  margin-bottom:16px;
}

.side-h{
  font-family:Poppins,sans-serif;
  font-size:15px;
  margin:0 0 10px;
  color:var(--ocean);
}

/* Sidebar (facts + related) */
.facts{ display:grid; gap:12px; margin-top:10px; }

.fact{
  display:grid;
  grid-template-columns: 34px 1fr;
  gap:12px;
  align-items:start;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(11,61,107,0.04);
  border: 1px solid rgba(11,61,107,0.08);
}

.fact .ico{
  width:34px; height:34px;
  display:grid; place-items:center;
  border-radius: 12px;
  background: rgba(247,127,58,0.12);
  color: var(--ocean);
  font-size: 16px;
}

.fact b{
  display:block;
  font-size: 12px;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.fact span{
  display:block;
  font-size: 14px;
  color: var(--text);
  line-height: 1.45;
}

.side-card a,
.side-card a:visited{
  color: var(--ocean);
  font-weight: 800;
  text-decoration: none;
}
.side-card a:hover{ text-decoration: underline; }

/* CTA box */
.cta-box{
  margin-top:30px;
  padding:18px;
  border-radius:14px;
  background:linear-gradient(135deg,#eef6fc,#fff);
  border:1px solid rgba(11,61,107,.1);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
}

.cta-box > div{
  flex:1 1 auto;
  min-width:0;
}

.cta-box .btn-primary{
  flex:0 0 auto;
  min-width:116px;
  white-space:nowrap;
}

/* Button (force style) */
.btn-primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 20px;
  border-radius:10px;
  background:#b85500;
  color:#fff !important;
  font-weight:800;
  font-size:14px;
  text-decoration:none !important;
  box-shadow:0 10px 26px rgba(184,85,0,.25);
  transition:all .18s ease;
}
.btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 40px rgba(184,85,0,.30);
}
.btn-primary:active{ transform:translateY(0); }

/* Breadcrumb + back link (no purple) */
.breadcrumb a,
.breadcrumb a:visited{
  color: var(--ocean);
  font-weight: 800;
  text-decoration: none;
}
.breadcrumb a:hover{ text-decoration: underline; }
.breadcrumb .dot{ color: var(--text-muted); opacity:.7; }

.lead a,
.lead a:visited{
  color: var(--ocean);
  font-weight:800;
  text-decoration:none;
  border-bottom:1px solid rgba(11,61,107,.25);
}
.lead a:hover{ border-bottom-color: rgba(11,61,107,.65); }

/* Responsive */
@media(max-width:980px){
  .post-grid{ grid-template-columns:1fr; }
}

@media(max-width:760px){
  .post-split{ grid-template-columns:1fr; }
}

@media(max-width:640px){
  .post-hero .container,
  .post-wrap .container{
    padding-left:20px;
    padding-right:20px;
  }

  .post-hero-img{
    max-height:70vh;     /* stops too-tall hero feeling */
    object-position:center;
  }

  .cta-box{ flex-direction:column; align-items:flex-start; }
  .cta-box .btn-primary{ width:100%; }
  .post-gallery{ grid-template-columns:1fr; }
}