/* blog.css — blog page only (uses shared.css for tokens/nav/footer) */
body { margin: 0; }

/* Hero */
.blog-hero{
  background: var(--foam);
  padding: 64px 0 44px;
  text-align: center;
  border-bottom: 1px solid rgba(11,61,107,0.08);
}
.blog-hero .section-tag{ margin: 0 auto 10px; }
.blog-hero h1{
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  color: var(--ocean);
  letter-spacing: -0.6px;
  margin: 0 0 10px;
}
.blog-hero h1 em{ font-style: italic; color: #a84d00; }
.blog-hero-sub{
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* Section */
.blog-section{
  padding: 44px 0 70px;
  background: var(--white);
}

/* Grid */
.blog-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* Card */
.blog-card{
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow);
  border: 1px solid rgba(11,61,107,0.08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.blog-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 22px 55px rgba(11,61,107,0.13);
  border-color: rgba(11,61,107,0.14);
}

.blog-thumb{
  position: relative;
  height: 190px;
  overflow: hidden;
  background: var(--foam);
}
.blog-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform .35s ease;
}
.blog-card:hover .blog-thumb img{ transform: scale(1.06); }

.blog-content{
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.blog-meta{
  margin: 0;
  font-size: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.blog-title{
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.3px;
  color: var(--ocean);
}
.blog-excerpt{
  margin: 0;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}
.blog-read{
  margin-top: auto;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ocean);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* CTA */
.blog-cta{
  margin-top: 34px;
  background: linear-gradient(135deg, rgba(11,61,107,0.06), rgba(247,127,58,0.08));
  border: 1px solid rgba(11,61,107,0.08);
  border-radius: 16px;
  overflow: hidden;
}
.blog-cta-inner{
  padding: 22px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.blog-cta h2{
  margin: 0 0 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  color: var(--ocean);
  letter-spacing: -0.3px;
}
.blog-cta p{
  margin: 0;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 680px;
}

/* Responsive */
@media (max-width: 980px){
  .blog-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  /* Fix: match the same left/right padding feeling as footer/other sections */
  .blog-hero .container,
  .blog-section .container{
    padding-left: 20px;
    padding-right: 20px;
  }

  .blog-hero{ padding: 52px 0 38px; }
  .blog-grid{ grid-template-columns: 1fr; }
  .blog-thumb{ height: 180px; }
  .blog-cta-inner{ flex-direction: column; align-items: flex-start; }
}

.blog-card:focus-visible{
  outline: 3px solid rgba(11,61,107,0.28);
  outline-offset: 3px;
}

/* CTA button */
.btn-primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  padding: 12px 18px;
  min-height: 44px;
  border-radius: 10px;
  text-decoration: none;

  background: #b85500;
  color:#fff;
  font-weight: 700;
  font-size: 14px;

  box-shadow: 0 10px 26px rgba(184,85,0,0.22);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.btn-primary:hover{
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 18px 40px rgba(184,85,0,0.28);
}
.btn-primary:active{ transform: translateY(0); }

/* Make it full-width on mobile inside the CTA */
@media (max-width: 640px){
  .btn-primary{ width: 100%; }
}
