/* --- Kelyon LMS - DESIGN SYSTEM (UX/UI Premium) --- */

:root {
  --lms-font: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Palette HSL harmonieuse */
  --color-bg: 220 15% 10%;           /* Slate foncé */
  --color-card-bg: 220 12% 16%;      /* Slate carte */
  --color-primary: 245 80% 60%;      /* Bleu royal vibrant */
  --color-primary-hover: 245 80% 68%;
  --color-success: 145 65% 45%;      /* Émeraude */
  --color-warning: 35 90% 55%;       /* Ambre */
  --color-error: 0 75% 55%;          /* Corail */
  --color-text: 210 20% 95%;         /* Blanc cassé */
  --color-text-muted: 215 15% 70%;   /* Gris doux */
  --color-border: 220 10% 25%;       /* Bordure carte */
  
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kelyon-lms-container {
  font-family: var(--lms-font);
  color: hsl(var(--color-text));
  line-height: 1.6;
}

/* Glassmorphism Cards */
.kelyon-lms-card.glass {
  background: rgba(30, 41, 59, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-normal);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.kelyon-lms-card.glass:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
}

/* Layouts */
.kelyon-lms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.kelyon-lms-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Typography */
.kelyon-lms-container h1, 
.kelyon-lms-container h2, 
.kelyon-lms-container h3, 
.kelyon-lms-container h4 {
  font-weight: 700;
  color: #fff;
  margin-top: 0;
}

.kelyon-lms-section-title {
  font-size: 1.8rem;
  border-bottom: 2px solid hsl(var(--color-primary));
  padding-bottom: 8px;
  margin-bottom: 24px;
}

/* Buttons */
.kelyon-lms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--lms-font);
  font-weight: 600;
  text-decoration: none;
  background-color: hsl(var(--color-primary));
  color: #fff !important;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.kelyon-lms-btn:hover {
  background-color: hsl(var(--color-primary-hover));
  transform: scale(1.02);
}

.kelyon-lms-btn.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

.kelyon-lms-btn.btn-secondary {
  background-color: transparent;
  border: 1px solid hsl(var(--color-border));
  color: hsl(var(--color-text-muted)) !important;
}

.kelyon-lms-btn.btn-secondary:hover {
  border-color: #fff;
  color: #fff !important;
}

/* Badge status */
.status.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.status.badge.completed {
  background-color: rgba(16, 185, 129, 0.15);
  color: hsl(var(--color-success));
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status.badge.in-progress {
  background-color: rgba(245, 158, 11, 0.15);
  color: hsl(var(--color-warning));
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Table styles */
.kelyon-lms-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}

.kelyon-lms-table th, 
.kelyon-lms-table td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid hsl(var(--color-border));
}

.kelyon-lms-table th {
  background-color: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  color: #fff;
}

/* Forms (Login/Register) */
.kelyon-lms-form-group {
  margin-bottom: 20px;
}

.kelyon-lms-form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
}

.kelyon-lms-form-control {
  width: 100%;
  box-sizing: border-box;
  background-color: rgba(15, 23, 42, 0.6);
  border: 1px solid hsl(var(--color-border));
  color: #fff;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.kelyon-lms-form-control:focus {
  outline: none;
  border-color: hsl(var(--color-primary));
}

/* Sidebar Mode (Ergonomie) */
.kelyon-lms-workspace {
  display: flex;
  min-height: 80vh;
  gap: 30px;
}

.kelyon-lms-sidebar {
  flex: 0 0 300px;
  background-color: rgba(15, 23, 42, 0.4);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.kelyon-lms-content-area {
  flex: 1;
}

/* Progress bar */
.kelyon-lms-progress-bar {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
  margin: 10px 0;
}

.kelyon-lms-progress-fill {
  background-color: hsl(var(--color-success));
  height: 100%;
  width: 0;
  border-radius: 10px;
  transition: width var(--transition-normal);
}

/* --- single-course frontend layouts --- */
.kelyon-course-single-wrapper {
  background-color: #fafbfd;
  color: #1e293b;
  font-family: 'Outfit', sans-serif;
  padding: 40px 0;
}

.kelyon-course-single-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
}

@media (max-width: 991px) {
  .kelyon-course-single-container {
    grid-template-columns: 1fr;
  }
}

/* Left Column content */
.kelyon-course-single-left {
  display: flex;
  flex-direction: column;
}

.course-header-meta {
  margin-bottom: 25px;
}

.course-main-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 15px;
}

.course-sub-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.9rem;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 15px;
}

.course-sub-meta-bar .meta-left {
  display: flex;
  gap: 6px;
}

.course-sub-meta-bar .meta-left .meta-value {
  font-weight: 600;
  color: #334155;
}

.course-sub-meta-bar .meta-right {
  display: flex;
  gap: 20px;
}

.meta-action-link {
  color: #64748b;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  transition: color 0.2s;
}

.meta-action-link:hover {
  color: #3b82f6;
}

.meta-icon {
  width: 16px;
  height: 16px;
}

/* Featured Image */
.course-featured-image-box {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background-color: #f1f5f9;
  aspect-ratio: 16/9;
  margin-bottom: 30px;
}

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

.course-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tabs */
.course-page-tabs-bar {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 30px;
  gap: 25px;
}

.course-tab-btn {
  background: none;
  border: none;
  padding: 12px 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.course-tab-btn:hover {
  color: #3b82f6;
}

.course-tab-btn.active {
  color: #3b82f6;
}

.course-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #3b82f6;
}

.course-tab-pane {
  display: none;
}

.course-tab-pane.active {
  display: block;
}

/* Curriculum/Programme styling */
.course-curriculum-section {
  margin-top: 40px;
  border-top: 1px solid #e2e8f0;
  padding-top: 30px;
}

.curriculum-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 20px;
}

.curriculum-group {
  margin-bottom: 25px;
}

.curriculum-group-title {
  font-size: 1rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.curriculum-items-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background-color: #ffffff;
  overflow: hidden;
}

.curriculum-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.2s;
}

.curriculum-item:last-child {
  border-bottom: none;
}

.curriculum-item:hover {
  background-color: #f8fafc;
}

.item-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.item-status-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.curriculum-item.completed .item-status-icon {
  background-color: #ecfdf5;
}

.curriculum-item.locked .item-status-icon {
  background-color: #fff1f2;
}

.item-status-icon svg {
  width: 14px;
  height: 14px;
  color: #64748b;
}

.curriculum-item.completed .item-status-icon svg {
  color: #10b981;
}

.curriculum-item.locked .item-status-icon svg {
  color: #f43f5e;
}

.item-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
}

.item-title a {
  color: #3b82f6;
  text-decoration: none;
}

.item-title a:hover {
  text-decoration: underline;
}

.item-meta-info {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 600;
}

/* Q&A Section styling */
.qa-item-box {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
}

.qa-author-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.qa-avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.qa-author-info {
  display: flex;
  flex-direction: column;
}

.qa-author-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
}

.qa-date {
  font-size: 0.75rem;
  color: #94a3b8;
}

.qa-question-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 8px;
}

.qa-question-body {
  font-size: 0.95rem;
  color: #475569;
}

.qa-question-body p {
  margin: 0;
}

.qa-form-group {
  margin-bottom: 15px;
}

.qa-form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
}

.qa-form-group input, 
.qa-form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: #ffffff;
}

.qa-form-group input:focus, 
.qa-form-group textarea:focus {
  border-color: #3b82f6;
  outline: none;
}

/* Right Sidebar styling */
.course-sidebar-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  margin-bottom: 25px;
}

.sidebar-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 15px;
}

.sidebar-progress-fraction-bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 8px;
}

.sidebar-progress-bar-container {
  width: 100%;
  height: 6px;
  border-radius: 10px;
  background-color: #f1f5f9;
  overflow: hidden;
  margin-bottom: 20px;
}

.sidebar-progress-fill {
  height: 100%;
  background-color: #10b981;
  border-radius: 10px;
}

.sidebar-actions-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-block {
  width: 100%;
  box-sizing: border-box;
}

.btn-primary-full {
  background-color: #3b82f6 !important;
  color: #ffffff !important;
  border-radius: 6px;
}

.btn-primary-full:hover {
  background-color: #2563eb !important;
}

.btn-secondary-border {
  background-color: transparent !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
  border-radius: 6px;
}

.btn-secondary-border:hover {
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

.completed-active {
  background-color: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  color: #047857 !important;
  font-weight: 700;
}

/* Green Enrollment notice */
.sidebar-enrolled-notice-green {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 15px;
  color: #065f46;
  font-size: 0.85rem;
}

.green-check-icon {
  width: 16px;
  height: 16px;
  color: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Meta list details */
.sidebar-meta-details-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
  border-top: 1px solid #f1f5f9;
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meta-detail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #475569;
}

.detail-icon {
  width: 16px;
  height: 16px;
  color: #94a3b8;
}

.detail-text {
  font-weight: 600;
}

.sidebar-price-display {
  text-align: center;
  padding: 8px 0;
}

.sidebar-price-display .price-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
}

/* Author Box */
.author-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 12px;
}

.sidebar-author-profile-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-author-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.sidebar-author-info {
  display: flex;
  flex-direction: column;
}

.sidebar-author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
}

.sidebar-author-role {
  font-size: 0.75rem;
  color: #64748b;
}

/* --- Ultimate Member Style Overrides for Auth Forms --- */
.kelyon-um-auth {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 40px 20px !important;
  background-color: #fafbfd !important;
  min-height: 70vh !important;
}

.kelyon-um-auth .kelyon-lms-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
  padding: 30px 40px !important;
  width: 100% !important;
  max-width: 450px !important;
  box-sizing: border-box !important;
  transform: none !important;
}

.kelyon-um-auth .kelyon-lms-card:hover {
  transform: none !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
  border-color: #e2e8f0 !important;
}

.kelyon-um-auth h2 {
  display: none !important;
}

.kelyon-um-auth .kelyon-lms-form-group {
  margin-bottom: 18px !important;
}

.kelyon-um-auth .kelyon-lms-form-group label {
  color: #475569 !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  margin-bottom: 6px !important;
}

.kelyon-um-auth .kelyon-lms-form-control {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  border-radius: 4px !important;
  padding: 10px 14px !important;
  font-size: 0.95rem !important;
  height: 42px !important;
  transition: all 0.2s ease-in-out !important;
  box-shadow: none !important;
}

.kelyon-um-auth .kelyon-lms-form-control::placeholder {
  color: #94a3b8 !important;
  opacity: 0.8 !important;
}

.kelyon-um-auth .kelyon-lms-form-control:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* Checkbox alignment */
.kelyon-um-auth .kelyon-lms-form-group label input[type="checkbox"] {
  margin-right: 8px !important;
  vertical-align: middle !important;
}

.kelyon-um-auth .kelyon-lms-form-group label span {
  font-size: 0.85rem !important;
  color: #475569 !important;
  font-weight: 500 !important;
  vertical-align: middle !important;
}

.kelyon-um-auth .kelyon-lms-form-group label span a {
  color: #3b82f6 !important;
  text-decoration: none !important;
}

.kelyon-um-auth .kelyon-lms-form-group label span a:hover {
  text-decoration: underline !important;
}

/* Action buttons side-by-side for Login */
.kelyon-um-auth-buttons {
  display: flex !important;
  gap: 12px !important;
  margin-top: 24px !important;
  margin-bottom: 16px !important;
}

.kelyon-um-auth-btn-primary {
  flex: 1 !important;
  background-color: #3b82f6 !important;
  color: #ffffff !important;
  border: 1px solid #3b82f6 !important;
  border-radius: 4px !important;
  padding: 10px 16px !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  text-align: center !important;
  display: inline-block !important;
  height: auto !important;
  line-height: normal !important;
  box-shadow: none !important;
}

.kelyon-um-auth-btn-primary:hover,
.kelyon-um-auth-btn-primary:focus {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
}

.kelyon-um-auth-btn-secondary {
  flex: 1 !important;
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 4px !important;
  padding: 10px 16px !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  text-align: center !important;
  display: inline-block !important;
  text-decoration: none !important;
  height: auto !important;
  line-height: normal !important;
  box-shadow: none !important;
}

.kelyon-um-auth-btn-secondary:hover,
.kelyon-um-auth-btn-secondary:focus {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

/* Link below buttons */
.kelyon-um-auth-footer-links {
  text-align: center !important;
  font-size: 0.85rem !important;
  margin-top: 15px !important;
}

.kelyon-um-auth-footer-links a {
  color: #64748b !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

.kelyon-um-auth-footer-links a:hover {
  color: #3b82f6 !important;
  text-decoration: underline !important;
}

/* Error Alert Box */
.kelyon-um-auth .kelyon-lms-alert {
  padding: 10px 14px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  margin-bottom: 18px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.kelyon-um-auth .kelyon-lms-alert.error {
  background-color: #fef2f2 !important;
  border: 1px solid #fee2e2 !important;
  color: #ef4444 !important;
}

.kelyon-um-auth .kelyon-lms-alert.success {
  background-color: #ecfdf5 !important;
  border: 1px solid #d1fae5 !important;
  color: #10b981 !important;
}

/* Active states for Wishlist and Share buttons */
.wishlist-btn.in-wishlist {
  color: #3b82f6 !important;
}

.share-btn.shared {
  color: #10b981 !important;
}

/* Student Dropdown Menu in top right of course header */
.kelyon-student-top-menu {
  margin-bottom: 0 !important;
  display: flex !important;
  justify-content: flex-end !important;
}

.kelyon-student-dropdown-wrapper {
  position: relative !important;
  display: inline-block !important;
}

.kelyon-student-dropdown-toggle {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: #334155 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
  height: auto !important;
  width: auto !important;
  line-height: 1.2 !important;
}

.kelyon-student-dropdown-toggle:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #5b21b6 !important;
}

.kelyon-student-dropdown-toggle .menu-avatar {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 1.5px solid #e2e8f0 !important;
}

.kelyon-student-dropdown-toggle .dropdown-caret {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  color: #64748b !important;
  transition: transform 0.2s ease !important;
}

.kelyon-student-dropdown-wrapper:hover .kelyon-student-dropdown-toggle .dropdown-caret {
  transform: rotate(180deg) !important;
}

.kelyon-student-dropdown-list {
  display: none;
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  left: auto !important;
  z-index: 1000 !important;
  min-width: 180px !important;
  padding: 8px 0 !important;
  margin-top: 6px !important;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1) !important;
  animation: kelyonFadeIn 0.2s ease !important;
  flex-direction: column !important;
}

.kelyon-student-dropdown-wrapper:hover .kelyon-student-dropdown-list {
  display: flex !important;
}

@media (max-width: 767px) {
  .kelyon-course-title-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .kelyon-student-top-menu {
    justify-content: flex-start !important;
    width: 100% !important;
  }
}

.kelyon-student-menu-link {
  display: block !important;
  padding: 10px 16px !important;
  clear: both !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  color: #475569 !important;
  text-align: left !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  background-color: transparent !important;
  border: 0 !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.kelyon-student-menu-link:hover {
  background-color: #f8fafc !important;
  color: #5b21b6 !important;
}

.kelyon-student-menu-link .dropdown-icon {
  width: 16px !important;
  height: 16px !important;
  color: #64748b !important;
  transition: color 0.2s ease !important;
}

.kelyon-student-menu-link:hover .dropdown-icon {
  color: #5b21b6 !important;
}

.kelyon-student-menu-divider {
  height: 0 !important;
  margin: 6px 0 !important;
  overflow: hidden !important;
  border-top: 1px solid #f1f5f9 !important;
}

.kelyon-student-menu-link.logout {
  color: #ef4444 !important;
}

.kelyon-student-menu-link.logout:hover {
  background-color: #fef2f2 !important;
  color: #ef4444 !important;
}

.kelyon-student-menu-link.logout:hover .dropdown-icon {
  color: #ef4444 !important;
}

/* Custom Profile Avatar Upload Styles */
.kelyon-avatar-upload-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f8fafc;
  padding: 16px;
  border-radius: 12px;
  border: 1.5px dashed #cbd5e1;
  margin-top: 6px;
  max-width: 500px;
}

.kelyon-upload-avatar-preview {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.kelyon-upload-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kelyon-file-input {
  font-family: inherit;
  font-size: 0.9rem;
  color: #475569;
}

/* Full Course Description Formatting */
.course-desc-full p {
  color: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  margin: 0 0 10px 0 !important;
  text-align: inherit !important;
}
.course-desc-full p:last-child {
  margin-bottom: 0 !important;
}

/* --- Direct Purchase & Spinner Styles --- */
@keyframes kelyon-btn-spin {
  to { transform: rotate(360deg); }
}

.kelyon-btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: kelyon-btn-spin 0.6s linear infinite;
  vertical-align: middle;
}

.kelyon-buy-btn {
  position: relative;
  overflow: hidden;
}

.kelyon-buy-btn:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

.kelyon-card-notice {
  font-family: var(--lms-font);
  font-size: 0.85rem !important;
  margin-bottom: 15px !important;
  padding: 10px 14px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  display: none;
}

.kelyon-card-notice.success {
  background-color: rgba(16, 185, 129, 0.1) !important;
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.2) !important;
}

.kelyon-card-notice.error {
  background-color: rgba(239, 68, 68, 0.1) !important;
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.2) !important;
}

/* Coupon Wrap styles */
.kelyon-promo-code-wrap {
  margin-bottom: 15px;
  text-align: left;
}

.kelyon-promo-code-wrap label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  display: block;
  margin-bottom: 5px;
}

.kelyon-promo-input {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  box-sizing: border-box;
  font-family: inherit;
  background-color: #ffffff;
  color: #1e293b;
  transition: border-color var(--transition-fast);
}

.kelyon-promo-input:focus {
  border-color: #3b82f6;
  outline: none;
}

/* Curriculum items locking styles */
.curriculum-item.locked .item-title {
  color: #94a3b8 !important;
}
.curriculum-item.locked .item-meta-info {
  color: #cbd5e1 !important;
}
.curriculum-item.locked .item-title a {
  pointer-events: none !important;
  cursor: default !important;
  color: #94a3b8 !important;
  text-decoration: none !important;
}

/* --- Brand Identity Styles --- */
.kelyon-course-card-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}
.kelyon-course-card-brand-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 4px;
}
.kelyon-course-card-brand-icon {
  font-size: 16px;
  width: 16px;
  height: 16px;
  color: #3b82f6 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.kelyon-course-card-brand-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--lms-font);
}

.kelyon-course-single-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
.kelyon-course-single-brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}
.kelyon-course-single-brand-icon {
  font-size: 20px;
  width: 20px;
  height: 20px;
  color: #3b82f6 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.kelyon-course-single-brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--lms-font);
}
