* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Fira Sans", sans-serif;
  color: #173b32;
  background: #f5d84d;
}

a {
  text-decoration: none;
  color: inherit;
}

.school-logo {
  width: 130px;
  height: 35px;
  object-fit: contain;
}
button,
input {
  font: inherit;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.nav-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #006b4f;
  font-size: 1.18rem;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark,
.login-logo {
  display: grid;
  place-items: center;
  color: #fff;
  background: #006b4f;
  font-weight: 800;
  border-radius: 50%;
}

.brand-mark {
  width: 38px;
  height: 38px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
/* =========================
   DROPDOWN NAVIGATION
========================= */

.dropdown {
  position: relative;
}

.dropbtn {
  border: none;
  background: transparent;
  color: #2A3A69;
  font-family: "Fira Sans", sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  padding: 10px 0;
}

.dropbtn span {
  margin-left: 4px;
  font-size: 0.8rem;
}

/* Kotak dropdown */
.dropdown-content {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 210px;

  background: #FFFFFF;
  border-radius: 10px;
  padding: 8px 0;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);

  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);

  transition: 0.25s ease;
}

/* Item dropdown */
.dropdown-content a {
  display: block;
  padding: 11px 18px;
  color: #2A3A69;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Hover item */
.dropdown-content a:hover {
  background: #708090;
  color: #FFFFFF;
}

/* Dropdown muncul ketika mouse diarahkan */
.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Warna menu ketika hover */
.dropdown:hover .dropbtn {
  color: #E32B47;
}

.desktop-nav a {
  color: #335347;
  font-size: 0.98rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.desktop-nav a:hover {
  color: #006b4f;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-btn,
.menu-toggle,
.login-btn,
.tour-btn {
  border: 0;
  cursor: pointer;
}

.language-btn {
  background: transparent;
  font-size: 1.05rem;
}

.tour-btn,
.login-btn {
  padding: 11px 20px;
  border-radius: 999px;
}

.tour-btn {
  background: #4345d7e4;
  color: #FFFFFF;
  font-weight: 600;
}

.login-btn {
  background: #E32B47;
  color: #FFFFFF;
  font-weight: 700;
}

.menu-toggle {
  background: transparent;
  color: #006b4f;
  font-size: 1.5rem;
}

.mobile-menu {
  display: none;
}

/* =========================
   HERO
========================= */
.hero {
  min-height: 92vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(0, 65, 48, 0.76), rgba(0, 105, 79, 0.23)),
    url("images/3. masjid mahad dari samping_3.jpeg")
    center / cover no-repeat;
}
.maps-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 11px 20px;
  background: #E32B47;
  color: #FFFFFF;
  border-radius: 25px;
  font-weight: 600;
  transition: 0.3s ease;
}

.maps-btn:hover {
  background: #2A3A69;
  transform: translateY(-2px);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(42, 58, 105, 0.78), rgba(42, 58, 105, 0.10));
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding-top: 76px;
  padding-bottom: 80px;
}

.eyebrow,
.section-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.7rem);
  line-height: 0.98;
  max-width: 720px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-text {
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 1500px;
  margin-bottom: 30px;
  text-align: justify;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 23px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  background: #4345d7e4;
  color: #FFFFFF;
  box-shadow: 0 10px 28px rgba(0, 71, 53, 0.25);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.9);
  color: #006b4f;
}

.primary-btn:hover,
.secondary-btn:hover,
.tour-btn:hover,
.login-btn:hover {
  transform: translateY(-2px);
}

/* =========================
   ACADEMIC SECTION
========================= */
.academic-section {
  background: #f5d84d;
  padding: 92px 0 84px;
}

.academic-inner {
  text-align: center;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 52px;
}

.section-heading .section-kicker,
.info-section .section-kicker {
  color: #006b4f;
}

.section-heading h2,
.info-section h2,
.contact-box h2 {
  color: #15483a;
  font-weight: 800;
  line-height: 1.1;
}

.section-heading h2 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  margin-bottom: 14px;
}

.heading-line {
  width: 95px;
  height: 4px;
  display: block;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: #006b4f;
}

.section-heading > p:last-child {
  font-size: 1rem;
  line-height: 1.75;
  color: #486058;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: left;
}

.stat-card {
  min-height: 150px;
  background: rgba(255, 255, 255, 0.68);
  padding: 24px 22px;
  border-radius: 18px;
  border: 1px solid rgba(0, 107, 79, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px rgba(0, 60, 45, 0.13);
}

.stat-card strong {
  display: block;
  font-size: 2.4rem;
  line-height: 1;
  color: #006b4f;
  margin-bottom: 12px;
}

.stat-card span {
  display: block;
  font-size: 0.94rem;
  line-height: 1.5;
  color: #4b625a;
}

.academic-note {
  max-width: 900px;
  margin: 48px auto 0;
  color: #3f574e;
  font-size: 1rem;
  line-height: 1.8;
}

/* =========================
   OTHER SECTIONS
========================= */
.info-section,
.contact-section {
  padding: 95px 0;
}

.info-section {
  background: #fff;
}

.info-section.light {
  background: #f5d84d;
}

.info-section h2 {
  max-width: 820px;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin-bottom: 20px;
}

.info-section p:last-child {
  color: #50655e;
  max-width: 720px;
  line-height: 1.8;
  font-size: 1.05rem;
}

.contact-section {
  background: #eac93d;
}

.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  background: rgba(255, 255, 255, 0.62);
  padding: 40px;
  border-radius: 28px;
}

.contact-box h2 {
  max-width: 700px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

/* =========================
   LOGIN MODAL
========================= */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal.show {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 35, 30, 0.65);
  backdrop-filter: blur(5px);
}

.login-modal {
  position: relative;
  z-index: 1;
  width: min(440px, 92%);
  background: #fff;
  border-radius: 24px;
  padding: 38px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.modal-close {
  position: absolute;
  top: 13px;
  right: 18px;
  border: 0;
  background: transparent;
  font-size: 2rem;
  color: #496057;
  cursor: pointer;
}

.login-logo {
  width: 54px;
  height: 54px;
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.login-modal h2 {
  color: #15483a;
  font-size: 1.9rem;
  margin-bottom: 8px;
}

.login-modal > p {
  color: #6b776f;
  margin-bottom: 24px;
  line-height: 1.5;
}

#loginForm {
  display: grid;
  gap: 9px;
}

#loginForm label {
  color: #355148;
  font-size: 0.9rem;
  font-weight: 600;
}

#loginForm input[type="text"],
#loginForm input[type="password"] {
  width: 100%;
  border: 1px solid #cad7d0;
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
  margin-bottom: 7px;
}

#loginForm input[type="text"]:focus,
#loginForm input[type="password"]:focus {
  border-color: #006b4f;
  box-shadow: 0 0 0 3px rgba(0, 107, 79, 0.1);
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.83rem;
  margin: 3px 0 10px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-options a {
  color: #006b4f;
  font-weight: 600;
}

.submit-login {
  border: 0;
  border-radius: 12px;
  padding: 13px;
  background: #006b4f;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.login-message {
  min-height: 22px;
  margin-top: 6px;
  font-size: 0.9rem;
  text-align: center;
}

.login-message.error {
  color: #a53333;
}

.login-message.success {
  color: #006b4f;
}

/* =========================
   FOOTER
========================= */
footer {
  background: #15483a;
  color: #dce9e2;
}

.footer-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.9rem;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1050px) {
  .desktop-nav {
    gap: 17px;
  }

  .tour-btn {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .nav-inner {
    min-height: 68px;
  }

  .desktop-nav,
  .language-btn,
  .login-btn {
    display: none;
  }

  .nav-inner {
    justify-content: space-between;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu {
    display: none;
    flex-direction: column;
    padding: 12px 4%;
    border-top: 1px solid #ebf0ed;
    background: #fff;
  }

  .mobile-menu.active {
    display: flex;
  }

  .mobile-menu a,
  .mobile-login {
    padding: 13px 4px;
    color: #34554a;
    border-bottom: 1px solid #edf1ef;
    background: transparent;
    text-align: left;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    cursor: pointer;
  }

  .mobile-login {
    color: #006b4f;
    font-weight: 700;
  }

  .hero {
    min-height: 88vh;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.8rem);
  }

  .hero-text br {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .contact-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    padding: 22px 0;
  }
}

@media (min-width: 781px) {
  .menu-toggle {
    display: none;
  }
}
