/* ═══════════════════════════════════════════════════════════════════════════
   Blog, about and certificate pages.
   Loaded only on those pages (extra_head) — style.css is already heavy.
   Uses the tokens defined in style.css :root.
   ═══════════════════════════════════════════════════════════════════════════ */

.container-narrow { max-width: 760px; }

/* ── Page header shared by /blog, /sxetika, /veveosi-parakolouthisis ─────── */
.page-head {
  background: linear-gradient(180deg, var(--rose-ultra) 0%, #fff 100%);
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}
.page-head h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  margin: .6rem 0 .8rem;
  max-width: 20ch;
}
.page-head-sub {
  color: var(--text-md);
  max-width: 60ch;
  line-height: 1.7;
}
.crumbs {
  font-size: .82rem;
  color: var(--text-lt);
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  align-items: center;
}
.crumbs a { color: var(--rose); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ── Blog index ─────────────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.75rem;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--rose-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-link { text-decoration: none; color: inherit; display: block; height: 100%; }
.blog-card-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--rose-ultra); }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-cat {
  position: absolute;
  top: .7rem; left: .7rem;
  background: rgba(255,255,255,.93);
  color: var(--rose-dark);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: var(--radius-full);
}
.blog-card-body { padding: 1.25rem 1.35rem 1.5rem; }
.blog-card-title { font-size: 1.12rem; line-height: 1.35; margin-bottom: .5rem; }
.blog-card-excerpt { color: var(--text-md); font-size: .9rem; line-height: 1.65; margin-bottom: .9rem; }
.blog-card-meta { font-size: .78rem; color: var(--text-lt); display: flex; gap: .4rem; flex-wrap: wrap; }

.blog-cta {
  margin-top: 3.5rem;
  text-align: center;
  background: var(--rose-ultra);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3rem) 1.25rem;
}
.blog-cta h2 { font-size: clamp(1.3rem, 3.5vw, 1.8rem); margin-bottom: .6rem; }
.blog-cta p { color: var(--text-md); max-width: 50ch; margin: 0 auto 1.5rem; line-height: 1.7; }

/* ── Article ────────────────────────────────────────────────────────────── */
.post-head {
  background: linear-gradient(180deg, var(--rose-ultra) 0%, #fff 100%);
  padding: clamp(2rem, 6vw, 3.5rem) 0 clamp(1.25rem, 3vw, 2rem);
}
.post-head h1 {
  font-size: clamp(1.7rem, 4.6vw, 2.7rem);
  line-height: 1.22;
  margin: .7rem 0 .9rem;
}
.post-meta { font-size: .85rem; color: var(--text-md); display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.post-author { color: var(--rose-dark); font-weight: 500; }

.post-toc {
  background: var(--rose-ultra);
  border-left: 3px solid var(--rose);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.35rem;
  margin: 2rem 0;
}
.post-toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--rose-dark); margin-bottom: .6rem; font-family: var(--font-sans); }
.post-toc ol { margin: 0; padding-left: 1.1rem; }
.post-toc li { margin: .3rem 0; font-size: .9rem; }
.post-toc a { color: var(--text); text-decoration: none; }
.post-toc a:hover { color: var(--rose); text-decoration: underline; }

.post-body { font-size: 1.04rem; line-height: 1.8; color: var(--text); }
.post-body > p { margin: 0 0 1.15rem; }
.post-body .lead { font-size: 1.15rem; line-height: 1.72; color: var(--text-md); margin-bottom: 1.75rem; }
.post-body h2 {
  font-size: clamp(1.3rem, 3.4vw, 1.75rem);
  margin: 2.6rem 0 .9rem;
  scroll-margin-top: 90px;   /* fixed navbar must not cover the anchor */
}
.post-body h3 { font-size: 1.12rem; margin: 1.8rem 0 .6rem; color: var(--rose-dark); }
.post-body ul, .post-body ol { margin: 0 0 1.3rem; padding-left: 1.4rem; }
.post-body li { margin: .45rem 0; }
.post-body a { color: var(--rose-dark); text-decoration: underline; text-underline-offset: 2px; }
.post-body a:hover { color: var(--rose); }
.post-body strong { font-weight: 600; }

.callout {
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  margin: 1.8rem 0;
  font-size: .96rem;
  line-height: 1.7;
}
.callout-tip  { background: var(--rose-ultra); border-left: 3px solid var(--rose); }
.callout-warn { background: #FFF6E9; border-left: 3px solid #D9A441; }

.table-wrap { overflow-x: auto; margin: 1.6rem 0; }
.post-body table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 420px; }
.post-body th, .post-body td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--rose-light); }
.post-body th { background: var(--rose-ultra); font-weight: 600; color: var(--rose-dark); }

.checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.1rem; margin: 1.6rem 0; }
.cl-col { background: #fff; border: 1px solid var(--rose-light); border-radius: var(--radius-md); padding: 1rem 1.1rem; }
.cl-col h3 { font-size: .9rem; margin: 0 0 .5rem; color: var(--rose-dark); }
.cl-col ul { margin: 0; padding-left: 1.1rem; font-size: .88rem; }

/* ── The lesson excerpt ─────────────────────────────────────────────────── */
.post-video { margin: 2rem 0 2.2rem; }
.post-video video {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  background: #000;
  display: block;
  box-shadow: var(--shadow-md);
}
.post-video-vertical video { max-width: 360px; margin-inline: auto; }
.post-video figcaption {
  font-size: .84rem;
  color: var(--text-md);
  margin-top: .7rem;
  text-align: center;
}
.post-video figcaption i { color: var(--rose); margin-right: .3rem; }

/* ── Course call to action inside the article ───────────────────────────── */
.post-course-cta {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: center;
  background: var(--rose-ultra);
  border: 1px solid var(--rose-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 3rem 0;
}
.pcc-thumb { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16/10; }
.pcc-thumb img, .pcc-thumb picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcc-tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--rose); font-weight: 600; }
.post-course-cta h2 { font-size: 1.3rem; margin: .3rem 0 .5rem; }
.post-course-cta p { color: var(--text-md); font-size: .92rem; margin-bottom: .8rem; }
.pcc-facts { list-style: none; padding: 0; margin: 0 0 1.1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; font-size: .84rem; color: var(--text-md); }
.pcc-facts i { color: var(--rose); margin-right: .35rem; }
.pcc-price { background: rgba(255,255,255,.25); border-radius: var(--radius-full); padding: .1rem .55rem; margin-left: .5rem; }

/* ── FAQ, author, related ───────────────────────────────────────────────── */
.post-faq { margin: 3rem 0; }
.post-faq h2, .post-related h2 { font-size: 1.45rem; margin-bottom: 1rem; }
.faq-item-post { border-bottom: 1px solid var(--rose-light); padding: .9rem 0; }
.faq-item-post summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item-post summary::-webkit-details-marker { display: none; }
.faq-item-post summary::after { content: '+'; color: var(--rose); font-size: 1.3rem; line-height: 1; }
.faq-item-post[open] summary::after { content: '−'; }
.faq-item-post p { margin: .7rem 0 0; color: var(--text-md); line-height: 1.75; font-size: .95rem; }

.post-author-box {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.2rem;
  align-items: center;
  border-top: 1px solid var(--rose-light);
  border-bottom: 1px solid var(--rose-light);
  padding: 1.75rem 0;
  margin: 2.5rem 0;
}
.pab-img img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.post-author-box h2 { font-size: 1.1rem; margin-bottom: .35rem; }
.post-author-box p { color: var(--text-md); font-size: .9rem; line-height: 1.7; margin-bottom: .5rem; }
.link-arrow { color: var(--rose-dark); font-size: .88rem; font-weight: 500; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

.post-related { margin: 2.5rem 0 4rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.related-card {
  display: block;
  background: #fff;
  border: 1px solid var(--rose-light);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, transform .2s ease;
}
.related-card:hover { border-color: var(--rose); transform: translateY(-2px); }
.related-cat { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--rose); font-weight: 600; }
.related-card strong { display: block; margin: .35rem 0 .4rem; font-family: var(--font-serif); font-size: 1rem; line-height: 1.35; }
.related-excerpt { font-size: .85rem; color: var(--text-md); line-height: 1.6; }

/* ── About + certificate pages ──────────────────────────────────────────── */
.prose { font-size: 1.02rem; line-height: 1.8; color: var(--text); }
.prose h2 { font-size: clamp(1.3rem, 3.4vw, 1.7rem); margin: 2.4rem 0 .8rem; }
.prose h3 { font-size: 1.1rem; margin: 1.6rem 0 .5rem; color: var(--rose-dark); }
.prose p { margin: 0 0 1.1rem; }
.prose ul { margin: 0 0 1.2rem; padding-left: 1.4rem; }
.prose li { margin: .4rem 0; }
.prose a { color: var(--rose-dark); text-decoration: underline; text-underline-offset: 2px; }

.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 2rem 0; }
.fact { background: var(--rose-ultra); border-radius: var(--radius-md); padding: 1.1rem; text-align: center; }
.fact span { display: block; font-family: var(--font-serif); font-size: 1.8rem; color: var(--rose-dark); font-weight: 700; }
.fact small { color: var(--text-md); font-size: .82rem; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.5rem 0; }
.steps li { counter-increment: step; position: relative; padding-left: 3rem; margin: 1.1rem 0; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 2.1rem; height: 2.1rem;
  display: grid; place-items: center;
  background: var(--rose); color: #fff;
  border-radius: 50%;
  font-family: var(--font-serif); font-weight: 700;
}

@media (max-width: 640px) {
  .post-course-cta { grid-template-columns: 1fr; }
  .post-author-box { grid-template-columns: 1fr; text-align: center; }
  .pab-img img { margin: 0 auto; }
}
