/* ===== RESET & VARIABLES ===== */
:root {
  --primary: #082e60;
  --primary-light: #1a3f75;
  --secondary: #ffb200;
  --secondary-light: #ffc233;
  --secondary-dark: #e69e00;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05);
  --border-radius: 24px;
  --border-radius-sm: 16px;
}

body {
  background-color: var(--white);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
}

/* ===== NAVBAR ===== */
.custom-navbar {
  background-color: var(--primary);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  font-size: 1.75rem !important;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--white) !important;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  margin: 0 1rem;
  padding: 0.5rem 0 !important;
  transition: all 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: width 0.2s;
}

.nav-link:hover {
  color: var(--white) !important;
}

.nav-link:hover::after {
  width: 100%;
}
/* ===== NAVBAR MOBILE ===== */
@media (max-width: 991.98px) {
  .custom-navbar .container {
    position: relative;
  }
  
  .navbar-brand {
    font-size: 1.5rem !important;
  }
  
  /* Tombol mobile */
  .d-lg-none.d-flex {
    margin-right: 0.5rem;
  }
  
  .btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
    border-radius: 8px;
  }
  
  /* Pastikan navbar toggler rapi */
  .navbar-toggler {
    border: none;
    padding: 0.5rem;
    margin-left: 0.25rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  .navbar-toggler-icon {
    width: 1.25rem;
    height: 1.25rem;
  }
  
  /* Menu collapse */
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary);
    padding: 1rem;
    border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
  }
  
  .navbar-nav {
    margin: 1rem 0;
  }
  
  .nav-item {
    margin: 0.5rem 0;
  }
  
  .nav-link {
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
  }
  
  .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .nav-link::after {
    display: none;
  }
}

/* Untuk layar sangat kecil */
@media (max-width: 375px) {
  .d-lg-none.d-flex {
    gap: 0.5rem !important;
  }
  
  .btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.813rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem !important;
  }
}
/* ===== BUTTONS ===== */
.btn {
  border-radius: 12px;
  padding: 0.625rem 1.5rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-warning {
  background-color: var(--secondary);
  border: none;
  color: var(--primary);
}

.btn-warning:hover {
  background-color: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--primary);
}

.btn-outline-warning {
  border: 2px solid var(--secondary);
  color: var(--secondary);
  background: transparent;
}

.btn-outline-warning:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--primary);
}

.btn-lg {
  padding: 1rem 2.5rem;
  border-radius: 16px;
}

/* ===== HERO SECTION ===== */
.hero-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}

.hero-box {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 60px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--gray-800);
}

.hero-title span {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-title span::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: var(--secondary);
  opacity: 0.3;
  z-index: -1;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 600px;
}

/* Statistik Box */
.stat-box {
  text-align: left;
}

.stat-box h2 {
  color: var(--primary);
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
  line-height: 1;
}

.stat-box p {
  color: var(--gray-600);
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero Image */
.hero-image {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
  transition: transform 0.3s;
}

.hero-image:hover {
  transform: scale(1.02);
}

/* ===== PROGRAM SECTION ===== */
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--gray-600);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Cards */
.paket-card {
  border: none;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  transition: all 0.3s;
  height: 100%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.paket-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.paket-card .card-header {
  background-color: var(--primary);
  color: var(--white);
  padding: 1.25rem;
  border-bottom: none;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.3px;
}

.paket-card .card-header i {
  margin-right: 0.5rem;
  color: var(--secondary);
}

.paket-card .card-body {
  padding: 1.5rem;
}

.paket-card h5 {
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.75rem;
}

.paket-card p {
  color: var(--gray-600);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

/* Program Features */
.program-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.program-features li {
  margin-bottom: 0.75rem;
  color: var(--gray-700);
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
}

.program-features i {
  color: var(--secondary);
  margin-right: 0.75rem;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ===== KEUNGGULAN SECTION ===== */
.leaderboard-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.leaderboard-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><path d="M30 30 L30 30 Z" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
  opacity: 0.1;
}

.leader-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--white);
  position: relative;
}

.leader-sub {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  color: var(--white);
  position: relative;
}

.leader-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.leader-card-header {
  background: var(--secondary);
  padding: 1.5rem;
  text-align: center;
  font-weight: 700;
  color: var(--primary);
}

.leader-card-header select {
  max-width: 200px;
  margin: 1rem auto 0;
  border: 2px solid var(--primary);
  border-radius: 12px;
  font-weight: 500;
}

.leader-card-body {
  padding: 2rem;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Keunggulan Icons */
.keunggulan-item {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  height: 100%;
}

.keunggulan-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.keunggulan-icon {
  background-color: var(--secondary);
  border-radius: 20px;
  width: 80px;
  height: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.keunggulan-icon i {
  font-size: 2.5rem;
  color: var(--primary);
}

.keunggulan-title {
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.keunggulan-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ===== TESTIMONI ===== */
.testimoni-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all 0.3s;
  height: 100%;
}

.testimoni-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-200);
}

.testimoni-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.testimoni-name {
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.25rem;
}

.testimoni-status {
  color: var(--gray-600);
  font-size: 0.875rem;
}

.testimoni-text {
  color: var(--gray-700);
  line-height: 1.7;
  margin: 1.25rem 0;
  font-style: italic;
}

.testimoni-stars {
  color: var(--secondary);
  font-size: 1.1rem;
}

.testimoni-stars i {
  margin-right: 0.25rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cta-title {
  color: var(--white);
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
}

.cta-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  position: relative;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 60px 10% 30px;
  position: relative;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand h2 {
  color: var(--secondary);
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.footer h3 {
  color: var(--secondary);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-menu ul {
  list-style: none;
  padding: 0;
}

.footer-menu ul li {
  margin-bottom: 0.75rem;
}

.footer-menu ul li a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s;
  font-size: 0.9375rem;
}

.footer-menu ul li a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.footer-contact .social {
  margin-top: 1.5rem;
}

.footer-contact .social i {
  font-size: 1.5rem;
  margin-right: 1rem;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s;
  cursor: pointer;
}

.footer-contact .social i:hover {
  color: var(--secondary);
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== CAPAIAN SECTION ===== */
.capaian-section {
  background-color: var(--gray-50);
  padding: 80px 0;
}

.capaian-section h2 {
  color: var(--primary);
  font-weight: 800;
}

.capaian-card {
  background: var(--white);
  border-radius: var(--border-radius);
  min-height: 400px;
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  border: 1px solid var(--gray-100);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-box {
    padding: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .leader-title {
    font-size: 2rem;
  }
  
  .stat-box h2 {
    font-size: 1.75rem;
  }
  
  .keunggulan-item {
    padding: 1.5rem;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer-brand {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .hero-box {
    padding: 1.5rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  .d-flex.gap-4 {
    gap: 1rem !important;
    flex-wrap: wrap;
  }
  
  .stat-box {
    flex: 1 1 calc(50% - 1rem);
    text-align: center;
  }
}

  /* Pastikan dropdown profil di mobile tampil dengan benar */
  @media (max-width: 991.98px) {
    .navbar .container {
      position: relative;
    }
    
    /* Dropdown mobile muncul di bawah dengan posisi yang tepat */
    .dropdown-menu {
      position: absolute !important;
      right: 0;
      left: auto;
      min-width: 200px;
    }
    
    /* Badge keranjang di mobile */
    .position-absolute.badge {
      font-size: 0.6rem;
      padding: 0.25rem 0.5rem;
    }
  }
  
  /* Styling dropdown */
  .dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 0.5rem;
    margin-top: 0.5rem;
  }
  
  .dropdown-item {
    border-radius: 8px;
    padding: 0.7rem 1rem;
    transition: all 0.2s;
  }
  
  .dropdown-item:hover {
    background-color: #fff3e0;
  }
  
  .dropdown-item i {
    width: 20px;
    color: #ffb200;
  }
  
  .dropdown-item.text-danger i {
    color: #dc3545;
  }
  
  .dropdown-item.text-danger:hover {
    background-color: #ffe6e6;
  }
  
  /* Badge keranjang */
  .badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }