/* ============================================================
   SUN SOL SEO — blog.css
   Blog index + article page styles
   ============================================================ */

/* ── BLOG HERO ──────────────────────────────────── */
.blog-hero {
  padding-block: 130px 80px;
  background: linear-gradient(160deg, #0e2c35 0%, #1a4a57 45%, #2a6b7c 100%);
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(200,146,42,.14) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 5% 80%, rgba(42,107,124,.35) 0%, transparent 60%);
  pointer-events: none;
}
.blog-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.blog-hero .container { position: relative; z-index: 2; max-width: 860px; }
.blog-hero .eyebrow { color: var(--sun-lt); display: block; margin-bottom: .8rem; }
.blog-hero h1 {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  font-weight: 300; line-height: 1.1;
  color: var(--white); margin-bottom: 1.2rem;
}
.blog-hero h1 em { font-style: italic; color: var(--sun-lt); }
.blog-hero p {
  font-size: clamp(.95rem, 1.3vw, 1.1rem);
  color: rgba(255,255,255,.65);
  line-height: 1.8; max-width: 600px;
}

/* ── BLOG INDEX MAIN ────────────────────────────── */
.blog-main {
  padding-block: 80px 100px;
  background: var(--white);
}

/* Featured article */
.blog-featured {
  margin-bottom: 4rem;
}
.blog-featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  border: 1px solid rgba(140,123,107,.15);
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(26,22,18,.06);
  transition: box-shadow .25s, transform .25s;
  text-decoration: none;
  color: inherit;
}
.blog-featured-card:hover { box-shadow: 0 12px 48px rgba(26,22,18,.1); transform: translateY(-3px); }
.blog-featured-img {
  overflow: hidden;
  align-self: stretch;
}
.blog-featured-img img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.blog-featured-card:hover .blog-featured-img img { transform: scale(1.04); }
.blog-featured-body {
  padding: 3rem;
  display: flex; flex-direction: column; justify-content: center;
}
.blog-cat {
  display: inline-block;
  font-size: .7rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: .85rem;
}
.blog-featured-body h2 {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 300; line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1rem;
}
.blog-featured-body p {
  font-size: .95rem; color: var(--taupe); line-height: 1.8;
  margin-bottom: 1.5rem;
}
.blog-meta {
  display: flex; align-items: center; gap: 1rem;
  font-size: .78rem; color: var(--taupe);
}
.blog-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--taupe); }
.blog-read-more {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .85rem; font-weight: 500;
  color: var(--sea); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
  margin-top: .5rem;
}
.blog-read-more:hover { border-color: var(--sea); }

/* Section divider */
.blog-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(140,123,107,.12);
}
.blog-section-header h2 {
  font-family: var(--f-display);
  font-size: 1.5rem; font-weight: 300;
  color: var(--ink);
}
.blog-section-header h2 em { font-style: italic; color: var(--sea); }

/* Article grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.blog-card {
  display: flex; flex-direction: column;
  border: 1px solid rgba(140,123,107,.15);
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(26,22,18,.04);
  text-decoration: none; color: inherit;
  transition: box-shadow .25s, transform .25s;
}
.blog-card:hover { box-shadow: 0 10px 36px rgba(26,22,18,.09); transform: translateY(-3px); }
.blog-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.blog-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body {
  padding: 1.5rem;
  display: flex; flex-direction: column;
  flex: 1;
}
.blog-card-body h3 {
  font-family: var(--f-display);
  font-size: 1.25rem; font-weight: 400; line-height: 1.3;
  color: var(--ink); margin-bottom: .75rem;
}
.blog-card-body p {
  font-size: .88rem; color: var(--taupe); line-height: 1.75;
  flex: 1; margin-bottom: 1.25rem;
}
.blog-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(140,123,107,.1);
  margin-top: auto;
}
.blog-card-footer .blog-meta { font-size: .75rem; }
.blog-arrow {
  color: var(--sea); font-size: .85rem; font-weight: 500;
  transition: transform .2s;
}
.blog-card:hover .blog-arrow { transform: translateX(4px); }

/* ── ARTICLE PAGE ───────────────────────────────── */
.article-hero {
  position: relative;
  padding-block: 130px 0;
  background: linear-gradient(160deg, #0e2c35 0%, #1a4a57 45%, #2a6b7c 100%);
  overflow: hidden;
}
.article-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 80% 30%, rgba(200,146,42,.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 5% 80%, rgba(42,107,124,.3) 0%, transparent 60%);
  pointer-events: none;
}
.article-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.article-hero-inner {
  position: relative; z-index: 2;
  max-width: 820px;
  padding-bottom: 3rem;
}
.article-breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .78rem; color: rgba(255,255,255,.5);
  margin-bottom: 1.2rem;
}
.article-breadcrumb a { color: rgba(255,255,255,.6); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--sun-lt); }
.article-breadcrumb span { color: rgba(255,255,255,.35); }
.article-hero-inner .blog-cat { color: var(--sun-lt); }
.article-hero-inner h1 {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 300; line-height: 1.1;
  color: var(--white); margin-bottom: 1.2rem;
}
.article-hero-inner h1 em { font-style: italic; color: var(--sun-lt); }
.article-hero-inner .article-deck {
  font-size: clamp(.95rem, 1.3vw, 1.1rem);
  color: rgba(255,255,255,.65);
  line-height: 1.8; max-width: 680px;
  margin-bottom: 1.5rem;
}
.article-hero-inner .blog-meta { color: rgba(255,255,255,.5); }
.article-hero-inner .blog-meta-dot { background: rgba(255,255,255,.35); }

/* Cover image bleeds below hero */
.article-cover {
  position: relative; z-index: 3;
  margin-top: -1px;
}
.article-cover img {
  width: 100%; height: 480px; object-fit: cover;
  display: block;
}

/* Article layout */
.article-layout {
  padding-block: 70px 100px;
  background: var(--white);
}
.article-columns {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 5rem;
  align-items: start;
}

/* Article body prose */
.article-body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #2a2520;
}
.article-body h2 {
  font-family: var(--f-display);
  font-size: 1.9rem; font-weight: 400;
  color: var(--ink); line-height: 1.2;
  margin: 2.5rem 0 .9rem;
  padding-top: .5rem;
}
.article-body h3 {
  font-family: var(--f-display);
  font-size: 1.4rem; font-weight: 600;
  color: var(--ink); line-height: 1.3;
  margin: 2rem 0 .7rem;
}
.article-body p { margin-bottom: 1.4rem; }
.article-body ul, .article-body ol {
  margin: 0 0 1.4rem 1.5rem;
}
.article-body li { margin-bottom: .5rem; }
.article-body a { color: var(--sea); text-decoration: none; border-bottom: 1px solid rgba(31,95,110,.3); transition: border-color .2s; }
.article-body a:hover { border-color: var(--sea); }
.article-body strong { font-weight: 600; color: var(--ink); }
.article-body em { font-style: italic; }

/* Pull quote */
.article-pullquote {
  border-left: 3px solid var(--sun);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(184,130,30,.04);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-pullquote p {
  font-family: var(--f-display);
  font-size: 1.3rem; font-weight: 300;
  font-style: italic; color: var(--ink);
  line-height: 1.5; margin: 0;
}

/* Inline callout */
.article-callout {
  background: rgba(31,95,110,.06);
  border: 1px solid rgba(31,95,110,.15);
  border-left: 3px solid var(--sea);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.article-callout p { margin: 0; font-size: .95rem; color: var(--ink); }
.article-callout a { color: var(--sea); }

/* Sidebar */
.article-sidebar { position: sticky; top: 88px; }
.sidebar-widget {
  background: var(--white);
  border: 1px solid rgba(140,123,107,.15);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px rgba(26,22,18,.04);
}
.sidebar-widget h4 {
  font-family: var(--f-display);
  font-size: 1.1rem; font-weight: 600;
  color: var(--ink); margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(140,123,107,.12);
}
.sidebar-related { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.sidebar-related li a {
  font-size: .88rem; color: var(--ink); text-decoration: none; line-height: 1.5;
  display: flex; gap: .5rem;
  transition: color .2s;
}
.sidebar-related li a::before { content: '→'; color: var(--sun); flex-shrink: 0; }
.sidebar-related li a:hover { color: var(--sea); }

.sidebar-cta {
  background: linear-gradient(145deg, var(--sea-dk) 0%, #1a4a57 100%);
  border: none;
  color: var(--white);
}
.sidebar-cta h4 {
  color: var(--white);
  border-color: rgba(255,255,255,.1);
}
.sidebar-cta p {
  font-size: .88rem; color: rgba(255,255,255,.65);
  line-height: 1.7; margin-bottom: 1.25rem;
}
.sidebar-cta .btn {
  display: block; width: 100%; text-align: center;
  padding: .7rem 1rem;
  font-size: .84rem;
}

/* Tags */
.article-tags {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid rgba(140,123,107,.12);
}
.article-tag {
  background: var(--sand);
  border: 1px solid rgba(140,123,107,.2);
  border-radius: 2rem;
  padding: .3rem .85rem;
  font-size: .75rem; color: var(--taupe);
  text-decoration: none;
  transition: all .2s;
}
.article-tag:hover { background: var(--sea); color: var(--white); border-color: var(--sea); }

/* More articles CTA */
.article-more {
  padding-block: 80px;
  background: var(--sand);
  border-top: 1px solid rgba(140,123,107,.12);
}
.article-more-header {
  text-align: center; margin-bottom: 2.5rem;
}
.article-more-header h2 {
  font-family: var(--f-display);
  font-size: 2rem; font-weight: 300; color: var(--ink);
  margin-bottom: .4rem;
}
.article-more-header h2 em { font-style: italic; color: var(--sea); }
.article-more-header p { color: var(--taupe); }
.article-more-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
  .article-columns { grid-template-columns: 1fr; gap: 3rem; }
  .article-sidebar { position: static; }
  .article-more-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .blog-featured-card { grid-template-columns: 1fr; }
  .blog-featured-img { aspect-ratio: 16/9; }
  .blog-featured-body { padding: 2rem; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .article-cover img { height: 260px; }
  .article-more-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .container > * { min-width: 0; }
  h1, h2, h3, h4, p, li, td, span, a { overflow-wrap: break-word; word-break: break-word; }
  section, header, footer, nav, aside, main { overflow-x: hidden; }
}

/* ── HOMEPAGE BLOG PREVIEW ──────────────────────────────── */
.blog-preview-section {
  padding: 100px var(--gutter);
  background: var(--sand);
  border-top: 1px solid rgba(140,123,107,.1);
}

/* 3-col grid: featured takes col 1 (tall), right side stacks 2 cards in col 2+3 */
.blog-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 768px) {
  .blog-preview-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .blog-preview-featured { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .blog-preview-grid {
    grid-template-columns: 1.1fr 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .blog-preview-featured { grid-column: 1; grid-row: 1 / span 2; }
}

/* Featured card: spans full left column, both rows */
.blog-preview-featured {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(140,123,107,.15);
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(26,22,18,.06);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .25s, transform .25s;
  height: 100%;
}
.blog-preview-featured:hover { box-shadow: 0 12px 40px rgba(26,22,18,.1); transform: translateY(-3px); }
.blog-preview-featured .bpf-img {
  width: 100%;
  height: 260px;
  overflow: hidden;
  flex-shrink: 0;
}
.blog-preview-featured .bpf-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s;
}
.blog-preview-featured:hover .bpf-img img { transform: scale(1.04); }
.blog-preview-featured .bpf-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-preview-featured .bpf-body h3 {
  font-family: var(--f-display);
  font-size: 1.4rem; font-weight: 400; line-height: 1.25;
  color: var(--ink);
  margin: .5rem 0 .85rem;
}
.blog-preview-featured .bpf-body p {
  font-size: .92rem; color: var(--taupe); line-height: 1.75;
  margin-bottom: 1.25rem; flex: 1;
}
.bpf-meta-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
}
.bpf-link {
  font-size: .84rem; font-weight: 500; color: var(--sea);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.blog-preview-featured:hover .bpf-link { border-color: var(--sea); }

/* Standard cards: sit in cols 2 and 3, rows 1 and 2 */
.blog-preview-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(140,123,107,.15);
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(26,22,18,.04);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .25s, transform .25s;
  min-height: 0;
}
.blog-preview-card:hover { box-shadow: 0 8px 28px rgba(26,22,18,.09); transform: translateY(-3px); }
.blog-preview-card .bpc-img {
  width: 100%; height: 150px; overflow: hidden; flex-shrink: 0;
}
.blog-preview-card .bpc-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s;
  background: var(--sand);
}
.blog-preview-card:hover .bpc-img img { transform: scale(1.05); }
.blog-preview-card .bpc-body {
  padding: 1.25rem;
  display: flex; flex-direction: column; flex: 1;
}
.blog-preview-card .bpc-body .blog-cat { margin-bottom: .4rem; }
.blog-preview-card .bpc-body h3 {
  font-family: var(--f-display);
  font-size: 1.05rem; font-weight: 400; line-height: 1.3;
  color: var(--ink); margin-bottom: .75rem; flex: 1;
}
.bpc-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .75rem;
  border-top: 1px solid rgba(140,123,107,.1);
  margin-top: auto;
}
.bpc-footer .blog-meta { font-size: .73rem; }
.bpc-arrow { color: var(--sea); font-size: .85rem; font-weight: 500; transition: transform .2s; }
.blog-preview-card:hover .bpc-arrow { transform: translateX(3px); }

.blog-index-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}
.blog-index-content { min-width: 0; }

/* ── ARTICLE PREV/NEXT NAV ──────────────────────────────── */
.article-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(140,123,107,.12);
}
.prevnext-card {
  display: block;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(140,123,107,.15);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s;
  background: var(--white);
}
.prevnext-card:hover { box-shadow: 0 6px 24px rgba(26,22,18,.08); transform: translateY(-2px); }
.prevnext-label {
  font-size: .72rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--taupe);
  margin-bottom: .5rem; display: block;
}
.prevnext-card.next { text-align: right; }
.prevnext-title {
  font-family: var(--f-display);
  font-size: 1rem; font-weight: 400; color: var(--ink);
  line-height: 1.35;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .blog-index-layout { grid-template-columns: 1fr; }
  .article-prevnext  { grid-template-columns: 1fr; }
  .prevnext-card.next { text-align: left; }
}


