/* ==========================================
   CSS KHUSUS HALAMAN MATRIKS KOMPETENSI
   ========================================== */

/* Variabel Global (Untuk menstabilkan warna) */
:root {
  --color-slate-navy: #0f172a;
  --color-kinetic-cyan: #06b6d4;
}

/* Reset Dasar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

/* ==========================================
   1. FASAD: NAVIGASI & HERO BANNER
   ========================================== */
/* Hero lebih sempit (250px) dan gradasi ditipiskan agar foto Bapak jelas */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 250px; 
  display: flex;
  flex-direction: column;
  color: #fff;
  background-image: linear-gradient(to top right, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.3) 50%, transparent 100%), url('https://res.cloudinary.com/qcjlrnpj/image/upload/v1791663941/Header_Cover.jpg'); 
  background-size: cover;
  background-position: center top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-social-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  position: relative;
  z-index: 10;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding-bottom: 5px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover { color: #ffffff; }

/* Menu Matriks Dihilangkan, jadi tidak butuh .nav-link.active di sini, tapi saya biarkan untuk jaga-jaga */
.nav-link.active {
  color: var(--color-kinetic-cyan);
  font-weight: 600;
  border-bottom: 2px solid var(--color-kinetic-cyan);
}

.social-icons-wrapper { display: flex; align-items: center; gap: 20px; }
.social-icons { display: flex; gap: 15px; }
.social-icons a { color: #cbd5e1; font-size: 1.1rem; transition: 0.3s; }
.social-icons a:hover { color: var(--color-kinetic-cyan); transform: translateY(-2px); }

/* Posisi teks ditarik ke atas mendekati menu navigasi */
.hero-container {
  flex: 1;
  display: flex;
  align-items: flex-start; /* Mengubah dari 'center' menjadi 'flex-start' agar menempel ke atas */
  padding: 10px 50px 30px 50px; /* Padding atas ditipiskan menjadi 10px */
  max-width: 1350px; 
  margin: 0 auto;
  width: 100%;
}

.hero-content {
  max-width: 600px;
  z-index: 10;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-kinetic-cyan);
  margin-bottom: 15px;
  font-weight: 600;
  background: rgba(6, 182, 212, 0.1);
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.hero-title {
  font-family: 'Merriweather', serif;
  font-size: 2.5rem; /* Sedikit diperkecil */
  line-height: 1.1;
  margin-bottom: 15px;
  font-weight: 700;
  color: #ffffff;
}

/* ==========================================
   2. TOMBOL KEMBALI (Class Baru)
   ========================================== */
.hero-story-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  background: rgba(6, 182, 212, 0.15);
  color: var(--color-kinetic-cyan);
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid rgba(6, 182, 212, 0.3);
  transition: 0.3s;
  font-size: 0.95rem;
}

.hero-story-btn:hover {
  background: var(--color-kinetic-cyan);
  color: #fff;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

/* ==========================================
   3. DASBOR MATRIKS KOMPETENSI (Warna Gelap Custom)
   ========================================== */
.matrix-body { background-color: #f1f5f9; }

/* Wrapper utama dasbor */
.dashboard-wrapper { 
  display: flex; 
  min-height: calc(100vh - 250px); 
  max-width: 1350px; 
  margin: 0 auto; 
  background: #406283; 
  box-shadow: 0 0 20px rgba(90, 108, 146, 0.02); 
}

/* Sidebar Kiri */
.dashboard-sidebar { 
  width: 260px; 
  background: #f8fafc; 
  border-right: 1px solid #e2e8f0; 
  padding: 30px 20px; 
  flex-shrink: 0; 
}

.sidebar-title { 
  font-size: 0.8rem; 
  color: #94a3b8; 
  text-transform: uppercase; 
  letter-spacing: 1px; 
  margin-bottom: 20px; 
  padding-left: 10px; 
}

.sidebar-menu { 
  display: flex; 
  flex-direction: column; 
  gap: 8px; 
  position: sticky; 
  top: 80px; 
}

.sidebar-btn { 
  text-align: left; 
  background: none; 
  border: none; 
  padding: 12px 16px; 
  border-radius: 8px; 
  font-size: 0.95rem; 
  font-weight: 600; 
  color: #475569; 
  cursor: pointer; 
  transition: 0.3s; 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  width: 100%; 
}

.sidebar-btn:hover { 
  background: #e2e8f0; 
  color: var(--color-slate-navy); 
}

.sidebar-btn.active { 
  background-color: #525d91; 
  color: var(--color-slate-navy); 
  border-left: 4px solid var(--color-kinetic-cyan); 
  border-radius: 6px; 
  box-shadow: inset 0 0 0 1px rgba(9, 3, 66, 0.2); 
}

.sidebar-btn.active i {
    color: var(--color-kinetic-cyan);
}

/* Kanvas Kanan */
.dashboard-content { 
  flex: 1; 
  padding: 40px 60px; 
  background: #ffffff; 
  overflow-y: auto; 
  border-left: 1px solid #e2e8f0; 
}

.matrix-section { display: none; animation: fadeInSection 0.4s ease; }
.matrix-section.active-matrix { display: block; }

.section-header-dash h2 { 
  color: var(--color-slate-navy); 
  margin-bottom: 8px; 
  font-size: 1.6rem; 
}

.section-header-dash p { 
  color: #64748b; 
  margin-bottom: 30px; 
  font-size: 0.95rem; 
}

/* ==========================================
   4. KOMPONEN ACCORDION (Gaya Dropdown)
   ========================================== */
.accordion-container { display: flex; flex-direction: column; gap: 12px; }
.accordion-item { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.accordion-header { width: 100%; text-align: left; padding: 18px 24px; background: #ffffff; border: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; color: var(--color-slate-navy); font-size: 1rem; transition: 0.3s; }
.accordion-header:hover { background: #f8fafc; }
.accordion-header.active { border-bottom: 1px solid #e2e8f0; }
.acc-icon { font-size: 0.9rem; color: #64748b; transition: transform 0.3s ease; }
.accordion-header.active .acc-icon { transform: rotate(180deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; background: #fafaf9; }
.acc-content-inner { padding: 24px; }
.acc-content-inner strong { color: var(--color-slate-navy); display: block; margin-bottom: 8px; font-size: 0.95rem; }
.acc-content-inner p { margin-bottom: 16px; color: #475569; font-size: 0.95rem; line-height: 1.7; text-align: justify; }
.acc-divider { border: 0; border-bottom: 1px dashed #cbd5e1; margin: 20px 0; }

/* Galeri Bukti Thumbnail */
.evidence-gallery { display: flex; gap: 12px; flex-wrap: wrap; }
.evidence-item { width: 100px; height: 75px; object-fit: cover; border-radius: 6px; border: 1px solid #cbd5e1; cursor: pointer; transition: 0.3s; }
.evidence-item:hover { transform: scale(1.05); border-color: var(--color-kinetic-cyan); }

/* ==========================================
   5. LIGHTBOX ZOOM GAMBAR
   ========================================== */
.lightbox { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.9); justify-content: center; align-items: center; }
.lightbox.active { display: flex; animation: fadeIn 0.3s ease; }
.close-lightbox { position: absolute; top: 20px; right: 40px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.close-lightbox:hover { color: var(--color-kinetic-cyan); }
.lightbox-media { max-width: 90vw; max-height: 85vh; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

/* ==========================================
   ANIMASI DASAR
   ========================================== */
@keyframes fadeInSection { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================
   SLIDER SERTIFIKAT DI SIDEBAR MATRIKS
   ========================================== */
.sidebar-slider-container {
  margin-bottom: 20px;
  padding-bottom: 25px;
  border-bottom: 1px dashed #cbd5e1;
}
.sidebar-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.slider-img-wrapper {
  width: 140px;  /* Ukuran proporsional, tidak terlalu besar */
  height: 100px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  cursor: pointer;
  background: #fff;
}
.slider-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.slider-img-wrapper:hover img {
  transform: scale(1.08); /* Efek zoom tipis saat kursor di atasnya */
}
.slider-btn {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--color-kinetic-cyan);
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.3s;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-btn:hover {
  background: var(--color-kinetic-cyan);
  color: #fff;
}

/* ==========================================
   SUB-MENU DROPDOWN DI SIDEBAR
   ========================================== */
.sidebar-btn { justify-content: space-between; /* Agar panah terdorong ke kanan */ }
.sidebar-sub-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  display: flex;
  flex-direction: column;
  padding-left: 45px; /* Menjorok ke dalam */
  background: #f8fafc;
  border-radius: 0 0 8px 8px;
}
.sub-menu-link {
  font-size: 0.85rem;
  color: #64748b;
  padding: 8px 0;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
}
.sub-menu-link:hover {
  color: var(--color-kinetic-cyan);
}
/* Putar panah saat terbuka */
.sidebar-btn.open .dropdown-arrow {
  transform: rotate(180deg);
}