/* ================= NAVBAR SMART JAWI ================= */

.top-header {
  width: 100%;
  min-height: 82px;
  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: 12px 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: 62px !important;
  height: 62px !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: 25px !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;
  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;
}

/* ================= MAIN SECTION ================= */

.u-section-1 {
  background-image: linear-gradient(to bottom, rgba(255, 253, 234, 1), rgba(255, 253, 234, 1));
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  margin-top: 0;
}

.u-section-1 .u-sheet-1 {
  min-height: 1402px;
}

.u-section-1 .u-image-1 {
  width: 132px;
  height: 125px;
  margin: 23px auto 0 -36px;
}

.u-section-1 .u-image-2 {
  width: 69px;
  height: 69px;
  margin: -97px -20px 0 auto;
}

.u-section-1 .u-image-3 {
  width: 350px;
  height: 84px;
  margin: -69px auto 0;
}

.u-section-1 .u-layout-wrap-1 {
  margin-top: 64px;
  margin-bottom: 60px;
  width: 100%;
}

.u-section-1 .u-layout-cell-1 {
  min-height: 85px;
  filter: none;
}

.u-section-1 .u-container-layout-1 {
  padding: 0;
}

.u-section-1 .u-image-4 {
  object-position: 50% 0%;
  filter: none;
  width: 304px;
}

.u-section-1 .u-layout-cell-2 {
  min-height: 98px;
  filter: none;
}

.u-section-1 .u-container-layout-2 {
  padding: 0;
}

.u-section-1 .u-image-5 {
  filter: none;
  width: 304px;
  height: 83px;
  margin: 10px auto 0;
}

.u-section-1 .u-layout-cell-3 {
  min-height: 633px;
}

.u-section-1 .u-container-layout-3 {
  padding: 0;
}

.u-section-1 .u-image-6 {
  --radius: 10px;
  height: 84px;
  width: 305px;
  margin: 7px auto 0;
}

.u-section-1 .u-layout-cell-4 {
  min-height: 816px;
  --radius: 40px;
}

.u-section-1 .u-container-layout-4 {
  padding: 16px 0;
}

.u-section-1 .u-custom-html-1 {
  height: auto;
  min-height: 766px;
  width: 817px;
  margin: 0;
}

/* ================= TAB / BUTTON BASIC ================= */

.container {
  display: flex;
}

.buttons {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.content {
  flex: 3;
  padding: 20px;
}

button {
  padding: 10px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button.active {
  background-color: #45a049;
}

button:hover {
  background-color: #45a049;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ================= EXAM SEPARATOR ================= */

.exam-separator {
  width: 304px;
  margin: 35px 8px 18px auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.exam-separator span {
  flex: 1;
  height: 4px;
  background: #f5b21f;
  border-radius: 20px;
}

.exam-separator h3 {
  margin: 0;
  padding: 8px 18px;
  background: #fff;
  color: #111;
  font-size: 22px;
  font-weight: 700;
  border: 4px solid #f5b21f;
  border-radius: 25px;
  box-shadow: 0 5px 12px rgba(0,0,0,0.12);
  white-space: nowrap;
}

/* ================= SMART JAWI WOW BACKGROUND ================= */

.u-section-1 {
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 214, 102, 0.65), transparent 22%),
    radial-gradient(circle at 85% 20%, rgba(168, 85, 247, 0.35), transparent 25%),
    radial-gradient(circle at 20% 85%, rgba(59, 130, 246, 0.35), transparent 25%),
    radial-gradient(circle at 80% 85%, rgba(34, 197, 94, 0.35), transparent 25%),
    linear-gradient(135deg, #fff7ad 0%, #ffe4f3 35%, #dff4ff 70%, #e8ffd9 100%) !important;
  position: relative;
  overflow: hidden;
}

/* GRID PATTERN */
.u-section-1::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.4) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255,255,255,0.4) 2px, transparent 2px);
  background-size: 60px 60px;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

/* GLOW BESAR TENGAH */
.u-section-1::after {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  top: 150px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255,255,255,0.7), rgba(255,255,255,0.05) 70%, transparent 80%);
  border-radius: 50%;
  animation: pulseGlow 6s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

/* CONTENT ATAS BACKGROUND */
.u-section-1 .u-sheet-1 {
  position: relative;
  z-index: 2;
}

/* CARD KANAN */
.u-section-1 .u-layout-cell-4 {
  background: linear-gradient(180deg, #ffd84d, #ffb703) !important;
  border: 6px solid #ffffff !important;
  border-radius: 40px !important;
  box-shadow:
    0 10px 0 #d97706,
    0 25px 45px rgba(0,0,0,0.2) !important;
}

/* IFRAME STYLE */
.u-section-1 iframe {
  border: 5px solid #ffffff !important;
  border-radius: 25px !important;
  box-shadow:
    inset 0 0 0 4px rgba(255,183,3,0.3),
    0 12px 25px rgba(0,0,0,0.15);
  background: white;
}

/* BUTTON IMAGE HOVER */
.u-section-1 .u-image-4,
.u-section-1 .u-image-5,
.u-section-1 .u-image-6 {
  transition: 0.3s ease;
  filter: drop-shadow(0 8px 0 rgba(0,0,0,0.12));
  cursor: pointer;
}

.u-section-1 .u-image-4:hover,
.u-section-1 .u-image-5:hover,
.u-section-1 .u-image-6:hover {
  transform: translateY(-8px) scale(1.05);
  filter: drop-shadow(0 14px 12px rgba(0,0,0,0.25));
}

/* SEPARATOR UPGRADE */
.exam-separator h3 {
  background: linear-gradient(180deg, #fff176, #ffb703) !important;
  color: #7c2d12 !important;
  border: 5px solid #ffffff !important;
  box-shadow:
    0 6px 0 #d97706,
    0 12px 20px rgba(0,0,0,0.2) !important;
  text-transform: uppercase;
}

.exam-separator span {
  height: 7px !important;
  background: linear-gradient(90deg, #ff7a00, #ffd60a, #ff7a00) !important;
  box-shadow: 0 4px 0 #c2410c;
}

/* ANIMATION */
@keyframes pulseGlow {
  0% {
    transform: translateX(-50%) scale(1);
    opacity: 0.7;
  }

  50% {
    transform: translateX(-50%) scale(1.1);
    opacity: 1;
  }

  100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.7;
  }
}

/* ================= FINAL ALIGNMENT FIX ================= */

.u-section-1 .u-image-4,
.u-section-1 .u-image-5,
.u-section-1 .u-image-6 {
  width: 304px !important;
  height: auto !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: 8px !important;
}

/* KHUSUS DRAG & DROP */
.u-section-1 .u-image-4 {
  margin-top: 0 !important;
}

/* HIDE LOGO DAN HOME BUTTON LAMA NICEPAGE TANPA KACAU LAYOUT */
.u-section-1 .u-image-1,
.u-section-1 .u-image-2 {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ================= FOOTER BASIC STYLE ================= */

.smart-footer {
  background: #132238;
  color: #ffffff;
  padding: 45px 70px 20px;
  font-family: 'Poppins', Arial, sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  width: 80px;
  height: auto;
  margin-bottom: 10px;
}

.footer-brand h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 900;
}

.footer-brand p {
  margin: 0;
  font-size: 15px;
  color: #e5e7eb;
}

.footer-box h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.footer-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-box li {
  margin-bottom: 8px;
  color: #e5e7eb;
}

.footer-box a {
  color: #e5e7eb;
  text-decoration: none;
  transition: 0.25s ease;
}

.footer-box a:hover {
  color: #ffcf33;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.18);
  margin-top: 30px;
  padding-top: 15px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
  color: #d1d5db;
}

/* ================= RESPONSIVE NICEPAGE ================= */

@media (max-width: 1199px) {
  .u-section-1 .u-sheet-1 {
    min-height: 1294px;
  }

  .u-section-1 .u-layout-wrap-1 {
    position: relative;
    width: auto;
  }

  .u-section-1 .u-layout-cell-1 {
    min-height: 70px;
  }

  .u-section-1 .u-layout-cell-2 {
    min-height: 81px;
  }

  .u-section-1 .u-image-5 {
    width: 304px !important;
    height: auto !important;
  }

  .u-section-1 .u-layout-cell-3 {
    min-height: 522px;
  }

  .u-section-1 .u-image-6 {
    width: 304px !important;
    height: auto !important;
  }

  .u-section-1 .u-layout-cell-4 {
    min-height: 673px;
  }

  .u-section-1 .u-custom-html-1 {
    width: 100% !important;
  }
}

@media (max-width: 991px) {
  .top-header {
    padding: 14px 30px !important;
  }

  .logo-area span {
    font-size: 20px !important;
  }

  .nav-menu {
    gap: 8px;
  }

  .nav-menu a {
    font-size: 14px;
    padding: 10px 14px !important;
  }

  .u-section-1 .u-sheet-1 {
    min-height: 4329px;
  }

  .u-section-1 .u-layout-wrap-1 {
    margin-bottom: 17px;
    width: auto;
  }

  .u-section-1 .u-layout-cell-1 {
    min-height: 189px;
  }

  .u-section-1 .u-layout-cell-2 {
    min-height: 219px;
  }

  .u-section-1 .u-layout-cell-3 {
    min-height: 1411px;
  }

  .u-section-1 .u-layout-cell-4 {
    min-height: 719px;
  }
}

@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;
  }

  .u-section-1 .u-layout-cell-1 {
    min-height: 142px;
  }

  .u-section-1 .u-layout-cell-2 {
    min-height: 164px;
  }

  .u-section-1 .u-layout-cell-3 {
    min-height: 1058px;
  }

  .u-section-1 .u-layout-cell-4 {
    min-height: 539px;
  }

  .smart-footer {
    padding: 40px 24px 18px;
  }

  .footer-container {
    flex-direction: column;
  }
}

@media (max-width: 575px) {
  .u-section-1 .u-sheet-1 {
    min-height: 4327px;
  }

  .u-section-1 .u-image-3 {
    width: 340px;
    height: 82px;
  }

  .u-section-1 .u-layout-cell-1 {
    min-height: 89px;
  }

  .u-section-1 .u-layout-cell-2 {
    min-height: 103px;
  }

  .u-section-1 .u-layout-cell-3 {
    min-height: 666px;
  }

  .u-section-1 .u-layout-cell-4 {
    min-height: 339px;
  }

  .logo-area span {
    font-size: 18px !important;
  }

  .logo-area img {
    width: 48px !important;
    height: 48px !important;
  }

  .nav-menu a {
    font-size: 12px;
    padding: 8px 10px !important;
  }
}
/* ================= BESARKAN LOGO HEADER ================= */

.logo-area img {
  width: 75px !important;
  height: 75px !important;
}

.logo-area span {
  font-size: 28px !important;
}

/* Bagi header cukup ruang bila logo besar */
.top-header {
  min-height: 96px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}
/* =========================================
   SMART JAWI VOICE RECO - MOBILE FINAL FIX
   Paste paling bawah voice-reco.css
========================================= */

@media (max-width: 768px) {

  html, body {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
  }

  body {
    background: #fffbe8 !important;
  }

  .u-section-1 {
    width: 100% !important;
    min-height: auto !important;
    padding: 22px 12px 45px !important;
    background-size: cover !important;
    background-position: center top !important;
    overflow: hidden !important;
    position: relative !important;
  }

  .u-section-1 .u-sheet-1 {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  /* Hide logo dan back button lama sebab navbar dah ada */
  .u-section-1 .u-image-1,
  .u-section-1 .u-image-2 {
    display: none !important;
  }

  /* Brain Games title */
  .u-section-1 .u-image-3 {
    width: 250px !important;
    max-width: 76vw !important;
    height: auto !important;
    display: block !important;
    position: relative !important;
    margin: 0 auto 16px !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
  }

  /* Paksa Nicepage layout jadi satu kolum */
  .u-section-1 .u-layout-wrap-1,
  .u-section-1 .u-layout,
  .u-section-1 .u-layout-row,
  .u-section-1 .u-layout-col {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  .u-section-1 [class*="u-size-"],
  .u-section-1 .u-layout-cell {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  .u-section-1 .u-container-layout {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }

  /* Menu buttons - semua kekal muncul */
  .u-section-1 .u-image-4,
  .u-section-1 .u-image-5,
  .u-section-1 .u-image-6 {
    display: block !important;
    width: 260px !important;
    max-width: 78vw !important;
    height: auto !important;
    position: relative !important;
    margin: 0 auto 12px !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.16)) !important;
  }

  .u-section-1 .u-image-4:hover,
  .u-section-1 .u-image-5:hover,
  .u-section-1 .u-image-6:hover {
    transform: none !important;
  }

  /* Jawi Challenge */
  .exam-separator {
    width: 260px !important;
    max-width: 78vw !important;
    margin: 12px auto 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .exam-separator h3 {
    font-size: 14px !important;
    padding: 6px 11px !important;
    white-space: nowrap !important;
  }

  .exam-separator span {
    height: 4px !important;
  }

  /* Iframe login quiz card */
  .u-section-1 .u-layout-cell-4 {
    width: 330px !important;
    max-width: 92vw !important;
    min-height: auto !important;
    margin: 12px auto 0 !important;
    padding: 8px !important;
    border-radius: 22px !important;
    border: 4px solid #ffffff !important;
    box-shadow:
      0 8px 0 #d97706,
      0 18px 32px rgba(0,0,0,0.18) !important;
  }

  .u-section-1 .u-container-layout-4 {
    padding: 0 !important;
  }

  .u-section-1 .u-custom-html-1 {
    width: 100% !important;
    min-height: auto !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  .u-section-1 iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: 620px !important;
    min-height: 620px !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 16px !important;
  }

  .smart-footer {
    margin-top: 0 !important;
    padding: 25px 16px 15px !important;
  }

  .footer-simple-brand img {
    width: 70px !important;
    height: auto !important;
  }

  .footer-simple-brand h2 {
    font-size: 18px !important;
    text-align: center !important;
  }

  .footer-simple-brand p,
  .footer-simple-bottom p {
    font-size: 12px !important;
    text-align: center !important;
  }
}