body {
  background: linear-gradient(135deg, #ffa500 0%, #ff4500 100%);
  margin: 0;
  padding: 0;
  font-family: "Mulish", sans-serif;
  color: #ffffff;
  overflow-x: hidden;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.section {
  padding: 50px 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: inherit;
  /* Sesuaikan dengan background halaman */
  position: relative;
  width: 100%;
}

.nav-links {
  display: none;
  /* Default: sembunyikan di mobile */
  flex-direction: column;
  gap: 1rem;
  background-color: #333;
  padding: 1rem;
  position: absolute;
  top: 60px;
  right: 0;
  width: 100%;
  max-height: 200px;
  /* Batasi tinggi menu navigasi */
  overflow-y: auto;
  /* Tambahkan scroll jika konten terlalu panjang */
  border-radius: 0.5rem;
  /* Radius untuk tampilan lebih baik */
  transition: transform 0.3s ease;
}

/* Tampilkan menu navigasi ketika kelas .active ditambahkan */
.nav-links.active {
  display: flex;
  /* Tampilkan menu saat active */
}

.nav-links a {
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  color: #ffffff;
  /* Warna teks */
  padding: 0.5rem 0.5rem;
  /* Ruang di sekitar teks */
  border-radius: 0.5rem;
  transition: color 0.3s ease, background-color 0.3s ease;
}

/* Logo styling */
nav a img {
  height: 50px;
  /* Atur tinggi logo agar sesuai */
  width: auto;
  display: block;
  /* Menghindari masalah margin default inline */
  transition: transform 0.3s ease;
}

.nav-links a:hover {
  color: #ff4500;
  /* Warna teks saat hover */
  background-color: rgba(255, 255, 255, 0.1);
  /* Background saat hover */
  border-radius: 0.5rem;
  /* Radius border untuk tampilan lebih baik */
}

nav a img:hover {
  transform: scale(1.1);
  /* Memperbesar logo saat hover */
}

.hamburger {
  display: flex;
  /* Tampilkan sesuai kebutuhan responsif */
  flex-direction: column;
  gap: 0.25rem;
  cursor: pointer;
  transform: translateY(-8px);
  /* Naikkan posisi hamburger sedikit */
}

.hamburger .bar {
  width: 30px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: white;
}

.hamburger:hover div {
  background-color: #ff4500;
  /* Ubah warna garis hamburger saat hover */
}

.hidden {
  display: none;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #ffa500;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
  color: white;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-button:hover {
  background-color: #ff4500;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#prev {
  left: 20px;
}

#next {
  right: 20px;
}

#sosmed {
  margin-bottom: -60px;
  bottom: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

@media (max-width: 768px) {
  nav {
    padding: 1rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    right: 0;
    width: 100%;
    height: 100vh;
    justify-content: center;
    background-color: #444;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-links a {
    color: white;
    padding: 0.5rem 0;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
    transform: translateX(0);
    /* Tampilkan menu saat active */
  }

  .carousel-button {
    display: none;
  }

  .button-glass {
    font-size: 0.8rem;
    padding: 8px 16px;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }
}

@media (max-width: 480px) {
  .grid-cols-3 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .carousel-container {
    display: none;
  }

  .glass-effect h3 {
    font-size: 0.875rem;
    /* Ukuran lebih kecil di layar sangat kecil (sekitar 14px) */
  }

  .glass-effect p {
    font-size: 0.75rem;
    /* Ukuran lebih kecil di layar sangat kecil (sekitar 12px) */
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container untuk elemen grid */
.grid-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  /* Jarak antar elemen di mobile */
}

/* Desktop mode - Sejajarkan secara horizontal */
@media (min-width: 768px) {
  .grid-container {
    flex-direction: row;
    justify-content: space-between;
  }

  .hamburger {
    display: none;
    /* Sembunyikan hamburger di desktop */
  }

  .nav-links {
    display: flex;
    /* Tampilkan di layar desktop */
    flex-direction: row;
    /* Tampilkan link secara horizontal */
    background: none;
    /* Hilangkan background */
    position: static;
    /* Hapus positioning absolute */
    width: auto;
    /* Sesuaikan lebar */
    gap: 2rem;
    /* Jarak antar item */
  }
}

/* CSS untuk setiap item, sama seperti sebelumnya */
.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: white;
  padding: 2rem;
  border-radius: 3rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 2.5rem;
  cursor: pointer;
  width: 100%;
  max-width: 320px;
}

/* Default (Desktop) styles */
.container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  width: 100%;
  margin-top: 5rem;
}

.image-container {
  height: 30rem;
  width: 20rem;
  position: relative;
}

.image-blur {
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  border-radius: 3rem;
  padding: 0.1rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  position: absolute;
  z-index: 0;
  filter: blur(4rem);
}

.image-wrapper {
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  border-radius: 3rem;
  padding: 0.1rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 3rem;
  opacity: 0.9;
  transform: scale(0.9);
}

.text-container {
  width: 50rem;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 2rem;
  border-radius: 2rem;
}

.button-container {
  display: flex;
  justify-content: center;
}

.button-glass {
  margin-top: 1rem;
}

.glass-effect h3 {
  font-size: 1.25rem;
  /* Default: 1.25rem (sekitar 20px) */
}

.glass-effect p {
  font-size: 1rem;
  /* Default: 1rem (sekitar 16px) */
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .grid-cols-3 {
    grid-template-columns: 1fr;
    /* Atur menjadi satu kolom di mobile */
  }

  nav {
    padding: 1rem;
  }

  .hamburger {
    display: flex;
    /* Tampilkan hamburger di mobile */
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    right: 0;
    width: 100%;
    height: 100vh;
    justify-content: center;
    background-color: #444;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-links.active {
    display: flex;
    transform: translateX(0);
    /* Tampilkan menu saat active */
  }

  .nav-links a {
    color: white;
    padding: 0.5rem 0;
    text-align: center;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }

  .container {
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
  }

  .image-container {
    height: 20rem;
    width: 15rem;
  }

  .text-container {
    width: 90%;
    padding: 1rem;
  }

  .image-wrapper img {
    transform: scale(1);
    /* Remove scaling on mobile */
  }

  .glass-effect h3 {
    font-size: 1rem;
    /* Ukuran lebih kecil di mobile (sekitar 16px) */
  }

  .glass-effect p {
    font-size: 0.875rem;
    /* Ukuran lebih kecil di mobile (sekitar 14px) */
  }
}

.justify-text {
  text-align: justify;
}

@media (max-width: 425px) {
  /* Text and Image Containers */
  .text-container,
  .image-container {
    width: 100%;
    /* Ensure full width */
    padding: 0.5rem;
    /* Adjust padding to prevent overflow */
    box-sizing: border-box;
    /* Ensure padding does not add to the width */
  }

  .text-container {
    width: 350px;
    /* Center text container */
  }

  .image-container {
    width: 220px;
  }

  /* Section Titles */
  section h1 {
    font-size: 1.75rem;
    /* Slightly smaller for mobile */
  }

  section h2 {
    font-size: 1.25rem;
  }

  /* General container adjustments */
  .container {
    padding: 0 1rem;
    flex-direction: column;
    gap: 1.5rem;
  }

  /* Footer Adjustments */
  footer .container {
    flex-direction: column;
    text-align: center;
  }

  /* #visi_misi Section */
  #visi_misi {
    width: 100%;
    /* Ensure it adapts to full width */
    padding: 1rem;
    /* Adjust padding for smaller screens */
    margin-left: 0;
    /* No extra margin on mobile */
  }
}

@media (max-width: 375px) {
  #deputi-kabinet {
    font-size: 30px;
  }
}
@media (max-width: 320px) {
  /* Text and Image Containers */
  .text-container,
  .image-container {
    width: 100%;
    padding: 0.25rem;
    /* Reduced padding for very small screens */
    box-sizing: border-box;
  }

  .text-container {
    width: 280px;
  }

  .image-container {
    width: 200px;
  }
  /* Section Titles */
  section h1 {
    font-size: 1.5rem;
  }

  section h2 {
    font-size: 1.2rem;
  }

  /* General container adjustments */
  .container {
    padding: 0 0.5rem;
    flex-direction: column;
    gap: 1rem;
  }

  /* Footer Adjustments */
  footer .container {
    flex-direction: column;
    text-align: center;
  }

  /* #visi_misi Section */
  #visi_misi {
    width: 100%;
    padding: 0.5rem;
    margin-left: 0;
  }

  #deputi-kabinet {
    font-size: 26px;
  }

  #grid-deputi {
    width: 220px;
  }

  #grid-kriya {
    width: 220px;
  }

  #grid-pp {
    width: 220px;
  }

  #grid-sosma {
    width: 220px;
  }
}
