/* ==========================================================================
   GLOBAL RESET & BASE
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  background: #0f172a;
  color: #fff;
}

/* ==========================================================================
   NAVBAR - DESKTOP
   ========================================================================== */
.main-navbar {
  background: #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #334155;
}

.logo-section { display: flex; align-items: center; gap: 12px; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 5px;
  align-items: center;
}

.nav-links a,
.nav-links .dropdown-toggle {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  font-size: 14.5px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  display: block;
}

.nav-links a:hover,
.nav-links .dropdown-toggle:hover { color: #34d399; background: rgba(52,211,153,0.08); }

/* Dropdown */
.dropdown { position: relative; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #1e293b;
  min-width: 200px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  border-radius: 10px;
  border: 1px solid #334155;
  padding: 6px 0;
  z-index: 9999;
}

.dropdown-menu.show { display: block; }

.dropdown-menu a {
  padding: 10px 16px;
  color: #cbd5e1;
  font-size: 14px;
  display: block;
  border-bottom: 1px solid #273549;
  border-radius: 0;
}

.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: #334155; color: #34d399; }

/* Buttons */
.btn-hubungi {
  background: #00b894 !important;
  color: white !important;
  border-radius: 20px !important;
  padding: 8px 20px !important;
  font-weight: 600 !important;
}

.btn-backend {
  background: #2563eb !important;
  color: white !important;
  border-radius: 20px !important;
  padding: 8px 20px !important;
  font-weight: 600 !important;
}

.btn-logout {
  color: #ff7675 !important;
  font-weight: 600 !important;
  padding: 8px 12px !important;
}

.btn-logout:hover { color: #ff5252 !important; background: rgba(255,118,117,0.1) !important; }

/* Hamburger Button */
.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #cbd5e1;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger active state (X) */
.hamburger-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 998;
}

.mobile-overlay.active { display: block; }

/* ==========================================================================
   MOBILE NAVBAR (≤ 992px)
   ========================================================================== */
@media (max-width: 992px) {
  .main-navbar { padding: 15px 20px; }
  .hamburger-btn { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #1e293b;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 80px 0 30px 0;
    z-index: 999;
    overflow-y: auto;
    transition: right 0.3s ease;
    border-left: 1px solid #334155;
  }

  .nav-links.mobile-open { right: 0; }

  .nav-links li { width: 100%; }

  .nav-links a,
  .nav-links .dropdown-toggle {
    padding: 14px 24px;
    font-size: 15px;
    border-radius: 0;
    border-bottom: 1px solid #273549;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .nav-links li:last-child a { border-bottom: none; }

  /* Dropdown mobile */
  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: #0f172a;
    padding: 0;
    min-width: unset;
  }

  .dropdown-menu.show { display: block; }

  .dropdown-menu a {
    padding: 12px 24px 12px 40px;
    font-size: 14px;
    color: #94a3b8;
  }

  .dropdown-menu a:hover { color: #34d399; background: #1e293b; }

  .btn-backend, .btn-hubungi, .btn-logout {
    margin: 10px 24px !important;
    border-radius: 10px !important;
    text-align: center;
    justify-content: center;
    width: calc(100% - 48px) !important;
  }
}

/* ==========================================================================
   BERANDA / HERO
   ========================================================================== */
.hero {
  background-image: url("img/foto6.jpg");
  background-size: cover;
  background-position: center;
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.88) 0%, rgba(15,23,42,0.55) 100%);
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 60px 30px;
}

.hero-text { color: white; flex: 1; min-width: 0; }
.hero-text h1 { font-size: clamp(2rem, 5vw, 3.8rem); margin-bottom: 10px; font-weight: 800; line-height: 1.15; }
.hero-text h2 { font-size: clamp(1.1rem, 3vw, 1.8rem); color: #34d399; margin-bottom: 20px; font-weight: 600; }

.hero-desc .desc-main  { font-size: clamp(0.875rem, 2vw, 1rem); line-height: 1.8; color: #cbd5e1; margin-bottom: 10px; }
.hero-desc .desc-small { font-size: clamp(0.8rem, 1.8vw, 0.9rem); color: #94a3b8; line-height: 1.7; }

.jadwal-card {
  width: 290px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.97);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  color: #0f172a;
}

.jadwal-header { text-align: center; margin-bottom: 16px; }
.jadwal-header small { font-size: 11px; text-transform: uppercase; color: #64748b; letter-spacing: 1px; }
.jadwal-header h3 { font-size: 17px; color: #0f172a; font-weight: 700; margin-top: 4px; }

.jadwal-list { display: flex; flex-direction: column; }

.jadwal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}

.jadwal-item:last-child { border-bottom: none; }
.jadwal-item span   { color: #64748b; }
.jadwal-item strong { color: #064e3b; font-size: 15px; font-weight: 700; }

/* ── TABLET (≤ 900px) ── */
@media (max-width: 900px) {
  .hero-container { gap: 28px; padding: 40px 24px; }
  .jadwal-card    { width: 260px; padding: 18px; }
}

/* ── MOBILE (≤ 640px) ── */
@media (max-width: 640px) {
  .hero {
    min-height: 100svh;
    align-items: flex-start;
  }

  .hero-container {
    flex-direction: column;
    align-items: stretch;
    padding: 32px 18px 28px;
    gap: 24px;
    text-align: center;
  }

  .hero-text h1 { font-size: 2rem; }
  .hero-text h2 { font-size: 1.1rem; }
  .hero-desc .desc-main  { font-size: 0.9rem; }
  .hero-desc .desc-small { font-size: 0.82rem; }

  .jadwal-card {
    width: 100%;
    padding: 18px 16px;
    border-radius: 14px;
  }

  .jadwal-item { font-size: 13px; padding: 8px 0; }
  .jadwal-item strong { font-size: 14px; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.modern-light-footer {
  background-color: #ffffff !important;
  color: #334155 !important;
  padding: 70px 0 30px 0;
  border-top: 1px solid #f1f5f9;
}

.footer-main-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 60px;
  padding-bottom: 50px;
}

.footer-brand-info .brand-header-flex { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }

.brand-icon-green-footer {
  background-color: #064e3b;
  color: #ffffff;
  width: 38px; height: 38px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}

.footer-brand-info h4 { font-size: 17px; font-weight: 700; color: #0f172a; }
.footer-brand-info .meta-address { font-size: 12.5px; color: #94a3b8; }
.brand-tagline-text { font-size: 14px; color: #475569; line-height: 1.6; }

.footer-links-column h5 { font-size: 15px; font-weight: 700; color: #0f172a; margin-bottom: 20px; }
.footer-links-column ul { list-style: none; }
.footer-links-column ul li { margin-bottom: 12px; }
.footer-links-column ul li a { color: #475569; text-decoration: none; font-size: 14.5px; }
.footer-links-column ul li a:hover { color: #064e3b; font-weight: 600; }

.contact-list-items li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: #475569; margin-bottom: 14px; }
.contact-list-items li i { color: #64748b; width: 16px; }

.footer-bottom-copyright {
  max-width: 1200px; margin: 0 auto; padding: 0 30px;
  border-top: 1px solid #f1f5f9;
  padding-top: 30px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13.5px; color: #94a3b8;
}

.footer-bottom-copyright .heart-icon { color: #ef4444; }

@media (max-width: 992px) {
  .footer-main-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom-copyright { flex-direction: column; gap: 12px; text-align: center; }
}

/* ==========================================================================
   GALERI
   ========================================================================== */
.galeri { max-width: 1200px; margin: 60px auto; padding: 20px; }
.galeri-header { text-align: center; margin-bottom: 40px; }
.galeri-header h1 { font-size: 2.2rem; color: #ffffff; margin-bottom: 10px; }
.galeri-header p { color: #94a3b8; font-size: 15px; }

.galeri-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }

.galeri-card {
  background: #1e293b;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #334155;
}

.galeri-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.3); }
.galeri-card img { width: 100%; height: 240px; object-fit: cover; display: block; }
.galeri-content { padding: 18px; }
.galeri-content h3 { color: #ffffff; font-size: 18px; margin-bottom: 8px; }
.galeri-content p { color: #94a3b8; font-size: 14px; line-height: 1.6; }
.galeri-date { color: #34d399; font-size: 13px; margin-top: 10px; display: block; }

@media (max-width: 768px) {
  .galeri { padding: 15px; }
  .galeri-header h1 { font-size: 1.8rem; }
  .galeri-grid { grid-template-columns: 1fr; }
  .galeri-card img { height: 220px; }
}

/* ==========================================================================
   CONTENT WRAPPER
   ========================================================================== */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

@media (max-width: 768px) {
  .content-wrapper { padding: 20px 15px; }
}
