/* Reset & Basic Styles */
:root {
  --primary-color: #2E7D32; /* Green */
  --secondary-color: #1E88E5; /* Blue */
  --accent-color: #FB8C00; /* Orange */
  --light-color: #f4f4f4;
  --dark-color: #333;
  --text-color: #555;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--text-color);
}

.container {
  width: 80%;
  margin: auto;
  overflow: hidden;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.section-dark {
    background: var(--primary-color);
    color: #fff;
}

.section-dark .section-title {
    color: #fff;
}

.section-light-pattern {
    background-color: var(--light-color);
    /* Pola geometris islami yang subtle dari heropatterns.com */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4e9d5' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  color: var(--primary-color);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--primary-color);
}

.navbar-nav {
  display: flex;
  align-items: center;
}

.nav-link {
  color: var(--primary-color);
  text-decoration: none;
  margin: 0 15px;
  font-weight: 500;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

.nav-link:hover {
  color: var(--accent-color);
}

.nav-link.active {
  color: var(--accent-color);
  font-weight: 700;
}

.navbar-toggler {
  display: none; /* Sembunyikan di desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 18px;
  position: relative;
  z-index: 1001;
}

.navbar-toggler span {
  display: block;
  background-color: var(--primary-color);
  height: 3px;
  width: 100%;
  border-radius: 3px;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.navbar-toggler span:nth-child(1) { top: 0; }
.navbar-toggler span:nth-child(2) { top: 7px; }
.navbar-toggler span:nth-child(3) { bottom: 0; }

/* Main Content */
main {
  padding-top: 80px; /* Offset for fixed navbar */
}

/* Hero Section */
#hero-slider {
  height: calc(100vh - 80px); /* Sesuaikan tinggi dengan viewport */
  position: relative;
  color: #fff;
}

.splide__slide {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: calc(100vh - 80px);
  overflow: hidden;
}

.hero-slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-slide-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Lapisan gelap */
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}
 
.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

/* Kustomisasi Tombol Navigasi Slider */
.splide__arrow {
  background: rgba(255, 255, 255, 0.2);
}

.splide__arrow:hover {
  background: rgba(255, 255, 255, 0.4);
}

.splide__pagination__page.is-active {
  background: var(--accent-color);
  transform: scale(1.2);
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--secondary-color);
  color: #fff;
}

.btn-primary:hover {
    background: var(--accent-color);
}

/* Jadwal Section */
.section-subtitle {
    font-size: 1.1rem;
    color: #666;
}

/* Jadwal Section - Enhanced */
.next-prayer-info {
  background-color: var(--primary-color);
  color: #fff;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3);
}

.next-prayer-info p {
  margin: 0 0 5px 0;
  font-size: 1.1rem;
  opacity: 0.9;
}

.next-prayer-info h3 {
  margin: 0 0 15px 0;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
}

#countdown-timer {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  font-family: 'Courier New', Courier, monospace;
}

.jadwal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.jadwal-item {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.07);
  border-left: 4px solid #e0e0e0;
  transition: all 0.3s ease;
}

.jadwal-item h3 {
  color: var(--dark-color);
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.jadwal-item p {
  color: var(--text-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

/* Highlight for the next prayer */
.jadwal-item.is-next-prayer {
  background-color: var(--secondary-color);
  border-left-color: var(--accent-color);
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.jadwal-item.is-next-prayer h3,
.jadwal-item.is-next-prayer p {
  color: #fff;
}

/* Galeri Section */
.galeri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 30px;
}
 
.galeri-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.galeri-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.galeri-item:hover img {
  transform: scale(1.1);
}

.galeri-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(46, 125, 50, 0.7); /* Warna primer dengan transparansi */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.galeri-item:hover .galeri-overlay {
  opacity: 1;
}

.galeri-icon {
  color: #fff;
  font-size: 3rem;
  font-weight: 200;
  line-height: 1; /* Agar ikon play di tengah vertikal */
}

/* Info Album di Overlay Galeri */
.album-info {
  color: #fff;
  text-align: center;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.album-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.album-count {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.85rem;
  align-self: center; /* Agar badge di tengah */
}

/* Kajian Video Section */
.kajian-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.kajian-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.07);
  overflow: hidden; /* Penting untuk border-radius pada iframe */
}

.video-responsive {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.kajian-judul {
  font-size: 1.1rem;
  padding: 15px;
  margin: 0;
}

/* Kegiatan Section */
.kegiatan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 30px;
  text-align: left;
}

.kegiatan-card {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kegiatan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.kegiatan-tanggal {
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  margin-right: 20px;
  min-width: 80px;
}

.kegiatan-tanggal .hari {
  display: block;
  font-size: 2rem;
  font-weight: bold;
}

.kegiatan-tanggal .bulan {
  display: block;
  font-size: 1rem;
  text-transform: uppercase;
}

.kegiatan-judul {
  margin: 0 0 10px 0;
  color: var(--dark-color);
}

.kegiatan-deskripsi {
  margin: 0;
}

/* Berita Section */
.berita-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.berita-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.berita-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.berita-gambar {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.berita-konten {
  padding: 20px;
  text-align: left;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.berita-judul {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  color: var(--dark-color);
}

.berita-excerpt {
  margin: 0 0 20px 0;
  flex-grow: 1;
}

.btn-baca-selengkapnya {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
}

.btn-baca-selengkapnya:hover {
  text-decoration: underline;
}

/* Berita Detail Page */
.main-detail {
  padding: 100px 0 60px 0;
  background-color: #fff;
}

.berita-artikel {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.artikel-header {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--light-color);
  padding-bottom: 20px;
}

.artikel-header h1 {
  font-size: 2.8rem;
  color: var(--dark-color);
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.artikel-meta {
  font-size: 0.9rem;
  color: #777;
}

.artikel-gambar-utama {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
}

.artikel-konten {
  font-size: 1.1rem;
  line-height: 1.8;
}

.artikel-konten p {
  margin-bottom: 1.5em;
}

.btn-kembali {
  display: inline-block;
  margin-top: 40px;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn-kembali:hover {
  background-color: #256a28;
}

.artikel-tidak-ditemukan {
  text-align: center;
  padding: 50px 20px;
}

/* Styles for New Static Pages (Tentang, Kontak, etc.) */
.page-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--light-color);
}

.page-section:last-of-type {
  border-bottom: none;
}

.page-content {
  max-width: 800px;
  margin: 20px auto 0 auto;
  text-align: left;
  line-height: 1.8;
}

.page-content ul {
  padding-left: 20px;
}

/* Kontak Page Styles */
.kontak-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 20px;
  text-align: center;
}

.kontak-item h3 {
  color: var(--primary-color);
}

.kontak-item p {
  font-size: 1.1rem;
  margin: 0;
}

.kontak-item a {
  color: var(--primary-color);
  text-decoration: none;
}

.kontak-item a:hover {
  text-decoration: underline;
}

.kontak-form {
  max-width: 700px;
  margin: 30px auto 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box; /* Important for padding and width */
}

.map-responsive {
  position: relative;
  padding-bottom: 50%; /* Rasio aspek peta */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  margin-top: 30px;
}

.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Pengurus Section */
.pengurus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.pengurus-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pengurus-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.pengurus-foto {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 4px solid var(--light-color);
}

.pengurus-nama {
  margin: 10px 0 5px 0;
  color: var(--dark-color);
}

.pengurus-jabatan {
  color: var(--secondary-color);
  font-weight: 500;
}

/* Testimoni Section */
.testimoni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.testimoni-item {
  background: #fff;
  padding: 25px;
  border-left: 5px solid var(--secondary-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  text-align: left;
}

.testimoni-item blockquote {
  margin: 0;
  font-style: italic;
  font-size: 1.1rem;
}

.testimoni-item cite {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  color: var(--primary-color);
}

/* Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--primary-color);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background-color: #256a28; /* Sedikit lebih gelap dari primary-color */
  transform: translateY(-3px);
}

/* Styling untuk Ikon Sosial Media di Footer - Desain Baru */
.footer-social {
  margin-bottom: 1.5rem;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 15px; /* Jarak antar ikon */
}

.footer-social .social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.15); /* Latar belakang transparan */
  border-radius: 50%; /* Membuatnya bulat */
  color: #fff; /* Warna ikon */
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social .social-icon:hover {
  transform: translateY(-5px); /* Efek sedikit terangkat saat hover */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.footer-social .social-icon.youtube:hover { background-color: #FF0000; }
.footer-social .social-icon.instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }
.footer-social .social-icon.facebook:hover { background-color: #1877F2; }

.footer-social .social-icon svg { width: 22px; height: 22px; }

/* Footer */
.footer {
  background: var(--dark-color);
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

/* Responsive Styles */
@media (max-width: 820px) {
  .container {
    width: 90%;
  }

  .navbar-nav {
    display: none; /* Sembunyikan navigasi di mobile */
    flex-direction: column;

    width: 100%;
    position: absolute;
    top: 71px; /* Sesuaikan dengan tinggi navbar */
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding-bottom: 10px;
  }

  .navbar-nav.active {
    display: flex; /* Tampilkan saat kelas .active ditambahkan */
  }

  .navbar-nav {
    align-items: stretch;
  }

  .nav-link {
    margin: 0;
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--light-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    width: 100%;
    justify-content: center;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link.active {
    color: var(--primary-color);
    background-color: #e8f5e9; /* Warna hijau sangat muda */
  }

  .navbar-toggler {
    display: block; /* Tampilkan tombol hamburger di mobile */
  }

  .hero-content h1 { font-size: 2.5rem; }
  .hero-content p { font-size: 1.2rem; }
  .section-title { font-size: 2rem; }

  .artikel-header h1 {
    font-size: 2rem;
  }
}

/* === ADMIN PANEL STYLES === */
.admin-navbar {
    background-color: #343a40;
    padding: 0.5rem 1rem;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.admin-navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    margin: auto;
}

.admin-navbar-brand a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.admin-navbar-nav {
    display: flex;
    align-items: center;
}

.admin-navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 0.8rem 1rem;
    transition: color 0.3s ease;
}

.admin-navbar-nav .nav-link:hover,
.admin-navbar-nav .nav-link.active {
    color: #fff;
}

.admin-navbar-nav .logout-btn {
    background-color: #dc3545;
    border-radius: 5px;
    margin-left: 1rem;
}

.admin-navbar-toggler {
    display: none; /* Sembunyikan di desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 18px;
    position: relative;
}

.admin-navbar-toggler span {
    display: block;
    background-color: #fff;
    height: 3px;
    width: 100%;
    border-radius: 3px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.admin-navbar-toggler span:nth-child(1) { top: 0; }
.admin-navbar-toggler span:nth-child(2) { top: 7px; }
.admin-navbar-toggler span:nth-child(3) { bottom: 0; }

.admin-main-content {
    padding: 2rem;
}

/* Styles for Admin Content Pages */
.admin-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.admin-header h1 {
    margin: 0;
    font-size: 1.8rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.admin-table th,
.admin-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    background-color: #f8f9fa;
}

.admin-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.admin-table img {
    max-width: 150px;
    height: auto;
    border-radius: 4px;
}

.action-links a {
    text-decoration: none;
}

.action-links .edit { color: #007bff; }
.action-links .delete { color: #dc3545; }

.status-select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.btn-update {
    padding: 6px 12px;
    border-radius: 4px;
    color: white;
    font-size: 0.9em;
    border: none;
    cursor: pointer;
    background-color: #28a745;
}

/* Styles for Testimoni Admin Page */
.action-links .approve { background-color: #28a745; color: white; padding: 5px 10px; border-radius: 4px; font-size: 0.9em; }
.action-links .reject { background-color: #ffc107; color: #212529; padding: 5px 10px; border-radius: 4px; font-size: 0.9em; }
.status-Baru { background-color: #007bff; color: white; padding: 5px; border-radius: 4px; display: inline-block; }
.status-Disetujui { background-color: #28a745; color: white; padding: 5px; border-radius: 4px; display: inline-block; }
.status-Ditolak { background-color: #6c757d; color: white; padding: 5px; border-radius: 4px; display: inline-block; }

/* Styles for Kajian Admin Page */
.video-preview iframe {
    width: 240px;
    height: 135px;
    border-radius: 4px;
    border: none;
}

/* Styles for Slider Admin Page */
.upload-form {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid #ddd;
}

.slider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.slider-card {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.slider-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.slider-card .delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(220, 53, 69, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    line-height: 1;
    transition: background-color 0.3s ease;
}

.slider-card .delete-btn:hover {
    background-color: #dc3545;
}

/* Styles for Form Admin Pages */
.current-image {
    max-width: 200px;
    margin-top: 10px;
    display: block;
    border-radius: 4px;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 5px); /* 5px sebagai jarak dari toggle */
  left: 0;
  background-color: #fff;
  min-width: 180px;
  padding: 5px 0; /* Mengurangi padding container */
  border-radius: 5px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  z-index: 1100;
  /* Perbaikan: Gunakan opacity dan visibility untuk transisi yang lebih halus */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.dropdown-menu .nav-link {
  padding: 18px 24px; /* Memberi ruang vertikal & horizontal yang lebih besar */
  line-height: 1.4; /* Cukup untuk memastikan teks tidak terpotong */
  margin: 1; /* Menghapus margin dari .nav-link umum */
  display: block; /* Mengubah dari flex ke block agar mengisi lebar */
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap; /* Mencegah teks turun baris */
  color: var(--text-color); /* Warna teks standar agar mudah dibaca */
}

.dropdown-menu .nav-link:hover {
  background-color: var(--light-color);
}
/* Tampilkan dropdown saat hover di desktop */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu.show {
  display: block;
}

@media (max-width: 820px) {
  .dropdown-menu {
    position: static; /* Ubah posisi untuk mobile agar tidak mengambang */
    box-shadow: none; /* Hilangkan shadow di mobile */
    border-radius: 0; /* Hilangkan radius di mobile */
    width: 100%; /* Lebar penuh */
    background-color: #f8f9fa; /* Warna latar sedikit beda agar terlihat sebagai submenu */
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
  }

  .dropdown-menu .nav-link {
    padding-left: 2.5rem; /* Beri indentasi agar terlihat seperti submenu */
  }
}
