/* ===========================================================
   BLOG — index grid + single article (post) layout
   =========================================================== */

/* ---------- Index ---------- */
.blog-section { padding: 3.5rem 0 5rem; background: #fff; }

.blog-filters {
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center;
  margin-bottom: 3rem;
}
.blog-filter {
  padding: 0.5rem 1.1rem; border-radius: 999px;
  font-size: 0.82rem; font-weight: 700; color: #475569;
  background: #f1f5f9; border: 1px solid transparent; cursor: pointer;
  transition: all 0.2s ease;
}
.blog-filter:hover { background: #e6eef6; color: #0A5BB0; }
.blog-filter.active {
  color: #fff; background: linear-gradient(135deg, #0A5BB0, #1BAFC4);
  box-shadow: 0 6px 16px -6px rgba(10,91,176,0.6);
}

/* Featured */
.blog-featured {
  display: grid; grid-template-columns: 1fr; gap: 0; margin-bottom: 3.5rem;
  border-radius: 22px; overflow: hidden; border: 1px solid #e8eef5;
  box-shadow: 0 20px 45px -28px rgba(15,40,80,0.3);
}
@media (min-width: 880px) { .blog-featured { grid-template-columns: 1.15fr 1fr; } }
.blog-featured-media { overflow: hidden; min-height: 16rem; position: relative; }
.blog-featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.blog-featured:hover .blog-featured-media img { transform: scale(1.06); }
.blog-featured-body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.blog-featured-body h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.85rem; font-weight: 800; color: #0f2444; line-height: 1.2; margin: 0.8rem 0; letter-spacing: -0.02em; }
.blog-featured-body p { color: #64748b; font-size: 0.98rem; line-height: 1.7; }

/* Grid of cards */
.blog-grid {
  display: grid; gap: 1.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .blog-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 980px) { .blog-grid { grid-template-columns: repeat(3,1fr); } }

.post-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e8eef5; border-radius: 18px; overflow: hidden;
  box-shadow: 0 10px 26px -18px rgba(15,40,80,0.2);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease, border-color 0.3s;
}
.post-card:hover { transform: translateY(-8px); box-shadow: 0 28px 50px -26px rgba(10,91,176,0.4); border-color: rgba(27,175,196,0.4); }
.post-card-media { height: 11rem; overflow: hidden; position: relative; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.post-card:hover .post-card-media img { transform: scale(1.1); }
.post-card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-card-body h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.12rem; font-weight: 700; color: #0f2444; line-height: 1.3; margin: 0.6rem 0 0.5rem; }
.post-card-body p { font-size: 0.88rem; color: #64748b; line-height: 1.6; flex: 1; }
.post-card-link { margin-top: 1rem; font-size: 0.85rem; font-weight: 700; color: #0A5BB0; display: inline-flex; align-items: center; gap: 0.4rem; }
.post-card-link svg { transition: transform 0.2s; }
.post-card:hover .post-card-link svg { transform: translateX(4px); }

.post-pill {
  align-self: flex-start;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
  color: #1199ae; background: rgba(27,175,196,0.12);
  padding: 0.3rem 0.6rem; border-radius: 999px;
}
.post-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.76rem; color: #94a3b8; font-weight: 600; margin-top: 0.6rem; }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #cbd5e1; }

/* ---------- Single article ---------- */
.article-hero { padding-top: 1rem; }
.article-headwrap { max-width: 50rem; margin: 0 auto; text-align: center; }
.article-cat {
  display: inline-block; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: #1199ae; background: rgba(27,175,196,0.12); padding: 0.35rem 0.75rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.article-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; color: #0f2444; line-height: 1.12; letter-spacing: -0.025em;
}
.article-lead { font-size: 1.12rem; color: #475569; line-height: 1.7; margin-top: 1.1rem; }
.article-meta {
  display: flex; align-items: center; justify-content: center; gap: 0.7rem;
  margin-top: 1.5rem; font-size: 0.85rem; color: #94a3b8; font-weight: 600;
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #cbd5e1; }

.article-figure {
  max-width: 62rem; margin: 2.5rem auto 0; border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(15,40,80,0.4); position: relative;
}
.article-figure img { width: 100%; height: auto; display: block; transition: transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.article-figure:hover img { transform: scale(1.04); }

.article-body { max-width: 44rem; margin: 0 auto; padding: 3rem 0 1rem; }
.article-body h2 {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.6rem; font-weight: 800; color: #0f2444;
  margin: 2.4rem 0 0.9rem; letter-spacing: -0.015em;
}
.article-body h3 { font-size: 1.2rem; font-weight: 700; color: #1e293b; margin: 1.6rem 0 0.6rem; }
.article-body p { font-size: 1.04rem; line-height: 1.8; color: #3a4859; margin-bottom: 1.1rem; }
.article-body ul { margin: 0 0 1.3rem 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.article-body ul li { position: relative; padding-left: 1.9rem; font-size: 1.02rem; line-height: 1.6; color: #3a4859; }
.article-body ul li::before {
  content: ''; position: absolute; left: 0; top: 0.45rem;
  width: 18px; height: 18px; border-radius: 50%; background: rgba(27,175,196,0.14);
}
.article-body ul li::after {
  content: ''; position: absolute; left: 5px; top: 0.7rem;
  width: 8px; height: 4px; border-left: 2px solid #1199ae; border-bottom: 2px solid #1199ae; transform: rotate(-45deg);
}

.article-callout {
  background: linear-gradient(135deg, rgba(10,91,176,0.05), rgba(27,175,196,0.07));
  border-left: 4px solid #1BAFC4; border-radius: 0 14px 14px 0;
  padding: 1.4rem 1.6rem; margin: 2rem 0;
}
.article-callout strong { color: #0A5BB0; }
.article-callout p { margin: 0; font-size: 0.98rem; color: #334155; }

/* Related */
.related-section { padding: 4rem 0 5rem; background: linear-gradient(180deg, #f7fbfe, #fff); }
