/* =====================================================================
   MASUK PTN — Redesign v3 · Home page polish (home.css)
   ---------------------------------------------------------------------
   Page-specific refinements only; tokens + shared components live in
   base.css. v3: flat colors (zero gradients), diverse accents per
   section (amber/coral flash-sale, blue courses, violet video, green
   testimonials, rose articles), proportional scale, glass on the
   article category chips + promo-modal close.
   ===================================================================== */

/* ------------------------------------------------------------------ */
/*  Hero — v4 split editorial layout lives in base.css §6.             */
/*  Page-side: just typography niceties for the CTA.                   */
/* ------------------------------------------------------------------ */
.header-carousel .beli a {
  display: inline-flex;
  align-items: center;
  font-family: "Plus Jakarta Sans", sans-serif;
}

/* ------------------------------------------------------------------ */
/*  Flash-sale — flat amber wash band, coral urgency accents           */
/* ------------------------------------------------------------------ */
#div_flashsale_timer {
  position: relative;
  margin-top: 0;
  margin-bottom: 1rem;
  padding: 3.25rem 0 3.75rem;
  border-radius: var(--r-xl);
  background: var(--amber-50);
  border: 1px solid var(--amber-100);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
/* solid coral urgency strip along the top */
#div_flashsale_timer::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 5px;
  background: var(--coral);
}
#div_flashsale_timer h1 {
  font-weight: 800;
  letter-spacing: -.02em;
}
#div_flashsale_timer .text-center > h1::after { background: var(--coral); }
#div_flashsale_timer h3 { margin: 0; }

/* Countdown chip — base.css paints it flat coral; add a coral pulse */
#flashsale_timer {
  position: relative;
  animation: fs-pulse 2.4s var(--ease) infinite;
}
@keyframes fs-pulse {
  0%   { box-shadow: 0 12px 26px -12px rgba(244, 89, 59, .55), 0 0 0 0 rgba(244, 89, 59, .35); }
  70%  { box-shadow: 0 12px 26px -12px rgba(244, 89, 59, .55), 0 0 0 14px rgba(244, 89, 59, 0); }
  100% { box-shadow: 0 12px 26px -12px rgba(244, 89, 59, .55), 0 0 0 0 rgba(244, 89, 59, 0); }
}

/* Product cards on the amber band — air + tidy titles */
#div_flashsale_timer .list_produk { margin: .25rem .35rem; }
#div_flashsale_timer .div_deskripsi h5 {
  font-size: var(--fs-base);
  min-height: 2.7em;
}
/* "Stok Terbatas!" inline chip (inline #f2bd4c) → flat amber token */
#div_flashsale_timer .div_deskripsi .has_diskon {
  background: var(--amber) !important;
  color: var(--navy) !important;
}
/* Carousel dots on the amber band go coral */
#div_flashsale_timer .owl-dot { background: var(--coral-100); }
#div_flashsale_timer .owl-dot.active { background: var(--coral); }

/* ------------------------------------------------------------------ */
/*  Service / feature grid — base.css rotates accents; refine layout   */
/* ------------------------------------------------------------------ */
.service-item .row { width: 100%; }
.service-item img {
  width: 58px; height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(18, 50, 68, .16));
  transition: transform .45s var(--ease);
}
.service-item:hover img { transform: translateY(-2px) scale(1.05); }
.service-item h5 { font-size: 1.05rem; }
/* Inline-styled paragraph (color: #054e73) → token palette */
.service-item p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--muted) !important;
  line-height: 1.5;
}
/* Hover keeps the soft tinted surface from base.css — text stays inky */
.service-item:hover p { color: var(--ink-soft) !important; }

/* ------------------------------------------------------------------ */
/*  Tinted sections — flat, diverse washes (no gradients)              */
/*  Courses (#ccf3f6 inline) → blue-50 · Video (2nd) → violet-50       */
/* ------------------------------------------------------------------ */
.container-xxl[style*="ccf3f6"] {
  background: var(--blue-50) !important;
  border: 1px solid var(--blue-100);
  border-radius: var(--r-xl);
  position: relative;
}
.container-xxl[style*="ccf3f6"] + .container-xxl[style*="ccf3f6"] {
  background: var(--violet-50) !important;
  border-color: var(--violet-100);
  margin-top: 1.5rem;
}
/* Video section heading takes the violet (tech/media) voice */
.container-xxl[style*="ccf3f6"] + .container-xxl[style*="ccf3f6"] h3.text-primary {
  color: var(--violet-600) !important;
}

/* Single featured product centred nicely */
.div_home_produk .list_produk { max-width: 420px; margin: 0 auto; }

/* Video embed framed like a flat media card */
.container-xxl[style*="ccf3f6"] iframe {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  background: #000;
}

/* ------------------------------------------------------------------ */
/*  Testimonials — green voice for social proof                        */
/* ------------------------------------------------------------------ */
.container-xxl.py-5:has(.testimonial-item) .text-center > h1::after {
  background: var(--green);
}
.testimonial-item {
  padding: 2rem 1.5rem 1.75rem;
  height: 100%;
}
.testimonial-item img {
  object-fit: cover;
  border: none !important;
  box-shadow: var(--shadow-sm);
  outline: 3px solid var(--surface);
}
.testimonial-item h5 { font-size: var(--fs-md); margin-top: .35rem; }
.testimonial-item > p {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--green-600);
  text-transform: uppercase;
}
.testimonial-text {
  margin-top: 1rem;
  border-radius: var(--r) !important;
  background: var(--surface-2) !important;
}
.testimonial-text p { font-size: var(--fs-sm); line-height: 1.65; color: var(--ink-soft); }
/* Active card flips to flat blue via base.css — keep inner panel legible
   with a single-tone translucent white */
.testimonial-carousel .owl-item.center .testimonial-text {
  background: rgba(255, 255, 255, .14) !important;
}

/* ------------------------------------------------------------------ */
/*  Popular articles — neutral editorial cards, rose accents,          */
/*  glass category chips over the imagery                              */
/* ------------------------------------------------------------------ */
.category .text-center > h1::after { background: var(--rose); }

.category .image-hover {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--line);
}
.category .image-hover img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.category .image-hover:hover img { transform: scale(1.06); }

/* Lead (large) article tile gets a taller crop */
.editors-news > .row:nth-child(2) > .col-lg-6:first-child .image-hover img {
  aspect-ratio: 4 / 3;
}

/* Category chip — glass over the image */
.category .thumb-title {
  position: absolute;
  left: .8rem; bottom: .8rem;
  z-index: 2;
  margin: 0 !important;
  padding: .3rem .8rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--glass-dark);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--r-pill);
}

.category h1.font-weight-600 {
  font-size: 1.35rem;
  line-height: 1.32;
  margin-top: .8rem !important;
}
.category h5.font-weight-600 {
  font-size: var(--fs-base);
  line-height: 1.4;
  margin-top: .7rem !important;
}
.category h1.font-weight-600 a,
.category h5.font-weight-600 a {
  color: var(--ink);
  transition: color .3s var(--ease);
}
.category h1.font-weight-600 a:hover,
.category h5.font-weight-600 a:hover { color: var(--rose-600); }

/* ------------------------------------------------------------------ */
/*  Promo modal (#myModal → yuk-belajar.com)                           */
/* ------------------------------------------------------------------ */
#myModal .modal-body img {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
/* Close button — small glass pill floating under the promo image */
#myModal a[onclick] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin: .9rem auto 0;
  font-size: var(--fs-md) !important;
  border-radius: var(--r-pill);
  background: var(--glass-dark);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .28);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
#myModal a[onclick]:hover {
  background: var(--coral-600); /* -600 shade keeps the white ✕ readable */
  transform: scale(1.08);
}

/* ------------------------------------------------------------------ */
/*  Responsive niceties                                                */
/* ------------------------------------------------------------------ */
@media (max-width: 575.98px) {
  #div_flashsale_timer { border-radius: var(--r-lg); padding: 2.5rem 0 3rem; }
  .container-xxl[style*="ccf3f6"] { border-radius: var(--r-lg); }
  .category h1.font-weight-600 { font-size: 1.2rem; }
}
/* =====================================================================
   KUSTOMISASI TESTIMONIAL (READ MORE / EXPAND)
   ===================================================================== */
.testimonial-text .testi-content {
  display: -webkit-box;
  -webkit-line-clamp: 5; /* Batasi maksimal 5 baris, silakan sesuaikan */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s ease;
}

/* Class ini akan ditambahkan via JS saat tombol diklik */
.testimonial-text .testi-content.expanded {
  -webkit-line-clamp: unset;
  display: block;
}

/* Styling tombol unroll */
.btn-read-more {
  background: none;
  border: none;
  color: var(--green-600, #28a745); /* Selaras dengan tema voice hijau dari base.css */
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-read-more:hover {
  color: var(--navy, #0a6b8f);
  text-decoration: underline;
}