/* =========================
   RESET / GLOBAL
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5f0df;
  background-image: url("images/jawi-pattern.png");
  background-size: 250px;
}

/* ================= NAVBAR SMART JAWI ================= */

.top-header {
  width: 100%;
  min-height: 96px;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(10px);
  border-bottom: 4px solid rgba(255, 207, 51, 0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 70px !important;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 999999;
  overflow: visible !important;
}

/* LOGO AREA */
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo-area img {
  width: 75px !important;
  height: 75px !important;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.12));
}

.logo-area span {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 28px !important;
  font-weight: 900;
  color: #132238 !important;
  letter-spacing: 1.5px;
  transition: 0.25s ease;
}

/* SMART JAWI TEXT JADI HIJAU BILA DISENTUH */
.logo-area:hover span {
  color: #22c55e !important;
}

/* NAVBAR */
.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
}

/* MENU UTAMA */
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  overflow: visible !important;
}

.nav-menu li {
  position: relative;
}

/* LINK MENU */
.nav-menu a {
  text-decoration: none;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #2b2b2b !important;
  padding: 11px 17px !important;
  border-radius: 24px !important;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: 0.25s ease;
  white-space: nowrap;
}

/* HOVER MENU - TULISAN JADI HIJAU */
.nav-menu a:hover {
  background: #fff176 !important;
  color: #22c55e !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 0 rgba(245, 158, 11, 0.35);
}

/* ICON JADI HIJAU BILA HOVER */
.nav-menu a:hover i {
  color: #22c55e !important;
}

/* ACTIVE PAGE */
.nav-menu a.active {
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
  color: #ffffff !important;
  box-shadow:
    0 8px 0 #15803d,
    0 14px 24px rgba(34, 197, 94, 0.35) !important;
}

/* ACTIVE PAGE HOVER KEKAL PUTIH */
.nav-menu a.active:hover {
  color: #ffffff !important;
}

.nav-menu a.active:hover i {
  color: #ffffff !important;
}

/* ================= DROPDOWN CLICK FIX ================= */

.dropdown {
  position: relative !important;
  overflow: visible !important;
}

.dropdown::after {
  display: none !important;
  content: none !important;
}

/* DROPDOWN MENU DEFAULT: TUTUP */
.dropdown-menu {
  list-style: none !important;
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  background: #fffdf2 !important;
  min-width: 230px !important;
  padding: 10px !important;
  border-radius: 18px !important;
  border: 4px solid #ffffff !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18) !important;
  z-index: 99999999 !important;

  display: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
  margin-top: 0 !important;
  overflow: visible !important;
}

/* DROPDOWN BUKA BILA JAVASCRIPT TAMBAH CLASS open */
.dropdown.open .dropdown-menu {
  display: block !important;
}

.dropdown-menu li {
  width: 100% !important;
}

.dropdown-menu a {
  width: 100% !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
  justify-content: flex-start !important;
  display: flex !important;
  color: #132238 !important;
  text-decoration: none !important;
  background: transparent !important;
  transform: none !important;
  white-space: nowrap !important;
}

/* DROPDOWN HOVER - TULISAN HIJAU */
.dropdown-menu a:hover {
  background: #dff4ff !important;
  color: #22c55e !important;
  transform: none !important;
  box-shadow: none !important;
}

.dropdown-menu a:hover i {
  color: #22c55e !important;
}

.dropdown-menu a.active-sub {
  background: #ffcf33 !important;
  color: #7c2d12 !important;
  font-weight: 900 !important;
}

/* PASTIKAN DROPDOWN KELUAR ATAS CONTENT */
.top-header,
.navbar,
.nav-menu,
.nav-menu li,
.dropdown,
.dropdown-menu {
  overflow: visible !important;
}

/* =========================
   GALLERY
========================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px,1fr));
  gap: 15px;
  padding: 30px;
}

.gallery img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 5px 12px rgba(0,0,0,0.1);
  border: 3px solid #fff;
}

.gallery img:hover {
  transform: scale(1.08) rotate(2deg);
}

/* =========================
   POPUP / LIGHTBOX
========================= */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s;
  z-index: 9999999;
}

.popup.active {
  visibility: visible;
  opacity: 1;
}

.popup img {
  max-width: 85%;
  max-height: 85%;
  border-radius: 12px;
}

/* BUTTON */
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: #fff;
  cursor: pointer;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

/* =========================
   SIMPLE SMART JAWI FOOTER
========================= */

.smart-footer {
  margin-top: 60px;
  background: linear-gradient(135deg, #132238, #1e3a5f);
  color: #ffffff;
  padding: 46px 24px 18px;
  font-family: 'Poppins', Arial, sans-serif;
  border-top: 6px solid #ffcf33;
  border-top-left-radius: 36px;
  border-top-right-radius: 36px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* BACKGROUND DECORATION */
.smart-footer::before {
  content: "★";
  position: absolute;
  top: 18px;
  left: 8%;
  font-size: 26px;
  color: rgba(255, 207, 51, 0.18);
}

.smart-footer::after {
  content: "🌙";
  position: absolute;
  bottom: 30px;
  right: 9%;
  font-size: 34px;
  opacity: 0.14;
}

.footer-simple-brand {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.footer-simple-brand img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 50%;
  padding: 6px;
  margin-bottom: 14px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

.footer-simple-brand h2 {
  margin: 0 0 10px;
  font-size: 36px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.footer-simple-brand p {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  color: rgba(255,255,255,0.86);
}

.footer-simple-bottom {
  max-width: 900px;
  margin: 28px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.16);
  position: relative;
  z-index: 2;
}

.footer-simple-bottom p {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.72);
}

/* HIDE OLD FOOTER ELEMENTS IF STILL EXIST */
.footer-container,
.footer-brand,
.footer-box,
.social-icons,
.floating-elements {
  display: none !important;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 991px) {
  .top-header {
    padding: 14px 30px !important;
  }

  .logo-area img {
    width: 65px !important;
    height: 65px !important;
  }

  .logo-area span {
    font-size: 23px !important;
  }

  .nav-menu {
    gap: 8px;
  }

  .nav-menu a {
    font-size: 14px;
    padding: 10px 14px !important;
  }

  .footer-simple-brand h2 {
    font-size: 30px;
  }

  .footer-simple-brand p {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .top-header {
    flex-direction: column;
    gap: 14px;
    padding: 14px 18px !important;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .nav-menu a {
    font-size: 13px;
    padding: 9px 12px !important;
  }

  .dropdown-menu {
    top: calc(100% + 6px) !important;
    left: 0 !important;
    min-width: 190px !important;
  }

  .smart-footer {
    padding: 38px 18px 16px;
    border-top-left-radius: 26px;
    border-top-right-radius: 26px;
  }

  .footer-simple-brand img {
    width: 68px;
    height: 68px;
  }

  .footer-simple-brand h2 {
    font-size: 25px;
  }

  .footer-simple-brand p {
    font-size: 14px;
  }
}

@media (max-width: 575px) {
  .logo-area img {
    width: 58px !important;
    height: 58px !important;
  }

  .logo-area span {
    font-size: 19px !important;
  }

  .nav-menu a {
    font-size: 12px;
    padding: 8px 10px !important;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(120px,1fr));
    padding: 20px;
  }

  .gallery img {
    height: 120px;
  }

  .footer-simple-brand h2 {
    font-size: 22px;
  }

  .footer-simple-brand p {
    font-size: 13px;
  }
}
/* ================= THIN SIMPLE SMART JAWI FOOTER ================= */

.smart-footer {
  margin-top: 35px !important;
  background: linear-gradient(135deg, #132238, #1e3a5f) !important;
  color: #ffffff !important;
  padding: 22px 20px 10px !important;
  font-family: 'Poppins', Arial, sans-serif !important;
  border-top: 4px solid #ffcf33 !important;
  border-top-left-radius: 22px !important;
  border-top-right-radius: 22px !important;
  box-shadow: 0 -5px 16px rgba(0, 0, 0, 0.10) !important;
  text-align: center !important;
  position: relative !important;
  overflow: hidden !important;
}

.smart-footer::before,
.smart-footer::after {
  display: none !important;
}

.footer-simple-brand {
  max-width: 820px !important;
  margin: 0 auto !important;
  position: relative !important;
  z-index: 2 !important;
}

.footer-simple-brand img {
  width: 48px !important;
  height: 48px !important;
  object-fit: contain !important;
  background: #ffffff !important;
  border-radius: 50% !important;
  padding: 4px !important;
  margin-bottom: 6px !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.16) !important;
}

.footer-simple-brand h2 {
  margin: 0 0 4px !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  line-height: 1.15 !important;
  letter-spacing: 0.4px !important;
}

.footer-simple-brand p {
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  color: rgba(255,255,255,0.82) !important;
}

.footer-simple-bottom {
  max-width: 820px !important;
  margin: 14px auto 0 !important;
  padding-top: 8px !important;
  border-top: 1px solid rgba(255,255,255,0.14) !important;
  position: relative !important;
  z-index: 2 !important;
}

.footer-simple-bottom p {
  margin: 0 !important;
  font-size: 12px !important;
  color: rgba(255,255,255,0.68) !important;
}

/* HIDE OLD FOOTER ELEMENTS IF STILL EXIST */
.footer-container,
.footer-brand,
.footer-box,
.social-icons,
.floating-elements {
  display: none !important;
}

/* RESPONSIVE THIN FOOTER */
@media (max-width: 767px) {
  .smart-footer {
    padding: 20px 16px 9px !important;
    border-top-left-radius: 18px !important;
    border-top-right-radius: 18px !important;
  }

  .footer-simple-brand img {
    width: 44px !important;
    height: 44px !important;
  }

  .footer-simple-brand h2 {
    font-size: 20px !important;
  }

  .footer-simple-brand p {
    font-size: 13px !important;
  }

  .footer-simple-bottom {
    margin-top: 12px !important;
    padding-top: 7px !important;
  }
}
/* ================= FIX FOOTER RAPAT + THIN ================= */

.smart-footer {
  margin-top: 0 !important;
  padding: 18px 20px 8px !important;
  border-top: 4px solid #ffcf33 !important;
  border-top-left-radius: 22px !important;
  border-top-right-radius: 22px !important;
}

.footer-simple-brand img {
  width: 42px !important;
  height: 42px !important;
  margin-bottom: 5px !important;
  padding: 3px !important;
}

.footer-simple-brand h2 {
  font-size: 22px !important;
  margin: 0 0 3px !important;
  line-height: 1.1 !important;
}

.footer-simple-brand p {
  font-size: 13px !important;
  line-height: 1.3 !important;
  margin: 0 !important;
}

.footer-simple-bottom {
  margin: 10px auto 0 !important;
  padding-top: 6px !important;
}

.footer-simple-bottom p {
  font-size: 11px !important;
}