/* Gradient penuh seluruh skrin bila di landing page – override style.css body 600px */
body[data-page="landing"] {
  background: linear-gradient(135deg, #94efcc, #f7fffc, #f7fffc, #38dc9d);
  background-attachment: fixed;
  min-height: 100vh;
  margin: 0;
  max-width: none !important;
  width: 100% !important;
  box-sizing: border-box;
  overflow-x: hidden; /* elak navbar/content terkeluar sebab scroll melintang */
}

/* Topbar penuh lebar skrin pada landing – elak terkeluar dari screen */
body[data-page="landing"] #top-navbar,
body[data-page="landing"] .homeHeader-main {
  max-width: none !important;
  width: 100% !important;
  box-sizing: border-box;
}
body[data-page="landing"] #top-navbar {
  overflow-x: hidden;
  max-width: 100vw;
  min-width: 0;
}
body[data-page="landing"] .homeHeader-main {
  min-width: 0;
  flex-wrap: nowrap;
}
body[data-page="landing"] .homeHeader-main .logo-home-main {
  flex-shrink: 0;
  min-width: 0;
}
body[data-page="landing"] .homeHeader-main .header-controls {
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}
/* Mobile: kurangkan padding navbar supaya muat */
@media (max-width: 480px) {
  body[data-page="landing"] #top-navbar.site_lr-spacer {
    padding-left: 8px;
    padding-right: 8px;
  }
}
@media (max-width: 380px) {
  body[data-page="landing"] #top-navbar.site_lr-spacer {
    padding-left: 6px;
    padding-right: 6px;
  }
}

/* Biar gradient body nampak penuh (tiada background lain tutup) */
body[data-page="landing"] .site_content {
  background: transparent;
  max-width: none !important;
  width: 100% !important;
  box-sizing: border-box;
}

/* Wrapper utama – penuh lebar skrin, isi ruang kiri kanan */
.landing-wrapper {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 1.5rem 1rem 2rem;
  color: #2d3748;
  box-sizing: border-box;
}

@media (min-width: 576px) {
  .landing-wrapper {
    padding: 2rem 1.5rem 2.5rem;
  }
}

@media (min-width: 768px) {
  .landing-wrapper {
    padding: 2rem 2rem 3rem;
  }
}

@media (min-width: 992px) {
  .landing-wrapper {
    padding: 3rem 2.5rem 4rem;
  }
}

@media (min-width: 1200px) {
  .landing-wrapper {
    padding: 3.5rem 3rem 5rem;
  }
}

/* Hero: video lebih kecil, user boleh pilih fullscreen */
.landing-wrapper .landing-hero {
  width: 100%;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  align-self: center;
}

/* Mobile: video lebih kecil lagi */
@media (max-width: 575.98px) {
  .landing-wrapper .landing-hero {
    max-width: 300px;
    margin-bottom: 1.5rem;
  }
}
@media (max-width: 399.98px) {
  .landing-wrapper .landing-hero {
    max-width: 280px;
  }
}

@media (min-width: 576px) {
  .landing-wrapper .landing-hero {
    max-width: 420px;
  }
}

@media (min-width: 768px) {
  .landing-wrapper .landing-hero {
    max-width: 460px;
    margin-bottom: 2.5rem;
  }
}

@media (min-width: 992px) {
  .landing-wrapper .landing-hero {
    max-width: 500px;
    margin-bottom: 3rem;
  }
}

@media (min-width: 1200px) {
  .landing-wrapper .landing-hero {
    max-width: 540px;
    margin-bottom: 3.5rem;
  }
}

.landing-wrapper .landing-hero .video-card {
  width: 100%;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.video-controls {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
}

.video-sound-btn,
.video-fullscreen-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.video-controls .video-sound-btn {
  position: static;
}
.video-sound-btn:hover,
.video-fullscreen-btn:hover {
  background: rgba(0, 0, 0, 0.75);
}
.video-fullscreen-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.video-fullscreen-btn:not(:disabled):hover {
  background: rgba(0, 0, 0, 0.75);
}

/* fullscreen mode: video mengisi skrin */
#heroVideo:-webkit-full-screen,
#heroVideo:-moz-full-screen,
#heroVideo:fullscreen {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  background: #000;
}

@media (min-width: 992px) {
  .landing-wrapper .landing-hero .video-card {
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }
}

.landing-wrapper .landing-hero .skip-hint {
  text-align: center;
  font-size: 0.875rem;
  color: #5a6c5d;
  margin-top: 1rem;
  margin-bottom: 0;
  letter-spacing: 0.01em;
}

@media (min-width: 992px) {
  .landing-wrapper .landing-hero .skip-hint {
    font-size: 0.925rem;
    margin-top: 1.25rem;
  }
}

#heroVideo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Bahagian "Kenapa Pilih" – tajuk & kad teratur */
.landing-wrapper .after-hero-content {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 2rem;
  padding-bottom: 3rem;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .landing-wrapper .after-hero-content {
    max-width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 2.75rem;
    padding-bottom: 3.5rem;
  }
}

@media (min-width: 992px) {
  .landing-wrapper .after-hero-content {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1200px) {
  .landing-wrapper .after-hero-content {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* Section kad – penuh lebar dalam after-hero */
.feature-cards-section {
  width: 100%;
  max-width: 100%;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

@media (min-width: 576px) {
  .feature-cards-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Skrin besar: 3 kad selari 1 row, penuh ruang kiri kanan */
@media (min-width: 768px) {
  .landing-wrapper .feature-cards-row {
    display: flex;
    flex-wrap: nowrap;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
  .landing-wrapper .feature-cards-row .feature-col {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

@media (min-width: 992px) {
  .landing-wrapper .feature-cards-row .feature-col {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* Tablet & iPad Pro (768px - 1199px): kad padat, kurang memanjang ke bawah */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .landing-wrapper .after-hero-content {
    padding-top: 1.75rem;
    padding-bottom: 2.25rem;
  }
  .landing-section {
    margin-top: 1rem;
    margin-bottom: 1.25rem;
  }
  .landing-wrapper .after-hero-content .section-title {
    font-size: 1.7rem;
    margin-bottom: 1.25rem;
  }
  .feature-cards-row {
    gap: 1rem;
  }
  .landing-wrapper .after-hero-content .feature-card {
    padding: 1.1rem 1rem;
    border-radius: 14px;
  }
  .landing-wrapper .after-hero-content .feature-icon-img img {
    width: 64px;
    max-height: 64px;
  }
  .landing-wrapper .after-hero-content .feature-card-title {
    font-size: 1.02rem;
    margin-top: 0.5rem;
    margin-bottom: 0.4rem;
    line-height: 1.3;
  }
  .landing-wrapper .after-hero-content .feature-card-desc {
    font-size: 0.8125rem;
    line-height: 1.45;
  }
  .landing-wrapper .hero-minimal-content {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
  }
}

@media (min-width: 1200px) {
  .landing-wrapper .after-hero-content {
    padding-top: 3.5rem;
    padding-bottom: 4.5rem;
  }
}

.landing-section {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .landing-section {
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
  }
}

@media (min-width: 1200px) {
  .landing-section {
    margin-top: 2rem;
    margin-bottom: 3rem;
  }
}

.landing-wrapper .after-hero-content .section-title {
  font-size: 1.65rem;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  color: #1a3a2e;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .landing-wrapper .after-hero-content .section-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
  }
}

@media (min-width: 1200px) {
  .landing-wrapper .after-hero-content .section-title {
    font-size: 2.15rem;
    margin-bottom: 2.75rem;
    letter-spacing: -0.025em;
  }
}

@media (min-width: 1200px) {
  .landing-wrapper .after-hero-content .section-title {
    font-size: 2.35rem;
    margin-bottom: 3rem;
  }
}

.feature-cards-row {
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .feature-cards-row {
    gap: 1.75rem;
  }
}

@media (min-width: 1200px) {
  .feature-cards-row {
    gap: 2rem;
    max-width: 100%;
  }
}

@media (min-width: 1200px) {
  .feature-cards-row {
    gap: 2.25rem;
  }
}

.landing-wrapper .after-hero-content .feature-card {
  height: 100%;
  padding: 1.75rem 1.25rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (min-width: 768px) {
  .landing-wrapper .after-hero-content .feature-card {
    padding: 2rem 1.5rem;
  }
}

@media (min-width: 1200px) {
  .landing-wrapper .after-hero-content .feature-card {
    padding: 2.25rem 1.75rem;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  }
}

@media (min-width: 1200px) {
  .landing-wrapper .after-hero-content .feature-card {
    padding: 2.5rem 2rem;
    border-radius: 20px;
  }
}

.landing-wrapper .after-hero-content .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

@media (min-width: 1200px) {
  .landing-wrapper .after-hero-content .feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  }
}

/* Ikon feature – skala ikut skrin besar */
.landing-wrapper .after-hero-content .feature-icon-img {
  margin-bottom: 0;
}

@media (min-width: 1200px) {
  .landing-wrapper .after-hero-content .feature-icon-img img {
    width: 88px;
    max-height: 88px;
  }
}

@media (min-width: 1200px) {
  .landing-wrapper .after-hero-content .feature-icon-img img {
    width: 96px;
    max-height: 96px;
  }
}

.landing-wrapper .after-hero-content .feature-card-title {
  font-size: 1.1rem;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  color: #1a3a2e;
  line-height: 1.35;
}

@media (min-width: 768px) {
  .landing-wrapper .after-hero-content .feature-card-title {
    font-size: 1.2rem;
    margin-top: 1.15rem;
    margin-bottom: 0.85rem;
  }
}

@media (min-width: 1200px) {
  .landing-wrapper .after-hero-content .feature-card-title {
    font-size: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 0.9rem;
  }
}

@media (min-width: 1200px) {
  .landing-wrapper .after-hero-content .feature-card-title {
    font-size: 1.3rem;
    margin-top: 1.35rem;
    margin-bottom: 1rem;
  }
}

.landing-wrapper .after-hero-content .feature-card-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #4a5568;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .landing-wrapper .after-hero-content .feature-card-desc {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

@media (min-width: 1200px) {
  .landing-wrapper .after-hero-content .feature-card-desc {
    font-size: 1rem;
    line-height: 1.65;
  }
}

@media (min-width: 1200px) {
  .landing-wrapper .after-hero-content .feature-card-desc {
    font-size: 1.02rem;
    line-height: 1.7;
  }
}

.landing-wrapper .hero-minimal-content {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .landing-wrapper .hero-minimal-content {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .landing-wrapper .hero-minimal-content {
    margin-top: 3.5rem;
    margin-bottom: 2rem;
  }
}

@media (min-width: 1200px) {
  .landing-wrapper .hero-minimal-content {
    margin-top: 4rem;
    margin-bottom: 2.5rem;
  }
}

.landing-wrapper .hero-minimal-content .btn-warning {
  min-width: 220px;
  padding: 0.65rem 1.5rem;
  /* font-size: 1.05rem; */
}

@media (min-width: 1200px) {
  .landing-wrapper .hero-minimal-content .btn-warning {
    min-width: 260px;
    padding: 0.75rem 1.75rem;
    /* font-size: 1.1rem; */
    border-radius: 12px;
  }
}

@media (min-width: 1200px) {
  .landing-wrapper .hero-minimal-content .btn-warning {
    min-width: 280px;
    padding: 0.85rem 2rem;
    /* font-size: 1.15rem; */
  }
}

@media (max-width: 575.98px) {
  .landing-wrapper .landing-hero .video-card {
    border-radius: 12px;
  }
  .video-controls {
    bottom: 8px;
    right: 8px;
    gap: 6px;
  }
  .video-sound-btn,
  .video-fullscreen-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}


.country-card-btn {
    transition: all 0.2s ease-in-out;
    border: 2px solid #f0f0f0 !important;
    position: relative;
    overflow: hidden;
  }

  .country-card-btn:hover {
    border-color: #2e7d32 !important;
    background-color: #f8fbff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  .country-card-btn:active {
    transform: scale(0.98);
  }

  /* Disabled: papar tapi tidak boleh pilih (Indonesia, Singapore, Brunei) */
  .country-card-btn:disabled,
  .country-card-btn.country-card-btn--disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(1) saturate(0.2);
    background-color: #cec8c8 !important;
    border-color: #e6e6e6 !important;
  }
  .country-card-btn:disabled:hover,
  .country-card-btn.country-card-btn--disabled:hover {
    border-color: #f0f0f0 !important;
    background-color: #fff !important;
    transform: none;
    box-shadow: none;
  }

  /* Selection indicator */
  .country-card-btn.selected {
    border-color: #2e7d32 !important;
    background-color: #e7f1ff !important;
  }

  /* Flag placeholder style */
  .flag-icon {
    width: 40px;
    height: 30px;
    background: #eee;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
  }

/* ============================================================
   OVERRIDE KERAS: pastikan landing penuh lebar & 3 kad 1 baris
   (menang atas style.css / Bootstrap)
   ============================================================ */
body[data-page="landing"] {
  max-width: none !important;
  width: 100% !important;
}
body[data-page="landing"] .site_content {
  max-width: none !important;
  width: 100% !important;
}
body[data-page="landing"] .landing-wrapper {
  max-width: none !important;
  width: 100% !important;
}
body[data-page="landing"] .landing-wrapper .after-hero-content {
  max-width: none !important;
  width: 100% !important;
}

@media (min-width: 768px) {
  body[data-page="landing"] .feature-cards-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  body[data-page="landing"] .feature-cards-row .feature-col {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
  }
}