/* --- RESET & DASAR --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #f8fafc; /* Warna background abu-abu clean khas web modern */
  color: #1e293b;
  overflow-x: hidden;
}

.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* --- HERO / BANNER REVOLUTION --- */
.hero {
  position: relative;
  width: 100%;
  height: 380px; /* Sedikit dinaikkan proporsinya agar elegan */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8%;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Overlay gradasi gelap agar tulisan putih menyala tajam dan terbaca */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.4) 100%);
  z-index: 2;
}

/* Teks Hero dibuat menonjol */
.hero-text {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 650px;
}

.hero-text h1 {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-text h4 {
  font-size: 1.2rem;
  font-weight: 400;
  color: #cbd5e1;
  margin-bottom: 15px;
}

/* Badge nama sekolah yang digeser ke bawah teks agar layout proporsional */
.hero-school {
  display: inline-block;
  background-color: #d97706; /* Emas agak gelap amber */
  color: #ffffff;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
}

/* Logo Sekolah */
.hero-logo {
  position: relative;
  z-index: 3;
  width: 110px;
  height: 110px;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo img {
  width: 100%;
  height: auto;
}

/* --- SECTION / CONTAINER MENU --- */
.section {
  margin-bottom: 45px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 20px;
  position: relative;
  padding-left: 14px;
}

/* Garis vertikal estetis di sebelah kiri judul bagian */
.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  background-color: #3b82f6;
  border-radius: 2px;
}

/* Layout Grid Fleksibel */
.menu-container {
  display: grid;
  gap: 20px;
  width: 100%;
}

.menu-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.menu-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Khusus Branding Sekolah agar muat ganjil (7 item) tetap seimbang */
.branding-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* --- CARD MENU (ITEM) ELEGAN --- */
.menu-item {
  display: flex;
  align-items: center;
  background: #ffffff;
  padding: 18px 24px;
  border-radius: 16px; /* Lebih membulat modern */
  text-decoration: none;
  color: #334155;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(241, 245, 249, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efek Hover Mengambang Halus */
.menu-item:hover {
  transform: translateY(-4px);
  background: #ffffff;
  box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08), 0 8px 8px -5px rgba(0, 0, 0, 0.04);
  border-color: rgba(59, 130, 246, 0.2);
}

/* Lingkaran Ikon Menu */
.menu-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-right: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.menu-title {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  color: #334155;
}

.menu-item:hover .menu-title {
  color: #1d4ed8; /* Judul sedikit berubah biru saat di-hover */
}

/* --- FOOTER --- */
.footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 24px 20px;
  text-align: center;
  font-size: 0.875rem;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer .divider {
  color: #475569;
}

.footer strong {
  color: #f8fafc;
}

/* --- RESPONSIVITAS MOBILE (HP) --- */
@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 300px;
    flex-direction: column-reverse;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
    gap: 25px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text h4 {
    font-size: 1rem;
  }

  .hero-logo {
    width: 90px;
    height: 90px;
  }

  .main-container {
    padding: 20px 16px;
  }
}
