/* ==================== CSS Variables ==================== */
:root {
  /* Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #fafbfc;
  --bg-accent: #f8f9fa;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --accent: #2d3748;
  --accent-hover: #1a202c;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 48px;
}

/* ==================== Reset & Base Styles ==================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==================== Container ==================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* ==================== Header ==================== */
/* =========================
   PROMO BAR (HOME ONLY)
========================= */
#promo-announcement {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1100;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Promo disembunyikan saat scroll */
#promo-announcement.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* =========================
   HEADER GLOBAL
========================= */
header {
  position: fixed;
  top: 0;
  /* DEFAULT: TANPA PROMO */
  left: 0;
  width: 100%;
  z-index: 1000;

  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  transition:
    top 0.25s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

/* Header saat promo ADA */
header.with-promo {
  top: 48px;
  /* tinggi promo */
}

/* Efek scroll */
header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  #promo-announcement>div {
    padding: 10px 12px;
    gap: 8px;
  }

  @media (max-width: 768px) {
    #promo-inner {
      padding: 10px 12px !important;
      gap: 8px !important;
    }

    #promo-text {
      font-size: 13px !important;
    }

    #promo-cta {
      font-size: 13px !important;
    }

    #promo-timer {
      font-size: 12px !important;
      padding: 3px 8px !important;
    }
  }


  #promo-timer {
    font-size: 12px;
    padding: 3px 8px;
  }
}

@media (max-width: 768px) {
  header.with-promo {
    top: 0 !important;
  }
}


/* ==================== Navbar ==================== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 0;
  gap: var(--spacing-lg);
}

/* ==================== Logo ==================== */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.provider-logo {
  display: flex;
  align-items: center;
  margin-bottom: 0px;
}

.provider-logo svg {
  height: 38px;
  width: auto;
  display: block;
}





/* ==================== Navigation Menu ==================== */
.nav-menu {
  display: flex;
  align-items: center;
  flex: 1;
  gap: var(--spacing-md);
  list-style: none;
  margin-left: var(--spacing-md);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
}

/* ==================== Dropdown ==================== */
.dropdown {
  position: relative;
}

.nav-link .chevron-icon {
  margin-left: 4px;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.3s ease;
  position: relative;
  top: -1px;
}

.dropdown.active .chevron-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

/* Jembatan tak terlihat agar mouse tidak putus koneksi */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: -10px;
  right: -10px;
  height: 14px;
}

.dropdown.active>.dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-icon {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.dropdown-menu li a:hover {
  background: var(--bg-accent);
  color: var(--text-primary);
}

.dropdown-menu li a:hover .dropdown-icon {
  color: #2f4fd2;
}

.dropdown-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.dropdown-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* ==================== Navigation Actions ==================== */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  background: transparent;
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.btn-primaryy {
  background: #0056d2;
  color: white;
}

.btn-primaryy:hover {
  background: #0041a8;
}

/* ==================== Profile Dropdown ==================== */
.profile-dropdown {
  position: relative;
}

.profile-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-avatar:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.profile-avatar img,
.profile-avatar svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 250px;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  display: none;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
}

.profile-dropdown-menu.active {
  display: flex;
}

/* ==================== Hamburger Menu ==================== */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ==================== Footer ==================== */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-brand h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.footer-brand p {
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 420px;
}

.footer-section h4 {
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
  font-size: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-light);
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

  /* 1. Overlay Gelap */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* 2. Hamburger Menu Icon */
  .menu-toggle {
    display: flex;
    z-index: 1001;
    /* Harus di atas menu drawer */
  }

  /* 3. Navigation Drawer (Menu Samping) */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 24px 40px;
    gap: 8px;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    z-index: 999;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
  }

  body.no-scroll {
    overflow: hidden !important;
    /* Matikan scroll */
    height: 100vh;
    /* Kunci tinggi layar */
    touch-action: none;
    /* Matikan gestur scroll di HP */
  }

  .nav-menu.active {
    right: 0;
    /* Muncul dari kanan */
    left: auto;
  }

  /* Style Item Menu Mobile */
  .nav-menu>li {
    width: 100%;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-menu>li:last-child {
    border-bottom: none;
    margin-top: auto;
    /* Dorong tombol login/profil ke bawah jika mau */
    padding-top: 20px;
  }

  .nav-link {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 16px 10px;
    font-size: 16px;
  }

  /* 4. Dropdown Program (Inline Expansion) */
  .dropdown-menu {
    position: static;
    /* Tidak melayang */
    width: 100%;
    box-shadow: none;
    border: none;
    background: var(--bg-secondary);
    /* Warna beda dikit biar kontras */
    border-radius: var(--radius-sm);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-bottom: 0;
  }

  .dropdown.active .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    max-height: 500px;
    pointer-events: auto;
    margin-bottom: 10px;
  }

  .dropdown-menu li a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  /* 5. Profile Dropdown Mobile (Inline Style) */
  .nav-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: 100%;
    justify-content: space-between;
    margin-top: 10px;
    border: none !important;
  }

  .nav-actions .btn {
    width: 50%;
    font-size: 14px;
    padding: 10px 0;
    border-radius: 10px;
    text-align: center;
  }

  .profile-dropdown {
    width: 100%;
  }

  .btn-secondary {
    background: #ffffff;
    border: 1px solid #d0d0d0;
    color: #1a1a1a;
  }

  .btn-primaryy {
    background: #0056d2;
    color: white;
  }

  /* Tombol Profile di Mobile jadi lebar penuh & ada teks */
  .profile-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--bg-accent);
    border-radius: var(--radius-sm);
  }

  /* Tambahkan teks nama user di sebelah avatar khusus mobile */
  .profile-btn::after {
    content: "Menu Akun \25BE";
    /* Indikator dropdown */
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
  }

  .profile-dropdown-menu {
    position: fixed;
    top: 70px;
    right: 20px;
    left: auto;
    width: calc(100% - 40px);
    max-width: 280px;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  }

  .profile-dropdown-menu.active {
    max-height: 600px;
    /* Expand */
    opacity: 1;
    visibility: visible;
    padding: 10px 0;
  }

  /* Tombol Login/Register Mobile */
  .btn {
    width: 100%;
    padding: 12px;
    text-align: center;
    font-size: 16px;
  }

  /* Footer adjustment */
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 18px;
  }

  .logo-mark {
    width: 40px;
    height: 40px;
  }

  .nav-actions .btn {
    font-size: 13px;
    padding: 8px 16px;
  }
}


/* Dropdown container */
.profile-dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  padding: 6px 0;
  width: 250px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Header section */
.dropdown-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 20px 14px 20px;
  gap: 10px;
  border-bottom: none;
}

/* Avatar Container for Status Dot */
.header-avatar-container {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

/* Avatar */
.profile-dropdown-menu .header-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border: 2px solid #e5e7eb;
}

/* Gambar di dalam avatar */
.profile-dropdown-menu .header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Status Dot: Hiding to match screenshot exactly */
.status-dot {
  display: none !important;
}

/* Info nama dan email */
.header-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  overflow: hidden;
}

.header-name {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: #1f2937;
  line-height: 1.3;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-email {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.3;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tambahan opsional untuk item menu di bawah profil */
.dropdown-item {
  padding: 10px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #374151;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.dropdown-item svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.5;
  color: #6b7280;
}

.dropdown-item:hover {
  background: rgba(0, 0, 0, 0.03);
}

.profile-dropdown-menu .dropdown-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 4px 16px;
}

/* ==================== Header Search Bar (Coursera-style) ==================== */
.nav-search-item {
  list-style: none;
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: var(--spacing-md);
  flex: 1;
  max-width: 440px;
  min-width: 200px;
}

.header-search-wrapper {
  position: relative;
  width: 100%;
}

.header-search-form {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  border: 2px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.header-search-form:focus-within {
  border-color: #0056d2;
  box-shadow: 0 0 0 3px rgba(0, 86, 210, 0.08);
}

/* Left search icon */
.search-icon-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
  z-index: 2;
  display: flex;
  align-items: center;
}

.header-search-form:focus-within .search-icon-left {
  color: #0056d2;
}

/* Input */
.header-search-form #course-search {
  width: 100%;
  height: 42px;
  padding: 0 48px 0 40px;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 400;
  color: #1a202c;
  background: transparent;
  outline: none;
  box-sizing: border-box;
}

.header-search-form #course-search::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* Submit button (blue circle) */
.search-submit-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0056d2;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
  z-index: 2;
  flex-shrink: 0;
}

.search-submit-btn:hover {
  background: #0041a8;
  transform: translateY(-50%) scale(1.05);
}

.search-submit-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* Typing cursor animation */
.header-search-form .typing-cursor {
  display: inline-block;
  width: 2px;
  background: #555;
  margin-left: 2px;
  animation: headerBlink 0.7s infinite;
}

@keyframes headerBlink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

/* ==================== Search Dropdown Panel ==================== */
.search-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 580px;
  max-width: 90vw;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 20px 0;
  display: none;
  z-index: 1200;
  max-height: 520px;
  overflow-y: auto;
}

.search-dropdown-panel.active {
  display: block;
}

/* Section */
.sdp-section {
  padding: 0 24px;
}

.sdp-section+.sdp-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

/* Section Header */
.sdp-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.sdp-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
}

.sdp-clear-btn {
  font-size: 13px;
  font-weight: 500;
  color: #0056d2;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.sdp-clear-btn:hover {
  color: #0041a8;
  text-decoration: underline;
}

/* ===== Recent Searches ===== */
.sdp-recent-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sdp-recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
  color: #374151;
  font-size: 14px;
  font-weight: 400;
}

.sdp-recent-item:hover {
  background: #f3f4f6;
}

.sdp-recent-icon {
  width: 20px;
  height: 20px;
  color: #9ca3af;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sdp-recent-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Trending Tags ===== */
.sdp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sdp-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.sdp-tag:hover {
  background: #f0f4ff;
  border-color: #0056d2;
  color: #0056d2;
  transform: translateY(-1px);
}

/* ===== Recently Viewed Courses (Card Grid) ===== */
.sdp-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.sdp-course-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  border: 1px solid #f1f5f9;
  background: #fff;
}

.sdp-course-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.sdp-course-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #f3f4f6;
}

.sdp-course-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sdp-course-provider {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
}

.sdp-course-provider-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e5e7eb;
  flex-shrink: 0;
}

.sdp-course-name {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sdp-course-meta {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 400;
}

/* ===== Search Results (typed) ===== */
.sdp-results-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sdp-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
  color: #374151;
}

.sdp-result-item:hover {
  background: #f3f4f6;
}

.sdp-result-icon {
  width: 20px;
  height: 20px;
  color: #9ca3af;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sdp-result-text {
  font-size: 14px;
  font-weight: 500;
  flex: 1;
}

.sdp-result-text strong {
  color: #0056d2;
  font-weight: 700;
}

.sdp-view-all {
  display: block;
  padding: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #0056d2;
  cursor: pointer;
  border-top: 1px solid #f1f5f9;
  margin-top: 8px;
  transition: background 0.15s ease;
  text-decoration: none;
}

.sdp-view-all:hover {
  background: #f8fafc;
}

/* ==================== Responsive: Header Search ==================== */
@media (max-width: 768px) {
  .nav-search-item {
    width: 100%;
    max-width: 100%;
    padding: 8px 10px;
    order: -1;
  }

  .search-dropdown-panel {
    width: calc(100vw - 32px);
    left: 16px;
    transform: none;
    border-radius: 20px;
    max-height: 80vh;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  }

  .sdp-courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==================== Toast Notification (Global) ==================== */
/* ==================== Toast Notification (iPhone Style) ==================== */
.toast-container-v2 {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 450px;
  pointer-events: none;
}

.toast-v2 {
  width: fit-content;
  max-width: 90vw;
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.toast-v2.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-icon-v2 {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Success State */
.toast-v2.success .toast-icon-v2 {
  background: #10b981;
}

.toast-v2.success .toast-icon-v2 i {
  color: white;
}

.toast-icon-v2 i {
  font-size: 1.25rem;
}

/* Error State */
.toast-v2.error .toast-icon-v2 {
  background: #ef4444;
}

.toast-v2.error .toast-icon-v2 i {
  color: white;
}

.toast-content-v2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.toast-title-v2 {
  font-weight: 700;
  color: #1e293b;
  font-size: 0.9rem;
  line-height: 1.2;
}

.toast-msg-v2 {
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast-pill-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 8px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

@media (max-width: 480px) {
  .toast-pill-v2 {
    padding: 6px 12px 6px 6px;
    gap: 10px;
  }

  .toast-icon-v2 {
    width: 30px;
    height: 30px;
  }

  .toast-icon-v2 i {
    font-size: 1rem;
  }

  .toast-title-v2 {
    font-size: 0.85rem;
  }

  .toast-msg-v2 {
    font-size: 0.75rem;
  }
}