* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #1e2248;
  color: white;
  padding-top: 80px; /* Sesuaikan dengan tinggi navbar */
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: #2a2f63;

  position: fixed; /* Tambahkan ini */
  top: 0; /* Tambahkan ini */
  left: 0; /* Tambahkan ini */
  width: 100%; /* Tambahkan ini */
  z-index: 1000; /* Supaya di atas semua */
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 30px;
}

.logo {
  height: 40px;
}

.nav-left ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-left ul li {
  cursor: pointer;
}

.nav-center input {
  width: 400px;
  padding: 10px 15px;
  border-radius: 25px;
  border: none;
}

.nav-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* HERO */
.hero {
  background: linear-gradient(90deg, #5b6bffb1, rgba(44, 67, 141, 0.58));
  padding: 60px 40px;
  border-radius: 20px;
}

.hero-text h1 {
  font-size: 36px;
  margin-bottom: 15px;
}

.hero-text button {
  padding: 12px 25px;
  border: none;
  border-radius: 30px;
  background: white;
  color: #2a2f63;
  font-weight: 600;
  cursor: pointer;
}

/* CONTENT */
.section {
  margin-top: 40px;
}

.section h2 {
  margin-bottom: 20px;
}

/* CARDS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.card {
  background: #2a2f63;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
}

.card-img {
  height: 120px;
  border-radius: 15px;
  margin-bottom: 15px;
}

.blue {
  background: linear-gradient(#6dd5ed, #2193b0);
}
.green {
  background: linear-gradient(#56ab2f, #a8e063);
}
.pink {
  background: linear-gradient(#ff758c, #ff7eb3);
}
.orange {
  background: linear-gradient(#ff9966, #ff5e62);
}

/* KATEGORI */
.kategori-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.kategori {
  background: #2a2f63;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  cursor: pointer;
}
.menu {
  list-style: none;
  display: flex;
  gap: 25px;
}

.menu li {
  position: relative;
  cursor: pointer;
}

/* DROPDOWN */
.dropdown-menu {
  position: absolute;
  top: 30px;
  left: 0;
  width: 360px;
  background: white;
  color: #333;
  border-radius: 15px;
  padding: 15px;
  display: none;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

.dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  border-radius: 12px;
  transition: 0.2s;
}

.dropdown-item:hover {
  background: #f2f2f2;
}

.dropdown-item p {
  font-size: 13px;
  margin-top: 5px;
  color: #555;
}

.icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.gold {
  background: #f4c542;
}
.blue {
  background: #4facfe;
}
.dark {
  background: #2a2f63;
}

.badge {
  background: red;
  color: white;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 10px;
  margin-left: 8px;
}
/* HAMBURGER */
.hamburger {
  font-size: 24px;
  cursor: pointer;
  display: none;
  margin-right: 15px;
}

/* HIDE DESKTOP MENU ON MOBILE */
.desktop-menu {
  display: flex;
}

.desktop-only {
  display: flex;
}
@media (max-width: 768px) {
  .side-menu .setting-sidebar {
    width: 100% !important;
    display: block !important;
  }
}
/* SIDE MENU */
.side-menu {
  position: fixed;
  top: 0;
  left: -320px;
  width: 320px;
  height: 100vh;
  background: #2a2f63;
  color: white;
  z-index: 2000;
  padding: 20px;
  transition: 0.3s;

  display: flex;
  flex-direction: column;
}
.side-content {
  flex: 1;
  overflow-y: auto;
}

.side-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.side-user {
  margin-top: auto;
  border-top: 1px solid #eee;
  padding: 15px 0 0 0;
  background: #2a2f63;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.side-user strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.side-user a {
  display: inline-block;
  padding: 8px 12px;
  background: #f5f5f5;
  border-radius: 8px;
  text-decoration: none;
  color: #e74c3c;
  font-weight: 500;
  font-size: 13px;
}
.close-btn {
  cursor: pointer;
  font-size: 20px;
}

.side-card {
  background: #3a3f80;
  color: white;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 15px;
}

.side-card p {
  font-size: 13px;
  margin-top: 5px;
}

body {
  overflow-x: hidden;
}

/* OVERLAY */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 1500;
}

/* RESPONSIVE */
@media (max-width: 1280px) {
  .desktop-menu {
    display: none !important;
  }

  .desktop-only {
    display: none !important;
  }

  .hamburger {
    display: block;
  }

  .nav-center {
    flex: 1;
    margin-left: 10px;
  }

  .nav-center input {
    width: 100%;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .kategori-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .desktop-menu {
    display: none !important;
  }

  .desktop-only {
    display: none !important;
  }

  .hamburger {
    display: block;
  }

  .nav-center {
    flex: 1;
    margin-left: 10px;
  }

  .nav-center input {
    width: 100%;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .kategori-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .kelas-link {
    /* display: none; */
  }
  /* SAAT EXPAND */
  .search {
    width: 80% !important;
    max-width: 300px !important;
  }
}

/* PROFILE DROPDOWN */
.profile-dropdown {
  position: relative;
}

.profile-trigger {
  cursor: pointer;
}

.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-menu {
  position: absolute;
  right: 0;
  top: 50px;
  width: 220px;
  background: #2f356f;
  color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  padding: 10px;
  display: none;
  z-index: 999;
}

.profile-menu a {
  display: block;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: 0.2s;
}

.profile-menu a:hover {
  background: #3f457a;
}

.profile-menu hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 8px 0;
}

.logout {
  color: #e74c3c !important;
  font-weight: 600;
}

.kelas-link {
  margin-right: 15px;
  text-decoration: none;
  color: white;
  font-weight: 500;
}
.side-user {
  margin-top: auto;
  padding: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kelas-mobile {
  display: block;
  padding: 10px;
  background: #3a3f80;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  text-align: center;
}

.logout-mobile {
  display: block;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 8px;
  text-decoration: none;
  color: #e74c3c;
  font-weight: 500;
  text-align: center;
}
/* ===== KELAS SAYA ===== */

.kelas-page {
  padding: 40px;
}

.kelas-header h2 {
  margin-bottom: 5px;
}

.kelas-header a {
  color: #4facfe;
  font-size: 14px;
  text-decoration: none;
}

.kelas-tabs {
  display: flex;
  gap: 30px;
  margin: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.kelas-tabs span {
  cursor: pointer;
  opacity: 0.6;
}

.kelas-tabs span.active {
  opacity: 1;
  border-bottom: 3px solid #4facfe;
  padding-bottom: 5px;
}

.kelas-wrapper {
  display: flex;
  gap: 30px;
}

.kelas-sidebar {
  width: 250px;
}

.kelas-sidebar ul {
  list-style: none;
}

.kelas-sidebar li {
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  cursor: pointer;
}

.kelas-sidebar li.active,
.kelas-sidebar li:hover {
  background: #3a3f80;
}

.kelas-content {
  flex: 1;
}

.kelas-card {
  display: flex;
  align-items: center;
  background: #2a2f63;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 20px;
  gap: 20px;
}

.kelas-card img {
  width: 90px;
  border-radius: 10px;
}

.kelas-info {
  flex: 1;
}

.kelas-info h4 {
  margin-bottom: 5px;
}

.progress-box {
  margin-top: 10px;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 5px;
}

.progress-bar {
  height: 8px;
  background: #1e2248;
  border-radius: 10px;
}

.progress {
  height: 100%;
  background: #4facfe;
  border-radius: 10px;
}

.btn-lanjut,
.btn-mulai {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.btn-lanjut {
  background: #4facfe;
  color: white;
}

.btn-mulai {
  background: #56ab2f;
  color: white;
}

/* RESPONSIVE */
@media (max-width: 1280px) {
  .kelas-wrapper {
    flex-direction: column;
  }

  .kelas-sidebar {
    width: 100%;
  }
}

.kelas-wrapper {
  display: flex;
  gap: 30px;
  padding: 40px;
}

.kelas-sidebar {
  width: 250px;
}

.kelas-sidebar ul {
  list-style: none;
}

.kelas-sidebar li {
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 10px;
}

.kelas-sidebar li.active,
.kelas-sidebar li:hover {
  background: #3a3f80;
}

.kelas-content {
  flex: 1;
}

.kelas-card {
  display: flex;
  align-items: center;
  background: #2a2f63;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 20px;
  gap: 20px;
}

.kelas-card img {
  width: 100px;
  border-radius: 10px;
}

.kelas-info {
  flex: 1;
}

.progress-bar {
  height: 8px;
  background: #1e2248;
  border-radius: 10px;
  margin-top: 10px;
}

.progress {
  height: 100%;
  background: #4facfe;
  border-radius: 10px;
}

.btn-lanjut {
  background: #4facfe;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  color: white;
  cursor: pointer;
}
.paket-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 25px;
  border: 2px solid #e5e7eb;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
}

.paket-card.active {
  border: 2px solid #00a5b5;
  box-shadow: 0 0 0 4px rgba(0, 165, 181, 0.1);
}

.paket-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.paket-radio {
  width: 20px;
  height: 20px;
}

.paket-desc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 14px;
  margin-top: 15px;
}

.paket-price {
  text-align: right;
  margin-top: 20px;
}

.paket-price del {
  color: #999;
  margin-right: 8px;
}

.paket-price span {
  color: red;
  font-weight: 700;
  font-size: 18px;
}

/* CART WRAPPER */
.cart-wrapper {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

/* LINK CONTAINER */
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  text-decoration: none;
}

/* SVG ICON */
.cart-link svg {
  width: 26px;
  height: 26px;
}

/* SUPERSCRIPT ANGKA */
.cart-sup {
  position: absolute;

  top: 3px;
  right: -1px;

  font-size: 11px;
  font-weight: 600;

  color: #ff3b3b;

  line-height: 1;
}
/* ================= HERO DASHBOARD ================= */

.hero-card {
  background: linear-gradient(90deg, #2a2f63 0%, #0f1529 70%);
  padding: 65px 50px;
  border-radius: 28px;
  margin-bottom: 25px;
  position: relative;
  overflow: hidden;
}

.hero-card h1 {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero-card p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 25px;
}

.btn-primary {
  padding: 12px 28px;
  border: none;
  border-radius: 10px;
  background: white;
  color: #2a2f63;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
/* ================= SECTION HEADER ================= */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 26px;
  font-weight: 600;
}

.see-all {
  background: #5b6cff;
  border: none;
  padding: 6px 15px;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  cursor: pointer;
}

.see-all:hover {
  background: rgba(85, 99, 201, 0.563);
}
/* .main-wrapper{
    max-width:1200px;
    margin:0 auto;
    padding:30px 20px 60px;
} */

.dashboard-wrapper {
  max-width: 1300px;
  margin: 40px auto 80px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: stretch;
}
.tryout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.tryout-card {
  background: #ffffff;
  padding: 25px 20px;
  border-radius: 18px;
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: 0.25s ease;
}

.tryout-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.tryout-icon {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.tryout-icon img {
  max-height: 90px;
  max-width: 90px;
  object-fit: contain;
}
