/* ============================================================
   Plugin #10031 — Subpage Thumbnails
   Scoped under .spt-section. Uses Mokai design tokens.
   ============================================================ */

.spt-section {
  padding: 64px 0;
  font-family: var(--font, 'Poppins', sans-serif);
}

/* ---------- Heading ---------- */
.spt-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}
.spt-eyebrow {
  display: inline-block;
  font-family: var(--script, 'Dancing Script', cursive);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--orange, #ee6f08);
  margin-bottom: 6px;
}
.spt-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--green, #1E5F46);
  margin: 0 0 12px;
}
.spt-intro {
  color: var(--text-mid, #444);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Card ---------- */
.spt-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white, #fff);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(30, 95, 70, .08);
  border: 1px solid rgba(30, 95, 70, .06);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.spt-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(30, 95, 70, .16);
  border-color: rgba(238, 111, 8, .25);
}

/* ---------- Media ---------- */
.spt-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream-bg, #faf4e6);
}
.spt-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.spt-card:hover .spt-card-media img { transform: scale(1.07); }

.spt-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 95, 70, 0) 45%, rgba(30, 95, 70, .35) 100%);
  opacity: 0;
  transition: opacity .35s ease;
}
.spt-card:hover .spt-card-overlay { opacity: 1; }

.spt-card-go {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange, #ee6f08);
  color: #fff;
  font-size: 1.15rem;
  transform: translateY(-8px) scale(.8);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
.spt-card:hover .spt-card-go {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ---------- Body ---------- */
.spt-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.spt-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green, #1E5F46);
  margin: 0 0 8px;
  transition: color .25s ease;
}
.spt-card:hover .spt-card-title { color: var(--orange, #ee6f08); }

.spt-card-text {
  color: var(--text-muted, #777);
  font-size: .92rem;
  line-height: 1.55;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.spt-card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--orange, #ee6f08);
}
.spt-card-link i { transition: transform .25s ease; }
.spt-card:hover .spt-card-link i { transform: translateX(4px); }

/* ---------- Editor note ---------- */
.spt-note {
  margin: 16px;
  padding: 18px 20px;
  border: 1px dashed rgba(30, 95, 70, .35);
  border-radius: 12px;
  background: var(--cream-bg, #faf4e6);
  color: var(--green, #1E5F46);
  font-family: var(--font, 'Poppins', sans-serif);
  font-size: .92rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 575.98px) {
  .spt-section { padding: 44px 0; }
  .spt-card-body { padding: 16px 18px 18px; }
}
