body {
    background: linear-gradient(120deg, #e0e7ff 0%, #f8fafc 40%, #dbeafe 100%);
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: #222;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
  }
  body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
      radial-gradient(circle at 20% 30%, rgba(59,130,246,0.10) 0, transparent 60%),
      radial-gradient(circle at 80% 10%, rgba(16,185,129,0.10) 0, transparent 60%),
      radial-gradient(circle at 70% 80%, rgba(236,72,153,0.10) 0, transparent 60%),
      radial-gradient(circle at 10% 80%, rgba(251,191,36,0.10) 0, transparent 60%);
    background-repeat: no-repeat;
    background-size: cover;
    transition: opacity 0.5s;
  }
  body::after {
    content: none !important;
    display: none !important;
  }
  @media (min-width: 992px) {
    body::before {
      content: '';
      position: fixed;
      top: 50%;
      left: 50%;
      width: 520px;
      height: 520px;
      background: url('https://upload.wikimedia.org/wikipedia/commons/7/7e/Official_Logo_of_Sidenreng_Rappang_Regency.png') center center no-repeat;
      background-size: contain;
      opacity: 0.07;
      filter: blur(1.5px);
      z-index: 0;
      pointer-events: none;
      transform: translate(-50%, -50%);
      transition: opacity 0.5s;
      mix-blend-mode: lighten;
    }
  }
  .main-content, .container, .container-fluid {
    position: relative;
    z-index: 1;
  }
  
  .navbar {
    background: linear-gradient(90deg, #0d6efd 0%, #3b82f6 100%) !important;
    box-shadow: 0 4px 16px rgba(13,110,253,0.08);
  }
  
  .navbar-brand {
    letter-spacing: 1px;
    font-size: 1.5rem;
  }
  
  .nav-pills .nav-link {
    font-weight: 500;
    color: #0d6efd;
    border-radius: 8px;
    margin-right: 6px;
    transition: background 0.2s, color 0.2s;
  }
  
  .nav-pills .nav-link.active, .nav-pills .nav-link:hover {
    background: linear-gradient(90deg, #0d6efd 0%, #3b82f6 100%);
    color: #fff;
  }
  
  .hero-section {
    background: linear-gradient(120deg, #1976d2 0%, #2196f3 60%, #0d47a1 100%);
    color: #fff;
    position: relative;
    border-radius: 0 0 48px 48px;
    box-shadow: 0 12px 48px 0 rgba(13,110,253,0.18), 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    padding-bottom: 4.5rem;
  }
  .hero-section::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle at 50% 0%, #fff 0%, #2196f3 60%, transparent 100%);
    opacity: 0.08;
    transform: translateX(-50%);
    z-index: 0;
  }
  .hero-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin-bottom: 18px;
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 6px 32px rgba(13,110,253,0.13), 0 1.5px 4px rgba(0,0,0,0.04);
    padding: 12px;
    position: relative;
    z-index: 1;
  }
  .hero-section h1.display-4 {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-shadow: 0 4px 24px #1976d2cc, 0 1.5px 4px #fff8;
    margin-bottom: 0.5rem;
    z-index: 1;
    position: relative;
  }
  .hero-section .text-primary {
    color: #b3e5fc !important;
    font-weight: 800;
    text-shadow: 0 2px 12px #0d47a1cc;
  }
  .hero-section .lead {
    font-size: 1.35rem;
    color: #fff;
    background: rgba(13,110,253,0.18);
    border-radius: 10px;
    padding: 0.7rem 1.2rem;
    margin-bottom: 2.2rem;
    font-weight: 500;
    box-shadow: 0 2px 12px rgba(13,110,253,0.10);
    display: inline-block;
    z-index: 1;
    position: relative;
  }
  .hero-section .btn.btn-lg {
    font-size: 1.25rem;
    padding: 0.9rem 2.5rem;
    border-radius: 16px;
    font-weight: 700;
    box-shadow: 0 4px 24px rgba(13,110,253,0.13);
    transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
  }
  .hero-section .btn.btn-lg:hover {
    background: #fff;
    color: #1976d2;
    box-shadow: 0 8px 32px rgba(13,110,253,0.18);
    transform: translateY(-2px) scale(1.04);
  }
  @media (max-width: 768px) {
    .hero-section {
      padding-bottom: 2.5rem;
      border-radius: 0 0 28px 28px;
    }
    .hero-logo {
      width: 80px;
      height: 80px;
      border-radius: 18px;
      padding: 7px;
    }
    .hero-section h1.display-4 {
      font-size: 2.1rem;
    }
    .hero-section .lead {
      font-size: 1.05rem;
      padding: 0.5rem 0.7rem;
    }
    .hero-section .btn.btn-lg {
      font-size: 1.05rem;
      padding: 0.7rem 1.5rem;
      border-radius: 10px;
    }
  }
  .fitur-section {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(13,110,253,0.10);
    margin-top: -40px;
    position: relative;
    z-index: 2;
  }
  .fitur-card {
    background: #f1f5ff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(13,110,253,0.07);
    transition: transform 0.18s, box-shadow 0.18s;
  }
  .fitur-card:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 8px 24px rgba(13,110,253,0.13);
  }
  .statistik-section {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(16,185,129,0.10);
    margin-bottom: 24px;
  }
  .statistik-box {
    background: linear-gradient(90deg, #0d6efd 0%, #3b82f6 100%);
    color: #fff;
    border-radius: 16px;
    padding: 32px 12px 20px 12px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(13,110,253,0.10);
    font-size: 1.2rem;
    font-weight: 600;
  }
  .search-section input[type="text"] {
    border-radius: 16px;
    border: 2px solid #0d6efd33;
    font-size: 1.15rem;
    padding: 18px 20px;
    margin-bottom: 0;
  }
  #schoolGrid {
    margin-top: 12px;
  }
  .school-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(13,110,253,0.10), 0 1.5px 4px rgba(0,0,0,0.04);
    padding: 32px 12px 20px 12px;
    margin-bottom: 32px;
    text-align: center;
    transition: transform 0.18s cubic-bezier(.4,2,.6,1), box-shadow 0.18s, border 0.18s;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
  }
  .school-card:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 12px 36px rgba(13,110,253,0.18), 0 2px 8px rgba(0,0,0,0.06);
    border: 2px solid #0d6efd33;
    z-index: 2;
  }
  .school-card i {
    font-size: 2.8rem;
    color: #2563eb;
    margin-bottom: 12px;
    transition: color 0.2s;
  }
  .school-card:hover i {
    color: #0d6efd;
  }
  .school-card p {
    margin: 0;
    font-weight: 600;
    color: #222;
    font-size: 1.08rem;
    letter-spacing: 0.2px;
  }
  .modal-content {
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(13,110,253,0.13);
  }
  footer {
    background: linear-gradient(90deg, #0d6efd 0%, #3b82f6 100%);
    color: #fff;
    border-radius: 12px;
    padding: 18px 0 10px 0;
    font-size: 1rem;
    margin-top: 60px;
    box-shadow: 0 2px 12px rgba(13,110,253,0.10);
  }
  .leader-profile {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 6px 32px rgba(13,110,253,0.13), 0 1.5px 4px rgba(0,0,0,0.04);
    padding: 36px 18px 32px 18px;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 420px;
    min-width: 260px;
    max-width: 340px;
    transition: box-shadow 0.2s, transform 0.2s;
  }
  .leader-profile:hover {
    box-shadow: 0 16px 48px rgba(13,110,253,0.18), 0 2px 8px rgba(0,0,0,0.08);
    transform: translateY(-4px) scale(1.03);
  }
  .leader-profile img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 24px rgba(37,99,235,0.13);
    border: 4px solid #e3e9f7;
    margin-bottom: 18px;
    padding: 8px;
  }
  .leader-profile .leader-name {
    font-size: 1.45rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 2px;
    text-align: center;
    letter-spacing: 0.5px;
    min-height: 3.5em;
  }
  .leader-profile .leader-title {
    font-size: 1.08rem;
    color: #2563eb;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0;
  }
  @media (max-width: 991.98px) {
    .leader-profile {
      display: flex !important;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      width: 100%;
      max-width: 340px;
      margin: 0 auto 24px auto;
      min-height: unset;
      padding: 24px 8px 18px 8px;
    }
    .d-none.d-lg-flex.leader-profile {
      display: none !important;
    }
    #kecamatanTabs {
      display: none !important;
    }
    #kecamatanSelectMobile {
      display: block !important;
    }
    .hero-section {
      padding: 2.5rem 0 1.5rem 0;
    }
    .fitur-section, .statistik-section {
      margin-top: 0;
      border-radius: 12px;
    }
    .school-card {
      padding: 18px 4px 12px 4px;
    }
  }
  
  @media (max-width: 576px) {
    .school-card {
      padding: 18px 4px 12px 4px;
      font-size: 0.97rem;
      margin-bottom: 18px;
    }
    .navbar-brand {
      font-size: 1.1rem;
    }
    footer {
      font-size: 0.95rem;
      padding: 12px 0 6px 0;
    }
    .hero-section {
      padding: 1.5rem 0 1rem 0;
    }
    .fitur-card, .statistik-box {
      padding: 18px 6px 12px 6px;
      font-size: 1rem;
    }
    .school-card {
      padding: 12px 2px 8px 2px;
    }
  }
  
  @media (max-width: 575.98px) {
    .navbar-brand img {
      height: 32px !important;
      width: 32px !important;
      margin-right: 8px !important;
    }
    .navbar-brand {
      font-size: 1.05rem !important;
      gap: 8px !important;
    }
  }
  
  .side-info-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(13,110,253,0.10), 0 1.5px 4px rgba(0,0,0,0.04);
    padding: 18px 10px 14px 10px;
    text-align: center;
    margin-bottom: 24px;
    transition: box-shadow 0.18s, transform 0.18s;
    position: relative;
    overflow: hidden;
  }
  .side-info-card:hover {
    box-shadow: 0 12px 36px rgba(13,110,253,0.18), 0 2px 8px rgba(0,0,0,0.06);
    transform: translateY(-4px) scale(1.03);
  }
  .side-info-img {
    width: 100%;
    max-width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(59,130,246,0.10);
  }
  .side-info-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 2px;
  }
  .side-info-desc {
    font-size: 0.97rem;
    color: #444;
    margin-bottom: 0;
  }
  
  /* --- Daftar Semua Sekolah Per Kecamatan --- */
  #daftarSemuaSekolah {
    margin-top: 0.5rem;
  }
  #daftarSemuaSekolah .kec-heading {
    font-size: 1.18rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
    border-left: 4px solid #2563eb;
    padding-left: 12px;
    background: linear-gradient(90deg, #e0e7ff 0%, #fff 100%);
  }
  #daftarSemuaSekolah ul.list-group {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
  }
  #daftarSemuaSekolah .list-group-item {
    border: none;
    background: transparent;
    padding: 4px 0 4px 18px;
    font-size: 1rem;
    color: #222;
    position: relative;
    transition: color 0.15s, font-weight 0.15s;
  }
  #daftarSemuaSekolah .list-group-item::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #2563eb;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 11px;
  }
  #daftarSemuaSekolah .list-group-item:hover {
    color: #0d47a1;
    font-weight: 600;
  }
  #daftarSemuaSekolah .kec-block {
    margin-bottom: 1.5rem;
  }
  @media (max-width: 576px) {
    #daftarSemuaSekolah .kec-heading {
      font-size: 1.05rem;
      padding-left: 8px;
    }
    #daftarSemuaSekolah .list-group-item {
      font-size: 0.97rem;
      padding-left: 14px;
    }
    #daftarSemuaSekolah .kec-block {
      margin-bottom: 1rem;
    }
  }
  
  /* --- KECAMATAN CARD & SCHOOL LIST --- */
  .kecamatan-card {
    cursor: pointer;
    border-radius: 18px;
    transition: box-shadow 0.18s, transform 0.18s;
    border: 2px solid #e0e7ff;
    background: #fff;
  }
  .kecamatan-card:hover {
    box-shadow: 0 8px 32px rgba(13,110,253,0.13);
    border: 2px solid #2563eb33;
    transform: translateY(-4px) scale(1.03);
  }
  .kecamatan-card .card-body {
    padding: 2.2rem 1rem 1.2rem 1rem;
  }
  .school-list {
    background: #f8fafc;
    border: 1.5px solid #e0e7ff;
    border-radius: 12px;
    padding: 1rem 0.7rem 0.7rem 0.7rem;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(13,110,253,0.07);
    transition: all 0.18s;
  }
  .school-list-item {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #222;
    padding: 4px 0;
    border-bottom: 1px solid #e5e7eb;
    transition: color 0.15s, font-weight 0.15s;
  }
  .school-list-item:last-child {
    border-bottom: none;
  }
  .school-list-item:hover {
    color: #0d47a1;
    font-weight: 600;
  }
  .school-list-item .fa-school {
    font-size: 1.1rem;
  }
  .school-list-item .btn-link {
    font-size: 0.97rem;
    padding: 0 0.2rem;
  }
  @media (max-width: 576px) {
    .kecamatan-card .card-body {
      padding: 1.2rem 0.5rem 0.7rem 0.5rem;
    }
    .school-list {
      padding: 0.7rem 0.3rem 0.3rem 0.3rem;
    }
    .school-list-item {
      font-size: 0.97rem;
    }
  }
  
  #schoolSuggestions.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 2000;
    background: #fff;
    border: 1.5px solid #e0e7ff;
    border-top: none;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 12px 32px 0 rgba(13,110,253,0.18), 0 2px 8px rgba(0,0,0,0.06);
    max-height: 320px;
    overflow-y: auto;
    padding: 0.2rem 0;
    margin-top: -2px;
    pointer-events: auto;
  }
  #schoolSuggestions .suggestion-item {
    padding: 10px 18px;
    cursor: pointer;
    font-size: 1.05rem;
    color: #222;
    border-bottom: 1px solid #f1f5ff;
    display: flex;
    align-items: center;
    transition: background 0.15s, color 0.15s;
  }
  #schoolSuggestions .suggestion-item:last-child {
    border-bottom: none;
  }
  #schoolSuggestions .suggestion-item:hover, #schoolSuggestions .suggestion-item.active {
    background: #e0e7ff;
    color: #0d47a1;
  }
  #schoolSuggestions .suggestion-icon {
    font-size: 1.2rem;
    color: #2563eb;
    margin-right: 10px;
  }
  @media (max-width: 576px) {
    #schoolSuggestions .suggestion-item {
      font-size: 0.97rem;
      padding: 8px 10px;
    }
  }
  
  .kecamatan-card, .kecamatan-card * {
    z-index: 1 !important;
  }
  
  .search-section .container,
  #daftar-sekolah .container,
  #daftar-sekolah .row {
    overflow: visible !important;
    position: static !important;
    z-index: auto !important;
  }
  
  .hero-kabupaten {
    font-size: 2.1rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 12px #1976d2cc, 0 1px 0 #2196f3;
    margin-bottom: 0.5rem;
    z-index: 1;
    position: relative;
  }
  @media (max-width: 768px) {
    .hero-kabupaten {
      font-size: 1.2rem;
    }
  }
  