/* Navbar Click Handlers */
.navbar .nav-link.dropdown-toggle {
  cursor: pointer;
  position: relative;
}

.navbar .nav-link.dropdown-toggle::after {
  display: none; /* Hide default Bootstrap arrow */
}

/* Mobile menu icon control */
.navbar .topnav .menu-icon { display: none; }
@media (max-width: 991px) {
  .navbar .topnav .menu-icon { display: block; }
  /* Hide mega menu on mobile */
  .navbar .dropdown-menu { display: none !important; }
}
.termine-controls { display:flex; gap:8px; align-items:center; margin:20px 0 8px; }
.termine-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #000;
  border: 1px solid #333;
  color: #fff;
  padding: 8px 36px 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  height: 34px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23aaaaaa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
  transition: border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.termine-select:hover { border-color: #666; }
.termine-select:focus { outline: none; border-color: #999; box-shadow: 0 0 0 2px rgba(255,255,255,0.08); }
.termine-select::-ms-expand { display: none; }
.termine-btn { background:transparent; border:1px solid #333; color:#888; padding:8px 12px; border-radius:6px; cursor:pointer; height:34px; line-height:1; }
.termine-btn:hover { border-color:#666; color:#fff; }

.termine-table { width:100%; border-collapse:collapse; margin-top:8px; }
.termine-table thead th { text-align:left; font-weight:600; font-size:12px; color:#888; border-bottom:1px solid #333; padding:10px; }
.termine-table tbody td { border-bottom:1px solid #222; padding:10px; font-size:14px; color:#fff; }
.termine-table tbody tr:hover { background:#0a0a0a; }
.termin-seats-badge { color:#888; font-size:12px; }
.termin-book-btn { background:#fff; color:#000; padding:8px 12px; border-radius:6px; border:none; cursor:pointer; }
.termin-book-btn:hover { background:#f0f0f0; }

/* Live seats pulse */
@keyframes seat-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 153, 0.25); }
  70% { box-shadow: 0 0 0 10px rgba(0, 255, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 153, 0); }
}
.termin-seats-badge.live {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,255,153,0.35);
  color: #00ff9a;
  animation: seat-pulse 2.2s ease-out infinite;
}

/* Past dates */
.termine-table tbody tr.past { opacity: 0.45; }
.termin-book-btn:disabled { background:#1a1a1a; color:#666; cursor:not-allowed; }
.termine-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 16px;
}

.termin-row {
  display: grid;
  grid-template-columns: 160px 1fr 130px;
  gap: 12px;
  align-items: center;
  background: #0a0a0a;
  border: 1px solid #333333;
  border-radius: 6px;
  padding: 10px 12px;
}

.termin-date { color: #ffffff; font-weight: 600; font-size: 14px; }
.termin-course { color: #888888; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.termin-actions { display: flex; justify-content: flex-end; }
.termin-actions { gap: 8px; }
.termin-actions .termin-seats { color: #888888; font-size: 12px; align-self: center; }
.termin-actions .btn-primary { background: #ffffff; color: #000000; padding: 8px 12px; border-radius: 6px; }

@media (max-width: 640px) {
  .termine-controls { flex-wrap: wrap; }
  .termin-row { grid-template-columns: 1fr; gap: 6px; }
  .termin-actions { justify-content: flex-start; }
}

/* Premium Click-Based Mega Menu */
@media (min-width: 992px) {
  .navbar .nav-item.dropdown { position: static; }
  
  /* Mega Menu Overlay */
  .navbar .dropdown-menu {
    display: none;
    position: fixed;
    top: 180px; left: 0; right: 0; bottom: 0; /* Start below navbar */
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .navbar .dropdown-menu.active {
    display: block;
    opacity: 1;
    visibility: visible;
  }
  
  /* Menu Content Container */
  .mega-menu-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%; max-width: 1200px;
    background: #000;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .navbar .dropdown-menu.active .mega-menu-content {
    transform: translate(-50%, -50%) scale(1);
  }
  
  /* Menu Header */
  .mega-menu-header {
    padding: 20px 24px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #111 0%, #000 100%);
  }
  
  .mega-menu-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0;
  }
  
  .mega-menu-close {
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .mega-menu-close:hover {
    background: #222;
    border-color: #666;
  }
  
  /* Menu Grid */
  .mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    background: #333;
  }
  
  .mega-menu-column {
    background: #000;
    padding: 24px;
  }
  
  .mega-menu-column h3 {
    font-size: 14px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #222;
  }
  
  .mega-menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .mega-menu-item {
    margin-bottom: 4px;
  }
  
  .mega-menu-link {
    display: flex;
    align-items: center;
    padding: 12px 0;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
  }
  
  .mega-menu-link:hover {
    color: #fff;
    text-decoration: none;
    background: #111;
    padding-left: 12px;
    padding-right: 12px;
  }
  
  .mega-menu-icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    color: #666;
    transition: color 0.2s ease;
  }
  
  .mega-menu-link:hover .mega-menu-icon {
    color: #fff;
  }
  
  .mega-menu-text {
    flex: 1;
  }
  
  .mega-menu-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s ease;
    color: #666;
  }
  
  .mega-menu-link:hover .mega-menu-arrow {
    opacity: 1;
    transform: translateX(0);
  }
  
  /* Submenu styling */
  .mega-menu-submenu .mega-menu-link {
    padding-left: 24px;
    font-size: 13px;
    color: #ccc;
    position: relative;
  }
  
  .mega-menu-submenu .mega-menu-link::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    width: 8px;
    height: 1px;
    background: #666;
    transform: translateY(-50%);
  }
  
  .mega-menu-submenu .mega-menu-link:hover {
    color: #fff;
    padding-left: 36px;
  }
  
  .mega-menu-submenu .mega-menu-icon {
    width: 16px;
    height: 16px;
    margin-right: 10px;
  }
}
/* KI Schulung Vercel-Style CSS */

/* Global Vercel-Style Reset */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: #000000;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header Styles */
.header {
  padding: 80px 0 60px;
  text-align: center;
  border-bottom: 1px solid #333333;
}

.header h1 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.2;
  color: #ffffff;
}

.header p {
  font-size: 18px;
  color: #888888;
  max-width: 600px;
  margin: 0 auto 32px;
}

.header-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  background: #111111;
  border: 1px solid #333333;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}

/* Filter Buttons */
.filters {
  padding: 40px 0;
  text-align: center;
}

.filter-grid {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.filter-btn {
  background: transparent;
  border: 1px solid #333333;
  color: #888888;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 400;
  font-family: inherit;
}

.filter-btn:hover {
  border-color: #666666;
  color: #ffffff;
}

.filter-btn.active {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

/* Course Grid */
.courses {
  padding: 40px 0 80px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 16px;
}

.course-card {
  background: #111111;
  border: 1px solid #333333;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
}

.course-card:hover {
  border-color: #666666;
  transform: translateY(-2px);
}

.course-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
  transform: scale(1.05);
}

.course-header {
  padding: 20px;
  border-bottom: 1px solid #333333;
  position: relative;
}

.course-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #ffffff;
  color: #000000;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.course-badge.new { background: #00d8ff; }
.course-badge.premium { background: #ff0080; color: #ffffff; }
.course-badge.trending { background: #f5a623; }
.course-badge.expert { background: #7c3aed; color: #ffffff; }

.course-title {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.course-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #666666;
}

.course-body {
  padding: 20px;
}

.course-description {
  color: #888888;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.course-content {
  margin-bottom: 20px;
  padding: 16px;
  background: #0a0a0a;
  border: 1px solid #333333;
  border-radius: 6px;
}

.course-content h5 {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.course-content ul {
  margin: 0;
  padding-left: 20px;
  list-style: none;
}

.course-content li {
  color: #888888;
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 6px;
  position: relative;
}

.course-content li:before {
  content: "•";
  color: #666666;
  position: absolute;
  left: -15px;
}

.course-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 12px;
}

.course-rating {
  color: #fbbf24;
  font-weight: 500;
}

.course-students {
  color: #666666;
}

.course-features {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.feature {
  background: #1a1a1a;
  border: 1px solid #333333;
  color: #888888;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.course-pricing {
  background: #0a0a0a;
  border: 1px solid #333333;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.price-row:last-child {
  margin-bottom: 0;
}

.price-label {
  color: #888888;
  font-size: 14px;
}

.price-value {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
}

.course-actions {
  display: flex;
  gap: 8px;
}

.btn-primary {
  flex: 1;
  background: #ffffff;
  color: #000000;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-family: inherit;
}

.btn-primary:hover {
  background: #f0f0f0;
}

.btn-secondary {
  flex: 1;
  background: transparent;
  color: #888888;
  border: 1px solid #333333;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-family: inherit;
}

.btn-secondary:hover {
  border-color: #666666;
  color: #ffffff;
}

/* Certification Section */
.certification {
  padding: 60px 0;
  text-align: center;
  border-top: 1px solid #333333;
}

.cert-intro {
  margin-bottom: 40px;
}

.cert-main-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #ffffff;
}

.cert-main-description {
  color: #888888;
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
}

/* Vercel Certificate Preview */
.certificate-preview {
  margin: 60px auto;
  max-width: 900px;
  perspective: 1000px;
}

.vercel-certificate {
  background: #000000;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: rotateX(2deg) rotateY(-1deg);
  transition: all 0.3s ease;
}

/* Hologram security seal */
.cert-holo {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: conic-gradient(from 0deg, rgba(255,255,255,0.12), rgba(0,255,153,0.08), rgba(0,153,255,0.08), rgba(255,0,255,0.08), rgba(255,255,255,0.12));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2), 0 8px 20px rgba(0,0,0,0.4);
  overflow: hidden;
}
.cert-holo::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), transparent 40%),
              radial-gradient(circle at 70% 70%, rgba(255,255,255,0.1), transparent 45%),
              repeating-conic-gradient(from 0deg, rgba(255,255,255,0.06) 0 6deg, transparent 6deg 12deg);
}
.cert-holo .holo-text {
  position: absolute;
  bottom: 6px; left: 50%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: 2px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}
.cert-holo::after {
  content: '';
  position: absolute; inset: 0; border-radius: 12px;
  background: linear-gradient(90deg, rgba(255,255,255,0.25), rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.25));
  mix-blend-mode: screen;
  animation: holo-sheen 2.8s linear infinite;
}
@keyframes holo-sheen {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Certificate Frame */
.cert-frame {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 60px 40px;
  position: relative;
  background:
    /* subtle vertical wiggle line like example */
    repeating-linear-gradient(180deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 6px),
    /* faint vignette */
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.03), transparent 60%);
}

.vercel-certificate:hover {
  transform: rotateX(0deg) rotateY(0deg);
  box-shadow: 
    0 35px 70px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Vercel Certificate Header */
.vercel-cert-header {
  position: absolute;
  top: 54px;
  left: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  z-index: 10;
  pointer-events: none; /* container ignores pointer */
}

.vercel-logo {
  height: 60px !important;
  width: auto !important;
  max-width: none !important;
  filter: none;
  opacity: 0.9; /* dezent */
  display: block;
  object-fit: contain;
}

/* Vercel Certificate Content */
.vercel-cert-content {
  text-align: center;
  margin-bottom: 60px;
}

.vercel-cert-title {
  font-size: 48px;
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 40px 0;
  letter-spacing: -0.02em;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.vercel-cert-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
  gap: 20px;
}

.divider-line {
  height: 1px;
  width: 80px;
  background: rgba(255, 255, 255, 0.2);
}

.divider-symbol {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

.vercel-cert-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 50px 0;
  font-weight: 400;
}

.vercel-course-title {
  font-size: 64px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 40px 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

/* Course Details */
.course-details {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin: 30px 0 40px 0;
  flex-wrap: wrap;
}

.course-grade,
.course-duration {
  text-align: center;
}

.grade-label,
.duration-label {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
  font-weight: 400;
}

.grade-value {
  font-size: 18px;
  color: #00ff88;
  font-weight: 600;
}

.duration-value {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Course Content Summary */
.course-content-summary {
  margin: 40px 0;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.course-content-summary h4 {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 500;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.content-item {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 400;
}

/* Vercel Signature Section */
.vercel-signature-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
}

.vercel-signature {
  text-align: left;
}

.signature-name {
  font-size: 18px;
  color: #ffffff;
  font-weight: 400;
  margin-bottom: 4px;
  font-family: cursive;
}

.signature-title {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

/* Vercel Certificate Badge */
.vercel-cert-badge {
  position: relative;
  text-align: center;
}

.badge-inner {
  position: relative;
  display: inline-block;
}

.badge-date {
  font-size: 14px;
  color: #ffffff;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 10px;
}

.badge-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  margin: 0 auto 15px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  background:
    radial-gradient(circle, transparent 46%, rgba(255,255,255,0.06) 47% 48%, transparent 49%),
    radial-gradient(circle, transparent 66%, rgba(255,255,255,0.06) 67% 68%, transparent 69%),
    conic-gradient(from 0deg, rgba(255,255,255,0.05) 0 10deg, transparent 10deg 20deg);
}

.badge-lines {
  position: absolute;
  width: 40px;
  height: 40px;
}

.badge-lines::before,
.badge-lines::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 1px;
}

.badge-lines::before {
  width: 2px;
  height: 20px;
  left: 50%;
  top: 5px;
  transform: translateX(-50%);
}

.badge-lines::after {
  width: 20px;
  height: 2px;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
}

.badge-text {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  white-space: nowrap;
  transform-origin: left center;
}

/* Microtext security line */
.certificate-document::after {
  content: none;
}

/* Vercel Decorative Pattern */
.vercel-pattern { display: none; }

.certificate-document:hover {
  transform: rotateX(0deg) rotateY(0deg) scale(1.02);
  box-shadow: 
    0 40px 80px rgba(0, 0, 0, 0.2),
    0 0 80px rgba(255, 215, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Wasserzeichen und Hintergrundmuster */
.cert-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  font-size: 120px;
  font-weight: 900;
  color: rgba(0, 123, 255, 0.03);
  letter-spacing: 20px;
  z-index: 1;
  pointer-events: none;
  font-family: serif;
}

.cert-pattern { display: none; }

.cert-seal {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, #ffd700 0%, #ffb700 70%, #cc9400 100%);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  z-index: 10;
}

.cert-seal::before {
  content: "★";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Luxuriöse Eckornamente */
.cert-border-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  pointer-events: none;
}

.corner-ornament {
  position: absolute;
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, #ffd700, #ffb700);
  border-radius: 50%;
}

.corner-ornament::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
}

.corner-ornament.top-left { top: 15px; left: 15px; }
.corner-ornament.top-right { top: 15px; right: 15px; }
.corner-ornament.bottom-left { bottom: 15px; left: 15px; }
.corner-ornament.bottom-right { bottom: 15px; right: 15px; }

/* Header-Styling */
.cert-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, #ffd700, #007bff, #ffd700) 1;
  position: relative;
  z-index: 10;
}

.cert-logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cert-logo {
  height: 80px;
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
  margin-bottom: 15px;
}

.cert-authenticity {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.authenticity-badge {
  background: linear-gradient(45deg, #28a745, #20c997);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.cert-number {
  font-size: 11px;
  color: #6c757d;
  font-family: monospace;
  background: rgba(0,0,0,0.05);
  padding: 2px 8px;
  border-radius: 4px;
}

.cert-title-section {
  text-align: center;
  position: relative;
}

.cert-title-section h3 {
  font-size: 36px;
  font-weight: 900;
  background: linear-gradient(45deg, #007bff, #0056b3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 10px 0;
  letter-spacing: 4px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  font-family: serif;
}

.cert-subtitle {
  font-size: 14px;
  color: #495057;
  margin: 0 0 15px 0;
  font-style: italic;
  font-weight: 500;
}

.cert-ribbon {
  background: linear-gradient(45deg, #ffd700, #ffb700);
  color: #333;
  padding: 6px 20px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

/* Ornamentale Linien */
.cert-ornamental-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffd700, #007bff, #ffd700, transparent);
  margin: 20px auto;
  width: 60%;
  position: relative;
}

.cert-ornamental-line::before,
.cert-ornamental-line::after {
  content: "❋";
  position: absolute;
  top: -8px;
  color: #007bff;
  font-size: 16px;
}

.cert-ornamental-line::before { left: -20px; }
.cert-ornamental-line::after { right: -20px; }

.cert-body {
  text-align: center;
  margin-bottom: 30px;
}

.cert-awarded {
  font-size: 16px;
  color: #6c757d;
  margin-bottom: 10px;
}

.cert-name {
  font-size: 38px;
  font-weight: 800;
  background: linear-gradient(45deg, #007bff, #0056b3, #004085);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 15px 0;
  text-decoration: underline;
  text-decoration-color: #ffd700;
  text-decoration-thickness: 3px;
  font-family: serif;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.grade {
  color: #28a745;
  background: linear-gradient(45deg, #28a745, #20c997);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

/* Achievements Section */
.cert-achievements {
  display: flex;
  justify-content: space-around;
  margin: 30px 0;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 123, 255, 0.05));
  border-radius: 15px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.achievement {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px;
}

.achievement-icon {
  font-size: 24px;
  margin-bottom: 8px;
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}

.achievement span:last-child {
  font-size: 12px;
  font-weight: 600;
  color: #495057;
}

.cert-completion {
  font-size: 16px;
  color: #6c757d;
  margin: 20px 0 10px 0;
}

.cert-course {
  font-size: 24px;
  font-weight: 600;
  color: #333333;
  margin: 10px 0 20px 0;
}

.cert-details {
  font-size: 16px;
  color: #6c757d;
  margin-bottom: 30px;
}

/* Premium Signatures */
.cert-signatures {
  display: flex;
  justify-content: space-around;
  margin: 50px 0;
  padding: 30px;
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.8), rgba(233, 236, 239, 0.5));
  border-radius: 20px;
  border: 2px solid rgba(255, 215, 0, 0.1);
  position: relative;
}

.signature {
  text-align: center;
  position: relative;
  padding: 20px;
}

.signature-flourish {
  width: 180px;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 50'%3E%3Cpath d='M10,25 Q50,5 100,25 T190,25' stroke='%23007bff' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  margin: 0 auto 10px;
}

.signature-line {
  font-size: 18px;
  font-weight: 700;
  color: #007bff;
  font-family: cursive;
  margin-bottom: 10px;
  padding: 5px 0;
  border-bottom: 2px solid #007bff;
  background: linear-gradient(45deg, #007bff, #0056b3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.signature p {
  font-size: 13px;
  color: #495057;
  margin: 8px 0 4px 0;
  line-height: 1.4;
  font-weight: 500;
}

.signature-title {
  font-size: 11px;
  color: #6c757d;
  font-style: italic;
  font-weight: 400;
}

.signature-stamp {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #28a745;
  color: white;
  padding: 4px 8px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  transform: rotate(15deg);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.signature-stamp.official {
  background: #dc3545;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Premium Security Section */
.cert-security {
  margin: 40px 0;
  padding: 0;
  background: none;
  border: none;
}

.security-section {
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  border: 2px solid #ffd700;
  border-radius: 15px;
  padding: 25px;
  position: relative;
  overflow: hidden;
}

.security-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 1px,
    rgba(255, 215, 0, 0.1) 1px,
    rgba(255, 215, 0, 0.1) 2px
  );
  z-index: 1;
}

.security-section h6 {
  color: #ffd700;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: 2px;
  position: relative;
  z-index: 2;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  position: relative;
  z-index: 2;
}

.security-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
}

.security-item strong {
  color: #ffd700;
  font-size: 11px;
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.security-item code {
  color: #00ff88;
  font-family: 'Courier New', monospace;
  font-size: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 6px;
  border-radius: 4px;
  border: 1px solid rgba(0, 255, 136, 0.2);
  display: block;
  margin: 5px 0;
  word-break: break-all;
}

.timestamp {
  color: #888;
  font-size: 9px;
  font-style: italic;
}

/* Enhanced QR Code */
.enhanced-qr {
  margin-top: 10px;
}

.qr-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  width: 30px;
  height: 30px;
  margin: 0 auto;
  padding: 4px;
  background: #fff;
  border-radius: 4px;
}

.qr-dot {
  background: #ddd;
  border-radius: 1px;
}

.qr-dot.active {
  background: #333;
}

/* Premium Footer */
.cert-footer {
  text-align: center;
  padding-top: 30px;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, transparent, #ffd700, #007bff, #ffd700, transparent) 1;
  position: relative;
  margin-top: 40px;
}

.cert-footer-ornament {
  width: 100px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Cpath d='M5,10 Q25,2 50,10 T95,10' stroke='%23ffd700' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  margin: 0 auto 20px;
}

.cert-validity {
  font-size: 13px;
  color: #495057;
  margin: 15px 0;
  font-weight: 500;
  line-height: 1.5;
}

.cert-issuer {
  margin: 20px 0;
  padding: 15px;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.05), rgba(255, 215, 0, 0.05));
  border-radius: 10px;
  border: 1px solid rgba(0, 123, 255, 0.1);
}

.cert-issuer strong {
  color: #007bff;
  font-size: 16px;
  font-weight: 800;
}

.issuer-credentials {
  font-size: 10px;
  color: #6c757d;
  font-style: italic;
  margin-top: 5px;
  display: block;
}

.cert-hologram {
  position: absolute;
  bottom: 10px;
  right: 20px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffc93c);
  background-size: 400% 400%;
  animation: hologram 3s ease-in-out infinite;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.6;
}

@keyframes hologram {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.cert-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.cert-feature {
  background: #0a0a0a;
  border: 1px solid #333333;
  border-radius: 6px;
  padding: 20px;
  text-align: left;
}

.cert-feature h5 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.cert-feature h5 i {
  margin-right: 8px;
}

.cert-feature p {
  color: #888888;
  font-size: 14px;
  margin: 0;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
  .header h1 {
    font-size: 32px;
  }
  
  .header p {
    font-size: 16px;
  }
  
  .course-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-grid {
    flex-direction: column;
    align-items: center;
  }
  
  .course-actions {
    flex-direction: column;
  }
  
  .cert-features {
    grid-template-columns: 1fr;
  }
  
  .certificate-document {
    padding: 20px;
    transform: none;
  }
  
  .cert-header {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .cert-signatures {
    flex-direction: column;
    gap: 30px;
    padding: 20px;
  }
  
  .cert-achievements {
    flex-direction: column;
    gap: 15px;
  }
  
  .security-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .cert-watermark {
    font-size: 60px;
    letter-spacing: 10px;
  }
  
  .corner-ornament {
    width: 25px;
    height: 25px;
  }
  
  .cert-seal {
    width: 60px;
    height: 60px;
    top: 10px;
    right: 10px;
  }
  
  .cert-title-section h3 {
    font-size: 24px;
    letter-spacing: 2px;
  }
  
  .cert-name {
    font-size: 28px;
  }
  
  /* Vercel Certificate Responsive */
  .vercel-certificate {
    padding: 15px;
    transform: none;
  }
  
  .cert-frame {
    padding: 30px 20px;
  }
  
  .vercel-cert-title {
    font-size: 32px;
    margin-bottom: 30px;
  }
  
  .vercel-course-title {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 30px;
  }
  
  .course-details {
    flex-direction: column;
    gap: 20px;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .vercel-signature-section {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  
  .vercel-cert-badge {
    order: -1;
  }
  
  .badge-text {
    position: static;
    transform: none;
    margin-top: 10px;
  }
  
  .vercel-pattern {
    display: none;
  }
}

.course-offcanvas {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 2147483647; /* ensure above navbar and all site overlays */
  display: none;
}

.course-offcanvas.active {
  display: block;
}

.offcanvas-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  z-index: 0;
}

.offcanvas-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 720px;
  height: 100%;
  background: #000000; /* Match main page */
  border-left: 1px solid #333333; /* Vercel border */
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
  z-index: 1; /* above backdrop */
  box-shadow: -10px 0 30px rgba(0,0,0,0.4);
}

.offcanvas-content::-webkit-scrollbar {
  width: 6px;
}

.offcanvas-content::-webkit-scrollbar-track {
  background: transparent;
}

.offcanvas-content::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

.offcanvas-header {
  position: sticky;
  top: 0;
  padding: 20px;
  background: #000000;
  border-bottom: 1px solid #333333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}

.offcanvas-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
}

.close-btn {
  background: #111111;
  border: 1px solid #333333;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  color: #ffffff;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  stroke-width: 1.5;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: #0a0a0a;
  border-color: #666666;
}

.close-btn:hover svg {
  transform: rotate(90deg);
}

.close-btn:hover {
 
  transform: scale(1.05);
}

.offcanvas-body {
  padding: 0 30px 30px;
}

/* Modules Table */
.modules {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.modules thead th {
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modules tbody td {
  vertical-align: top;
  padding: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modules tbody tr:last-child td {
  border-bottom: none;
}

.modules .muted {
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.modules ul {
  margin: 0;
  padding-left: 18px;
}

.modules ul li {
  margin: 4px 0;
}

@media (max-width: 640px) {
  .modules thead { display: none; }
  .modules, .modules tbody, .modules tr, .modules td { display: block; width: 100%; }
  .modules tr { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .modules td { padding: 10px 14px; }
  .modules td::before { display: block; font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 6px; }
  .modules td[data-label]::before { content: attr(data-label); }
}

.course-detail-section {
  margin-bottom: 40px;
}

/* Module cards */
.module-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.module-card {
  background: #111111;
  border: 1px solid #333333;
  border-radius: 8px;
  padding: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.module-card:hover {
  transform: translateY(-2px);
  border-color: #666666;
}

.module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.module-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #fff;
}

.module-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #1a1a1a;
  border: 1px solid #333333;
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
}

.module-card:hover .module-badge {
  border-color: #666666;
}

.module-title-text {
  font-size: 14px;
  letter-spacing: 0.2px;
  color: #ffffff;
}

.module-meta { display: flex; gap: 6px; flex-wrap: wrap; }

.module-chip {
  padding: 6px 10px;
  border-radius: 6px;
  background: #1a1a1a;
  border: 1px solid #333333;
  font-size: 12px;
  color: #888888;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.module-card:hover .module-chip {
  border-color: #666666;
  color: #ffffff;
}

.module-divider {
  height: 1px;
  background: #333333;
  margin: 8px 0 12px;
}

.module-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.module-subtitle {
  font-size: 12px;
  letter-spacing: 0.5px;
  color: #888888;
  margin-bottom: 8px;
  text-transform: none;
  font-weight: 500;
  position: relative;
  padding-left: 10px;
}

.module-subtitle::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 12px;
  background: #333333;
  border-radius: 1px;
}

.module-col ul li::marker { color: #ffffff; }

.module-col ul li {
  line-height: 1.6;
  color: #888888;
  margin: 6px 0;
  padding-left: 8px;
  position: relative;
  transition: color 0.2s ease;
}

.module-col ul li:hover {
  color: #ffffff;
}

.module-col ul li::before {
  content: '•';
  position: absolute;
  left: -12px;
  color: #666666;
}

.module-col ul li:hover::before {
  color: rgba(255,255,255,0.8);
  transform: scale(1.2);
}

.module-col ul {
  margin: 0;
  padding-left: 18px;
}

.module-col li { margin: 4px 0; }

@media (max-width: 640px) {
  .module-content { grid-template-columns: 1fr; }
}

.course-detail-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
  position: relative;
  padding-left: 12px;
  letter-spacing: 0.2px;
}

.course-detail-section h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 16px;
  background: #ffffff;
  border-radius: 1px;
}

.course-detail-section p {
  font-size: 14px;
  line-height: 1.6;
  color: #888888;
  margin-bottom: 16px;
}

.course-meta-detailed {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 24px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0a0a0a;
  border: 1px solid #333333;
  padding: 8px 12px;
  border-radius: 999px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.meta-chip .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #888888;
}

.meta-chip .value {
  font-size: 12px;
  color: #ffffff;
  font-weight: 600;
}

.meta-chip:hover {
  border-color: #666666;
}

.objectives-list, .schedule-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.objectives-list li, .schedule-list li {
  padding: 14px 0;
  border-bottom: 1px solid #333333;
  font-size: 14px;
  line-height: 1.6;
  color: #ffffff;
  position: relative;
  padding-left: 28px;
  transition: color 0.2s ease;
}

.objectives-list li:hover, .schedule-list li:hover {
  color: #ffffff;
}

.objectives-list li::before {
  content: "✓";
  position: absolute;
  left: 6px;
  top: 14px;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
}

.schedule-list li::before {
  content: "●";
  position: absolute;
  left: 10px;
  top: 16px;
  color: #cccccc;
  font-size: 10px;
}

/* keep selector for potential icon tweak on hover; no extra styles to match minimal design */

.course-detail-actions {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #333333;
}

.btn-primary-offcanvas {
  width: 100%;
  padding: 12px 16px;
  background: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #000000;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary-offcanvas::before {
  content: none;
  display: none;
}

.btn-primary-offcanvas > * {
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.btn-primary-offcanvas::after {
  content: "→";
  font-family: system-ui;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.btn-primary-offcanvas:hover {
  background: #f0f0f0;
}

.btn-primary-offcanvas:hover::before {
  transform: translateX(0);
}

.btn-primary-offcanvas:hover > * {
  color: #000000;
}

.btn-primary-offcanvas:hover::after {
  transform: translateX(3px);
  color: inherit;
}
.btn-primary-offcanvas:hover {
  background: #007bff;
}

.btn-primary-offcanvas:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

/* Tertiary Button Styles */
.btn-tertiary {
  background: transparent;
  color: #888888;
  border: 1px solid #333333;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-tertiary::after {
  content: "→";
  font-family: system-ui;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.btn-tertiary:hover {
  border-color: #666666;
  color: #ffffff;
}

.btn-tertiary:hover::after {
  transform: translateX(3px);
}

/* Course Actions Update */
.course-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.course-actions .btn-primary,
.course-actions .btn-tertiary {
  flex: 1;
}

.btn-primary {
  background: #007bff;
  color: #ffffff;
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: none;
  display: none;
}

.btn-primary > * {
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover::before {
  transform: translateX(0);
}

.btn-primary:hover > * {
  color: #ffffff;
}
.btn-primary:hover {
  background: #007bff;
}
@media (max-width: 560px) {
  .course-actions { flex-direction: column; }
}

/* Responsive Off-Canvas */
@media (max-width: 768px) {
  .offcanvas-content {
    max-width: 100%;
  }

  .offcanvas-header, .offcanvas-body {
    padding: 20px;
  }

  .course-meta-detailed {
    grid-template-columns: 1fr;
  }

  .course-detail-section h3 {
    font-size: 16px;
  }
}