:root {
  --primary-color: #0b3d91;
  --secondary-color: #f8c146;
}
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}

/* Navbar Dinamis */
.navbar {
  transition: all 0.4s ease;
  background-color: transparent;
  padding: 15px 0;
}
.navbar.scrolled {
  background-color: var(--primary-color);
  padding: 10px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.navbar-brand,
.nav-link {
  color: white !important;
  font-weight: 500;
}
.nav-link:hover {
  color: var(--secondary-color) !important;
}

/* Carousel Custom */
.carousel-item {
  height: 100vh;
  min-height: 300px;
  background: no-repeat center center scroll;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
.carousel-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
}
.carousel-caption {
  bottom: 30%;
  z-index: 2;
}

/* Card Hover Effects */
.hover-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: none;
  border-radius: 10px;
  overflow: hidden;
}
.hover-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.hover-card img {
  transition: transform 0.5s ease;
}
.hover-card:hover img {
  transform: scale(1.05);
}

/* Stats Section */
.stats-section {
  background-color: var(--primary-color);
  color: white;
  padding: 60px 0;
}

/* Footer */
footer {
  background-color: #1a1a1a;
  color: #ccc;
}

/* CSS Tambahan */
.profil-header {
  background: linear-gradient(rgba(11, 61, 145, 0.05), rgba(11, 61, 145, 0.05));
  border-radius: 20px;
  padding: 40px;
}
.visi-misi-box {
  border-left: 5px solid #ffc107;
  padding-left: 20px;
}
.accordion-button:not(.collapsed) {
  background-color: #ffc107;
  color: #000;
}
.structure-img {
  transition: transform 0.3s;
  cursor: pointer;
}
.structure-img:hover {
  transform: scale(1.02);
}

.modal-backdrop.show {
  opacity: 0.85; /* Membuat latar belakang lebih gelap saat foto dibuka */
  background-color: #0b3d91; /* Menggunakan warna identitas koperasi Anda */
}

.modal-content {
  box-shadow: none;
}

/* Memastikan tombol close modal terlihat jelas */
.btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Modal Fix */
.modal {
  z-index: 9999 !important; /* Pastikan di atas segalanya */
}

/* Styling Dropdown Karyawan yang diperhalus */
.navbar-nav .dropdown-menu {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 15px;
  min-width: 250px;
  animation: dropdownFade 0.3s ease;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  padding: 10px 15px;
  border-radius: 10px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  font-weight: 500;
  color: #4a5568;
}

.dropdown-item i {
  width: 30px;
  height: 30px;
  background: rgba(11, 61, 145, 0.05);
  color: #0b3d91;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-right: 12px;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: #0b3d91;
  color: #fff;
  transform: translateX(5px);
}

.dropdown-item:hover i {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Garis pemisah yang halus */
.dropdown-divider {
  border-top: 1px solid #f1f5f9;
  margin: 10px 0;
}

.custom-shape-divider-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
  z-index: 2;
}
.custom-shape-divider-bottom svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}
.custom-shape-divider-bottom .shape-fill {
  fill: #ffffff; /* Warna disesuaikan dengan background section bawahnya */
}
.carousel-item {
  position: relative;
}

.footer-link {
  transition: all 0.3s ease;
  display: inline-block;
}
.footer-link:hover {
  color: #ffc107 !important; /* Berubah jadi kuning saat di-hover */
  transform: translateX(8px);
}

/* =========================================
   STYLING PREMIUM UNTUK BERITA & GALERI
========================================= */

/* --- Card Berita Modern --- */
.news-card {
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.news-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(11, 61, 145, 0.15) !important;
}
.news-img-wrapper {
  position: relative;
  overflow: hidden;
}
.news-img-wrapper img {
  transition: transform 0.6s ease;
}
.news-card:hover .news-img-wrapper img {
  transform: scale(1.08); /* Efek zoom in halus saat di-hover */
}
.date-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #ffc107; /* Warna kuning KSU */
  color: #000;
  padding: 6px 15px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.8rem;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.btn-readmore {
  color: #0b3d91;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}
.btn-readmore i {
  transition: transform 0.3s ease;
  margin-left: 6px;
}
.btn-readmore:hover {
  color: #ffc107;
}
.btn-readmore:hover i {
  transform: translateX(6px); /* Panah bergerak ke kanan */
}

/* --- Galeri Glassmorphism --- */
.gallery-item {
  border-radius: 20px;
  overflow: hidden;
  z-index: 1;
}
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Gradien transparan dari biru gelap ke bening */
  background: linear-gradient(
    to top,
    rgba(11, 61, 145, 0.95) 0%,
    rgba(11, 61, 145, 0.2) 100%
  );
  backdrop-filter: blur(3px); /* Efek kaca / blur kekinian */
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 2;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.overlay-content {
  transform: translateY(30px); /* Teks mulai dari bawah */
  transition: all 0.4s ease;
  opacity: 0;
}
.gallery-item:hover .overlay-content {
  transform: translateY(0); /* Teks meluncur ke atas */
  opacity: 1;
}
.zoom-icon {
  font-size: 2.5rem;
  color: #ffc107;
  margin-bottom: 15px;
  display: inline-block;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

/* =========================================
   STYLING PREMIUM UNTUK FAQ
========================================= */
.faq-accordion .accordion-item {
  border: none;
  border-radius: 15px;
  margin-bottom: 20px; /* Jarak antar pertanyaan */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  background-color: #fff;
  transition: all 0.3s ease;
}

.faq-accordion .accordion-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(11, 61, 145, 0.1);
}

.faq-accordion .accordion-button {
  font-weight: 700;
  color: #2c3e50;
  padding: 20px 25px;
  background-color: transparent;
  border-radius: 15px !important;
  box-shadow: none !important; /* Menghilangkan border biru bawaan Bootstrap saat diklik */
  font-size: 1.1rem;
}

/* Tampilan saat FAQ Dibuka */
.faq-accordion .accordion-button:not(.collapsed) {
  background-color: #0b3d91; /* Biru khas KSU */
  color: #ffffff;
}

/* Mengubah warna panah (icon SVG) menjadi putih saat background biru */
.faq-accordion .accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.faq-accordion .accordion-body {
  background-color: #f8fafc; /* Abu-abu sangat terang */
  color: #4a5568;
  padding: 25px;
  line-height: 1.8;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.faq-icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(255, 193, 7, 0.15); /* Kuning transparan */
  color: #ffc107;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
