/********** Template CSS **********/
:root {
    --primary: #285430;  /* Hijau TNI */
    --secondary: # 5F8D4E; /* Hijau Camo */
    --light: #EEF9FF;
    --dark: #091E3E;
}

.bg-dark-green {
  background-color: #006400; /* contoh hijau tua */
  color: white; /* supaya teks tetap terbaca */
}

.bg-green-card {
    background-color: rgba(212, 237, 199, 0.5);
}

.bg-green-artikel {
    background-color: #eaf6e8; /* Warna hijau muda untuk latar */
    color: #0b2e13; /* Warna teks default */
    text-decoration: none;
    transition: color 0.3s ease;
}

.bg-green-artikel:hover {
    color: #28a745; /* Warna teks hijau saat hover */
}


.transition:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.blog-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-item .p-4 {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}



/* Warna hijau untuk pagination */
.custom-pagination-green .page-link {
  color: #28a745;
  border-color: #28a745;
  background-color: transparent;
  transition: all 0.3s ease;
}

.custom-pagination-green .page-link:hover {
  background-color: #28a745;
  color: #ffffff;
  border-color: #28a745;
}

.custom-pagination-green .page-item.active .page-link {
  background-color: #28a745;
  border-color: #28a745;
  color: #ffffff;
}

.custom-pagination-green .page-item.disabled .page-link {
  color: #cccccc;
  background-color: #f8f9fa;
  border-color: #dddddd;
}

/* Frame Persegi Panjang Landscape dengan Animasi */
.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 640px;         /* Lebih lebar dari sebelumnya */
  aspect-ratio: 16 / 9;     /* Semakin lebar ke samping (format seperti video YouTube) */
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #0b1d0f;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  overflow: hidden;
  z-index: 1;
  animation: floatFrame 6s ease-in-out infinite;
  transition: transform 0.5s ease;
}

.hero-image-wrapper:hover {
 transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
}

/* Gambar di dalam Frame */
.hero-image-vertical {
  width: 100%;
  height: 100%;
  border-radius: 0%;
  overflow: hidden;
}

.hero-image-vertical img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.8s ease;
}

.hero-image-wrapper:hover .hero-image-vertical img {
  transform: scale(1.03);
}

/* Animasi Mengambang */
@keyframes floatFrame {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Pattern Hexagon Latar */
.hero-image-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('https://heropatterns.com/static/media/hexagons.a2fc6225.svg');
  opacity: 0.06;
  background-size: cover;
  background-repeat: repeat;
  pointer-events: none;
  z-index: 0;
}

/* Pattern Dekoratif Opsional */
.hero-pattern.satu,
.hero-pattern.dua {
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.07;
  z-index: 0;
}

.hero-pattern.satu {
  top: -20px;
  left: -20px;
  width: 80px;
  height: 80px;
  background-image: url('img/pattern-camo-1.png');
  animation: spinPattern 10s linear infinite;
}

.hero-pattern.dua {
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background-image: url('img/pattern-camo-2.png');
  animation: spinPatternReverse 12s linear infinite;
}

/* Animasi pattern berputar */
@keyframes spinPattern {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes spinPatternReverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}



 /* Splash Screen */
    #splash {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: #0e1b15;
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 9999;
      transition: opacity 0.5s ease;
    }

    #splash img {
      width: 300px;
      animation: fadeIn 1s ease-in-out;
    }

    @keyframes fadeIn {
      0% { opacity: 0; transform: scale(0.8); }
      100% { opacity: 1; transform: scale(1); }
    }



.vendor-logo img {
    width: 100px;          /* Ukuran lebar gambar */
    height: auto;          /* Tinggi menyesuaikan agar tidak terdistorsi */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vendor-logo img:hover {
    transform: scale(1.1);  /* Membesarkan gambar sedikit saat hover */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Efek bayangan */
    cursor: pointer;
}

h5.vendor-title {
    margin-bottom: 80px; /* jarak ke logo */
    font-size: 20px;
}

.logo-infolahta {
  height: 55px;
  /* width akan menyesuaikan proporsi otomatis */
  margin-right: 10px; /* Jarak antara logo dan teks */
  vertical-align: middle; /* Agar sejajar dengan teks */
}

/*** Spinner ***/
:root {
  --green: #285430;
  --beach: #e5d9b6;
}

#spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  animation: hideSpinner 0.3s 0.5s forwards;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Loader Container */
.loader {
  position: relative;
  width: 80px;
  height: 80px;
  animation: spin 1s infinite ease-in-out;
  transform-origin: center center;
}

/* Container Kainfolahta */
.no-x-padding {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Bola */
.dot {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Warna masing-masing bola */
.dot1 { background-color: #285430; animation: move1 1s infinite ease-in-out; }
.dot2 { background-color: #e5d9b6; animation: move2 1s infinite ease-in-out; }
.dot3 { background-color: #285430; animation: move3 1s infinite ease-in-out; }
.dot4 { background-color: #e5d9b6; animation: move4 1s infinite ease-in-out; }

/* Rotasi loader */
@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Gerakan masing-masing bola: berpencar dan berkumpul */
@keyframes move1 {
  0%, 100% { transform: translate(-50%, -50%) translate(20px, 0); }
  50%      { transform: translate(-50%, -50%) translate(0, 0); }
}
@keyframes move2 {
  0%, 100% { transform: translate(-50%, -50%) translate(0, 20px); }
  50%      { transform: translate(-50%, -50%) translate(0, 0); }
}
@keyframes move3 {
  0%, 100% { transform: translate(-50%, -50%) translate(-20px, 0); }
  50%      { transform: translate(-50%, -50%) translate(0, 0); }
}
@keyframes move4 {
  0%, 100% { transform: translate(-50%, -50%) translate(0, -20px); }
  50%      { transform: translate(-50%, -50%) translate(0, 0); }
}

@keyframes hideSpinner {
  0%, 80% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/*** Heading ***/
h1,
h2,
.fw-bold {
    font-weight: 800 !important;
}

h3,
h4,
.fw-semi-bold {
    font-weight: 700 !important;
}

h5,
h6,
.fw-medium {
    font-weight: 600 !important;
}

.text-army {
    color: #198754 !important; /* Hijau TNI */
}

.text-custom-white {
  color: #EEF9FF;
}



/*Search ***/
.custom-search-btn {
    background-color: #006400;
    color: white;
    border: none;
}
.custom-search-btn:hover {
    background-color: #1e7b1e; /* warna hover lebih gelap */
}
.custom-search-btn:hover i {
  color: black; /* icon berubah hitam saat hover */
}
.custom-border {
    border: 2px solid #006400;
    border-radius: 4px; /* opsional, untuk sudut lembut */
}
.custom-border:focus {
    outline: none;
    border-color: #1e7b1e;
    box-shadow: 0 0 5px #1e7b1e;
}
input:focus {
    outline: none;
    box-shadow: 0 0 5px #228B22;
}
.icon-search-green {
  color: #006400;
}

/*** Card ***/
.card-light-green{
    background-color: rgba(212, 237, 199, );
}

.card {
  display: flex;
  flex-direction: column;
}

.card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}



/*** Button ***/
.btn {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
    box-shadow: inset 0 0 0 50px transparent;
}

.btn-primary:hover {
    box-shadow: inset 0 0 0 0 var(--primary);
}

.btn-secondary:hover {
    box-shadow: inset 0 0 0 0 var(--secondary);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 30px;
    height: 30px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.btn-light-green{
    background-color: rgba(212, 237, 199, 0.5);
}


.btn-green {
    background-color: #285430 !important; /* hijau tua */
    color: #fff !important;
    font-weight: 600;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

.btn-green:hover {
    background-color: #a4be7b !important; /* hijau terang */
    transform: scale(1.05);
    color: #fff !important;
}

/** Card Prestasi **/
  .card.shadow-3d {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); /* shadow lembut */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px; /* sudut membulat */
  }

  .card.shadow-3d:hover {
    transform: translateY(-8px); /* angkat saat hover */
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2); /* shadow lebih tebal */
  }

  .card-img-top {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
  }

  .card-body {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
  }



/* === NAVBAR === */
/* Navbar Styling */
.custom-navbar {
  background-color: transparent;
  transition: background-color 0.3s ease;
  z-index: 999;
}

.custom-navbar.scrolled {
  background-color: #fff !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.custom-navbar .navbar-nav .nav-link,
.custom-navbar .navbar-brand,
.custom-navbar .fa {
  color: black !important;
  font-weight: 2000; /* membuat teks lebih gendut */
  letter-spacing: 0.5px; /* opsional, agar lebih rapi dan renggang */
}

nav.custom-navbar .navbar-nav .nav-link,
nav.custom-navbar .navbar-brand,
nav.custom-navbar .fa {
  color: #000 !important;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.5rem 0.6rem;
  font-size: 1.2rem; /* Ukuran font yang lebih besar */
}

.custom-navbar.scrolled .nav-link, 
.custom-navbar.scrolled .navbar-brand, 
.custom-navbar.scrolled .fa {
  color: black !important;
}

/* Logo Size */
.logo-kiri, .logo-kanan {
  height: 60px;
}
@media (max-width: 768px) {
  .logo-kiri, .logo-kanan {
    height: 40px;
  }
  .custom-navbar {
  background-color: #fff !important;
  transition: background-color 0.3s ease;
  z-index: 999;
  padding-bottom: 0.5rem; /* Tambahkan padding bawah */
  }

  body.halaman-artikel1 .navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030;
}

body.halaman-artikel1 main,
body.halaman-artikel1 .content {
  padding-top: 70px; /* atau sesuai tinggi navbar */
}
}


/* Offcanvas sidebar */
.offcanvas-start.half-width-offcanvas {
  width: 50vw;
  max-width: 320px;
  background-color: #1b2c36;
  color: white;
}

/* Navbar tetap di atas semua elemen */
.custom-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.custom-navbar.scrolled {
  background-color: #fff !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.offcanvas-start.half-width-offcanvas {
  width: 50vw;
  max-width: 320px;
  background-color: #1b2c36;
  color: white;
}
/* === NAVBAR HOVER === */

/* Hover efek untuk nav-link utama */
.navbar-nav .nav-link:hover {
  color: #145a2b !important; /* hijau */
  border-bottom: 2px solid #145a2b;
  transition: all 0.3s ease;
}

/* Aktif link tetap hijau dan bergaris */
.navbar-nav .nav-link.active {
  color: #145a2b !important;
  border-bottom: 2px solid #145a2b

;
}

/* Dropdown submenu: aktif = seperti hover */
.dropdown-menu .dropdown-item.active {
  background-color: #e6f4ed; /* hijau muda */
  color: #145a2b !important;
  font-weight: 600;
  border-left: 4px solid #145a2b; /* atau border-bottom sesuai hover style */
  transition: all 0.3s ease;
}

/* Menu dropdown utama jika aktif (salah satu submenu sedang dibuka) */
.navbar-nav .nav-item.dropdown.active > .nav-link {
  color: #145a2b !important;
  border-bottom: 2px solid #145a2b;
}

.navbar-nav .nav-link,
.navbar-nav .dropdown-item {
  transition: all 0.3s ease;
}


/* Hover pada item dropdown */
.dropdown-menu .dropdown-item:hover {
  background-color: #e6f4ed; /* hijau muda */
  color: #145a2b !important;
}

/* Shadow hijau untuk dropdown */
.dropdown-menu {
  box-shadow: 0 4px 10px rgba(0, 170, 91, 0.2);
}

/* Dropdown muncul dengan animasi dinamis blur */
.navbar .dropdown-menu {
  transform: perspective(800px) rotateX(-15deg) scale(0.95);
  opacity: 0;
  transform-origin: top center;
  transition: transform 0.4s ease, opacity 0.4s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  visibility: hidden;
  pointer-events: none;
  background-color: rgba(255, 255, 255, 0.6); 
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Saat dropdown sedang dibuka (tampilkan dan transisi) */
.navbar .dropdown.show .dropdown-menu {
  transform: perspective(800px) rotateX(0deg) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* === SIDEBAR CUSTOM STYLING TANPA NGANCURIN STRUKTUR === */

/* Gaya offcanvas sidebar mobile */
#sidebarMenu {
  background-color: #203e1f; /* Hijau gelap militer */
  color: white;
  width: 250px;
  max-width: 80vw;
}

/* Link dalam sidebar */
#sidebarMenu .nav-link {
  color: white;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s ease;
}

#sidebarMenu .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* Header sidebar */
#sidebarMenu .offcanvas-header h5 {
  color: white;
}

/* Konten sidebar */
#sidebarMenu .offcanvas-body {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Gaya dropdown menu dalam sidebar */
#sidebarMenu .dropdown-menu {
  background-color: #2b4728;
  color: white;
  border: none;
  padding: 10px;
  width: 190px;
  box-sizing: border-box;
}

#sidebarMenu .dropdown-item {
  color: white;
  padding: 10px 15px;
  margin-bottom: 6px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05);
}

#sidebarMenu .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Style tambahan submenu jika kamu pakai profil-submenu */
#sidebarMenu .profil-submenu {
  width: 190px;
  padding: 12px;
  background-color: #2b4728;
  border-radius: 8px;
  box-sizing: border-box;
  gap: 8px;
}

#sidebarMenu .profil-submenu .dropdown-item {
  font-size: 14px;
  width: 100%;
  text-align: left;
  margin-bottom: 6px;
}

/* Hapus panah dropdown (opsional) */
.navbar-nav .dropdown-toggle::after {
  display: none;
}

/* === SIDEBAR KLIK: SHADOW SAJA TANPA GANTI WARNA === */
#sidebarMenu .nav-link:focus,
#sidebarMenu .nav-link:active {
  background-color: transparent !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
  outline: none;
}

/* === SUBMENU DROPDOWN TURUN DI SIDEBAR === */
#sidebarMenu .dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "\25BE"; /* Unicode ? */
  font-size: 0.6rem;
  color: #ccc;
  font-family: Arial, sans-serif; /* Tambahkan ini! */
  transition: transform 0.3s ease;
}

#sidebarMenu .dropdown-menu {
  display: none;
  position: relative;
  width: 100%;
  margin-top: 5px;
  box-shadow: none;
}

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

@media (min-width: 992px) {
  .offcanvas {
    display: none !important;
  }
  .offcanvas-backdrop {
    display: none !important;
  }
}





/*** Carousel ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none !important;
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 15px;
        font-weight: 200 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    display: none !important;
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    display: none !important;
}


/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 5px;
    left: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 2px;
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -75px;
}

.section-title.section-title-sm::before {
    width: 90px;
    height: 3px;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 6px;
    height: 5px;
    bottom: 0px;
    background: #FFFFFF;
    -webkit-animation: section-title-run 5s infinite linear;
    animation: section-title-run 5s infinite linear;
}

.section-title.section-title-sm::after {
    width: 4px;
    height: 3px;
}

.section-title.text-center::after {
    -webkit-animation: section-title-run-center 5s infinite linear;
    animation: section-title-run-center 5s infinite linear;
}

.section-title.section-title-sm::after {
    -webkit-animation: section-title-run-sm 5s infinite linear;
    animation: section-title-run-sm 5s infinite linear;
}

@-webkit-keyframes section-title-run {
    0% {left: 0; } 50% { left : 145px; } 100% { left: 0; }
}

@-webkit-keyframes section-title-run-center {
    0% { left: 50%; margin-left: -75px; } 50% { left : 50%; margin-left: 45px; } 100% { left: 50%; margin-left: -75px; }
}

@-webkit-keyframes section-title-run-sm {
    0% {left: 0; } 50% { left : 85px; } 100% { left: 0; }
}


/*** Service ***/
.service-item {
    position: relative;
    height: 300px;
    padding: 0 30px;
    transition: .5s;
}

.service-item .service-icon {
    margin-bottom: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 2px;
    transform: rotate(-45deg);
}

.service-item .service-icon i {
    transform: rotate(45deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: #DDDDDD;
    border-radius: 2px;
    transition: 2s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--primary);
}

.testimonial-carousel .owl-item.center {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item .testimonial-item {
    transition: 2s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: #FFFFFF !important;
    box-shadow: 0 0 30px #DDDDDD;
}


/*** Team ***/
.team-item {
    transition: .5s;
}

.team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-social a.btn {
    position: relative;
    margin: 0 3px;
    margin-top: 100px;
    opacity: 0;
}

.team-item:hover {
    box-shadow: 0 0 30px #DDDDDD;
}

.team-item:hover .team-social {
    background: rgba(34, 139, 34, 0.5);
}

.team-item:hover .team-social a.btn:first-child {
    opacity: 1;
    margin-top: 0;
    transition: .3s 0s;
}

.team-item:hover .team-social a.btn:nth-child(2) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .05s;
}

.team-item:hover .team-social a.btn:nth-child(3) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .1s;
}

.team-item:hover .team-social a.btn:nth-child(4) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .15s;
}

.team-item .team-img img,
.blog-item .blog-img img  {
    transition: .5s;
}

.team-item:hover .team-img img,
.blog-item:hover .blog-img img {
    transform: scale(1.15);
}

/* Card */
.card-primary {
    background-color: #006400; /* hijau TNI */
    color: #F1F7ED; /* putih kehijauan */
}
.card-border {
    border: 2px solid #8B5E3C; /* cokelat tanah */
}
.btn-army {
    background-color: #006400;
    color: white;
}
.btn-army:hover {
    background-color: #556B2F;
    color: #F1F7ED;
}

/*** Miscellaneous ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}


.bg-header {
    background: url(img/bg-header.jpg) center center no-repeat;
    background-size: cover;
}

.link-animated a {
    transition: .5s;
}

.link-animated a:hover {
    padding-left: 10px;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
    width: 50px;
    height: 50px;
    background-color: #006400;   /* Hijau tua */
    color: white;
    border: none;
    border-radius: 10px;         /* Membuat sudut membulat */
    text-align: center;
    line-height: 50px;           /* Vertikal tengah */
    font-size: 24px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;

     /* Agar icon tepat di tengah */
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    background-color: #004d00; /* Warna lebih gelap saat hover */
    color: #ffffff;
}

/* Tambahan khusus mobile */
@media (max-width: 576px) {
  .back-to-top {
    right: 10px;
    bottom: 10px;
  }
}

@media (min-width: 767.98px) {
    .footer-about {
        margin-bottom: -75px;
    }
    
    .bg-primary-footer {
    background-color: #3B5323;
    }
}

/** Card **/
.galeri-card .image-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.galeri-card img {
  transition: transform 0.4s ease;
}

.galeri-card:hover img {
  transform: scale(1.05);
}

.galeri-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  height: 100%;
  transition: opacity 0.4s ease;
  opacity: 0;
}

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

.galeri-card .overlay h6,
.galeri-card .overlay small {
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

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

.judul-section {
  font-size: 2rem;
  font-weight: 700;
  color: #285430;
  margin-bottom: 40px;
}

.grid-pengumuman {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 60px; /* tambahkan ini agar ada jarak antar baris */
}

.card-pengumuman {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: transform 0.4s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-pengumuman:hover {
  transform: translateY(-6px);
}

.card-pengumuman img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.card-pengumuman:hover img {
  transform: scale(1.05);
}

.overlay-text {
  position: absolute;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: white;
  padding: 16px;
  width: 100%;
  text-align: left;
}

.overlay-text h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
  color: white; /* Tambahkan ini */
}

.tanggal {
  font-size: 0.85rem;
  opacity: 0.85;
}

section.bg-green-card.py-5 {
  background-color: transparent !important;
}

@media (max-width: 768px) {
  .grid-pengumuman {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-pengumuman {
    grid-template-columns: repeat(2, 1fr);
  }
}


.custom-modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.custom-modal .modal-content {
  position: relative;
  max-width: 80%;
  max-height: 90%;
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  overflow: auto;
}

.custom-modal img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
}

.custom-modal .modal-caption {
  margin-top: 15px;
  color: #333;
}

.custom-modal .close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #000;
  cursor: pointer;
}

.flip-card {
    background-color: transparent;
    width: 100%;
    height: 250px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.flip-card-front {
    background-color: #e9f7ec;
    color: black;
}

.flip-card-back {
    background-color: #2d6a4f;
    color: white;
    transform: rotateY(180deg);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cover Artikel – otomatis menyesuaikan card */
.fixed-image {
  width: 100%;                       /* lebar ikut card */
  aspect-ratio: 1059 / 915;          /* rasio asli gambar  (˜ 1.16:1) */
  object-fit: cover;                 /* crop, tetap proporsional */
  object-position: center;           /* fokus tengah */
  display: block;                    /* hilangkan inline-gap */
}

.card-text-content {
  min-height: 120px; /* sesuaikan berdasarkan kebutuhan */
}

.custom-article-image {
  max-width: 70%;      /* Atur lebar maksimum gambar */
  height: auto;        /* Biarkan tinggi proporsional */
}



/* Cover Blog – otomatis menyesuaikan card */
.blog-img img {
  width: 100%;                    /* penuh selebar kolom/card */
  aspect-ratio: 16 / 9;           /* atau 2000 / 1143 untuk rasio asli */
  height: auto;                   /* ini boleh ada atau tidak */
  object-fit: cover;              /* biar gambar tidak gepeng atau lonjong */
  display: block;                 /* hilangkan celah bawah */
}

.blog-item p {
  min-height: 100px;
}
.blog-item h5 {
  line-height: 1.4;
  font-weight: 700;
}



/** Toggle **/
.toggle-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0; /* beri jarak dari atas dan bawah */
}

.toggle-buttons {
  display: inline-flex;
  background: #fff;
  border: 2px solid #eee;
  border-radius: 40px;
  padding: 5px;
}

.toggle-btn {
  border: none;
  background: transparent;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  color: #666;
  transition: all 0.3s ease;
}

.toggle-btn.active {
  background-color: #183A73;
  color: #fff;
}

.tab button.active {
  background-color: #002a7b;
  color: white;
}
.content-section {
  margin-top: 20px;
  max-width: 100% !important;   /* hilangkan batas lebar */
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/** Galeri **/
.folder {
  cursor: pointer;
  transition: all 0.3s ease;
}
.folder:hover {
  background-color: rgba(212, 237, 199, 0.5);
  transform: translateY(-5px);
}

html, body {
  height: 100%;
  margin: 0;
}

.content-wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

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

/* Form dan Map Responsif *
/* Bagi dua di desktop */
.form-wrapper {
  /* HAPUS semua flex dan width */
  padding-right: 15px; /* optional, untuk jarak di desktop */
}

/* Biar map proporsional */
.map-responsive {
  position: relative;
  width: 50%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
    margin-left: auto;
  margin-right: auto;
}

.kontak-wrapper {
  overflow-x: hidden;
}



/* Responsif di layar kecil: stack ke atas-bawah */
@media (max-width: 768px) {
  .map-responsive {
    padding-bottom: 56.25%; /* Rasio 16:9 tetap */
    margin: 0 auto;         /* Center wrapper di parent */
    width: 100%;
    max-width: 600px;       /* Batas lebar maksimum jika perlu */
  }

  .map-responsive iframe {
    margin: 0 auto;
    display: block;         /* Biar margin auto bisa bekerja */
  }
}

.custom-navbar .navbar-nav .nav-link:hover {
  color: #145a2b !important;
  border-bottom: 2px solid #145a2b;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
