/* assets/css/style.css */

/* Variabel Warna Modern & Profesional */
:root {
  --primary-blue: #3b82f6;
  --primary-dark: #1e40af;
  --side-bg: #0f172a;
  --side-text: #94a3b8;
  --body-bg: #f8fafc;
  --white: #ffffff;
  --border-soft: #e2e8f0;
  --text-dark: #1e293b;
  --text-muted: #64748b;
}

/* Layout Dasar */
body {
  background-color: var(--body-bg);
  font-family: "Inter", "Poppins", sans-serif;
  margin: 0;
  color: #1e293b;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.home-page {
  padding-top: 0 !important;
}

footer {
  margin-top: auto;
}
/* Container utama untuk Sidebar + Konten */
.main-wrapper {
  display: flex;
}
main,
.container.py-5.mt-5 {
  flex: 1;
}

/* Area Konten Utama */
.content-main {
  margin-left: 250px; /* Sesuai lebar sidebar */
  width: calc(100% - 250px);
  min-height: 100vh;
  padding: 2rem;
  background-color: var(--body-bg);
}

/* Gaya Sidebar Modern */
.sidebar-sesepan {
  width: 250px;
  height: 100vh;
  position: fixed;
  background-color: var(--side-bg) !important;
  color: var(--white);
  z-index: 1000;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-sesepan .nav-link {
  color: var(--side-text) !important;
  font-weight: 500;
  margin: 4px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.sidebar-sesepan .nav-link:hover,
.sidebar-sesepan .nav-link.active {
  background-color: var(--active-blue) !important;
  color: var(--white) !important;
}

/* Gaya Card (Paten untuk Tambah/Edit/Daftar) */
.card-sesepan {
  background-color: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.card-header-blue {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-soft);
}

/* Gaya Tombol Custom */
.btn-primary-sesepan {
  background-color: var(--primary-blue);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary-sesepan:hover {
  background-color: #2563eb;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary-sesepan {
  background-color: #64748b;
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
}

/* assets/css/style.css */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --primary-blue: #3b82f6; /* Electric Blue */
  --primary-dark: #1e40af;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --side-bg: #0f172a; /* Midnight Slate */
  --body-bg: #f8fafc;
  --white: #ffffff;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--body-bg);
  color: var(--text-dark);
  margin: 0;
}

/* ========================================== 
   HEADER / NAVBAR STYLE (FIXED TRANSPARENT)
   ========================================== */

/* Pastikan Body tidak mendorong navbar ke bawah di Beranda */
body.home-page {
  padding-top: 0 !important;
}

.navbar {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.5rem 0 !important;
  background-color: transparent !important; /* Default awal */
}

/* KHUSUS KONDISI TRANSPARAN (DI BERANDA SAAT DI ATAS) */
.navbar.navbar-transparent {
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.navbar.navbar-transparent .navbar-brand,
.navbar.navbar-transparent .nav-link {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* SAAT DI-SCROLL: BERUBAH JADI PUTIH */
.navbar.scrolled {
  background-color: #ffffff !important;
  padding: 0.8rem 0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.navbar.scrolled .navbar-brand {
  color: var(--primary-blue) !important;
}

.navbar.scrolled .nav-link {
  color: #1e293b !important;
  text-shadow: none !important;
}

/* Responsif: Navbar Toggler (Garis tiga) agar tetap putih di transparan */
.navbar-transparent .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
  filter: brightness(0) invert(1);
}
/* ========================================== 
   ADMIN SIDEBAR & COMPONENTS 
   ========================================== */
.sidebar-sesepan {
  width: 260px;
  height: 100vh;
  position: fixed;
  background-color: var(--side-bg) !important;
  z-index: 1000;
}

.sidebar-sesepan .nav-link {
  color: #94a3b8 !important;
  margin: 5px 15px;
  border-radius: 8px;
  transition: 0.3s;
}

.sidebar-sesepan .nav-link:hover,
.sidebar-sesepan .nav-link.active {
  background-color: var(--primary-blue) !important;
  color: var(--white) !important;
}

.card-sesepan {
  background-color: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ========================================== 
   HERO SLIDER FADE
   ========================================== */
.carousel-fade .carousel-item {
  transition-duration: 0.8s; /* Kecepatan Fade */
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.4);
  height: 100%;
  display: flex;
  align-items: center;
}

/* ========================================== 
   FEATURE CARDS (Kenapa Pilih Kami?) 
   Ref: image_7db542.png
   ========================================== */
.feature-card {
  background: var(--white);
  border: none;
  border-radius: 20px; /* Lebih membulat agar modern */
  padding: 40px 30px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Shadow halus */
}

.feature-card:hover {
  transform: translateY(-10px); /* Efek mengangkat saat di-hover */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.icon-box {
  width: 60px;
  height: 60px;
  background: #eff6ff; /* Biru sangat muda */
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 25px;
  font-size: 1.5rem;
}

/* ========================================== 
   VANGUARD'S MESSAGE (Sambutan) 
   Ref: image_7dc72b.png
   ========================================== */
.vanguard-section {
  padding: 100px 0;
  background-color: var(--white);
}

.section-title {
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.title-underline {
  width: 60px;
  height: 4px;
  background: var(--primary-blue);
  margin: 0 auto 30px;
  border-radius: 2px;
}
/* Styling List Pengumuman agar rapi */
.list-group-item {
  transition: background 0.3s ease;
}

.list-group-item:hover {
  background-color: #f8fafc;
}

.list-group-item p {
  font-size: 0.95rem;
  color: var(--text-dark);
}

/* Judul Sambutan */
h4.text-primary {
  position: relative;
  padding-bottom: 10px;
}

h4.text-primary::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-blue);
}

.btn-outline-danger {
  border-width: 2px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.2);
}
/* Styling Khusus Detail Berita */
.news-content {
  text-align: justify;
}

.news-content p {
  margin-bottom: 1.8rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M2.5 0L1 1.5 3.5 4 1 6.5 2.5 8l4-4-4-4z' fill='currentColor'/%3E%3C/svg%3E");
}

.transition-all:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.form-control:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.1);
}
