/* NC.EL.12 wave 3 — My Training page (auto.namecentury.com /my-training/ layout) */
.nctlms-my-training-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}
.nctlms-my-training-page > h1.nctlms-page-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin: 1.5rem 0 1.25rem;
  letter-spacing: -0.03em;
}
.nctlms-preview-hero {
  text-align: center;
  margin-bottom: 2rem;
}
.nctlms-badge-free {
  display: inline-block;
  background: #fce8e8;
  color: #cc0000;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.nctlms-preview-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin: 0 0 0.5rem;
  font-weight: 700;
}
.nctlms-preview-sub {
  color: #555;
  margin: 0;
  font-size: 0.98rem;
}
.nctlms-catalog {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.nctlms-course-track {
  background: linear-gradient(180deg, #1c1c1c 0%, #121212 100%);
  border-radius: 12px;
  border-top: 3px solid #cc0000;
  padding: 1.25rem 1.35rem 1.5rem;
  color: #f5f5f5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.nctlms-track-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}
.nctlms-track-icon {
  font-size: 1.75rem;
  line-height: 1;
}
.nctlms-track-meta {
  flex: 1 1 200px;
}
.nctlms-track-meta h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 700;
}
.nctlms-track-meta p {
  margin: 0;
  color: #b0b0b0;
  font-size: 0.88rem;
}
.nctlms-track-link {
  color: #ff6b6b !important;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
}
.nctlms-track-link:hover {
  text-decoration: underline !important;
}
.nctlms-track-enroll {
  display: inline-block;
  background: #cc0000;
  color: #fff !important;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none !important;
  white-space: nowrap;
}
.nctlms-track-enroll:hover {
  background: #a80000;
  color: #fff !important;
}
.nctlms-track-enrolled {
  color: #6ee7a0;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}
.nctlms-lesson-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.nctlms-lesson-card {
  background: #252525;
  border-radius: 10px;
  padding: 0.75rem;
  border: 1px solid #333;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.nctlms-lesson-card-free {
  border-color: #3d7a46;
}
.nctlms-lesson-thumb {
  height: 88px;
  border-radius: 6px;
  background: linear-gradient(135deg, #3a3a3a, #1a1a1a);
  margin-bottom: 0.25rem;
}
.nctlms-lesson-badge {
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-block;
}
.nctlms-lesson-badge-free {
  color: #6ee7a0;
}
.nctlms-lesson-badge-lock {
  color: #fbbf24;
  font-size: 0.65rem;
}
.nctlms-lesson-duration {
  margin: 0;
  font-size: 0.8rem;
  color: #aaa;
}
.nctlms-lesson-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  flex: 1;
}
.nctlms-lesson-cta {
  color: #7dd3fc !important;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none !important;
}
.nctlms-lesson-cta-muted {
  color: #d4a574;
  font-size: 0.78rem;
}
.nctlms-lesson-ase {
  font-size: 0.68rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nctlms-track-empty,
.nctlms-empty {
  color: #ccc;
  font-size: 0.95rem;
}

/* MOTORS shell wave 3 */
.nc-el-motors-topbar {
  background: #111;
  color: #e5e5e5;
  font-size: 0.82rem;
}
.nc-el-motors-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.45rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}
.nc-el-motors-topbar a {
  color: #fff !important;
  text-decoration: none;
  margin-left: 0.75rem;
}
.nc-el-motors-site-header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.nc-el-motors-site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nc-el-motors-brand {
  font-size: 1.35rem;
  font-weight: 900;
  color: #111 !important;
  text-decoration: none !important;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.nc-el-motors-brand-img {
  display: block;
  max-height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
.nc-el-motors-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  align-items: center;
}
.nc-el-motors-menu a {
  color: #333 !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
}
.nc-el-motors-menu a:hover {
  color: #cc0000 !important;
}
.nc-el-motors-cta {
  background: #8b0000 !important;
  color: #fff !important;
  padding: 0.55rem 1rem;
  border-radius: 4px;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
}
.nc-el-motors-footer {
  background: #111;
  color: #aaa;
  margin-top: 3rem;
  padding: 2rem 1.25rem;
  font-size: 0.85rem;
  text-align: center;
}
.nc-el-motors-chat-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #cc0000;
  color: #fff;
  border: 0;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(204, 0, 0, 0.45);
  z-index: 100;
}

.nctlms-learner-welcome {
  background: #e8f4ea; color: #1e6b2e; padding: 0.65rem 1rem; border-radius: 8px;
  margin: 0 0 1.25rem; font-size: 0.92rem; font-weight: 600;
}

/* Wave 5 — services menu, DEAC trust, NC Support AI chat */
.nc-el-motors-menu-drop { position: relative; display: inline-block; }
.nc-el-motors-menu-drop-btn {
  border: 0; background: transparent; color: #333; font-weight: 500; font-size: 0.92rem; cursor: pointer; padding: 0;
}
.nc-el-motors-menu-drop-btn:hover { color: #cc0000; }
.nc-el-motors-menu-drop-panel {
  display: none; position: absolute; top: 100%; left: 0; min-width: 180px; background: #fff;
  border: 1px solid #e5e5e5; border-radius: 6px; box-shadow: 0 8px 20px rgba(0,0,0,0.12); padding: 0.5rem 0; z-index: 50;
}
.nc-el-motors-menu-drop.is-open .nc-el-motors-menu-drop-panel { display: block; }
.nc-el-motors-menu-drop-panel a {
  display: block; padding: 0.45rem 1rem; color: #333 !important; text-decoration: none; font-size: 0.88rem;
}
.nc-el-motors-menu-drop-panel a:hover { background: #f8f8f8; color: #cc0000 !important; }

.nctlms-deac-trust {
  margin-top: 3rem; padding: 2.5rem 1.25rem; background: linear-gradient(180deg, #f4f6f8 0%, #fff 100%);
  border-top: 1px solid #e8e8e8;
}
.nctlms-deac-inner {
  max-width: 1100px; margin: 0 auto; display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.nctlms-deac-badge { text-align: center; }
.nctlms-deac-logo {
  display: inline-block; font-weight: 900; font-size: 1.5rem; color: #1a3a5c;
  border: 3px solid #1a3a5c; padding: 0.35rem 0.75rem; border-radius: 4px; margin-bottom: 0.5rem;
}
.nctlms-deac-badge p { font-size: 0.85rem; color: #555; margin: 0; }
.nctlms-testimonial {
  margin: 0; padding: 1rem 1.25rem; background: #fff; border-left: 4px solid #cc0000;
  border-radius: 0 8px 8px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.nctlms-testimonial p { margin: 0 0 0.5rem; font-style: italic; color: #333; font-size: 0.92rem; }
.nctlms-testimonial footer { font-size: 0.8rem; color: #777; }

body.nc-el-chat-open { overflow: hidden; }
.nc-el-support-chat { position: relative; z-index: 110; }
.nc-el-chat-panel {
  position: fixed; right: 1.25rem; bottom: 5.5rem; width: min(360px, calc(100vw - 2rem));
  max-height: min(480px, 70vh); background: #fff; border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2); display: flex; flex-direction: column; overflow: hidden;
}
.nc-el-chat-panel[hidden] { display: none !important; }
.nc-el-chat-header {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem;
  background: #1a3a5c; color: #fff; font-size: 0.9rem;
}
.nc-el-chat-header strong { flex: 1; }
.nc-el-chat-timer { font-variant-numeric: tabular-nums; font-size: 0.8rem; opacity: 0.9; }
.nc-el-chat-close { border: 0; background: transparent; color: #fff; font-size: 1.1rem; cursor: pointer; }
.nc-el-chat-messages {
  flex: 1; overflow-y: auto; padding: 0.75rem 1rem; display: flex; flex-direction: column; gap: 0.5rem;
  font-size: 0.88rem; line-height: 1.45;
}
.nc-el-chat-bot { margin: 0; padding: 0.5rem 0.65rem; background: #f0f4f8; border-radius: 8px; color: #333; }
.nc-el-chat-user { margin: 0; padding: 0.5rem 0.65rem; background: #e8f0fe; border-radius: 8px; color: #1a3a5c; align-self: flex-end; max-width: 90%; }
.nc-el-chat-form {
  display: flex; gap: 0.35rem; padding: 0.65rem; border-top: 1px solid #eee; background: #fafafa;
}
.nc-el-chat-form input {
  flex: 1; border: 1px solid #ddd; border-radius: 6px; padding: 0.45rem 0.6rem; font-size: 0.88rem;
}
.nc-el-chat-form button {
  border: 0; background: #cc0000; color: #fff; border-radius: 6px; padding: 0.45rem 0.85rem;
  font-weight: 600; cursor: pointer; font-size: 0.85rem;
}
.nc-el-chat-form button:disabled { opacity: 0.5; cursor: not-allowed; }

/* Wave 4 — preview modal + student portal */
body.nctlms-modal-open { overflow: hidden; }
.nctlms-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.nctlms-modal[hidden] { display: none !important; }
.nctlms-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.nctlms-modal-panel {
  position: relative; background: #fff; border-radius: 12px; max-width: 640px; width: calc(100% - 2rem);
  padding: 1.25rem 1.5rem 1.5rem; box-shadow: 0 20px 50px rgba(0,0,0,0.25); z-index: 1;
}
.nctlms-modal-close { position: absolute; top: 0.75rem; right: 0.75rem; border: 0; background: transparent; font-size: 1.25rem; cursor: pointer; }
.nctlms-modal-badge { color: #cc0000; font-weight: 800; font-size: 0.72rem; letter-spacing: 0.08em; margin: 0 0 0.5rem; }
.nctlms-modal-panel h3 { margin: 0 0 1rem; font-size: 1.2rem; }
.nctlms-modal-video iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 8px; }
.nctlms-modal-loading { color: #666; margin: 2rem 0; text-align: center; }
.nctlms-modal-enroll { color: #cc0000 !important; font-weight: 700; text-decoration: none !important; }
.nctlms-open-preview { border: 0; background: transparent; cursor: pointer; text-align: left; padding: 0; font: inherit; }
.nctlms-portal { position: fixed; inset: 0; z-index: 190; pointer-events: none; }
.nctlms-portal.is-open { pointer-events: auto; }
.nctlms-portal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.4); opacity: 0; transition: opacity 0.2s; }
.nctlms-portal.is-open .nctlms-portal-backdrop { opacity: 1; }
.nctlms-portal-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(320px, 92vw); background: #fff;
  box-shadow: -8px 0 24px rgba(0,0,0,0.15); padding: 1.25rem; transform: translateX(100%); transition: transform 0.25s;
}
.nctlms-portal.is-open .nctlms-portal-panel { transform: translateX(0); }
.nctlms-portal-close { border: 0; background: transparent; font-size: 1.25rem; cursor: pointer; float: right; }
.nctlms-portal-kicker { font-size: 0.75rem; color: #888; margin: 0 0 0.25rem; clear: both; }
.nctlms-portal-panel h3 { margin: 0 0 1rem; font-size: 1.1rem; }
.nctlms-portal-nav { display: flex; flex-direction: column; gap: 0.65rem; }
.nctlms-portal-nav a { color: #1a3a5c !important; text-decoration: none; font-weight: 500; }
.nctlms-portal-fab {
  position: fixed; left: 1.25rem; bottom: 1.25rem; width: 48px; height: 48px; border-radius: 50%;
  background: #1a3a5c; color: #fff; border: 0; font-weight: 800; font-size: 0.85rem; cursor: pointer; z-index: 99;
  box-shadow: 0 4px 12px rgba(26,58,92,0.35);
}
