@charset "UTF-8";
/* CSS Document */

/* style.css */
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    background-color: #EAEAEA;
}

/* Font weights usage */
h1, h2, h3, .display-4 {
  font-weight: 900; /* Black */
}

h4, h5 {
  font-weight: 800; /* ExtraBold */
}

.navbar-brand, .btn, .card-title {
  font-weight: 600; /* SemiBold */
}

.card-text, p, li, .breadcrumb {
  font-weight: 400; /* Regular */
}

.card-title {
  font-weight: 600;
}

/* Module Card Title - Enlarged for better hierarchy */
.course-module-card .card-title {
  font-size: 1.5rem;
}

blockquote.blockquote {
  font-style: italic;
  color: #444;
}
.bg-primary{
	    background-color: #003466!important;

}

/* Navbar logo styling */
.navbar-logo {
  height: 40px;
  width: auto;
  margin-right: 10px;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .navbar-logo {
    height: 32px;
  }
}

/* ============================================
   Modern Breadcrumb Design - Single Row Layout
============================================ */
.navbar-single-row {
  gap: 0;
  padding: 0.75rem 0;
  width: 100%;
  display: flex;
}

.navbar-breadcrumb {
  display: flex;
  align-items: center;
  position: relative;
}

.modern-breadcrumb-nav {
  width: auto;
}

.modern-breadcrumb {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}

.modern-breadcrumb-item {
  display: flex;
  align-items: center;
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
}

.modern-breadcrumb-item:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  margin-left: 0.75rem;
  transition: all 0.3s ease;
}

.breadcrumb-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.breadcrumb-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.breadcrumb-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.5rem;
  right: 0.5rem;
  height: 2px;
  background: #ffe803;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.breadcrumb-link:hover::before {
  transform: scaleX(1);
}

.breadcrumb-icon {
  flex-shrink: 0;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.breadcrumb-link:hover .breadcrumb-icon {
  opacity: 1;
}

.modern-breadcrumb-item.active {
  color: #ffe803;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 232, 3, 0.15);
  border-radius: 6px;
  border: 1px solid rgba(255, 232, 3, 0.3);
}

.modern-breadcrumb-item.active span {
  position: relative;
}

/* Dark mode adjustments */
body.dark-mode .modern-breadcrumb-item:not(:last-child)::after {
  background: rgba(255, 255, 255, 0.3);
}

body.dark-mode .modern-breadcrumb-item.active,
body.dark-mode .modern-breadcrumb-item.active span {
  color: #ffe803 !important;
  background: rgba(255, 232, 3, 0.2);
  border-color: rgba(255, 232, 3, 0.4);
}

body.dark-mode .modern-breadcrumb-item.active span {
  background: transparent;
}
  
body.dark-mode .breadcrumb-link {
  color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .breadcrumb-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Light mode adjustments */
body:not(.dark-mode) .modern-breadcrumb-item:not(:last-child)::after {
  background: rgba(255, 255, 255, 0.5);
}

/* Desktop layout - ensures single row above 992px */
/* Language Toggle Button */
.btn-language {
  background: linear-gradient(135deg, #ffe803 0%, #ffd000 100%);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.8rem;
  border: none;
  border-radius: 6px;
  padding: 0.35rem 1rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  margin-left: 1.25rem;
}

.btn-language:hover {
  background: #ffffff !important;
  color: #1a1a1a !important;
  transform: scale(1.1);
}

body.dark-mode .btn-language {
  background: linear-gradient(135deg, #ffe803 0%, #ffd000 100%) !important;
  color: #1a1a1a !important;
}

body.dark-mode .btn-language:hover {
  background: #ffffff !important;
  color: #1a1a1a !important;
  transform: scale(1.1);
}

body.dark-mode .btn-language .lang-text {
  color: #000000 !important;
}

/* Right side controls container */
.navbar-controls-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

/* Desktop Layout - Logo and Breadcrumb LEFT, Buttons RIGHT */
@media (min-width: 993px) {
  .navbar-single-row {
    flex-wrap: nowrap !important;
    gap: 0 !important;
    justify-content: flex-start !important;
  }
  
  .navbar-brand {
    order: 1 !important;
    flex: 0 0 auto !important;
    margin-right: 1.5rem !important;
    margin-left: 0 !important;
  }
  
  .navbar-breadcrumb {
    order: 2 !important;
    flex: 0 1 auto !important;
    border: none !important;
    padding: 0 !important;
    margin-top: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
  
  .navbar-controls-right {
    order: 3 !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
  }
}

/* Mobile Layout - Logo LEFT, Buttons RIGHT (row 1), Breadcrumb centered (row 2) */
@media (max-width: 992px) {
  .navbar-single-row {
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
  }
  
  /* Row 1: Logo on LEFT - match language button height */
  .navbar-brand {
    order: 1;
    flex: 0 0 auto;
    margin-right: auto;
    padding: 4px 0 2px 10px;
  }
  
  .navbar-brand .navbar-logo {
    height: 40px;
    width: auto;
    margin: -4px 0 0 0;
  }
  
  /* Row 1: Right controls container on RIGHT */
  .navbar-controls-right {
    order: 2;
    flex: 0 0 auto;
    margin-left: auto;

  }
  
  /* Language button sizing on mobile */
  .navbar-controls-right .btn-language {
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
    font-weight: 700;
  }
  
  /* Stack dark mode toggle vertically on mobile */
  .navbar-controls-right .form-check.form-switch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-height: auto;
    padding-left: 0;
  }
  
  .navbar-controls-right .form-check-label {
    font-size: 0.7rem;
    margin-bottom: 0;
    order: 2;
    padding-left: 0;
    position: relative;
    display: inline-block;
    min-width: 30px;
    min-height: 20px;
    overflow: visible;
  }
  
  /* Create form-switch base styles (Bootstrap 5 feature, not in Bootstrap 4) */
  .form-switch .form-check-input {
    width: 3.4em;
    height: 1.3em;
    margin-left: 0;
    background-position: left center;
    border-radius: 2em;
    transition: background-position 0.15s ease-in-out;
  }
  
  .form-switch .form-check-input:checked {
    background-position: right center;
  }
  
  .navbar-controls-right .form-check-input {
    order: 1;
    margin-left: 0;
    margin-top: 0;
    float: none;
  }
  
  /* Yellow track background and dark blue circle for toggle */
  .navbar-controls-right .form-switch .form-check-input {
    background-color: #ffe803 !important;
    border-color: #ffe803 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23003466'/%3e%3c/svg%3e") !important;
    background-position: left center;
  }
  
  .navbar-controls-right .form-switch .form-check-input:checked {
    background-color: #ffe803 !important;
    border-color: #ffe803 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23003466'/%3e%3c/svg%3e") !important;
    background-position: right center;
  }
  
  .navbar-controls-right .form-switch .form-check-input:focus {
    background-color: #ffe803 !important;
    border-color: #ffe803 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23003466'/%3e%3c/svg%3e") !important;
  }
  
  /* Dark mode toggle label positioning */
  .utility-nav .form-check-label {
    position: relative;
    font-size: 1.2rem;
    display: inline-block;
    min-width: 28px;
    min-height: 18px;
  }
  
  /* Theme icon base styling */
  .utility-nav .form-check-label .theme-icon {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
    line-height: 1;
    pointer-events: none;
  }
  
  /* Sun icon - visible in light mode */
  .sun-icon {
    display: inline-block !important;
    opacity: 1 !important;
    transition: opacity 0.4s ease !important;
  }
  
  /* Moon icon - hidden in light mode */
  .moon-icon {
    display: inline-block !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
  }
  
  /* Dark mode: hide sun, show moon */
  body.dark-mode .sun-icon {
    opacity: 0 !important;
  }
  
  body.dark-mode .moon-icon {
    opacity: 1 !important;
  }
  
  /* Ensure yellow track is visible in dark mode */
  body.dark-mode .navbar-controls-right .form-switch .form-check-input {
    background-color: #ffe803 !important;
    border-color: #ffe803 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23003466'/%3e%3c/svg%3e") !important;
    background-position: left center;
  }
  
  body.dark-mode .navbar-controls-right .form-switch .form-check-input:checked {
    background-color: #ffe803 !important;
    border-color: #ffe803 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23003466'/%3e%3c/svg%3e") !important;
    background-position: right center;
  }
  
  body.dark-mode .navbar-controls-right .form-switch .form-check-input:focus {
    background-color: #ffe803 !important;
    border-color: #ffe803 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23003466'/%3e%3c/svg%3e") !important;
  }
  
  /* Hover and focus states */
  .navbar-controls-right .form-check-input:hover {
    opacity: 0.9;
    cursor: pointer;
  }
  
  .navbar-controls-right .form-check-input:focus {
    outline: none;
  }
  
  /* Row 2: Breadcrumb full width, centered */
  .navbar-breadcrumb {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: center;
  }
  
  .modern-breadcrumb-nav {
    display: flex;
    justify-content: center;
  }
  
  .modern-breadcrumb {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .navbar-single-row {
    gap: 0.5rem;
    padding: 0.5rem 0;
  }
  
  .modern-breadcrumb {
    font-size: 0.8rem;
    gap: 0.35rem;
    justify-content: center;
  }
  
  .modern-breadcrumb-item:not(:last-child)::after {
    width: 4px;
    height: 4px;
    margin-left: 0.5rem;
  }
  
  .breadcrumb-link {
    padding: 0.2rem 0.35rem;
  }
  
  .modern-breadcrumb-item.active {
    padding: 0.2rem 0.5rem;
    font-size: 0.84rem;
  }
  
  .breadcrumb-icon {
    width: 14px;
    height: 14px;
  }
  
  .form-check-label {
    font-size: 0.85rem;
  }
  
  .navbar-breadcrumb {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    justify-content: center;
  }
}

/* Animation on page load */
@keyframes breadcrumbFadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modern-breadcrumb-item {
  animation: breadcrumbFadeIn 0.4s ease-out backwards;
}

.modern-breadcrumb-item:nth-child(1) { animation-delay: 0.1s; }
.modern-breadcrumb-item:nth-child(2) { animation-delay: 0.2s; }
.modern-breadcrumb-item:nth-child(3) { animation-delay: 0.3s; }
.modern-breadcrumb-item:nth-child(4) { animation-delay: 0.4s; }

/* ============================================
   ║  BOOTSTRAP CONTAINER OVERRIDE
   ║  Purpose: MacBook Pro consistency with Desktop
   ║  Date Added: 2025-11-09
   ║  Author: Matt Abron + AI Assistant
   ║  
   ║  PROBLEM SOLVED:
   ║  - MacBook Pro (1200-1400px viewport): Was rendering at 1140px container (too narrow)
   ║  - Desktop (1400px+ viewport): Was rendering at 1320px container (perfect!)
   ║  - Same "resolution" but different container widths = squeezed appearance on laptop
   ║  
   ║  SOLUTION:
   ║  - Override Bootstrap 5 XL breakpoint: 1140px → 1320px
   ║  - MacBook Pro now matches Desktop appearance exactly
   ║  - Desktop remains unchanged (stays at 1320px)
   ║  - Mobile/tablet unaffected (full-width with padding)
   ║  
   ║  TECHNICAL DETAILS:
   ║  Bootstrap 5 Default Breakpoints:
   ║  • SM (≥576px):  540px container
   ║  • MD (≥768px):  720px container
   ║  • LG (≥992px):  960px container
   ║  • XL (≥1200px): 1140px container ← OVERRIDDEN to 1320px
   ║  • XXL (≥1400px): 1320px container ← Unchanged
   ║  
   ║  IMPACT:
   ║  ✓ index.html - Curriculum cards now properly spaced on MacBook Pro
   ║  ✓ overview.html - Module cards layout matches desktop
   ║  ✓ detail.html - Lesson content width consistent across devices
   ║  ✓ All future pages using .container class benefit automatically
   ║  
   ║  TESTING COMPLETED:
   ║  ✓ MacBook Pro 13" (1280px viewport) → Now renders at 1320px
   ║  ✓ Desktop 1920px → Still renders at 1320px (unchanged)
   ║  ✓ Mobile 375px-768px → Full-width with proper padding
   ║  
   ║  ROLLBACK INSTRUCTIONS:
   ║  If issues arise, restore from backup:
   ║  cp css/fireflystyles_BACKUP_20251109_163008.css css/fireflystyles.css
   ║  
   ║  Or simply remove this entire block (lines 543-596)
============================================ */

/* XL Breakpoint Override: 1200px+ viewports (MacBook Pro + Desktop) */
@media (min-width: 1200px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl {
    max-width: 1320px !important;
  }
  
  /* Ensure navbar container also matches */
  .navbar > .container {
    max-width: 1320px !important;
  }
  
  /* Curriculum sections consistency */
  .curriculum-cards-section .container,
  .getting-started-section .container {
    max-width: 1320px !important;
  }
}

/* Mobile/Tablet Safeguard: Ensure full-width with padding on smaller screens */
@media (max-width: 991px) {
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* END BOOTSTRAP CONTAINER OVERRIDE */

/* Chrome font rendering optimization: Match Safari/Firefox appearance */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-family: 'Montserrat', sans-serif;
}

/* Consistent font sizing across all browsers */
.intro-title, 
.intro-title.display-3 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.2;
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.intro-deck, 
.intro-deck.lead {
  font-size: 1.25rem;
  line-height: 1.6;
  font-family: 'Montserrat', sans-serif;
}

/* Ensure all text uses Montserrat */
h1, h2, h3, h4, h5, h6, p, div, span, a, li {
  font-family: 'Montserrat', sans-serif;
}

/* Lead italic text */
.lead.fst-italic {
  font-weight: 700;
  font-size: 1.75rem;
}

/* ============================================
   Course Overview Page Styles
============================================ */

/* Course Header */
.course-header .course-meta {
  gap: 0.75rem;
}

.course-header .badge {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
}

/* Learning Objectives Cards */
.objective-card {
  padding: 1.5rem;
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.objective-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 92, 185, 0.15);
  border-color: #005cb9;
}

.objective-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #005cb9 0%, #0080ff 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.objective-icon svg {
  stroke: #ffffff;
}

.objective-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-color, #1e1e1e);
}

.objective-card p {
  margin: 0;
  color: var(--muted, #666);
  line-height: 1.6;
}

/* Module Cards */
.module-card {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.module-card:hover {
  transform: translateY(-2px);
}

/* Prevent vertical shift on locked cards */
.locked-module:hover {
  transform: none;
}

.module-header {
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: var(--card-bg, #ffffff);
}

.module-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #005cb9 0%, #0080ff 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.module-info {
  flex: 1;
}

.module-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-color, #1e1e1e);
}

.module-meta {
  margin: 0.25rem 0 0 0;
  color: var(--muted, #666);
  font-size: 0.9rem;
}

.module-toggle {
  transition: transform 0.3s ease;
}

.module-toggle.active {
  transform: rotate(180deg);
}

.module-lessons {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--module-lesson-bg, #f8f9fa);
  border-top: 1px solid var(--border-color, #e0e0e0);
}

.module-lessons.show {
  max-height: 500px;
}

.lesson-link {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--text-color, #1e1e1e);
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.lesson-link:last-child {
  border-bottom: none;
}

.lesson-link:hover {
  background: var(--hover-bg, #e9ecef);
  padding-left: 1.5rem;
}

.lesson-icon {
  width: 24px;
  margin-right: 1rem;
  flex-shrink: 0;
  color: #005cb9;
}

.lesson-name {
  flex: 1;
  font-weight: 500;
}

.lesson-duration {
  color: var(--muted, #666);
  font-size: 0.9rem;
}

/* Learning Path */
.learning-path {
  display: flex;
  flex-direction: column;
}

.path-item {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  background: var(--card-bg, #ffffff);
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.path-item.completed {
  background: rgba(0, 92, 185, 0.05);
}

.path-item.current {
  background: rgba(255, 232, 3, 0.1);
  border: 2px solid #ffe803;
}

.path-icon {
  width: 32px;
  height: 32px;
  background: var(--card-bg, #ffffff);
  border: 2px solid #005cb9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  font-weight: 700;
  color: #005cb9;
}

.path-item.completed .path-icon {
  background: #005cb9;
  color: #ffffff;
}

.path-item.current .path-icon {
  background: #ffe803;
  border-color: #ffe803;
  color: #1a1a1a;
}

.path-content strong {
  display: block;
  font-weight: 600;
  color: var(--text-color, #1e1e1e);
}

.path-connector {
  width: 2px;
  height: 16px;
  background: var(--border-color, #e0e0e0);
  margin-left: 2rem;
}

/* Course Detail Items */
.course-detail-item strong {
  color: var(--text-color, #1e1e1e);
  font-weight: 600;
}

.course-detail-item span {
  color: var(--muted, #666);
}

/* Big Picture Section */
/* .big-picture .machine-visual img - No shadow needed */

/* Dark Mode Adjustments */
body.dark-mode .objective-card,
body.dark-mode .module-card,
body.dark-mode .module-header,
body.dark-mode .path-item {
  background: #1a1a1a;
  border-color: #333;
}

body.dark-mode .module-lessons {
  background: #0f0f0f;
  border-color: #333;
}

body.dark-mode .lesson-link {
  color: #e0e0e0;
  border-color: #333;
}

body.dark-mode .lesson-link:hover {
  background: #252525;
}

body.dark-mode .objective-card h4,
body.dark-mode .module-title,
body.dark-mode .course-detail-item strong,
body.dark-mode .path-content strong {
  color: #e0e0e0;
}

body.dark-mode .path-icon {
  background: #1a1a1a;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .objective-card {
    padding: 1rem;
  }
  
  .module-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .module-title {
    font-size: 1rem;
  }
  
  .lesson-link {
    padding: 0.75rem 1rem;
  }
}

/* ============================================
   Course Module Cards (Overview Page)
============================================ */

.course-module-card {
  transition: all 0.3s ease;
  border: 2px solid transparent !important;
}

.course-module-card:hover {
  transform: translateY(-4px);
  border-color: #005cb9 !important;
}

.module-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #005cb9 0%, #0080ff 100%);
  color: #ffffff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  z-index: 10;
  border: 3px solid #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-module-card:hover .module-badge {
  transform: scale(1.08) translateY(-2px);
}

/* ===== MODULE CARD STATES (Overview Page) ===== */

/* NEXT UP State - Newly Unlocked Module (Yellow Highlight) */
.course-module-card.next-up {
  border-color: #ffe803 !important;
  border-width: 3px !important;
  box-shadow: 0 0 20px rgba(255, 232, 3, 0.4), 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  animation: nextUpPulse 2s ease-in-out infinite;
}

.course-module-card.next-up .module-badge {
  background: linear-gradient(135deg, #ffe803 0%, #ffd700 100%) !important;
  color: #000000 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 12px rgba(255, 232, 3, 0.4);
  animation: badgePulse 2s ease-in-out infinite;
}

.course-module-card.next-up .btn {
  background: linear-gradient(135deg, #ffe803 0%, #ffd700 100%) !important;
  color: #000000 !important;
  border: none !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(255, 232, 3, 0.3);
}

.course-module-card.next-up .btn:hover {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%) !important;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(255, 232, 3, 0.5);
}

@keyframes nextUpPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 232, 3, 0.4), 0 8px 24px rgba(0, 0, 0, 0.12);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 232, 3, 0.6), 0 8px 24px rgba(0, 0, 0, 0.12);
  }
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

/* COMPLETED State - Module fully finished */
.course-module-card.completed {
  border-color: #005cb9 !important;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.course-module-card.completed .module-badge {
  background: linear-gradient(135deg, #005cb9 0%, #0073e6 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 92, 185, 0.3);
}

.course-module-card.completed .card-img-top {
  filter: none;
  opacity: 1;
}

/* CURRENT State - Module in progress */
.course-module-card.current {
  border-color: #ffe803 !important;
  border-width: 3px !important;
  background: linear-gradient(135deg, #fffbf0 0%, #fff9e6 100%);
  box-shadow: 0 0 0 3px rgba(255, 232, 3, 0.2);
}

.course-module-card.current .module-badge {
  background: linear-gradient(135deg, #ffe803 0%, #ffd000 100%) !important;
  color: #1a1a1a !important;
  box-shadow: 0 0 0 3px rgba(255, 232, 3, 0.3);
}

.course-module-card.current .card-img-top {
  filter: none;
  opacity: 1;
}

/* LOCKED State - Already defined above, but ensure consistency */
.course-module-card.locked,
.course-module-card.locked-module {
  opacity: 1; /* Card itself stays visible */
  pointer-events: none;
}

.course-meta-info {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.course-meta-info .badge {
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  font-weight: 600;
}

/* Module Card Button - Styled like webinar button with brand blue #005cb9 */
.course-module-card .btn-outline-primary {
  margin-top: 20px;              /* Extra spacing from badges */
  background: #005cb9;           /* Brand blue */
  color: #ffffff;
  border: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  width: 100%;                   /* Full width like webinar button */
  transition: all 0.3s ease;
}

.course-module-card .btn-outline-primary:hover {
  background: #004a9a;           /* Darker blue on hover */
  transform: translateY(-2px);   /* Subtle lift effect */
  box-shadow: 0 4px 12px rgba(0, 92, 185, 0.3);
}

.course-module-card .btn-outline-primary:active {
  transform: translateY(0);      /* Reset on click */
}

/* Dark mode adjustments for module cards */
body.dark-mode .course-module-card {
  background: #1a1a1a;
  border-color: #333 !important;
}

body.dark-mode .course-module-card:hover {
  border-color: #0080ff !important;
}

body.dark-mode .module-badge {
  border-color: #1a1a1a;
}

/* Dark mode - Lighter blue for better contrast */
body.dark-mode .course-module-card .btn-outline-primary {
  background: #0071e3;
}

body.dark-mode .course-module-card .btn-outline-primary:hover {
  background: #0077ed;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.4);
}

/* Dark mode - Next Up state */
body.dark-mode .course-module-card.next-up {
  border-color: #ffe803 !important;
  background: #1a1a1a;
  box-shadow: 0 0 20px rgba(255, 232, 3, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .course-module-card.next-up .module-badge {
  background: linear-gradient(135deg, #ffe803 0%, #ffd700 100%) !important;
  color: #000000 !important;
}

body.dark-mode .course-module-card.next-up .btn {
  background: linear-gradient(135deg, #ffe803 0%, #ffd700 100%) !important;
  color: #000000 !important;
}

/* Apple-style Locked Module Cards - Black & White with visible content */
.locked-module {
  position: relative;
  cursor: not-allowed;
}

/* Ensure lock overlay doesn't affect card flex layout */
.course-module-card {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  min-height: 580px !important;  /* Force all cards to same minimum height */
  height: 100% !important;  /* Fill available space in grid */
  margin: 0 !important;
  padding: 0 !important;
}

.course-module-card .card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0 !important;
}

/* Ensure buttons and links have same spacing in cards */
.course-module-card .btn,
.course-module-card .btn-outline-primary,
.course-module-card button {
  margin: 0 !important;
  margin-top: 0 !important;
}

/* Ensure card images have consistent spacing */
.course-module-card .card-img-top {
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

.locked-module.course-module-card {
  position: relative !important;
}

/* Force module cards to be equal height using CSS Grid */
section.container.my-5 > .row.g-4 {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 1.5rem !important;
  align-items: stretch !important;  /* Stretch cards to equal height */
}

@media (min-width: 768px) {
  section.container.my-5 > .row.g-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (min-width: 992px) {
  section.container.my-5 > .row.g-4 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Ensure col divs don't interfere with grid */
section.container.my-5 > .row.g-4 > [class*="col-"] {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  align-self: stretch !important;  /* Stretch to fill grid cell height */
  display: flex !important;
  flex-direction: column !important;
  min-height: 580px !important;  /* Match card min-height */
}

/* Locked card styling */
.locked-module .card-img-top {
  filter: grayscale(100%);  /* Full B&W */
  transition: filter 0.3s ease;
}

.locked-module .card-body {
  pointer-events: none;
  opacity: 0.8;  /* More visible - increased from 0.6 */
  filter: grayscale(100%);  /* Remove all color from content */
}

.locked-module .module-badge {
  opacity: 0.7;
  position: absolute;  /* FIXED: Was relative, causing shift */
  z-index: 15;  /* Above lock overlay */
  filter: grayscale(100%);  /* Remove color from badge */
}

.lock-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(249, 249, 249, 0.6);  /* Reduced from 0.8 to 0.6 */
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 !important;
  padding: 0 !important;
}

/* Logged-out lock overlay - hidden by default, shown when user is logged out */
.logged-out-lock-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(249, 249, 249, 0.75) !important;
  display: none !important; /* Hidden by default */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 15; /* Higher than regular lock overlay */
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 !important;
  padding: 0 !important;
}

/* Show logged-out overlay when locked-module class is present */
.locked-module .logged-out-lock-overlay {
  display: flex !important;
}

.lock-overlay .lock-icon,
.logged-out-lock-overlay .lock-icon {
  width: 70px;
  height: 70px;
  color: #86868b !important;
  margin-bottom: 1rem;
  stroke-width: 2;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.lock-text {
  display: none;  /* Hide lock text */
}

.disabled-link {
  pointer-events: none;
  cursor: not-allowed;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  line-height: 0 !important;
}

/* Dark mode - Locked modules */
body.dark-mode .lock-overlay {
  background: rgba(29, 29, 31, 0.45);  /* Reduced from 0.65 to 0.45 */
}

body.dark-mode .lock-overlay .lock-icon,
body.dark-mode .logged-out-lock-overlay .lock-icon {
  color: #6e6e73 !important;
}

/* Dark mode - Logged-out overlay */
body.dark-mode .logged-out-lock-overlay {
  background: rgba(29, 29, 31, 0.85) !important;
}

body.dark-mode .logged-out-lock-overlay .lock-text {
  color: #c5defb;
}

body.dark-mode .lock-text {
  color: #c5defb;
}

body.dark-mode .locked-module .card-img-top {
  filter: grayscale(100%);
}

body.dark-mode .locked-module .card-body {
  filter: grayscale(100%);
}


/* Hover effect - subtle pulse */
.locked-module:hover .lock-overlay {
  background: rgba(249, 249, 249, 0.85);
}

body.dark-mode .locked-module:hover .lock-overlay {
  background: rgba(29, 29, 31, 0.7);
}

.locked-module:hover .lock-overlay .lock-icon {
  transform: scale(1.1);
}

/* Hover effect for logged-out overlay */
.locked-module:hover .logged-out-lock-overlay {
  background: rgba(249, 249, 249, 0.9) !important;
}

body.dark-mode .locked-module:hover .logged-out-lock-overlay {
  background: rgba(29, 29, 31, 0.95) !important;
}

.locked-module:hover .logged-out-lock-overlay .lock-icon {
  transform: scale(1.1);
}

/* Mobile responsive for module cards */
@media (max-width: 768px) {
  .module-badge {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    top: 12px;
    left: 12px;
    border-radius: 6px;
  }
  
  .course-meta-info .badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
  
  .lock-overlay .lock-icon {
    width: 60px;
    height: 60px;
  }
  
  .logged-out-lock-overlay .lock-icon {
    width: 60px;
    height: 60px;
  }
  
  .logged-out-lock-overlay .lock-text {
    font-size: 0.85rem;
    padding: 0 1rem;
  }
  
  .lock-text {
    font-size: 1rem;
  }
}

/* ============================================
   Course Introduction Card & Getting Started Section
   (Magazine-style layout with video embed)
============================================ */

/* Course Introduction - Magazine Style */
.course-intro-magazine {
  padding-top: 4rem;
  margin-bottom: 0;
  background: #eaeaea;
}

.intro-content {
  padding-right: 3rem;
}

.intro-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #1d1d1f;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.intro-deck {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #6e6e73;
  margin-bottom: 2rem;
  font-weight: 400;
}

.intro-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.intro-meta-badge {
  font-size: 0.75rem;
  font-weight: 500;
  color: #1d1d1f;
  letter-spacing: 0.005em;
  background: rgba(0, 0, 0, 0.04);
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-meta-badge:hover {
  background: rgba(0, 0, 0, 0.08);
}

.intro-meta-separator {
  display: none;  /* Hide separators when using badges */
}

.intro-video {
  position: relative;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-video:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.intro-video > * {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
}

/* Placeholder styling when no video is embedded */
.video-embed-container:empty {
  min-height: 360px;
  background: #e9ecef;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-embed-container:empty::before {
  content: 'Video Embed Area';
  font-size: 1.25rem;
  font-weight: 600;
  color: #6c757d;
  text-align: center;
}

body.dark-mode .video-embed-container:empty {
  background: #2a2a2a;
}

body.dark-mode .video-embed-container:empty::before {
  color: #adb5bd;
}

/* Dark mode styles */
/* Dark Mode - Magazine Style */
body.dark-mode .intro-title {
  color: #f5f5f7;
}

body.dark-mode .intro-deck {
  color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .intro-meta-badge {
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .intro-meta-badge:hover {
  background: rgba(255, 255, 255, 0.15);
}

body.dark-mode .intro-meta-separator {
  color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .intro-video {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

body.dark-mode .intro-video:hover {
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

/* Responsive - Magazine Style */
@media (max-width: 991.98px) {
  .course-intro-magazine {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  .intro-content {
    padding-right: 0;
    margin-bottom: 2rem;
  }
  
  .intro-title {
    font-size: 2.5rem;
  }
  
  .intro-deck {
    font-size: 1.125rem;
  }
}

@media (max-width: 767.98px) {
  .course-intro-magazine {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .intro-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .intro-deck {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .intro-meta {
    justify-content: flex-start;
    gap: 0.5rem;
  }
  
  .intro-meta-badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.75rem;
  }
  
  .intro-video {
    margin-top: 2rem;
    border-radius: 6px;
  }
}

/* ============================================
   Course Lessons Sidebar
============================================ */

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

.lesson-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.lesson-image {
  width: 90px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.lesson-item:hover .lesson-image {
  transform: scale(1.05);
}

.lesson-item:hover {
  transform: translateX(4px);
  border-color: #ffe803;
}

/* COMPLETED STATE - Overrides current state */
.lesson-item.completed {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%) !important;
  border-left-color: #34c759 !important;
  border-left-width: 6px !important;

}

/* CURRENT STATE - Only applies when NOT completed */
.lesson-item.current:not(.completed) {
  background: linear-gradient(135deg, #fffbf0 0%, #fff9e6 100%);
  border-width: 2px;
}

.lesson-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: #666;
  transition: all 0.3s ease;
}

/* COMPLETED badge - Highest priority */
.lesson-item.completed .lesson-number {
  background: linear-gradient(135deg, #005cb9 0%, #0073e6 100%) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

/* CURRENT badge - Only when NOT completed */
.lesson-item.current:not(.completed) .lesson-number {
  background: linear-gradient(135deg, #ffe803 0%, #ffd000 100%);
  color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(255, 232, 3, 0.2);
}

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

.lesson-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e1e1e;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.lesson-duration {
  margin: 0;
  font-size: 0.75rem;
  color: #999;
}

.lesson-status {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.check-icon {
  color: #005cb9;
}

.play-icon {
  color: #ffe803;
}

.lesson-item .lock-icon {
  color: #999;
}

/* ========================================
   LESSON SIDEBAR STATE STYLES
   Priority: .locked > .completed > .current > .unlocked > (default)
   ======================================== */

/* UNLOCKED STATE - Explicitly styled for next available lesson */
.lesson-item.unlocked {
  opacity: 1 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  background: linear-gradient(135deg, #fffbf0 0%, #fff9e6 100%)!important;
  border-color: #e0e0e0 !important;
}

.lesson-item.unlocked .lesson-image {
  filter: none !important;
  border: 2px solid transparent !important;
  opacity: 1 !important;
}

.lesson-item.unlocked .lesson-title {
  color: #1e1e1e !important;
}

.lesson-item.unlocked .lesson-number {
  opacity: 1 !important;
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
  color: #666;
}

/* DEFAULT/UNLOCKED STATE (no class) - Fallback */
/* Explicitly ensure unlocked lessons are fully visible and clickable */
.lesson-item:not(.locked):not(.completed):not(.current) {
  opacity: 1 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  background: linear-gradient(135deg, #fffbf0 0%, #fff9e6 100%)!important;
  border-color: #e0e0e0 !important;
}

.lesson-item:not(.locked):not(.completed):not(.current) .lesson-image {
  filter: none !important;
  border: 2px solid transparent;
  opacity: 1 !important;
}

.lesson-item:not(.locked):not(.completed):not(.current) .lesson-title {
  color: #1e1e1e;
}
body.dark-mode .lesson-item:not(.locked):not(.completed):not(.current) .lesson-title {
color: #c5defb!important;
}

/* LOCKED STATE (highest priority via .locked class) */
.lesson-item.locked {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.lesson-item.locked .lesson-image {
  filter: grayscale(100%) opacity(0.5) !important;
  border: 2px solid transparent;
}

.lesson-item.locked .lesson-title {
  color: #999 !important;
}

.lesson-item.locked .lesson-number {
  opacity: 0.7 !important;
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%) !important;
  color: #999 !important;
}

.lesson-item.completed .lesson-image,
.lesson-item.current .lesson-image {
  border: 2px solid #ffe803;
}

.lesson-item.current .lesson-image {
  border: 2px solid #ffe803;
}

/* Dark mode */
body.dark-mode .course-lessons-sidebar {
  background: #1e1e1e !important;
  border-color: #333 !important;
}

body.dark-mode .lesson-item {
  background: #2a2a2a;
  border-color: #444;
}

body.dark-mode .lesson-item:hover {
  border-color: #ffe803;
  background: #333;
}

body.dark-mode .lesson-item.completed {
  background: linear-gradient(135deg, #1e3a28 0%, #2a4a34 100%)!important;
  border-left-width: 6px!important;
}
body.dark-mode .lesson-item:not(.locked):not(.completed):not(.current) {
  background: linear-gradient(135deg, #3a3520 0%, #594e21 100%)!important;
  border-left-color: #ffe803!important;
  border-left-width: 6px!important;
  color: #ffe803!important;
}

body.dark-mode .lesson-item.current {
  background: linear-gradient(135deg, #3a3520 0%, #2a2510 100%);
  border-color: #ffe803;
}

body.dark-mode .lesson-title {
  color: #c5defb;
}

body.dark-mode .lesson-duration {
  color: #999;
}

body.dark-mode .lesson-number {
  background: linear-gradient(135deg, #444 0%, #555 100%)!important;
  color: #ffe803!important;
}

body.dark-mode .lesson-item.completed .lesson-number {
  background: linear-gradient(135deg, #005cb9 0%, #0073e6 100%);
  color: #ffffff;
}

body.dark-mode .lesson-item.current .lesson-number {
  background: linear-gradient(135deg, #ffe803 0%, #ffd000 100%)!important;
  text-color: #003466!important;
  color: #003466!important;
}

body.dark-mode .lesson-item.locked {
  opacity: 0.5;
}

body.dark-mode .lesson-item.locked .lesson-title {
  color: #666;
}

body.dark-mode .lesson-item.locked .lesson-number {
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 991px) {
  /* Responsive styles */
}

@media (max-width: 576px) {
  .lesson-image {
    width: 70px;
    height: 50px;
  }
  
  .lesson-item {
    gap: 0.625rem;
    padding: 0.625rem;
  }
  
  .lesson-number {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
  
  .lesson-title {
    font-size: 0.875rem;
  }
  
  .lesson-duration {
    font-size: 0.7rem;
  }
}

.dropcap {
  float: left;
  font-size: 3rem;
  line-height: 1;
  margin-right: 0.5rem;
  font-weight: bold;
  color: #007bff;
}
/* Header image style */
.hero-header {
    background-color: #303030!important;
    position: relative;
    overflow: hidden;
}

/* Hero Image Container - Dimensions: Desktop 1920x280px, Mobile 100% x 280px */
.hero-image-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: #303030;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-overlay .container {
    position: relative;
    z-index: 3;
}

.hero-overlay h1,
.hero-overlay .display-4 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-overlay .lead {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .hero-image-container {
        height: 280px;
    }
    
    .hero-overlay h1,
    .hero-overlay .display-4 {
        font-size: 2rem;
    }
    
    .hero-overlay .lead {
        font-size: 1rem;
    }
}


/* Dark Mode */
body.dark-mode {
  background-color: #121212;
  color: #c5defb;
}

/* Dark mode text elements */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode p,
body.dark-mode span,
body.dark-mode div,
body.dark-mode li,
body.dark-mode a,
body.dark-mode label,
body.dark-mode .title,
body.dark-mode .heading,
body.dark-mode .description,
body.dark-mode .light,
body.dark-mode .bonus,
body.dark-mode .header_list,
body.dark-mode .lead,
body.dark-mode .card-title,
body.dark-mode .card-text,
body.dark-mode .text-muted,
body.dark-mode .breadcrumb-item,
body.dark-mode .navbar-brand,
body.dark-mode .form-check-label,
body.dark-mode .modal-title,
body.dark-mode .btn,
body.dark-mode .breadcrumb-item a,
body.dark-mode .navbar-nav .nav-link {
  color: #c5defb !important;
}

/* Don't apply color to theme icons - let opacity control visibility */
body.dark-mode .utility-nav .form-check-label .theme-icon {
  color: inherit !important;
}

/* Dark mode specific overrides */
body.dark-mode .highlight {
  background-color: #0059BC;
  color: #c5defb !important;
}

body.dark-mode .header_list {
  color: #c5defb !important;
}

body.dark-mode .card {
  background-color: #1e1e1e;
  border-color: #333;
}

body.dark-mode .navbar,
body.dark-mode footer {
  background-color: #000;
}

body.dark-mode .btn-outline-secondary {
  color: #c5defb;
  border-color: #555;
}

body.dark-mode .btn-outline-primary {
  color: #c5defb;
  border-color: #0059BC;
}

body.dark-mode .btn-outline-primary:hover {
  background-color: #0059BC;
  color: #fff;
}

body.dark-mode .video {
  background-color: #1a1a1a;
}

body.dark-mode .video_dark {
  background-color: #0f0f0f;
}

body.dark-mode .jumbotron_cta {
  background-color: #1a1a1a;
}

body.dark-mode .testimonial {
  background-color: #0f0f0f;
}

body.dark-mode .bg-light {
  background-color: #1e1e1e !important;
}

body.dark-mode .border {
  border-color: #333 !important;
}

body.dark-mode .text-white {
  color: #c5defb !important;
}

body.dark-mode .text-white-50 {
  color: rgba(197, 222, 251, 0.5) !important;
}

body.dark-mode .text-muted {
  color: rgba(197, 222, 251, 0.7) !important;
}

/* Additional dark mode text overrides */
body.dark-mode .small,
body.dark-mode .text-secondary,
body.dark-mode .text-dark,
body.dark-mode .text-body,
body.dark-mode .text-black,
body.dark-mode .text-black-50,
body.dark-mode .text-secondary,
body.dark-mode .text-secondary-50,
body.dark-mode .text-body-secondary,
body.dark-mode .text-body-tertiary,
body.dark-mode .text-emphasis,
body.dark-mode .text-emphasis-secondary,
body.dark-mode .text-emphasis-tertiary,
body.dark-mode .text-emphasis-muted,
body.dark-mode .text-emphasis-high,
body.dark-mode .text-emphasis-medium,
body.dark-mode .text-emphasis-low,
body.dark-mode .text-emphasis-placeholder,
body.dark-mode .text-emphasis-disabled,
body.dark-mode .text-emphasis-inverse,
body.dark-mode .text-emphasis-inverse-secondary,
body.dark-mode .text-emphasis-inverse-tertiary,
body.dark-mode .text-emphasis-inverse-muted,
body.dark-mode .text-emphasis-inverse-high,
body.dark-mode .text-emphasis-inverse-medium,
body.dark-mode .text-emphasis-inverse-low,
body.dark-mode .text-emphasis-inverse-placeholder,
body.dark-mode .text-emphasis-inverse-disabled {
  color: #c5defb !important;
}

/* Dark mode for specific elements */
body.dark-mode .navbar-light .navbar-brand,
body.dark-mode .navbar-light .navbar-nav .nav-link,
body.dark-mode .navbar-light .navbar-nav .nav-link:hover,
body.dark-mode .navbar-light .navbar-nav .nav-link:focus,
body.dark-mode .navbar-light .navbar-nav .show > .nav-link,
body.dark-mode .navbar-light .navbar-nav .active > .nav-link,
body.dark-mode .navbar-light .navbar-nav .nav-link.show,
body.dark-mode .navbar-light .navbar-nav .nav-link.active {
  color: #c5defb !important;
}

body.dark-mode .breadcrumb-item + .breadcrumb-item::before {
  color: #c5defb;
}

body.dark-mode .modal-header .close {
  color: #c5defb;
}

body.dark-mode .btn-close {
  filter: invert(1) brightness(0.8);
}

/* Dark mode for form elements */
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select,
body.dark-mode .form-control,
body.dark-mode .form-select {
  background-color: #1e1e1e;
  border-color: #333;
  color: #c5defb;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder,
body.dark-mode .form-control::placeholder {
  color: rgba(197, 222, 251, 0.5) !important;
}

/* Dark mode for links */
body.dark-mode a:not(.btn) {
  color: #c5defb;
}

body.dark-mode a:not(.btn):hover {
  color: #ffffff;
}

/* Dark mode for success buttons */
body.dark-mode .btn-success {
  background-color: #0059BC;
  border-color: #0059BC;
  color: #ffffff;
}

body.dark-mode .btn-success:hover {
  background-color: #004a9e;
  border-color: #004a9e;
  color: #ffffff;
}

/* Image hover animation */
.img-hover-link {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.img-hover {
  transition: transform 0.4s ease, filter 0.4s ease;
}

.img-hover-link:hover .img-hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}
.img-hover-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.img-hover-link:hover::before {
  opacity: 1;
}
/* ========================================
   SIDEBAR WIDGET STYLING
   Each widget has its own border - Bootstrap column padding provides natural spacing
   ======================================== */

/* Ensure sidebar widgets display correctly with Bootstrap's natural column padding */
/* No need to remove padding - Bootstrap's default padding creates proper spacing */

aside img {
  object-fit: cover;
}

aside .btn-sm {
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
}

/* Edge-to-edge images in sidebar widgets */
.demo-image-container {
  margin: -1.5rem -1.5rem 1rem -1.5rem; /* Negate .p-4 padding */
}

.demo-image-container img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* ================================
   Global Article Styles
================================== */
article {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #333;
}

/* ================================
   Subheadings
================================== */
article h2 {
    font-weight: 800; /* ExtraBold */
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #2E2E2E; /* FireFly-like blue */
}

article h3 {
  font-weight: 600; /* SemiBold */
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #444;
}

/* ================================
   Paragraphs & Lead
================================== */
article p {
  margin-bottom: 1.25rem;
}

article .lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.8;
  color: #555;
  margin-bottom: .7rem;
}

/* Drop cap for first letter */
article .dropcap {
  float: left;
  font-size: 3rem;
  line-height: 1;
  margin-right: 0.6rem;
  font-weight: 900;
  color: #0d47a1;
}

/* ================================
   Blockquotes
================================== */
article blockquote {
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 400;
  color: #222;
  margin: 2rem 0;
  padding-left: 1rem;
  border-left: 4px solid #0d47a1;
}

article blockquote p {
  margin-bottom: 0;
}

/* ================================
   Metadata (author, date, breadcrumb)
================================== */
.article-meta,
.breadcrumb {
  font-size: 0.9rem;
  color: #777;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ================================
   Small Caps Section Titles
================================== */
.section-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 0.5rem;
}
/* Relevant Articles Block */
.rel-article + .rel-article {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #dee2e6; /* subtle divider */
}

/* Edge-to-edge images (inside .p-4) */
.rel-thumb {
  margin: -1.5rem -1.5rem 1rem -1.5rem; /* cancel padding */
}
.rel-img {
  display: block;
  width: 100%;
  height: auto;
  border-top-left-radius: .375rem; /* match Bootstrap rounded */
  border-top-right-radius: .375rem;
}

/* Centered content */
.rel-body {
  padding: 0 0.5rem;
}
.rel-title {
  font-weight: 700;
  line-height: 1.3;
}
.rel-desc {
  line-height: 1.5;
}

/* ============ Comments: Card + Thread ============ */
/* ============================================
   Modern Apple-Style Comments Section
============================================ */

/* ╔══════════════════════════════════════════════════════════════════════════════╗
   ║  EXPRESSIONENGINE 7.5 COMMENT SYSTEM - CSS CLASS STRUCTURE                  ║
   ╠══════════════════════════════════════════════════════════════════════════════╣
   ║  This comment system is designed for seamless integration with EE7.5         ║
   ║  All classes use semantic naming and work with native EE comment tags.       ║
   ║                                                                              ║
   ║  KEY FEATURES:                                                               ║
   ║  • Responsive Apple-style design (desktop, tablet, mobile)                   ║
   ║  • Dark mode support (body.dark-mode prefix)                                 ║
   ║  • Threaded comment support (.comment-reply for nested replies)              ║
   ║  • Staff badge styling (.instructor-badge)                                   ║
   ║  • Gravatar-ready (.comment-avatar)                                          ║
   ║  • Validation error styling (.field-error)                                   ║
   ║  • Form state management (focus, hover, disabled)                            ║
   ║                                                                              ║
   ║  MAIN CLASSES:                                                               ║
   ║  • .modern-comments       → Main container (full-width section)              ║
   ║  • .comment-composer      → Form submission area with glassmorphism          ║
   ║  • .composer-form         → Form element (data-ee-comment-form)              ║
   ║  • .field-group           → Input/textarea wrapper with label                ║
   ║  • .field-input           → Text/email inputs                                ║
   ║  • .field-textarea        → Comment textarea                                 ║
   ║  • .field-error           → Validation error messages (hidden by default)    ║
   ║  • .btn-submit            → Submit button with icon                          ║
   ║                                                                              ║
   ║  COMMENT DISPLAY CLASSES:                                                    ║
   ║  • .comments-thread       → Comments display container                       ║
   ║  • .comment-list          → <ol> wrapper for comments                        ║
   ║  • .comment-item          → Individual comment <li> (add data-comment-id)    ║
   ║  • .comment-reply         → Nested reply (used with .comment-item)           ║
   ║  • .comment-replies       → Wrapper for nested replies (indented)            ║
   ║  • .comment-header        → Avatar + meta info                               ║
   ║  • .comment-avatar        → Avatar container (40px/36px for replies)         ║
   ║  • .comment-meta          → Author name + date                               ║
   ║  • .comment-author        → Author name <strong>                             ║
   ║  • .comment-date          → Timestamp <span>                                 ║
   ║  • .comment-body          → Comment content (supports <p>, <ol>, <ul>)       ║
   ║  • .comment-actions       → Action buttons (Helpful, Reply)                  ║
   ║  • .comment-action        → Individual action button                         ║
   ║  • .instructor-badge      → Staff/admin badge                                ║
   ║                                                                              ║
   ║  SECURITY & TRUST:                                                           ║
   ║  • .privacy-notice        → Privacy statement area                           ║
   ║  • .privacy-badge         → "Secure & Private" badge at top                  ║
   ║  • .trust-badge           → Trust marks (SSL, Privacy, No Spam)              ║
   ║                                                                              ║
   ║  INTEGRATION NOTES:                                                          ║
   ║  1. Form inputs use standard names: name="name", "email", "comment"          ║
   ║  2. All styles work with EE's auto-formatting ({comment} tag)                ║
   ║  3. Error messages styled but hidden - show with JS on validation fail       ║
   ║  4. Gravatar support: Replace SVG avatars with <img> tags                    ║
   ║  5. Threaded comments: Apply .comment-reply to nested comments               ║
   ║  6. Staff detection: Add .instructor-badge when {if is_staff}                ║
   ║  7. Character counter: JavaScript updates #cCount dynamically                ║
   ║  8. Remember me: name="save_info" value="yes"                                ║
   ║                                                                              ║
   ║  DARK MODE:                                                                  ║
   ║  All dark mode styles prefixed with: body.dark-mode                          ║
   ║  • Comment items: rgba(29, 29, 31, 0.85) - matches composer                  ║
   ║  • Replies: rgba(29, 35, 41, 0.9) - subtle blue tint for separation          ║
   ║                                                                              ║
   ║  RESPONSIVE BREAKPOINTS:                                                     ║
   ║  • Desktop: Default styles                                                   ║
   ║  • Tablet: @media (max-width: 992px)                                         ║
   ║  • Mobile: @media (max-width: 768px)                                         ║
   ╚══════════════════════════════════════════════════════════════════════════════╝ */

.modern-comments {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  width: 100%;
  background: inherit;
}

/* Comments Header */
.comments-header {
  margin-bottom: 3rem;
  text-align: left;
}

.comments-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #1d1d1f;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.comments-subtitle {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 2rem;
  font-style: italic;
}

.comments-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  padding: 0.5rem 1rem;
}

.sort-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1d1d1f;
  margin: 0;
}

.sort-select {
  border: none;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0071e3;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.sort-select:hover {
  background: rgba(0, 113, 227, 0.08);
}

.sort-select:focus {
  outline: none;
  background: rgba(0, 113, 227, 0.12);
}

/* Comment Composer */
.comment-composer {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  padding: 2rem;
  margin-bottom: 3rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.comment-composer:hover {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.composer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.composer-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0;
}

.privacy-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(52, 199, 89, 0.1);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #34c759;
}

.privacy-badge svg {
  color: #34c759;
}

/* Form Fields */
.composer-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.composer-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1d1d1f;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.field-hint {
  font-size: 0.75rem;
  font-weight: 400;
  color: #6e6e73;
  font-style: italic;
}

.char-counter {
  font-size: 0.75rem;
  font-weight: 500;
  color: #86868b;
}

.field-input,
.field-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  font-size: 1rem;
  color: #1d1d1f;
  transition: all 0.2s ease;
  font-family: inherit;
}

.field-input:hover,
.field-textarea:hover {
  border-color: rgba(0, 0, 0, 0.25);
}

.field-input:focus,
.field-textarea:focus {
  outline: none;
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.field-input::placeholder,
.field-textarea::placeholder {
  color: #86868b;
}

.field-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.field-error {
  display: none;
  font-size: 0.75rem;
  color: #ff3b30;
  font-weight: 500;
  margin-top: 0.25rem;
}

.field-group.error .field-input,
.field-group.error .field-textarea {
  border-color: #ff3b30;
}

.field-group.error .field-error {
  display: block;
}

/* Composer Footer */
.composer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.composer-options {
  flex: 1;
}

.remember-checkbox {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  user-select: none;
}

.remember-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: #ffffff;
}

.remember-checkbox input:checked ~ .checkbox-custom {
  background: #0071e3;
  border-color: #0071e3;
}

.remember-checkbox input:checked ~ .checkbox-custom::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.checkbox-label {
  font-size: 0.875rem;
  color: #1d1d1f;
}

.btn-submit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: #0071e3;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-submit:hover {
  background: #0077ed;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit svg {
  transition: transform 0.2s ease;
}

.btn-submit:hover svg {
  transform: translateX(2px);
}

/* Privacy Notice */
.privacy-notice {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.privacy-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(52, 199, 89, 0.08);
  border: 1px solid rgba(52, 199, 89, 0.2);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #34c759;
}

.trust-badge svg {
  flex-shrink: 0;
}

.privacy-text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #6e6e73;
  margin: 0;
}

.privacy-link {
  color: #0071e3;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.privacy-link:hover {
  color: #0077ed;
  text-decoration: underline;
}

/* Comments Thread */
.comments-thread {
  margin-top: 3rem;
}

.thread-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.thread-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0;
}

.thread-count {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6e6e73;
  padding: 0.375rem 0.875rem;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 6px;
}

/* Comment List */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Individual Comment Item */
.comment-item {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.comment-item:hover {
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.comment-avatar {
  flex-shrink: 0;
}

.comment-avatar svg {
  display: block;
  border-radius: 50%;
}

.comment-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.comment-author {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0;
}

.comment-date {
  font-size: 0.8125rem;
  color: #86868b;
}

.comment-body {
  margin-bottom: 1rem;
}

.comment-body p {
  margin: 0;
  line-height: 1.6;
  color: #1d1d1f;
  font-size: 0.9375rem;
}

.comment-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.comment-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  color: #6e6e73;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.comment-action:hover {
  background: rgba(0, 113, 227, 0.08);
  color: #0071e3;
}

.comment-action svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Comment Replies - Nested/Threaded Comments */
.comment-replies {
  margin-top: 1.5rem;
  padding-left: 2rem;
  border-left: 3px solid rgba(0, 113, 227, 0.2);
}

.comment-reply {
  background: rgba(0, 113, 227, 0.03);
  border: 1px solid rgba(0, 113, 227, 0.15);
  border-radius: 6px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.comment-reply:hover {
  border-color: rgba(0, 113, 227, 0.25);
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.1);
}

.comment-reply .comment-avatar svg,
.comment-reply .comment-avatar img {
  width: 36px;
  height: 36px;
}

/* Nested Reply (Level 2+): Additional indentation and styling */
.comment-reply-nested {
  margin-top: 1rem;
}

.comment-reply-nested .comment-avatar svg,
.comment-reply-nested .comment-avatar img {
  width: 32px;
  height: 32px;
}

.comment-reply-nested .comment-body {
  font-size: 0.95rem;
}

/* Deep nesting visual cues */
.comment-replies .comment-replies {
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(0, 113, 227, 0.15);
}

body.dark-mode .comment-replies .comment-replies {
  border-left-color: rgba(10, 132, 255, 0.25);
}

/* Instructor/Staff Badge */
.instructor-badge {
  display: inline-flex;
  align-items: center;
  background: #0071e3;
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Formatted Lists in Comment Body */
.comment-body ol,
.comment-body ul {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
}

.comment-body li {
  margin: 0.5rem 0;
  line-height: 1.6;
  color: #1d1d1f;
}

.comment-body strong {
  font-weight: 600;
  color: #0071e3;
}

/* Dark Mode Support */
body.dark-mode .comments-title {
  color: #f5f5f7;
}

body.dark-mode .comments-subtitle {
  color: #f5f5f7;
}

body.dark-mode .comments-sort {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .sort-label {
  color: #f5f5f7;
}

body.dark-mode .sort-select {
  color: #0a84ff;
}

body.dark-mode .sort-select:hover {
  background: rgba(10, 132, 255, 0.15);
}

body.dark-mode .comment-composer {
  background: rgba(29, 29, 31, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .comment-composer:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

body.dark-mode .composer-title {
  color: #f5f5f7;
}

body.dark-mode .field-label {
  color: #f5f5f7;
}

body.dark-mode .field-hint {
  color: #a1a1a6;
}

body.dark-mode .field-input,
body.dark-mode .field-textarea {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f5f5f7;
}

body.dark-mode .field-input:hover,
body.dark-mode .field-textarea:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .field-input:focus,
body.dark-mode .field-textarea:focus {
  border-color: #0a84ff;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.25);
}

body.dark-mode .checkbox-custom {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .remember-checkbox input:checked ~ .checkbox-custom {
  background: #0a84ff;
  border-color: #0a84ff;
}

body.dark-mode .checkbox-label {
  color: #f5f5f7;
}

body.dark-mode .btn-submit {
  background: #0a84ff;
}

body.dark-mode .btn-submit:hover {
  background: #409cff;
}

body.dark-mode .privacy-notice {
  border-top-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .trust-badge {
  background: rgba(52, 199, 89, 0.15);
  border-color: rgba(52, 199, 89, 0.3);
}

body.dark-mode .privacy-text {
  color: #a1a1a6;
}

body.dark-mode .privacy-link {
  color: #0a84ff;
}

body.dark-mode .thread-header {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .thread-title {
  color: #f5f5f7;
}

body.dark-mode .thread-count {
  background: rgba(255, 255, 255, 0.08);
  color: #a1a1a6;
}

body.dark-mode .comment-item {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .comment-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

body.dark-mode .comment-author {
  color: #f5f5f7;
}

body.dark-mode .comment-date {
  color: #a1a1a6;
}

body.dark-mode .comment-body p {
  color: #f5f5f7;
}

body.dark-mode .comment-action {
  color: #a1a1a6;
}

body.dark-mode .comment-action:hover {
  background: rgba(10, 132, 255, 0.15);
  color: #0a84ff;
}

body.dark-mode .comment-replies {
  border-left-color: rgba(10, 132, 255, 0.3);
}

body.dark-mode .comment-reply {
  background: rgba(10, 132, 255, 0.08);
  border-color: rgba(10, 132, 255, 0.3);
}

body.dark-mode .comment-reply:hover {
  background: rgba(10, 132, 255, 0.12);
  border-color: rgba(10, 132, 255, 0.45);
  box-shadow: 0 2px 12px rgba(10, 132, 255, 0.25);
}

body.dark-mode .instructor-badge {
  background: #0a84ff;
  color: #1a1a1a;
}

body.dark-mode .comment-body li {
  color: #f5f5f7;
}

body.dark-mode .comment-body strong {
  color: #0a84ff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .modern-comments {
    padding: 2rem 0;
  }
  
  .comments-title {
    font-size: 2rem;
  }
  
  .comments-subtitle {
    font-size: 1.25rem;
  }
  
  .comment-composer {
    padding: 1.5rem;
    border-radius: 6px;
  }
  
  .comment-item {
    padding: 1rem;
  }
  
  .comment-header {
    gap: 0.75rem;
  }
  
  .comment-avatar svg {
    width: 32px;
    height: 32px;
  }
  
.comment-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .comment-action {
    width: 100%;
    justify-content: flex-start;
  }
  
  .comment-replies {
    padding-left: 1rem;
    border-left-width: 2px;
  }
  
  .comment-reply {
    padding: 1rem;
  }
  
  .comment-reply .comment-avatar svg,
  .comment-reply .comment-avatar img {
    width: 32px;
    height: 32px;
  }
  
  /* Mobile: Reduce nesting indentation */
  .comment-replies .comment-replies {
    margin-left: 0.5rem;
    padding-left: 0.5rem;
  }
  
  .comment-reply-nested .comment-avatar svg,
  .comment-reply-nested .comment-avatar img {
    width: 28px;
    height: 28px;
  }
  
  .comment-reply-nested .comment-body {
    font-size: 0.9rem;
  }
  
  .instructor-badge {
    display: block;
    margin-left: 0;
    margin-top: 0.25rem;
    width: fit-content;
  }
  
  .composer-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .composer-fields {
    grid-template-columns: 1fr;
  }
  
  .composer-footer {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-submit {
    width: 100%;
    justify-content: center;
  }
  
  .privacy-badges {
    flex-direction: column;
  }
  
  .thread-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* Helpful (like) badge */
.helpful-count {
  border-radius: 999px;
  background: rgba(13,71,161,.08);
  color: var(--brand, #0d47a1);
  padding: .1rem .45rem;
  font-size: .8rem;
}
.dark-mode .helpful-count { background: rgba(77,121,255,.15); }

/* Replies (nested) */
.replies {
  margin-left: 1.75rem;
  margin-top: .75rem;
  display: grid;
  gap: .75rem;
  border-left: 2px solid var(--line, #e6e6e6);
  padding-left: 1rem;
}
@media (max-width: 575.98px){ .replies { margin-left: .75rem; } }

/* Inline editor for reply */
.inline-editor {
  border: 1px dashed var(--line, #e6e6e6);
  border-radius: .5rem;
  padding: .75rem;
  background: #fff;
}
.dark-mode .inline-editor { background:#121212; border-color:#2a2a2a; }

/* Tiny toolbar buttons */
.comment-editor .btn,
.inline-editor .btn { border-radius: .4rem; }

/* Subtle divider between comments */
.comment + .comment { margin-top: .25rem; }

/* Status / Empty */
.empty-state {
  text-align: center;
  color: var(--muted, #777);
  padding: 1.5rem 1rem;
}
/* Breadcrumb styling when placed inside a dark navbar */
/* .navbar-breadcrumb { order: 3; } */ /* Disabled - using modern single-row layout */
.navbar .breadcrumb {
  --bs-breadcrumb-divider: "›";
  padding-top: .25rem;
}
.navbar.navbar-dark .breadcrumb .breadcrumb-item a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
}
.navbar.navbar-dark .breadcrumb .breadcrumb-item a:hover { color: #fff; text-decoration: underline; }
.navbar.navbar-dark .breadcrumb .breadcrumb-item.active { color: #fff; margin-left: 0px!important;
padding-left: 0px; 
}

/* Optional: subtler size */
.navbar .breadcrumb { font-size: .95rem; }

/* Optional (space-saver): hide breadcrumb on small screens */
/* .navbar-breadcrumb { display:none; } 
@media (min-width: 768px){ .navbar-breadcrumb { display:block; } } */
/* Gallery block fits your light card style */

/* Poster-frames with subtle motion */
.gallery-link { position: relative; border-radius: var(--radius, .375rem); overflow: hidden; }
.gallery-link img { transition: transform .4s ease, filter .4s ease; }
.gallery-link::after{
  content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,.0), rgba(0,0,0,.18));
  opacity: 0; transition: opacity .35s ease;
}
.gallery-link:hover img { transform: scale(1.04); filter: saturate(1.05); }
.gallery-link:hover::after { opacity: 1; }

/* Magnifier badge */
.gallery-zoom{
  position: absolute; right: .5rem; bottom: .5rem;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 999px;
  background: rgba(0,0,0,.55); color: #fff;
  backdrop-filter: blur(2px);
}

/* Modal look */
.gallery-modal .modal-body { background: #000; }
.gallery-caption { background: rgba(255,255,255,.96); color: var(--ink, #1e1e1e); }
.dark-mode .gallery-caption { background: rgba(18,18,18,.96); color: #c5defb; }
.gallery-caption .text-muted { color: var(--muted, #777) !important; }

/* Overlay nav arrows (mobile-friendly) */
.gallery-nav{
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.18); color: #fff; font-size: 28px; line-height: 44px;
  display: grid; place-items: center; cursor: pointer;
}
.gallery-nav--left{ left: .75rem; }
.gallery-nav--right{ right: .75rem; }
.gallery-nav:hover{ background: rgba(255,255,255,.28); }

.dark-mode .gallery-nav{ background: rgba(0,0,0,.35); }
.dark-mode .gallery-nav:hover{ background: rgba(0,0,0,.5); }

/* Object-fit utility if Bootstrap <5.3 */
.object-fit-cover{ object-fit: cover; }
/* Make gallery blend into article — no background/padding */
.gallery-block.gallery-edge{
  padding: 0;
  background: transparent;
  border: 0;
  margin-left: 0;
  margin-right: 0;
}

/* Keep the nice hover + zoom from earlier */
.gallery-link{ position:relative; border-radius: var(--radius, .375rem); overflow:hidden; }
.gallery-link img{ transition: transform .4s ease, filter .4s ease; }
.gallery-link::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.18));
  opacity: 0; transition: opacity .35s ease;
}
.gallery-link:hover img{ transform: scale(1.04); filter: saturate(1.05); }
.gallery-link:hover::after{ opacity: 1; }

/* Keep the small magnifier badge */
.gallery-zoom{
  position:absolute; right:.5rem; bottom:.5rem;
  width:34px; height:34px; border-radius:999px;
  background: rgba(0,0,0,.55); color:#fff; display:grid; place-items:center;
  backdrop-filter: blur(2px);
}

/* Dark mode harmony */
.dark-mode .gallery-zoom{ background: rgba(255,255,255,.18); }
/* Add this class to the <section> to bleed across viewport */
.gallery-bleed{
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  padding-left: 1rem;  /* keep gutters */
  padding-right: 1rem; /* keep gutters */
}
.key-numbers .kn-num{
  font-weight:800; letter-spacing:-.01em;
  font-size:clamp(1.6rem,1.2vw+1rem,2rem);
  color:var(--brand,#0d47a1);
}
.dark-mode .key-numbers{background:#16181c!important;border-color:#2a2a2a!important}
/* =========================================
   Key Numbers — premium editorial styling
   Uses your Montserrat + design tokens
========================================= */
.keynums{
  --kn-gap: 1.25rem;
  --kn-sep: var(--line, #e6e6e6);
  --kn-ink: var(--ink, #1e1e1e);
  --kn-muted: var(--muted, #666);
  --kn-brand: var(--brand, #0d47a1);
}

/* Variant A: clean (no background) */
.keynums--clean{ background: transparent; }

/* Variant B: blended band (barely there, high-end) */
.keynums--blend{
  background:
    linear-gradient(to bottom,
      color-mix(in srgb, var(--kn-sep) 12%, transparent),
      transparent 60%),
    color-mix(in srgb, var(--surface, #f7f8fa) 60%, transparent);
  border-radius: .5rem;
  padding: .75rem 0; /* very light breathing room */
}
.dark-mode .keynums--blend{
  background:
    linear-gradient(to bottom,
      color-mix(in srgb, var(--kn-sep) 12%, transparent),
      transparent 60%),
    color-mix(in srgb, var(--surface, #16181c) 70%, transparent);
}

/* Items */
.kn-item{
  position: relative;
  padding-left: .25rem; padding-right: .25rem;
}

/* Vertical hairline separators on md+ */
@media (min-width: 768px){
  .kn-item::after{
    content:""; position:absolute; top: 10%; bottom: 10%; right: -0.625rem;
    width: 1px; background: var(--kn-sep);
  }
  .row > [class*="col-"]:last-child .kn-item::after{ display: none; }
}
.dark-mode .kn-item::after{ background: color-mix(in srgb, var(--kn-sep) 60%, transparent); }

/* Huge, elegant numbers */
.kn-value{
  font-weight: 900; /* Montserrat Black */
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--kn-ink);
  font-size: clamp(2.4rem, 4vw + 1rem, 4.2rem);
  margin-bottom: .35rem;
  display: inline-flex; align-items: baseline; gap: .15em;
}

/* Small suffix (units/%) aligned nicely */
.kn-suffix{
  font-weight: 800; /* ExtraBold */
  font-size: .45em; /* relative to number */
  opacity: .9;
  transform: translateY(-0.06em);
}

/* Bold labels: editorial small caps vibe (not shouty) */
.kn-label{
  font-weight: 800; /* ExtraBold */
  font-size: clamp(.95rem, .4vw + .85rem, 1.05rem);
  letter-spacing: .02em;
  color: var(--kn-ink);
  margin-bottom: .25rem;
}

/* Muted micro-note for credibility */
.kn-note{
  font-size: .9rem;
  color: var(--kn-muted);
}

/* Optional accent underline on hover (lux detail) */
.kn-item:hover .kn-label{
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--kn-brand) 65%, transparent);
  text-underline-offset: .2em;
}

/* Compact spacing on very small screens */
@media (max-width: 575.98px){
  .kn-value{ font-size: clamp(2.2rem, 9vw, 3rem); }
}
/* ===== Author (borderless magazine style) ===== */
.author--borderless{
  background: transparent;
  border: 0;
}

.author__accent{
  height: 3px;
  border-radius: 999px;
  margin-bottom: 1rem;
  background: linear-gradient(90deg,
              var(--brand, #0d47a1) 0%,
              color-mix(in srgb, var(--brand, #0d47a1) 65%, var(--accent, #ffb300)) 50%,
              var(--accent, #ffb300) 100%);
  opacity: 0.9;
}

.author__wrap{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.1rem;
}

.author__photo{
  width: 88px; height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
}

.author__meta{ min-width: 0; }
.author__label{
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted, #777);
  margin-bottom: .15rem;
}

.author__name{
  margin: 0;
  font-weight: 900;             /* Montserrat Black */
  letter-spacing: -0.01em;
  font-size: clamp(1.25rem, .6vw + 1rem, 1.5rem);
  color: var(--ink, #1e1e1e);
}

.author__role{
  font-size: .95rem;
  color: var(--muted, #666);
  margin-bottom: .4rem;
}

.author__bio{
  margin: 0.25rem 0 0.5rem 0;
  color: var(--ink-2, #333);
  line-height: 1.7;
  max-width: 70ch;
}

.author__social{
  display: flex; gap: .45rem;
  list-style: none; margin: 0; padding: 0;
}
.author__social .soc{
  display: inline-grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line, #e6e6e6);
  background: transparent;
  color: var(--brand, #0d47a1);
  font-weight: 700; font-size: .8rem; text-decoration: none;
  transition: .2s ease;
}
.author__social .soc:hover{
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand, #0d47a1) 45%, var(--line, #e6e6e6));
}

/* Small screens */
@media (max-width: 575.98px){
  .author__wrap{ flex-direction: column; align-items: flex-start; }
  .author__photo{ width: 72px; height: 72px; }
}

/* Dark mode harmony */
.dark-mode .author__name{ color: #c5defb; }
.dark-mode .author__role{ color: #c5defb; }
.dark-mode .author__bio{ color: #c5defb; }
.dark-mode .author__photo{ border-color: rgba(255,255,255,.08); }
.dark-mode .author__social .soc{
  border-color: #2a2a2a;
  color: var(--brand, #4d79ff);
}
.dark-mode .author__social .soc:hover{
  border-color: rgba(77,121,255,.5);
}
/* ===== Reading progress (borderless, magazine) ===== */
.reading-progress{
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: 4px;                    /* slim but visible */
  z-index: 1100;                  /* above sticky navbar */
  pointer-events: none;
  background: transparent;        /* no track for ultra-minimal look */
}

.reading-progress__bar{
  display: block;
  width: 0%;
  height: 100%;
  transform-origin: left center;
  /* FireFly brand gradient: blue to yellow */
  background: linear-gradient(90deg,
              #005cb9 0%,
              #0080ff 40%,
              #ffe803 100%);
  transition: width .15s ease;
}

/* Prefer transform for smoother animation (optional) */
@supports (transform: scaleX(0)){
  .reading-progress__bar{
    width: auto;
    transform: scaleX(var(--rp, 0));
    transition: transform .12s linear;
  }
}

/* If you want it BELOW a sticky navbar, uncomment and adjust:
.reading-progress{ top: 56px; }
*/

/* ===== Read time (bold, borderless) ===== */
.readtime{
  display: inline-flex;
  align-items: baseline;
  gap: .35rem;
  margin-left: .35rem;
  font-weight: 800;               /* Montserrat ExtraBold */
  letter-spacing: .02em;
  color: var(--ink, #1e1e1e);
}

.readtime::before{
  content: "⏱";
  font-weight: 800;
  color: var(--brand, #0d47a1);
}

.readtime .rt-number{
  font-weight: 900;               /* Montserrat Black - bold number */
  letter-spacing: -.01em;
}

.readtime .rt-label{
  font-weight: 600;
  opacity: .85;
}

/* Dark mode harmony */
.dark-mode .reading-progress__bar{
  background: linear-gradient(90deg,
              #0066cc 0%,
              #3399ff 40%,
              #ffd000 100%);
}
.dark-mode .readtime{ color: #c5defb; }
/* Float variant: ~33% width, text wraps around */
.author--float{
  float: left;
  width: min(360px, 33%);
  margin: 0 1.5rem 1rem 0; /* gutter to the right & bottom */
  /* smooth text wrap edges; works on floated boxes */
  shape-outside: inset(0 round .6rem);
  shape-margin: .5rem;
  /* Align to top of adjacent content */
  transform: translateY(0);
}

/* Keep the borderless look you already have */
.author--borderless{ background: transparent; border: 0; }

/* Author Box Design with color accent #005cb9 */
.author--borderless.author--float {
  background: #005cb9 !important;
  border: 1px solid #fff !important;
  border-radius: 6px !important;
  padding: .75rem !important;
  position: relative;
  overflow: hidden;
}

/* Add subtle gradient overlay for visual depth */
.author--borderless.author--float::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Ensure content is above gradient */
.author--borderless.author--float .author__wrap {
  position: relative;
  z-index: 1;
}

/* Update text colors for readability on dark blue background */
.author--borderless.author--float .author__label {
  color: rgba(255, 255, 255, 0.8) !important;
}

.author--borderless.author--float .author__name {
  color: #ffffff !important;
}

.author--borderless.author--float .author__role {
  color: rgba(255, 255, 255, 0.85) !important;
}

.author--borderless.author--float .readtime {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Photo enhancement for dark background */
.author--borderless.author--float .author__photo {
  border: 3px solid rgba(255, 232, 3, 0.9) !important;
}

/* Dark mode adjustments */
body.dark-mode .author--borderless.author--float {
  background: #2a2a2a !important;
  border-color: #16181c !important;
}

/* Ensure article clears any floats at the end (so footers/etc. don't climb up) */
article::after{ content:""; display:block; clear: both; }

/* ===== Learning Objectives Cards ===== */
.learning-objectives {
  margin: 0;
  overflow: visible;
}

.objectives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 0;
  overflow: visible;
}

.objective-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 52, 102, 0.1);
  border-radius: 6px;
  padding: 0;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: visible;
  min-height: 280px;
  position: relative;
}

.objective-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 52, 102, 0.2);
}

.objective-checkmark {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 44px;
  height: 44px;
  z-index: 100;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.12));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.95;
}

.objective-card:hover .objective-checkmark {
  transform: scale(1.05);
  opacity: 1;
  filter: drop-shadow(0 4px 12px rgba(52, 199, 89, 0.3));
}

.objective-checkmark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.objective-checkmark svg circle {
  transition: all 0.3s ease;
}

.objective-card:hover .objective-checkmark svg circle {
  stroke: rgba(52, 199, 89, 0.4);
}

.objective-image {
  width: calc(100% - 10px);
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 6px 6px 0 0;
  margin: 5px 5px 0 5px;
}

.objective-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #003466;
  margin: 0;
  padding: 1.5rem 1rem;
  line-height: 1.4;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dark mode support */
body.dark-mode .objective-card {
  background: rgba(42, 42, 42, 0.6);
  border-color: rgba(197, 222, 251, 0.2);
}

body.dark-mode .objective-card:hover {
  background: rgba(42, 42, 42, 0.8);
  border-color: rgba(197, 222, 251, 0.3);
}


body.dark-mode .objective-title {
  color: #c5defb;
}

/* Responsive: Tablet */
@media (max-width: 991.98px) {
  .objectives-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  .objective-card:last-child {
    grid-column: span 2;
    max-width: 50%;
    margin: 0 auto;
  }
}

/* Responsive: Mobile */
@media (max-width: 767.98px) {
  .objectives-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .objective-card {
    min-height: 240px;
  }
  
  .objective-card:last-child {
    grid-column: span 1;
    max-width: 100%;
  }
  
  .objective-checkmark {
    width: 38px;
    height: 38px;
    top: -6px;
    right: -6px;
  }
  
  .objective-image {
    height: 160px;
  }
  
  .objective-title {
    font-size: 1rem;
    padding: 1rem 0.75rem;
  }
}

/* Hide author section on mobile only */
@media (max-width: 767.98px){
  .author--float,
  .author.author--borderless.author--float {
    display: none;
  }
}

/* Responsive: stack on tablet/phone */
@media (min-width: 768px) and (max-width: 991.98px){
  .author--float{
    float: none;
    width: 100%;
    margin: 1rem 0;
    shape-outside: unset;
    shape-margin: 0;
  }
}

/* (Keep your existing author styles) */
.author__accent{
  height: 3px; border-radius: 999px; margin-bottom: 1rem;
  background: linear-gradient(90deg,
    var(--brand, #0d47a1) 0%,
    color-mix(in srgb, var(--brand, #0d47a1) 65%, var(--accent, #ffb300)) 50%,
    var(--accent, #ffb300) 100%);
  opacity: .9;
}
.author__wrap{ display:flex; align-items:center; gap:1.1rem; }
.author__photo{ width:88px; height:88px; border-radius:50%; object-fit:cover; }
.author__label{ display:inline-block; font-size:.8rem; font-weight:600; text-transform:uppercase; letter-spacing:.08em; color:var(--muted,#777); }
.author__name{ margin:0; font-weight:900; letter-spacing:-.01em; font-size:clamp(1.25rem,.6vw+1rem,1.5rem); color:var(--ink,#1e1e1e); }
.author__role{ font-size:.95rem; color:var(--muted,#666); margin-bottom:.4rem; }
.author__bio{ margin:.25rem 0 .5rem; color:var(--ink-2,#333); line-height:1.7; max-width:70ch; }
.author__social{ display:flex; gap:.45rem; list-style:none; margin:0; padding:0; }
.author__social .soc{
  display:inline-grid; place-items:center; width:28px; height:28px; border-radius:999px;
  border:1px solid var(--line,#e6e6e6); background:transparent; color:var(--brand,#0d47a1);
  font-weight:700; font-size:.8rem; text-decoration:none; transition:.2s ease;
}
.author__social .soc:hover{ transform: translateY(-1px); border-color: color-mix(in srgb, var(--brand,#0d47a1) 45%, var(--line,#e6e6e6)); }

/* Small screens: stack internals nicely */
@media (max-width: 575.98px){
  .author__wrap{ flex-direction: column; align-items: flex-start; }
  .author__photo{ width:72px; height:72px; }
}

/* Dark mode harmony */
.dark-mode .author__name{ color:#c5defb; }
.dark-mode .author__role{ color:#c5defb; }
.dark-mode .author__bio{ color:#c5defb; }
.dark-mode .author__social .soc{ border-color:#2a2a2a; color:var(--brand,#4d79ff); }
.dark-mode .author__social .soc:hover{ border-color:rgba(77,121,255,.5); }
/* ---------- Kicker / Deck (magazine style) ---------- */
:root{
  /* fallback tokens (use yours if already defined) */
  --brand: #0d47a1;
  --accent: #ffb300;
  --ink: #1e1e1e;
  --muted: #666;

  /* category hues (tweak to match Firefly) */
  --features: #0d47a1; /* deep blue */
  --videos:   #6a1b9a; /* violet */
  --training: #2e7d32; /* green */
}

.kicker{
  display:inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;               /* SemiBold */
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  line-height: 1.2;
  color: var(--accent);
  margin-bottom: .5rem;
  /* subtle leading bar for editorial polish */
  position: relative;
  padding-left: .75rem;
}
.kicker::before{
  content:"";
  position:absolute; left:0; top:.45em;
  width:.45rem; height:.2rem; border-radius: 2px;
  background: currentColor;
}

.deck{
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;               /* Regular */
  font-size: clamp(1.1rem, .7vw + 1rem, 1.6rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 72ch;
  margin-top: .25rem;
  margin-bottom: 0;
}

/* Category color helpers */
.kicker.is-features{ color: var(--features); }
.kicker.is-videos  { color: var(--videos); }
.kicker.is-training{ color: var(--training); }

/* In-hero adaptation (light text over image) */
.hero-header .kicker{ color: #ffd166; opacity:.95; }
.hero-header .deck{ color: #e8e8e8; }

/* Dark mode harmony */
.dark-mode .deck{ color: #c5defb; }
/* ====== Did You Know? — Magazine Callout ====== */
:root{
  --brand: #0d47a1;
  --accent: #ffe803;
  --ink: #1e1e1e;
  --ink-2: #333;
  --muted: #666;
  --surface: #f7f8fa;
  --line: #e6e6e6;
  --radius: .6rem;
}

/* Wrapper */
.callout{
  border: 0; /* no borders */
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem 1.1rem;
}

/* Variant A: subtle blended background (premium, not boxy) */
.callout--blend{
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 70%, transparent), transparent 65%),
    transparent;
}

/* Variant B: fully borderless */
.callout--nobg{
  background: transparent;
  padding-left: 0; padding-right: 0;
}

/* Gradient accent bar */
.callout__accent{
  height: 3px; border-radius: 999px; margin-bottom: .9rem;
  background: linear-gradient(90deg,
              var(--brand) 0%,
              color-mix(in srgb, var(--brand) 70%, var(--accent)) 55%,
              var(--accent) 100%);
  opacity: .95;
}

/* Layout */
.callout__wrap{
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  align-items: start;
}

/* Icon badge (lux, restrained) */
.callout__icon{
  width: 44px; height: 44px; border-radius: 999px;
  display: grid; place-items: center;
  font-size: 1.1rem;
  background: #5693ce;
  color: var(--brand);
}

/* Typography */
.callout__kicker{
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: .25rem;
}

.callout__title{
  margin: 0 0 .35rem 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;                 /* Black */
  letter-spacing: -.01em;
  line-height: 1.25;
  font-size: clamp(1.15rem, .8vw + 1rem, 1.6rem);
  color: var(--ink);
}

.callout__text{
  margin: 0 0 .5rem 0;
  color: var(--ink-2);
  line-height: 1.7;
  font-size: 1.03rem;
  max-width: 72ch;
}

/* CTA link (refined underline) */
.callout__link{
  display: inline-block;
  font-weight: 700;                 /* bold, not shouty */
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--brand) 60%, transparent);
  text-underline-offset: .18em;
}
.callout__link:hover{
  text-decoration-color: var(--brand);
}

/* Borderless variant tightens spacing */
.callout--nobg .callout__accent{ margin-bottom: .75rem; }
.callout--nobg .callout__wrap{ column-gap: .9rem; }

/* Responsive */
@media (max-width: 575.98px){
  .callout{ padding: .9rem 0; }            /* edge-to-edge feel on mobile */
  .callout__icon{ width: 40px; height: 40px; font-size: 1rem; }
  .callout__title{ font-size: clamp(1.1rem, 1.8vw + 1rem, 1.4rem); }
}

/* Dark mode harmony */
.dark-mode .callout--blend{
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface, #16181c) 70%, transparent), transparent 65%),
    transparent;
}
.dark-mode .callout__icon{
  background: color-mix(in srgb, var(--brand) 15%, #000);
  color: #97adff; /* softened brand ink */
}
.dark-mode .callout__kicker{ color: #c5defb; }
.dark-mode .callout__title{ color: #c5defb; }
.dark-mode .callout__text{ color: #c5defb; }
.dark-mode .callout__link{ color: #7ea1ff; text-decoration-color: rgba(126,161,255,.55); }
.dark-mode .callout__link:hover{ text-decoration-color: #7ea1ff; }

/* ===== How-to Stepper (borderless, magazine) ===== */
.howto{
  --ink: var(--ink, #1e1e1e);
  --muted: var(--muted, #666);
  --brand: var(--brand, #0d47a1);
  --accent: var(--accent, #ffb300);
  --line: var(--line, #e6e6e6);
  color: var(--ink);
}

.howto__accent{
  height: 3px; border-radius: 999px; margin-bottom: .9rem;
  background: linear-gradient(90deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 70%, var(--accent)) 55%, var(--accent) 100%);
}

.howto__head {
  margin-top: 20px;
}

.howto__kicker{
    display: inline-block !important;
    font-family: 'Montserrat', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: .12em !important;
    font-weight: 500 !important;
    font-size: 1.2rem !important;
    color: #000000 !important;
    margin-bottom: .25rem !important;
    background-color: #FFE803 !important;
    padding: 4px 4px !important;
    line-height: 1 !important;
    -webkit-font-smoothing: subpixel-antialiased !important;
    -moz-osx-font-smoothing: auto !important;
    font-synthesis: none !important;
    text-rendering: geometricPrecision !important;
    transform: translateZ(0) !important;
    backface-visibility: hidden !important;
}

body.dark-mode .howto__kicker {
  color: #000000 !important;
}

.howto__title{
  margin:0 0 .25rem 0; 
  font-weight:300; 
  letter-spacing:.02em;
  font-size:clamp(1.4rem, .9vw + 1rem, 2rem);
  line-height: 1.5!important;
}

.howto__deck{
  margin:0 0 1.1rem 0; color: var(--muted); line-height:1.65;
  max-width: 72ch;
}

/* Stepper layout */
.stepper{
  list-style:none; margin:0; padding:0;
  display:grid; gap: 1.1rem 0;
  counter-reset: step;
}
.step{
  display:grid; grid-template-columns: 42px 1fr; column-gap:.9rem; align-items:start;
  position:relative; padding-bottom: .9rem;
}
.step:not(:last-child)::after{
  content:""; position:absolute; left:21px; top:42px; bottom:0;
  width:1px; background: var(--line);
}

/* Numbered disc + icon */
.step__icon{
  width:42px; height:42px; border-radius:999px; position:relative;
  display:grid; place-items:center;
  color:#fff; background: #97989a;
}
.step__icon::before{
  /* step number */
  counter-increment: step;
  content: counter(step);
  position:absolute; inset:auto auto -8px -8px;
  width:22px; height:22px; border-radius:999px;
  background:#005cb9; color: var(--brand);
  display:grid; place-items:center;
  font-weight:800; font-size:.8rem;
  border: 1px solid var(--line);
}

.step__icon svg{ width:24px; height:24px; display:block; }

/* Typography per step */
.step__title{
  margin:0 0 .15rem 0; font-weight:800; letter-spacing:-.005em;
  font-size: clamp(1.05rem, .5vw + 1rem, 1.25rem);
}
.step__text{
  margin:0; color: var(--muted); line-height:1.65;
}

/* Optional tip line */
.howto__tip{
  color: var(--muted); font-size: .95rem;
  border-left: 3px solid color-mix(in srgb, var(--brand) 70%, var(--accent));
  padding-left: .75rem;
}

/* Responsive */
@media (max-width: 575.98px){
  .step{ grid-template-columns: 38px 1fr; }
  .step__icon{ width:38px; height:38px; }
  .step:not(:last-child)::after{ left:19px; top:38px; }
}

/* Dark mode harmony */
.dark-mode .howto{ color:#c5defb; }
.dark-mode .howto__deck, .dark-mode .step__text, .dark-mode .howto__tip{ color:#c5defb; }
.dark-mode .step:not(:last-child)::after{ background:#2a2a2a; }
.dark-mode .step__icon{ background: linear-gradient(180deg, #4d79ff, #2c49aa); }
.dark-mode .step__icon::before{ background:#121212; color:#97adff; border-color:#2a2a2a; }

/* ============================
   Video Highlight (40/60 split)
   Borderless, magazine look
============================ */
.vhighlight{
  --brand: var(--brand, #0d47a1);
  --ink: var(--ink, #1e1e1e);
  --muted: var(--muted, #666);
  display: grid;
  grid-template-columns: 0.6fr 0.4fr; /* 40% video / 60% text */
  gap: clamp(1rem, 2vw, 2rem);
  align-items: center;
}

/* Reverse layout variant */
.vhighlight.vhighlight--reverse{
  grid-template-columns: 0.4fr 0.6fr;
}
.vhighlight.vhighlight--reverse .vhighlight__media{ order: 2; }
.vhighlight.vhighlight--reverse .vhighlight__body { order: 1; }

/* Media */
.vhighlight__media{
  min-width: 0; /* prevent overflow */
  /* subtle lift without a box */
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.08));
}

/* Text */
.vhighlight__body{
  min-width: 0;
}
.vhighlight .kicker{
  display:inline-block;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-weight:600;
  font-size:.8rem;
  color: var(--muted);
  margin-bottom:.35rem;
}
.vhighlight__title{
  margin: 0 0 .25rem 0;
  font-weight: 900;            /* Montserrat Black */
  letter-spacing: -0.01em;
  font-size: clamp(1.5rem, 1.1vw + 1rem, 2.2rem);
  color: var(--ink);
}
.vhighlight__deck{
  margin: 0 0 .5rem 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.05rem;
  max-width: 68ch;
}
.vhighlight__bullets{
  margin: 0 0 .5rem 0;
  padding-left: 1.1rem;
  color: var(--ink);
}
.vhighlight__bullets li{
  margin: .15rem 0;
  line-height: 1.6;
}
.vhighlight__meta{
  color: var(--muted);
  font-size: .95rem;
}

/* Responsiveness: stack on tablet/phone with video first */
@media (max-width: 991.98px){
  .vhighlight{
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.5rem;
  }
  /* Reset order for proper stacking - video first, text second */
  .vhighlight.vhighlight--reverse .vhighlight__media{ 
    order: 0 !important; 
  }
  .vhighlight.vhighlight--reverse .vhighlight__body { 
    order: 1 !important; 
  }
  
  .vhighlight__media {
    order: 0;
  }
  
  .vhighlight__body {
    order: 1;
    padding: 0;
  }
}

/* Additional mobile refinements */
@media (max-width: 767.98px){
  .vhighlight {
    gap: 1rem;
  }
  
  .vhighlight__title {
    font-size: 1.5rem;
  }
  
  .vhighlight__deck {
    font-size: 0.95rem;
  }
  
  .vhighlight__bullets {
    font-size: 0.9rem;
    padding-left: 1rem;
  }
}

/* Dark mode harmony */
.dark-mode .vhighlight__title{ color: #c5defb; }
.dark-mode .vhighlight__deck,
.dark-mode .vhighlight__meta,
.dark-mode .vhighlight .kicker{ color: #c5defb; }
/* ===== Magazine-style comments (borderless, typographic) ===== */
.comments__title{
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: clamp(1.25rem, .7vw + 1rem, 1.6rem);
}

/* Hairline rhythm */
.comment-list{
  list-style: none;
  margin: 0;
  padding: 0;
}
.comment{
  padding: 1rem 0;
  border-top: 1px solid var(--line, #e6e6e6);
}
.comment:first-child{ border-top: 2px solid var(--line, #e6e6e6); }

/* Header line: strong name + refined meta */
.comment__head{
  display: flex; align-items: baseline; gap: .5rem;
  margin-bottom: .25rem;
  flex-wrap: wrap;
}
.comment__author{
  font-weight: 800; letter-spacing: -.005em;
}
.comment__meta{
  color: var(--muted, #666);
  font-size: .9rem;
}
.comment__meta::before{
  content: "•";
  margin: 0 .4rem;
  color: var(--muted, #999);
}

/* Body text: comfortable line-height, preserves breaks */
.comment__body{
  color: var(--ink-2, #333);
  line-height: 1.7;
  white-space: pre-wrap;
  margin: .2rem 0 .4rem 0;
}

/* Actions: inline, quiet */
.comment__actions{
  display: flex; flex-wrap: wrap; gap: .5rem .8rem;
  font-size: .9rem;
}
.comment__btn{
  border: 0;
  background: none;
  color: var(--muted, #666);
  padding: 0;
  cursor: pointer;
}
.comment__btn:hover{ color: var(--brand, #0d47a1); text-decoration: underline; }
.comment__helpful{
  color: var(--muted, #666);
  font-size: .85rem;
}

/* Replies: subtle left rule + indent; no background */
.comment__replies{
  margin-top: .75rem;
  padding-left: 1rem;
  border-left: 2px solid var(--line, #e6e6e6);
}

/* Inline reply editor (still borderless) */
.reply-editor{
  margin-top: .5rem;
}
.reply-editor textarea{
  width: 100%;
  min-height: 80px;
}
.reply-editor .btn{ margin-top: .5rem; }

/* Composer trims */
.comment-form .form-control{
  border-radius: .375rem;
}

/* Dark mode harmony */
.dark-mode .comment{ border-top-color: #2a2a2a; }
.dark-mode .comment:first-child{ border-top-color: #2a2a2a; }
.dark-mode .comment__meta,
.dark-mode .comment__btn,
.dark-mode .comment__helpful{ color: #c5defb; }
.dark-mode .comment__body{ color: #c5defb; }
.dark-mode .comment__replies{ border-left-color: #2a2a2a; }

/* ============================================================================
   STICKY NAVIGATION BEHAVIOR
   
   INDEX PAGE (index.html):
   - Utility bar: STICKY (top: 0, z-index: 1030)
   - Nav bar: STICKY (top: 40px, z-index: 1020)
   - No progress bar
   
   INSIDE PAGES (overview.html, detail.html):
   - Utility bar: NOT STICKY (scrolls away)
   - Nav bar: STICKY (top: 0, z-index: 1020)
   - Progress bar: STICKY (top: 56px, z-index: 1015)
   ============================================================================ */

/* Utility Navigation Bar */
.utility-nav {
  background: #9da1aa;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0;
  position: relative;
  z-index: 1030;
  margin-bottom: 0;
}

/* Utility bar IS sticky on curriculum page (index.html) */
body.curriculum-page .utility-nav {
  position: sticky;
  top: 0;
}

/* Utility bar NOT sticky on inside pages (detail, overview) */
body.course-page .utility-nav,
body.lesson-page .utility-nav {
  position: relative;
}

.utility-nav-content {
  gap: 1rem;
}

body.dark-mode .utility-nav {
  background: #7a7e87;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Login Form Styling (Logged Out State) */
.user-login-form {
  margin-left: 1.2rem;
  padding-left: 1.2rem;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
}

/* Login Helper Popup */
.login-helper-popup {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  width: 280px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 6px;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1060;
  border: 1px solid rgba(0, 0, 0, 0.08);
  animation: fadeInPopup 0.5s ease-out 1s forwards;
}

@keyframes fadeInPopup {
  to {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.login-helper-popup.hidden {
  animation: fadeOutPopup 0.3s ease-out forwards;
}

@keyframes fadeOutPopup {
  to {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
  }
}

.close-popup {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  color: #666;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.close-popup:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #333;
}

.popup-icon {
  color: #005cb9;
  margin-bottom: 0.75rem;
}

.popup-icon svg {
  display: block;
}

.popup-content {
  margin-right: 1rem;
}

.popup-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.popup-indicator {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(239, 68, 68, 1),
              0 0 18px rgba(239, 68, 68, 0.7);
  animation: blink-login-status 3s ease-in-out infinite;
}

.popup-text {
  font-size: 0.8125rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.popup-arrow {
  position: absolute;
  top: -8px;
  right: 24px;
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-right: none;
  border-bottom: none;
  transform: rotate(45deg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Dark Mode Popup */
body.dark-mode .login-helper-popup {
  background: rgba(30, 30, 30, 0.98);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .popup-arrow {
  background: rgba(30, 30, 30, 0.98);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .close-popup {
  color: #999;
}

body.dark-mode .close-popup:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

body.dark-mode .popup-icon {
  color: #0a84ff;
}

body.dark-mode .popup-title {
  color: #ffffff;
}

body.dark-mode .popup-text {
  color: #c5defb;
}

.login-fields {
  gap: 0.4rem;
  background: rgba(0, 52, 102, 0.38);
  padding: 0.35rem 0.6rem;
  border-radius: 5px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

/* Ensure ExpressionEngine login form tag maintains horizontal layout */
/* Increased specificity to override Bootstrap defaults and EE-generated styles */
.user-login-form .login-fields form,
.login-fields > form,
.login-fields form {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  width: auto;
}

/* Ensure form children maintain inline layout */
.login-fields form > * {
  flex-shrink: 0;
}

/* Prevent Bootstrap from making form inputs block-level */
.login-fields form .form-control {
  display: inline-block;
  width: auto;
}

.login-status-indicator {
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(239, 68, 68, 1),
              0 0 24px rgba(239, 68, 68, 0.8),
              0 0 36px rgba(239, 68, 68, 0.5);
  animation: blink-login-status 3s ease-in-out infinite;
  margin-right: 5px;
}

@keyframes blink-login-status {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 16px rgba(239, 68, 68, 1),
                0 0 24px rgba(239, 68, 68, 0.8),
                0 0 36px rgba(239, 68, 68, 0.5);
  }
  50% {
    opacity: 0.2;
    box-shadow: 0 0 20px rgba(239, 68, 68, 1),
                0 0 32px rgba(239, 68, 68, 0.9),
                0 0 48px rgba(239, 68, 68, 0.6);
  }
}

.login-input {
  width: 140px;
  height: 26px;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 5px;
  padding: 0.25rem 0.5rem;
  transition: all 0.2s ease;
}

.login-input:focus {
  background: #ffffff;
  border-color: #005cb9;
  outline: none;
}

.login-input::placeholder {
  color: #6c757d;
  font-size: 0.7rem;
}

body.dark-mode .user-login-form {
  border-left-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .login-fields {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .login-input {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

body.dark-mode .login-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

body.dark-mode .login-input:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: #0a84ff;
}

.btn-login {
  background: #005cb9;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-login:hover {
  background: #004a99;
}

body.dark-mode .btn-login {
  background: #0a84ff;
  color: #000000;
}

body.dark-mode .btn-login:hover {
  background: #0066cc;
}

/* User Profile Styling (Logged In State) */
.user-profile {
  margin-left: 1.2rem;
  padding-left: 1.2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
}

.user-profile-dropdown {
  position: relative;
}

.user-profile-trigger {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.user-profile-trigger:hover {
  opacity: 1;
}

.user-profile-content {
  gap: 0.4rem;
  background: rgba(0, 52, 102, 0.38);
  padding: 0.35rem 0.6rem;
  border-radius: 5px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.welcome-text {
  color: #ffffff;
  white-space: nowrap;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-indicator {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 16px rgba(34, 197, 94, 1),
              0 0 24px rgba(34, 197, 94, 0.8),
              0 0 36px rgba(34, 197, 94, 0.5);
  animation: pulse-status 2s ease-in-out infinite;
}

@keyframes pulse-status {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 16px rgba(34, 197, 94, 1),
                0 0 24px rgba(34, 197, 94, 0.8),
                0 0 36px rgba(34, 197, 94, 0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(34, 197, 94, 1),
                0 0 32px rgba(34, 197, 94, 0.9),
                0 0 48px rgba(34, 197, 94, 0.6);
  }
}

.user-name {
  font-weight: 700;
  color: #ffe803;
}

.dropdown-arrow {
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.3s ease, color 0.2s ease;
  margin-left: 0.25rem;
}

.user-profile-trigger:hover .dropdown-arrow {
  color: #ffffff;
}

.user-profile-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
  color: #ffe803;
}

body.dark-mode .welcome-text {
  color: #ffffff;
}

body.dark-mode .user-name {
  color: #ffd000;
}

body.dark-mode .user-profile {
  border-left-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .user-profile-content {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.1);
}

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.user-profile-trigger:hover .user-avatar {
  border-color: #ffe803;
  transform: scale(1.05);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.dark-mode .user-avatar {
  border-color: rgba(255, 255, 255, 0.4);
}

body.dark-mode .user-profile-trigger:hover .user-avatar {
  border-color: #ffd000;
}

/* Apple-style Dropdown Menu */
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 200px;
  background: #9da1aa;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 6px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
              0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 1050;
}

.user-profile-dropdown.active .user-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.dropdown-item svg {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.dropdown-item:hover svg {
  color: #ffffff;
}

.dropdown-item:active {
  background: rgba(0, 92, 185, 0.15);
  transform: scale(0.98);
}

.dropdown-item-logout {
  margin-top: 0.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 0.75rem;
}

.dropdown-item-logout:hover {
  background: rgba(220, 38, 38, 0.2);
  color: #ff6b6b;
}

.dropdown-item-logout:hover svg {
  color: #ff6b6b;
}

/* Ensure button elements styled as dropdown-item look identical to anchor elements */
button.dropdown-item {
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

/* Dark Mode Dropdown */
body.dark-mode .user-dropdown-menu {
  background: #7a7e87;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
              0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .dropdown-item {
  color: #ffffff;
}

body.dark-mode .dropdown-item svg {
  color: #999;
}

body.dark-mode .dropdown-item:hover {
  background: rgba(255, 232, 3, 0.1);
  color: #ffe803;
}

body.dark-mode .dropdown-item:hover svg {
  color: #ffe803;
}

body.dark-mode .dropdown-item-logout {
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .dropdown-item-logout:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

body.dark-mode .dropdown-item-logout:hover svg {
  color: #ef4444;
}

/* Mobile Login Button - Hidden on Desktop */
.mobile-login-btn {
  display: none;
}

/* Mobile Login Modal Styles - Apple Design */
.mobile-modal-content {
  background: #f5f5f7;
  border: none;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.mobile-modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1.5rem 1.75rem;
  background: #ffffff;
  border-radius: 6px 6px 0 0;
}

.modal-title {
  color: #1d1d1f;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-login-indicator {
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(239, 68, 68, 1),
              0 0 24px rgba(239, 68, 68, 0.8),
              0 0 36px rgba(239, 68, 68, 0.5);
  animation: pulse-modal-status 2s ease-in-out infinite;
}

@keyframes pulse-modal-status {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.mobile-modal-body {
  padding: 1.75rem;
  background: #f5f5f7;
  border-radius: 0 0 6px 6px;
}

.modal-helper-text {
  color: #6e6e73;
  font-size: 0.9375rem;
  margin-bottom: 1.75rem;
  line-height: 1.6;
  font-weight: 400;
}

.mobile-login-form .form-label {
  color: #1d1d1f;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.mobile-form-input {
  background: #ffffff;
  border: 1px solid #d2d2d7;
  color: #1d1d1f;
  border-radius: 6px;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.mobile-form-input:focus {
  background: #ffffff;
  border-color: #0071e3;
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.mobile-form-input::placeholder {
  color: #86868b;
}

.mobile-submit-btn {
  background: #0071e3 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px;
  padding: 0.9375rem 1.5rem;
  font-weight: 600;
  font-size: 1.0625rem;
  margin-top: 0.75rem;
  transition: all 0.2s ease;
}

.mobile-submit-btn:hover {
  background: #0077ed !important;
}

body.dark-mode .mobile-modal-content {
  background: #1d1d1f;
}

body.dark-mode .mobile-modal-header {
  background: #2c2c2e;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .mobile-modal-body {
  background: #1d1d1f;
}

body.dark-mode .modal-title {
  color: #f5f5f7;
}

body.dark-mode .modal-helper-text {
  color: #98989d;
}

body.dark-mode .mobile-login-form .form-label {
  color: #f5f5f7;
}

body.dark-mode .mobile-form-input {
  background: #2c2c2e;
  border-color: #48484a;
  color: #f5f5f7;
}

body.dark-mode .mobile-form-input:focus {
  border-color: #0a84ff;
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.1);
}

body.dark-mode .mobile-form-input::placeholder {
  color: #6e6e73;
}

/* Mobile Responsive for Login/Profile */
@media (max-width: 768px) {
  /* Hide desktop login, show mobile button */
  .desktop-login {
    display: none !important;
  }
  
  /* MOBILE: Utility Nav - sticky on index, not sticky on inside pages */
  .utility-nav {
    background: #9da1aa;
    padding: 0.25rem 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative !important;
    z-index: 1030 !important;
  }
  
  /* Index page: utility bar IS sticky on mobile */
  body.curriculum-page .utility-nav {
    position: sticky !important;
    top: 0 !important;
  }
  
  /* Inside pages: utility bar NOT sticky on mobile */
  body.course-page .utility-nav,
  body.lesson-page .utility-nav {
    position: relative !important;
  }
  
  /* Mobile utility nav layout - space between with improved spacing */
  .utility-nav-content {
    justify-content: space-between !important;
    gap: 1.5rem;
    padding: 0 1rem;
    align-items: center;
    height: 100%;
    align-items: center;
  }
  
  .btn-language {
    font-size: 0.75rem;
    padding: 0.3rem 0.85rem;
    margin-left: 0;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .form-check.form-switch {
    margin-left: 0;
    margin-bottom: 0;
    padding-left: 0;
  }
  
  .form-switch .form-check-input {
    width: 3em;
    height: 1.3em;
    margin-top: 0;
  }
  
  .utility-nav .form-check-label {
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
    min-width: 30px;
    min-height: 20px;
    margin-bottom: 0;
  }
  
  .sun-icon,
  .moon-icon {
    font-size: 1.2rem !important;
    top: -8px !important;
  }
  
/* Mobile login button - icon only */
.mobile-login-btn {
  width: 84px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(0, 52, 102, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  color: #ffffff;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  min-width: 84px;
  min-height: 44px;
}
  
.mobile-login-btn:hover {
  opacity: 0.95;
}
  
  .mobile-login-indicator {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 12px rgba(239, 68, 68, 1),
                0 0 18px rgba(239, 68, 68, 0.7);
    animation: blink-mobile-indicator 3s ease-in-out infinite;
  }
  
  @keyframes blink-mobile-indicator {
    0%, 50% {
      opacity: 1;
      transform: translateY(-50%) scale(1);
    }
    25%, 75% {
      opacity: 0.3;
      transform: translateY(-50%) scale(0.8);
    }
  }
  
  .mobile-login-text {
    white-space: nowrap;
  }
  
  body.dark-mode .utility-nav {
    background: #7a7e87;
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
  
  body.dark-mode .mobile-login-btn {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  /* MOBILE: Main Navbar - positioning based on page type */
  .navbar.sticky-top {
    position: -webkit-sticky !important;
    position: sticky !important;
    z-index: 1020 !important;
    padding: 0.5rem 1rem !important;
    margin: 0 !important;
  }
  
  /* Index page: navbar sticks below utility bar */
  body.curriculum-page .navbar.sticky-top {
    top: 50px !important;
    margin-top: 0 !important;
  }
  
  /* Ensure no gap on mobile index page */
  body.curriculum-page .utility-nav {
    margin-bottom: 0 !important;
  }
  
  /* Inside pages: navbar sticks to top */
  body.course-page .navbar.sticky-top,
  body.lesson-page .navbar.sticky-top {
    top: 0 !important;
  }
  
  .navbar > .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  .navbar-single-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.5rem 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }
  
  /* Center logo on mobile */
  .navbar-brand {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .navbar-logo {
    height: 32px;
    width: auto;
  }
  
  /* Show breadcrumb on mobile - below logo */
  .navbar-breadcrumb {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
  }
  
  .modern-breadcrumb {
    justify-content: center !important;
    font-size: 0.7rem !important;
    padding: 0 !important;
  }
  
  /* Hide breadcrumbs on mobile for index page only */
  body.curriculum-page .modern-breadcrumb-nav {
    display: none !important;
  }
  
  body.curriculum-page .navbar-breadcrumb {
    display: none !important;
  }
  
  .modern-breadcrumb-item {
    font-size: 0.7rem !important;
  }
  
  .breadcrumb-icon {
    width: 10px !important;
    height: 10px !important;
  }
  
  /* MOBILE: Progress Bar (HIDDEN) */
  .lesson-progress-container {
    display: none !important;
  }
  
  /* Inside pages: progress bar sticks below navbar at top */
  body.course-page .lesson-progress-container,
  body.lesson-page .lesson-progress-container {
    top: 57px !important; /* Directly below mobile navbar */
    z-index: 1019 !important;
  }
  
  /* When collapsed, progress bar stays thin and sticky */
  .lesson-progress-container.collapsed {
    position: sticky !important;
    top: 57px !important;
  }
  
  /* Ensure no gap on mobile */
  body.course-page .navbar.sticky-top,
  body.lesson-page .navbar.sticky-top {
    margin-bottom: 0 !important;
    z-index: 1020 !important;
  }
  
  body.course-page .lesson-progress-container,
  body.lesson-page .lesson-progress-container {
    margin-top: 0 !important;
  }

  .login-input {
    width: 120px;
    font-size: 0.75rem;
  }
  
  .btn-login {
    padding: 0.3rem 0.25rem;
    font-size: 0.75rem;
  }
  
  .welcome-text {
    display: none !important;
  }
  
  .user-avatar {
    width: 24px;
    height: 24px;
  }
}

/* Main navbar - positioned differently based on page type */
.navbar.sticky-top {
  position: sticky;
  z-index: 1020;
}

/* Index page: navbar sticks below utility bar */
body.curriculum-page .navbar.sticky-top {
  top: 40px;
  margin-top: 0 !important;
}

/* Ensure no gap between utility bar and navbar on index */
body.curriculum-page .utility-nav {
  margin-bottom: 0 !important;
}

/* Inside pages: navbar sticks to top (utility bar not sticky) */
body.course-page .navbar.sticky-top,
body.lesson-page .navbar.sticky-top {
  top: 0;
  margin-top: 0 !important;
}

/* Apple-style Progress Bar - below navbar */
.lesson-progress-container {
  position: sticky;
  z-index: 1019;
  background: rgba(249, 249, 249, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
  padding: 1.25rem 0 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Collapsed state when scrolling (mobile only) */
.lesson-progress-container.collapsed {
  padding: 0.25rem 0 !important;
}

/* Hide step labels when collapsed */
.lesson-progress-container.collapsed .step-label {
  opacity: 0;
  height: 0;
  margin: 0;
  transition: all 0.3s ease;
}

/* Thin progress bar when collapsed */
.lesson-progress-container.collapsed .lesson-progress {
  height: 4px !important; /* thin line */
  transition: all 0.3s ease;
}

.lesson-progress-container.collapsed .step-indicator {
  width: 12px !important;
  height: 12px !important;
  font-size: 0 !important;
  transition: all 0.3s ease;
}

/* Inside pages: progress bar sticks below navbar (navbar at top) */
body.course-page .lesson-progress-container,
body.lesson-page .lesson-progress-container {
  position: sticky;
  top: 84px; /* Navbar height (56px) + spacing (34px) */
  margin-top: 0 !important;
  z-index: 1019;
}

/* Ensure no gap between navbar and progress bar */
body.course-page .navbar.sticky-top,
body.lesson-page .navbar.sticky-top {
  margin-bottom: 0 !important;
}

/* Note: Mobile positioning handled in main mobile media query below */

/* Remove accent line */
.lesson-progress-container::before {
  display: none;
}

/* Light mode - Apple style */
body:not(.dark-mode) .lesson-progress-container {
  background: rgba(249, 249, 249, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
}

/* Dark mode - Apple style */
body.dark-mode .lesson-progress-container {
  background: rgba(29, 29, 31, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
}

.lesson-progress {
  position: relative;
  z-index: 2;
  /* ensure indicators sit above the fill bar */
}

/* Mobile responsive styles for lesson progress */
@media (max-width: 768px) {
  .lesson-progress-container {
    padding: 1rem 0 !important;
    overflow: hidden;
  }
  
  .lesson-progress-container .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .progress-step {
    padding: 0 0.15rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
  }
  
  .step-indicator {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  
  /* Hide all labels by default on mobile */
  .step-label {
    display: none;
  }
  
  /* Only show active step label - centered under number, lowered by 20px */
  .progress-step.current .step-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 0.35rem;
    text-align: center;
    white-space: normal;
    color: #003466;
    position: relative;
    top: 17px;
    max-width: 80px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.2;
  }
  
  /* Ensure active indicator is properly sized on mobile - keep in original position */
  .progress-step.current .step-indicator {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .lesson-progress-container {
    padding: 0.75rem 0 !important;
  }
  
  .lesson-progress-container .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .progress-step {
    padding: 0 0.1rem;
  }
  
  .step-indicator {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
    border-width: 1.5px;
  }
  
  /* Active step on very small screens */
  .progress-step.current .step-indicator {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }
  
  .progress-step.current .step-label {
    font-size: 0.65rem;
    margin-top: 0.1rem;
    top: 12px;
    max-width: 70px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.1;
  }
  
  .progress-bar-background {
    height: 3px;
  }
}

/* Mobile Video Highlight Reordering */
@media (max-width: 768px) {
  /* Make vhighlight a flex column for mobile reordering */
  .vhighlight {
    display: flex !important;
    flex-direction: column !important;
  }
  
  /* Body container needs to be flex too and ordered first */
  .vhighlight__body {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    order: 1;
  }
  
  /* Within body: kicker → title → deck → bullets */
  .vhighlight .howto__kicker {
    order: 1;
    margin-bottom: 0.5rem;
    display: inline-block;
    width: auto;
    align-self: flex-start;
  }
  
  .vhighlight__title {
    order: 2;
    margin-bottom: 1rem;
  }
  
  /* Deck and bullets come after video */
  .vhighlight__deck {
    order: 4;
    margin-bottom: 1rem;
  }
  
  .vhighlight__bullets {
    order: 5;
  }
  
  /* Video comes after body (after kicker and title) */
  .vhighlight__media {
    order: 3;
    width: 100% !important;
    margin-bottom: 1.5rem;
  }
  
  /* Mobile-only main title: centered and closer to progress bar */
  .col-lg-8 .display-4.d-block.d-md-none {
    text-align: center;
    margin-top: 0;
    margin-bottom: 0.75rem;
  }
  
  .col-lg-8 {
    margin-top: -1.25rem;
  }
}

.progress-step {
  text-align: center;
  flex: 1;
  position: relative;
  cursor: pointer;
  padding: 0 0.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-step:hover .step-indicator {
  transform: scale(1.15);
}

.progress-step:hover .step-label {
  color: #ffe803;
  transform: translateY(-2px);
  font-weight: 700;
}

/* Light mode: keep step label black on hover */
body:not(.dark-mode) .progress-step:hover .step-label {
  color: #000000;
  font-weight: 700;
}

.progress-step.completed:hover .step-label {
  font-weight: 700;
}

/* Light mode: keep completed step label black on hover */
body:not(.dark-mode) .progress-step.completed:hover .step-label {
  color: #000000;
  font-weight: 700;
}

/* Default step indicators - Apple style (Square for Overview) */
.step-indicator {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background-color: rgba(142, 142, 147, 0.12);
  border: 2px solid rgba(142, 142, 147, 0.3);
  color: rgba(60, 60, 67, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-step.completed .step-indicator {
  background: #005cb9;
  color: #F6F6F6;
  border-color: #005cb9;
}

/* Current Step Highlight - Overview Page (Square Badges) */
.progress-step.current .step-indicator {
  background: linear-gradient(135deg, #ffe803 0%, #ffd000 100%);
  color: #003466;
  border-color: #003466;
  transform: scale(1.44);
  font-weight: 800;
  font-size: 1.44rem;
}

.progress-step.current .step-label {
  color: #003466;
  font-weight: 700;
  transform: translateY(4px);
  font-size: 1.25em;
  line-height: 1.2;
  margin-top: 15px;
}

body.dark-mode .progress-step.current .step-indicator {
  background: linear-gradient(135deg, #ffe803 0%, #ffd000 100%) !important;
  color: #003466 !important;
  border-color: #ffffff !important;
}

body.dark-mode .progress-step.current .step-label {
  color: #c5defb !important;
}

@keyframes pulse-current-square {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 232, 3, 0.6), 0 4px 16px rgba(255, 232, 3, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 232, 3, 0.8), 0 6px 24px rgba(255, 232, 3, 0.6);
  }
}

.progress-step.current:hover .step-indicator {
  transform: scale(1.44);
}

/* Detail Page Progress - Circular Indicators */
.lesson-detail-progress .step-indicator {
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.lesson-detail-progress .progress-step.completed .step-indicator {
  background: #005cb9;
  border-color: #005cb9;
}

/* Current Step Highlight - Detail Page */
.lesson-detail-progress .progress-step.current .step-indicator {
  background: linear-gradient(135deg, #ffe803 0%, #ffd000 100%);
  color: #003466!important;
  border-color: #003466;
  border-width: 2px;
  transform: scale(1.44);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  margin-top: 15px;
}

.lesson-detail-progress .progress-step.current .step-label {
  color: #003466;
  font-weight: 700;
  transform: translateY(4px);
  font-size: 1.25em;
  line-height: 1.2;
  margin-top: 15px;
}

body.dark-mode .lesson-detail-progress .progress-step.current .step-indicator {
  background: linear-gradient(135deg, #ffe803 0%, #ffd000 100%) !important;
  color: #003466 !important;
  border-color: #ffffff !important;
}

body.dark-mode .lesson-detail-progress .progress-step.current .step-label {
  color: #c5defb !important;
}

/* Dark mode mobile active label */
@media (max-width: 768px) {
  body.dark-mode .progress-step.current .step-label {
    color: #c5defb !important;
  }
}

@keyframes pulse-current {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 232, 3, 0.6), 0 0 40px rgba(255, 232, 3, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 232, 3, 0.8), 0 0 60px rgba(255, 232, 3, 0.5);
  }
}

.lesson-detail-progress .progress-step:hover .step-indicator {
  transform: scale(1.15);
}

.lesson-detail-progress .progress-step:hover .step-label {
  font-weight: 700;
}

/* Light mode: keep step label black on hover for detail page */
body:not(.dark-mode) .lesson-detail-progress .progress-step:hover .step-label {
  color: #000000;
  font-weight: 700;
}

.lesson-detail-progress .progress-step.current:hover .step-indicator {
  transform: scale(1.44);
}

.lesson-detail-progress .progress-step.completed:hover .step-label {
  font-weight: 700;
}

/* Light mode: keep completed step label black on hover for detail page */
body:not(.dark-mode) .lesson-detail-progress .progress-step.completed:hover .step-label {
  color: #000000;
  font-weight: 700;
}

/* Dark mode: step indicator - Apple style */
body.dark-mode .step-indicator {
  background-color: rgba(142, 142, 147, 0.2);
  border-color: rgba(142, 142, 147, 0.4);
  color: rgba(235, 235, 245, 0.6);
}

/* Step labels - Apple style */
.step-label {
  margin-top: 4px;
  font-size: 0.8125rem;
  color: rgba(60, 60, 67, 0.6);
  font-weight: 500;
  transition: all 0.3s ease;
  letter-spacing: -0.01em;
}

/* Dark mode step labels */
body.dark-mode .step-label {
  color: rgba(235, 235, 245, 0.6);
}

/* Completed step labels - more visible */
.progress-step.completed .step-label {
  color: #005cb9;
  font-weight: 600;
}

body.dark-mode .progress-step.completed .step-label {
  color: #0a84ff;
  font-weight: 600;
}

.progress-bar-background {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(120, 120, 128, 0.16);
  transform: translateY(-50%);
  z-index: 1;
  border-radius: 1.5px;
  overflow: hidden;
}

body.dark-mode .progress-bar-background {
  background: rgba(120, 120, 128, 0.32);
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: #005cb9;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border-radius: 1.5px;
}

body.dark-mode .progress-bar-fill {
  background: #0a84ff;
}
 /* Dark mode icon toggle - inline to avoid caching */
 .form-check-label {
  position: relative !important;
}
.sun-icon,
.moon-icon {
  position: absolute !important;
  left: 0px !important;
  top: -22px !important;
  display: inline-block !important;
  transition: opacity 0.4s ease !important;
  font-size: 1.4rem !important;
}

.sun-icon {
  opacity: 1 !important;
  left: 2px !important;
}

.moon-icon {
  opacity: 0 !important;
}

body.dark-mode .sun-icon {
  opacity: 0 !important;
}

body.dark-mode .moon-icon {
  opacity: 1 !important;
}
@media (max-width: 576px){
.sun-icon,
.moon-icon {
  position: absolute !important;
  left: 6px !important;
  top: 0px !important;
  display: inline-block !important;
  transition: opacity 0.4s ease !important;
  font-size: 1.4rem !important;
}

.sun-icon {
  opacity: 1 !important;
  left: 8px !important;
}

.moon-icon {
  opacity: 0 !important;
  left: 12px !important;
}

body.dark-mode .sun-icon {
  opacity: 0 !important;
}

body.dark-mode .moon-icon {
  opacity: 1 !important;
}
}

/* ===== Site Footer ===== */
html {
  scroll-behavior: smooth;
}

.site-footer {
  background: #f5f5f7;
  color: #6e6e73;
  margin-top: 5rem;
  font-family: 'Montserrat', sans-serif;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
body.dark-mode .site-footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%)!important;
  border-top: 1px solid rgba(255, 255, 255, 0.1)!important;
}
.footer-main {
  padding: 4rem 2rem 2rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1d1d1f;
  margin-bottom: 1.5rem;
  margin-top: 0;
}

.footer-subheading {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1d1d1f;
  margin-bottom: 0.75rem;
  display: block;
}

.footer-logo {
  width: 180px;
  height: auto;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #6e6e73;
}

.footer-contact p {
  font-size: 0.85rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
  color: #6e6e73;
}

.footer-contact strong {
  color: #1d1d1f;
  font-weight: 600;
}

.footer-link {
  color: #6e6e73;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #0071e3;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #6e6e73;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #0071e3;
  transform: translateX(3px);
}

.footer-chat-link {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
}

.footer-chat-link svg {
  flex-shrink: 0;
}

.footer-newsletter-text {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #6e6e73;
}

.footer-newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  background: #ffffff;
  color: #1d1d1f;
  font-size: 0.9rem;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s ease;
}

.newsletter-input:focus {
  outline: none;
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.newsletter-input::placeholder {
  color: #86868b;
}

.newsletter-btn {
  padding: 0.75rem 1.5rem;
  background: #0071e3;
  border: none;
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletter-btn:hover {
  background: #0077ed;
  transform: translateY(-2px);
}

.footer-social {
  margin-bottom: 2rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Social Icons - Light Mode: Black icons with subtle background */
.social-icons a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);       /* Light gray background */
  color: #1d1d1f;                        /* Black/dark icons */
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: #0071e3;                   /* Apple blue on hover */
  color: #ffffff;
  transform: scale(1.1) translateY(-2px);
}

.social-icons svg {
  width: 20px;
  height: 20px;
}

.footer-language {
  margin-top: 1rem;
}

.language-selector {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  background: #ffffff;
  color: #1d1d1f;
  font-size: 0.9rem;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.language-selector:focus {
  outline: none;
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.language-selector option {
  background: #ffffff;
  color: #1d1d1f;
}

/* Footer Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 2rem;
}

.footer-bottom .footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  grid-template-columns: 1fr;
}

.footer-copyright {
  font-size: 0.85rem;
  color: #86868b;
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-legal a {
  color: #86868b;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: #0071e3;
}

.footer-legal .separator {
  color: rgba(0, 0, 0, 0.2);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: #003466;
  border: none;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #005cb9;
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

/* Dark Mode Footer Adjustments - Gradient background for depth */
body.dark-mode .site-footer {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .footer-logo {
  filter: brightness(0) invert(1);
}

body.dark-mode .footer-heading {
  color: #ffffff;
}

body.dark-mode .footer-subheading {
  color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .footer-tagline {
  color: #c5defb;
}

body.dark-mode .footer-contact p {
  color: #c5defb;
}

body.dark-mode .footer-contact strong {
  color: #ffffff;
}

body.dark-mode .footer-link {
  color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .footer-link:hover {
  color: #ffe803;
}

body.dark-mode .footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .footer-links a:hover {
  color: #ffe803;
}

body.dark-mode .footer-newsletter-text {
  color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .footer-copyright {
  color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .footer-legal a {
  color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .footer-legal a:hover {
  color: #ffe803;
}

body.dark-mode .footer-legal .separator {
  color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .newsletter-input,
body.dark-mode .language-selector {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(197, 222, 251, 0.2);
  color: #ffffff;
}

body.dark-mode .newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

body.dark-mode .newsletter-input:focus,
body.dark-mode .language-selector:focus {
  border-color: #ffe803;
  background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .language-selector option {
  background: #1a1a1a;
  color: #ffffff;
}

body.dark-mode .newsletter-btn {
  background: #005cb9;
}

body.dark-mode .newsletter-btn:hover {
  background: #003466;
}

/* Social Icons - Dark Mode: White icons with transparent background */
body.dark-mode .social-icons a {
  background: rgba(255, 255, 255, 0.1);  /* Subtle white background */
  color: rgba(255, 255, 255, 0.8);       /* White icons */
}

body.dark-mode .social-icons a:hover {
  background: #ffe803;                   /* Brand yellow on hover */
  color: #1a1a1a;                        /* Dark text on yellow */
}

body.dark-mode .back-to-top {
  background: #005cb9;
}

body.dark-mode .back-to-top:hover {
  background: #ffe803;
  color: #1a1a1a;
}

/* Responsive: Tablet */
@media (max-width: 991.98px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .footer-column:nth-child(4) {
    grid-column: span 2;
  }
}

/* Responsive: Mobile */
@media (max-width: 767.98px) {
  .site-footer {
    margin-top: 3rem;
    text-align: center;
  }
  
  .footer-main {
    padding: 3rem 1.5rem 1.5rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-column {
    text-align: center;
  }
  
  .footer-column:nth-child(4) {
    grid-column: span 1;
  }
  
  .footer-logo {
    width: 150px;
    margin: 0 auto 1rem;
  }
  
  .footer-heading {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
  }
  
  .footer-subheading,
  .footer-tagline,
  .footer-contact,
  .footer-newsletter-text {
    text-align: center;
  }
  
  .footer-links {
    align-items: center;
  }
  
  .footer-newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-btn {
    width: 100%;
  }
  
  .social-icons {
    justify-content: center;
  }
  
  .footer-bottom .footer-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-legal {
    justify-content: center;
  }
  
  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 1.5rem;
    right: 1.5rem;
  }
  
  .back-to-top svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 576px) {
  .footer-main {
    padding: 2rem 1rem 1rem;
  }
  
  .footer-contact p {
    font-size: 0.8rem;
  }
  
  .footer-links a {
    font-size: 0.85rem;
  }
  
  .footer-legal {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .footer-legal .separator {
    display: none;
  }
}

/* ============================================================================
   CURRICULUM LANDING PAGE STYLES
   ============================================================================ */

/* Hero Slider Section - Full Width */
.hero-slider-section {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

.hero-slider-section .carousel {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.hero-slider-section .carousel-inner {
  width: 100%;
}

.hero-slider-section .carousel-item {
  position: relative;
  height: 420px;
  overflow: hidden;
}

.hero-slider-section .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Overlay for better text readability */
.carousel-caption-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}

/* Caption Styling */
.hero-slider-section .carousel-caption {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  text-align: right;
  padding: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 420px;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffe803;
  background: rgba(255, 232, 3, 0.15);
  padding: 0.3rem 0.7rem;
  border-radius: 980px;
  margin-bottom: 0.75rem;
  backdrop-filter: blur(10px);
  text-align: right;
}

.hero-title {
  font-size: 2.1rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.875rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-align: right;
}

.hero-description {
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1.25rem;
  max-width: 480px;
  margin-left: auto;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  text-align: right;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  justify-content: flex-end;
  text-align: right;
}

.hero-meta svg {
  stroke-width: 2;
  width: 14px;
  height: 14px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #005cb9;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  border: none;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 92, 185, 0.4);
}

.btn-hero:hover {
  background: #003d7a;
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 92, 185, 0.5);
}

/* Carousel Controls */
.hero-slider-section .carousel-control-prev,
.hero-slider-section .carousel-control-next {
  width: 80px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.hero-slider-section .carousel-control-prev:hover,
.hero-slider-section .carousel-control-next:hover {
  opacity: 1;
}

.hero-slider-section .carousel-control-prev-icon,
.hero-slider-section .carousel-control-next-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  padding: 8px;
}

/* Carousel Indicators */
.hero-slider-section .carousel-indicators {
  bottom: 30px;
  z-index: 3;
}

.hero-slider-section .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid transparent;
  margin: 0 6px;
  transition: all 0.3s ease;
}

.hero-slider-section .carousel-indicators button.active {
  background-color: #ffe803;
  border-color: #ffe803;
  transform: scale(1.2);
}

/* Simple Dissolve Transition - No Glitch Fix */
.hero-slider-section .carousel-fade .carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 0;
}

.hero-slider-section .carousel-fade .carousel-item.active {
  opacity: 1;
  z-index: 1;
  position: relative;
}

.hero-slider-section .carousel-fade .carousel-item-next.carousel-item-start,
.hero-slider-section .carousel-fade .carousel-item-prev.carousel-item-end {
  z-index: 1;
  opacity: 1;
  transition: opacity 0.8s ease-in-out;
}

.hero-slider-section .carousel-fade .carousel-item-next:not(.carousel-item-start),
.hero-slider-section .carousel-fade .active.carousel-item-end {
  z-index: 0;
  opacity: 0;
}

/* Ensure smooth positioning */
.hero-slider-section .carousel-fade .carousel-item-start,
.hero-slider-section .carousel-fade .carousel-item-end {
  transition: opacity 0.8s ease-in-out;
}

/* How to Use Section */
.how-to-section {
  padding: 4rem 0 3rem;
  background: #ffffff;
}

.how-to-content {
  text-align: center;
}

.how-to-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1d1d1f;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.how-to-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #6e6e73;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.support-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.support-card {
  background: #f9f9f9;
  border-radius: 6px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.support-card:hover {
  background: #ffffff;
  border-color: #e0e0e0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}

.support-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.5rem;
  color: #005cb9;
  stroke-width: 2;
}

.support-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 0.75rem;
}

.support-card-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #6e6e73;
  margin-bottom: 1.25rem;
}

.support-link {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #005cb9;
  text-decoration: none;
  transition: all 0.3s ease;
}

.support-link:hover {
  color: #003d7a;
  transform: translateX(5px);
}

/* Curriculum Cards Section */
.curriculum-cards-section {

  background: #eaeaea;
}

.curriculum-section-header {
  text-align: left;
  margin-bottom: 4rem;
  max-width: 900px;
}

.curriculum-section-header .howto__kicker {
  margin-bottom: 1rem;
}

.curriculum-section-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #1d1d1f;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.curriculum-section-description {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #6e6e73;
  max-width: 800px;
  margin: 0;
  font-weight: 400;
}

.curriculum-card {
  position: relative;
  display: flex;
  align-items: stretch;
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 200px;
  border-left: 6px solid #fff;
  border-radius: 6px 6px 6px 6px;
  border-bottom: 6px solid #fff;
  border-top: 6px solid #fff;
  border-right: 6px solid #fff;
}

.curriculum-card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.curriculum-card-image {
  flex: 0 0 280px;
  overflow: hidden;
object-fit: cover;
display: block;
      border-radius: 6px 0px 0px 6px;
}

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

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

.curriculum-card-content {
  flex: 1;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.curriculum-card-header {
  margin-bottom: 1rem;
}

.curriculum-card-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1d1d1f;
  margin-top: 0.5rem;
  margin-bottom: 0;
  line-height: 1.2;
}

.curriculum-card-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #6e6e73;
  margin-bottom: 1.5rem;
}

.curriculum-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.curriculum-meta-badge {
  font-size: 0.75rem;
  font-weight: 500;
  color: #1d1d1f;
  letter-spacing: 0.005em;
  background: rgba(0, 0, 0, 0.04);
  padding: 0.35rem 0.85rem;
  border-radius: 980px;
  border: none;
}

.curriculum-meta-separator {
  color: #d2d2d7;
  font-size: 0.75rem;
}

.curriculum-progress {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.progress-bar-wrapper {
  width: 100%;
  height: 6px;
  background: #e8e8ed;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar-fill-curriculum {
  height: 100%;
  background: linear-gradient(90deg, #005cb9 0%, #0077e6 100%);
  border-radius: 6px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6e6e73;
  padding-bottom: 20px!important;
}

.curriculum-card-action {
  flex: 0 0 auto;
  display: flex;
  /* align-items: center; */
}

.btn-curriculum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #005cb9;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  border: none;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  cursor: pointer;
}

.btn-curriculum:hover {
  background: #003d7a;
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 92, 185, 0.3);
}
.btn-curriculum-long {
  border-radius: 0px 0px 6px 6px!important;   
}
/* Locked Curriculum Cards */
.curriculum-card-locked {
  position: relative;
  pointer-events: all;
  cursor: pointer;
}

/* Yellow "Locked" badge in top-right corner */
.curriculum-card-locked::before {
  content: "🔒 Locked";
  display: inline-flex;
  position: absolute;
  top: 15px;
  right: 15px;
  background: #9da1aa;
  color: #000000;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  align-items: center;
  gap: 6px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.curriculum-card-wide.curriculum-card-locked::before {
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
}

.curriculum-card-locked .curriculum-card-image img {
  filter: grayscale(100%);
}

.curriculum-card-locked .curriculum-card-content {
  opacity: 0.7;
  filter: grayscale(100%);
}

.curriculum-card-locked .curriculum-meta-badge {
  filter: grayscale(100%);
}

/* Locked cards should maintain grayscale on hover and not scale */
.curriculum-card-locked:hover .curriculum-card-image img {
  filter: grayscale(100%) !important;
  transform: none;
}

.curriculum-card-locked:hover .curriculum-card-content {
  opacity: 0.7;
  filter: grayscale(100%);
}

.btn-curriculum-locked {
  color: #ffffff;
  cursor: pointer;
  pointer-events: all;
}

.btn-curriculum-locked:hover {
  background: #ffd700;
  color: #000000;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 232, 3, 0.4);
}

.lock-icon-small {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
  stroke: #ffffff;
}

.curriculum-lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(249, 249, 249, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
}

.curriculum-lock-icon {
  width: 70px;
  height: 70px;
  color: #86868b;
  stroke-width: 2;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

/* Dark Mode Styles */
body.dark-mode .hero-slider-section .carousel-caption-overlay {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.85) 100%);
}

body.dark-mode .course-intro-magazine,
body.dark-mode .how-to-section {
  background: #000000;
}

body.dark-mode .how-to-title {
  color: #f5f5f7;
}

body.dark-mode .how-to-description {
  color: #a1a1a6;
}

body.dark-mode .support-card {
  background: #1d1d1f;
  border-color: #424245;
}

body.dark-mode .support-card:hover {
  background: #2d2d30;
  border-color: #535356;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .support-card-title {
  color: #f5f5f7;
}

body.dark-mode .support-card-text {
  color: #a1a1a6;
}

body.dark-mode .support-icon {
  color: #0a84ff;
}

body.dark-mode .support-link {
  color: #0a84ff;
}

body.dark-mode .support-link:hover {
  color: #409cff;
}

body.dark-mode .curriculum-cards-section {
  background: #000000;
}

body.dark-mode .curriculum-section-title {
  color: #f5f5f7;
}

body.dark-mode .curriculum-section-description {
  color: #a1a1a6;
}

body.dark-mode .curriculum-card {
  background: #1d1d1f;
  border: 1px solid #424245;
}

body.dark-mode .curriculum-card:hover {
  background: #2d2d30;
  border-color: #535356;
}

body.dark-mode .curriculum-card-title {
  color: #f5f5f7;
}

body.dark-mode .curriculum-card-description {
  color: #a1a1a6;
}

body.dark-mode .curriculum-meta-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #f5f5f7;
}

body.dark-mode .curriculum-meta-separator {
  color: #535356;
}

body.dark-mode .progress-bar-wrapper {
  background: #2d2d30;
}

body.dark-mode .progress-text {
  color: #a1a1a6;
}

body.dark-mode .btn-curriculum {
  background: #0a84ff;
}

body.dark-mode .btn-curriculum:hover {
  background: #409cff;
  box-shadow: 0 8px 20px rgba(10, 132, 255, 0.3);
}

body.dark-mode .curriculum-card-locked .curriculum-card-content {
  opacity: 0.6;
}

body.dark-mode .btn-curriculum-locked {
  color: #000000;
}

body.dark-mode .btn-curriculum-locked:hover {
  background: #ffd700;
  color: #000000;
}

body.dark-mode .lock-icon-small {
  stroke: #000000;
}

body.dark-mode .curriculum-lock-overlay {
  background: rgba(26, 26, 26, 0.45);
}

body.dark-mode .curriculum-lock-icon {
  color: #6e6e73;
}

/* Responsive: Tablet */
@media (max-width: 991.98px) {
  .hero-slider-section .carousel-item {
    height: 350px;
  }
  
  .hero-slider-section .carousel-caption {
    min-height: 350px;
  }
  
  .hero-title {
    font-size: 1.85rem;
  }
  
  .hero-description {
    font-size: 0.95rem;
  }
  
  .btn-hero {
    font-size: 0.9rem;
    padding: 0.7rem 1.75rem;
  }
  
  .how-to-title {
    font-size: 2rem;
  }
  
  .curriculum-section-title {
    font-size: 2.5rem;
  }
  
  .curriculum-section-description {
    font-size: 1.125rem;
  }
  
  .curriculum-card {
    flex-direction: column;
  }
  
  .curriculum-card-image {
    flex: 0 0 200px;
    width: 100%;
  }
  
  .curriculum-card-content {
    padding: 1.5rem;
  }
  
  .curriculum-card-action {
    border-left: none;
    border-top: 1px solid #e8e8ed;
    justify-content: center;
  }
  
  body.dark-mode .curriculum-card-action {
    border-top-color: #424245;
  }
  
  .btn-curriculum {
    width: 100%;
  }
}

/* Responsive: Mobile */
@media (max-width: 767.98px) {
  .hero-slider-section .carousel-item {
    height: 315px;
  }
  
  .hero-slider-section .carousel-caption {
    min-height: 315px;
  }
  
  .hero-kicker {
    font-size: 0.6rem;
    padding: 0.25rem 0.6rem;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-description {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }
  
  .hero-meta {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }
  
  .hero-meta svg {
    width: 12px;
    height: 12px;
  }
  
  .btn-hero {
    font-size: 0.875rem;
    padding: 0.65rem 1.5rem;
  }
  
  .hero-slider-section .carousel-control-prev,
  .hero-slider-section .carousel-control-next {
    width: 60px;
  }
  
  .hero-slider-section .carousel-control-prev-icon,
  .hero-slider-section .carousel-control-next-icon {
    width: 30px;
    height: 30px;
  }
  
  .hero-slider-section .carousel-indicators {
    bottom: 20px;
  }
  
  .hero-slider-section .carousel-indicators button {
    width: 10px;
    height: 10px;
  }
  
  .how-to-section {
    padding: 3rem 0 2rem;
  }
  
  .how-to-title {
    font-size: 1.75rem;
  }
  
  .how-to-description {
    font-size: 1rem;
  }
  
  .support-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .curriculum-cards-section {
    padding: 2rem 0 3rem;
  }
  
  .curriculum-section-title {
    font-size: 2rem;
  }
  
  .curriculum-section-description {
    font-size: 1.05rem;
  }
  
  .curriculum-card {
    margin-bottom: 1.5rem;
  }
  
  .curriculum-card-image {
    flex: 0 0 180px;
  }
  
  .curriculum-card-content {
    padding: 1.25rem;
  }
  
  .curriculum-card-action {
    padding: 0 1.25rem 1.25rem 1.25rem;
  }
  
  .curriculum-card-title {
    font-size: 1.5rem;
  }
  
  .curriculum-card-description {
    font-size: 0.9rem;
  }
}

/* ========================================
   NEXT LESSON PROMPT (Floating Notification)
   ======================================== */

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.next-lesson-prompt {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  max-width: 350px;
  animation: slideInRight 0.3s ease;
}

.next-lesson-prompt .next-lesson-content {
  text-align: center;
}

.next-lesson-prompt h5 {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-weight: 700;
}

.next-lesson-prompt p {
  margin: 0 0 1rem 0;
  color: #666;
  font-size: 0.95rem;
}

.next-lesson-prompt .btn {
  display: block;
  width: 100%;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.next-lesson-prompt .btn:last-child {
  margin-bottom: 0;
}

/* Dark mode support */
body.dark-mode .next-lesson-prompt {
  background: #1d1d1f;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

body.dark-mode .next-lesson-prompt h5 {
  color: #f5f5f7;
}

body.dark-mode .next-lesson-prompt p {
  color: #c5defb;
}

/* Mobile responsiveness */
@media (max-width: 767.98px) {
  .next-lesson-prompt {
    bottom: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    padding: 1.25rem;
  }
  
  .next-lesson-prompt h5 {
    font-size: 1rem;
  }
  
  .next-lesson-prompt p {
    font-size: 0.875rem;
  }
}

/* ========================================
   VIDEO LOGIN PROMPT (Logged Out State)
   ======================================== */

.video-login-prompt {
  position: relative;
  width: 100%;
  min-height: 400px;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  border-radius: 12px !important;
  overflow: hidden;
  border: 2px solid #dee2e6 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.login-prompt-content {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 2rem !important;
  box-sizing: border-box;
}

.login-prompt-content .warning-icon {
  margin-bottom: 1.5rem;
  animation: pulse-warning 2s ease-in-out infinite;
}

@keyframes pulse-warning {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.login-prompt-title {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  color: #212529 !important;
  margin-bottom: 0.75rem !important;
  text-align: center !important;
}

.login-prompt-text {
  font-size: 1.125rem !important;
  color: #6c757d !important;
  margin-bottom: 2rem !important;
  max-width: 400px !important;
  text-align: center !important;
}

.login-prompt-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.login-prompt-actions .btn {
  min-width: 140px;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.login-prompt-actions .btn-primary {
  background: linear-gradient(135deg, #005cb9 0%, #0073e6 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(0, 92, 185, 0.3);
}

.login-prompt-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 92, 185, 0.4);
}

.login-prompt-actions .btn-outline-secondary {
  border-color: #6c757d;
  color: #6c757d;
}

.login-prompt-actions .btn-outline-secondary:hover {
  background: #6c757d;
  color: white;
  transform: translateY(-2px);
}

/* Dark Mode Support */
body.dark-mode .video-login-prompt {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  border-color: #4a5568;
}

body.dark-mode .login-prompt-title {
  color: #f7fafc;
}

body.dark-mode .login-prompt-text {
  color: #cbd5e0;
}

body.dark-mode .login-prompt-actions .btn-outline-secondary {
  border-color: #cbd5e0;
  color: #cbd5e0;
}

body.dark-mode .login-prompt-actions .btn-outline-secondary:hover {
  background: #cbd5e0;
  color: #1a202c;
}

/* Mobile Responsiveness for Login Prompt */
@media (max-width: 767.98px) {
  .login-prompt-title {
    font-size: 1.25rem;
  }
  
  .login-prompt-text {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  
  .login-prompt-actions {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }
  
  .login-prompt-actions .btn {
    width: 100%;
  }
  
  .login-prompt-content .warning-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }
  
  .login-prompt-content {
    padding: 1.5rem;
  }
}

/* ===== Dashboard V2 Styles ===== */
/* Edge-to-edge ad banner */
.dashboard-hero-banner {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  border-radius: 6px;
  padding: 3rem 2rem;
  color: white;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.dashboard-hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.hero-banner-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.hero-banner-subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.hero-banner-stats {
  display: flex;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.hero-stat-icon.red { background: rgba(220, 53, 69, 0.2); }
.hero-stat-icon.yellow { background: rgba(255, 193, 7, 0.2); }

/* Quick Stats Card */
.quick-stats-card {
  background: var(--bs-dark, #212529);
  border-radius: 6px;
  padding: 2rem;
  height: 100%;
  color: white;
  display: flex;
  flex-direction: column;
}

.quick-stats-card h5 {
  color: white;
  margin-bottom: 1.5rem;
}

/* Light mode text colors */
body:not(.dark-mode) .quick-stats-card h5 {
  color: #212529;
}

.last-lesson-link {
  display: block;
  padding: 1rem;
  background: var(--bs-primary, #005cb9);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.last-lesson-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 92, 185, 0.3);
  color: white;
}

.stat-item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bs-primary, #005cb9);
}

/* Progress Chart Card */
.progress-chart-card {
  background: var(--bs-dark, #212529);
  border-radius: 6px;
  padding: 1.5rem;
  color: white;
}

.chart-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: white;
}

.chart-subtitle {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 1.5rem;
}

.progress-line-chart {
  height: 200px;
  position: relative;
  margin: 1rem 0;
}

/* Stat Cards below chart */
.stat-card-large {
  padding: 1.5rem;
  border-radius: 6px;
  color: white;
  margin-bottom: 1rem;
}

.stat-card-large.yellow {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.stat-card-large.red {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.stat-card-value {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.25rem;
}

.stat-card-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

.stat-card-note {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

/* Technical Support Contacts */
.support-contacts-card {
  background: var(--bs-dark, #212529);
  border-radius: 6px;
  padding: 1.5rem;
  height: 100%;
  color: white;
  display: flex;
  flex-direction: column;
}

.support-contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.support-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bs-primary, #005cb9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.support-contact-info {
  flex: 1;
}

.support-contact-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.support-contact-role {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Donut Chart */
.donut-chart-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.donut-chart {
  width: 100%;
  height: 100%;
}

.donut-chart-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.donut-chart-percent {
  font-size: 2rem;
  font-weight: 900;
  color: white;
}

.donut-chart-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Bar Chart */
.bar-chart-container {
  height: 250px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 1rem;
  padding: 1rem 0;
}

.bar-chart-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.bar-chart-bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  min-height: 20px;
  transition: height 0.3s ease;
}

.bar-chart-label {
  font-size: 0.75rem;
  text-align: center;
  opacity: 0.8;
}

/* Content Usage Chart */
.usage-chart-container {
  height: 200px;
  position: relative;
  margin: 1rem 0;
}

.usage-chart-note {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 1rem;
}

/* Dark Mode Compatibility */
body.dark-mode .quick-stats-card,
body.dark-mode .progress-chart-card,
body.dark-mode .support-contacts-card {
  background: #2c3e50;
}

body:not(.dark-mode) .quick-stats-card,
body:not(.dark-mode) .progress-chart-card,
body:not(.dark-mode) .support-contacts-card {
  background: white;
  color: #212529;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .stat-label,
body:not(.dark-mode) .chart-subtitle,
body:not(.dark-mode) .support-contact-role {
  opacity: 0.6;
}

/* Dashboard Hero Text Colors in Light Mode - MUST BE BLACK */
body:not(.dark-mode) .dashboard-hero .howto__kicker,
body:not(.dark-mode) .dashboard-hero .howto__kicker * {
  color: #212529 !important;
}

body:not(.dark-mode) .dashboard-hero .intro-title,
body:not(.dark-mode) .dashboard-hero .intro-title * {
  color: #212529 !important;
}

body:not(.dark-mode) .dashboard-hero .intro-deck,
body:not(.dark-mode) .dashboard-hero .intro-deck * {
  color: #212529 !important;
}

/* Edge-to-edge banner height matching */
.dashboard-hero-banner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Make sure banner matches stats card height */
.dashboard-row-1 .row {
  align-items: stretch;
}

.dashboard-row-1 .col-lg-8,
.dashboard-row-1 .col-lg-4 {
  display: flex;
}

/* Ensure Row 2 cards match in height with Row 1 quick-stats-card */
.dashboard-row-2 .row {
  align-items: stretch;
}

.dashboard-row-2 .col-lg-4 {
  display: flex;
}

/* Make sure Popular Courses card and other row 2 cards match height */
.dashboard-row-2 .card {
  border-radius: 6px;
}

/* Ensure Row 3 cards also have 6px border-radius */
.dashboard-row-3 .row {
  align-items: stretch;
}

.dashboard-row-3 .col-lg-4 {
  display: flex;
}

.dashboard-row-3 .card {
  border-radius: 6px;
}

/* ============================================
   Dashboard Advertisement Cards
   (Overlay effect with 6px border-radius)
============================================ */

/* Advertisement Cards Section */
.dashboard-ads {
  margin: 2rem 0;
}

.ad-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ad-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.ad-content {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
}

.ad-image {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 6px;
}

.ad-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

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

.ad-overlay {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
  border-radius: 6px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ad-card:hover .ad-overlay {
  opacity: 1;
}

.ad-text {
  color: #ffffff;
  width: 100%;
}

.ad-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #ffffff;
  line-height: 1.2;
}

.ad-description {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
}

.ad-cta {
  background: rgba(255, 255, 255, 0.95);
  color: #1d1d1f;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.ad-cta:hover {
  background: #ffffff;
  color: #005cb9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Dark mode adjustments for ad cards */
body.dark-mode .ad-overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8));
}

body.dark-mode .ad-cta {
  background: rgba(255, 255, 255, 0.95);
  color: #1d1d1f;
}

body.dark-mode .ad-cta:hover {
  background: #ffffff;
  color: #005cb9;
}

/* Mobile responsive for ad cards */
@media (max-width: 768px) {
  .ad-content {
    min-height: 250px;
  }
  
  .ad-overlay {
    padding: 1.5rem;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
  }
  
  .ad-title {
    font-size: 1.25rem;
  }
  
  .ad-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .ad-cta {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* ===== Profile Page Styles ===== */

/* Account Activity Header - Blue */
.card-header.profile-activity-header {
  background: #5693ce !important;
  background-color: #5693ce !important;
  border-color: #4a7db5 !important;
}

body.dark-mode .card-header.profile-activity-header {
  background: #4a7db5 !important;
  background-color: #4a7db5 !important;
  border-color: #3a6da5 !important;
}

/* Password Change Header - Yellow */
.card-header.profile-password-header {
  background: #9da1aa !important;
  background-color: #9da1aa !important;
  border-color: #e6d103 !important;
}

body.dark-mode .card-header.profile-password-header {
  background: #e6d103 !important;
  background-color: #e6d103 !important;
  border-color: #cdb903 !important;
}

/* Profile Avatar Image Styling */
.profile-avatar-img {
  max-width: 200px;
  max-height: 200px;
  object-fit: cover;
  border: 4px solid #e9ecef;
}

body.dark-mode .profile-avatar-img {
  border-color: #424245;
}

/* Profile Avatar Placeholder */
.profile-avatar-placeholder {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #e9ecef;
}

body.dark-mode .profile-avatar-placeholder {
  border-color: #424245;
}

/* ===== Login Required Page Styles ===== */

.login-required-page {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

body.dark-mode.login-required-page {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d30 100%);
}

.login-required-card {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

body.dark-mode .login-required-card {
  background: #1e1e1e;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.lock-icon-large {
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, #ff9500 0%, #ff6b00 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lockPulse 2s ease-in-out infinite;
}

@keyframes lockPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ===== Registration Page Styles ===== */

.registration-page {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

body.dark-mode.registration-page {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d30 100%);
}

.registration-card {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

body.dark-mode .registration-card {
  background: #1e1e1e;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0071e3;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e0e0e0;
}

body.dark-mode .step-title {
  color: #0a84ff;
  border-bottom-color: #424245;
}

.password-strength {
  margin-top: 0.5rem;
  padding: 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  display: none;
}

.password-strength.show {
  display: block;
}

.register-icon-large {
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, #34c759 0%, #30b350 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: registerPulse 2s ease-in-out infinite;
}

@keyframes registerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ===============================================
   AUTO-REDIRECT COUNTDOWN STYLES
   =============================================== */

/* Enhanced countdown timer for auto-redirect prompt */
.auto-redirect-prompt .countdown-timer {
  margin: 1.5rem 0;
  text-align: center;
}

.countdown-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a84ff, #005cb9);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 12px rgba(10, 132, 255, 0.3);
  animation: countdownPulse 1s ease-in-out infinite;
}

.countdown-number {
  font-size: 2rem;
  font-weight: 800;
  color: white;
}

.countdown-text {
  font-size: 1rem;
  color: #666;
  margin: 0;
}

body.dark-mode .countdown-text {
  color: #aaa;
}

.prompt-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.prompt-actions .btn {
  min-width: 120px;
}

@keyframes countdownPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Module completion banner (shown on overview page) */
.module-completion-banner {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  min-width: 400px;
  max-width: 600px;
  animation: slideInDown 0.4s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

@keyframes slideInDown {
  from {
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .module-completion-banner {
    min-width: 90%;
    max-width: 90%;
    top: 60px;
  }
  
  .countdown-circle {
    width: 60px;
    height: 60px;
  }
  
  .countdown-number {
    font-size: 1.5rem;
  }
  
  .prompt-actions {
    flex-direction: column;
  }
  
  .prompt-actions .btn {
    width: 100%;
  }
}