 html{
  scroll-behavior: smooth;
}
*{margin:0;padding:0;box-sizing:border-box}
body{
  font-family:'Poppins',sans-serif;
  background:#0b1220;
  color:#fff;
}


.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 50px;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: #1a73e8;
}

.menu {
  display: flex;
  align-items: center;
  gap: 25px;
}

.menu a {
  text-decoration: none;
  color: #1a1a1a;
  font-size: 16px;
}

/* DROPDOWN */
.dropdown {
  position: relative;
}

.dropbtn {
  background: none;
  border: none;
  font-size: 16px;
  /*font-weight: 500;*/
  color: #1a1a1a;
  cursor: pointer;
  font-family: Poppins;
  display: flex;
  align-items: center;
  gap: 6px;
}

.arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
}

/* Saat dropdown open → panah ke atas */
.dropdown.open .arrow {
  transform: rotate(180deg);
}


/* DROPDOWN CONTENT */
.dropdown-content {
  position: fixed;              /* penting! */
  top: 90px;
  /* bikin rata tengah layar */
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 1120px;
  max-width: calc(100vw - 40px); /* biar aman di layar kecil */
  background: white;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  padding: 20px;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 
  opacity 0.3s ease,
  transform 0.3s ease;
}

/* Saat terbuka */
.dropdown.open .dropdown-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}


.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.menu-card {
  background: #f5f7fd;
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  color: #1a1a1a;
  transition: 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-head img {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.menu-title {
  font-weight: 600;
  font-size: 16px;
  margin: 0;
}

.menu-card:hover {
  background: #eef3ff;
  transform: translateY(-3px);
}

.menu-card img {
  width: 42px;
  height: 42px;
}

.menu-title {
  font-weight: 600;
  font-size: 16px;
}

.menu-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

/* BUTTONS */
.actions {
  display: flex;
  gap: 10px;
}

.btn-outline,
.btn-primary {
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

.btn-outline {
  background: #eef1f6;
}

.btn-primary {
  background: #1a73e8;
  color: white;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #333;
  border-radius: 5px;
}




/*==========================================================*/
/* RESPONSIVE */
/*==========================================================*/
@media (max-width: 768px) {

  /* NAVBAR WRAPPER */
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 16px;
  }

/* MENU & ACTIONS - hidden by default (hanya untuk navbar) */
.navbar .menu,
.navbar .actions {
  display: none;
  width: 100%;
  margin-top: 12px;
}

/* Saat hamburger di klik */
.navbar .menu.active,
.navbar .actions.active {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: white;
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  text-align: center;     /* ganti dari left ke center */
  align-items: center;
}

/* Hamburger */
.hamburger {
  display: flex;
  position: absolute;
  right: 18px;
  top: 20px;
}

/* Dropdown wrapper */
.dropdown {
  width: 100%;
}

/* Tombol produk */
.dropbtn {
  width: 100%;
  display: flex;
  justify-content: center;   /* tengah horizontal */
  align-items: center;
  gap: 8px;
  text-align: center;
  font-family: Poppins;

}

/* DROPDOWN CONTENT (Mobile Mode) */
.dropdown-content {
  position: relative !important;
  inset: unset !important;
  margin-left: 150px;
  width: 100%;
  background: #f5f7fd;
  box-shadow: none;
  border-radius: 14px;
  max-height: 0;
  overflow: hidden;
  padding: 0 12px;     
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: 
  max-height 0.35s ease,
  opacity 0.25s ease;
}

/* Saat terbuka */
.dropdown.open .dropdown-content {
  margin-top: 12px;
  padding: 12px;

  max-height: 300px;      /* batas tinggi supaya bisa scroll */
  overflow-y: auto;

  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Scroll custom (optional, biar cantik) */
.dropdown-content::-webkit-scrollbar {
  width: 6px;
}

.dropdown-content::-webkit-scrollbar-thumb {
  background: #d0d7e7;
  border-radius: 6px;
}

/* Grid jadi 1 kolom */
.dropdown-grid {
  grid-template-columns: 1fr;
  gap: 12px;
  justify-items: center;
}

/* Card lebih ringkas di mobile */
.menu-card {
  padding: 14px;
  border-radius: 12px;
  width: 100%;
  max-width: 320px;  
}

.menu-title {
  font-size: 15px;
}

.menu-desc {
  font-size: 13px;
}

}


/* ===== HERO WRAPPER ===== */
.hero{
  min-height:100vh;
  background:linear-gradient(120deg,#0f766e 0%, #1e293b 40%, #4c1d95 100%);
  background-image: url('bg-cta.png');
  background-size: cover;        /* biar full menutupi area */
  background-position: center;   /* fokus di tengah */
  background-repeat: no-repeat;  /* jangan diulang */
  display:flex;
  align-items:center;
  padding:60px 80px;
}

.hero-inner{
  width:100%;
  max-width:1400px;
  margin:auto;
  display:grid;
  grid-template-columns:1fr 1fr; /* 50% kiri & kanan */
  gap:60px;
  align-items: flex-start;
}

/* ===== LEFT : IMAGE + THUMBNAIL ===== */
.product-gallery{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.main-image{
  background:#fff;
  border-radius:18px;
  padding:14px;
}

.main-image img{
  width:100%;

  border-radius:12px;
  display:block;
}

/* MAIN IMAGE TRANSITION */
.preview-img{
  width:100%;
  border-radius:12px;
  display:block;
  opacity:1;
  transition: opacity .25s ease;
}

.preview-img.is-changing{
  opacity:0;
}


.thumbnails{
  display:flex;
  gap:14px;
  grid-template-columns: repeat(4, 1fr); /* 4 thumbnail, full width */
}

.thumb{
  width: 100%;              /* isi penuh kolom grid */
  aspect-ratio: 16 / 9;      /* proporsi rapi (boleh 16/9 juga) */
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
}


.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.thumb.active{
  border-color:#38bdf8;
}

/* ===== RIGHT : PRODUCT INFO ===== */
.product-info{
  display:flex;
  flex-direction:column;
  gap:26px;
}

.product-title{
  font-size:42px;
  font-weight:700;
  line-height:1.25;
  text-transform:uppercase;
  color: white; /* Fix: Warna putih untuk judul produk */
}

.info-cards{
  display: flex;
  gap: 20px;
  align-items: flex-start; /* ⬅️ KUNCI: tinggi bebas sesuai isi */
}

.card{
 background:#ffffff;
 color:#111;
 border-radius:8px;
 padding:18px 20px;
 min-width:260px;
 flex:1;
}

/* price card */
.batch{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:-3px;
  font-weight:600;
}

.sale{
  color: #2fb9e6;
  font-size: 14px;
}

.badge{
  background:#ef4444;
  color:#fff;
  font-size:11px;
  padding:2px 10px;
  border-radius:999px;
}

.price{
  font-size:35px;
  font-weight:700;
  color:#2563eb;
}

.old{
  font-size:14px;
  color:#888;
  text-decoration:line-through;
}

.date{
  /*margin-top:8px;*/
  font-size:14px;
  color:#555;
  font-weight: 600;
}

/* mentor card */
.mentor{
  display:flex;
  gap:14px;
  align-items:center;
}

.mentor img{
  width:56px;
  height:56px;
  border-radius:50%;
  object-fit:cover;
}

.mentor h4{
  font-size:16px;
  font-weight:600;
}

.mentor p{
  font-size:12px;
  color:#555;
}

/* buttons */
.actions{
  display:flex;
  gap:16px;
  margin-top:10px;
}

.btn{
  padding:14px 24px;
  border-radius:10px;
  font-weight:600;
  border:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:16px;
  font-family: Poppins;
}

.btn-buy{
  background:#facc15;
  color:#000;
  text-decoration: none;
}

.btn-login{
  background:#06b6d4;
  color:#fff;
  text-decoration: none;
}

@media(max-width:1024px){
  .hero-inner{grid-template-columns:1fr}
  .product-title{font-size:34px}
}




/*produk deskripsi*/

.product-desc{
  background:#ffffff;
  color:#111;
  padding:50px 80px;
}

.produk-card{
  color: red;
  border:1px solid #e5e7eb;
  box-shadow:0 4px 12px rgba(0,0,0,0.06);
  padding: 20px 20px 20px 20px;
  border-radius: 10px;
}

.desc-block{
  max-width:1200px;
  margin-bottom:30px;
}

.desc-title{
  font-size:22px;
  font-weight:600;
  color:#0ea5b7;
  margin-bottom:5px;
}

.desc-title span{
  margin-right:6px;
}

.desc-text{
  font-size:17px;
  line-height:1.7;
  color:#333;
  max-width:1200px;
}

.desc-sub{
  font-size:16px;
  color:#444;
  margin-bottom:30px;
  max-width:1200px;
}

/* ===== MATERI GRID ===== */
.materi-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
}

.materi-card{
  position:relative;
  border-radius:14px;
  overflow:hidden;
  background:#f1f5f9;
}

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

/* LOCKED STATE */
.materi-card.locked img{
  filter:blur(2px) brightness(0.7);
}

.lock-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:48px;
  color:#fff;
}

/* RESPONSIVE */
@media(max-width:1024px){
  .materi-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:640px){
  .product-desc{
    padding:60px 24px;
  }
  .materi-grid{
    grid-template-columns:1fr;
  }
}



/* ========================= */
/* MOBILE RESPONSIVE */
/* ========================= */
@media (max-width: 768px){

  /* HERO */
  .hero{
    padding:40px 20px;
    min-height:auto;
  }

  .hero-inner{
    grid-template-columns:1fr;
    gap:32px;
  }

  /* PRODUCT GALLERY */
  .product-gallery{
    gap:14px;
  }

  .main-image{
    padding:10px;
  }

  /* thumbnails jadi grid */
  .thumbnails{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:10px;
  }

  .thumb{
    aspect-ratio:1 / 1;
  }

  /* PRODUCT INFO */
  .product-info{
    gap:20px;
  }

  .product-title{
    font-size:26px;
    line-height:1.3;
  }

  /* PRICE + MENTOR CARD */
  .info-cards{
    flex-direction:column;
    gap:14px;
  }

  .card{
    min-width:100%;
  }

  .price{
    font-size:28px;
  }

  /* BUTTONS */
  .actions{
    flex-direction:column;
    gap:12px;
  }

  .btn{
    width:100%;
    justify-content:center;
    font-size:15px;
    padding:14px;
  }

  /* ========================= */
  /* DESKRIPSI PRODUK */
  /* ========================= */
  .product-desc{
    padding:40px 20px;
  }

  .produk-card{
    padding:16px;
  }

  .desc-title{
    font-size:18px;
  }

  .desc-text,
  .desc-sub{
    font-size:15px;
  }

  /* MATERI GRID */
  .materi-grid{
    grid-template-columns:repeat(2,1fr);
    gap:14px;
  }

  .lock-overlay{
    font-size:32px;
  }
}


/*Responsive*/

/* ========================= */
/* MOBILE RESPONSIVE */
/* ========================= */
@media (max-width: 768px){

  /* HERO */
  .hero{
    padding:40px 20px;
    min-height:auto;
  }

  .hero-inner{
    grid-template-columns:1fr;
    gap:32px;
  }

  /* PRODUCT GALLERY */
  .product-gallery{
    gap:14px;
  }

  .main-image{
    padding:10px;
  }

  /* thumbnails jadi grid */
  .thumbnails{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:10px;
  }

  .thumb{
    aspect-ratio:1 / 1;
  }

  /* PRODUCT INFO */
  .product-info{
    gap:20px;
  }

  .product-title{
    font-size:26px;
    line-height:1.3;
  }

  /* PRICE + MENTOR CARD */
  .info-cards{
    flex-direction:column;
    gap:14px;
  }

  .card{
    min-width:100%;
  }

  .price{
    font-size:28px;
  }

  /* BUTTONS */
  .actions{
    flex-direction:column;
    gap:12px;
  }

  .btn{
    width:100%;
    justify-content:center;
    font-size:15px;
    padding:14px;
  }

  /* ========================= */
  /* DESKRIPSI PRODUK */
  /* ========================= */
  .product-desc{
    padding:40px 20px;
  }

  .produk-card{
    padding:16px;
  }

  .desc-title{
    font-size:18px;
  }

  .desc-text,
  .desc-sub{
    font-size:15px;
  }

  /* MATERI GRID */
  .materi-grid{
    grid-template-columns:repeat(2,1fr);
    gap:14px;
  }

  .lock-overlay{
    font-size:32px;
  }
}


/*===========================================================*/
/*footer*/
/*===========================================================*/
.footer {
  background: #062246; /* navy dark */
  color: #fff;
  padding: 70px 20px 30px;
  font-family: "Poppins", sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 18px;
  font-weight: 600;
}

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

.footer-col ul li {
  margin-bottom: 10px;
  font-size: 15px;
  color: #cbd5e1;
}

.footer-col ul li a {
  color: #cbd5e1;
  text-decoration: none;
  transition: .3s ease;
}

.footer-col ul li a:hover {
  color: #fff;
}

/* Logo + text */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  width: 50px;
}

.footer-logo h3 {
  font-size: 20px;
  font-weight: 700;
}

/* Social Icons */
.footer-social {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  transition: .3s ease;
}

.footer-social a:hover {
  background: #ffffff33;
}

/* Bottom Copyright */
.footer-bottom {
  text-align: center;
  margin-top: 50px;
  font-size: 14px;
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }
}


