/**
 * Madrasah Fatih Home Page Styles
 * CSS (css/home.css)
 * Implements: Floating hero slider, 3D rotating program carousel, 
 * Sahabat Fatih banner, article grids, Quran section, stats numbers, 
 * and polaroid gallery sliding cards.
 */

/* ==========================================================
   1. HERO SLIDER SECTION (PKS CARD STYLE WITH MARGINS)
   ========================================================== */
.hero-slider-section {
  padding: 80px 0 0 0;
  /* Leaves space for sticky navigation, no bottom padding for flush effect */
  background: var(--bg-dark);
}

.hero-slider-container {
  border-radius: 0;
  overflow: hidden;
  position: relative;
  height: 580px;
  box-shadow: none;
  background-color: var(--bg-dark);
  width: 100%;
  margin: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92) contrast(1.05);
}

/* Glassmorphism text overlay on hero slide */
.hero-slide-overlay {
  position: absolute;
  bottom: 60px;
  left: 60px;
  max-width: 620px;
  padding: 36px;
  background: rgba(34, 9, 31, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-md);
  z-index: 10;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-slide.active .hero-slide-overlay {
  opacity: 1;
  transform: translateY(0);
  display: flex;
}

.hero-slide-tag {
  background: var(--gradient-orange-pink);
  color: #fff;
  padding: 6px 18px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 16px;
  letter-spacing: 1.5px;
  box-shadow: var(--shadow-neon);
}

.hero-slide-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #ffffff;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.hero-slide-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

/* Hero Controls */
.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: var(--transition-fast);
}

.hero-nav-btn:hover {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.hero-btn-prev {
  left: 20px;
}

.hero-btn-next {
  right: 20px;
}

.hero-dots {
  position: absolute;
  top: 30px;
  right: 40px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-fast);
}

.hero-dot.active {
  background-color: var(--accent-orange);
  width: 28px;
  border-radius: 5px;
}

/* ==========================================================
   2. SECTION 2: PROGRAM ACARA - MODERN IMAGE OVERLAY GRID
   ========================================================== */
.program-home-section {
  background-color: var(--bg-white);
}

/* ── Section Header Typography ──────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px auto;
}

.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-orange);
  letter-spacing: 2.5px;
  margin-bottom: 16px;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(227, 172, 82, 0.1) 0%, rgba(207, 75, 108, 0.08) 100%);
  border: 1px solid rgba(227, 172, 82, 0.25);
  border-radius: 50px;
  position: relative;
}

.section-subtitle::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--gradient-orange-pink);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-subtitle::after {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--gradient-orange-pink);
  border-radius: 2px;
  flex-shrink: 0;
}

/* section-title dan span mengikuti global style.css (gradient orange-pink) */

.section-description {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.6;
}

/* Program Home Slider Layout */
.program-home-slider-wrapper {
  position: relative;
  margin-bottom: 40px;
  padding: 0;
}

.program-home-slider-track-container {
  overflow: hidden;
  width: 100%;
  padding: 10px 0 20px 0;
}

.program-home-slider-track {
  display: flex;
  gap: 30px;
  transition: transform var(--transition-normal);
  cursor: grab;
}

.program-home-slider-track:active {
  cursor: grabbing;
}

/* Glassmorphic Arrows */
.prog-home-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(106, 36, 97, 0.08);
  color: var(--primary-purple-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(106, 36, 97, 0.08);
}

.prog-home-nav-btn:hover {
  background: var(--gradient-orange-pink);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-50%) scale(1.08);
  box-shadow: var(--shadow-neon);
}

.prog-home-btn-prev {
  left: -23px;
}

.prog-home-btn-next {
  right: -23px;
}

.program-home-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(106, 36, 97, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  cursor: pointer;
  flex: 0 0 calc(33.333% - 20px);
  /* 3 cards visible */
  height: 440px;
  position: relative;
}

.program-home-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(106, 36, 97, 0.12);
}

.program-home-card-img-wrap {
  position: relative;
  height: 190px;
  width: 100%;
  overflow: hidden;
}

.program-home-card-img-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 60%, rgba(18, 6, 18, 0.1) 100%);
  transition: opacity var(--transition-normal);
}

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

.program-home-card:hover .program-home-card-img {
  transform: scale(1.05);
}

.program-home-card:hover .program-home-card-img-wrap::after {
  opacity: 0.8;
}

.program-home-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.program-home-card-badge {
  align-self: flex-start;
  background: rgba(242, 115, 41, 0.06);
  color: var(--accent-orange);
  border: 1px solid rgba(242, 115, 41, 0.15);
  font-size: 10px;
  font-weight: 850;
  padding: 6px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  transition: all var(--transition-fast);
}

.program-home-card:hover .program-home-card-badge {
  background: var(--gradient-orange-pink);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(242, 115, 41, 0.2);
}

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

.program-home-card:hover .program-home-card-title {
  color: var(--primary-purple);
}

.program-home-card-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.program-home-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(115, 54, 107, 0.06);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary-purple);
}

.program-home-card-readmore {
  color: var(--primary-gold);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-fast);
}

.program-home-card:hover .program-home-card-readmore {
  gap: 10px;
}

.program-home-more {
  text-align: center;
  margin-top: 20px;
}

/* ==========================================================
   3. SECTION 3: SAHABAT FATIH JOIN (CALL TO ACTION)
   ========================================================== */
.sahabat-fatih-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(246, 243, 248, 0.95) 100%), url('../aset/sahabat_fatih_bg.png');
  background-size: cover;
  background-position: center;
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-xl);
  margin: 80px auto;
  max-width: 1200px;
  padding: 60px 80px;
  border: 1px solid rgba(106, 36, 97, 0.08);
  box-shadow: var(--shadow-md);
}

.sahabat-fatih-section::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 115, 41, 0.08) 0%, transparent 70%);
  z-index: 1;
}

.sahabat-fatih-section .container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 2;
  padding: 0;
  max-width: 100%;
}

.sahabat-left-heading {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary-purple-dark);
  letter-spacing: -2px;
}

.sahabat-left-heading span {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.sahabat-right-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sahabat-p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
}

/* ==========================================================
   4. SECTION 4: ARTIKEL TERKINI GRID
   ========================================================== */
.home-articles-section {
  background-color: var(--bg-light);
}

.home-articles-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.home-articles-col {
  display: flex;
  flex-direction: column;
}

.home-articles-col .col-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-purple-dark);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--primary-purple);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.3px;
}

.home-articles-col .col-title i {
  color: var(--accent-orange);
}

/* === NEWS SLIDER WRAPPER (Berita Terbaru slider) === */
.home-news-slider-wrapper {
  position: relative;
}

/* Track container: hides overflow so only visible cards show */
.home-news-slider-track-container {
  overflow: hidden;
  width: 100%;
}

/* Track: flex row, cards scroll horizontally */
.home-news-slider-track {
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform var(--transition-normal);
}

/* Navigation buttons for the news slider — matches prog-home-nav-btn style */
.home-news-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(106, 36, 97, 0.12);
  color: var(--primary-purple-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(106, 36, 97, 0.10);
  font-size: 13px;
}

.home-news-nav-btn:hover {
  background: var(--gradient-orange-pink);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-50%) scale(1.08);
  box-shadow: var(--shadow-neon);
}

.home-news-btn-prev {
  left: -18px;
}

.home-news-btn-next {
  right: -18px;
}

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

/* === EDITORIAL BORDERLESS CARD === */
.vertical-article-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-white);
  border: 1px solid rgba(106, 36, 97, 0.04);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(106, 36, 97, 0.015);
  cursor: pointer;
  padding: 16px;
  margin-bottom: 16px;
  transition: all var(--transition-normal);
}

.vertical-article-card:last-child {
  margin-bottom: 0;
}

.vertical-article-card:hover {
  background: var(--bg-white);
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-md);
  border-color: rgba(106, 36, 97, 0.08);
}

/* Thumbnail — small square with strong border-radius */
.vertical-article-card .card-img-wrap {
  width: 90px;
  height: 90px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(106, 36, 97, 0.05);
}

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

.vertical-article-card:hover .card-img {
  transform: scale(1.08);
}

/* Body — stacked vertically */
.vertical-article-card .card-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
  min-width: 0;
}

/* Category label — small, uppercase, spaced, orange */
.vertical-article-card .card-cat {
  font-size: 10px;
  font-weight: 800;
  color: var(--primary-purple);
  background: rgba(106, 36, 97, 0.06);
  padding: 3px 10px;
  border-radius: 4px;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  line-height: 1;
}

/* Title — bold, dark, 2 lines max */
.vertical-article-card .card-title {
  font-size: 15px;
  font-weight: 750;
  color: var(--primary-purple-dark);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  transition: color var(--transition-fast);
}

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

/* Author row */
.vertical-article-card .card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.vertical-article-card .card-author {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vertical-article-card .card-author i {
  color: var(--primary-purple-light);
  font-size: 11px;
}

/* Date — muted, right */
.vertical-article-card .card-date {
  font-weight: 500;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Specific details for News Cards */
.vertical-news-card .card-title {
  margin-top: 2px;
}

.vertical-news-card .card-footer {
  border-top: 1px solid rgba(106, 36, 97, 0.05);
  padding-top: 6px;
  margin-top: 2px;
}

/* Hide old card-meta container */
.vertical-article-card .card-meta {
  display: none;
}

.article-card-img-wrap {
  width: 100%;
  height: 160px;
  overflow: hidden;
  position: relative;
}

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

.article-card:hover .article-card-img {
  transform: scale(1.08);
}

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

.article-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.article-card-cat {
  color: var(--accent-orange);
}

.article-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-purple-dark);
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-purple);
  border-top: 1px solid rgba(61, 27, 115, 0.05);
  padding-top: 12px;
}

.article-card-author {
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================
   5. SECTION 5: AYAT AL-QURAN
   ========================================================== */
.quran-section {
  background: linear-gradient(135deg, #2b0b29 0%, #120311 100%);
  position: relative;
  overflow: hidden;
}

.quran-section .container {
  position: relative;
  z-index: 2;
}

.quran-section::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, rgba(142, 63, 132, 0.22) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

.quran-section::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, rgba(242, 115, 41, 0.12) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================
   6. SECTION 6: STATS & KORWIL CITIES
   ========================================================== */
.stats-section {
  background-color: var(--bg-white);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.stat-interactive-card {
  background: linear-gradient(135deg, rgba(106, 36, 97, 0.02) 0%, rgba(242, 115, 41, 0.02) 100%);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  border: 1px dashed rgba(106, 36, 97, 0.15);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-interactive-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-purple-light);
  border-style: solid;
  box-shadow: var(--shadow-md), 0 0 15px rgba(106, 36, 97, 0.05);
  background: linear-gradient(135deg, rgba(106, 36, 97, 0.04) 0%, rgba(242, 115, 41, 0.04) 100%);
}

.stat-interactive-card.active {
  border-color: var(--primary-purple);
  border-style: solid;
  box-shadow: 0 0 25px rgba(106, 36, 97, 0.15);
  background: linear-gradient(135deg, rgba(106, 36, 97, 0.06) 0%, rgba(242, 115, 41, 0.06) 100%);
}

.stat-number {
  font-size: 100px;
  font-weight: 800;
  line-height: 1;
  color: var(--primary-purple);
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--accent-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  transition: transform var(--transition-normal);
}

.stat-interactive-card:hover .stat-number {
  transform: scale(1.05);
}

.stat-label-large {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-purple-dark);
  margin-bottom: 8px;
}

.stat-click-hint {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.stat-interactive-card:hover .stat-click-hint {
  color: var(--primary-purple);
}

.stat-interactive-card.active .stat-click-hint {
  color: var(--accent-orange);
}

/* Expansion Details Panel styles */
.stats-details-panel {
  position: relative;
  grid-column: 1 / -1;
  background-color: var(--bg-light);
  border: 1px solid rgba(106, 36, 97, 0.08);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  margin-top: -10px;
  box-shadow: var(--shadow-sm);
  display: none;
}

.stats-details-panel.active {
  display: block;
  animation: statsSlideDownFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes statsSlideDownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stats-details-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.stats-details-close:hover {
  color: var(--primary-purple);
}

.details-inner {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.details-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(106, 36, 97, 0.1) 0%, rgba(242, 115, 41, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary-purple);
  flex-shrink: 0;
}

.details-text {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.6;
  font-weight: 500;
}

.details-text strong {
  color: var(--primary-purple);
  font-weight: 700;
}

.details-cities-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 16px;
}

.korwil-cities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.city-tag {
  background-color: var(--bg-light);
  color: var(--primary-purple);
  border: 1px solid rgba(61, 27, 115, 0.1);
  padding: 8px 18px;
  border-radius: var(--border-radius-sm);
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition-fast);
  cursor: default;
}

.city-tag:hover {
  background-color: var(--accent-orange);
  color: #fff;
  border-color: var(--accent-orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-neon);
}

/* ==========================================================
   7. SECTION 7: POLAROID GALLERY LINI MASA SLIDER
   ========================================================== */
.polaroid-gallery-section {
  background-color: var(--bg-light);
  overflow: hidden;
}

/* Polaroid track and container */
.polaroid-slider-outer {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 40px 0;
  position: relative;
}

.polaroid-track {
  display: flex;
  gap: 40px;
  padding: 0 40px;
  width: max-content;
  animation: polaroid-auto-scroll 35s linear infinite;
}

.polaroid-track:hover {
  animation-play-state: paused;
}

/* Custom continuous scrolling keyframe */
@keyframes polaroid-auto-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-33.333%, 0, 0);
  }
}

.polaroid-card {
  width: 320px;
  height: 240px;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
  z-index: 10;
  padding: 0;
  background-color: var(--bg-dark-card);
}

/* Remove polaroid tilt degrees for a clean, professional grid alignment */
.polaroid-card:nth-child(even),
.polaroid-card:nth-child(odd),
.polaroid-card:nth-child(3n) {
  transform: none;
}

.polaroid-card:hover {
  transform: translateY(-10px) scale(1.03) !important;
  box-shadow: 0 15px 30px rgba(115, 54, 107, 0.25);
  z-index: 20;
}

.polaroid-img-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: none;
  margin-bottom: 0;
}

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

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

.polaroid-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px 20px 20px;
  background: linear-gradient(to top, rgba(34, 15, 32, 0.98) 0%, rgba(34, 15, 32, 0.6) 55%, transparent 100%);
  font-family: var(--font-main);
  font-style: normal;
  font-size: 14px;
  font-weight: 750;
  text-align: left;
  color: #ffffff;
  margin-top: 0;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ==========================================================
   8. RESPONSIVE MEDIA QUERIES FOR HOME
   ========================================================== */
@media (max-width: 992px) {
  .home-articles-split {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-slider-container {
    height: 400px;
  }

  .hero-slide-title {
    font-size: 24px;
  }

  .program-home-card {
    flex: 0 0 calc(50% - 15px) !important;
    height: 390px !important;
  }

  .prog-home-btn-prev {
    left: -15px !important;
  }

  .prog-home-btn-next {
    right: -15px !important;
  }

  .sahabat-fatih-section .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sahabat-left-heading {
    font-size: 38px;
    text-align: center;
  }

  .sahabat-right-content {
    text-align: center;
    align-items: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 26px !important;
  }

  /* Hero: compact height, smaller buttons */
  .hero-slider-container {
    height: 260px;
  }

  .hero-nav-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.25) !important;
  }

  .hero-btn-prev { left: 10px !important; }
  .hero-btn-next { right: 10px !important; }

  .hero-slide-overlay {
    bottom: 16px;
    left: 16px;
    right: 16px;
    padding: 12px 16px;
  }

  .hero-slide-title { font-size: 16px; }

  /* Program slider: swipeable cards */
  .program-home-slider-track-container {
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none;
  }
  .program-home-slider-track-container::-webkit-scrollbar { display: none; }

  .program-home-slider-track {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px !important;
    padding: 10px 0 20px 0 !important;
  }

  .program-home-card {
    flex: 0 0 85% !important;
    scroll-snap-align: start !important;
    height: 360px !important;
  }

  .prog-home-nav-btn { display: none !important; }

  /* Articles: single column, hide nav buttons (they only show with >3 news) */
  .home-articles-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* News slider wrapper: adjust margin for hidden nav buttons */
  .home-news-slider-wrapper {
    margin: 0;
  }

  .home-news-btn-prev { left: -12px; }
  .home-news-btn-next { right: -12px; }

  /* Stats: single column, smaller number */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stat-number { font-size: 64px; }
  .stat-label-large { font-size: 18px; }

  .stat-interactive-card { padding: 32px 24px; }

  /* Sahabat Fatih: compact */
  .sahabat-fatih-section {
    padding: 36px 24px !important;
    margin: 30px auto !important;
  }
  .sahabat-left-heading { font-size: 36px !important; }

  /* Section header smaller */
  .section-header {
    margin-bottom: 36px;
  }
}

