/* UNTUK LOGO*/
.splash-logo-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
}

.splash-logo-box img {
  width: 150px;
  height: auto;
  margin-top: -50px;
  margin-bottom: 8px;
  position: static;
}

.logo-small {
  width: 200px;
  height: auto;
}

@media (max-width: 600px) {
  .logo-small {
    width: 120px;
  }
}

/* BUTTON MULA SEKARANG*/
.whol-main-btn {
  background-color: #278079 !important;
  border-color: #278079 !important;
  color: #fff !important;
}
/* Sama warna dengan butang Seterusnya di onboarding/state (#2e7d32) */
.whol-main-btn.btn-success {
  background-color: #2e7d32 !important;
  border-color: #2e7d32 !important;
}
.whol-main-btn.btn-success:hover:not(:disabled) {
  background-color: #256628 !important;
  border-color: #256628 !important;
}

/* =========================
   LANDING PAGE: FULLSCREEN HEIGHT VIDEO AFTER HEADER
   - width ikut container (bukan 100vw)
   - height = viewport (innerHeight) - header height
   ========================= */

.video-bg-container {
  position: relative;
  width: 100%;
  overflow: hidden;

  /* FULL HEIGHT lepas header */
  height: calc(var(--vhpx, 100vh) - var(--header-h, 0px));

  /* dating app style */
  border-radius: 20px;

  /* penting: jangan bagi margin-bottom besar, nanti nampak content awal */
  margin-bottom: 0;
}

/* pastikan video cover penuh container */
.video-bg-container video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* content bawah â€“ user scroll baru nampak (sebab video dah full height) */
.after-hero-content {
  padding-top: 20px;
  padding-bottom: 40px;
}

.hero-minimal-content {
  text-align: center;
  margin-top: 20px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

.feature-card {
  padding: 20px;
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: 0.3s;
}
.feature-card p {
  line-height: 1.0;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.feature-icon {
  font-size: 40px;
  margin-bottom: 12px;
  color: #0a7e3e;
}
.feature-icon-img {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}
.feature-icon-img img {
  width: 80px;
  height: auto;
  max-height: 80px;
  object-fit: contain;
}

/* COUNTRY FLAG */
.lang-dropdown {
  position: relative;
  margin-right: 8px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #ddd;
  background: #fff;
  padding: 4px 8px;
  border-radius: 20px;
  cursor: pointer;
}

.lang-toggle img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.lang-toggle .caret {
  font-size: 12px;
  color: #2e7d32;
}

/* Menu */
.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 110%;
  background: white;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  min-width: 180px;
  z-index: 1000;
  padding: 6px 0;
}

.lang-menu.show {
  display: block;
}

.lang-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
}

.lang-menu li img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.lang-menu li:hover {
  background: rgba(46,125,50,0.08);
}

.homeHeader {
  display: flex;
  align-items: center;
  gap: 10px; /* untuk space between language & login */
}

/* untuk Prevent dropdown from breaking layout */
.lang-dropdown {
  position: relative;
}

/* untuk Mobile safety */
@media (max-width: 576px) {
  .homeHeader {
    gap: 6px;
  }
}

/* for age range SLIDER */
.age-range-container {
  position: relative;
  height: 60px;
}

/* Base track */
.range-track {
  position: absolute;
  top: 26px;
  left: 0;
  width: 100%;
  height: 6px;
  background: #c8e6c9;
  border-radius: 10px;
}

/* Active fill */
.range-fill {
  position: absolute;
  top: 26px;
  height: 6px;
  background: #2e7d32;
  border-radius: 10px;
  transition: left 0.25s ease, width 0.25s ease;
}

/* Hide default track */
.age-range-container input[type="range"] {
  position: absolute;
  width: 100%;
  height: 6px;
  top: 26px;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
}

/* Thumb */
.age-range-container input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #2e7d32;
  border: 2px solid #fff;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.age-range-container input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

/* Tooltip bubble */
.range-thumb-label {
  position: absolute;
  top: 0;
  background: #2e7d32;
  color: #fff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 12px;
  transform: translateX(-50%);
  white-space: nowrap;
  transition: left 0.25s ease;
}

/* Max thumb above min */
#ageMax {
  z-index: 3;
}


/* video */

.video-card {
  position: relative;
  width: 100%;
  /* max-width: 720px;     */
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
  left: 0;
  right: 0;
}

.video-card video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to bottom,
      rgba(0,0,0,0) 55%,
      rgba(0,0,0,.35) 100%
  );
  pointer-events: none;
}

.video-sound-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 5;
}


/* Always show burger button */
.burger-toggle {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  margin-left: auto;
  display: block;
}



/* Ensure header uses flex for alignment – elak overflow desktop & mobile */
#top-navbar {
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}
.homeHeader-main {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Logo stays at start */
  width: 100%;
  max-width: 100%;
  min-width: 0;
  position: relative;
  box-sizing: border-box;
}
.homeHeader-main .logo-home-main {
  flex-shrink: 0;
  min-width: 0;
}
.header-controls {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  gap: 8px; /* space between lang and burger */
  margin-left: auto; /* THIS pushes it to the far right */
  position: relative;
  overflow: hidden;
}
@media (max-width: 480px) {
  .header-controls {
    gap: 6px;
  }
}
@media (max-width: 400px) {
  .header-controls {
    gap: 4px;
  }
  .btn-nav-login {
    padding: 5px 8px;
    font-size: 0.8rem;
  }
}

/* Log Masuk / Log Keluar: hijau padat, tulisan putih (default) */
.btn-nav-login {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  background: #0a7e3e;
  border: 1px solid #0a7e3e;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-nav-login:hover {
  background: #086b34;
  color: #fff;
  border-color: #086b34;
}
.btn-nav-login[type="submit"] {
  cursor: pointer;
  font-family: inherit;
}

/* Log Masuk dengan hint dua baris dalam satu button */
.btn-nav-login:has(.btn-nav-login-hint) {
  flex-direction: column;
  align-items: center;
  white-space: normal;
  gap: 2px;
  padding: 6px 12px 8px;
}
.btn-nav-login-hint {
  font-size: 0.6rem;
  font-weight: 400;
  opacity: 0.9;
  white-space: nowrap; /* elak pecah tengah perkataan (e.g. "akaun)") */
}

/* Skrin kecil: kekalkan hint (Jika sudah ada akaun), cuma kurangkan padding supaya muat */
@media (max-width: 420px) {
  .btn-nav-login:has(.btn-nav-login-hint) {
    padding: 4px 8px 6px;
  }
  .btn-nav-login-main {
    font-size: 0.85rem;
  }
  .btn-nav-login-hint {
    font-size: 0.55rem;
  }
}

/* Language dropdown styling */
.lang-dropdown {
  position: relative;
}

.lang-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Full-screen drawer */
.burger-drawer {
  position: fixed;
  top: 0;
  /* Centering logic */
  left: 50%;
  transform: translateX(-50%) translateY(-20px); 
  
  /* Container sizing */
  width: 100%;
  max-width: 600px; /* Adjust this to match your actual template width */
  height: 100vh;
  right: -100%;

  background: #fff;
  z-index: 9999;

  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  
  /* Optional: keeps it looking like a mobile screen inside the webview */
  border-left: 1px solid #eee;
  border-right: 1px solid #eee;
}

.burger-drawer.show {
  opacity: 1;
  pointer-events: auto;
  transform:translateX(-50%) translateY(0); 
  right: 0;
}

/* Drawer Header */
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2e7d32;
}

.close-drawer {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #555;
}

/* Menu Items */
.drawer-links {
  margin-bottom: 30px;
}

.menu-item,
.dropdown-item {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

.menu-item:hover,
.dropdown-item:hover {
  background-color: #eee;
}

.dropdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.dropdown-arrow {
  font-size: 0.8rem;
  transition: transform 0.3s ease;

}

.dropdown-content {
  display: none;
  padding-left: 15px;
  margin-top: 8px;
}


.dropdown-content.open {
  display: block;
}

.dropdown-item.open .dropdown-arrow {
  transform: rotate(180deg);
}


.dropdown-item {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.dropdown-content a {
  display: block;
  padding: 8px 0;
  font-size: 0.9rem;
  color: #555;
  text-decoration: none;
}

.dropdown-content a:hover {
  color: #2e7d32;
}

/* Footer */
.drawer-footer {
  margin-top: auto;
  padding: 15px 20px;
  border-top: 1px solid #ddd;
  background: #f8f8f8;
}

.footer-icons {
  display: flex;
  gap: 15px;
}

.lang-icon,
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
}

.btn-login {
  background: linear-gradient(90deg, #8bc34a, #689f38);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-login:hover {
  background: linear-gradient(90deg, #689f38, #558b2f);
}

.drawer-header, .drawer-links, .drawer-footer {
  padding-left: 20px;
  padding-right: 20px;
}
