/* ============================================================
   JADISIMPEL EDITORIAL & MAGAZINE ARTICLE LAYOUT
   Sesuai referensi tata letak majalah pendidikan modern:
   - Feature Article hero dengan card floating biru tebal & badge
   - Pembatas editorial elegan
   - Navigasi pill topik / kategori
   - Grid 3 kolom responsif dengan thumbnail, judul serif, panah, meta & cuplikan
   ============================================================ */

/* --- 1. HERO FEATURE ARTICLE & SLIDER --- */
.featured-slider-wrap {
  position: relative;
  margin-top: 10px;
  margin-bottom: 56px;
  user-select: none;
}

.featured-slides {
  position: relative;
  width: 100%;
}

.featured-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.featured-slide.active {
  display: block;
  opacity: 1;
  animation: featuredFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes featuredFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slider Controls: Arrows positioned flush with the edge of the image with opacity */
.featured-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(7, 16, 38, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 12;
  opacity: 0.65;
  transition: opacity 0.22s var(--ease), background-color 0.22s var(--ease), border-color 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
  padding: 0;
}

.featured-arrow:hover {
  opacity: 1;
  background: rgba(14, 165, 233, 0.9);
  border-color: #38bdf8;
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.5);
}

.featured-arrow.prev {
  left: 12px;
}

.featured-arrow.next {
  right: 12px;
}

.featured-arrow svg {
  width: 22px;
  height: 22px;
}

/* Floating Bottom Navigation Bar: Dots aligned with featured card bottom edge */
.slider-nav-bar {
  position: absolute;
  bottom: -32px;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0b1c38;
  border: 1px solid rgba(56, 189, 248, 0.22);
  padding: 14px 18px;
  border-radius: 6px;
  box-shadow: 0 20px 42px rgba(2, 6, 18, 0.7);
  z-index: 10;
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.slider-dot.active {
  width: 28px;
  background: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.65);
}

.featured-hero {
  position: relative;
  border-radius: var(--r-lg, 16px);
  overflow: visible;
}

.featured-hero-media {
  position: relative;
  width: 100%;
  height: 540px;
  border-radius: var(--r-lg, 16px);
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  background: var(--navy-900);
}

.featured-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 0.6s var(--ease);
}

.featured-hero:hover .featured-hero-media img {
  transform: scale(1.025);
}

.featured-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 24, 0.1) 0%, rgba(5, 10, 24, 0.6) 100%);
  pointer-events: none;
}

/* Floating Blue Dark Navy Card */
.featured-card {
  position: absolute;
  bottom: -32px;
  left: 36px;
  max-width: 620px;
  background: #0b1c38; /* Blue Dark Navy solid berwibawa sesuai arahan */
  color: #ffffff;
  padding: 30px 36px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: 0 24px 50px rgba(2, 6, 18, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
  z-index: 5;
  text-decoration: none;
  display: block;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), background-color 0.28s var(--ease), border-color 0.28s var(--ease);
}

.featured-card:hover {
  background: #0e2347;
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 28px 60px rgba(2, 6, 18, 0.85), 0 0 24px rgba(47, 107, 255, 0.25);
}

.featured-badge {
  display: inline-block;
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 14px;
}

.featured-title {
  font-family: "Georgia", Cambria, "Times New Roman", Times, serif;
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 700;
  line-height: 1.28;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.featured-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

.featured-desc .arrow {
  display: inline-block;
  color: #38bdf8;
  margin-left: 6px;
  font-size: 14px;
  transition: transform 0.2s ease;
}

.featured-card:hover .featured-desc .arrow {
  transform: translateX(4px);
}

/* --- 2. EDITORIAL DIVIDER & TOPIC PILLS --- */
.editorial-divider {
  height: 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  margin: 54px 0 36px;
}

.editorial-topics-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.topics-label {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--t3);
  margin-right: 4px;
}

.topic-pill {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--t2);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 7px 16px;
  border-radius: var(--r-pill);
  transition: all 0.22s var(--ease);
}

.topic-pill:hover {
  color: var(--t1);
  background: var(--surface-2);
  border-color: rgba(34, 211, 238, 0.4);
}

.topic-pill.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.45);
}

/* --- 3. CATEGORY SECTION & HEADING --- */
.category-section {
  margin-bottom: 64px;
  scroll-margin-top: 80px;
}

.category-header {
  margin-bottom: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.category-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0;
}

.category-badge {
  font-size: 12.5px;
  color: var(--t3);
  font-weight: 500;
}

/* --- 4. 3-COLUMN MAGAZINE GRID --- */
.magazine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 24px;
}

.mag-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.mag-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.4);
  background: var(--surface-2);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.mag-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy-900);
}

.mag-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}

.mag-card:hover .mag-card-media img {
  transform: scale(1.04);
}

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

.mag-card-title {
  font-family: "Georgia", Cambria, "Times New Roman", Times, serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--t1);
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.mag-card:hover .mag-card-title {
  color: var(--cyan);
}

.mag-card-title .card-arrow {
  display: inline-block;
  color: var(--cyan);
  margin-left: 6px;
  font-size: 13.5px;
  transition: transform 0.2s ease;
}

.mag-card:hover .mag-card-title .card-arrow {
  transform: translateX(4px);
}

.mag-card-meta {
  font-size: 12.5px;
  color: var(--t3);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mag-card-meta .sep {
  opacity: 0.4;
}

.mag-card-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--t2);
  margin-top: auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- 4b. READ MORE CATEGORY BUTTON --- */
.category-footer {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0b1c38;
  border: 1px solid rgba(56, 189, 248, 0.32);
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(2, 6, 20, 0.4);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
}

.btn-read-more:hover {
  background: #112a52;
  border-color: #38bdf8;
  color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(2, 6, 20, 0.55), 0 0 20px rgba(56, 189, 248, 0.2);
}

.btn-read-more .btn-icon {
  display: inline-block;
  color: #38bdf8;
  transition: transform 0.2s ease;
}

.btn-read-more:hover .btn-icon {
  transform: translateX(4px);
}

/* --- 4. TWO-COLUMN SPLIT CATEGORIES (KEMAJUAN HIDUP & ASET PRODUKTIF) --- */
.two-col-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 10px;
  margin-bottom: 56px;
  align-items: start;
}

.col-cat {
  min-width: 0;
  margin-bottom: 0;
}

.vertical-article-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vertical-article-list .mag-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: center;
  background: var(--navy-900);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  transition: all 0.24s var(--ease);
  min-width: 0;
}

.vertical-article-list .mag-card:hover {
  background: #0d1a38;
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.vertical-article-list .mag-card-media {
  width: 140px;
  height: 95px;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: auto;
  flex-shrink: 0;
}

.vertical-article-list .mag-card-body {
  padding: 0;
  min-width: 0;
}

.vertical-article-list .mag-card-title {
  font-size: 15.5px;
  line-height: 1.32;
  margin-bottom: 4px;
}

.vertical-article-list .mag-card-meta {
  margin-bottom: 6px;
  font-size: 11.5px;
}

.vertical-article-list .mag-card-excerpt {
  font-size: 12.5px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- 5. RESPONSIVE BREAKPOINTS --- */
@media (max-width: 960px) {
  .magazine-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 20px;
  }
  .featured-hero-media {
    height: 420px;
  }
  .featured-arrow {
    top: 50%;
  }
  .featured-arrow.prev { left: 10px; }
  .featured-arrow.next { right: 10px; }
  .featured-card {
    left: 16px;
    right: auto;
    max-width: calc(100% - 150px);
    padding: 22px 24px;
  }
  .slider-nav-bar {
    right: 16px;
    bottom: -32px;
    padding: 12px 14px;
  }
}

@media (max-width: 768px) {
  .two-col-categories {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 680px) {
  .featured-slider-wrap {
    margin-bottom: 30px;
  }
  .featured-hero-media {
    height: 260px;
    border-radius: 12px;
  }
  .featured-arrow {
    width: 38px;
    height: 38px;
    top: 130px;
  }
  .featured-arrow.prev { left: 8px; }
  .featured-arrow.next { right: 8px; }
  .slider-nav-bar {
    position: static;
    margin: 14px auto 0;
    display: flex;
    justify-content: center;
    width: fit-content;
  }
  .featured-card {
    position: static;
    margin-top: -24px;
    margin-left: 10px;
    margin-right: 10px;
    padding: 20px 18px;
    border-radius: 6px;
  }
  .featured-title {
    font-size: 21px;
  }
  .featured-desc {
    font-size: 13.5px;
  }
  .vertical-article-list .mag-card {
    grid-template-columns: 1fr;
  }
  .vertical-article-list .mag-card-media {
    height: 150px;
  }
  .editorial-divider {
    margin: 36px 0 24px;
  }
  .magazine-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .mag-card-title {
    font-size: 17px;
  }
}
