/**
 * Madrasah Fatih About Us Page Styles
 * CSS (css/tentang.css)
 * Implements: Profile section, Visi Misi blocks, 
 * 5 values cards with glowing borders, and timeline history.
 */

.about-page-wrapper {
  padding-top: 130px; /* Space for the sticky navbar */
}

/* ==========================================================
   PAGE TITLE SECTION (shared header like Program/Linimasa/Artikel)
   ========================================================== */
.about-page-title-section {
  background-color: var(--bg-white);
  padding: 60px 0 40px 0;
}

/* ==========================================================
   1. MAIN PROFILE SECTION (GRID)
   ========================================================== */
.profile-section {
  background-color: var(--bg-white);
  padding-top: 0;
}

/* Profile title uses global .profile-main-title */

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}

.profile-image-wrap {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg-light);
  position: relative;
}

.profile-image-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(115, 54, 107, 0.15) 0%, rgba(221, 138, 85, 0.15) 100%);
  z-index: 2;
  pointer-events: none;
}

.profile-image {
  width: 100%;
  height: auto;
  display: block;
}

.profile-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

/* ==========================================================
   2. VISI & MISI SECTION
   ========================================================== */
.visi-misi-section {
  background-color: var(--bg-light);
}

.visi-misi-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.visi-box {
  background: linear-gradient(135deg, var(--primary-purple-dark) 0%, #170718 100%);
  color: #fff;
  padding: 50px 48px;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 6px solid var(--accent-yellow);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.visi-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(106, 36, 97, 0.15);
}

.visi-box::before {
  content: '“';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 160px;
  color: rgba(204, 160, 67, 0.08);
  line-height: 1;
}

.visi-box h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--accent-yellow);
  letter-spacing: 0.5px;
}

.visi-text {
  font-size: 18px;
  line-height: 1.8;
  font-style: italic;
  position: relative;
  z-index: 2;
  font-family: var(--font-main);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.misi-box {
  background-color: var(--bg-white);
  padding: 50px 48px;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(106, 36, 97, 0.06);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

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

.misi-box h3 {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-purple-dark);
  margin-bottom: 24px;
}

.misi-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  list-style: none;
}

.misi-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform var(--transition-fast);
}

.misi-item:hover {
  transform: translateX(5px);
}

.misi-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-orange-pink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.misi-text-item {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dark);
  font-weight: 600;
}

/* ==========================================================
   3. VALUES SECTION — 5R Madrasah Fatih  (Bookmark Tabs + Side Panel)
   ========================================================== */
.values-section {
  background-color: var(--bg-white);
  position: relative;
  overflow: hidden;
}

/* Decorative background blobs */
.values-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106,36,97,0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* ─── Main Tab Interface Wrapper ─── */
.r5-tab-interface {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 0;
  margin-top: 48px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(34,9,31,0.06), 0 4px 20px rgba(34,9,31,0.03);
  border: 1px solid rgba(106,36,97,0.07);
}

/* ─── LEFT: Bookmark Tabs Column ─── */
.r5-tabs-col {
  display: flex;
  flex-direction: column;
  background: #f5f4f7;
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(106,36,97,0.07);
}

/* Tab list */
.r5-tab-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 20px;
  flex: 1;
  position: relative;
  z-index: 2;
  justify-content: center;
}

/* Individual Bookmark Tab Button */
.r5-tab-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  cursor: pointer;
  border: none;
  background: #eae7ed;
  border-radius: 16px;
  text-align: left;
  position: relative;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  font-family: var(--font-main);
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(34,9,31,0.02);
}

/* Hover fill for inactive tabs */
.r5-tab-btn:not(.active):hover {
  background: #dfdae5;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(34,9,31,0.05);
}

/* Active state color themes */
.r5-tab-btn[data-r5="r1"].active { background: linear-gradient(135deg, #8a3481 0%, #6a2461 100%); box-shadow: 0 8px 24px rgba(106,36,97,0.22); }
.r5-tab-btn[data-r5="r2"].active { background: linear-gradient(135deg, #f5813d 0%, #d45e10 100%); box-shadow: 0 8px 24px rgba(242,115,41,0.22); }
.r5-tab-btn[data-r5="r3"].active { background: linear-gradient(135deg, #1dbfbf 0%, #0d8f8f 100%); box-shadow: 0 8px 24px rgba(20,165,165,0.22); }
.r5-tab-btn[data-r5="r4"].active { background: linear-gradient(135deg, #ddb84a 0%, #b88f25 100%); box-shadow: 0 8px 24px rgba(204,160,67,0.22); }
.r5-tab-btn[data-r5="r5"].active { background: linear-gradient(135deg, #e04f7a 0%, #c02d55 100%); box-shadow: 0 8px 24px rgba(217,61,98,0.22); }

.r5-tab-btn.active {
  transform: translateY(-2px);
}

/* Number box — clean circular badge with a single centered number */
.r5-tab-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.03);
  color: #5b5167;
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-main);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.r5-tab-num::before {
  content: attr(data-num);
}

/* Active state for circular badge (becomes white with theme color text) */
.r5-tab-btn.active .r5-tab-num {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Per-color numbers on active state */
.r5-tab-btn[data-r5="r1"].active .r5-tab-num { color: #6a2461; }
.r5-tab-btn[data-r5="r2"].active .r5-tab-num { color: #d45e10; }
.r5-tab-btn[data-r5="r3"].active .r5-tab-num { color: #0d8f8f; }
.r5-tab-btn[data-r5="r4"].active .r5-tab-num { color: #b88f25; }
.r5-tab-btn[data-r5="r5"].active .r5-tab-num { color: #c02d55; }

/* Tab text block */
.r5-tab-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

/* Tab name (text wrap enabled, no overflow ellipsis) */
.r5-tab-name {
  font-size: 15px;
  font-weight: 800;
  color: #4a3f54;
  line-height: 1.25;
  transition: color 0.2s;
  white-space: normal;
  word-break: break-word;
}
.r5-tab-btn:not(.active):hover .r5-tab-name {
  color: #2c1a3b;
}
.r5-tab-btn.active .r5-tab-name {
  color: #ffffff;
}

/* Arrow chevron */
.r5-tab-chevron {
  margin-left: auto;
  font-size: 11px;
  color: rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
  flex-shrink: 0;
}
.r5-tab-btn:not(.active):hover .r5-tab-chevron {
  color: rgba(0, 0, 0, 0.4);
  transform: translateX(2px);
}
.r5-tab-btn.active .r5-tab-chevron {
  color: #ffffff;
  transform: translateX(3px);
}

/* Hide divider as we now use gap and card items layout */
.r5-tab-divider {
  display: none;
}


/* ─── RIGHT: Content Panel Column ─── */
.r5-panels-col {
  background: var(--bg-white);
  position: relative;
}

/* Individual Panel */
.r5-panel {
  display: none;
  padding: 36px 44px;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  animation: r5PanelIn 0.35s cubic-bezier(0.16,1,0.3,1) both;
}

.r5-panel.active {
  display: flex;
}

@keyframes r5PanelIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Panel top hero area */
.r5-panel-hero {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(106,36,97,0.07);
}

/* Large icon container */
.r5-panel-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
  position: relative;
}
/* Glow ring */
.r5-panel-icon-wrap::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 24px;
  opacity: 0.2;
}

/* Per-panel icon colours */
.r5-panel[data-panel="r1"] .r5-panel-icon-wrap { background: rgba(106,36,97,0.08); color: #6a2461; }
.r5-panel[data-panel="r1"] .r5-panel-icon-wrap::after { border: 2px solid #6a2461; }
.r5-panel[data-panel="r2"] .r5-panel-icon-wrap { background: rgba(242,115,41,0.09); color: #d45e10; }
.r5-panel[data-panel="r2"] .r5-panel-icon-wrap::after { border: 2px solid #f27329; }
.r5-panel[data-panel="r3"] .r5-panel-icon-wrap { background: rgba(20,165,165,0.09); color: #0c8080; }
.r5-panel[data-panel="r3"] .r5-panel-icon-wrap::after { border: 2px solid #14a5a5; }
.r5-panel[data-panel="r4"] .r5-panel-icon-wrap { background: rgba(204,160,67,0.10); color: #8a6820; }
.r5-panel[data-panel="r4"] .r5-panel-icon-wrap::after { border: 2px solid #cca043; }
.r5-panel[data-panel="r5"] .r5-panel-icon-wrap { background: rgba(217,61,98,0.09); color: #b02a4a; }
.r5-panel[data-panel="r5"] .r5-panel-icon-wrap::after { border: 2px solid #d93d62; }

/* Panel title area */
.r5-panel-title-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.r5-panel-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  padding: 3px 10px;
  border-radius: 6px;
  align-self: flex-start;
}
.r5-panel[data-panel="r1"] .r5-panel-badge { background: linear-gradient(90deg, #8a3481, #6a2461); }
.r5-panel[data-panel="r2"] .r5-panel-badge { background: linear-gradient(90deg, #f5813d, #d45e10); }
.r5-panel[data-panel="r3"] .r5-panel-badge { background: linear-gradient(90deg, #1dbfbf, #0d8f8f); }
.r5-panel[data-panel="r4"] .r5-panel-badge { background: linear-gradient(90deg, #ddb84a, #b88f25); }
.r5-panel[data-panel="r5"] .r5-panel-badge { background: linear-gradient(90deg, #e04f7a, #c02d55); }

.r5-panel-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary-purple-dark);
  margin: 0;
  line-height: 1.15;
}

/* Per-color title accent */
.r5-panel[data-panel="r1"] .r5-panel-title { color: #4a1845; }
.r5-panel[data-panel="r2"] .r5-panel-title { color: #7a3000; }
.r5-panel[data-panel="r3"] .r5-panel-title { color: #0a5c5c; }
.r5-panel[data-panel="r4"] .r5-panel-title { color: #5a4010; }
.r5-panel[data-panel="r5"] .r5-panel-title { color: #7a1a30; }

/* Description text */
.r5-panel-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
}

/* ── Pillars / bullet items ── */
.r5-panel-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.r5-pillar {
  background: var(--bg-light);
  border-radius: 14px;
  padding: 16px 14px;
  border: 1px solid transparent;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.r5-pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
}

.r5-pillar:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(34,9,31,0.05);
}

/* Per-panel pillar accents */
.r5-panel[data-panel="r1"] .r5-pillar { border-color: rgba(106,36,97,0.07); }
.r5-panel[data-panel="r1"] .r5-pillar:hover { border-color: rgba(106,36,97,0.15); }
.r5-panel[data-panel="r1"] .r5-pillar::before { background: linear-gradient(90deg, #8a3481, #6a2461); }

.r5-panel[data-panel="r2"] .r5-pillar { border-color: rgba(242,115,41,0.07); }
.r5-panel[data-panel="r2"] .r5-pillar:hover { border-color: rgba(242,115,41,0.18); }
.r5-panel[data-panel="r2"] .r5-pillar::before { background: linear-gradient(90deg, #f5813d, #d45e10); }

.r5-panel[data-panel="r3"] .r5-pillar { border-color: rgba(20,165,165,0.07); }
.r5-panel[data-panel="r3"] .r5-pillar:hover { border-color: rgba(20,165,165,0.18); }
.r5-panel[data-panel="r3"] .r5-pillar::before { background: linear-gradient(90deg, #1dbfbf, #0d8f8f); }

.r5-panel[data-panel="r4"] .r5-pillar { border-color: rgba(204,160,67,0.07); }
.r5-panel[data-panel="r4"] .r5-pillar:hover { border-color: rgba(204,160,67,0.2); }
.r5-panel[data-panel="r4"] .r5-pillar::before { background: linear-gradient(90deg, #ddb84a, #b88f25); }

.r5-panel[data-panel="r5"] .r5-pillar { border-color: rgba(217,61,98,0.07); }
.r5-panel[data-panel="r5"] .r5-pillar:hover { border-color: rgba(217,61,98,0.18); }
.r5-panel[data-panel="r5"] .r5-pillar::before { background: linear-gradient(90deg, #e04f7a, #c02d55); }

.r5-pillar-title {
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 6px 0;
  line-height: 1.2;
}
.r5-panel[data-panel="r1"] .r5-pillar-title { color: #6a2461; }
.r5-panel[data-panel="r2"] .r5-pillar-title { color: #c4510a; }
.r5-panel[data-panel="r3"] .r5-pillar-title { color: #0c8080; }
.r5-panel[data-panel="r4"] .r5-pillar-title { color: #8a6820; }
.r5-panel[data-panel="r5"] .r5-pillar-title { color: #b02a4a; }

.r5-pillar-text {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* ── Quote block ── */
.r5-panel-quote {
  border-radius: 14px;
  padding: 16px 18px 16px 46px;
  font-size: 12.5px;
  line-height: 1.75;
  font-style: italic;
  color: var(--text-muted);
  position: relative;
  margin-top: 4px;
}
.r5-panel[data-panel="r1"] .r5-panel-quote { background: rgba(106,36,97,0.04); }
.r5-panel[data-panel="r2"] .r5-panel-quote { background: rgba(242,115,41,0.04); }
.r5-panel[data-panel="r3"] .r5-panel-quote { background: rgba(20,165,165,0.04); }
.r5-panel[data-panel="r4"] .r5-panel-quote { background: rgba(204,160,67,0.05); }
.r5-panel[data-panel="r5"] .r5-panel-quote { background: rgba(217,61,98,0.04); }

.r5-panel-quote-icon {
  position: absolute;
  left: 18px;
  top: 20px;
  font-size: 20px;
  opacity: 0.2;
}
.r5-panel[data-panel="r1"] .r5-panel-quote-icon { color: #6a2461; }
.r5-panel[data-panel="r2"] .r5-panel-quote-icon { color: #f27329; }
.r5-panel[data-panel="r3"] .r5-panel-quote-icon { color: #14a5a5; }
.r5-panel[data-panel="r4"] .r5-panel-quote-icon { color: #cca043; }
.r5-panel[data-panel="r5"] .r5-panel-quote-icon { color: #d93d62; }

.r5-panel-quote cite {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #aaa;
}

/* Ghost number watermark */
.r5-panel-ghost {
  position: absolute;
  bottom: -20px;
  right: 20px;
  font-size: 160px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  opacity: 0.025;
  z-index: 0;
  transition: opacity 0.3s;
}
.r5-panel[data-panel="r1"] .r5-panel-ghost { color: #6a2461; }
.r5-panel[data-panel="r2"] .r5-panel-ghost { color: #f27329; }
.r5-panel[data-panel="r3"] .r5-panel-ghost { color: #14a5a5; }
.r5-panel[data-panel="r4"] .r5-panel-ghost { color: #cca043; }
.r5-panel[data-panel="r5"] .r5-panel-ghost { color: #d93d62; }

.r5-panel.active .r5-panel-ghost { opacity: 0.035; }

/* ─── Responsive ─── */
@media (max-width: 950px) {
  .r5-tab-interface {
    grid-template-columns: 250px 1fr;
  }
  .r5-tab-btn {
    padding: 12px 14px;
    gap: 12px;
  }
  .r5-panel {
    padding: 28px 24px;
    gap: 16px;
  }
  .r5-panel-pillars {
    grid-template-columns: 1fr 1fr;
  }
  .r5-panel-title { font-size: 22px; }
}

/* ── 5R Mobile Carousel Navigation Bar ── */
.r5-mobile-nav {
  display: none; /* Hidden on desktop */
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(106, 36, 97, 0.12);
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(106, 36, 97, 0.10);
  padding: 6px;
  margin: 24px auto 28px auto;
  width: fit-content;
  min-width: 260px;
}

.r5-mobile-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--primary-purple-dark);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.r5-mobile-btn:hover:not(:disabled) {
  background: var(--gradient-orange-pink);
  color: #fff;
  box-shadow: var(--shadow-neon);
}

.r5-mobile-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.r5-mobile-indicator {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 140px;
  justify-content: center;
}

.r5-mobile-num {
  font-size: 36px;
  font-weight: 900;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  transition: all 0.2s;
}

.r5-mobile-sep {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
  -webkit-text-fill-color: var(--text-muted);
}

.r5-mobile-total {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-muted);
  -webkit-text-fill-color: var(--text-muted);
}

@media (max-width: 680px) {
  /* Show mobile carousel nav */
  .r5-mobile-nav {
    display: flex;
  }

  /* Hide desktop tab column — carousel mode takes over */
  .r5-tabs-col {
    display: none;
  }

  /* Panel takes full width */
  .r5-tab-interface {
    grid-template-columns: 1fr;
    min-height: unset;
    border-radius: 20px;
    margin-top: 0;
  }

  .r5-panel {
    padding: 24px 20px;
    gap: 16px;
    position: relative;
  }

  .r5-panel-pillars {
    grid-template-columns: 1fr;
  }

  .r5-panel-title { font-size: 22px; }
  .r5-panel-icon-wrap { width: 58px; height: 58px; font-size: 24px; }
  .r5-panel-ghost { font-size: 100px; }
}


/* ── Individual Value List Card ── */
.r5-list-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 30px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(106, 36, 97, 0.06);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(106, 36, 97, 0.02);
  border-left: 6px solid transparent;
  outline: none;
}

.r5-list-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Color accents for cards */
.r5-card--purple { border-left-color: #6a2461; }
.r5-card--orange { border-left-color: #f27329; }
.r5-card--teal   { border-left-color: #14a5a5; }
.r5-card--gold   { border-left-color: #cca043; }
.r5-card--pink   { border-left-color: #d93d62; }

/* Hover states */
.r5-list-card:hover, .r5-list-card:focus-visible {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 30px rgba(106, 36, 97, 0.08);
  border-color: rgba(106, 36, 97, 0.12);
}

.r5-list-card:hover::after {
  opacity: 1;
}

/* Dynamic Hover Background Highlights */
.r5-card--purple:hover { border-left-color: #9c3d8e; background: linear-gradient(90deg, rgba(106, 36, 97, 0.03) 0%, #ffffff 100%); }
.r5-card--orange:hover { border-left-color: #f5a623; background: linear-gradient(90deg, rgba(242, 115, 41, 0.03) 0%, #ffffff 100%); }
.r5-card--teal:hover   { border-left-color: #0d7b7b; background: linear-gradient(90deg, rgba(20, 165, 165, 0.03) 0%, #ffffff 100%); }
.r5-card--gold:hover   { border-left-color: #e8b84b; background: linear-gradient(90deg, rgba(204, 160, 67, 0.03) 0%, #ffffff 100%); }
.r5-card--pink:hover   { border-left-color: #f06292; background: linear-gradient(90deg, rgba(217, 61, 98, 0.03) 0%, #ffffff 100%); }

/* ── Card Left Elements (Badge + Icon) ── */
.r5-card-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.r5-card-badge {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}
.r5-card--purple .r5-card-badge { background: #6a2461; }
.r5-card--orange .r5-card-badge { background: #f27329; }
.r5-card--teal .r5-card-badge   { background: #14a5a5; }
.r5-card--gold .r5-card-badge   { background: #cca043; }
.r5-card--pink .r5-card-badge   { background: #d93d62; }

.r5-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
}
.r5-card--purple .r5-card-icon { background: rgba(106, 36, 97, 0.08); color: #6a2461; }
.r5-card--orange .r5-card-icon { background: rgba(242, 115, 41, 0.10); color: #f27329; }
.r5-card--teal .r5-card-icon   { background: rgba(20, 165, 165, 0.10); color: #14a5a5; }
.r5-card--gold .r5-card-icon   { background: rgba(204, 160, 67, 0.10); color: #a07e30; }
.r5-card--pink .r5-card-icon   { background: rgba(217, 61, 98, 0.10); color: #d93d62; }

.r5-list-card:hover .r5-card-icon {
  transform: scale(1.1) rotate(-4deg);
}

/* ── Card Info ── */
.r5-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.r5-card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  opacity: 0.8;
}

.r5-card-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--primary-purple-dark);
  margin: 0;
}

.r5-card-teaser {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Card Action / Detail Indicator ── */
.r5-card-action {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  opacity: 0.6;
  transition: all 0.3s ease;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.r5-action-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 11px;
  transition: all 0.3s ease;
}

.r5-list-card:hover .r5-card-action {
  opacity: 1;
  transform: translateX(4px);
}
.r5-card--purple:hover .r5-card-action { color: #6a2461; }
.r5-card--orange:hover .r5-card-action { color: #f27329; }
.r5-card--teal:hover .r5-card-action   { color: #14a5a5; }
.r5-card--gold:hover .r5-card-action   { color: #cca043; }
.r5-card--pink:hover .r5-card-action   { color: #d93d62; }

.r5-list-card:hover .r5-action-arrow {
  background: currentColor;
  color: #fff;
  border-color: transparent;
}


/* ==========================================================
   4. DEDICATED POPUP MODAL (5R DETAILS)
   ========================================================== */
.r5-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(18, 6, 19, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
  box-sizing: border-box;
}

.r5-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Inner Card */
.r5-modal-card {
  width: 100%;
  max-width: 600px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(18, 6, 19, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.r5-modal-overlay.active .r5-modal-card {
  transform: scale(1) translateY(0);
}

/* Close Button */
.r5-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(106, 36, 97, 0.05);
  border: none;
  font-size: 20px;
  color: var(--primary-purple-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 10;
}

.r5-modal-close:hover {
  background: var(--primary-purple-dark);
  color: #ffffff;
  transform: rotate(90deg);
}

/* Modal Panels Container */
.r5-modal-panels {
  overflow-y: auto;
  flex: 1;
}

/* Individual Modal Panel (hidden by default) */
.r5-modal-panel {
  display: none;
  padding: 40px;
  box-sizing: border-box;
  flex-direction: column;
  gap: 24px;
}

.r5-modal-panel.active {
  display: flex;
}

/* Panel top area */
.r5-modal-top {
  display: flex;
  align-items: center;
  gap: 20px;
}

.r5-modal-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.r5-modal-icon--purple { background: rgba(106, 36, 97, 0.08); color: #6a2461; }
.r5-modal-icon--orange { background: rgba(242, 115, 41, 0.10); color: #f27329; }
.r5-modal-icon--teal   { background: rgba(20, 165, 165, 0.10); color: #14a5a5; }
.r5-modal-icon--gold   { background: rgba(204, 160, 67, 0.10); color: #a07e30; }
.r5-modal-icon--pink   { background: rgba(217, 61, 98, 0.10); color: #d93d62; }

.r5-modal-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #fff;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 4px;
}
.r5-badge--purple { background: #6a2461; }
.r5-badge--orange { background: #f27329; }
.r5-badge--teal   { background: #14a5a5; }
.r5-badge--gold   { background: #cca043; }
.r5-badge--pink   { background: #d93d62; }

.r5-modal-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-purple-dark);
  margin: 0;
  line-height: 1.2;
}

/* Description */
.r5-modal-desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(106, 36, 97, 0.07);
}

/* Bullet item list */
.r5-modal-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.r5-modal-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.r5-item-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.r5-item--purple .r5-item-dot { background: #6a2461; }
.r5-item--orange .r5-item-dot { background: #f27329; }
.r5-item--teal .r5-item-dot   { background: #14a5a5; }
.r5-item--gold .r5-item-dot   { background: #cca043; }
.r5-item--pink .r5-item-dot   { background: #d93d62; }

.r5-modal-item strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 3px;
}
.r5-item--purple strong { color: #6a2461; }
.r5-item--orange strong { color: #c4510a; }
.r5-item--teal strong   { color: #0c8080; }
.r5-item--gold strong   { color: #7a5e1e; }
.r5-item--pink strong   { color: #b02a4a; }

.r5-modal-item p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
}

/* Quote */
.r5-modal-quote {
  margin: 10px 0 0 0;
  padding: 18px 20px 18px 52px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.75;
  font-style: italic;
  color: var(--text-muted);
  border: none;
  position: relative;
}
.r5-quote--purple { background: rgba(106, 36, 97, 0.04); }
.r5-quote--orange { background: rgba(242, 115, 41, 0.04); }
.r5-quote--teal   { background: rgba(20, 165, 165, 0.04); }
.r5-quote--gold   { background: rgba(204, 160, 67, 0.05); }
.r5-quote--pink   { background: rgba(217, 61, 98, 0.04); }

.r5-quote-icon {
  position: absolute;
  left: 18px;
  top: 18px;
  font-size: 18px;
  opacity: 0.25;
}
.r5-quote--purple .r5-quote-icon { color: #6a2461; }
.r5-quote--orange .r5-quote-icon { color: #f27329; }
.r5-quote--teal .r5-quote-icon   { color: #14a5a5; }
.r5-quote--gold .r5-quote-icon   { color: #cca043; }
.r5-quote--pink .r5-quote-icon   { color: #d93d62; }

.r5-modal-quote cite {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #aaa;
}

/* ── Responsive Styling ── */
@media (max-width: 768px) {
  .r5-list-card {
    padding: 20px;
    gap: 16px;
  }
  .r5-card-teaser {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
  }
  .r5-card-action {
    display: none; /* Hide action texts on smaller mobile view for cleanliness */
  }
  .r5-modal-panel {
    padding: 30px 24px;
    gap: 20px;
  }
  .r5-modal-title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .r5-card-left {
    gap: 6px;
  }
  .r5-card-icon {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }
  .r5-card-title {
    font-size: 16px;
  }
  .r5-modal-icon {
    width: 56px;
    height: 56px;
    font-size: 22px;
  }
}



/* ── Bento grid container ── */
.values-bento {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}

/* Row 1 — R1 (hero, wide) + R2 (tall, right) */
.values-bento-row1 {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}

/* Row 2 — R3 R4 R5 equal columns */
.values-bento-row2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Legacy row support (kept for backward compat) ── */
.values-row { display: none; }

/* ── Base card ── */
.value-card {
  background-color: var(--bg-white);
  border-radius: 20px;
  padding: 36px 32px;
  border: 1px solid rgba(106, 36, 97, 0.07);
  border-left: 5px solid transparent;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

/* R1 hero card — taller, more prominent */
.value-card--featured {
  min-height: 340px;
}

/* Per-color left-border accent */
.value-card--purple { border-left-color: #6a2461; }
.value-card--orange { border-left-color: #f27329; }
.value-card--teal   { border-left-color: #14a5a5; }
.value-card--gold   { border-left-color: #cca043; }
.value-card--pink   { border-left-color: #d93d62; }

/* Subtle per-color top gradient stripe */
.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity var(--transition-normal);
}
.value-card--purple::before { background: linear-gradient(90deg, #6a2461, #9c3d8e); }
.value-card--orange::before { background: linear-gradient(90deg, #f27329, #f5a623); }
.value-card--teal::before   { background: linear-gradient(90deg, #14a5a5, #0d7b7b); }
.value-card--gold::before   { background: linear-gradient(90deg, #cca043, #e8b84b); }
.value-card--pink::before   { background: linear-gradient(90deg, #d93d62, #f06292); }

/* Hover state */
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.value-card--purple:hover { border-left-color: #9c3d8e; }
.value-card--orange:hover { border-left-color: #f5a623; }
.value-card--teal:hover   { border-left-color: #0d7b7b; }
.value-card--gold:hover   { border-left-color: #e8b84b; }
.value-card--pink:hover   { border-left-color: #f06292; }
.value-card:hover::before { opacity: 1; }

/* ── Ghost number — dramatically large ── */
.value-ghost-num {
  font-size: 96px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  position: absolute;
  bottom: -8px;
  right: 16px;
  color: rgba(106, 36, 97, 0.04);
  transition: color var(--transition-normal), transform var(--transition-normal);
  pointer-events: none;
  user-select: none;
}
.value-card--orange .value-ghost-num { color: rgba(242, 115, 41, 0.05); }
.value-card--teal .value-ghost-num   { color: rgba(20, 165, 165, 0.05); }
.value-card--gold .value-ghost-num   { color: rgba(204, 160, 67, 0.06); }
.value-card--pink .value-ghost-num   { color: rgba(217, 61, 98, 0.05); }

.value-card:hover .value-ghost-num        { color: rgba(106, 36, 97, 0.07); transform: scale(1.05) translateY(-4px); }
.value-card--orange:hover .value-ghost-num { color: rgba(242, 115, 41, 0.09); }
.value-card--teal:hover .value-ghost-num   { color: rgba(20, 165, 165, 0.09); }
.value-card--gold:hover .value-ghost-num   { color: rgba(204, 160, 67, 0.09); }
.value-card--pink:hover .value-ghost-num   { color: rgba(217, 61, 98, 0.09); }

/* ── Card header: numbered badge + icon + title ── */
.value-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 2;
}

/* Number pill badge (replacing just the icon) */
.value-num-badge {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.value-card--purple .value-num-badge { background: #6a2461; }
.value-card--orange .value-num-badge { background: #f27329; }
.value-card--teal .value-num-badge   { background: #14a5a5; }
.value-card--gold .value-num-badge   { background: #cca043; }
.value-card--pink .value-num-badge   { background: #d93d62; }

/* Larger icon circle */
.value-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.value-card--purple .value-icon-wrap { background: rgba(106, 36, 97, 0.08); color: #6a2461; }
.value-card--orange .value-icon-wrap { background: rgba(242, 115, 41, 0.10); color: #f27329; }
.value-card--teal .value-icon-wrap   { background: rgba(20, 165, 165, 0.10); color: #14a5a5; }
.value-card--gold .value-icon-wrap   { background: rgba(204, 160, 67, 0.10); color: #a07e30; }
.value-card--pink .value-icon-wrap   { background: rgba(217, 61, 98, 0.10); color: #d93d62; }
.value-card:hover .value-icon-wrap   { transform: scale(1.1) rotate(-4deg); }

/* ── Title ── */
.value-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--primary-purple-dark);
  line-height: 1.2;
  margin: 0;
  position: relative;
  z-index: 2;
}

/* ── Text sub-blocks ── */
.value-text-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.value-text-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 12px;
  border-left: 2px solid rgba(106, 36, 97, 0.12);
}
.value-card--orange .value-text-item { border-left-color: rgba(242, 115, 41, 0.18); }
.value-card--teal .value-text-item   { border-left-color: rgba(20, 165, 165, 0.18); }
.value-card--gold .value-text-item   { border-left-color: rgba(204, 160, 67, 0.20); }
.value-card--pink .value-text-item   { border-left-color: rgba(217, 61, 98, 0.18); }

.value-text-item h5 {
  font-size: 13.5px;
  font-weight: 800;
  margin: 0;
}
.value-card--purple .value-text-item h5 { color: #6a2461; }
.value-card--orange .value-text-item h5 { color: #c4510a; }
.value-card--teal .value-text-item h5   { color: #0c8080; }
.value-card--gold .value-text-item h5   { color: #7a5e1e; }
.value-card--pink .value-text-item h5   { color: #b02a4a; }

.value-text-item p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
}

/* ── Single description (R1) ── */
.value-single-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
  position: relative;
  z-index: 2;
}

/* ── Blockquote / Quranic verse ── */
.value-quote {
  margin: auto 0 0 0;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.7;
  font-style: italic;
  color: var(--text-muted);
  border-left: none;
  position: relative;
  z-index: 2;
}
.value-card--purple .value-quote { background: rgba(106, 36, 97, 0.04); }
.value-card--orange .value-quote { background: rgba(242, 115, 41, 0.04); }
.value-card--teal .value-quote   { background: rgba(20, 165, 165, 0.04); }
.value-card--gold .value-quote   { background: rgba(204, 160, 67, 0.05); }
.value-card--pink .value-quote   { background: rgba(217, 61, 98, 0.04); }

.value-quote cite {
  display: block;
  margin-top: 6px;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #aaa;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .values-bento-row1 { grid-template-columns: 1fr; }
  .values-bento-row2 { grid-template-columns: repeat(2, 1fr); }
  .value-card--featured { min-height: unset; }
}
@media (max-width: 640px) {
  .values-bento-row2 { grid-template-columns: 1fr; }
  .value-card { padding: 28px 24px; }
}



.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(106, 36, 97, 0.08);
  border-color: rgba(106, 36, 97, 0.1);
}
.value-card:hover::before { opacity: 1; }

/* Ghost number — top right, large, transparent (like .arah-gerak-num) */
.value-ghost-num {
  font-size: 72px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  position: absolute;
  top: 20px;
  right: 24px;
  color: rgba(106, 36, 97, 0.05);
  transition: color var(--transition-normal), transform var(--transition-normal);
  pointer-events: none;
  user-select: none;
}
.value-card--orange .value-ghost-num { color: rgba(242, 115, 41, 0.06); }
.value-card--teal .value-ghost-num   { color: rgba(20, 165, 165, 0.06); }
.value-card--gold .value-ghost-num   { color: rgba(204, 160, 67, 0.07); }
.value-card--pink .value-ghost-num   { color: rgba(217, 61, 98, 0.06); }

.value-card:hover .value-ghost-num {
  color: rgba(106, 36, 97, 0.08);
  transform: scale(1.08) translateY(-2px);
}
.value-card--orange:hover .value-ghost-num { color: rgba(242, 115, 41, 0.1); }
.value-card--teal:hover .value-ghost-num   { color: rgba(20, 165, 165, 0.1); }
.value-card--gold:hover .value-ghost-num   { color: rgba(204, 160, 67, 0.1); }
.value-card--pink:hover .value-ghost-num   { color: rgba(217, 61, 98, 0.1); }

/* Card header: icon + title row */
.value-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 2;
}

/* Icon */
.value-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: var(--transition-normal);
}
.value-card--purple .value-icon-wrap { background: rgba(106, 36, 97, 0.08); color: #6a2461; }
.value-card--orange .value-icon-wrap { background: rgba(242, 115, 41, 0.1); color: #f27329; }
.value-card--teal .value-icon-wrap   { background: rgba(20, 165, 165, 0.1); color: #14a5a5; }
.value-card--gold .value-icon-wrap   { background: rgba(204, 160, 67, 0.1); color: #a07e30; }
.value-card--pink .value-icon-wrap   { background: rgba(217, 61, 98, 0.1); color: #d93d62; }
.value-card:hover .value-icon-wrap { transform: scale(1.1); }

/* Title */
.value-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-purple-dark);
  line-height: 1.2;
  margin: 0;
  position: relative;
  z-index: 2;
}

/* Bullet list — same style as .arah-gerak-list */
.value-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 2;
}
.value-list li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  font-weight: 500;
  padding-left: 22px;
  position: relative;
}
.value-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  font-size: 13px;
}
.value-card--purple .value-list li::before { color: #6a2461; }
.value-card--orange .value-list li::before { color: #f27329; }
.value-card--teal .value-list li::before   { color: #14a5a5; }
.value-card--gold .value-list li::before   { color: #a07e30; }
.value-card--pink .value-list li::before   { color: #d93d62; }

/* Blockquote — clean and minimal */
.value-quote {
  margin: auto 0 0 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.65;
  font-style: italic;
  color: var(--text-muted);
  background: rgba(106, 36, 97, 0.03);
  border: none;
  position: relative;
  z-index: 2;
}
.value-card--orange .value-quote { background: rgba(242, 115, 41, 0.04); }
.value-card--teal .value-quote   { background: rgba(20, 165, 165, 0.04); }
.value-card--gold .value-quote   { background: rgba(204, 160, 67, 0.05); }
.value-card--pink .value-quote   { background: rgba(217, 61, 98, 0.04); }

.value-quote cite {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  color: #999;
}

/* Custom 5R value card text layout replacing checklists */
.value-text-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}

.value-text-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.value-text-item h5 {
  font-size: 14.5px;
  font-weight: 800;
  margin: 0;
}

.value-text-item p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
}

/* Card-specific title colors to match theme */
.value-card--purple .value-text-item h5 { color: #6a2461; }
.value-card--orange .value-text-item h5 { color: #f27329; }
.value-card--teal .value-text-item h5   { color: #14a5a5; }
.value-card--gold .value-text-item h5   { color: #a07e30; }
.value-card--pink .value-text-item h5   { color: #d93d62; }

.value-single-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0 0 8px 0;
  position: relative;
  z-index: 2;
}

/* Responsive */
@media (max-width: 992px) {
  .values-row-2 { grid-template-columns: 1fr; }
  .values-row-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .values-row-3 { grid-template-columns: 1fr; }
}

/* ==========================================================
   4. SEJARAH SECTION (VERTICAL TIMELINE TREE)
   ========================================================== */
.history-section {
  background-color: var(--bg-light);
  position: relative;
}

.history-timeline {
  position: relative;
  max-width: 900px;
  margin: 60px auto 0 auto;
  padding: 20px 0;
}

/* Timeline Vertical Line on Left side */
.history-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30px;
  width: 4px;
  background: linear-gradient(180deg, var(--primary-purple) 0%, var(--primary-gold) 50%, var(--accent-orange) 100%);
  border-radius: 2px;
}

.history-timeline-item {
  position: relative;
  width: 100%;
  padding: 20px 20px 20px 60px;
  z-index: 2;
  text-align: left;
}

/* Node Dot on Timeline (Left aligned) */
.history-node {
  position: absolute;
  top: 32px;
  left: 20px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--bg-white);
  border: 4px solid var(--primary-gold);
  z-index: 10;
  transition: var(--transition-fast);
  box-shadow: 0 0 10px rgba(204, 160, 67, 0.3);
}

.history-timeline-item:hover .history-node {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
  transform: scale(1.2);
  box-shadow: var(--shadow-neon);
}

.history-card {
  background-color: var(--bg-white);
  padding: 32px;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(106, 36, 97, 0.04);
  border: 1px solid rgba(106, 36, 97, 0.05);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.history-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(106, 36, 97, 0.08);
}

.history-year {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-orange);
  margin-bottom: 8px;
  display: inline-block;
}

.history-card h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-purple-dark);
  margin-bottom: 12px;
}

.history-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ==========================================================
   5. RESPONSIVE MEDIA QUERIES FOR ABOUT PAGE
   ========================================================== */
@media (max-width: 992px) {
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .visi-misi-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .visi-box, .misi-box {
    padding: 36px 28px !important;
  }
}

@media (max-width: 768px) {
  .profile-title {
    font-size: 26px;
  }
  
  /* Modern horizontal swipe swiper for 5R Values cards */
  .values-row {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 16px !important;
    padding: 10px 16px 20px 16px !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    width: calc(100% + 32px) !important;
    margin-top: 24px !important;
    scrollbar-width: none; /* Firefox */
  }
  
  .values-row::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
  }
  
  .values-row-2, .values-row-3 {
    grid-template-columns: none !important;
  }
  
  .value-card {
    flex: 0 0 85% !important;
    scroll-snap-align: center !important;
    padding: 30px 24px !important;
    height: auto !important;
    gap: 12px !important;
  }
  
  .value-ghost-num {
    font-size: 54px !important;
    top: 14px !important;
    right: 18px !important;
  }
  
  /* Timeline converts to fully left-aligned vertical tree on mobile */
  .history-timeline::before {
    left: 20px;
  }
  
  .history-timeline-item {
    width: 100%;
    padding: 12px 12px 12px 40px;
    text-align: left !important;
  }
  
  .history-node {
    left: 8px;
  }
  
  .history-card {
    padding: 20px !important;
  }
}

/* ==========================================================
   5. ARAH GERAK 2026 SECTION
   ========================================================== */
.arah-gerak-section {
  background-color: var(--bg-white);
}

.arah-gerak-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.arah-gerak-card {
  background-color: var(--bg-light);
  border-radius: var(--border-radius-xl);
  padding: 44px 36px;
  border: 1px solid rgba(106, 36, 97, 0.06);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(106, 36, 97, 0.02);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.arah-gerak-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-orange-pink);
  opacity: 0.8;
  transition: opacity var(--transition-normal);
}

.arah-gerak-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(106, 36, 97, 0.08);
  border-color: rgba(242, 115, 41, 0.2);
}

.arah-gerak-num {
  font-size: 64px;
  font-weight: 800;
  color: rgba(106, 36, 97, 0.05);
  line-height: 1;
  position: absolute;
  top: 24px;
  right: 24px;
  display: block;
  font-style: italic;
  transition: color var(--transition-normal), transform var(--transition-normal);
}

.arah-gerak-card:hover .arah-gerak-num {
  color: rgba(242, 115, 41, 0.12);
  transform: scale(1.1) translateY(-2px);
}

.arah-gerak-card h4 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-purple-dark);
  margin-bottom: 24px;
  line-height: 1.3;
  position: relative;
  z-index: 2;
}

.arah-gerak-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.arah-gerak-list-item {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  position: relative;
  padding-left: 24px;
  font-weight: 500;
}

.arah-gerak-list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-orange);
  font-weight: 800;
}

@media (max-width: 992px) {
  .arah-gerak-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .arah-gerak-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 16px !important;
    padding: 10px 16px 20px 16px !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    width: calc(100% + 32px) !important;
    scrollbar-width: none;
  }
  
  .arah-gerak-grid::-webkit-scrollbar {
    display: none;
  }
  
  .arah-gerak-card {
    flex: 0 0 85% !important;
    scroll-snap-align: center !important;
    padding: 30px 24px !important;
    height: auto !important;
  }
  
  .arah-gerak-num {
    font-size: 48px !important;
    top: 16px !important;
    right: 18px !important;
  }
}

