/* Blog: single posts ([everline_post]) and the /blog/ grid ([everline_blog]).
   Rose #BD006B, porcelain #FFFCF7, coffee bean #13070C, green #32E875.
   Light backgrounds only (no dark sections or boxes). */

.el-blog {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #FFFCF7;
  color: #13070C;
  box-sizing: border-box;
  padding: 140px clamp(20px, 6vw, 64px) 96px;
  overflow-x: clip;
}
.el-blog *, .el-blog *::before, .el-blog *::after { box-sizing: border-box; }

/* ---- SINGLE POST ---- */
.el-post-head,
.el-post-body,
.el-post-cta,
.el-post-back { max-width: 720px; margin-left: auto; margin-right: auto; }

.el-post-crumbs {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #BD006B;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.el-post-crumbs a { color: inherit; text-decoration: none; }
.el-post-crumbs a:hover { text-decoration: underline; }
.el-post-crumbs span[aria-hidden] { color: rgba(19,7,12,0.3); }

.el-post-title {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 20px;
}

.el-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-size: 15px;
  color: rgba(19,7,12,0.6);
  margin: 0 0 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(19,7,12,0.1);
}
.el-post-meta a { color: #13070C; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(19,7,12,0.25); }
.el-post-meta a:hover { border-color: #BD006B; color: #BD006B; }

.el-post-cover {
  max-width: 1100px;
  margin: 0 auto 56px;
}
.el-post-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(19,7,12,0.08);
}

/* Body text */
.el-post-body {
  font-size: 18px;
  line-height: 1.75;
  color: rgba(19,7,12,0.88);
}
.el-post-body > * { margin-top: 0; margin-bottom: 22px; }
.el-post-body h2 {
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #13070C;
  margin: 64px 0 18px;
  scroll-margin-top: 110px;
}
.el-post-body h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: #13070C;
  margin: 36px 0 10px;
}
.el-post-body h3 + p { margin-top: 0; }
.el-post-body strong { color: #13070C; font-weight: 700; }
.el-post-body a {
  color: #BD006B;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.el-post-body a:hover { color: #97005a; }

.el-post-body ul,
.el-post-body ol { padding-left: 0; list-style: none; }
.el-post-body li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.el-post-body ul > li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #BD006B;
}
.el-post-body ol { counter-reset: el-step; }
.el-post-body ol > li { counter-increment: el-step; padding-left: 40px; }
.el-post-body ol > li::before {
  content: counter(el-step);
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(189,0,107,0.1);
  color: #BD006B;
  font-size: 14px;
  font-weight: 800;
  line-height: 26px;
  text-align: center;
}

/* Tables scroll sideways inside their own box on small screens. */
.el-post-table {
  margin: 8px 0 30px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.el-post-table table {
  width: 100%;
  border-collapse: collapse;
  border: 0;
  font-size: 16px;
  line-height: 1.5;
}
/* WordPress's own table block CSS draws black cell borders and a 3px rule
   under the header at the same specificity, so these go one level higher. */
.el-post-body .el-post-table table,
.el-post-body .el-post-table thead { border: 0; }
.el-post-body .el-post-table th,
.el-post-body .el-post-table td {
  border: 0;
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(19,7,12,0.1);
}
.el-post-body .el-post-table thead th,
.el-post-body .el-post-table tr:first-child th {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #BD006B;
  border-bottom: 2px solid rgba(189,0,107,0.3);
}

/* CTA at the end of a post: a light rose card. */
.el-post-cta {
  margin-top: 64px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 20px;
  background: rgba(189,0,107,0.07);
  border: 1px solid rgba(189,0,107,0.15);
}
.el-post-cta h2 {
  font-size: clamp(24px, 2.8vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 12px;
}
.el-post-cta p {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(19,7,12,0.7);
  margin: 0 0 24px;
  max-width: 52ch;
}

.el-post-back { margin-top: 48px; }

/* ---- BLOG INDEX ---- */
.el-blog-head,
.el-blog-grid { max-width: 1100px; margin-left: auto; margin-right: auto; }
.el-blog-head { margin-bottom: 48px; }
.el-blog-title {
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 18ch;
  margin: 0 0 16px;
}
.el-blog-sub {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
  color: rgba(19,7,12,0.65);
  max-width: 52ch;
  margin: 0;
}

.el-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 28px;
}
.el-blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(19,7,12,0.08);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: #13070C;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.el-blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(19,7,12,0.08);
  border-color: rgba(189,0,107,0.25);
}
.el-blog-card-img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}
.el-blog-card-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 26px;
  flex: 1;
}
.el-blog-card-cat {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #BD006B;
}
.el-blog-card-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.el-blog-card-desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(19,7,12,0.65);
}
.el-blog-card-meta {
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
  color: rgba(19,7,12,0.5);
}

@media (max-width: 600px) {
  .el-blog { padding-top: 120px; padding-bottom: 72px; }
  .el-post-body { font-size: 17px; }
  .el-post-body h2 { margin-top: 52px; }
  .el-post-table table { font-size: 15px; }
  .el-post-body .el-post-table th, .el-post-body .el-post-table td { padding: 12px 10px 12px 0; }
}

/* Images in the post body (wp:image blocks). */
.el-post-body .wp-block-image { margin: 36px 0 40px; }
.el-post-body .wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(19,7,12,0.08);
}
.el-post-body .wp-block-image figcaption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(19,7,12,0.55);
  text-align: center;
}
/* Portrait screenshots (analytics) stay phone-sized. */
.el-post-body .el-img-narrow img { max-width: 360px; margin: 0 auto; }

/* FAQ in a post: the service pages' open/close list (everline-tweaks.css),
   recoloured for the light background. */
.el-post-body .el-post-faq { max-width: none; margin: 8px 0 24px; }
.el-post-body .el-post-faq .el-faq-item {
  border-bottom: 1px solid rgba(19,7,12,0.12);
  padding: 22px 0;
  margin: 0;
}
.el-post-body .el-post-faq .el-faq-item:first-child { border-top: 1px solid rgba(19,7,12,0.12); }
.el-post-body .el-post-faq .el-faq-question {
  color: #13070C;
  font-size: 18px;
  line-height: 1.4;
  padding-right: 36px;
}
.el-post-body .el-post-faq .el-faq-question::after { color: #BD006B; font-size: 24px; top: -2px; }
.el-post-body .el-post-faq .el-faq-answer {
  color: rgba(19,7,12,0.75);
  font-size: 17px;
  line-height: 1.7;
  padding-top: 12px;
}
