/* PSEAI PROGRAMMES — Enterprise AI Learning Platform */

:root {
  --pse-primary: #4f46e5;
  --pse-primary-dark: #4338ca;
  --pse-logo-blue: #2563b8;
  --pse-logo-blue-light: #3b82d6;
  --pse-logo-purple: #6366f1;
  --pse-logo-purple-deep: #4338ca;
  --pse-accent: #3b82d6;
  --pse-accent-light: #60a5fa;
  --pse-gradient: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
  --pse-gradient-soft: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
  --pse-glass: #ffffff;
  --pse-glass-border: #e2e8f0;
  --pse-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --pse-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
  --pse-radius: 0.75rem;
  --pse-radius-xl: 1rem;
  --pse-text: #0f172a;
  --pse-text-muted: #5c5c7a;
  --pse-bg: #ffffff;
  --pse-surface: #ffffff;
  --pse-gradient-page: #e8e2f5;
  --pse-gradient-brand: linear-gradient(90deg,
      var(--pse-logo-blue) 0%,
      var(--pse-logo-blue-light) 45%,
      var(--pse-logo-purple) 100%);
  --pse-border: rgba(0, 0, 0, 0.08);
  --navbar-height: 64px;
  --pse-text: #0f1724;
  --pse-text-muted: #6b7280;
}

/* Workshop Hero — modern two-column layout */
.workshop-hero {
  background: linear-gradient(180deg, rgba(92, 6, 50, 0.08) 0%, rgba(229, 169, 60, 0.04) 100%);
  color: var(--pse-text);
  padding: 2.5rem 0 1.5rem 0;
  margin-bottom: 2rem;
}

.workshop-hero-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.5rem;
  align-items: center;
}

.hero-left {
  padding: 1.1rem 1.5rem;
}

.workshop-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #4A0E2E;
  /* deeper wine */
  margin-bottom: 0.5rem;
}

.workshop-hero-subtitle {
  font-size: 1rem;
  color: var(--pse-text-muted);
  margin-bottom: 1rem;
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.hero-note {
  font-size: 0.875rem;
  color: black;
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.hero-stats-cards {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  justify-content: center;
}

.hero-stat-card {
  background: #fff;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
  text-align: center;
  min-width: 88px;
}

.hero-stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #5C0632;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--pse-text-muted);
}

.hero-visual {
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Buttons override for hero (light on wine background) */
.btn-exam-start {
  background: linear-gradient(90deg, #5C0632 0%, #7a1036 100%);
  color: #fff;
  border: none;
}

.btn-exam-start:hover {
  filter: brightness(1.02);
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(0, 0, 0, 0.75);
  background: transparent;
}

.cta-contact-btn {
  border: 2px solid #ffffff;
  color: #ffffff;
  background: transparent;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 0.5rem;
  transition: background 0.2s, color 0.2s;
}

.cta-contact-btn:hover {
  background: #ffffff;
  color: #000000;
}

@media (max-width: 992px) {
  .workshop-hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-right {
    order: -1;
  }

  .workshop-hero {
    padding: 1.2rem 0;
  }
}

.page-course-details .course-details-main .glass-card,
.page-course-details .course-details-main .glass-card .text-muted {
  color: var(--pse-text) !important;
}

[data-theme="dark"] .page-home {
  background: linear-gradient(180deg,
      var(--pse-bg) 0%,
      #12102a 28%,
      #0f1729 55%,
      #12102a 82%,
      var(--pse-bg) 100%);
}

[data-theme="dark"] .page-programmes,
[data-theme="dark"] .page-about,
[data-theme="dark"] .page-contact {
  background: linear-gradient(180deg,
      var(--pse-bg) 0%,
      #12102a 28%,
      #0f1729 55%,
      #12102a 82%,
      var(--pse-bg) 100%);
}

.page-home .bg-mesh {
  opacity: 0;
  visibility: hidden;
}

/* Animated background mesh */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-mesh::before,
.bg-mesh::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: float 20s ease-in-out infinite;
}

.bg-mesh::before {
  width: 600px;
  height: 600px;
  background: #e0e7ff;
  top: -200px;
  right: -100px;
}

.bg-mesh::after {
  width: 500px;
  height: 500px;
  background: #f1f5f9;
  bottom: -150px;
  left: -100px;
  animation-delay: -10s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, -30px) scale(1.05);
  }
}

/* Navbar */
.navbar-pse {
  background: var(--pse-glass) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--pse-glass-border);
  padding: 0.5rem 0;
  transition: all 0.3s;
}

.navbar-pse.scrolled {
  box-shadow: var(--pse-shadow);
}

.navbar-pse-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: padding 0.3s ease;
}

/* Dashboard navbar: logo starts immediately after the 140px sidebar */
.container-fluid.navbar-pse-container.balanced-dashboard {
  padding-left: 148px;
  padding-right: 2rem;
  width: 100% !important;
}


@media (max-width: 991.98px) {
  .navbar-pse-container.balanced-dashboard {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.navbar-brand.brand-logo-wrap {
  padding: 0;
  margin-right: 0.5rem;
  line-height: 1;
}

.brand-logo {
  height: 34px;
  width: auto;
  max-width: min(160px, 42vw);
  object-fit: contain;
  display: block;
  transition: opacity 0.2s;
}


.navbar-brand.brand-logo-wrap:hover .brand-logo {
  opacity: 0.9;
}

.navbar-collapse-pse {
  flex-grow: 1;
  align-items: center;
}

@media (min-width: 992px) {
  .navbar-collapse-pse {
    display: flex !important;
    justify-content: space-between;
    gap: 1rem;
  }
}

.navbar-nav-pse {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0 auto;
  padding: 0.25rem;
  background: rgba(0, 120, 212, 0.06);
  border: 1px solid var(--pse-border);
  border-radius: 999px;
}

[data-theme="dark"] .navbar-nav-pse {
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 991.98px) {
  .navbar-nav-pse {
    margin: 1rem 0;
    padding: 0.5rem;
    border-radius: var(--pse-radius-xl);
    width: 100%;
  }

  .navbar-nav-pse .nav-item {
    width: 100%;
  }
}

.nav-link-pse {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pse-text-muted) !important;
  padding: 0.45rem 0.9rem !important;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-link-pse .nav-link-icon {
  font-size: 0.95rem;
  opacity: 0.75;
}

.nav-link-pse:hover {
  color: var(--pse-primary) !important;
  background: rgba(0, 120, 212, 0.08);
}

.nav-link-pse.active {
  color: var(--pse-primary) !important;
  background: var(--pse-surface);
  box-shadow: 0 1px 4px rgba(0, 72, 152, 0.12);
  font-weight: 600;
}

.nav-link-pse.active .nav-link-icon {
  opacity: 1;
}

.nav-link-dashboard.active {
  background: linear-gradient(135deg, rgba(0, 120, 212, 0.12), rgba(124, 58, 237, 0.1));
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

@media (max-width: 991.98px) {
  .navbar-actions {
    margin-left: 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--pse-border);
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

.nav-utils {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--pse-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: background 0.2s, color 0.2s;
}

.nav-icon-btn:hover {
  background: rgba(0, 120, 212, 0.1);
  color: var(--pse-primary);
}

.nav-actions-divider {
  width: 1px;
  height: 28px;
  background: var(--pse-border);
  flex-shrink: 0;
}

@media (max-width: 991.98px) {
  .nav-actions-divider {
    display: none;
  }
}

.nav-auth-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-pse-primary {
  background: #5b21b6;
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.6rem 1.25rem;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  cursor: pointer;
}

.btn-pse-primary:hover,
.btn-pse-primary:focus {
  background: #4c1d95;
  color: #fff;
  box-shadow: 0 4px 14px rgba(91, 33, 182, 0.35);
  transform: translateY(-1px);
}

.btn-pse-primary:active {
  background: #3b1278;
  transform: translateY(0);
}

.btn-nav-signin {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pse-text-muted);
  background: transparent;
  border: none;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.btn-nav-signin:hover {
  color: var(--pse-primary);
  background: rgba(124, 58, 237, 0.08);
}

.btn-nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--pse-gradient);
  border: none;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-nav-cta:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}

.cta-hero-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(160deg, #0a1628 0%, #0f2847 38%, #1a3270 68%, #2d1b69 100%),
    #0a1628;
}

.page-home section.cta-hero-section:not(.hero-section):not(.services-section),
.page-programmes section.cta-hero-section:not(.hero-section):not(.services-section),
.page-about section.cta-hero-section:not(.hero-section):not(.services-section),
.page-contact section.cta-hero-section:not(.hero-section):not(.services-section) {
  background: linear-gradient(160deg, #0a1628 0%, #0f2847 38%, #1a3270 68%, #2d1b69 100%);
}

.cta-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 120, 212, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(124, 58, 237, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse 50% 35% at 0% 80%, rgba(0, 180, 216, 0.2) 0%, transparent 45%);
  pointer-events: none;
}

.cta-hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(248, 250, 252, 0.08) 100%);
  pointer-events: none;
}

.cta-hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 0;
}

.cd-cta-section {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.cd-cta-section .cta-hero-content {
  max-width: 100%;
  padding: 4rem 1.5rem;
}

.cd-cta-section .cd-cta-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

/* Make CTA headline match a reduced hero size */
.cd-cta-section .hero-headline {
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cd-cta-section .hero-sub {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.nav-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  border: 1px solid var(--pse-border);
  border-radius: 999px;
  background: var(--pse-surface);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pse-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nav-user-btn:hover,
.nav-user-btn:focus {
  border-color: var(--pse-primary);
  box-shadow: 0 2px 8px rgba(0, 120, 212, 0.15);
}

.nav-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pse-gradient);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-toggler-pse {
  border: 1px solid rgba(79, 70, 229, 0.4);
  border-radius: 0.5rem;
  padding: 0.35rem 0.55rem;
}

/* Hamburger lines in the brand indigo (same as the chatbot) */
.nav-toggler-pse .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%234f46e5' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-toggler-pse:focus {
  box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
}

.footer-logo {
  height: 56px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
}

.auth-logo {
  height: 52px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Legacy nav-link — use .nav-link-pse in main navbar */
.nav-link {
  font-weight: 500;
  color: var(--pse-text-muted) !important;
  transition: color 0.2s;
  padding: 0.5rem 1rem !important;
}

/* Workshop Hero — modern two-column layout */
.workshop-hero {
  background: linear-gradient(180deg, rgba(92, 6, 50, 0.06) 0%, rgba(229, 169, 60, 0.02) 100%);
  color: var(--pse-text);
  padding: 2rem 0 1.75rem 0;
  margin-bottom: 1.5rem;
}

.workshop-hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.35));
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(16, 24, 40, 0.06);
  border: 1px solid rgba(92, 6, 50, 0.06);
}

.hero-left {
  padding: 0.5rem 1rem;
}

.workshop-hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: #5C0632;
  margin-bottom: 0.5rem;
}

.workshop-hero-subtitle {
  font-size: 1rem;
  color: var(--pse-text-muted);
  margin-bottom: 1rem;
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--pse-text-muted);
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
}

.hero-stats-cards {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  justify-content: space-between;
}

.hero-stat-card {
  background: white;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  min-width: 100px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.04);
  border: 1px solid rgba(16, 24, 40, 0.03);
}

.hero-stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: #5C0632;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--pse-text-muted);
}

.hero-visual svg {
  display: block;
  margin-top: 6px;
}

/* Buttons specific styles */
.btn-exam-start {
  background: #5C0632;
  color: white;
  border-radius: 10px;
  padding: 0.6rem 1.2rem;
  border: none;
}

.btn-exam-start:hover {
  background: #470426;
}

@media (max-width: 980px) {
  .workshop-hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-right {
    align-items: stretch;
  }

  .hero-stats-cards {
    justify-content: space-between;
  }
}

/* Featured hero button */
.btn-featured-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0a1628 0%, #0f2847 38%, #1a3270 68%, #2d1b69 100%);
  color: #fff;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.btn-featured-hero:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 22, 40, 0.35);
  filter: brightness(1.08);
}

/* Hero — full viewport, centered copy */
.hero-section {
  position: relative;
  min-height: 140vh;
  min-height: 140dvh;
  min-height: 140svh;
  padding-bottom: 14rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  overflow: visible;
}

/* Clip only the decorative backgrounds, not the content */
.hero-bg,
.hero-grid-overlay {
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(160deg, #0a1628 0%, #0f2847 38%, #1a3270 68%, #2d1b69 100%);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 120, 212, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(124, 58, 237, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse 50% 35% at 0% 80%, rgba(0, 180, 216, 0.2) 0%, transparent 45%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(248, 250, 252, 0.08) 100%);
}

[data-theme="dark"] .hero-bg {
  background: linear-gradient(160deg, #050810 0%, #0a1628 40%, #121f3d 75%, #1a1040 100%);
}

[data-theme="dark"] .hero-bg::after {
  background: linear-gradient(180deg, transparent 65%, rgba(15, 15, 26, 0.6) 100%);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
}

.hero-container {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding: calc(var(--navbar-height) + 2rem) 1.5rem 14rem;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.form-check-input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.25rem;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #7dd3fc;
  background: rgba(0, 120, 212, 0.2);
  border: 1px solid rgba(125, 211, 252, 0.35);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-size: clamp(2.35rem, 6.5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.hero-headline-accent {
  display: block;
  margin-top: 0.15em;
  background: linear-gradient(90deg, #60cfff 0%, #a78bfa 50%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.btn-hero-primary {
  background: #ffffff;
  color: #0a1628;
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: 999px;
  border: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-hero-primary:hover {
  color: #0a1628;
  background: #f0f9ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 120, 212, 0.35);
}

.btn-hero-secondary {
  background: transparent;
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  transition: all 0.2s;
}

.btn-hero-secondary:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
}

.hero-trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}

.hero-trust-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
}

.hero-trust-list i {
  font-size: 1.1rem;
  color: #7dd3fc;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: -1px;
  right: -1px;
  height: 220px;
  background: #e8e2f5;
  clip-path: ellipse(75% 100% at 50% 100%);
  z-index: 10;
  pointer-events: none;
}

[data-theme="dark"] .hero-wave {
  background: #1a1035;
}

/* Bring the filters card up to overlap the hero like on the homepage */
.overlap-hero {
  margin-top: -3.5rem;
  position: relative;
  z-index: 30;
}

@media (max-width: 767px) {
  .overlap-hero {
    margin-top: -1.25rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Stronger overlap variant for about page to pull the content higher over the hero wave */
.about-overlap {
  margin-top: -3rem;
  position: relative;
  z-index: 30;
}

@media (max-width: 991.98px) {
  .about-overlap {
    margin-top: -7rem;
  }
}

@media (max-width: 767px) {
  .about-overlap {
    margin-top: -1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Space between the About writeup (top row) and the Mission/Vision/Values cards */
.about-overlap .row.g-4 {
  margin-top: 2.5rem;
  /* default breathing room */
}

@media (min-width: 992px) {
  .about-overlap .row.g-4 {
    margin-top: 3.5rem;
    /* larger gap on wide screens */
  }
}

@media (max-width: 576px) {
  .about-overlap .row.g-4 {
    margin-top: 1rem;
    /* slightly tighter on very small screens */
  }
}

/* Filters card — 2x2 grid and hero-blue background */
.filters-card {
  background: #e8e2f5;
  color: #0f172a;
  border: 2px solid #0f2847;
  box-shadow: 0 4px 16px rgba(91, 33, 182, 0.1);
  border-radius: 1rem;
}

.filters-card .form-control,
.filters-card .form-select {
  background: #fff;
  border: 1.5px solid rgba(91, 33, 182, 0.2);
  color: #0f172a;
  padding: 0.9rem 1rem;
}

.filters-card .form-control:focus {
  border-color: #5b21b6;
  box-shadow: 0 0 0 3px rgba(91, 33, 182, 0.1);
}

.filters-card .form-control::placeholder {
  color: #9ca3af;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.filters-card .btn-hero-primary {
  background: #ffffff;
  color: #0a1628;
}

@media (max-width: 767px) {
  .filters-grid {
    grid-template-columns: 1fr;
  }

  .filters-card {
    padding: 1rem;
  }
}

/* Rating stars style */
.rating-stars {
  color: #f6c942;
  font-weight: 700;
}

.rating-stars+.ms-2 {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

[data-theme="dark"] .hero-wave {
  background: var(--pse-bg);
}

/* Navbar over hero — light links on dark hero (home page) */
body:has(.hero-section) .navbar-pse:not(.scrolled) {
  background: rgba(10, 22, 40, 0.75) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body:has(.hero-section) .navbar-pse:not(.scrolled) .navbar-nav-pse {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

body:has(.hero-section) .navbar-pse:not(.scrolled) .nav-link-pse {
  color: rgba(255, 255, 255, 0.8) !important;
}

body:has(.hero-section) .navbar-pse:not(.scrolled) .nav-link-pse:hover {
  color: #7dd3fc !important;
  background: rgba(255, 255, 255, 0.1);
}

body:has(.hero-section) .navbar-pse:not(.scrolled) .nav-link-pse.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

body:has(.hero-section) .navbar-pse:not(.scrolled) .brand-logo {
  filter: brightness(1.05);
}

body:has(.hero-section) .navbar-pse:not(.scrolled) .nav-icon-btn {
  color: rgba(255, 255, 255, 0.85);
}

body:has(.hero-section) .navbar-pse:not(.scrolled) .nav-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #7dd3fc;
}

body:has(.hero-section) .navbar-pse:not(.scrolled) .nav-actions-divider {
  background: rgba(255, 255, 255, 0.2);
}

body:has(.hero-section) .navbar-pse:not(.scrolled) .btn-nav-signin {
  color: rgba(255, 255, 255, 0.9);
}

body:has(.hero-section) .navbar-pse:not(.scrolled) .btn-nav-signin:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

body:has(.hero-section) .navbar-pse:not(.scrolled) .nav-user-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

body:has(.hero-section) .navbar-pse.scrolled {
  box-shadow: var(--pse-shadow);
}

@media (max-width: 576px) {
  .hero-container {
    padding: calc(var(--navbar-height) + 1.5rem) 1rem 4.5rem;
  }

  /* Larger checkbox for better touch */
  .form-check-input {
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.25rem;
  }

  @media (min-width: 768px) {
    .form-check-input {
      width: 2rem;
      height: 2rem;
    }
  }

  /* Hero headline */
  .hero-headline {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
  }

  .hero-trust-list {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .hero-actions .btn-lg {
    width: 100%;
    max-width: 280px;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section titles */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pse-primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Top 5 PSE AI Services — redesigned */
.services-section {
  position: relative;
  margin-top: -6rem;
  padding: 0 0 6rem;
  background: #e8e2f5;
  z-index: 20;
  position: relative;
}

[data-theme="dark"] .services-section {
  background: linear-gradient(180deg,
      var(--pse-surface) 0%,
      #12102a 28%,
      #0f1729 55%,
      #12102a 82%,
      var(--pse-surface) 100%);
}

.page-home section:not(.hero-section):not(.services-section),
.page-programmes section:not(.hero-section):not(.services-section),
body.page-about,
body.page-contact {
  background: #e8e2f5;
}


.page-about section:not(.hero-section):not(.services-section),
.page-contact section:not(.hero-section):not(.services-section) {
  background: #e8e2f5;
}

[data-theme="dark"] .page-home section:not(.hero-section):not(.services-section),
[data-theme="dark"] .page-programmes section:not(.hero-section):not(.services-section),
[data-theme="dark"] .page-about section:not(.hero-section):not(.services-section),
[data-theme="dark"] .page-contact section:not(.hero-section):not(.services-section) {
  background: linear-gradient(180deg,
      var(--pse-surface) 0%,
      #12102a 28%,
      #0f1729 55%,
      #12102a 82%,
      var(--pse-surface) 100%);
}

.page-home section.bg-light-subtle,
.page-programmes section.bg-light-subtle,
.page-about section.bg-light-subtle,
.page-contact section.bg-light-subtle {
  background: var(--pse-gradient-page) !important;
}

[data-theme="dark"] .page-home section.bg-light-subtle,
[data-theme="dark"] .page-programmes section.bg-light-subtle,
[data-theme="dark"] .page-about section.bg-light-subtle,
[data-theme="dark"] .page-contact section.bg-light-subtle {
  background: linear-gradient(180deg,
      var(--pse-surface) 0%,
      #12102a 28%,
      #0f1729 55%,
      #12102a 82%,
      var(--pse-surface) 100%) !important;
}

.services-panel {
  max-width: 1320px;
  margin: 0 auto;
}

.services-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.services-header-main {
  text-align: center;
}

.services-eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--pse-logo-purple);
  margin-bottom: 0.85rem;
}

.services-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 auto;
  background: var(--pse-gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  text-align: center;
}

.services-lead {
  font-size: 1.0625rem;
  color: var(--pse-text-muted);
  line-height: 1.7;
  margin: 0 auto;
  max-width: 720px;
}

.services-header-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.services-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pse-logo-blue);
  background: linear-gradient(135deg,
      rgba(37, 99, 184, 0.08) 0%,
      rgba(124, 58, 237, 0.06) 100%);
  border: 1px solid rgba(37, 99, 184, 0.12);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.services-meta-chip i {
  font-size: 1rem;
  color: var(--pse-logo-purple);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }
}

.service-card-pse {
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #0a1628 0%, #0f2847 38%, #1a3270 68%, #2d1b69 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  min-height: 100%;
  --card-gradient: linear-gradient(160deg, #0a1628 0%, #0f2847 38%, #1a3270 68%, #2d1b69 100%);
  --card-icon-color: #7c3aed;
  --card-glow: rgba(124, 58, 237, 0.18);
}

[data-theme="dark"] .service-card-pse {
  background: linear-gradient(160deg, #050810 0%, #0a1628 40%, #121f3d 75%, #1a1040 100%);
  border-color: rgba(255, 255, 255, 0.03);
}

.service-card-pse:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px var(--card-glow, rgba(124, 58, 237, 0.12));
  border-color: rgba(124, 58, 237, 0.18);
}

[data-theme="dark"] .service-card-pse:hover {
  border-color: var(--card-icon-color, var(--pse-border));
}

.service-card-head {
  position: relative;
  padding: 1.75rem 1.25rem 1.5rem;
  background: var(--card-gradient, var(--pse-gradient-brand));
  min-height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.service-card-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.service-card-num {
  position: relative;
  z-index: 1;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.35);
}

.service-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.25rem 1.25rem;
  background: #ffffff;
}

[data-theme="dark"] .service-card-body {
  background: var(--pse-surface);
}

.service-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--pse-text);
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.service-card-desc {
  font-size: 0.8125rem;
  color: var(--pse-text-muted);
  line-height: 1.6;
  margin: 0 0 1rem;
  flex-grow: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--card-icon-color, var(--pse-logo-blue));
  text-decoration: none;
  margin-top: auto;
  transition: gap 0.2s ease, color 0.2s ease;
}

.service-card-link:hover {
  color: var(--pse-logo-purple);
  gap: 0.55rem;
}

.service-card-link i {
  font-size: 0.9rem;
}

.services-cta {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
}

.services-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: var(--pse-gradient-brand);
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(37, 99, 184, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.services-cta-link:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.3);
}

/* Stats (use hero background visuals) */
.stats-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0a1628 0%, #0f2847 38%, #1a3270 68%, #2d1b69 100%) !important;
}

[data-theme="dark"] .stats-section {
  background: linear-gradient(160deg, #050810 0%, #0a1628 40%, #121f3d 75%, #1a1040 100%) !important;
}

.stats-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 120, 212, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(124, 58, 237, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 50% 35% at 0% 80%, rgba(0, 180, 216, 0.14) 0%, transparent 45%);
  pointer-events: none;
}

.stats-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 70%, rgba(248, 250, 252, 0.06) 100%);
  pointer-events: none;
}

.stats-section .container {
  position: relative;
  z-index: 2;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #ffffff !important;
}

.stat-card *,
.stat-card p,
.stat-card span,
.stat-card div,
.stat-card h1,
.stat-card h2,
.stat-card h3,
.stat-card h4,
.stat-card h5,
.stat-card h6,
.stats-section .stat-label,
.stats-section .text-muted,
.stats-section p,
.stats-section .stat-card .text-muted {
  color: #ffffff !important;
  opacity: 1 !important;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, #60cfff 0%, #a78bfa 50%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  overflow: visible;
  white-space: nowrap;
  display: block;
}

/* Course cards */
.course-card {
  overflow: hidden;
  height: 100%;
  border-radius: 0.75rem;
  box-shadow: 0 8px 20px rgba(10, 22, 40, 0.12);
}

.course-card .course-img {
  height: 140px;
  background: var(--pse-gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--pse-primary);
  overflow: hidden;
}

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

/* Reduce internal padding to make cards less bulky */
.course-card .p-4 {
  padding: 1rem !important;
}

/* Skeleton loading card */
.skeleton-card {
  border-radius: 0.75rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 8px 20px rgba(10, 22, 40, 0.06);
  overflow: hidden;
}

.skeleton-card .skeleton-img {
  height: 140px;
  background: linear-gradient(90deg, #f3f4f6 0%, #e6eefc 50%, #f3f4f6 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}

.skeleton-card .skeleton-body {
  padding: 1rem;
}

.skeleton-line {
  height: 12px;
  background: linear-gradient(90deg, #eef2ff 0%, #e6eefc 50%, #eef2ff 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
  border-radius: 6px;
  margin-bottom: 0.6rem;
}

.skeleton-line.short {
  width: 40%;
}

.skeleton-line.med {
  width: 65%;
}

.skeleton-line.full {
  width: 100%;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Keep featured cards above decorative background layers */
.featured-section {
  position: relative;
  z-index: 3;
}

.featured-section .container,
.featured-section #featuredCourses,
.featured-section .course-card {
  position: relative;
  z-index: 4;
}

/* Keep the Bootstrap gutters so four cards fit on one row */
.featured-section .row.g-4,
#coursesGrid.row.g-4 {
  gap: 0;
}

@media (min-width: 1200px) {

  /* Ensure four equal-width cards per row on large screens */
  .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

.course-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--pse-border);
  overflow: hidden;
}

.course-progress-bar {
  height: 100%;
  background: var(--pse-gradient);
  border-radius: 3px;
  transition: width 0.5s;
}

.rating-stars {
  color: #fbbf24;
}

/* Dashboard sidebar */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - var(--navbar-height));
  gap: 0;
}

@media (max-width: 991px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-pse {
    position: fixed;
    left: -280px;
    top: var(--navbar-height);
    width: 260px;
    height: calc(100vh - var(--navbar-height));
    z-index: 1040;
    transition: left 0.3s;
  }

  .sidebar-pse.open {
    left: 0;
  }
}

.sidebar-pse {
  background: var(--pse-glass);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--pse-border);
  padding: 1.5rem 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--pse-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: var(--pse-primary);
  background: var(--pse-gradient-soft);
  border-left-color: var(--pse-primary);
}

.dashboard-main {
  padding: 2rem;
}

/* Auth */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #e8f2ff 0%, #dcd7ff 50%, #ede0ff 100%);
}

.auth-card {
  max-width: 440px;
  width: 100%;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 8px 32px rgba(0, 72, 152, 0.3) !important;
  border: 1px solid rgba(200, 210, 255, 0.6) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  position: relative;
  z-index: 10;
}

.auth-card input,
.auth-card button,
.auth-card label,
.auth-card p,
.auth-card a {
  opacity: 1 !important;
  visibility: visible !important;
  display: block;
}

.auth-card .form-control {
  background: #ffffff !important;
  border: 1px solid #ddd !important;
  color: #1a1a2e !important;
}

/* Testimonials carousel */
.testimonial-card {
  padding: 2rem;
  text-align: center;
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--pse-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  margin: 0 auto 1rem;
}

/* Make testimonials background match the hero background */
.testimonials-section {
  position: relative;
  overflow: hidden;
}

.testimonials-section .container {
  position: relative;
  z-index: 2;
}

.testimonials-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(160deg, #0a1628 0%, #0f2847 38%, #1a3270 68%, #2d1b69 100%);
}

.testimonials-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 120, 212, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(124, 58, 237, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 50% 35% at 0% 80%, rgba(0, 180, 216, 0.14) 0%, transparent 45%),
    linear-gradient(180deg, transparent 70%, rgba(248, 250, 252, 0.06) 100%);
  opacity: 1;
  pointer-events: none;
}

.testimonials-section .section-title,
.testimonials-section .section-label,
.testimonials-section .testimonial-card,
.testimonials-section .testimonial-card *,
.testimonials-section p,
.testimonials-section span,
.testimonials-section blockquote,
.testimonials-section .text-muted {
  color: #ffffff !important;
  opacity: 1 !important;
}

.testimonials-section .carousel-control-prev,
.testimonials-section .carousel-control-next {
  width: 44px;
  height: 44px;
  background: var(--pse-gradient);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

.testimonials-section .carousel-control-prev-icon,
.testimonials-section .carousel-control-next-icon {
  filter: invert(1) brightness(2);
  width: 20px;
  height: 20px;
}

/* FAQ styles removed to restore default Bootstrap accordion appearance */

/* Modern FAQ section */
.faq-section {
  position: relative;
  padding: 4rem 0;
  background: linear-gradient(180deg, #eef6ff 0%, #f3e8ff 45%, #fff6f8 100%);
  overflow: hidden;
}

.faq-section::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60%;
  height: 140%;
  background: radial-gradient(closest-side at 10% 20%, rgba(37, 99, 184, 0.08), transparent 20%),
    radial-gradient(closest-side at 90% 80%, rgba(124, 58, 237, 0.08), transparent 20%);
  transform: rotate(-12deg);
  z-index: 0;
  pointer-events: none;
}

.faq-section .container {
  position: relative;
  z-index: 2;
}

/* FAQ two-column layout: content left, image right */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 3rem;
  align-items: center;
  width: 100%;
}

/* Section heading gradient (match Top 5 PSE AI Services) */
.featured-section .section-title,
.faq-section .section-title {
  background: var(--pse-gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats-layout {
  display: grid;
  /* make left image larger and bring it closer to the cards */
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 1rem;
  /* tighten gap so image is nearer cards */
  align-items: center;
}

.analytics-image {
  width: 100%;
  max-width: 520px;
  /* larger image */
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.24);
  justify-self: end;
  /* align image to the right so it expands toward cards */
}

.faq-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.faq-image {
  width: 100%;
  max-width: 440px;
  justify-self: end;
}

.faq-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: linear-gradient(180deg, #ffffffcc, #fbfdffcc);
  border-radius: 14px;
  padding: 0.5rem;
  margin-bottom: 0.6rem;
  border: 1px solid rgba(16, 24, 40, 0.04);
}

/* Stats two-column layout: image left, 2x2 cards on right */
.stats-layout {
  display: grid;
  /* slightly larger left image column so image can be wider */
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  gap: 2.5rem;
  align-items: center;
}

.analytics-image {
  width: 100%;
  max-width: 520px;
  /* increased image width */
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.24);
  justify-self: start;
}

.stats-cards {
  justify-self: end;
  /* push the cards container to the extreme right */
  width: 100%;
}

.stats-cards .row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: end;
}

.stats-cards .col-6 {
  flex: 0 0 calc(50% - 0.75rem);
  max-width: calc(50% - 0.75rem);
  overflow: visible;
}

.stats-cards .glass-card {
  padding: 1.5rem;
  text-align: center;
  width: 100%;
  overflow: visible !important;
}

@media (max-width: 991.98px) {
  .stats-layout {
    grid-template-columns: 1fr;
  }

  .analytics-image {
    justify-self: center;
    max-width: 360px;
  }

  .stats-cards {
    justify-self: center;
    width: 100%;
  }

  .stats-cards .glass-card {
    width: auto;
  }
}

/* Medium screens (tablets) */
@media (max-width: 991.98px) and (min-width: 768px) {
  .stats-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .analytics-image {
    display: none;
  }

  .stats-cards {
    width: 100%;
    justify-self: center;
  }

  .stats-cards .row {
    justify-content: center;
  }

  .stats-cards .col-6 {
    width: 50%;
  }

  .stat-card {
    padding: 1.5rem 1rem;
    text-align: center;
  }

  .stat-number {
    font-size: 2.2rem;
    display: block;
    overflow: visible;
    white-space: nowrap;
  }

  .stat-card .text-muted {
    font-size: 0.9rem;
    text-align: center;
    white-space: normal;
    line-height: 1.4;
  }
}

/* Small mobile */
@media (max-width: 767px) {
  .stats-section {
    padding: 2rem 1rem;
  }

  .stats-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .analytics-image {
    display: none;
  }

  .stats-cards {
    width: 100%;
  }

  .stats-cards .row {
    justify-content: center;
  }

  .stats-cards .col-6 {
    width: 50%;
  }

  /* Allow stat cards to grow with the animated number */
  .stats-cards .glass-card {
    overflow: visible !important;
    min-height: 100px;
  }

  .stat-card {
    padding: 1rem 0.5rem;
    text-align: left;
    overflow: visible;
  }

  .stat-number {
    font-size: 2.4rem;
    display: block;
    overflow: visible;
    white-space: nowrap;
    line-height: 1.1;
  }

  .stat-card .text-muted {
    font-size: 0.82rem;
    text-align: left;
    white-space: normal;
    line-height: 1.3;
    margin-top: 0.25rem;
  }
}

.faq-feeling {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: linear-gradient(180deg, #fff, #f3f7ff);
  box-shadow: 0 6px 16px rgba(37, 99, 184, 0.06);
  flex-shrink: 0;
}

.faq-body {
  flex: 1;
}

.faq-question {
  font-weight: 700;
  background: transparent;
  border: none;
  padding: 0;
}

.faq-answer {
  color: var(--pse-text-muted);
  padding-top: 0.5rem;
}

.faq-toggle {
  margin-left: auto;
}

@media (prefers-color-scheme: dark) {
  .faq-section {
    background: linear-gradient(180deg, #07102a 0%, #0c1530 45%, #07102a 100%);
  }

  .faq-card {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.04);
  }

  .faq-feeling {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  }
}

@media (max-width: 991.98px) {
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-image {
    width: min(100%, 320px);
    justify-self: center;
    margin: 0 auto;
  }
}

/* Chatbot */
.chatbot-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--pse-gradient);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: var(--pse-shadow-lg);
  z-index: 1050;
  transition: transform 0.2s;
}

.chatbot-toggle:hover {
  transform: scale(1.08);
}

.chatbot-panel {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 48px);
  height: 480px;
  background: var(--pse-surface);
  border: 1px solid var(--pse-border);
  border-radius: var(--pse-radius-xl);
  box-shadow: var(--pse-shadow-lg);
  z-index: 1050;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-panel.open {
  display: flex;
}

.chatbot-header {
  padding: 1rem 1.25rem;
  background: var(--pse-gradient);
  color: #fff;
  font-weight: 600;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.chat-msg {
  max-width: 85%;
  padding: 0.65rem 1rem;
  border-radius: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.chat-msg.bot {
  background: var(--pse-gradient-soft);
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background: var(--pse-primary);
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.chatbot-input-wrap {
  padding: 0.75rem;
  border-top: 1px solid var(--pse-border);
  display: flex;
  gap: 0.5rem;
}

.chatbot-send-btn {
  background: var(--pse-gradient);
  color: #fff;
  border: none;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.chatbot-send-btn:hover {
  opacity: 0.85;
  color: #fff;
}

/* Notifications dropdown */
.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
}

/* Admin table */
.table-pse {
  background: var(--pse-surface);
  border-radius: var(--pse-radius-xl);
  overflow: hidden;
}

.table-pse th {
  background: var(--pse-gradient-soft);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Footer */
.footer-pse {
  background: #e8e2f5;
  border-top: none;
  padding: 4rem 0 2rem;
  margin-top: 0;
  color: #0f172a;
}

.page-home .footer-pse {
  background: #e8e2f5;
}

.footer-pse .text-muted {
  color: #5c5c7a !important;
}

.footer-pse a.text-muted {
  color: #5c5c7a !important;
}

.footer-pse a.text-muted:hover {
  color: #5b21b6 !important;
}

.footer-pse .social-links a {
  color: #5c5c7a !important;
}

.footer-pse .social-links a:hover {
  color: #5b21b6 !important;
}

.footer-pse hr {
  border-color: rgba(91, 33, 182, 0.15) !important;
}

.footer-pse h6 {
  color: #0f172a;
}

.footer-pse .form-control {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(91, 33, 182, 0.2);
  color: #0f172a;
}

.footer-pse .form-control::placeholder {
  color: #9ca3af;
}

.footer-pse .form-control:focus {
  border-color: #5b21b6;
  box-shadow: 0 0 0 3px rgba(91, 33, 182, 0.1);
}

/* ── Contact office cards ──────────────────────────────────────────────── */
.contact-office-card {
  border: 1px solid rgba(91, 33, 182, 0.12);
  transition: box-shadow 0.2s, transform 0.15s;
}

.contact-office-card:hover {
  box-shadow: 0 8px 24px rgba(91, 33, 182, 0.14);
  transform: translateY(-3px);
}

.contact-office-icon {
  width: 52px;
  height: 52px;
  background: rgba(91, 33, 182, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #5b21b6;
  margin: 0 auto;
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #5b21b6;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-email-link:hover {
  color: #3b0764;
  text-decoration: underline;
}

.footer-join-btn {
  background: var(--pse-gradient);
  color: #fff;
  border: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.footer-join-btn:hover {
  opacity: 0.9;
  color: #fff;
}

/* Utilities */
.text-gradient {
  background: var(--pse-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge-pse {
  background: var(--pse-gradient-soft);
  color: var(--pse-primary);
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s, transform 0.6s;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--pse-border);
  background: var(--pse-glass);
  color: var(--pse-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1060;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}

.search-overlay.open {
  display: flex;
}

.search-box {
  width: 100%;
  max-width: 560px;
  background: var(--pse-surface);
  border-radius: var(--pse-radius-xl);
  padding: 1.5rem;
  box-shadow: var(--pse-shadow-lg);
}

.review-star-input i {
  cursor: pointer;
  color: #d1d5db;
  transition: color 0.15s;
}

.review-star-input i.active,
.review-star-input i:hover {
  color: #fbbf24;
}

/* Dashboard Enhancements */
body.dashboard-body {
  background: var(--pse-gradient-page);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

[data-theme="dark"] body.dashboard-body {
  background: linear-gradient(180deg, var(--pse-bg) 0%, #12102a 28%, #0f1729 55%, #12102a 82%, var(--pse-bg) 100%);
}

.dashboard-container {
  display: flex;
  margin-top: 80px;
  /* Navbar height */
  background: transparent;
  padding: 0;
  box-sizing: border-box;
  margin-left: 140px;
  margin-right: 0;
  /* Extends to absolute right */
}

@media (max-width: 991.98px) {
  .dashboard-container {
    margin-left: 0;
    margin-right: 0;
  }
}

.dashboard-main {
  flex: 1;
  min-width: 0;
  padding: 2.5rem 2rem 2.5rem 2.5rem;
  min-height: calc(100vh - 80px);
  overflow-x: hidden;
  box-sizing: border-box;
}

@media (max-width: 991.98px) {
  .dashboard-container {
    margin-left: 0 !important;
  }

  .navbar-brand.brand-logo-wrap {
    margin-left: 0 !important;
  }

  /* Sidebar hidden off-screen on mobile — slides in on toggle */
  .dashboard-sidebar-new:not(.sidebar-open) {
    transform: translateX(-100%);
  }
}

@media (min-width: 992px) {

  /* Desktop: sidebar visible by default */
  .dashboard-sidebar-new {
    transform: translateX(0) !important;
  }

  .sidebar-overlay,
  .sidebar-open-fab {
    display: none !important;
  }
  .sidebar-close-btn {
    display: none !important;
  }
}

/* Close button inside sidebar */
/* Close button — hidden on desktop, visible on mobile */
.sidebar-close-btn {
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  transition: background 0.2s;
  margin: 0 auto;
}

.sidebar-close-btn:hover {
  background: rgba(255,255,255,0.32);
}

/* Show on mobile */
@media (max-width: 991.98px) {
  .sidebar-close-btn {
    display: flex !important;
  }
}

/* Sidebar toggle inside navbar */
/* Hide navbar sidebar button on mobile — navbar stays full width */
.sidebar-nav-toggle {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 0.4rem;
  display: flex;
  align-items: center;
  line-height: 1;
  margin-right: 0.5rem;
  transition: background 0.2s;
}

.sidebar-nav-toggle:hover { background: rgba(0,0,0,0.07); }


.dashboard-sidebar-new {
  position: fixed;
  top: 0;
  left: 0;
  width: 140px;
  height: 100vh;
  background: #5b21b6;
  display: flex;
  flex-direction: column;
  padding: 0;
  z-index: 1050;
  border-right: none;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease;
}

.dashboard-sidebar-new.sidebar-open {
  transform: translateX(0) !important;
}

/* Dim overlay when sidebar is open */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1049;
}

.sidebar-overlay.active {
  display: block;
}

/* Sidebar hidden — slides off screen */
.dashboard-sidebar-new.sidebar-open {
  transform: translateX(-100%);
}

/* Toggle button */
.sidebar-toggle-btn {
  position: fixed;
  top: 0.9rem;
  left: 148px;
  z-index: 1100;
  width: 34px;
  height: 34px;
  border-radius: 0.5rem;
  border: none;
  background: #5b21b6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.2s, left 0.3s ease;
}

.sidebar-toggle-btn:hover {
  background: #4c1d95;
}

/* Move toggle when sidebar is hidden */
.dashboard-sidebar-new.sidebar-open~* .sidebar-toggle-btn,
body .dashboard-sidebar-new.sidebar-open+.dashboard-container .sidebar-toggle-btn {
  left: 1rem;
}

/* When sidebar is hidden, move toggle btn */
.sidebar-toggle-btn.sidebar-hidden {
  left: 1rem;
}

/* Overlay for mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1049;
}

.sidebar-overlay.active {
  display: block;
}

@media (max-width: 768px) {
  .dashboard-sidebar-new {
    transform: translateX(-100%);
  }

  .dashboard-sidebar-new.sidebar-open {
    transform: translateX(0) !important;
  }

  .sidebar-toggle-btn {
    left: 1rem;
  }

  .dashboard-sidebar-new.sidebar-open~.sidebar-toggle-btn,
  .sidebar-toggle-btn.sidebar-mobile-open {
    left: 148px;
  }
}

.sidebar-brand-box {
  width: 140px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.sidebar-logo {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b22a1;
  font-size: 1.8rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.sidebar-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1.25rem 0;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  gap: 0.5rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav-item i {
  font-size: 1.5rem;
  line-height: 1;
}

.sidebar-nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  opacity: 1;
}

.sidebar-nav-item.active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: 700;
}

.sidebar-nav-item.active i {
  color: white;
}

.sidebar-nav-item i {
  font-size: 1.6rem;
  margin-bottom: 2px;
}

.sidebar-nav-item span {
  font-size: 0.72rem;
}

/* Dashboard Content Styling */

/* Dashboard Navbar Sidebar Offset Override */
.dashboard-body #navbar-container .navbar-pse {
  left: 0;
  width: 100%;
}


/* Activity Tracker & Momentum Styles */
.activity-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 1.5rem;
}

.activity-day {
  aspect-ratio: 1;
  border-radius: 6px;
  background: #ffffff;
  /* White when no work */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--pse-text-muted);
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.activity-day.has-activity {
  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
  color: #ffffff;
  font-weight: 700;
  border-color: #8b5cf6;
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.25);
}

.activity-day.is-today {
  outline: 2px solid #7c3aed;
  outline-offset: 1px;
}

/* Removed old activity levels */

.bg-purple-soft {
  background: rgba(124, 58, 237, 0.08);
}

.text-purple {
  color: var(--pse-logo-purple);
}

/* Advanced Horizontal Course Card Style - Premium Redesign */
.course-card-horizontal {
  display: flex;
  gap: 2rem;
  padding: 1.5rem;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #f1f5f9;
  background: #ffffff;
  border-radius: 24px;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.course-card-horizontal:hover {
  border-color: #e2e8f0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
  transform: translateY(-4px);
}

.course-card-horizontal .card-img-wrap {
  width: 200px;
  height: 120px;
  border-radius: 16px;
  overflow: hidden;
  background: #f8fafc;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.course-card-horizontal .play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(79, 70, 229, 0.4);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.course-card-horizontal:hover .play-overlay {
  opacity: 1;
}

.course-card-horizontal .play-btn {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #4f46e5;
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.course-card-horizontal:hover .play-btn {
  transform: scale(1);
}

.course-card-horizontal .card-info {
  flex-grow: 1;
  min-width: 0;
}

/* Stack the ongoing-course card vertically on small screens */
@media (max-width: 767.98px) {
  .course-card-horizontal {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
    border-radius: 18px;
  }
  .course-card-horizontal .card-img-wrap {
    width: 100%;
    height: 180px;
  }
  .course-card-horizontal .card-info {
    width: 100%;
  }
  .course-card-horizontal .card-info h5 {
    font-size: 1.05rem;
  }
  /* meta wraps neatly instead of overflowing to the right */
  .course-card-horizontal .course-meta-inline {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }
  /* full-width action button so it isn't squeezed into a corner */
  .course-card-horizontal .card-info .d-flex.justify-content-end {
    justify-content: stretch !important;
  }
  .course-card-horizontal .btn-resume-premium {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
  }
}

.premium-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  background: #eef2ff;
  color: #4338ca;
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 0.75rem;
}

.course-progress-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
}

.course-progress-container {
  height: 6px !important;
  background: #f1f5f9 !important;
  border-radius: 10px !important;
  overflow: hidden;
}

.course-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4f46e5, #818cf8);
  border-radius: 10px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-resume-premium {
  background: #4f46e5;
  color: white;
  border: none;
  font-weight: 700;
  padding: 0.6rem 1.5rem;
  border-radius: 12px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-resume-premium:hover {
  background: #4338ca;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
  color: white;
}

.course-meta-inline {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.course-meta-item {
  font-size: 0.8rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.course-meta-item i {
  font-size: 1rem;
  color: #94a3b8;
}

.course-progress-container {
  background: #f1f5f9;
  height: 8px;
  border-radius: 99px;
  margin: 0.75rem 0;
  position: relative;
  overflow: hidden;
}

.course-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--pse-logo-purple), var(--pse-logo-blue));
  border-radius: 99px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-status-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--pse-logo-purple);
}

/* Recommended Course Cards - Premium & Minimalist */
.recommended-card-premium {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.recommended-card-premium:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
  border-color: #e2e8f0;
}

.recommend-img-top {
  height: 140px;
  overflow: hidden;
  background: #f8fafc;
  position: relative;
  border-bottom: 1px solid #f1f5f9;
}

.recommend-img-top img {
  transition: transform 0.5s ease;
}

.recommended-card-premium:hover .recommend-img-top img {
  transform: scale(1.05);
}

.recommend-body {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.recommend-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8rem;
}

.recommend-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.25rem;
}

.meta-pill {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  padding: 3px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.meta-pill i {
  font-size: 0.8rem;
  color: #94a3b8;
}

.recommend-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.recommend-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: #1e293b;
}

.btn-details-minimal {
  font-size: 0.75rem;
  font-weight: 700;
  color: #4f46e5;
  text-decoration: none;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 2px;
  transition: gap 0.2s ease;
}

.btn-details-minimal:hover {
  gap: 5px;
  color: #4338ca;
}

.category-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--pse-logo-purple);
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
}

/* Zone 3: Extreme Right Performance Sidebar (Pinned) */
.dashboard-sidebar-column {
  position: sticky;
  top: 80px;
  width: 380px;
  /* Fixed width for the 3rd vertical zone */
  height: calc(100vh - 80px);
  /* Fill the vertical screen */
  z-index: 20;
  align-self: flex-start;
  margin-top: 0;
  padding: 2.5rem 1.5rem;
  background: #fafafa;
  backdrop-filter: none;
  border-left: 1px solid #e2e8f0;
  overflow-y: auto;
  flex-shrink: 0;
}

/* Ensure the contents inside the sidebar don't have double container styling */
.dashboard-sidebar-column .dashboard-card {
  background: transparent;
  box-shadow: none;
  border: none;
  margin-bottom: 2.5rem;
  border-radius: 0;
  padding: 0 !important;
}

/* Course Player Page */
.course-player-shell {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.course-player-topline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--pse-text-muted);
  font-size: 0.95rem;
}

.course-player-backlink {
  color: #7c3aed;
  font-weight: 600;
}

.course-player-backlink:hover,
.course-player-backlink:focus {
  color: #6d28d9;
}

/* Join Live button */
.btn-join-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn-join-live:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.4);
}
.btn-join-live .live-dot {
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* Live session modal */
.live-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(15, 23, 42, 0.5);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.live-modal {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  max-width: 360px; width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  animation: liveModalIn 0.18s ease-out;
}
@keyframes liveModalIn {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.live-modal-icon {
  width: 56px; height: 56px; margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.live-modal-title {
  font-weight: 700; color: #0f172a; margin-bottom: 0.5rem;
}
.live-modal-text {
  color: #64748b; font-size: 0.9rem; line-height: 1.55; margin-bottom: 1.5rem;
}
.live-modal-btn {
  background: linear-gradient(135deg, #5b21b6, #7c3aed);
  color: #fff; border: none;
  padding: 0.6rem 2rem; border-radius: 10px;
  font-weight: 600; font-size: 0.9rem; cursor: pointer;
  transition: opacity 0.2s;
}
.live-modal-btn:hover { opacity: 0.9; }

.course-player-title {
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
  font-weight: 800;
  color: var(--pse-text);
  margin: 0;
}

.course-player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 1.5rem;
  align-items: start;
}

.course-player-stage {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.course-player-card {
  background: var(--pse-surface);
  border: 1px solid var(--pse-border);
  border-radius: 16px;
  box-shadow: var(--pse-shadow-md);
  overflow: hidden;
}

/* Unified hero card that contains media + metadata + overview */
.course-hero-card {
  background: var(--pse-surface);
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(16, 24, 40, 0.06);
  margin-bottom: 1.5rem;
  /* add breathing room below hero */
}

.course-hero-media {
  position: relative;
  aspect-ratio: 16/7;
  background: linear-gradient(135deg, #2b2a6b 0%, #5b3bd6 100%);
  overflow: hidden;
}

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

.course-hero-body {
  padding: 1.25rem 1.5rem;
  padding: 1.5rem 2rem;
  /* increase padding for less cramped layout */
}

.course-hero-overview {
  background: rgba(243, 244, 246, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.course-hero-assignment {
  background: rgba(243, 244, 246, 0.45);
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.55);
  padding: 1rem 1.25rem;
}

.course-hero-assignment p {
  color: var(--pse-text-muted);
  line-height: 1.65;
}

/* ── Professional Assignment Cards ──────────────────────────────────────── */
.asg-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.asg-card {
  background: var(--pse-surface, #ffffff);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.18s ease;
}
.asg-card:hover {
  box-shadow: 0 8px 28px rgba(91, 33, 182, 0.1);
  border-color: rgba(91, 33, 182, 0.3);
  transform: translateY(-2px);
}

/* Card header row: numbered badge + title + due chip */
.asg-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.asg-index {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #ede9fe;
  color: #7c3aed;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.asg-header-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.asg-title {
  font-size: 0.93rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.35;
}
.asg-due-row {
  display: block;
}
.asg-desc {
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.6;
  margin: 0;
  padding-left: calc(30px + 0.85rem);
}
.asg-due {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.asg-due-open   { background: rgba(91, 33, 182, 0.1);  color: #5b21b6; }
.asg-due-soon   { background: rgba(245, 158, 11, 0.15); color: #b45309; }
.asg-due-closed { background: rgba(239, 68, 68, 0.12);  color: #b91c1c; }

/* Footer row: resource links left, submit button right */
.asg-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  margin-top: 0.15rem;
}
.asg-resource-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
}
.asg-resource-links a { color: #5b21b6; text-decoration: none; }
.asg-resource-links a:hover { color: #3b0764; }

/* Submit button */
.btn-asg-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #ede9fe;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
  border-radius: 10px;
  padding: 0.42rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn-asg-submit:hover {
  background: #ddd6fe;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(167, 139, 250, 0.25);
}
.btn-asg-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Assignment submission UI ─────────────────────────────────── */
.asg-submit-area { border-top: 1px solid rgba(91,33,182,0.1); padding-top: 0.85rem; }

.asg-file-pick {
  display: flex; align-items: center; gap: 0.6rem;
  background: #f8fafc; border: 1.5px dashed #cbd5e1;
  border-radius: 10px; padding: 0.6rem 0.9rem;
  font-size: 0.85rem; color: #64748b; margin-bottom: 0.6rem;
}
.asg-file-name { flex: 1; font-size: 0.82rem; color: #94a3b8; }
.asg-browse-btn {
  border: 1px solid #5b21b6; background: transparent;
  color: #5b21b6; border-radius: 6px; padding: 0.2rem 0.7rem;
  font-size: 0.78rem; font-weight: 600; cursor: pointer;
  transition: background 0.15s;
}
.asg-browse-btn:hover { background: rgba(91,33,182,0.07); }

.asg-submit-btn {
  width: 100%; padding: 0.6rem; border-radius: 10px;
  background: linear-gradient(135deg, #5b21b6, #7c3aed);
  color: #fff; border: none; font-weight: 700; font-size: 0.9rem;
  cursor: pointer; transition: opacity 0.2s, transform 0.15s;
}
.asg-submit-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.asg-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.asg-submitted-badge {
  display: flex; align-items: center;
  background: rgba(16,185,129,0.1); color: #065f46;
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 10px; padding: 0.55rem 0.9rem;
  font-size: 0.875rem; font-weight: 600;
}
.asg-submitted-badge i { color: #10b981; font-size: 1rem; }

.asg-resubmit-btn {
  background: none; border: 1px solid #94a3b8; color: #64748b;
  border-radius: 6px; padding: 0.25rem 0.75rem; margin-top: 0.5rem;
  font-size: 0.78rem; font-weight: 600; cursor: pointer;
  transition: border-color 0.15s;
}
.asg-resubmit-btn:hover { border-color: #5b21b6; color: #5b21b6; }

.asg-closed-badge {
  background: rgba(239,68,68,0.08); color: #b91c1c;
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 10px; padding: 0.5rem 0.9rem;
  font-size: 0.85rem; font-weight: 600;
}

.course-player-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0f2b67 0%, #4338ca 100%);
  overflow: hidden;
}

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

.course-player-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  /* more space between chips */
  margin-bottom: 1rem;
  /* increase below-badge spacing */
}

.course-player-meta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  /* slightly larger touch area */
  border-radius: 10px;
  border: 1px solid rgba(124, 58, 237, 0.14);
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 36px;
}

.course-player-video-empty {
  background: linear-gradient(135deg, #2b2a6b 0%, #5b3bd6 65%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.course-player-empty-video {
  text-align: center;
  color: #ffffff;
  max-width: 420px;
  padding: 1.5rem;
}

.course-player-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.6rem;
}

.course-player-empty-video h4 {
  font-size: 1.35rem;
  font-weight: 800;
}

.course-player-empty-video p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.course-player-video-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 22, 40, 0.78) 100%);
  color: #fff;
}

.course-player-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #a855f7;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.35);
}

.course-player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.course-player-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--pse-border);
  background: var(--pse-surface);
  color: var(--pse-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.course-player-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.course-player-description,
.course-player-summary {
  color: var(--pse-text-muted);
  line-height: 1.8;
  font-size: 0.98rem;
}

.course-player-instructor {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-top: 1px solid var(--pse-border);
  background: rgba(248, 250, 252, 0.65);
}

.course-player-avatar {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f2b67 0%, #6366f1 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.course-player-rail {
  position: fixed;
  top: calc(var(--navbar-height) + 8px);
  right: 24px;
  width: 380px;
  height: calc(100vh - var(--navbar-height) - 16px);
  align-self: start;
  background: var(--pse-surface);
  border: 1px solid var(--pse-border);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: var(--pse-shadow-md);
  overflow: auto;
  z-index: 50;
}

.course-player-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.course-player-tab {
  border: 1px solid var(--pse-border);
  background: #fff;
  color: var(--pse-text-muted);
  border-radius: 10px;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.course-player-tab.active {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: #fff;
  border-color: transparent;
}

.course-player-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.course-player-tab-content {
  display: none;
}

.course-player-tab-content.active {
  display: block;
}

.course-player-resources {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.course-player-reviews {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.course-player-review-form {
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.course-player-review-form .form-control {
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 0.95rem;
  padding: 0.75rem;
}

.course-player-review-form .btn {
  background: #c4b5fd;
  color: #fff;
  border: none;
  font-weight: 600;
}

.course-player-review-form .btn:hover {
  background: #a78bfa;
  color: #fff;
}

.course-player-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 300px;
  overflow-y: auto;
}

.course-player-review-card {
  padding: 1rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.course-player-review-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.course-player-review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.course-player-review-name {
  font-weight: 700;
  color: var(--pse-text);
}

.course-player-review-meta {
  font-size: 0.78rem;
  color: var(--pse-text-muted);
}

.course-player-review-text {
  margin: 0;
  color: var(--pse-text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.course-player-empty-state {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px dashed rgba(139, 92, 246, 0.24);
  color: #5b21b6;
  font-weight: 600;
  text-align: center;
}

.course-player-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.8rem;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.course-player-item:hover,
.course-player-item.active {
  border-color: #c4b5fd;
  box-shadow: 0 10px 22px rgba(99, 102, 241, 0.12);
  transform: translateY(-1px);
}

.course-player-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #f3f4f6;
  color: #4f46e5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.course-player-item-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--pse-text);
  margin: 0 0 0.5rem 0;
  /* add small space below title */
}

.course-player-item-meta {
  font-size: 0.78rem;
  color: var(--pse-text-muted);
}

.course-player-support {
  padding: 1rem;
  border-top: 1px solid var(--pse-border);
  margin-top: 1rem;
  background: #f8fafc;
  border-radius: 16px;
}

@media (max-width: 1199.98px) {
  .course-player-layout {
    grid-template-columns: 1fr;
  }

  .course-player-rail {
    position: static;
    max-height: none;
  }
}

@media (max-width: 991.98px) {
  .course-player-shell {
    gap: 1rem;
  }
  /* Symmetric, tighter padding so the player content is centered on mobile */
  .dashboard-main {
    padding: 1.25rem 1rem !important;
  }
}

.dashboard-card.bg-primary {
  background: #eef2ff !important;
  color: #312e81 !important;
  border-radius: 16px;
  padding: 1.5rem !important;
  border: 1px solid #e0e7ff !important;
}

.dashboard-card.bg-primary h6 {
  color: #4338ca !important;
}

.dashboard-card.bg-primary .h3 {
  color: #312e81 !important;
}

.activity-day {
  aspect-ratio: 1;
  border-radius: 4px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--pse-text-muted);
  border: 1px solid transparent;
}

/* ══════════════════════════════════════════════════════════════════
   COURSE DETAILS PAGE  —  PSE blue/purple brand palette
   ══════════════════════════════════════════════════════════════════ */

/* Page-level reset: white body, no mesh, no gradient-page bleed */
.page-course-details {
  background: var(--pse-gradient-page) !important;
}

.page-course-details .bg-mesh {
  display: none;
}

.page-course-details .course-details-main {
  background: transparent;
  padding-top: 0 !important;
}

/* Strip Bootstrap .container padding + .py-5 so hero can go edge-to-edge */
.page-course-details .course-details-main>.container {
  padding: 0 !important;
  max-width: 100% !important;
}

.page-course-details #courseDetail {
  padding: 0 !important;
}

/* ── Hero (full-viewport width) ───────────────────────────────── */
.cd-hero {
  /* PSE brand: deep navy → royal blue → purple */
  background: linear-gradient(135deg,
      #0a1c46 0%,
      #0f2b67 30%,
      #1a3a8f 55%,
      #4338ca 80%,
      #6366f1 100%);
  /* increased vertical padding and minimum height for a longer hero */
  padding: calc(var(--navbar-height) + 4rem) 0 4rem;
  min-height: 560px;
  position: relative;
  overflow: hidden;
  /* break out of any parent container */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.cd-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 85% 50%, rgba(99, 102, 241, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 15% 20%, rgba(0, 120, 212, 0.2) 0%, transparent 55%);
  pointer-events: none;
}

/* subtle grid overlay like the main hero */
.cd-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 10%, transparent 80%);
  pointer-events: none;
}

.cd-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Breadcrumb */
.cd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  margin-bottom: 1.5rem;
}

.cd-bc-link {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.cd-bc-link:hover {
  color: #7dd3fc;
}

.cd-bc-sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.7rem;
}

.cd-bc-current {
  color: #a5b4fc;
  font-weight: 600;
}

/* Hero body — title left, image right */
.cd-hero-body {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.cd-hero-copy {
  flex: 1;
  min-width: 0;
}

.cd-hero-title {
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.cd-hero-sub {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 520px;
}

.cd-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.cd-btn-start {
  background: #ffffff;
  color: #0f2b67;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.75rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

/* Extra inner spacing so content sits lower on large screens */
.cd-hero .cd-hero-inner.container {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.cd-btn-start:hover {
  background: #e0e7ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.cd-rating-inline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cd-rating-num {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

.cd-stars-inline .cd-star,
.cd-review-stars .cd-star {
  color: #f6c942;
  font-size: 0.85rem;
}

.cd-stat-pill {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
}

/* Hero image */
.cd-hero-visual {
  flex-shrink: 0;
  width: min(340px, 38vw);
}

.cd-hero-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 1.25rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.cd-hero-img-placeholder {
  width: 100%;
  height: 220px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 767px) {
  .cd-hero-body {
    flex-direction: column;
    gap: 1.5rem;
  }

  .cd-hero-visual {
    width: 100%;
  }

  .cd-hero-img,
  .cd-hero-img-placeholder {
    height: 200px;
  }

  .cd-hero {
    margin-left: 0;
    width: 100%;
  }
}

/* ── Body two-column layout ───────────────────────────────────── */
.cd-body {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

.cd-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 991px) {
  .cd-layout {
    grid-template-columns: 1fr;
  }
}

/* ── Section cards (white, edge-to-edge feel via no outer margin) */
.cd-section-card {
  background: #ffffff;
  border: 1px solid #dde3f5;
  border-radius: 1rem;
  padding: 1.75rem 1.75rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(67, 56, 202, 0.06);
}

[data-theme="dark"] .cd-section-card {
  background: var(--pse-surface);
  border-color: var(--pse-border);
}

.cd-section-card {
  /* ensure text inside white cards is dark even when inherited from hero */
  color: var(--pse-text) !important;
}

.cd-section-card .cd-section-head {
  color: var(--pse-text) !important;
}

.cd-section-card .cd-section-lead {
  color: var(--pse-text-muted) !important;
}

.cd-section-head {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pse-text);
  margin-bottom: 1rem;
}

.cd-section-lead {
  font-size: 0.9375rem;
  color: var(--pse-text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.cd-divider {
  border: none;
  border-top: 1px solid #dde3f5;
  margin: 1rem 0;
}

[data-theme="dark"] .cd-divider {
  border-color: var(--pse-border);
}

/* ── Learn bullets ────────────────────────────────────────────── */
.cd-learn-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--pse-text-muted);
  line-height: 1.55;
}

.cd-check-icon {
  color: #4f46e5;
  font-size: 1rem;
  margin-top: 0.05rem;
  flex-shrink: 0;
}

.cd-show-more,
.cd-show-more-sidebar {
  background: none;
  border: none;
  color: #4338ca;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 0 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s;
}

.cd-show-more:hover,
.cd-show-more-sidebar:hover {
  color: #3730a3;
}

/* ── Accordion ────────────────────────────────────────────────── */
.cd-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cd-accordion-item {
  border: 1px solid #dde3f5;
  border-radius: 0.75rem;
  overflow: hidden;
}

[data-theme="dark"] .cd-accordion-item {
  border-color: var(--pse-border);
}

.cd-accordion-head {
  width: 100%;
  background: #fff;
  border: none;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.2s;
}

[data-theme="dark"] .cd-accordion-head {
  background: var(--pse-surface);
}

/* Related courses */
.cd-related-card {
  background: #ffffff;
  border: 1px solid #eef2f8;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cd-related-card a {
  text-decoration: none;
  color: inherit;
}

.cd-related-img-wrap {
  height: 120px;
  overflow: hidden;
  background: #f8fafc;
}

.cd-related-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cd-related-body {
  padding: 0.8rem;
}

.cd-related-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--pse-text);
  margin-bottom: 0.25rem;
}

.cd-related-meta {
  color: var(--pse-text-muted);
  font-size: 0.82rem;
}

.cd-related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(15, 30, 60, 0.08);
}

.cd-view-all-btn {
  display: inline-block;
  padding: 0.8rem 2.2rem;
  border-radius: 999px;
  background: #fff;
  color: #21243a;
  border: 1px solid #e6eaf0;
  font-weight: 700;
  text-decoration: none;
}

.cd-view-all-btn:hover {
  box-shadow: 0 10px 30px rgba(34, 60, 80, 0.06);
  transform: translateY(-2px);
}

[data-theme="dark"] .cd-accordion-head {
  background: var(--pse-surface);
}

.cd-accordion-head:hover,
.cd-accordion-head.open {
  background: #eef2ff;
}

[data-theme="dark"] .cd-accordion-head:hover,
[data-theme="dark"] .cd-accordion-head.open {
  background: rgba(99, 102, 241, 0.1);
}

.cd-acc-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cd-acc-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--pse-text);
}

.cd-acc-badge {
  background: #e0e7ff;
  color: #4338ca;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

[data-theme="dark"] .cd-acc-badge {
  background: rgba(99, 102, 241, 0.18);
  color: #a5b4fc;
}

.cd-acc-icon {
  color: var(--pse-text-muted);
  font-size: 0.95rem;
}

.cd-accordion-body {
  display: none;
  padding: 0.25rem 0;
}

.cd-accordion-body.open {
  display: block;
}

/* Lesson rows inside accordion */
.cd-lesson-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.1rem;
  border-top: 1px solid #f0f4ff;
  font-size: 0.875rem;
  color: var(--pse-text);
}

[data-theme="dark"] .cd-lesson-row {
  border-color: var(--pse-border);
}

.cd-lesson-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.cd-lesson-icon {
  color: #6366f1;
  font-size: 1rem;
}

.cd-lesson-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cd-lesson-dur {
  color: var(--pse-text-muted);
  font-size: 0.8rem;
}

.cd-preview-link {
  color: #4f46e5;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.cd-preview-link:hover {
  color: #3730a3;
}

.cd-lock-icon {
  color: #cbd5e1;
  font-size: 0.85rem;
}

/* ── Instructor ───────────────────────────────────────────────── */
.cd-instructor {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.cd-instructor-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--pse-gradient);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(67, 56, 202, 0.25);
}

.cd-instructor-info {
  flex: 1;
  min-width: 0;
}

.cd-instructor-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pse-text);
  margin-bottom: 0.15rem;
}

.cd-instructor-role {
  font-size: 0.875rem;
  color: var(--pse-text-muted);
  margin-bottom: 0.6rem;
}

.cd-instructor-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--pse-text-muted);
  margin-bottom: 0.75rem;
  align-items: center;
}

.cd-star-gold {
  color: #f6c942;
}

.cd-inst-badge {
  background: #e0e7ff;
  color: #4338ca;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

[data-theme="dark"] .cd-inst-badge {
  background: rgba(99, 102, 241, 0.18);
  color: #a5b4fc;
}

.cd-instructor-bio {
  font-size: 0.875rem;
  color: var(--pse-text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.cd-instructor-socials {
  display: flex;
  gap: 0.6rem;
}

/* Social buttons (shared) */
.cd-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #dde3f5;
  background: #fff;
  color: var(--pse-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

[data-theme="dark"] .cd-social-btn {
  background: var(--pse-surface);
  border-color: var(--pse-border);
}

.cd-social-btn:hover {
  border-color: #6366f1;
  color: #4338ca;
  background: #eef2ff;
}

/* ── Rating summary ───────────────────────────────────────────── */
.cd-rating-summary {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: #f5f7ff;
  border: 1px solid #dde3f5;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
}

[data-theme="dark"] .cd-rating-summary {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--pse-border);
}

.cd-rating-big {
  text-align: center;
  flex-shrink: 0;
}

.cd-rating-score {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--pse-text);
  line-height: 1;
}

.cd-rating-stars-big .cd-star {
  color: #f6c942;
  font-size: 1.1rem;
}

.cd-rating-label {
  font-size: 0.75rem;
  color: var(--pse-text-muted);
  margin-top: 0.25rem;
}

.cd-rating-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cd-rating-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cd-rating-stars-sm .cd-star {
  color: #f6c942;
  font-size: 0.7rem;
}

.cd-rating-bar-wrap {
  flex: 1;
  height: 6px;
  background: #dde3f5;
  border-radius: 999px;
  overflow: hidden;
}

[data-theme="dark"] .cd-rating-bar-wrap {
  background: rgba(255, 255, 255, 0.08);
}

.cd-rating-bar {
  height: 100%;
  background: linear-gradient(90deg, #4338ca, #6366f1);
  border-radius: 999px;
  transition: width 0.6s ease;
}

.cd-rating-pct {
  font-size: 0.75rem;
  color: var(--pse-text-muted);
  width: 30px;
  text-align: right;
}

@media (max-width: 576px) {
  .cd-rating-summary {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ── Review cards ─────────────────────────────────────────────── */
.cd-review-card {
  padding: 1.25rem 0;
  border-bottom: 1px solid #eef2ff;
}

[data-theme="dark"] .cd-review-card {
  border-color: var(--pse-border);
}

.cd-review-card:last-child {
  border-bottom: none;
}

.cd-review-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.6rem;
}

.cd-reviewer-avatar {
  width: 56px;
  height: 56px;
  border-radius: 0.5rem;
  background: var(--pse-gradient);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cd-reviewer-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--pse-text);
}

.cd-review-comment {
  font-size: 0.875rem;
  color: var(--pse-text-muted);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.cd-review-actions {
  display: flex;
  gap: 0.5rem;
}

.cd-thumb-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #dde3f5;
  background: #fff;
  color: var(--pse-text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}

[data-theme="dark"] .cd-thumb-btn {
  background: var(--pse-surface);
  border-color: var(--pse-border);
}

.cd-thumb-btn:hover {
  border-color: #6366f1;
  color: #4f46e5;
}

/* ── Sidebar card ─────────────────────────────────────────────── */
.cd-sidebar {
  position: sticky;
  top: calc(var(--navbar-height) + 1.5rem);
}

@media (max-width: 991px) {
  .cd-sidebar {
    position: static;
  }
}

.cd-sidebar-card {
  background: #fff;
  border: 1.5px solid #dde3f5;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(67, 56, 202, 0.1);
}

[data-theme="dark"] .cd-sidebar-card {
  background: var(--pse-surface);
  border-color: var(--pse-border);
}

/* Pricing */
.cd-price-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.cd-price-current {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--pse-text);
}

.cd-price-original {
  font-size: 1rem;
  color: var(--pse-text-muted);
  text-decoration: line-through;
}

.cd-price-badge {
  font-size: 0.775rem;
  font-weight: 600;
  color: #d97706;
  background: #fef3c7;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
}

/* Sidebar CTA buttons */
.cd-btn-cart {
  background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
  color: #fff;
  border: none;
  border-radius: 0.6rem;
  padding: 0.8rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  margin-bottom: 0.65rem;
  transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
  display: block;
  text-align: center;
  box-shadow: 0 4px 16px rgba(67, 56, 202, 0.3);
}

.cd-btn-cart:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(67, 56, 202, 0.4);
}

.cd-btn-buy {
  background: #eef2ff;
  color: #4338ca;
  border: 2px solid #dde3f5;
  border-radius: 0.6rem;
  padding: 0.7rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  display: block;
  text-align: center;
}

[data-theme="dark"] .cd-btn-buy {
  border-color: var(--pse-border);
}

.cd-btn-buy:hover {
  border-color: #6366f1;
  background: #eef2ff;
  color: #4338ca;
}

.cd-guarantee {
  text-align: center;
  font-size: 0.8rem;
  color: var(--pse-text-muted);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* Meta rows */
.cd-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid #eef2ff;
}

[data-theme="dark"] .cd-meta-row {
  border-color: var(--pse-border);
}

.cd-meta-row:last-of-type {
  border-bottom: none;
}

.cd-meta-label {
  color: var(--pse-text);
  font-weight: 500;
}

.cd-meta-value {
  color: #4338ca;
  font-weight: 600;
  background: #e0e7ff;
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  font-size: 0.8rem;
}

[data-theme="dark"] .cd-meta-value {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}

/* Sidebar socials */
.cd-sidebar-socials {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
}

.cd-contact-label {
  text-align: center;
  font-size: 0.8rem;
  color: var(--pse-text-muted);
  margin: 0.6rem 0 0.5rem;
}

.cd-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #4338ca;
  border-radius: 0.6rem;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.cd-call-btn:hover {
  background: #e0e7ff;
  border-color: #818cf8;
  color: #3730a3;
}

[data-theme="dark"] .cd-call-btn {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
}

/* ══════════════════════════════════════════════════════════════════
   WORKSHOP EXAM PLATFORM  —  Professional AI Course Exams
   ══════════════════════════════════════════════════════════════════ */

/* Workshop Hero Banner */
/* ── Workshop Hero ─────────────────────────────────────────────────────── */
.wh-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--pse-radius-xl, 1rem);
  background: #512da8;
  border: none;
  color: #fff;
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(59, 7, 100, 0.4);
}

/* Subtle top-right accent stripe */
.wh-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #5b21b6);
  border-radius: 0 var(--pse-radius-xl) 0 0;
}

/* Decorative background */
.wh-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.wh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}

.wh-orb-1 {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  top: -100px;
  right: -60px;
}

.wh-orb-2 {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.2) 0%, transparent 70%);
  bottom: -70px;
  left: 8%;
}

.wh-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
}

/* Inner layout */
.wh-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
}

/* Left — text */
.wh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #e9d5ff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 2rem;
  margin-bottom: 0.9rem;
}

.wh-hero-title {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
  color: #fff;
}

.wh-title-accent {
  color: #c4b5fd;
}

.wh-hero-subtitle {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  max-width: 500px;
  margin-bottom: 1.4rem;
}

.wh-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wh-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ede9fe;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
}

/* Right — stat cards */
.wh-hero-stats {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 195px;
}

.wh-stat-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--pse-radius, 0.75rem);
  padding: 0.8rem 1rem;
  backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.15s;
}

.wh-stat-card:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.wh-stat-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  font-size: 1rem;
  color: #e9d5ff;
  flex-shrink: 0;
}

.wh-stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.wh-stat-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

/* Dark theme — hero already dark so minimal change needed */
[data-theme="dark"] .wh-hero {
  background: linear-gradient(135deg, #2e0554 0%, #3b0764 50%, #4c1d95 100%);
}

/* Responsive */
@media (max-width: 768px) {
  .wh-hero {
    padding: 1.75rem 1.25rem;
  }

  .wh-hero-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .wh-hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
  }

  .wh-stat-card {
    flex: 1 1 140px;
  }
}

@media (max-width: 480px) {
  .wh-hero-stats {
    flex-direction: column;
  }

  .wh-stat-card {
    flex: 1 1 auto;
  }
}

/* ── Workshop Filter Bar ───────────────────────────────────────────────── */
.workshop-filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: var(--glass-bg, rgba(255, 255, 255, 0.55));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color, rgba(92, 6, 50, 0.1));
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* Search input */
.wf-search {
  position: relative;
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 320px;
}

.wf-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pse-muted, #888);
  font-size: 0.9rem;
  pointer-events: none;
}

.wf-search-input {
  width: 100%;
  padding: 0.45rem 0.9rem 0.45rem 2.2rem;
  border: 1.5px solid var(--border-color, #e0e7ff);
  border-radius: 2rem;
  background: transparent;
  font-size: 0.875rem;
  color: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wf-search-input:focus {
  border-color: #5C0632;
  box-shadow: 0 0 0 3px rgba(92, 6, 50, 0.1);
}

.wf-search-input::placeholder {
  color: var(--pse-muted, #aaa);
}

/* Pill groups */
.wf-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.wf-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pse-muted, #888);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  margin-right: 0.15rem;
}

.wf-pill {
  padding: 0.3rem 0.85rem;
  border-radius: 2rem;
  border: 1.5px solid var(--border-color, #ddd);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--pse-text, #333);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.1s;
  white-space: nowrap;
}

.wf-pill:hover {
  border-color: #5C0632;
  color: #5C0632;
  transform: translateY(-1px);
}

.wf-pill.active {
  background: #5C0632;
  border-color: #5C0632;
  color: #fff;
  font-weight: 600;
}

/* Dark theme */
[data-theme="dark"] .workshop-filterbar {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .wf-search-input {
  border-color: rgba(255, 255, 255, 0.15);
  color: #e0e0e0;
}

[data-theme="dark"] .wf-pill {
  border-color: rgba(255, 255, 255, 0.18);
  color: #ccc;
}

[data-theme="dark"] .wf-pill:hover {
  border-color: #e0829a;
  color: #e0829a;
}

[data-theme="dark"] .wf-pill.active {
  background: #8a1040;
  border-color: #8a1040;
  color: #fff;
}

@media (max-width: 640px) {
  .workshop-filterbar {
    gap: 0.6rem;
  }

  .wf-search {
    max-width: 100%;
    flex-basis: 100%;
  }

  .wf-pills {
    gap: 0.35rem;
  }
}

/* Workshop Container */
.workshop-container {
  min-height: 400px;
}

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .workshop-grid {
    grid-template-columns: 1fr;
  }
}

/* Skeleton Loading Cards */
.course-card-skeleton {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.course-card-skeleton .skeleton-img {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.course-card-skeleton .skeleton-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Workshop Course Cards */
.workshop-course-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.workshop-course-card:hover {
  box-shadow: 0 8px 24px rgba(92, 6, 50, 0.15);
  transform: translateY(-2px);
  border-color: #e0e7ff;
}

.course-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f8f9fa;
  position: relative;
  z-index: 1;
}

.course-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-not-started {
  background: #e0e0e0;
  color: #616161;
}

.status-in-progress {
  background: #fff3cd;
  color: #856404;
}

.status-completed {
  background: #d4edda;
  color: #155724;
}

.course-difficulty {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: #f0f0f0;
}

.course-difficulty[data-difficulty="beginner"] {
  background: #e3f2fd;
  color: #1565c0;
}

.course-difficulty[data-difficulty="intermediate"] {
  background: #fff3e0;
  color: #ef6c00;
}

.course-difficulty[data-difficulty="advanced"] {
  background: #fce4ec;
  color: #c2185b;
}

.course-card-thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 66.67%;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ebf0 100%);
  overflow: hidden;
}

.course-thumbnail-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-icon-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: rgba(92, 6, 50, 0.6);
  opacity: 0.8;
}

.course-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pse-text);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.course-card-description {
  font-size: 0.9rem;
  color: var(--pse-text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
  flex: 1;
}

.course-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--pse-text-muted);
}

.meta-item i {
  color: #5C0632;
  font-size: 1rem;
}

.course-score {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: #d4edda;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.score-label {
  font-size: 0.85rem;
  color: #155724;
  font-weight: 600;
}

.score-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #155724;
}

.course-progress {
  margin-bottom: 1rem;
}

.course-progress .progress {
  height: 6px;
  border-radius: 999px;
  background: #e0e0e0;
  margin-bottom: 0.5rem;
}

.course-progress .progress-bar {
  background: linear-gradient(90deg, #5C0632, #8d1345);
  border-radius: 999px;
}

.course-progress small {
  font-size: 0.8rem;
  color: var(--pse-text-muted);
}

.course-card-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

/* Exam Action Buttons */
.btn-exam-start,
.btn-exam-resume,
.btn-exam-retake,
.btn-exam-primary {
  padding: 0.65rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
}

.btn-exam-start,
.btn-exam-primary {
  background: #5C0632;
  color: white;
}

.btn-exam-start:hover,
.btn-exam-primary:hover {
  background: linear-gradient(135deg, #5C0632, #3D0A1F);
  box-shadow: 0 6px 20px rgba(92, 6, 50, 0.3);
  transform: translateY(-1px);
  color: white;
  text-decoration: none;
}

.btn-exam-start:active,
.btn-exam-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(92, 6, 50, 0.2);
}

.btn-exam-resume {
  background: #FFB300;
  color: #333;
}

.btn-exam-resume:hover {
  background: #E5A93C;
  box-shadow: 0 6px 20px rgba(229, 169, 60, 0.3);
  transform: translateY(-1px);
  color: #333;
  text-decoration: none;
}

.btn-exam-retake {
  background: #e0e7ff;
  color: #4338ca;
}

.btn-exam-retake:hover {
  background: #c7d2fe;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.2);
  transform: translateY(-1px);
  color: #3730a3;
  text-decoration: none;
}

/* Exam Modal */
.exam-modal-content {
  padding: 0.5rem 0;
}

.exam-course-info {
  margin-bottom: 1rem;
}

.exam-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 0.95rem;
}

.detail-label {
  font-weight: 600;
  color: var(--pse-text);
}

.detail-value {
  color: #5C0632;
  font-weight: 700;
}

.exam-warning {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem !important;
  border-radius: 8px;
  margin: 1rem 0 0 0 !important;
  background: #fff3cd !important;
  border: 1px solid #ffc107 !important;
  color: #856404 !important;
}

.exam-warning i {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Dark Mode Support */

[data-theme="dark"] .workshop-course-card {
  background: #2d2d2d;
  border-color: #444;
}

[data-theme="dark"] .workshop-course-card:hover {
  box-shadow: 0 8px 24px rgba(92, 6, 50, 0.25);
}

[data-theme="dark"] .course-card-header {
  background: #3a3a3a;
}

[data-theme="dark"] .course-card-title {
  color: #fff;
}

[data-theme="dark"] .course-card-description {
  color: #e0e0e0;
}

[data-theme="dark"] .meta-item {
  color: #b0b0b0;
}


.workshop-course-card:hover {
  box-shadow: 0 10px 26px rgba(91, 33, 182, 0.18);
  border-color: rgba(124, 58, 237, 0.38);
}

.meta-item i,
.detail-value,
.course-icon-overlay {
  color: #5b21b6;
}

.course-progress .progress-bar {
  background: linear-gradient(90deg, #5b21b6, #7c3aed);
}

.filter-group .form-select:focus,
.filter-group .form-control:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.2);
}

.btn-exam-start,
.btn-exam-primary {
  background: linear-gradient(90deg, #5b21b6 0%, #7c3aed 100%);
}

.btn-exam-start:hover,
.btn-exam-primary:hover {
  background: linear-gradient(90deg, #4c1d95 0%, #6d28d9 100%);
  box-shadow: 0 8px 22px rgba(91, 33, 182, 0.32);
}

.btn-exam-retake {
  background: #ede9fe;
  color: #5b21b6;
}

.btn-exam-retake:hover {
  background: #ddd6fe;
  color: #4c1d95;
}

.workshop-course-card .status-not-started {
  background: #f5f3ff;
  color: #5b21b6;
}

.workshop-course-card .status-in-progress {
  background: #ede9fe;
  color: #6d28d9;
}

.workshop-course-card .status-completed {
  background: #ddd6fe;
  color: #4c1d95;
}

.workshop-course-card .course-difficulty[data-difficulty="beginner"] {
  background: #f5f3ff;
  color: #5b21b6;
}

.workshop-course-card .course-difficulty[data-difficulty="intermediate"] {
  background: #ede9fe;
  color: #6d28d9;
}

.workshop-course-card .course-difficulty[data-difficulty="advanced"] {
  background: #ddd6fe;
  color: #4c1d95;
}


/* ── Workshop Exam Card ────────────────────────────────────────────────── */
.workshop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.wec-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.2s;
}

.wec-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.wec-body {
  flex: 1;
  padding: 1.25rem 1.25rem 1rem;
}

/* Header row — icon + badges */
.wec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.wec-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.wec-badges {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.wec-type-badge,
.wec-level-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 2rem;
}

/* Title & description */
.wec-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--pse-text);
  margin-bottom: 0.5rem;
}

.wec-desc {
  font-size: 0.83rem;
  color: var(--pse-text-muted);
  line-height: 1.6;
  margin-bottom: 1.1rem;
}

/* Stats row */
.wec-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.wec-stat {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--pse-text-muted);
  font-weight: 500;
}

.wec-stat i {
  font-size: 0.82rem;
}

/* Footer / CTA */
.wec-footer {
  padding: 0.9rem 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(0, 0, 0, 0.015);
}

.wec-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: 0.6rem;
  background: #7c3aed;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s, transform 0.12s;
}

.wec-btn:hover {
  background: #6d28d9;
  color: #fff;
  transform: translateY(-1px);
}

.wec-btn i {
  font-size: 0.9rem;
  transition: transform 0.18s;
}

.wec-btn:hover i {
  transform: translateX(3px);
}

/* Dark theme */
[data-theme="dark"] .wec-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .wec-footer {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .wec-stats {
  border-color: rgba(255, 255, 255, 0.08);
}

/* ── Exam Instructions Modal ───────────────────────────────────────────── */
.exam-instr-modal {
  border: none;
  border-radius: 1.25rem;
  overflow: hidden;
}

.exam-instr-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: linear-gradient(135deg, #5b21b6 0%, #4c1d95 100%);
  color: #fff;
  padding: 1.75rem 2rem;
}

.exam-instr-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.exam-instr-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
  margin: 0 0 0.2rem;
}

.exam-instr-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 0.6rem;
  color: #fff;
}

.exam-instr-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  opacity: 0.88;
}

.exam-instr-body {
  padding: 1.5rem 2rem 1rem;
}

.exam-instr-intro {
  font-size: 0.875rem;
  color: #4b5563;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}

.exam-instr-rules {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.exam-instr-rule {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.eir-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.eir-icon--warn {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.eir-icon--danger {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.eir-icon--info {
  background: rgba(91, 33, 182, 0.08);
  color: #5b21b6;
}

.eir-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.eir-desc {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.55;
}

.exam-instr-agree {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: rgba(91, 33, 182, 0.05);
  border: 1px solid rgba(91, 33, 182, 0.15);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  font-size: 0.83rem;
  color: #374151;
  font-weight: 500;
}

.exam-instr-footer {
  padding: 1rem 2rem 1.25rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.exam-instr-begin-btn {
  background: #5b21b6;
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 0.6rem;
  transition: background 0.2s;
}

.exam-instr-begin-btn:not(.disabled):hover {
  background: #4c1d95;
  color: #fff;
}

.exam-instr-begin-btn.disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* ── Exam page ─────────────────────────────────────────────────────────── */
.exam-option {
  background: var(--glass-bg, rgba(255, 255, 255, 0.06));
  border-color: var(--border-color, rgba(255, 255, 255, 0.12)) !important;
  color: inherit;
  transition: background 0.15s, border-color 0.15s;
}

.exam-option:hover {
  background: rgba(var(--bs-primary-rgb), 0.08);
  border-color: var(--bs-primary) !important;
}

.exam-option-selected {
  background: rgba(var(--bs-primary-rgb), 0.15) !important;
  border-color: var(--bs-primary) !important;
  font-weight: 600;
}

[data-theme="dark"] .exam-option {
  background: rgba(255, 255, 255, 0.05);
  color: #e0e0e0;
}

[data-theme="dark"] .exam-option-selected {
  background: rgba(99, 179, 237, 0.18) !important;
}

/* -------------------------------------------------------------
   Additional overrides to eliminate any left/right margin or padding
   that may still be applied by Bootstrap's .navbar or other
   container styles when the dashboard sidebar is closed.
   ------------------------------------------------------------- */
/* Navbar element itself */
nav.navbar-pse {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ── Final dashboard navbar override ───────────────────────────────────────
   Logo starts immediately after the 140px purple sidebar.
   All earlier padding: 0 overrides are replaced by this single rule.
   ─────────────────────────────────────────────────────────────────────── */
.container-fluid.navbar-pse-container.balanced-dashboard {
  padding-left: 152px !important;
  padding-right: 2rem !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
}

@media (max-width: 991.98px) {
  .container-fluid.navbar-pse-container.balanced-dashboard {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Sidebar container takes no layout space on mobile */
  #sidebar-container {
    width: 0 !important;
    flex: 0 0 0 !important;
    overflow: visible;
  }
}

/* Wrapper for sidebar toggle */
.sidebar-toggle-wrapper {
  background-color: #5B21B6 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  padding: 0.35rem 0.45rem;
}

.sidebar-toggle-wrapper i {
  color: #ffffff !important;
  /* white icon */
}

/* Mobile layout for Learning Momentum */
@media (max-width: 576px) {
  .learning-momentum-section {
    display: block !important;
  }

  .learning-momentum-section .learning-momentum {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .learning-momentum-section .learning-left,
  .learning-momentum-section .learning-right {
    width: 100%;
  }

  .learning-momentum-section .activity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .learning-momentum-section .consistency-legend-item {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
    background: var(--pse-surface, #f8f9fa);
    border: 1px solid var(--pse-border, #dee2e6);
    border-radius: 0.25rem;
    padding: 0.4rem;
    text-align: center;
  }

  .learning-momentum-section .consistency-legend-dot {
    display: block;
    margin: 0 auto 0.25rem;
  }
}

/* Hide Activity Tracker on mobile */
@media (max-width: 576px) {
  #activityTrackerCard {
    display: none !important;
  }
}

/* Hide right sidebar and Learning Time on mobile */
@media (max-width: 576px) {
  .dashboard-sidebar-column {
    display: none !important;
  }

  #learningTimeCard {
    display: none !important;
  }
}
/* ── Modern motivational quote card ──────────────────────────────────────── */
.quote-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 1.75rem 1.6rem;
  background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 55%, #ddd6fe 100%);
  color: #3b0764;
  box-shadow: 0 16px 38px rgba(167, 139, 250, 0.28);
}
.quote-card-glow {
  position: absolute;
  top: -60px; right: -50px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,255,255,0.28), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.quote-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  line-height: 0.6;
  height: 1.4rem;
  color: #3b0764;
  opacity: 0.35;
  margin-bottom: 0;
}
.quote-text {
  position: relative;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.1px;
  margin: 0 0 1.25rem;
}
.quote-footer {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.quote-line {
  height: 2px;
  width: 28px;
  background: rgba(59, 7, 100, 0.5);
  border-radius: 2px;
}
.quote-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #3b0764;
  opacity: 0.85;
  text-transform: uppercase;
}

/* ── Chart loading skeletons ─────────────────────────────────────────────── */
.chart-skeleton {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(90deg, #f1f5f9 0%, #e6eefc 50%, #f1f5f9 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
  z-index: 1;
}
.chart-skeleton-circle {
  position: relative;
  inset: auto;
  width: 175px;
  height: 175px;
  margin: auto;
  border-radius: 50%;
  /* ring cut-out (70% inner hole) to mimic the doughnut chart */
  -webkit-mask: radial-gradient(circle at center, transparent 0 69%, #000 70% 100%);
  mask: radial-gradient(circle at center, transparent 0 69%, #000 70% 100%);
}

/* ── Recent Activity feed ────────────────────────────────────────────────── */
.activity-feed-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.activity-feed-item:last-child { border-bottom: none; }
.activity-feed-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.activity-feed-body { min-width: 0; }
.activity-feed-text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: #334155;
}
.activity-feed-time {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
}
