


    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: 'Roboto', sans-serif;
      color: var(--text-dark);
      /* Gradien body utama: Putih bersih ke abu-abu sangat samar */
      background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
      padding-top: 50px;
      overflow-x: hidden;
    }

    h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; }

    /* Preloader */
    #preloader {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: #fff;
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: opacity 0.5s ease-out;
    }
    #preloader .spinner-grow {
      width: 3rem;
      height: 3rem;
      background-color: var(--primary-color);
    }

    /* Navbar Styling */
    .navbar {
      /* Gradien Navbar: Putih transparan ke putih solid di bawah */
      background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.95) 100%);
      box-shadow: 0 2px 10px rgba(0,0,0,0.05);
      padding: 0.8rem 1rem;
      transition: all 0.3s ease;
      backdrop-filter: blur(10px);
    }

    .navbar.scrolled {
      padding: 0.5rem 1rem;
      box-shadow: 0 4px 20px rgba(0,0,0,0.1);
      background-color: #fff;
    }

    .navbar-brand {
      display: flex;
      align-items: center;
      font-weight: 700;
      color: var(--primary-color) !important;
    }

    .navbar-brand img { height: 45px; margin-right: 10px; }

   .navbar-nav .nav-link {
      color: var(--text-dark) !important;
      font-weight: 500;
      font-size: 0.95rem;
      margin: 0 2px;
      transition: color 0.3s;
    }
    .nav-btn-link {
      border: 1.5px solid transparent;
      border-radius: 50px;
      padding: 8px 18px !important;
      transition: all 0.3s ease;
    }

    .nav-btn-link:hover {
      background-color: rgba(0,0,0,0.03);
      color: var(--primary-color) !important;
      border-color: rgba(0,0,0,0.1);
    }

    .nav-btn-link.active {
      background-color: var(--primary-color);
      color: #fff !important;
      border-color: var(--primary-color);
      box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
    }

    /* Hero Section */
    .hero-section {
      /* Gradien Hero: Mix warna primary dengan putih */
      background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(var(--primary-rgb), 0.1) 100%), url('assets/img/hero-bg.jpg');
      background-size: cover;
      background-position: center;
      padding: 80px 0;
      min-height: 500px;
      display: flex;
      align-items: center;
      border-bottom: 1px solid #eee;
    }

    .hero-title {
      font-size: 3rem;
      font-weight: 700;
      color: var(--primary-dark);
      margin-bottom: 1.5rem;
    }

    .hero-subtitle {
      font-size: 1.2rem;
      color: var(--text-muted);
      margin-bottom: 2rem;
    }

    /* Buttons */
    .btn-primary-custom {
      background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
      border: none;
      color: #fff;
      padding: 12px 30px;
      border-radius: 50px;
      font-weight: 600;
      box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
      transition: all 0.3s ease;
    }

    .btn-primary-custom:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.5);
      color: #fff;
    }

    .btn-outline-custom {
      border: 2px solid var(--primary-color);
      color: var(--primary-color);
      padding: 10px 28px;
      border-radius: 50px;
      font-weight: 600;
      background: transparent;
      transition: all 0.3s ease;
    }

    .btn-outline-custom:hover {
      background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
      color: #fff;
      border-color: transparent;
      box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
    }

    /* Section Styling with Gradients */
    .section {
      padding: 80px 0;
      position: relative;
    }

    /* Section Berita: Gradien Putih Bersih */
    #berita {
      background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    }

    /* Section Tentang: Gradien Abu-abu Modern */
    #tentang {
      background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    }

    /* Section Pelayanan: Gradien Putih ke Primary Sangat Transparan */
    #pelayanan {
      background: linear-gradient(180deg, #ffffff 0%, rgba(var(--primary-rgb), 0.03) 100%);
    }

    /* Section Organisasi: Gradien Soft Grey */
    #organisasi {
      background: linear-gradient(135deg, #f0f2f5 0%, #ffffff 100%);
    }

    /* Section Galeri: Gradien Putih */
    #galeri {
       background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    }

    /* Section Data: Gradien Abu Lembut */
    #data {
       background: linear-gradient(135deg, #f2f3f5 0%, #ffffff 100%);
    }

    /* Section Kontak: Gradien ke Footer */
    #kontak {
       background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    }

    .section-title {
      font-size: 2.5rem;
      color: var(--text-dark);
      margin-bottom: 1rem;
      position: relative;
      display: inline-block;
    }

    .section-title::after {
      content: '';
      position: absolute;
      bottom: -10px;
      left: 0;
      width: 60px;
      height: 3px;
      background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
      border-radius: 5px;
    }

    .section-title.text-center::after {
      left: 50%;
      transform: translateX(-50%);
    }

    .section-desc {
      color: var(--text-muted);
      margin-bottom: 3rem;
    }

    /* Cards */
    .service-card {
      border: none;
      border-radius: 15px;
      background-color: #fff;
      box-shadow: 0 5px 20px rgba(0,0,0,0.05);
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      overflow: hidden;
      margin-bottom: 30px;
      height: 100%;
    }

    .service-card:hover {
      transform: translateY(-10px) scale(1.02);
      box-shadow: 0 15px 40px rgba(var(--primary-rgb), 0.15);
      border: 1px solid rgba(var(--primary-rgb), 0.1);
    }

    .service-icon {
      font-size: 3rem;
      color: var(--primary-color);
      margin-bottom: 1rem;
      transition: transform 0.3s;
    }

    .service-card:hover .service-icon {
        transform: scale(1.2) rotate(5deg);
    }

    /* Team Card */
    .team-card {
      background: #fff;
      border-radius: 15px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.05);
      padding: 20px;
      display: flex;
      align-items: center;
      margin-bottom: 20px;
      border-left: 5px solid var(--primary-color);
      transition: transform 0.3s, box-shadow 0.3s;
    }

    .team-card:hover {
        transform: translateX(10px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    }

    .team-photo {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      object-fit: cover;
      margin-right: 20px;
      border: 3px solid #eee;
    }

    /* Gallery */
    .gallery-card {
      position: relative;
      border-radius: 15px;
      overflow: hidden;
      margin-bottom: 30px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.1);
      cursor: pointer;
    }

    .gallery-card img {
      width: 100%;
      height: 220px;
      object-fit: cover;
      transition: transform 0.5s ease;
    }

    .gallery-card:hover img { transform: scale(1.1); }

    .gallery-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: linear-gradient(transparent, rgba(0,0,0,0.8));
      padding: 20px;
      color: #fff;
    }

    /* News */
    .news-card {
      border: none;
      border-radius: 15px;
      overflow: hidden;
      background: #fff;
      box-shadow: 0 5px 15px rgba(0,0,0,0.05);
      margin-bottom: 30px;
      height: 100%;
      transition: all 0.3s;
    }

    .news-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }

    .news-img-top {
      height: 200px;
      object-fit: cover;
    }

    /* Footer - Gradien Gelap Elegan */
    .footer {
      background: linear-gradient(135deg, #2c3e50 0%, #343a40 100%);
      color: #fff;
      padding: 60px 0 20px;
      position: relative;
    }

    /* Efek garis warna di atas footer */
    .footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--primary-color), #fff, var(--primary-color));
    }

    .footer-title {
      font-size: 1.2rem;
      margin-bottom: 20px;
      color: #fff;
      border-bottom: 2px solid rgba(255,255,255,0.2);
      padding-bottom: 10px;
      display: inline-block;
    }

    .footer a { color: #adb5bd; transition: color 0.3s; }
    .footer a:hover { color: var(--primary-color); text-decoration: none; }

    /* Back to Top */
    .back-to-top {
      position: fixed;
      bottom: 30px;
      right: 30px;
      width: 50px;
      height: 50px;
      background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
      color: #fff;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s;
      z-index: 999;
      box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.4);
    }

    .back-to-top.visible { opacity: 1; visibility: visible; }

    /* Social Icons */
    .social-icons-container { margin-top: 20px; }
    .social-icon {
        display: inline-block;
        width: 40px;
        height: 40px;
        line-height: 40px;
        text-align: center;
        border-radius: 50%;
        background-color: rgba(255,255,255,0.1);
        color: #fff;
        margin-right: 5px;
        transition: all 0.3s ease;
    }
    .social-icon:hover {
        background-color: var(--primary-color);
        color: #fff;
        transform: translateY(-3px);
        text-decoration: none;
        box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
    }

    /* Table Style for Link Kelurahan */
    .table-kelurahan-wrapper {
        max-height: 500px;
        overflow-y: auto;
        border-radius: 10px;
        border: 1px solid #eee;
        background-color: #fff;
    }
    .table-kelurahan-wrapper thead th {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
        color: #fff;
        position: sticky;
        top: 0;
        z-index: 10;
        border: none;
    }
    .table-kelurahan-wrapper tbody tr:hover {
        background-color: rgba(var(--primary-rgb), 0.05);
    }

    /* Modal Styling */
    .modal-content {
        border-radius: 15px;
        border: none;
    }
    .modal-header {
         background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
         border-bottom: 1px solid #eee;
    }

    /* Background Gelap Transparan */
    #modalGallery .modal-backdrop.show { opacity: 0.9; }

    /* Styling Tombol Close */
    .close-modal-btn {
        position: absolute;
        top: -40px; right: 0px;
        font-size: 2.5rem; color: #fff; opacity: 0.8;
        background: none; border: none; cursor: pointer; z-index: 1051;
        text-shadow: 0 2px 5px rgba(0,0,0,0.5);
        transition: all 0.3s;
    }
    .close-modal-btn:hover { opacity: 1; transform: rotate(90deg); }

    .modal-caption { color: #fff; margin-top: 15px; font-size: 1.1rem; font-weight: 500; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }

    /* Agar gambar tidak melebihi layar */
    #carouselGalleryInside .carousel-item img { max-height: 90vh; width: auto; margin: auto; border-radius: 8px; }

