body {
  font-family: "Poppins", sans-serif;
}
:root {
  --primary-color: rgba(51, 153, 255);
  --secondary-color: #0d6efd;
  --light-bg: #f8f9fa;
  --dark-color: #212529;
}

body.navbar-open {
  overflow: hidden;
  position: fixed; /* Mencegah scroll di iOS */
  width: 100%; /* Mencegah layout shift saat position:fixed */
}

.brand-text {
  line-height: 1.1;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.brand-text span {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
}
/* ==========================================================
   1. BASE NAVBAR STYLES
   ========================================================== */
.navbar-custom {
  background-color: transparent;
  transition: all 0.4s ease;
  padding: 15px 0;
}
.navbar-custom.scrolled {
  background-color: rgba(51, 153, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-logo {
  height: 45px;
  width: auto;
}

.navbar .nav-link {
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  position: relative;
}

/* Sembunyikan caret default Bootstrap karena sudah pakai FontAwesome */
.dropdown-toggle::after {
  display: none !important;
}

.navbar .nav-link .fa-chevron-down {
  transition: transform 0.3s ease;
}

/* ==========================================================
   2. BASE DROPDOWN STYLES (Level 2 & 3)
   ========================================================== */
.dropdown-menu {
  border-radius: 12px;
  border: none;
  margin-top: 0;
  display: none; /* Sembunyikan default */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dropdown-header {
  font-weight: 600;
  color: var(--primary-color, #3399ff);
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

.dropdown-item {
  font-weight: 500;
  color: var(--dark-color, #333);
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: var(--primary-color, #3399ff);
  color: #fff;
}

.dropdown-divider {
  border-top: 1px solid #eee;
}

/* ==========================================================
   3. DESKTOP VIEW (Min-width 992px)
   ========================================================== */
@media (min-width: 992px) {
  /* Level 2 Dropdown Hover Logic */
  .dropdown:hover > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: fadeIn 0.3s ease;
  }

  /* Animasi putar ikon panah di level 1 */
  .dropdown:hover > .nav-link .fa-chevron-down {
    transform: rotate(180deg);
  }

  /* Posisi dropdown khusus di ujung kanan agar tidak keluar layar */
  .dropdown-menu[aria-labelledby="ppidDropdown"],
  .dropdown-menu[aria-labelledby="aduanDropdown"] {
    right: 0;
    left: auto;
  }

  /* --- Sub-Submenu Level 3 --- */
  .dropdown-submenu {
    position: relative;
  }

  /* Posisi Level 3 di samping kanan menu Level 2 */
  .dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -5px;
    margin-left: 0;
    border-radius: 12px;
  }

  /* Hover Level 2 untuk memunculkan Level 3 */
  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(5px); /* Animasi geser sedikit ke kanan */
    transition: all 0.3s ease;
  }
}

/* Styling pengganti dropdown-item agar Bootstrap tidak otomatis menutup menu */
.custom-sub-item {
  display: flex;
  width: 100%;
  padding: 0.75rem 1.5rem;
  clear: both;
  font-weight: 500;
  color: var(--dark-color, #333);
  text-align: inherit;
  text-decoration: none;
  white-space: normal;
  background-color: transparent;
  border: 0;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.custom-sub-item:hover,
.custom-sub-item:focus {
  background-color: var(--primary-color, #3399ff);
  color: #fff;
}

/* Pastikan panah mobile menyesuaikan */
.custom-sub-item .mobile-chevron {
  transition: transform 0.3s ease;
}

/* ==========================================================
   4. MOBILE VIEW (Max-width 991.98px)
   ========================================================== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 1rem;
    margin-top: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }

  /* Scrollbar halus untuk mobile menu */
  .navbar-collapse::-webkit-scrollbar {
    width: 6px;
  }
  .navbar-collapse::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }
  .navbar-collapse::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
  }

  .navbar-nav .nav-item {
    width: 100%;
    text-align: left;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark-color, #333);
    font-weight: 600;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    background-color: #e6f5f3;
    color: var(--primary-color, #3399ff);
  }

  /* Level 2 Dropdown (Mobile) */
  .dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 0.5rem !important;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: none;
    box-shadow: none;
    padding: 0.5rem;
    transform: none;
    display: none;
  }

  .dropdown-menu.show {
    display: block;
  }

  .dropdown-item {
    color: #555;
    border-radius: 8px;
    white-space: normal;
    word-wrap: break-word;
  }

  .dropdown-item:hover {
    background-color: #e9ecef;
    color: var(--dark-color, #333);
  }

  /* Animasi Putar Panah di Mobile (Saat terbuka) */
  .dropdown-toggle[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
  }

  /* Transisi ikon mobile */
  .mobile-chevron {
    transition: transform 0.3s ease;
  }

  /* --- Sub-Submenu Level 3 (Mobile) --- */
  .dropdown-submenu .dropdown-menu {
    display: none; /* Wajib disembunyikan default */
    padding-left: 1rem;
    background-color: #f1f3f5;
    border-left: 3px solid var(--primary-color, #3399ff);
    border-radius: 8px;
    margin: 5px 10px !important;
    width: auto;
  }

  /* Ini class yang di-trigger oleh JS (Harus pakai !important) */
  .dropdown-submenu .dropdown-menu.show-mobile {
    display: block !important;
  }
}

/* ==========================================================
   5. KEYFRAMES ANIMATION
   ========================================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section {
  position: relative;
  height: 100vh;
  /* Naik satu tingkat (..) dari folder css ke web, lalu masuk ke assets */
  background-image: url("../green/img/bg_1.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-section h1,
.hero-section .lead,
.hero-section .search-container-floating {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.hero-section .lead {
  animation-delay: 0.2s;
}

.hero-section .search-container-floating {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-header {
  position: relative;
  padding: 180px 0 140px 0;
  background-image:
    linear-gradient(170deg, rgba(0, 51, 153, 0.95), rgba(51, 153, 255, 0.8)),
    url("../green/img/bg_1.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}

.page-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 100px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,50 C200,100 400,0 600,50 C800,100 1000,0 1200,50 L1200,120 L0,120 Z' fill='%23f8f9fa'%3E%3C/path%3E%3C/svg%3E");
  background-size: 100% 100%;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1,
.page-header .lead,
.page-header .breadcrumb-custom {
  color: #fff;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.page-header .lead {
  animation-delay: 0.2s;
}
.page-header .breadcrumb-custom {
  animation-delay: 0.4s;
}

.breadcrumb-custom,
.breadcrumb-custom a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-custom a:hover {
  text-decoration: underline;
  color: #fff;
}
.search-container-floating {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.search-container-floating .search-box {
  position: relative;
}

.search-container-floating .search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  z-index: 3;
}

.search-container-floating .form-control {
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #fff;
  padding-left: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.search-container-floating .form-control:focus {
  background-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-color: var(--primary-color);
  color: #fff;
}

.search-container-floating .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.hero-section .container {
  position: relative;
  z-index: 2;
}

.section-pattern {
  position: relative;
  background-color: #f8f9fa;
  overflow: hidden;
}

.section-pattern::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background-color: var(--primary-color);
  opacity: 0.05;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.section-pattern .container {
  position: relative;
  z-index: 2;
}

.service-item-wrapper {
  position: relative;
  margin-top: 40px;
  text-align: center;
}

.service-icon-v3 {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #003399, #3399ff);
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 10px 20px rgba(51, 153, 255, 0.3);
  transition: all 0.3s ease;
}

.service-card-v3 {
  padding: 4.5rem 1.5rem 2rem;
  background-color: #fff;
  border-radius: 15px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
  height: 100%;
}

.service-item-wrapper:hover .service-card-v3 {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.service-item-wrapper:hover .service-icon-v3 {
  transform: translate(-50%, -60%) scale(1.1);
  box-shadow: 0 15px 30px rgba(51, 153, 255, 0.4);
}

.service-link {
  text-decoration: none;
  color: inherit;
}

.service-link:hover {
  color: inherit;
}

.modern-card .service-card-v3 {
  border-radius: 20px;
  background: #fff;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.modern-card .service-card-v3::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(5, 199, 165, 0.08) 10%,
    transparent 70%
  );
  transform: rotate(25deg);
  transition: all 0.6s ease;
}

.modern-card:hover .service-card-v3::before {
  top: 0;
  left: 0;
}

.modern-card:hover .service-card-v3 {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.service-icon-v3 {
  transition: all 0.3s ease;
}

.modern-card:hover .service-icon-v3 {
  transform: translate(-50%, -70%) scale(1.2) rotate(10deg);
  box-shadow: 0 20px 40px rgba(51, 153, 255, 0.4);
}

.news-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08) !important;
}

.news-card .card-img-top {
  border-radius: 0.375rem 0.375rem 0 0;
  object-fit: cover;
  height: 200px;
}

.carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
#beritaCarousel {
  width: 100%;
}

.carousel-control-prev,
.carousel-control-next {
  position: static;
  width: 40px;
  height: 0px;

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0.35)
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.08),
    inset 0 2px 6px rgba(255, 255, 255, 0.4);

  opacity: 1;
  transition: all 0.35s ease;
  cursor: pointer;
}

.carousel-control-prev {
  margin-right: 0.7rem;
}
.carousel-control-next {
  margin-left: 0.7rem;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: linear-gradient(135deg, #003399, #3399ff);
  border-color: transparent;
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 18px 35px rgba(51, 153, 255, 0.35);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 90px;
  height: 20px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;

  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23049c85' viewBox='0 0 16 16'%3e%3cpath d='M11.354 1.646a.5.5 0 010 .708L5.707 8l5.647 5.646a.5.5 0 01-.708.708l-6-6a.5.5 0 010-.708l6-6a.5.5 0 01.708 0z'/%3e%3c/svg%3e");
  transition: all 0.35s ease;
}

.carousel-control-next-icon {
  transform: rotate(180deg);
}

/* .carousel-control-next:hover .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 16 16'%3e%3cpath d='M11.354 1.646a.5.5 0 010 .708L5.707 8l5.647 5.646a.5.5 0 01-.708.708l-6-6a.5.5 0 010-.708l6-6a.5.5 0 01.708 0z'/%3e%3c/svg%3e");
    transform: rotate(180deg) translateX(-3px);
} */

@media (max-width: 992px) {
  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }
}

.news-card-v2 {
  border-radius: 15px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
  background-color: #fff;
  display: flex;
  flex-direction: column;
}

.news-card-v2:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.news-card-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
}

.news-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card-v2:hover img {
  transform: scale(1.05);
}

.news-card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 50px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.news-card-v2 .card-body {
  padding: 1.5rem;
  flex-grow: 1;
}

.news-card-v2 .card-title a {
  color: var(--dark-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-card-v2 .card-title a:hover {
  color: var(--primary-color);
}

.news-card-v2 .card-footer {
  background-color: transparent;
  border-top: 1px solid #f1f1f1;
  padding: 1rem 1.5rem;
  flex-shrink: 0;
}

.section-pattern-v2 .custom-shape-divider-top .shape-fill {
  fill: #f8f9fa;
}

.downloads-list {
  background-color: #fff;
  border-radius: 15px;
  padding: 1rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.download-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #f1f1f1;
  transition: all 0.3s ease;
}
.download-item:last-child {
  border-bottom: none;
}
.download-item:hover {
  background-color: #f5faf9;
  transform: scale(1.03);
  border-radius: 10px;
}

.download-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background-color: #e6f5f3;
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-right: 1.5rem;
}

.download-info {
  flex-grow: 1;
}
.download-info h6 {
  margin-bottom: 0.25rem;
  line-height: 1.4;
  font-weight: 600;
}

.download-item .btn {
  flex-shrink: 0;
  padding: 0.25rem 1rem;
  font-weight: 500;
}

.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 250px;
}

.gallery-item img {
  transition: transform 0.4s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(51, 153, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  text-align: center;
  color: #fff;
  font-size: 1.5rem;
}
.section-pattern {
  position: relative;
  background-color: #f8f9fa;
  overflow: hidden;
}
.section-pattern::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -150px;
  width: 500px;
  height: 500px;
  background-color: var(--primary-color);
  opacity: 0.05;
  border-radius: 50%;
  z-index: 0;
}
.section-pattern .container {
  position: relative;
  z-index: 2;
}

.custom-shape-divider-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
}
.custom-shape-divider-top svg {
  position: relative;
  display: block;
  width: 100%;
  height: 80px;
}
.custom-shape-divider-top .shape-fill {
  fill: #f8f9fa;
}

.footer-modern {
  position: relative;
  background-color: var(--dark-color);
  color: #fff;
  padding-top: 3rem;
  padding-bottom: 1.5rem;
}

.footer-title {
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.footer-links li {
  margin-bottom: 0.75rem;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}
.footer-links a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
}
.footer-contact i {
  color: var(--primary-color);
  margin-right: 1rem;
  margin-top: 5px;
}

.footer-social a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  margin-right: 0.5rem;
  transition: all 0.3s ease;
}
.footer-social a:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
}

.accordion-item {
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-radius: 15px !important;
  margin-bottom: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.accordion-item:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.accordion-header {
  border-radius: 15px !important;
}

.accordion-button {
  font-weight: 600;
  color: var(--dark-color);
  border-radius: 15px !important;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(51, 153, 255, 0.25);
}

.accordion-button:not(.collapsed) {
  background-color: #e6f5f3;
  color: var(--primary-color);
  box-shadow: none;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23049c85'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
/* .accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

.accordion-body {
    padding: 1.5rem 1.5rem;
}

.header-search-form .input-group {
    max-width: 600px;
    margin: auto;
}
.header-search-form .form-control,
.header-search-form .btn {
    border-radius: 50px !important;
} */

.search-result-card {
  display: flex;
  align-items: flex-start;
  padding: 1.5rem;
  background-color: #fff;
  border: 1px solid transparent;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.search-result-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color);
}

.search-result-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: linear-gradient(135deg, #003399, #3399ff);
  color: #fff;
  font-size: 1.3rem;
  margin-right: 1.5rem;
  box-shadow: 0 5px 15px rgba(51, 153, 255, 0.3);
  transition: all 0.3s ease;
}

.search-result-card:hover .search-result-icon {
  transform: scale(1.1) rotate(5deg);
}

.search-result-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark-color);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
  margin-bottom: 0.25rem;
}
.search-result-title:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.search-result-url {
  color: var(--primary-color);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.search-result-snippet {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.7;
}

.content-card {
  background-color: #fff;
  border-radius: 15px;
  border: none;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.content-card .card-body {
  padding: 3rem;
}

.content-card h3,
.content-card h4 {
  font-weight: 600;
  color: var(--dark-color);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.content-card p {
  line-height: 1.8;
  color: #555;
}

.content-card ul {
  line-height: 1.8;
  padding-left: 1.5rem;
}

@media (max-width: 767px) {
  .content-card .card-body {
    padding: 1.5rem;
  }
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.prose th {
  background-color: #f8fafc;
  padding: 12px;
  text-align: left;
}
.prose td {
  padding: 12px;
  border-top: 1px solid #e2e8f0;
}
.prose iframe {
  /* Untuk video Youtube yang mungkin ada di konten */
  width: 100%;
  border-radius: 1rem;
  aspect-ratio: 16 / 9;
  margin: 2rem 0;
}

.sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  margin-bottom: 2rem;
}

.widget-title {
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 10px;
}
.widget-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.sidebar-post-item {
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #f1f1f1;
}
.sidebar-post-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.sidebar-post-item a {
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
.sidebar-post-item a:hover {
  color: var(--primary-color);
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
}
.category-tags .badge {
  background-color: #e9ecef;
  color: #495057;
  padding: 8px 15px;
  margin: 4px;
  font-size: 0.9rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.category-tags .badge:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.pagination .page-link {
  border-radius: 50% !important;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 5px;
  border: none;
  color: var(--dark-color);
  font-weight: 500;
  background-color: #e9ecef;
}
.pagination .page-link:hover {
  background-color: #d1d5db;
}
.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  color: #fff;
}

.filter-controls-gallery .btn {
  border-radius: 50px;
  padding: 8px 25px;
  margin: 5px;
  background-color: #e9ecef;
  color: var(--dark-color);
  border: 1px solid transparent;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-controls-gallery .btn:hover {
  background-color: #d1d5db;
  border-color: #d1d5db;
}

.filter-controls-gallery .btn.active {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(51, 153, 255, 0.4);
}

.gallery-item-page {
  margin-bottom: 1.5rem;
}

.gallery-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  height: 250px;
}

.gallery-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-link:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(51, 153, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  color: #fff;
  font-size: 2rem;
}

.gallery-link:hover .gallery-overlay {
  opacity: 1;
}

.search-result-item {
  border: 1px solid #e9ecef;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}
.search-result-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}
.search-result-item .card-title a {
  color: var(--dark-color);
  text-decoration: none;
}
.search-result-item .card-title a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}
.search-result-url {
  color: #006621;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
