/* --- GLOBAL STYLES --- */
body {
  font-family: "Roboto", sans-serif;
  background-color: #f8f9fa;
  color: #333;
  padding-top: 70px;
  margin: 0;
}

/* --- NAVBAR --- */
#mainNavbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030;
  background: transparent !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  padding: 10px 0;
}

#mainNavbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo Group */
.navbar-logo-group {
  display: flex;
  gap: 15px;
  align-items: center;
}

.logo-kegiatan {
  border: 1.5px solid #000;
  border-radius: 9999px;
  padding: 6px 18px;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

/* Menu Links */
.navbar-nav {
  list-style: none;
  display: flex;
  gap: 50px;
  margin: 0;
  padding: 0;
  letter-spacing: 2px;
}

.navbar-nav li a.nav-link {
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
  color: #000 !important;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.navbar-nav li a.nav-link:hover {
  color: #007bff !important;
}

/* --- HERO SECTION --- */
.hero-section {
  background: #fff;
  padding: 160px 20px 80px 20px;
}

.hero-section .container {
  max-width: 1200px;
  margin: auto;
}

.hero-section h1 {
  font-size: 3.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.hero-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.hero-section h3 {
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.hero-section p.lead {
  font-weight: 300;
  font-size: 1.2rem;
  color: #444;
  max-width: 480px;
}

.hero-section img {
  max-height: 400px;
  object-fit: contain;
  user-select: none;
}

/* Animasi Floaty */
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}
.hero-illustration {
  animation: floaty 6s ease-in-out infinite;
  will-change: transform;
}

/* --- SEARCH SECTION (Kotak Pencarian) --- */
.search-section {
  margin-top: 20px;
  margin-bottom: 20px;
  background-color: #fff;
  border-radius: 8px;
  padding: 40px 20px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.07);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.search-section h2 {
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 20px;
}

.search-section input.form-control-lg {
  border-radius: 50px;
  padding: 15px 20px;
  font-size: 1.1rem;
  box-shadow: none;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  width: 100%;
  max-width: 100%;
}

.search-section input.form-control-lg:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
}

.search-section button.btn-primary {
  border-radius: 50px;
  font-weight: 600;
  padding: 12px;
  width: 100%;
  margin-top: 10px;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.search-section button.btn-primary:hover {
  background-color: #0b5ed7;
  box-shadow: 0 6px 12px rgba(11, 94, 215, 0.5);
}

/* --- HASIL PENCARIAN (Gaya LingoHut) --- */
.search-results {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 20px;
}

.search-results .item {
  flex: 1 1 45%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 0;
  cursor: default;
}

.search-results .item .texts {
  max-width: 90%;
  line-height: 1.3;
}

.search-results .item .title {
  font-weight: 700;
  font-size: 1rem;
  color: #000;
  margin-bottom: 3px;
  user-select: text;
}

.search-results .item .foreign-text {
  color: #0d6efd; /* Ungu LingoHut */
  font-size: 1.25rem;
  font-weight: 400;
}

.search-results .item .transliteration {
  color: #0d6efd; /* Ungu Muda */
  font-size: 1rem;
  font-style: italic;
  opacity: 0.8;
  margin-top: -2px;
  font-family: "Courier New", monospace;
}

.btn-play {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--lh-purple);
  color: rgb(15, 15, 15);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px #0d6efd;
}

.btn-play:hover {
  color: #0d6efd;
}

/* --- CARD BERITA --- */
.card-berita {
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 100%;
}

.card-berita:hover {
  transform: translateY(-5px);
}

.card-berita img {
  height: 200px;
  object-fit: cover;
}

.berita-date {
  font-size: 0.85rem;
  color: #6c757d;
}

/* --- RESPONSIVE MEDIA QUERIES --- */

/* Tablet & Laptop Kecil */
@media (max-width: 991px) {
  .hero-section h1 {
    font-size: 2.9rem;
  }
  .hero-section h2 {
    font-size: 2rem;
  }
  .hero-section h3 {
    font-size: 1.3rem;
  }
  .hero-section p.lead {
    max-width: 100%;
  }
  .navbar-nav {
    gap: 30px;
  }
}

/* Mobile (HP) - FIX MENU BURGER & LOGO */
@media (max-width: 600px) {
  /* Hasil pencarian jadi 1 kolom */
  .search-results .item {
    flex-basis: 100%;
    border-bottom: 1px solid #ddd;
  }

  /* Fix Logo Mobile agar muat */
  .navbar-logo-group img {
    height: 28px !important;
    width: auto;
  }
  .navbar-logo-group {
    gap: 5px !important;
  }

  /* FIX UTAMA: Agar Logo & Burger tetap di ATAS saat menu dibuka */
  #mainNavbar .container {
    flex-wrap: wrap !important;
    align-items: flex-start !important; /* Kunci posisi di atas */
  }

  /* Penyesuaian vertikal tombol burger */
  .navbar-toggler {
    margin-top: -4px;
  }

  /* Penyesuaian padding search section di HP */
  .search-section {
    padding: 30px 15px;
  }
  .search-section h2 {
    font-size: 1.5rem;
  }
  .search-section input.form-control-lg {
    font-size: 1rem;
  }
}
