/* ==================== */
/* ANIMATION BASE STYLES */
/* ==================== */
[data-animate] {
  opacity: 0;
  will-change: transform, opacity; /* Optimasi performa */
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Animasi fadeInRight */
[data-animate="fadeInRight"] {
  opacity: 0;
  transform: translateX(50px); /* Mulai dari posisi 50px ke kanan */
  transition: all 0.6s ease-out;
}

[data-delay] {
  transition-delay: calc(var(--delay, 0) * 1ms);
}
/* Animasi fadeIn */
[data-animate="fadeIn"] {
  transform: translateY(40px);
}

/* Animasi fadeInUp */
[data-animate="fadeInUp"] {
  transform: translateY(60px);
}

/* Animasi zoomIn */
[data-animate="zoomIn"] {
  transform: scale(0.85);
}

/* Animasi slideInLeft */
[data-animate="slideInLeft"] {
  transform: translateX(-80px);
}

/* State akhir animasi */
.animate__animated {
  opacity: 1;
  transform: translate(0, 0) scale(1) rotate(0) !important;
}

/* Delay animasi */
[data-delay] {
  transition-delay: calc(var(--delay) * 1ms);
}

/* Container khusus untuk animasi gambar */
.animate-image-container {
  overflow: hidden;
  display: inline-block;
  width: 100%;
}

/* ==================== */
/* SPECIAL ANIMATIONS */
/* ==================== */
/* Animasi carousel khusus */
.carousel-caption h1,
.carousel-caption h4,
.carousel-caption .button-container {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Efek hover untuk card */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}
    .card {
      border-radius: 12px;
      box-shadow: 0 0 15px rgba(0,0,0,0.05);
    }

    .card-header {
      font-weight: 600;
    }

    .btn-info, .btn-primary {
      border-radius: 20px;
      padding: 8px 20px;
    }
  
    h2 {
      color: #0056b3;
     
    }

    /* Judul utama, misal h2/h3 di section */
.responsive-heading {
  font-weight: bold;
  margin-bottom: 0;
  font-size: clamp(1.25rem, 2.5vw + 0.5rem, 1.75rem); /* antara 20px dan 28px */
  line-height: 1.3;
}

/* Judul link/card besar */
.responsive-heading-a {
  font-weight: bold;
  margin-bottom: 0;
  font-size: clamp(1.375rem, 2.5vw + 0.5rem, 1.875rem); /* antara 22px dan 30px */
  line-height: 1.3;
}

/* Subjudul atau elemen kecil */
.responsive-heading-b {
  font-weight: 500;
  margin-bottom: 0;
  font-size: clamp(1.11rem, 1.8vw + 0.3rem, 1.125rem); /* antara 14px dan 18px */
  line-height: 1.4;
}


    body {
      background-color: #ddedfc;
      
    }
    .hero {
        
        height: 580px;
        overflow: hidden;
    }
    .hero-caption {
        text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
        z-index: 10;
    }

    /* Carousel wrapper */
    .carousel {
      width: 100%;
      height: 100vh; /* Lebih responsif daripada 100vh */
      overflow: hidden;
      margin: 0;
      padding: 0;
    }

    /* Gambar latar mengisi penuh */
    .carousel-inner,
    .carousel-item {
      height: 100%;
      width: 100%;
    }

    .carousel-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    /* Overlay hitam transparan */
    .img-overlay {
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: 100%;
      background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4));
      z-index: 1;
    }

    /* Penyesuaian teks untuk responsif */
    .carousel-caption {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 6;
      text-align: center;
      color: #fff;
      width: 90%;
      max-width: 800px;
    }

    /* Ukuran teks responsif */
    .carousel-caption h1 {
      font-size: 70px;
      margin-bottom: 0.5rem;
    }

    .carousel-caption h4 {
      font-size: clamp(1rem, 2vw, 1.5rem);
    }
    .carousel-caption h5 {
      font-size: 40px;
      color: rgb(255, 255, 255);
    }

    .carousel-control-prev i,
    .carousel-control-next i {
      color:rgb(255, 255, 255); /* Warna biru Bootstrap */
      font-size: 1.5rem;
    }
    
    .btn-sm-responsive {
  font-size: 0.875rem; /* default untuk tablet dan desktop (~14px) */
}


    /* Responsif untuk layar kecil */
    @media (max-width: 768px) {
      .btn-sm-responsive {
    font-size: 0.67rem; /* untuk HP kecil (~12px) */
  }
      .carousel {
        height: 60vh;
      }
      
      .carousel-caption {
        padding: 10px;
      }
      
      .carousel-caption h1, h4, h5 {
        font-size: 2rem;
      }
      
      .h5 {
        font-size: 1rem;
      }

      .carousel-control-prev i,
      .carousel-control-next i {
        color:rgb(255, 255, 255); /* Warna biru Bootstrap */
        font-size: 1.5rem;
      }
      
    }    

    .logo img {
      max-height: 60px;
    }

    .sidebar .nav-treeview > .nav-item > .nav-link {
    padding-left: 2.5rem;
    font-size: 0.85rem;
}


/* font-struktur org */
/* Untuk font size responsive */
.fs-6 { font-size: 0.9rem; }
.fs-5 { font-size: 1rem; }
.fs-4 { font-size: 1.25rem; }

@media (min-width: 768px) {
  
  .fs-md-6 { font-size: 1rem; }
  .fs-md-5 { font-size: 1.1rem; }
  .fs-md-4 { font-size: 1.5rem; }
}
.sidebar .nav-treeview .nav-icon {
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    background-color: #f1f1f1;
    color: #343a40; /* ikon hitam */
    font-size: 0.75rem;
}

    /* Navbar yang lebih kecil dan modern */
    .navbar {
      background-color: #007bff !important; /* Biru modern */
       min-height: 70px;         /* tinggi minimal navbar */
      padding-top: 0.5rem;      /* sesuaikan padding atas */
      padding-bottom: 0.5rem;
    }

    .navbar-brand img {
      height: 36px;
    }

    .nav-item {
      color: white;
    }

    .navbar h3 {
      font-size: 18px;
      color: #007bff !important;
      margin-left: 10px;
      font-weight: 600;
    }

    .login-btn {
  transition: all 0.3s ease;
  font-weight: 500;
}

.login-btn:hover {
  background-color: #ffffff;
  color: #0d6efd;
  border-color: #ffffff;
}

    .navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 8px 14px;
    margin: 0 5px;
    position: relative;
    transition: all 0.3s ease;
}

/* Garis bawah elegan (awalnya tersembunyi) */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: white;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

/* Efek hover: garis bawah mengembang dan warna teks tetap putih */
.navbar-nav .nav-link:hover {
    color: white !important;
    background-color: transparent;
    box-shadow: none;
}

.navbar-nav .nav-link:hover::after {
    width: 80%; /* Garis bawah mengisi 80% lebar */
}

/* Link aktif: garis bawah penuh + background subtle */
.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white !important;
}

.navbar-nav .nav-link.active::after {
    width: 100%; /* Garis bawah penuh */
}

/* Dropdown modern */
.dropdown-menu {
    background-color: rgba(255, 255, 255, 0.98);
    border: none;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.dropdown-item {
    color: #000000 !important;
    padding: 8px 16px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff !important;
}

/* css button login */
/* Gaya khusus untuk tombol Login */
.navbar-nav .nav-link.login-btn {
    color: rgb(0, 0, 0) !important;
    background-color: rgb(255, 255, 255); /* Latar semi-transparan */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Border subtle */
    border-radius: 25px; /* Sudut melengkung */
    padding: 8px 20px !important;
    margin-left: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Spasi antara ikon dan teks */
}

/* Efek hover: lebih menonjol */
.navbar-nav .nav-link.login-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: white;
    transform: translateY(-1px); /* Sedikit naik */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Hilangkan garis bawah untuk tombol login */
.navbar-nav .nav-link.login-btn::after {
    display: none !important;
}

/* Efek aktif */
.navbar-nav .nav-link.login-btn:active {
    transform: translateY(0);
    background-color: rgba(255, 255, 255, 0.3);
}

   /* Pastikan navbar tetap fleksibel di semua halaman */
.navbar-scroll,
.navbar-scrolled {
  width: 100%;
  z-index: 999;
  padding-top: 10px;
  padding-bottom: 10px;
  transition: background-color 0.4s ease, box-shadow 0.3s ease;
}

.navbar-scroll {
  background-color: transparent !important;
  position: absolute;
  top: 0;
  left: 0;
}

.navbar-scrolled {
  background-color: #007bff !important;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  left: 0;
}

/* Atur isi navbar supaya tetap sejajar di mobile */
.navbar .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}


    /* Warna teks saat transparan */
    .navbar-scroll .nav-link,
    .navbar-scroll ,
    .navbar-scroll .navbar-toggler {
      color: #ffffff !important;
    }

    /* Warna teks saat navbar biru */
    .navbar-scrolled .nav-link,
    .navbar-scrolled .navbar-brand span,
    .navbar-scrolled .navbar-toggler {
      color: white !important;
      
    }


     /* HOME/INDEX */
    /* Font Imports */
  @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Poppins:wght@400;500;600&display=swap');
  
  /* Font Family */
  .font-playfair .h4 {
    font-family: 'Playfair Display', sans-serif;
  }
  
  .justify-text {
      text-align: justify;  /* Teks rata kiri-kanan */
      line-height: 1.6;    /* Spasi antar-baris */
  }
  
  body {
    font-family: 'Nunito', sans-serif;
    font-weight: 550;
  }
  
  /* Animations */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
  }

  
  /* Title Styling */
  .title-underline {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 3px;
  }
  
  /* Cards */
  .service-card {
    transition: all 0.3s ease;
    background: white;
    border-top: 4px solid transparent;
  }
  
  .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
  }
  
  .hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
  }
  
  .transition-all {
    transition: all 0.3s ease;
  }
  
  /* Icons */
  .icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
  }
  
  .icon-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Background Colors */
  .bg-primary-light {
    background-color: rgba(52, 152, 219, 0.1);
  }
  
  .bg-danger-light {
    background-color: rgba(231, 76, 60, 0.1);
  }
  
  .bg-success-light {
    background-color: rgba(46, 204, 113, 0.1);
  }
  
  /* Product Overlay */
  .product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.5));
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .card:hover .product-overlay {
    opacity: 1;
  }
  
  /* Utilities */
  .max-w-800 {
    max-width: 800px;
  }
  
  .hover-shadow {
    transition: box-shadow 0.3s ease;
  }
  
  .hover-shadow:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
  }
    
  /* HALAMAN PROFIL DESA */
   .org-structure {
    position: relative;
    padding: 20px 0;
  }

  .org-box {
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
  }

  .org-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important;
  }

  .org-avatar img {
    border: 3px solid rgba(255,255,255,0.3);
    object-fit: cover;
  }

  .org-level-1 .org-box {
    min-width: 200px;
  }

  .org-level-2 .org-box {
    min-width: 180px;
  }

  .org-level-3 .org-box {
    min-height: 180px;
  }

  .org-connectors {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
  }

  .level-1-2-connector,
  .level-2-3-connector {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: #dee2e6;
    width: 2px;
  }

  .level-1-2-connector {
    top: 100px;
    height: 60px;
  }

  .level-2-3-connector {
    top: 240px;
    height: 40px;
  }

  @media (max-width: 768px) {
    .org-level-3 .col-md-3 {
      margin-bottom: 20px;
    }
    
    .level-1-2-connector,
    .level-2-3-connector {
      display: none;
    }
  }

  .profile-header-image {
    position: relative;
    z-index: 1;
  }
  
  .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px !important;
  }
  
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
  }
  
  .carousel-control-prev, .carousel-control-next {
    width: 5%;
    background: rgba(0,0,0,0.3);
  }
  
  .breadcrumb {
    padding: 10px 15px;
    border-radius: 8px;
  }
  
  table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
  }

  /* animasi profil_desa.php */
  /* Animation Classes */
.animate__animated {
  animation-duration: 1s;
}
.animate__delay-1s {
  animation-delay: 0.5s;
}
.animate__delay-2s {
  animation-delay: 1s;
}
.animate__delay-3s {
  animation-delay: 1.5s;
}

/* Timeline Style */
.timeline-steps {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-steps::before {
  content: '';
  position: absolute;
  left: 33px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #0d6efd, #dc3545);
  z-index: 1;
}

.timeline-step {
  position: relative;
  padding-bottom: 30px;
  z-index: 2;
}

.timeline-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.timeline-step:hover .timeline-icon {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.timeline-content {
  position: relative;
  top: -10px;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.timeline-step:hover .timeline-content {
  transform: translateX(10px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .timeline-steps::before {
    left: 25px;
  }
  .timeline-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  .timeline-content {
    padding: 15px;
  }
}

.timeline {
  position: relative;
  padding-left: 50px;
}
.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-content {
  padding: 10px;
  border-radius: 5px;
}

/* Organization Chart */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.org-level {
  margin: 20px 0;
  position: relative;
}
.org-node {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: center;
  transition: all 0.3s ease;
}
.org-node:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.org-avatar img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
.org-info h5 {
  font-size: 1rem;
  margin-top: 10px;
  color: #2c3e50;
}
.org-info p {
  font-size: 0.85rem;
  color: #7f8c8d;
  margin-bottom: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .profile-header-image {
    height: 300px !important;
  }
  .org-avatar img {
    width: 60px;
    height: 60px;
  }
}

/* halaman home/berita.php */
/* Custom Styles */
.text-gradient {
  background: linear-gradient(45deg, #0d6efd, #20c997);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hover-effect {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.hover-effect:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.object-fit-cover {
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hover-effect:hover .object-fit-cover {
  transform: scale(1.05);
}

.clamp-2-line {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clamp-3-line {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.header-icon {
  width: 80px;
  height: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(13, 110, 253, 0.1);
  border-radius: 50%;
}

/* Pagination */
.pagination .page-item.active .page-link {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.pagination .page-link {
  color: #0d6efd;
  margin: 0 5px;
  border-radius: 8px !important;
}

@media (max-width: 768px) {
  .header-icon {
    width: 60px;
    height: 60px;
  }
}


  