/* ==============================================================
   Podcast section (homepage) + blog pages
   Builds on the tokens in style.css (--color-primary, --bg-gradient …)
=================================================================== */

/* ---------- Podcast ---------- */
.podcast-area .info h5 {
  color: var(--color-secondary);
  font-weight: 700;
  margin-bottom: 15px;
}

.podcast-area .info h2 {
  font-weight: 700;
  margin-bottom: 20px;
}

.podcast-area .info .episode {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.podcast-area .info ul {
  padding-left: 0;
  list-style: none;
  margin: 20px 0 30px;
}

.podcast-area .info ul li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
}

.podcast-area .info ul li i {
  color: var(--color-primary);
  margin: 6px 12px 0 0;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  background: var(--dark);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Blog: page banner ---------- */
.blog-banner {
  background-color: var(--color-primary);
  background-image: url(/assets/img/coadun_gradient_shape.svg);
  background-size: cover;
  background-position: bottom center;
  padding: 180px 0 90px;
}

.blog-banner h1 {
  font-weight: 700;
  color: var(--white);
  margin-bottom: 15px;
}

.blog-banner p,
.blog-banner .post-meta {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.blog-banner .back-link {
  color: rgba(255, 255, 255, 0.85);
  display: inline-block;
  margin-bottom: 20px;
  font-weight: 600;
}

.blog-banner .back-link:hover {
  color: var(--white);
}

/* ---------- Blog: index ---------- */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--box-shadow-regular);
  overflow: hidden;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.post-card-cover {
  aspect-ratio: 16 / 9;
  background: var(--bg-gradient);
  overflow: hidden;
}

.post-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.post-card:hover .post-card-cover img {
  transform: scale(1.03);
}

.post-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 22px 24px 24px;
}

.post-card .read-more {
  margin-top: auto;
}

.post-card .post-meta {
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.post-card h3 {
  font-weight: 700;
  font-size: 19px;
  line-height: 1.35;
  color: var(--color-heading);
  margin-bottom: 15px;
}

.post-card p {
  color: var(--color-paragraph);
  font-size: 15px;
  line-height: 1.6;
}

/* Keep cards even as more posts arrive: summary capped at 3 lines */
.post-card-body > p:not(.post-meta) {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card .read-more {
  color: var(--color-primary);
  font-weight: 700;
}

/* ---------- Blog: post ---------- */
.post-body {
  max-width: 740px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.75;
}

.post-body h2 {
  font-weight: 700;
  font-size: 28px;
  margin: 45px 0 15px;
}

.post-body p {
  margin-bottom: 22px;
}

.post-body .lead {
  font-size: 21px;
  color: var(--color-heading);
}

.post-footer {
  max-width: 740px;
  margin: 50px auto 0;
  padding: 30px;
  border-radius: 10px;
  background: var(--bg-gray);
}

.post-footer p {
  margin-bottom: 15px;
}

.preview-note {
  max-width: 740px;
  margin: 0 auto 35px;
  padding: 14px 18px;
  border-radius: 10px;
  background: #fff6d6;
  color: #5c4500;
  font-size: 15px;
}

@media (max-width: 767px) {
  .blog-banner {
    padding: 140px 0 60px;
  }
  .post-body {
    font-size: 17px;
  }
  .post-card-body {
    padding: 20px;
  }
}

.post-body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-body a:hover {
  color: var(--color-secondary);
}

.post-body ul {
  list-style: disc;
  padding-left: 1.4em;
  margin-bottom: 22px;
}

.post-body ul li {
  display: list-item;
  list-style: disc;
  margin-bottom: 8px;
}

.post-body ol {
  padding-left: 1.4em;
  margin-bottom: 22px;
}

.post-body ol li {
  display: list-item;
  list-style: decimal;
  margin-bottom: 10px;
}

.post-figure {
  margin: 35px 0;
}

.post-figure img {
  width: 100%;
  border-radius: 10px;
}

.post-figure figcaption {
  text-align: center;
  font-size: 15px;
  margin-top: 10px;
  color: var(--color-paragraph);
}
