:root {
  --brand: #6C5DD3;
  --brand-dark: #4B3FA7;
  --brand-light: #8B7FE8;
  --accent: #FF6B4A;
  --accent-2: #17D1A6;
  --dark-bg: #12082B;
  --dark-bg-2: #1B0F3D;
  --text-muted: #6B7280;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 10px 40px rgba(108, 93, 211, 0.12);
  --shadow-hover: 0 20px 50px rgba(108, 93, 211, 0.22);
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  background: #F7F7FC;
  color: #232135;
}

a {
  text-decoration: none;
}

.gradient-brand {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 60%, #2A1B63 100%);
}

.gradient-text {
  background: linear-gradient(90deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Navbar ---------- */
.navbar-lms {
  /* NOTE: deliberately NO backdrop-filter here. backdrop-filter combined with
     position:sticky (used on this navbar) is a well-known cause of severe
     screen flicker/rendering glitches on many browser+GPU combinations —
     the browser has to recompute the blur on every scroll/hover repaint
     nearby, which can also disrupt focus/typing in inputs on the page.
     A plain semi-opaque background gives a similar look with none of that. */
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 2px 24px rgba(20, 10, 60, 0.06);
  transition: box-shadow .3s ease;
}

.navbar-lms .nav-link {
  font-weight: 600;
  color: #2E2A45 !important;
  margin: 0 6px;
  position: relative;
}

.navbar-lms .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width .25s ease;
}

.navbar-lms .nav-link:hover::after {
  width: 100%;
}

.navbar-brand-lms {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--brand-dark) !important;
}

/* ---------- Buttons ---------- */
.btn-brand {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 26px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(108, 93, 211, .35);
  transition: transform .25s ease, box-shadow .25s ease;
}

.btn-brand:hover {
  box-shadow: 0 14px 28px rgba(108, 93, 211, .45);
  color: #fff;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #ff9068);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 26px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(255, 107, 74, .35);
  transition: box-shadow .25s ease;
}

.btn-accent:hover {
  color: #fff;
  box-shadow: 0 14px 28px rgba(255, 107, 74, .45);
}

.btn-outline-brand {
  border: 2px solid var(--brand);
  color: var(--brand);
  border-radius: 50px;
  padding: 9px 24px;
  font-weight: 600;
  background: transparent;
  transition: background-color .25s ease, color .25s ease;
}

.btn-outline-brand:hover {
  background: var(--brand);
  color: #fff;
}

/* ---------- Compact Table Action Buttons (Edit/Suspend/Delete etc. in admin tables) ---------- */
/* Deliberately NOT using .btn-outline-brand/.btn-outline-danger here — those are
   pill-shaped (border-radius:50px) for big call-to-action buttons, which looks
   odd and inconsistent when squeezed into a table row as tiny icon buttons. */
.table-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  padding: 0;
  font-size: .9rem;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  flex-shrink: 0;
  line-height: 1;
}

.btn-action-edit {
  border-color: #E3E0FA;
  color: var(--brand);
  background: #F5F4FE;
}

.btn-action-edit:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.btn-action-danger {
  border-color: #FADCE0;
  color: #DC3545;
  background: #FEF2F3;
}

.btn-action-danger:hover {
  background: #DC3545;
  color: #fff;
  border-color: #DC3545;
}

.btn-action-success {
  border-color: #CFF3E5;
  color: #17A673;
  background: #F0FBF7;
}

.btn-action-success:hover {
  background: #17A673;
  color: #fff;
  border-color: #17A673;
}

.btn-action-neutral {
  border-color: #E5E7EB;
  color: #4B5563;
  background: #F9FAFB;
}

.btn-action-neutral:hover {
  background: #4B5563;
  color: #fff;
  border-color: #4B5563;
}

.btn-action-text {
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1.5px solid;
  font-weight: 600;
  font-size: .8rem;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color .2s ease, color .2s ease;
}

.btn-action-text.suspend {
  border-color: #FADCE0;
  color: #DC3545;
  background: #FEF2F3;
}

.btn-action-text.suspend:hover {
  background: #DC3545;
  color: #fff;
}

.btn-action-text.activate {
  border-color: #CFF3E5;
  color: #17A673;
  background: #F0FBF7;
}

.btn-action-text.activate:hover {
  background: #17A673;
  color: #fff;
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 40px 40px;
  padding: 100px 0 140px;
  color: #fff;
}

/* ---------- Hero Image Slider (Admin-uploaded banners) ---------- */
.hero-slider-section {
  overflow: hidden;
  border-radius: 0 0 40px 40px;
}

.hero-slide-img {
  height: 460px;
  object-fit: cover;
}

.hero-slide-caption {
  left: 6%;
  right: auto;
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  max-width: 520px;
  text-align: left;
  background: linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .15) 80%, transparent 100%);
  padding: 24px 28px;
  border-radius: 20px;
}

.hero-slide-caption h2 {
  font-size: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}

@media (max-width: 767.98px) {
  .hero-slide-img {
    height: 320px;
  }
  .hero-slide-caption {
    left: 4%;
    right: 4%;
    max-width: none;
    padding: 16px 18px;
  }
  .hero-slide-caption h2 {
    font-size: 1.4rem;
  }
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .08) 0, transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(255, 107, 74, .18) 0, transparent 45%);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .5;
  z-index: 0;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .3);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: .85rem;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ---------- Cards ---------- */
.card-lms {
  border: none;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: box-shadow .35s ease;
  overflow: hidden;
  /* REQUIRED for Bootstrap's .stretched-link (used on course title links) to
     work correctly. Without a positioned ancestor here, the stretched-link's
     invisible ::after overlay has nowhere scoped to attach to and expands to
     cover the ENTIRE page instead of just this card — which made every link
     appear to point to the same course, intercepted clicks on the search box,
     and made the whole page feel broken/unresponsive no matter where you clicked. */
  position: relative;
}

/* Uses scale() (grows symmetrically from center) instead of translateY —
   translateY shifts the whole box away from the cursor, and if the cursor was
   near the bottom edge, the box moves out from under it, triggering
   mouseleave -> hover off -> box moves back -> mouseenter again -> an endless
   flicker loop. scale() keeps the box's center fixed under the cursor, so
   this can't happen. */
.card-lms:hover {
  box-shadow: var(--shadow-hover);
}

.course-thumb {
  height: 180px;
  width: 100%;
  object-fit: cover;
}

.thumb-wrap {
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
}

/* Subtle zoom on hover when the thumbnail is wrapped in a clickable link
   (e.g. My Courses — click the image/title to jump straight into the
   course) — gives clear visual affordance that it's clickable. */
.thumb-wrap img.course-thumb {
  transition: transform .35s ease;
}

a:hover .thumb-wrap img.course-thumb {
  transform: scale(1.06);
}

.badge-level {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(18, 8, 43, .85);
  color: #fff;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 600;
}

.badge-price {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 700;
}

.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(108, 93, 211, .12), rgba(255, 107, 74, .12));
  color: var(--brand);
  font-size: 1.5rem;
  transition: background .3s ease, color .3s ease;
}

.feature-card:hover .icon-circle {
  background: var(--brand);
  color: #fff;
}

.feature-card {
  transition: box-shadow .3s ease;
}

.category-pill {
  border-radius: 50px;
  padding: 8px 20px;
  background: #fff;
  border: 1px solid #EAE7F8;
  font-weight: 600;
  color: #4B4568;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
  display: inline-block;
}

.category-pill:hover,
.category-pill.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* ---------- Dashboard ---------- */
.sidebar-lms {
  background: linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-bg-2) 100%);
  min-height: 100vh;
  color: #D9D4F0;
}

.sidebar-lms .nav-link {
  color: #C9C3E8;
  border-radius: 12px;
  margin-bottom: 4px;
  padding: 10px 16px;
  font-weight: 500;
  transition: all .25s ease;
  display: flex;
  align-items: center;
}

.sidebar-lms .nav-link .badge {
  font-size: .68rem;
  padding: 3px 7px;
}

.sidebar-lms .nav-link:hover,
.sidebar-lms .nav-link.active {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  padding-left: 22px;
}

.sidebar-lms .nav-link i {
  width: 22px;
}

/* Nav links list scrolls independently, keeping the logo/user card above it
   always visible even when there are more nav items than fit on screen.
   flex-wrap: nowrap is critical here — Bootstrap's base .nav class sets
   flex-wrap:wrap by default, which (combined with flex-direction:column and
   a height-constrained flex parent) makes overflowing items wrap into a new
   *column* instead of just scrolling, breaking the whole sidebar layout. */
.sidebar-nav-scroll {
  flex-wrap: nowrap !important;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  /* required for flex children to actually shrink & scroll */
  padding-right: 4px;
}

.sidebar-nav-scroll::-webkit-scrollbar {
  width: 5px;
}

.sidebar-nav-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .18);
  border-radius: 10px;
}

.sidebar-nav-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.stat-card {
  border-radius: var(--radius-lg);
  border: none;
  padding: 26px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: box-shadow .3s ease;
}

.stat-card:hover {
  box-shadow: var(--shadow-hover);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
}

.progress-lms {
  height: 8px;
  border-radius: 50px;
  background: #EDEBF7;
  overflow: hidden;
}

/* !important + explicit background-color (not just the gradient shorthand)
   guarantees this always wins over Bootstrap's own .progress-bar rule
   (which sets a plain background-color itself) — without this, the bar can
   render with no visible fill at all in some cases, even though its width
   is correctly set. */
.progress-lms .progress-bar {
  background-color: var(--brand) !important;
  background-image: linear-gradient(90deg, var(--brand), var(--accent-2)) !important;
  height: 100%;
}

/* ---------- Auth ---------- */
.auth-wrap {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--brand-dark) 100%);
  padding: 40px 16px;
}

.auth-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  overflow: hidden;
  max-width: 960px;
  width: 100%;
}

.auth-side {
  background: linear-gradient(160deg, var(--brand), var(--brand-dark));
  color: #fff;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---------- Pricing ---------- */
.pricing-card {
  border-radius: var(--radius-lg);
  border: 1px solid #ECE9F9;
  padding: 36px 28px;
  background: #fff;
  transition: box-shadow .3s ease;
  position: relative;
}

.pricing-card.popular {
  border: 2px solid var(--brand);
  box-shadow: var(--shadow-hover);
}

.pricing-card:hover {
  box-shadow: var(--shadow-hover);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), #ff9068);
  color: #fff;
  padding: 5px 18px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
}

/* ---------- Misc ---------- */
.section-title {
  font-weight: 800;
  letter-spacing: -.5px;
}

.text-brand {
  color: var(--brand) !important;
}

.bg-brand-soft {
  background: rgba(108, 93, 211, .08);
}

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.footer-lms {
  background: var(--dark-bg);
  color: #B9B3DA;
}

.footer-lms a {
  color: #B9B3DA;
}

.footer-lms a:hover {
  color: #fff;
}

/* Pure opacity fade — deliberately NO transform. Applying transform to any
   ancestor of a focused input/textarea is a known cause of the input losing
   focus / not accepting keystrokes in some browsers, and also creates a new
   CSS stacking context that can break dropdowns/modals nested inside it.
   Opacity alone gives a clean reveal effect with none of those side effects. */
/* Scroll-reveal animation removed entirely — content now just displays
   normally with no opacity/transform trickery. JS adds .in-view immediately
   so this rule only exists so nothing is ever visually hidden. */
.fade-up,
.fade-up.aos-animate,
.fade-up.in-view {
  opacity: 1;
}

.rating-stars {
  color: #FFB020;
}

.lesson-item {
  border-radius: 12px;
  padding: 10px 14px;
  transition: all .2s ease;
  cursor: pointer;
}

.lesson-item:hover {
  background: #F1EFFC;
}

.lesson-item.active {
  background: var(--brand);
  color: #fff;
}

.lesson-item.completed .lesson-check {
  color: var(--accent-2);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: #D6D1F0;
  border-radius: 10px;
}

/* ---------- Mobile Responsiveness ---------- */
@media (max-width: 767.98px) {

  /* Hero headings are huge by default (Bootstrap .display-*) — scale down so
     they wrap nicely instead of dominating small screens. */
  .hero-section h1.display-4 {
    font-size: 2.1rem;
    line-height: 1.25;
  }

  .hero-section .lead {
    font-size: 1rem;
  }

  .hero-section {
    padding: 60px 0 90px;
    border-radius: 0 0 24px 24px;
  }

  .display-1 {
    font-size: 3.5rem;
  }

  .display-3 {
    font-size: 2.4rem;
  }

  /* Slightly tighter spacing on small screens so sections don't feel too tall */
  section.py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  /* Pricing "popular" card's static scale can push it outside its column on
     narrow screens — keep it flat there, hover/border still shows it's featured. */
  .pricing-card.popular {
    transform: none;
  }

  /* Tables: slightly smaller text so more columns fit before horizontal
     scrolling kicks in (table-responsive wrapper still handles the rest). */
  .table {
    font-size: .85rem;
  }

  /* Cards generally look cramped with full desktop padding on narrow phones. */
  .card-lms.p-4 {
    padding: 1.25rem !important;
  }

  .card-lms.p-5 {
    padding: 1.75rem !important;
  }

  /* Stat/feature grids: reduce icon size a touch so 2-up mobile layouts breathe. */
  .icon-circle {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .hero-section h1.display-4 {
    font-size: 1.75rem;
  }

  .btn-brand,
  .btn-accent,
  .btn-outline-brand {
    padding: 9px 18px;
  }
}

/* ---------- Feature Showcase Mockups (browser-window style UI previews) ---------- */
.showcase-window {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border: 1px solid #EFEDFB;
}

.showcase-window .window-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 10px 14px;
  background: #F5F4FC;
  border-bottom: 1px solid #EFEDFB;
}

.showcase-window .window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.showcase-window .window-dot.red {
  background: #FF6B6B;
}

.showcase-window .window-dot.yellow {
  background: #FFC94D;
}

.showcase-window .window-dot.green {
  background: #3BD671;
}

.showcase-window .window-body {
  padding: 18px;
}

.skeleton-bar {
  height: 8px;
  border-radius: 6px;
  background: #EDEBF7;
}

.skeleton-bar.w-30 {
  width: 30%;
}

.skeleton-bar.w-40 {
  width: 40%;
}

.skeleton-bar.w-50 {
  width: 50%;
}

.skeleton-bar.w-60 {
  width: 60%;
}

.skeleton-bar.w-70 {
  width: 70%;
}

.skeleton-bar.w-80 {
  width: 80%;
}

.skeleton-bar.w-100 {
  width: 100%;
}

.showcase-thumb {
  width: 56px;
  height: 42px;
  border-radius: 8px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .9rem;
}

.showcase-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #F3F1FB;
}

.showcase-row:last-child {
  border-bottom: none;
}

.mini-progress {
  height: 6px;
  border-radius: 6px;
  background: #EDEBF7;
  overflow: hidden;
  width: 70px;
}

.mini-progress>div {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--accent-2));
}

.floating-card {
  position: absolute;
  box-shadow: var(--shadow-hover);
  border-radius: 16px;
  background: #fff;
  border: 1px solid #EFEDFB;
  z-index: 2;
}

.showcase-section {
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .floating-card {
    position: relative;
    inset: auto !important;
    margin-top: 12px;
    width: 100% !important;
  }
}

/* ---------- Contact Page ---------- */
.contact-hero {
  padding-bottom: 220px;
}

.contact-cards-wrap {
  margin-top: -180px;
}

@media (max-width: 991.98px) {
  .contact-hero {
    padding-bottom: 140px;
  }

  .contact-cards-wrap {
    margin-top: -90px;
  }
}

@media (max-width: 575.98px) {
  .contact-hero {
    padding-bottom: 100px;
  }

  .contact-cards-wrap {
    margin-top: -50px;
  }
}

/* ---------- Star Rating Input (course reviews) ---------- */
.star-rating-input {
  display: inline-flex;
  flex-direction: row-reverse;
  font-size: 1.6rem;
  gap: 4px;
}

.star-rating-input .star-choice {
  color: #E5E1F5;
  cursor: pointer;
  transition: color .15s ease, transform .15s ease;
}

.star-rating-input .star-choice.active {
  color: #FFC94D;
}

.star-rating-input:hover .star-choice {
  color: #E5E1F5;
}

.star-rating-input .star-choice:hover,
.star-rating-input .star-choice:hover~.star-choice {
  color: #FFC94D;
  transform: scale(1.1);
}

/* ---------- Rich Text Editor (course description) ---------- */
.rich-editor-wrap .ql-toolbar {
  border-radius: 12px 12px 0 0;
  border-color: #E5E1F5;
  background: #FAFAFE;
}

.rich-editor-wrap .ql-container {
  border-radius: 0 0 12px 12px;
  border-color: #E5E1F5;
  font-family: inherit;
  font-size: 1rem;
  min-height: 160px;
}

.rich-editor-wrap.rich-editor-compact .ql-container {
  min-height: 70px;
}

.course-description-content p:last-child {
  margin-bottom: 0;
}

.course-description-content img,
.product-full-description img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 12px 0;
  display: block;
}

.product-full-description p:last-child {
  margin-bottom: 0;
}

/* ---------- Product "Full Description" — polished landing-page block ---------- */
.product-full-description-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 48px;
  box-shadow: 0 4px 24px rgba(30, 20, 60, 0.06);
  border: 1px solid #F0EEFA;
}

@media (max-width: 767px) {
  .product-full-description-card {
    padding: 24px 20px;
    border-radius: 16px;
  }
}

.product-full-description {
  font-size: 1.02rem;
  line-height: 1.8;
  color: #423C57;
}

.product-full-description img {
  max-width: 560px !important;
  width: 100% !important;
  height: auto !important;
  margin: 28px auto;
  box-shadow: 0 8px 28px rgba(30, 20, 60, 0.14);
  border-radius: 16px;
}

.product-full-description h2,
.product-full-description h3 {
  color: #211C36;
  font-weight: 800;
  text-align: center;
  margin-top: 36px;
  margin-bottom: 18px;
}

.product-full-description h2:first-child,
.product-full-description h3:first-child {
  margin-top: 0;
}

.product-full-description h2 {
  font-size: 1.7rem;
}

.product-full-description h3 {
  font-size: 1.3rem;
  color: var(--brand);
}

.product-full-description p {
  margin-bottom: 16px;
}

.product-full-description ul,
.product-full-description ol {
  margin: 0 auto 24px auto;
  padding-left: 28px;
  max-width: 520px;
}

.product-full-description li {
  margin-bottom: 10px;
}

.product-full-description strong {
  color: #211C36;
}

/* ---------- International Phone Input (country code + flag) ---------- */
.iti {
  width: 100%;
  display: block;
}

.phone-intl-input.form-control {
  border-radius: 0 12px 12px 0 !important;
  border-left: none;
}

.iti__selected-country {
  background: #fff;
  border: 1px solid #dee2e6;
  border-right: none;
  border-radius: 12px 0 0 12px;
  padding-left: 12px;
  padding-right: 8px;
}

.iti__selected-country:hover,
.iti__selected-country:focus {
  background: #fff;
}

.iti__selected-country-primary {
  gap: 4px;
}

.iti__selected-dial-code {
  color: #2b2b40;
  font-weight: 500;
}

.iti--allow-dropdown .iti__flag-container {
  display: flex;
  align-items: stretch;
}

.iti--allow-dropdown input.phone-intl-input {
  padding-left: 12px;
}

/* The dropdown is appended to <body> (see main.js) to avoid being clipped
   inside Bootstrap modals — this z-index puts it above modals (1055) and
   their backdrops (1050) so it's always visible where it should be. */
.iti__country-list {
  z-index: 3000 !important;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
  margin-top: 4px;
}

/* Standalone flag icon used in tables (e.g. Manage Students phone column) —
   reuses the same sprite as the phone input widget, just shown inline next
   to plain text instead of inside an interactive dropdown. */
.phone-flag {
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
}

/* ---------- Promotion Marquee (student dashboard) ---------- */
.promo-marquee-wrap {
  background: linear-gradient(90deg, var(--brand, #6C5DD3), var(--accent-2, #17D1A6), var(--brand, #6C5DD3));
  background-size: 200% 100%;
  color: #fff;
  border-radius: 12px;
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}

.promo-marquee-track {
  display: inline-flex;
  animation: promo-marquee-scroll 18s linear infinite;
  will-change: transform;
}

.promo-marquee-item {
  padding: 0 3rem;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

@keyframes promo-marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.promo-marquee-wrap:hover .promo-marquee-track {
  animation-play-state: paused;
}

/* ---------- Promotion Popup Modal ---------- */
.promo-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background-color: #fff !important;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  opacity: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.promo-modal-image {
  max-height: 220px;
  object-fit: cover;
  display: block;
}

@media (max-width: 576px) {
  .promo-marquee-item {
    padding: 0 1.25rem;
    font-size: .85rem;
  }

  .promo-modal-image {
    max-height: 140px;
  }

  .promo-modal-close {
    width: 28px;
    height: 28px;
    top: 8px;
    right: 8px;
  }
}





/* ---------- Common List Toolbar (search + filter, used across every admin/student list page) ---------- */
.lms-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.lms-toolbar .lms-search-input {
  flex: 1 1 260px;
  min-width: 0;
}

.lms-toolbar .lms-filter-select {
  flex: 0 1 180px;
  min-width: 140px;
}

.lms-toolbar-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-left: auto;
}

@media (max-width: 576px) {
  .lms-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .lms-toolbar .lms-search-input,
  .lms-toolbar .lms-filter-select {
    flex: 1 1 auto;
    font-size: 0.9rem;
    padding: 8px 14px;
  }

  .lms-toolbar-actions {
    margin-left: 0;
    width: 100%;
  }

  /* Toolbar buttons (Search, Filter, Export CSV, Clear, etc.) are small
     utility controls, not hero CTAs — .btn-brand/.btn-outline-brand's
     normal padding (10px 26px) and full pill radius are sized for a big
     "New Course"-style button, and looked comically oversized once
     stretched to 100% width on a narrow screen. Scoped to just this
     toolbar so buttons everywhere else on the page (the actual hero CTAs)
     are completely unaffected. */
  .lms-toolbar-actions .btn {
    flex: 1 1 auto;
    padding: 8px 14px;
    font-size: 0.85rem;
    border-radius: 10px;
    box-shadow: none;
    white-space: nowrap;
  }
}

/* ---------- Common Pagination (one design used everywhere: Students, Instructors,
   Courses, Enrollments, Installments, Payments, Certificates, Coupons, Contact
   Messages, Promotions, My Courses, My Certificates, Invoices, Wishlist, Quizzes,
   Assignments, Support Tickets — every paginated list in the app) ---------- */
.lms-pagination-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #eef0f5;
}

.lms-pagination-info {
  font-size: .82rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.lms-pagination-info strong {
  color: #1f2430;
  font-weight: 700;
}

.lms-pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.lms-pagination .page-item {
  display: flex;
}

.lms-pagination .page-link {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 10px !important;
  border: 1px solid #e5e7ef;
  color: #4B4F5B;
  font-size: .85rem;
  font-weight: 600;
  background: #fff;
  transition: all .15s ease;
}

.lms-pagination .page-link:hover {
  background: var(--brand-light, #8B7FE8);
  border-color: var(--brand);
  color: #fff;
}

.lms-pagination .page-item.active .page-link {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.lms-pagination .page-item.disabled .page-link {
  opacity: .4;
  pointer-events: none;
  background: #f7f7fb;
}

.lms-pagination .page-link i {
  font-size: .8rem;
}

@media (max-width: 576px) {
  .lms-pagination-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .lms-pagination {
    justify-content: center;
  }

  .lms-pagination .page-link {
    min-width: 32px;
    height: 32px;
    font-size: .8rem;
    padding: 0 6px;
  }

  /* Hide far-away numbered pages on very small screens, keep prev/next/current/first/last */
  .lms-pagination .page-item.number-far {
    display: none;
  }
}


.promotion-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.promotion-toggle-form {
  margin: 0;
  padding: 0;
  display: flex;
}

.promotion-action {
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.promotion-action i {
  font-size: 16px;
  line-height: 1;
}


/* Edit */
.promotion-action-edit {
  border: 1.5px solid #6c5ce7;
  color: #6c5ce7;
}

.promotion-action-edit:hover {
  background: #6c5ce7;
  color: #fff;
  transform: translateY(-1px);
}


/* Deactivate */
.promotion-action-deactivate {
  border: 1.5px solid #f0a04b;
  color: #c77a16;
}

.promotion-action-deactivate:hover {
  background: #fff4e5;
  border-color: #e58b25;
  color: #b86d0b;
}


/* Activate */
.promotion-action-activate {
  border: 1.5px solid #20a36a;
  color: #198754;
}

.promotion-action-activate:hover {
  background: #eaf8f1;
  border-color: #198754;
  color: #157347;
}


/* Delete */
.promotion-action-delete {
  width: 42px;
  min-width: 42px;
  padding: 0;
  border: 1.5px solid #ef5350;
  color: #ef5350;
}

.promotion-action-delete:hover {
  background: #fff0f0;
  border-color: #dc3545;
  color: #dc3545;
  transform: translateY(-1px);
}


/* Mobile */
@media (max-width: 576px) {

  .promotion-actions {
    gap: 7px;
  }

  .promotion-action {
    height: 40px;
    padding: 0 13px;
    font-size: 13px;
  }

  .promotion-action-delete {
    width: 40px;
    min-width: 40px;
  }

}


/* Very small screens */
@media (max-width: 380px) {

  .promotion-action {
    padding: 0 10px;
  }

  .promotion-action span {
    display: none;
  }

  .promotion-action-edit,
  .promotion-action-deactivate,
  .promotion-action-activate {
    width: 40px;
    min-width: 40px;
    padding: 0;
  }

  .promotion-action-delete {
    width: 40px;
    min-width: 40px;
  }

}
/* ---------- Secure Vimeo lesson player ---------- */
.secure-video-wrap {
  position: relative;
  background: #000;
}
.secure-video-watermark {
  position: absolute;
  color: rgba(255, 255, 255, 0.32);
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
  user-select: none;
  z-index: 5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  /* Explicit stops guarantee it visibly visits left, right, center, top and
     bottom every cycle — not just a random drift that might stay subtle.
     !important is needed here because Bootstrap's .ratio > * rule forces
     top:0/left:0 on every direct child of the 16:9 wrapper, which would
     otherwise cancel this animation out. */
  animation: secureWatermarkFloat 24s ease-in-out infinite !important;
}
@keyframes secureWatermarkFloat {
  0%   { top: 6%;  left: 4%;  }
  12%  { top: 8%;  left: 68%; }
  25%  { top: 42%; left: 82%; }
  37%  { top: 78%; left: 58%; }
  50%  { top: 80%; left: 6%;  }
  62%  { top: 44%; left: 3%;  }
  75%  { top: 12%; left: 38%; }
  87%  { top: 68%; left: 42%; }
  100% { top: 6%;  left: 4%;  }
}
.secure-video-wrap {
  transition: filter 0.4s ease;
}