/* ============================================================
   Gelimo Group — Blog Styles
   SUPPLEMENTS gelimo-group.webflow.shared.f03f7b7a5.css
   Only adds what Webflow CSS does NOT define.
   DO NOT override: .blog-item, .blog-collection-list,
   .blog-collection-item, .blog-item-conten, .blog-item-overview,
   .blog-item-batch-with-title, .blog-item-banner-wrap,
   .blog-item-banner, .blog-banner-overlay, .blog-section,
   .blog-hero-section — these are all styled by Webflow CSS.
   ============================================================ */

/* ── Hero — single latest post ─────────────────────────────── */
.blog-hero-item { position: relative; overflow: hidden; }

/* Hero cover image: keep visible. A Webflow IX2 load animation leaves the
   dynamically-injected / static-page banner stuck at opacity:0 (the reveal
   never fires for these contexts), hiding the cover under the overlay. */
.blog-hero-item-bg-banner { opacity: 1 !important; }

/* Hero overlay: brand-blue tint (#03528A) instead of the default black gradient. */
.blog-hero-item-bg-overlay {
  background-image: linear-gradient(
    270deg,
    rgba(3, 82, 138, 0.45),
    rgba(3, 82, 138, 0.78)
  );
}

/* ── Blog List (additions only) ───────────────────────────── */
.blog-item {
  text-decoration: none;
  color: inherit;
}

.blog-item-summary {
  font-size: 0.875rem;
  color: #5a607a;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.blog-category-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(2, 82, 138, 0.1);
  color: #02528a;
  padding: 3px 10px;
  border-radius: 20px;
}

.blog-load-more {
  display: flex;
  justify-content: center;
  padding: 48px 0 16px;
}

.blog-load-more-btn {
  cursor: pointer;
}

/* ── Post Page ────────────────────────────────────────────── */
.blog-post-wrapper {
  min-height: 60vh;
}

.blog-post-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #02528a;
  text-decoration: none;
  padding: 8px 0;
  transition: gap 0.2s ease, opacity 0.2s ease;
}

.blog-back-link:hover {
  gap: 10px;
  opacity: 0.8;
}

.blog-post-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 96px;
}

.blog-post-summery {
  font-weight: 400;
  color: #03528a;
  line-height: 1.6;
  margin: 24px 0 40px;
}

.blog-post-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.25;
  margin: 24px 0 16px;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  font-weight: 500;
  color: #8a8fa8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e8eaf0;
}

.blog-post-author {
  color: #5a607a;
}

/* Post body */
.blog-post-content {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: #2d3250;
  line-height: 1.7;
}

.blog-post-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #03528a;
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.blog-post-content h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #03528a;
  margin: 2rem 0 0.75rem;
}

.blog-post-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #03528a;
  margin: 1.5rem 0 0.5rem;
}

.blog-post-content p {
  margin: 0 0 1.25rem;
}

.blog-post-content blockquote {
  border-left: 4px solid #02528a;
  margin: 2rem 0;
  padding: 12px 24px;
  background: rgba(2, 82, 138, 0.05);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #4a5070;
}

.blog-post-content ul,
.blog-post-content ol {
  padding-left: 1.5rem;
  margin: 0 0 1.25rem;
}

.blog-post-content li {
  margin-bottom: 0.4rem;
}

.blog-post-content code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.875em;
  background: #f0f2f8;
  color: #0f3460;
  padding: 2px 6px;
  border-radius: 4px;
}

.blog-post-content pre {
  background: #1a1a2e;
  border-radius: 8px;
  padding: 20px 24px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-post-content pre code {
  background: transparent;
  color: #c9d1e8;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Images & figures */
.blog-post-content img {
  max-width: 100%;
  border-radius: 8px;
  height: auto;
}

.blog-post-content figure {
  margin: 2rem auto;
  text-align: center;
}

.blog-post-content figure img {
  max-width: 100%;
  border-radius: 8px;
}

figcaption {
  font-size: 0.8rem;
  font-style: italic;
  color: #8a8fa8;
  text-align: center;
  margin-top: 8px;
}

/* Image credits */
.blog-image-credit,
.blog-cover-credit {
  font-size: 0.75rem;
  color: #8a8fa8;
  margin-top: 6px;
}

.blog-image-credit a,
.blog-cover-credit a {
  color: #02528a;
  text-decoration: none;
}

.blog-image-credit a:hover,
.blog-cover-credit a:hover {
  text-decoration: underline;
}

.blog-cover-credit {
  text-align: right;
  padding: 6px 16px 0;
}

/* ── States ──────────────────────────────────────────────── */
.blog-loading {
  text-align: center;
  padding: 64px 0;
  color: #8a8fa8;
  font-size: 0.95rem;
}

.blog-empty {
  text-align: center;
  padding: 64px 0;
  color: #8a8fa8;
  font-size: 1rem;
}

.blog-not-found {
  text-align: center;
  padding: 96px 24px;
}

.blog-not-found p {
  font-size: 1.25rem;
  color: #5a607a;
  margin-bottom: 16px;
}

.blog-not-found a {
  color: #02528a;
  text-decoration: none;
  font-weight: 600;
}

/* ── Tables (static article pages) ─────────────────────────── */
.blog-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem 0;
  border-radius: 8px;
}

.blog-post-content table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.blog-post-content th,
.blog-post-content td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px;
  border-bottom: 1px solid #e8eaf0;
}

.blog-post-content thead th {
  background: rgba(2, 82, 138, 0.06);
  color: #02528a;
  font-weight: 600;
  border-bottom: 2px solid rgba(2, 82, 138, 0.2);
}

.blog-post-content tbody tr:last-child td {
  border-bottom: none;
}

.blog-post-content tbody tr:nth-child(even) td {
  background: #fafbfd;
}

.blog-post-content td a {
  color: #02528a;
  font-weight: 500;
}

/* ── Infographics (portrait 4:5) — centered, readable ──────── */
.blog-post-content figure.blog-infographic {
  max-width: 540px;
}

/* ── In-article CTA button spacing ─────────────────────────── */
.blog-post-cta {
  margin: 2.5rem 0 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media screen and (max-width: 479px) {
  .blog-post-container {
    padding: 0 16px 64px;
  }

  .blog-post-hero img {
    height: 280px;
  }
}
