/**
 * Madrasah Fatih — Artikel & Berita Page Styles
 * css/artikel.css v7.0
 * Premium highlighted sliders, dark NatGeo news section, and enlarged cards/thumbnails.
 */

/* ============================================================
   0. PAGE BASE
   ============================================================ */
.articles-page-wrapper {
  padding-top: 130px;
  background-color: var(--bg-light);
}

/* ============================================================
   1. PAGE HERO — editorial banner
   ============================================================ */
.ab-page-hero {
  background: var(--bg-white);
  padding: 56px 0 44px;
}

.ab-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.ab-hero-labels {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.ab-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
}

.ab-label-news {
  background: var(--gradient-orange-pink);
  color: #fff;
}

.ab-label-article {
  background: var(--gradient-pink-purple);
  color: #fff;
}

.ab-hero-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  color: var(--primary-purple-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.ab-hero-title span {
  color: var(--accent-orange);
}

.ab-hero-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
}

/* ============================================================
   2. FEATURED HIGHLIGHT SECTION — "Pilihan Terbaru" (Stunning Redesign)
   ============================================================ */
.ab-featured-section {
  background: linear-gradient(180deg, var(--bg-white) 0%, rgba(106, 36, 97, 0.03) 100%);
  padding: 56px 0 64px;
  border-bottom: 1px solid rgba(106, 36, 97, 0.08);
}

.ab-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.ab-featured-panel {
  overflow: hidden;
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
  box-shadow: none;
}

.ab-featured-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(106, 36, 97, 0.08);
}

.ab-featured-panel-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-purple-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ab-featured-panel-title i {
  color: var(--accent-orange);
}

.ab-featured-panel-article .ab-featured-panel-title i {
  color: var(--primary-purple);
}

.ab-featured-slider-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
}

/* Glassmorphic Navigation Buttons for Featured Sliders */
.ab-featured-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all var(--transition-fast);
  z-index: 10;
  opacity: 0.8;
}

.ab-featured-nav-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-purple-dark);
  box-shadow: var(--shadow-md);
  opacity: 1;
}

.ab-featured-nav-btn.prev {
  left: 16px;
}

.ab-featured-nav-btn.next {
  right: 16px;
}


.ab-featured-slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.ab-featured-slide {
  flex: 0 0 100%;
  cursor: pointer;
}

/* Enhanced Highlight Cards (Full Image with Text Overlay) */
.ab-featured-card {
  position: relative;
  display: block;
  width: 100%;
  height: 280px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

.ab-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(106, 36, 97, 0.15);
}

.ab-featured-img-wrap {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 0;
  box-shadow: none;
}

.ab-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.ab-featured-card:hover .ab-featured-img {
  transform: scale(1.06);
}

/* Gradient Overlay for Text Readability */
.ab-featured-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.5) 65%, rgba(0, 0, 0, 0.85) 100%);
  z-index: 1;
  pointer-events: none;
}

.ab-featured-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
  color: #ffffff;
  background: transparent;
}

.ab-featured-card-title {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin: 0 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.ab-featured-author {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  display: block;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}


/* Dots */
.ab-slider-dots {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  justify-content: center;
}

.ab-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(106, 36, 97, 0.15);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
}

.ab-slider-dot.active {
  background: var(--accent-orange);
  width: 24px;
  border-radius: 4px;
}

.ab-featured-panel-article .ab-slider-dot.active {
  background: var(--primary-purple);
}

/* ============================================================
   3. CONTENT SECTIONS (shared layout wrapper)
   ============================================================ */
.ab-content-section {
  padding: 56px 0 64px;
}

/* Premium Light Section for News */
.ab-news-section {
  background-color: var(--bg-white);
  border-bottom: 1px solid rgba(106, 36, 97, 0.06);
}

.ab-articles-section {
  background: var(--bg-light);
}

/* Section Header Row */
.ab-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.ab-section-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ab-section-bar {
  width: 5px;
  height: 48px;
  border-radius: 3px;
  flex-shrink: 0;
}

.ab-bar-news {
  background: var(--gradient-orange-pink);
}

.ab-bar-article {
  background: var(--gradient-pink-purple);
}

.ab-section-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.ab-section-title {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800;
  color: var(--primary-purple-dark);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.ab-section-title span {
  color: var(--accent-orange);
}

.ab-articles-section .ab-section-title span {
  color: var(--primary-purple);
}

/* Controls Row */
.ab-section-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ab-sort-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ab-sort-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.ab-sort-btn {
  background: var(--bg-white);
  border: 1px solid rgba(106, 36, 97, 0.15);
  color: var(--text-muted);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
  white-space: nowrap;
  height: 34px;
  /* Fixed height so all buttons are identical */
}

.ab-sort-btn:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  background: rgba(242, 115, 41, 0.04);
}

.ab-sort-btn.active {
  background: var(--gradient-orange-pink);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(242, 115, 41, 0.25);
}

.ab-articles-section .ab-sort-btn.active {
  background: var(--gradient-pink-purple);
  box-shadow: 0 4px 12px rgba(106, 36, 97, 0.2);
}

.ab-scroll-hint {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0.7;
}

.ab-filter-select {
  background: var(--bg-white);
  border: 1px solid rgba(106, 36, 97, 0.15);
  color: var(--text-dark);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-main);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.ab-filter-select:focus {
  border-color: var(--primary-purple);
}

/* ============================================================
   4. VERTICAL GRID / LIST TRACK (Professional Redesign)
   ============================================================ */
.ab-hscroll-wrap {
  position: relative;
  overflow: visible;
}

/* Hilangkan overlay bayangan horizontal yang tidak lagi dibutuhkan */
.ab-hscroll-wrap::after,
.ab-articles-section .ab-hscroll-wrap::after {
  display: none;
}

#news-hscroll-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  overflow-x: visible;
  scroll-snap-type: none;
  padding-bottom: 0;
  cursor: default;
  user-select: auto;
}

#art-hscroll-track {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  overflow-x: visible;
  scroll-snap-type: none;
  padding-bottom: 0;
  cursor: default;
  user-select: auto;
}

/* ============================================================
   5. NEWS CARDS — Editorial Premium Card Grid
   ============================================================ */
.news-card {
  width: 100%;
  background: var(--bg-white);
  border: 1px solid rgba(106, 36, 97, 0.06);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 0; /* Ubah ke 0 agar gambar full bleed */
  box-shadow: var(--shadow-sm);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px rgba(106, 36, 97, 0.08);
  border-color: rgba(106, 36, 97, 0.15);
}

.news-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0;
  flex-shrink: 0;
}

.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.news-card:hover .news-card-img {
  transform: scale(1.06);
}

/* Kategori badge overlay di atas gambar */
.news-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gradient-orange-pink);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(242, 115, 41, 0.3);
  z-index: 2;
}

.news-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-purple-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  transition: color var(--transition-fast);
}

.news-card:hover .news-card-title {
  color: var(--accent-orange);
}

.news-card-snippet {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(106, 36, 97, 0.06);
}

.news-meta-date,
.news-meta-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-meta-date i,
.news-meta-author i {
  color: var(--accent-orange);
  font-size: 11px;
}

/* Hide scroll navigation buttons in grid mode */
.ab-hscroll-outer-container {
  position: relative;
  width: 100%;
}

.ab-scroll-nav-btn {
  display: none !important;
}

/* ============================================================
   6. ARTICLE ROW CARDS — Premium Editorial Row Layout
   ============================================================ */
.art-row-card {
  display: flex;
  gap: 24px;
  align-items: stretch;
  padding: 24px;
  background: var(--bg-white);
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(106, 36, 97, 0.05);
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.art-row-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(106, 36, 97, 0.06);
  border-color: rgba(106, 36, 97, 0.12);
}

.art-row-img-wrap {
  flex-shrink: 0;
  width: 170px;
  height: 125px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.art-row-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.art-row-card:hover .art-row-img {
  transform: scale(1.06);
}

.art-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.art-row-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.art-row-eyebrow {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary-purple);
  background: rgba(106, 36, 97, 0.06);
  padding: 3px 8px;
  border-radius: 4px;
}

.art-row-date {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.art-row-date i {
  color: var(--primary-purple);
}

.art-row-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-purple-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  transition: color var(--transition-fast);
}

.art-row-card:hover .art-row-title {
  color: var(--accent-orange);
}

.art-row-snippet {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.art-row-footer-meta {
  margin-top: auto;
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
}

.art-row-author {
  font-weight: 500;
}

.art-row-author strong {
  color: var(--primary-purple-dark);
  font-weight: 700;
}

/* ============================================================
   7. EMPTY & LOADING STATES
   ============================================================ */
.ab-empty-state {
  flex: 0 0 340px;
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  background: var(--bg-white);
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(106, 36, 97, 0.05);
}



.ab-empty-state i {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
  opacity: 0.3;
}

.ab-loading-shimmer {
  flex: 0 0 320px;
  height: 330px;
  border-radius: var(--border-radius-md);
  background: linear-gradient(90deg, rgba(115, 54, 107, 0.04) 25%, rgba(204, 160, 67, 0.1) 50%, rgba(115, 54, 107, 0.04) 75%);
  background-size: 200% 100%;
  animation: ab-shimmer 1.5s infinite;
  flex-shrink: 0;
}



.ab-art-shimmer {
  flex: 0 0 460px;
  height: 420px;
  border-radius: var(--border-radius-md);
  background: linear-gradient(90deg, rgba(115, 54, 107, 0.04) 25%, rgba(204, 160, 67, 0.1) 50%, rgba(115, 54, 107, 0.04) 75%);
  background-size: 200% 100%;
  animation: ab-shimmer 1.5s infinite;
  flex-shrink: 0;
}

@keyframes ab-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ============================================================
   8. FORM SECTION
   ============================================================ */
.write-article-section {
  background-color: var(--bg-white);
  border-top: 1px solid rgba(61, 27, 115, 0.05);
}

.write-form-container {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(106, 36, 97, 0.08);
  box-shadow: 0 30px 60px rgba(106, 36, 97, 0.06);
  border-radius: var(--border-radius-xl);
  padding: 54px 48px;
}

.form-group-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-purple-dark);
}

.form-control {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(106, 36, 97, 0.15);
  background-color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-family: var(--font-main);
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 4px rgba(242, 115, 41, 0.12);
  background-color: #ffffff;
}

textarea.form-control {
  min-height: 180px;
  resize: vertical;
}

.form-alert {
  padding: 16px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 600;
  display: none;
}

.form-alert-success {
  background-color: #eafaf1;
  color: #27ae60;
  border: 1px solid #a3e4d7;
}

/* ============================================================
   9. RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .ab-featured-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ab-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .news-card {
    flex: 0 0 280px;
  }

  .art-col-group {
    flex: 0 0 380px;
  }

  .ab-scroll-nav-btn {
    display: none;
  }
}

@media (max-width: 600px) {
  .ab-page-hero {
    padding: 32px 0 24px;
  }

  .ab-hero-title {
    font-size: 30px;
  }

  .ab-content-section {
    padding: 36px 0 44px;
  }

  .ab-featured-panel {
    padding: 18px;
  }

  .ab-featured-card {
    gap: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .ab-featured-img-wrap {
    width: 100%;
    height: 160px;
  }

  .news-card {
    flex: 0 0 260px;
  }

  .art-col-group {
    flex: 0 0 300px;
  }

  .write-form-container {
    padding: 24px 20px;
  }

  .form-group-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-group.full-width {
    grid-column: span 1;
  }
}

/* ============================================================
   8. CONTRIBUTION FORM MODAL & TRIGGER
   ============================================================ */
.contrib-trigger-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  margin-bottom: 20px;
}

.btn-contrib-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 36px;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-purple);
  background-color: rgba(115, 54, 107, 0.06);
  border: 1.5px solid rgba(115, 54, 107, 0.18);
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 15px rgba(115, 54, 107, 0.03);
}

.btn-contrib-trigger i {
  font-size: 16px;
}

.btn-contrib-trigger:hover {
  background-color: rgba(115, 54, 107, 0.12);
  border-color: rgba(115, 54, 107, 0.35);
  color: var(--primary-purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(115, 54, 107, 0.08);
}

.btn-contrib-trigger:active {
  transform: translateY(0);
}

#write-article-modal-overlay .modal-box {
  padding: 80px 24px;
}

/* ============================================================
   10. MOBILE & TABLET SPECIFIC STYLES (≤ 768px - Android Mode)
   ============================================================ */
@media (max-width: 1024px) {
  #news-hscroll-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  #art-hscroll-track {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  /* Page Hero: compact */
  .ab-page-hero {
    padding: 36px 0 24px;
  }

  .ab-hero-title {
    font-size: 32px;
  }

  .ab-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Featured Grid: Single Column */
  .ab-featured-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ab-featured-card {
    height: 240px;
  }

  .ab-featured-card-title {
    font-size: 17px;
  }

  /* Section Header: stack controls below title */
  .ab-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }

  /* Sort Controls: horizontal scroll (compact, no overflow) */
  .ab-section-controls {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 6px;
    gap: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .ab-section-controls::-webkit-scrollbar {
    display: none;
  }

  .ab-sort-group {
    flex-shrink: 0;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .ab-sort-btn {
    padding: 6px 14px;
    font-size: 11px;
    height: 32px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .ab-sort-label {
    display: none; /* Sembunyikan label "Urutkan" di mobile demi space */
  }

  .ab-filter-select {
    flex-shrink: 0;
    font-size: 11px;
    padding: 6px 12px;
    height: 32px;
    border-radius: 20px;
  }

  .ab-scroll-hint {
    display: none; /* Tidak ada hint scroll horizontal karena sudah vertikal grid */
  }

  /* Content sections: less padding */
  .ab-content-section {
    padding: 36px 0 40px;
  }

  /* News Grid Mobile */
  #news-hscroll-track {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-card-body {
    padding: 20px;
  }

  .news-card-title {
    font-size: 16px;
  }

  .news-card-snippet {
    font-size: 13px;
  }

  /* Article Row Cards Mobile: Ubah dari row (horizontal) menjadi card (vertikal) */
  #art-hscroll-track {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .art-row-card {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  .art-row-img-wrap {
    width: 100%;
    height: 180px;
    border-radius: 10px;
  }

  .art-row-body {
    padding: 4px 4px 0 4px;
    gap: 8px;
  }

  .art-row-title {
    font-size: 15px;
  }

  .art-row-snippet {
    font-size: 13px;
    -webkit-line-clamp: 3; /* Tampilkan sedikit lebih banyak di detail vertikal */
  }

  /* Form: compact */
  .write-form-container {
    padding: 30px 20px;
  }

  .form-group-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-group.full-width {
    grid-column: span 1;
  }
  
  .contrib-trigger-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 480px) {
  .ab-hero-title {
    font-size: 26px;
  }
  
  .ab-hero-subtitle {
    font-size: 13.5px;
  }

  .ab-featured-card {
    height: 200px;
  }

  .ab-featured-card-body {
    padding: 16px;
  }

  .ab-featured-card-title {
    font-size: 15px;
  }

  .art-row-img-wrap {
    height: 150px;
  }
}

/* ============================================================
   HASHTAG FILTER BAR & BADGES
   ============================================================ */
.ab-hashtag-filter-section {
  background: var(--bg-white);
  padding: 16px 0;
  border-bottom: 1px solid rgba(106, 36, 97, 0.08);
}

.ab-hashtag-container {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ab-hashtag-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.ab-hashtag-label i {
  color: var(--accent-orange);
}

.ab-hashtag-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ab-hashtag-pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(106, 36, 97, 0.04);
  border: 1px solid rgba(106, 36, 97, 0.12);
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-main);
  transition: all var(--transition-fast);
  outline: none;
}

.ab-hashtag-pill:hover {
  color: var(--accent-orange);
  border-color: var(--accent-orange);
  background: rgba(242, 115, 41, 0.06);
}

.ab-hashtag-pill.active {
  background: var(--gradient-orange-pink);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(242, 115, 41, 0.25);
}

/* Card Hashtag Badges */
.card-hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.card-hashtag-item {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-orange);
  background: rgba(242, 115, 41, 0.08);
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.card-hashtag-item:hover {
  background: var(--accent-orange);
  color: #ffffff;
}

.art-row-card .card-hashtag-item {
  color: var(--primary-purple);
  background: rgba(106, 36, 97, 0.08);
}

.art-row-card .card-hashtag-item:hover {
  background: var(--primary-purple);
  color: #ffffff;
}

/* Modal Hashtags Styling */
.modal-hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -10px 0 20px 0;
}

.modal-hashtag-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-purple-dark);
  background: rgba(106, 36, 97, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid rgba(106, 36, 97, 0.12);
}

.modal-hashtag-badge:hover {
  background: var(--gradient-orange-pink);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(242, 115, 41, 0.25);
}

/* ============================================================
   PAGINATION CONTROLS
   ============================================================ */
.ab-pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.ab-page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(106, 36, 97, 0.15);
  background: var(--bg-white);
  color: var(--primary-purple-dark);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
  font-family: var(--font-main);
  outline: none;
}

.ab-page-btn:hover {
  background: rgba(106, 36, 97, 0.08);
  border-color: var(--primary-purple);
  color: var(--primary-purple);
  transform: translateY(-2px);
}

.ab-page-btn.active {
  background: linear-gradient(135deg, #73366b 0%, #3d1b73 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px rgba(115, 54, 107, 0.35);
}

.ab-page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================================
   MODAL EXTRA PHOTOS GALLERY STYLING
   ============================================================ */
.modal-extra-gallery {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed rgba(106, 36, 97, 0.2);
}

.modal-extra-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-purple-dark);
  margin-bottom: 14px;
}

.modal-extra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.modal-extra-photo-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.08);
  aspect-ratio: 16 / 10;
  background: var(--bg-cream-light);
}

.modal-extra-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.modal-extra-photo-item:hover .modal-extra-img {
  transform: scale(1.05);
}