body {
    margin: 0;
    /* padding: 0; */
    padding-top: 70px;
    background-color: #e8f0f6;
}
#particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* pastikan di bawah semua konten */
    pointer-events: none; /* biar partikel nggak menghalangi klik di elemen lain */
}

/* Navbar */
.container-fluid {
    color: #ffffff;
    background-color: #213448;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    margin-top: 50px;
    width: 100%;
    z-index: 1000; /* Menempatkan navigasi di atas konten lainnya */
    padding: 10px 20px; /* Tambahan padding biar isi navbar ga nempel */
}

.navbar .container-fluid {
  display: flex;
  justify-content: space-between;
  align-items: center; /* ⬅️ Kunci biar logo & hamburger sejajar */
}

.d-flex {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
  color: white!important;
  font-weight: bold !important;
  background-color: transparent !important;
  text-decoration: none !important;
}

.navbar-nav .nav-link:hover {
  color: inherit!important;
  text-decoration: underline !important;
}

/* Logo */
.logo {
    height: 48px;
    width: auto;
    display: block;
    padding-right: 10px;
    float: left;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    line-height: 1.2;
}

.logo-name {
    font-size: 20px;
    font-weight: bold;
}

.logo-tagline {
    font-size: 14px;
    color: #cccccc;
}

/* Menu Navbar */
.menu-kanan {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none; 
}

.dropdown-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

/* Menampilkan dropdown ketika elemen fokus (diklik) */
.dropdown:focus-within .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    padding: 10px 15px;
    display: block;
    text-decoration: none;
    color: #333;
}

.dropdown-menu a:hover {
    background-color: #eeeeee;
    font-weight: bold;
}

.btn-fitur, .btn-visimisi, .btn-login {
    background-color: #f1f1f1;
    text-decoration: none;
    color: #547792;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-fitur:hover, .btn-visimisi:hover, .btn-login:hover {
    background-color: #eeeeee;
    transform: scale(1.05);
}


/* Konten */
.konten h1 {
    color: #547792;
    font-size: 2rem;
}

.konten p {
    text-align: justify;
    font-size: 1.1rem;
    color: #555;
}

.grid-container1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 50px;
    align-items: center;
    height: 600px;
}

.textBox {
    padding: 20px;
    color: #2d3e50;
}

.textBox .judul-home {
    font-family: "Archivo Black", sans-serif;
    font-size: 40px;
    margin-bottom: 20px;
}

.paragraf-home {
    font-size: 18px;
    line-height: 1.6;
    /* font-family: 'Boy Run', cursive; */
}

.video-home {
    margin-top: 20px;
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.fitur {
    min-height: 100vh; /* 100% tinggi layar */
    scroll-margin-top: 50px;
    padding: 60px 40px;
    text-align: center;
}

.textBox2 h2 {
    font-size: 28px;
    color: #2d3e50;
    margin-bottom: 40px;
}

.grid-container2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.grid-item {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: center;
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: scale(1.1);
}

.grid-item:hover .fitur-info {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fitur-title {
    margin-top: 10px;
    font-weight: bold;
    font-size: 18px;
    color: #3c4a57;
}

.fitur-info {
    background-color: #547792;
    color: #ffffff;
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease-in-out;
}

.grid-item img {
    max-width: 100%;
    height: 120px;
    margin-bottom: 15px;
}

/* Visi & Misi */
.visimisi-section {
    padding: 60px 40px;
    text-align: center;
    color: #2d3e50;
}

.visimisi-container {
    max-width: 1000px;
    margin: 0 auto;
}

.judul-visimisi {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 50px;
    color: #2d3e50;
}

/* Grid 2 Kolom */
.visimisi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: start;
    text-align: left;
}

.visi h3, .misi h3 {
    text-align: center;
    font-size: 22px;
    color: #547792;
    margin-bottom: 10px;
}

.visi p, .misi li {
    font-size: 16px;
    line-height: 1.6;
}

.misi ul {
    list-style-type: disc;
    padding-left: 20px;
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* Menu Utama Siswa */
.siswa-home-container {
    padding: 60px 20px;
}

.siswa-home-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
}

.fitur-btn-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 60px;
}

.fitur-btn {
    background-color: #0d6efd;
    color: white;
    padding: 20px 30px;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    transition: background-color 0.3s, transform 0.3s;
    width: 200px;
    text-align: center;
    text-decoration: none;
}

.fitur-btn:hover {
    background-color: #0b5ed7;
    transform: translateY(-3px);
}


/* Footer */
.footer-custom {
    background-color: #547792;
    color: #f1f1f1;
    text-align: center;
    width: 100%;
    padding: 5px;
    font-size: 0.9rem;
}

@media (max-width: 767.98px) {
  .logo-text-group {
    display: none !important;
  }

  .video {
    display: none !important;
  }

  .navbar .container-fluid {
    flex-direction: row !important; /* Pastikan tetap horizontal */
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 15px;
  }

  .navbar-collapse {
    background-color: #1e2a38;
    position: absolute;
    top: 100%; /* agar muncul tepat di bawah navbar */
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 1rem;
    border-top: 1px solid #444;
  }

  .dropdown-menu {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: none;
    background-color: #f8f9fa;
  }

  .dropdown-menu a {
    padding: 10px 12px;
    width: 100%;
  }

  .dropdown-toggle,
  .btn-fitur,
  .btn-visimisi,
  .btn-login {
    width: 100%;
    text-align: left;
    padding: 8px 0;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    position: absolute;
    top: 100%; /* ⬅️ Ini penting: letakkan tepat di bawah navbar */
    left: 0;
    width: 100%;
    background-color: #1e2a38;
    z-index: 999;
    padding: 1rem 1.5rem;
    border-top: 1px solid #444;
  }
}