/* ============================================================
   Child Blogs Slider
   ============================================================ */

.child-blogs-slider {
  position: relative;
  overflow: hidden;
  padding-bottom: 48px; /* space for pagination dots */
}

.child-blogs-slider.swiper {
  padding-left: 4px;
  padding-right: 4px;
  padding-bottom: 50px;
}

/* ── Card ──────────────────────────────────────────────────── */
.child-blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: auto;
  position: relative;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.child-blog-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.13);
  transform: translateY(-3px);
}

/* ── Thumbnail ─────────────────────────────────────────────── */
.child-blog-card__thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f0f0f0;
}

.child-blog-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.child-blog-card:hover .child-blog-card__thumb img {
  transform: scale(1.05);
}

.child-blog-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  background: #e8e8e8;
}

/* ── Body ───────────────────────────────────────────────────── */
.child-blog-card__body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ── Date ───────────────────────────────────────────────────── */
.child-blog-card__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #F1A61F;
  margin-bottom: 10px;
  line-height: 1;
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px;
  background-color: #fff;
  border-radius: 4px;
}

.child-blog-card__date svg {
  flex-shrink: 0;
  color: #F1A61F;
}

/* ── Title ──────────────────────────────────────────────────── */
.child-blog-card__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 10px;
  color: #1a1a1a;
  flex: 1;
}

.child-blog-card__title a {
  color: inherit;
  text-decoration: none;
}

.child-blog-card__title a:hover {
  color: inherit;
}

/* ── Excerpt ────────────────────────────────────────────────── */
.child-blog-card__excerpt {
  font-size: 18px;
  color: #333333;
  line-height: 1.6;
  margin: 0 0 14px;
}

/* ── Read More ──────────────────────────────────────────────── */
.child-blog-card__readmore {
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  color: #697586;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-top: auto;
  transition: color 0.2s;
}

/* ── Navigation Arrows ──────────────────────────────────────── */
.child-blogs-slider .swiper-button-prev,
.child-blogs-slider .swiper-button-next {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  color: #333;
  top: calc(50% - 28px); /* above the pagination area */
}

.child-blogs-slider .swiper-button-prev::after,
.child-blogs-slider .swiper-button-next::after {
  font-size: 14px;
  font-weight: 700;
}

.child-blogs-slider .swiper-button-prev:hover,
.child-blogs-slider .swiper-button-next:hover {
  background: #020089;
  color: #fff;
}

/* ── Pagination Dots ────────────────────────────────────────── */
.child-blogs-slider .swiper-pagination {
  bottom: 10px;
}

.child-blogs-slider .swiper-pagination-bullet {
  background: #ccc;
  opacity: 1;
  width: 8px;
  height: 8px;
}

.child-blogs-slider .swiper-pagination-bullet-active {
  background: #020089;
  width: 24px;
  border-radius: 4px;
}

/* ── No Posts ───────────────────────────────────────────────── */
.child-blogs-no-posts {
  color: #999;
  font-style: italic;
  text-align: center;
  padding: 20px 0;
}
