/* ── BLOG HERO ── */
#blog-hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 60%, #1a2f52 100%);
  padding: 90px 0 70px;
  overflow: hidden;
}
#blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(245,166,35,.13) 0%, transparent 65%);
  pointer-events: none;
}
.blog-hero-content { position: relative; z-index: 1; text-align: center; }
.blog-hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.18;
  margin-bottom: 14px;
}
.blog-hero-content h1 span { color: var(--gold); }
.blog-hero-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.58);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── BLOG LISTING ── */
#blog-list { padding: 72px 0 80px; background: var(--gray-50); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Card */
.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 18px rgba(10,22,40,.07);
  transition: var(--tr);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-200);
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(10,22,40,.13);
}
.blog-card-img {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--navy-mid);
}
.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.06); }
.blog-card-img .bc-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--gold);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
}
.blog-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
}
.blog-card-img-placeholder i {
  font-size: 3rem;
  color: rgba(245,166,35,.3);
}

.blog-card-body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.bc-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.bc-date {
  font-size: .78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.bc-date i { color: var(--gold); font-size: .72rem; }
.blog-card-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-body p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 18px;
}
.bc-read {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: .88rem;
  transition: var(--tr);
  margin-top: auto;
}
.bc-read i { font-size: .75rem; transition: transform .3s ease; }
.blog-card:hover .bc-read i { transform: translateX(4px); }

/* No posts message */
.blog-empty {
  text-align: center;
  padding: 80px 20px;
  grid-column: 1/-1;
}
.blog-empty i {
  font-size: 3.5rem;
  color: rgba(10,22,40,.12);
  margin-bottom: 18px;
  display: block;
}
.blog-empty p { color: var(--muted); font-size: 1.05rem; }

/* ───────────────────────────────────────────────────────────────
   SINGLE BLOG POST
─────────────────────────────────────────────────────────────── */
#post-hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  padding: 80px 0 60px;
  overflow: hidden;
}
#post-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 65% 50%, rgba(245,166,35,.12) 0%, transparent 65%);
}
.post-hero-inner { position: relative; z-index: 1; max-width: 820px; }
.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 18px;
}
.post-breadcrumb a { color: var(--gold); transition: var(--tr); }
.post-breadcrumb a:hover { color: var(--gold-light); }
.post-breadcrumb i { font-size: .65rem; }
.post-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,166,35,.15);
  border: 1px solid rgba(245,166,35,.3);
  color: var(--gold);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}
#post-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.22;
  margin-bottom: 18px;
}
.post-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.post-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .83rem;
  color: rgba(255,255,255,.5);
}
.post-meta-item i { color: var(--gold); font-size: .75rem; }

/* Post body layout */
#post-body { padding: 60px 0 80px; background: #fff; }
.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 50px;
  align-items: start;
}

/* Featured image */
.post-cover {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: 0 8px 32px rgba(10,22,40,.1);
}
.post-cover img { width: 100%; height: auto; display: block; }

/* Article content — rich typography for CKEditor HTML output */
.post-content {
  line-height: 1.9;
  color: #2d3748;
  font-size: 1.05rem;
  font-family: 'Outfit', sans-serif;
}

/* Paragraphs */
.post-content p {
  margin-bottom: 1.5em;
}

/* Headings */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.3;
  margin: 2em 0 .7em;
}
.post-content h2 {
  font-size: 1.65rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-200);
}
.post-content h3 { font-size: 1.28rem; }
.post-content h4 { font-size: 1.08rem; font-family: 'Outfit', sans-serif; }

/* Lists */
.post-content ul,
.post-content ol {
  padding-left: 1.6em;
  margin-bottom: 1.5em;
  display: flex;
  flex-direction: column;
  gap: .45em;
}
.post-content ul { list-style: none; padding-left: 0; }
.post-content ul li {
  padding-left: 1.5em;
  position: relative;
}
.post-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .7em;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}
.post-content ol { list-style: decimal; }
.post-content ol li { padding-left: .3em; }
.post-content li { line-height: 1.75; }

/* Nested lists */
.post-content ul ul,
.post-content ol ol,
.post-content ul ol,
.post-content ol ul {
  margin-top: .4em;
  margin-bottom: 0;
}

/* Blockquote */
.post-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 16px 22px;
  background: rgba(245,166,35,.06);
  border-radius: 0 10px 10px 0;
  margin: 1.8em 0;
  font-style: italic;
  color: var(--navy-mid);
  font-size: 1.05rem;
}
.post-content blockquote p { margin-bottom: 0; }

/* Inline styles */
.post-content strong,
.post-content b { color: var(--navy); font-weight: 700; }
.post-content em,
.post-content i { font-style: italic; }
.post-content u { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.post-content s,
.post-content del { opacity: .6; }

/* Links */
.post-content a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-decoration-color: rgba(212,137,26,.4);
  text-underline-offset: 3px;
  transition: var(--tr);
}
.post-content a:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

/* Images */
.post-content img {
  max-width: 100%;
  border-radius: 10px;
  margin: 1.4em 0;
  box-shadow: 0 4px 20px rgba(10,22,40,.1);
}

/* Horizontal rule */
.post-content hr {
  border: none;
  border-top: 2px solid var(--gray-200);
  margin: 2.4em 0;
}

/* Tables */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.6em;
  font-size: .95rem;
  overflow-x: auto;
  display: block;
}
.post-content th,
.post-content td {
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  text-align: left;
}
.post-content th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}
.post-content tr:nth-child(even) td { background: var(--gray-50); }

/* Code */
.post-content code {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: .9em;
  color: #c7254e;
  font-family: monospace;
}
.post-content pre {
  background: var(--navy);
  color: #e2e8f0;
  border-radius: 10px;
  padding: 18px 22px;
  overflow-x: auto;
  margin-bottom: 1.6em;
  font-size: .9rem;
  line-height: 1.7;
}
.post-content pre code {
  background: none;
  border: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

/* Post sidebar */
.post-sidebar { position: sticky; top: 90px; }
.ps-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 22px;
}
.ps-card h4 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.ps-cta-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.35;
}
.ps-cta-desc { font-size: .85rem; color: var(--muted); line-height: 1.6; margin-bottom: 18px; }
.ps-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--tr);
  text-decoration: none;
}
.ps-cta-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }

/* Back link */
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 32px;
  transition: var(--tr);
}
.post-back:hover { gap: 12px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  #blog-hero, #post-hero { padding: 60px 0 44px; }
}
