.daddhis-featured-posts {
  position: relative;
  margin: 6px auto;
  padding: 10px 8px 16px;
}

.daddhis-featured-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.daddhis-featured-title {
  margin: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.2;
}

.daddhis-featured-swiper {
  position: relative;
}

.daddhis-featured-swiper .swiper-wrapper {
  align-items: stretch;
}

.daddhis-featured-swiper:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}

.daddhis-featured-swiper:not(.swiper-initialized) .swiper-slide {
  flex: 0 0 min(86vw, 380px);
  scroll-snap-align: start;
}

.daddhis-featured-swiper.swiper-initialized {
  overflow: hidden;
  padding: 2px 2px 18px;
}

.daddhis-featured-card {
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background-color 220ms ease;
  will-change: transform;
}

.daddhis-featured-card:hover {
  transform: translateY(-4px) scale(1.018);
  border-color: #93c5fd;
  background: #f0f8ff;
  box-shadow: 0 12px 24px rgba(29, 78, 216, 0.16);
}

.daddhis-featured-image-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  max-height: 220px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  overflow: hidden;
}

.daddhis-featured-image-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--daddhis-card-image, none);
  background-size: cover;
  background-position: center center;
  filter: blur(14px);
  transform: scale(1.12);
  opacity: 0.5;
  z-index: 1;
}

.daddhis-featured-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.3));
  z-index: 2;
}

.daddhis-featured-image {
  position: relative;
  z-index: 3;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block;
  background: transparent;
}

.daddhis-featured-image--fallback {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: block;
  background: linear-gradient(125deg, #dbeafe, #e2e8f0 40%, #f3f4f6);
}

.daddhis-featured-body {
  padding: 10px 12px 12px;
  background: #fff;
}

.daddhis-featured-card:hover .daddhis-featured-body {
  background: #f8fbff;
}

.daddhis-featured-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
  color: #4b5563;
  font-size: 11px;
  font-weight: 600;
}

.daddhis-featured-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e40af;
  padding: 2px 8px;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
}

.daddhis-featured-post-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
}

.daddhis-featured-post-title a {
  color: #111827;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.daddhis-featured-post-title a:hover {
  color: #0b63d1;
}

.daddhis-featured-nav {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: calc(50% - 21px);
  z-index: 60;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: #fff;
  color: #111827;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.2);
  pointer-events: auto;
  opacity: 1 !important;
  visibility: visible !important;
}

.daddhis-featured-nav:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.daddhis-featured-nav:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.daddhis-featured-nav.swiper-button-disabled {
  opacity: 0.55 !important;
}

.daddhis-featured-nav span {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  transform: translateY(-1px);
}

.daddhis-featured-prev {
  left: -4px;
}

.daddhis-featured-next {
  right: -4px;
}

.daddhis-featured-pagination {
  margin-top: 10px;
  text-align: center;
}

.daddhis-featured-pagination .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #94a3b8;
  opacity: 0.5;
}

.daddhis-featured-pagination .swiper-pagination-bullet-active {
  opacity: 1;
  background: #1d4ed8;
}

.daddhis-featured-empty {
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  color: #374151;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .daddhis-featured-image-wrap {
    min-height: 180px;
    max-height: 200px;
  }

  .daddhis-featured-swiper.swiper-initialized {
    padding-bottom: 16px;
  }

  .daddhis-featured-nav {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    top: calc(50% - 18px);
    z-index: 70;
  }

  .daddhis-featured-prev {
    left: 2px;
  }

  .daddhis-featured-next {
    right: 2px;
  }
}

@media (max-width: 767px) {
  .daddhis-featured-image-wrap {
    min-height: 190px;
    max-height: 210px;
  }

  .daddhis-featured-card:hover {
    transform: translateY(-2px) scale(1.01);
  }

  .daddhis-featured-nav {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    top: calc(50% - 17px);
  }
}
