/* Ella-inspired editorial blog layout — Tanzania Safari Magic */

.blog-editorial {
  background: #fff;
  padding: clamp(1rem, 2.5vw, 2rem) 0 clamp(2rem, 4vw, 3.5rem);
}
.blog-editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  max-width: min(1200px, 100% - 2rem);
  margin: 0 auto;
  padding: 0;
}
@media (max-width: 960px) {
  .blog-editorial-grid { grid-template-columns: 1fr; }
}

.blog-article-main { min-width: 0; order: 1; }
.blog-crumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.blog-crumb a { color: var(--primary); text-decoration: none; font-weight: 600; }
.blog-crumb span { margin: 0 0.35rem; opacity: 0.6; }

.blog-h1 {
  font-family: var(--font-heading, Poppins, sans-serif);
  font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.5rem);
  line-height: 1.18;
  color: #111;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}
.blog-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 1rem;
}
.blog-byline a { color: var(--primary); font-weight: 600; text-decoration: none; }
.blog-disclaimer {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 1.25rem;
}

.blog-prose {
  font-size: clamp(1.02rem, 0.98rem + 0.2vw, 1.125rem);
  line-height: 1.75;
  color: #333;
}
.blog-prose .guide-lead { font-size: 1.12rem; line-height: 1.65; margin-bottom: 1.1rem; }
.blog-prose p { margin: 0 0 1.1rem; }
.blog-prose a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-prose h2 {
  font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.65rem);
  margin: 2rem 0 0.85rem;
  color: #111;
  scroll-margin-top: 88px;
}
.blog-prose h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.65rem;
  color: #1a1a1a;
  scroll-margin-top: 88px;
}
.blog-prose ul, .blog-prose ol { margin: 0 0 1.1rem; padding-left: 1.35rem; }
.blog-prose li { margin-bottom: 0.4rem; }

.guide-figure {
  margin: 1.35rem 0;
  border-radius: 12px;
  overflow: hidden;
}
.guide-figure img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #f0f0f0;
}
.guide-figure figcaption {
  font-size: 0.85rem;
  color: #777;
  padding: 0.65rem 0.25rem 0;
  font-style: italic;
}

.guide-toc {
  background: #f7f8f6;
  border: 1px solid rgba(38,62,34,0.08);
  border-radius: 14px;
  padding: 1.15rem 1.35rem;
  margin: 1.5rem 0;
}
.guide-toc h2 { margin: 0 0 0.75rem !important; font-size: 1.1rem !important; }
.guide-toc ol { margin: 0; padding-left: 1.2rem; columns: 1; }
@media (min-width: 700px) {
  .guide-toc ol { columns: 2; column-gap: 1.5rem; }
}
.guide-toc a { text-decoration: none; }
.guide-toc a:hover { text-decoration: underline; }

.guide-cta-box {
  background: linear-gradient(135deg, #0f1a0e 0%, #1f3a28 100%);
  color: #fff;
  border-radius: 16px;
  padding: clamp(1.2rem, 2.5vw, 1.75rem);
  margin: 1.5rem 0;
}
.guide-cta-box.compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.guide-cta-box h2 { color: #fff !important; margin: 0 0 0.55rem !important; }
.guide-cta-box p { color: rgba(255,255,255,0.9); margin: 0 0 0.85rem; }
.guide-cta-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.guide-cta-box .btn-outline {
  border-color: rgba(255,255,255,0.9) !important;
  color: #fff !important;
  background: transparent !important;
}
.guide-cta-box .btn-primary {
  background: var(--accent, #FF6F00) !important;
  color: #fff !important;
  border: none !important;
}
.guide-cta-note { font-size: 0.8rem; opacity: 0.8; margin: 0.85rem 0 0 !important; }

.guide-pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.1rem 0 1.75rem;
}
.guide-pkg-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(38,62,34,0.1);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.guide-pkg-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(38,62,34,0.1);
}
.guide-pkg-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #eee;
}
.guide-pkg-card .body { padding: 1rem 1.1rem 1.2rem; flex: 1; display: flex; flex-direction: column; }
.guide-pkg-card h3 { font-size: 1rem; margin: 0 0 0.4rem; color: var(--earth-dark); }
.guide-pkg-card .meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.guide-pkg-card .price { font-weight: 800; color: var(--primary); margin-top: auto; }

/* Sticky author sidebar — uses empty right column */
.blog-sidebar {
  position: sticky;
  top: calc(var(--site-header-offset, 92px) + 0.75rem);
  order: 2;
  max-height: calc(100vh - var(--site-header-offset, 92px) - 1.5rem);
  overflow-y: auto;
  scrollbar-width: thin;
}
@media (max-width: 960px) {
  .blog-sidebar { position: static; max-height: none; overflow: visible; }
}
.author-card {
  background: #fafafa;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 1.2rem;
  margin-bottom: 1rem;
}
.blog-team-card .btn { font-weight: 700; }
.author-card img {
  width: 100%;
  max-width: 140px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 auto 0.85rem;
  display: block;
  background: #e8eee8;
}
.author-card h3 { margin: 0 0 0.25rem; font-size: 1.1rem; text-align: center; }
.author-card .role { font-size: 0.8rem; color: var(--primary); font-weight: 700; margin-bottom: 0.75rem; text-align: center; }
.author-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; margin: 0 0 1rem; }
.author-social { display: flex; flex-direction: column; gap: 0.5rem; }

.blog-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.share-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-secondary, #f3f3f3); color: inherit; text-decoration: none;
}
.share-btn:hover { background: var(--primary); color: #fff; }

/* Listing redesign */
.blog-list-layout {
  max-width: 1200px;
  margin: 0 auto;
}
.blog-pillar-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(38,62,34,0.08);
  box-shadow: 0 12px 40px rgba(38,62,34,0.07);
  margin-bottom: 2rem;
  text-decoration: none;
  color: inherit;
}
@media (max-width: 768px) {
  .blog-pillar-card { grid-template-columns: 1fr; }
}
.blog-pillar-card img {
  width: 100%; height: 100%; min-height: 220px; object-fit: cover; display: block;
}
.blog-pillar-body { padding: clamp(1.25rem, 2.5vw, 2rem); display: flex; flex-direction: column; justify-content: center; }
.blog-pillar-body .badge {
  display: inline-block;
  background: var(--primary-pale, #fff3e6);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
  width: fit-content;
}

.dest-table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; -webkit-overflow-scrolling: touch; }
.dest-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 480px;
}
.dest-table th, .dest-table td {
  border: 1px solid rgba(0,0,0,0.08);
  padding: 0.65rem 0.85rem;
  text-align: left;
}
.dest-table th { background: #f4f6f3; font-weight: 700; }

/* ── Magazine blog listing (tanzania-specialist inspired) ── */
.blog-mag-hero {
  position: relative;
  min-height: clamp(280px, 48vh, 520px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: #0f1a0e;
}
.blog-mag-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.blog-mag-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,26,14,0.25) 0%, rgba(15,26,14,0.82) 100%);
}
.blog-mag-hero-inner {
  position: relative;
  z-index: 2;
  padding: calc(var(--site-header-offset, 92px) + 2rem) 0 2.5rem;
  max-width: 820px;
}
.blog-mag-hero h1 {
  margin: 0.5rem 0 0.85rem;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem);
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.02em;
}
.blog-mag-hero p {
  margin: 0;
  max-width: 38rem;
  color: rgba(255,255,255,0.92);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  line-height: 1.65;
}
.blog-mag-section { background: #fafafa; }
.blog-mag-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
  align-items: stretch;
}
@media (max-width: 960px) {
  .blog-mag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .blog-mag-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}
.blog-mag-card {
  min-width: 0;
  height: 100%;
  display: flex;
}
.blog-mag-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.blog-mag-media {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #e8eee8;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
}
.blog-mag-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}
.blog-mag-link:hover .blog-mag-media img {
  transform: scale(1.04);
}
.blog-mag-date {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  background: rgba(255,255,255,0.95);
  color: #1a1a1a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.65rem;
  border-radius: 2px;
}
.blog-mag-title {
  margin: 0.85rem 0 0;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.35;
  color: #1a1a1a;
  font-weight: 700;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  min-height: calc(1.35em * 3);
}
.blog-mag-link:hover .blog-mag-title {
  color: var(--accent, #FF6F00);
}
.blog-mag-cta {
  margin-top: 3rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(135deg, #0f1a0e 0%, #1f3a28 100%);
  color: #fff;
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}
.blog-mag-cta h2 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.65rem);
}
.blog-mag-cta p {
  margin: 0;
  color: rgba(255,255,255,0.9);
  max-width: 36rem;
}
.blog-mag-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.blog-mag-cta .btn-outline {
  border-color: rgba(255,255,255,0.85) !important;
  color: #fff !important;
  background: transparent !important;
}
@media (max-width: 640px) {
  .blog-mag-cta-actions { width: 100%; }
  .blog-mag-cta-actions .btn { width: 100%; justify-content: center; }
}
