/* =============================================
   ILS101 - CONSOLIDATED STYLESHEET
   =============================================
   Sections:
   1. CSS Variables
   2. Reset / Global
   3. Layout (Header, Sidebar, Content)
   4. Components - Boxes / Forms / Buttons
   5. Components - Video Cards
   6. Components - Lecture Boxes
   7. Components - Carousel
   8. Components - File Cards
   9. Components - Factsheets
   10. Components - Library Tabs
   11. Components - Modals
   12. Components - Community
   13. Components - Welcome Overlay
   14. Sections - Legal
   15. Sections - Data Tables
   16. Sections - Feedback Form
   17. Sections - Testimonial Filters
   18. Sections - Slide Decks
   19. Utilities - Selectize / Bootstrap-Select
   20. Utilities - Animations
   21. Utilities - Focus / Accessibility
   22. Utilities - Breadcrumb / Search / Progress / Pagination
   23. Utilities - Toast / Validation / Touch
   24. Responsive
   25. Print
   ============================================= */

/* =============================================
   1. CSS VARIABLES
   ============================================= */
:root {
  --primary-500: #7faa00;
  --primary-400: #9ed400;
  --primary-300: #beff00;
  --primary-200: #c9ff2a;
  --primary-100: #e9ffaa;
  --blue-accent: #3399ff;
  --surface-ground: #05050f;
  --surface-0: #11111d;
  --surface-50: #21212c;
  --surface-100: #3b3b49;
  --surface-200: #5c5c66;
  --text-primary: #fafafa;
  --text-secondary: #bbbbbf;
  --shadow-1: 0 1px 5px 0 rgba(33,34,66,0.04),
              0 0 3px 0 rgba(0,0,0,0.08),
              0 2px 1px 0 rgba(0,0,0,0.12);
}

/* =============================================
   2. RESET / GLOBAL FONT
   ============================================= */
html, body,
body *:not(i):not(.fa):not(.fas):not(.far):not(.fal):not(.fab),
.main-header .logo,
.sidebar-menu > li > a,
.box,
.box-body,
.box-header,
.lecture-box summary,
.lecture-box p {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

body {
  background: linear-gradient(135deg, #0a0f1a 0%, #1a1f2e 100%);
  min-height: 100vh;
  color: #fafafa;
}

/* Hide most labels globally (shinydashboard default inputs) but allow specific ones */
label { display: none; }
#feedback_rating label,
label[for="jobFilter"],
label[for="locationFilter"] {
  display: inline-block !important;
}

/* =============================================
   3. LAYOUT - HEADER
   ============================================= */
.main-header {
  background-color: #1a1b23 !important;
  border-bottom: none !important;
}

.main-header .navbar {
  background-color: #1a1b23 !important;
  margin-left: 100px !important;
  border: none !important;
}

.main-header .logo {
  background-color: #1a1b23 !important;
  border-right: none !important;
  height: 50px !important;
  line-height: 50px !important;
}

.skin-blue .main-header .logo {
  background-color: #1a1b23 !important;
  border-bottom: none !important;
  text-align: left !important;
  padding-left: 15px;
  color: var(--text-primary);
}

.skin-blue .main-header .logo:hover {
  background-color: #1a1b23 !important;
}

.skin-blue .main-header .navbar {
  background-color: #1a1b23 !important;
}

.skin-blue .main-header .sidebar-toggle {
  padding: 15px 10px !important;
  margin-left: -10px !important;
}

.navbar-custom-menu, .navbar-nav {
  background-color: #1a1b23 !important;
}

.main-header .navbar .nav > li > a {
  background-color: #1a1b23 !important;
}

/* Sidebar toggle as text button - desktop */
@media (min-width: 769px) {
  .sidebar-toggle {
    background-color: transparent !important;
    color: #a9abb5 !important;
    border: none !important;
    font-size: 12px !important;
    padding: 5px 10px !important;
    position: relative !important;
    left: 0 !important;
  }
  .sidebar-toggle i {
    display: none !important;
  }
  .sidebar-toggle::after {
    content: 'Menu' !important;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
  }
}

.sidebar-toggle:hover {
  color: #beff00 !important;
  background-color: transparent !important;
}

/* Sidebar toggle - mobile: show as hamburger icon */
@media (max-width: 768px) {
  .sidebar-toggle {
    background-color: transparent !important;
    color: #fff !important;
    border: none !important;
    font-size: 20px !important;
    padding: 15px !important;
    position: relative !important;
    left: 0 !important;
    z-index: 1050 !important;
  }
  .sidebar-toggle i {
    display: inline-block !important;
  }
  .sidebar-toggle::after {
    content: '' !important;
  }
}

/* ILS101 Logo - Boxed Style */
.ils101-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
}

.ils101-logo .logo-text {
  font-family: 'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.5px;
}

.ils101-logo .logo-box {
  background: #00D4AA;
  color: #000;
  font-family: 'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 5px;
  letter-spacing: -0.5px;
  position: relative;
  top: -4px;
}

.ils101-logo:hover {
  text-decoration: none !important;
}

.ils101-logo:hover .logo-box {
  background: #00e6b8;
}

.ils-logo,
#ils-logo {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 25px !important;
  font-weight: 400;
  text-decoration: none !important;
  color: var(--text-primary) !important;
  line-height: 50px !important;
  height: 50px !important;
  display: inline-block;
  text-align: left;
}

.ils-letter {
  color: #ffffff;
  font-weight: 400;
}

.blue-101 {
  color: var(--blue-accent);
  font-weight: 400;
}

/* =============================================
   3. LAYOUT - SIDEBAR
   ============================================= */
.main-sidebar,
.left-side {
  width: 100px !important;
  background-color: var(--surface-0);
}

.skin-blue .main-sidebar {
  background-color: var(--surface-0);
}

.sidebar-menu li a {
  color: #70707a !important;
  font-size: 20px !important;
  padding: 20px 15px !important;
  text-align: center !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  transition: color 0.3s ease;
  background-color: transparent !important;
  border-left: 3px solid transparent !important;
}

.sidebar-menu li a:hover {
  color: #bbbbbf !important;
  background-color: var(--surface-50) !important;
}

.skin-blue .sidebar-menu > li.active > a,
.skin-blue .sidebar-menu > li:hover > a {
  background-color: var(--surface-50) !important;
  border-left: 3px solid var(--primary-300) !important;
  color: var(--text-primary) !important;
}

/* Sidebar tooltip */
.sidebar-tooltip {
  position: relative;
}

.sidebar-tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: var(--surface-100);
  color: var(--text-primary);
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  left: 105%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-shadow: var(--shadow-1);
}

.sidebar-tooltip:hover .tooltiptext {
  visibility: visible;
}

/* =============================================
   3. LAYOUT - CONTENT
   ============================================= */
.content-wrapper,
.right-side {
  margin-left: 100px !important;
  background-color: #0d1117 !important;
  color: var(--text-primary);
}

.main-footer {
  background-color: #0d1117 !important;
}

/* =============================================
   4. BOXES / FORMS / BUTTONS
   ============================================= */
.box {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--text-primary);
}

.box-header {
  background-color: transparent !important;
  border: none !important;
  padding-left: 0 !important;
}

.box-body {
  padding: 10px 0 !important;
}

.form-control {
  background-color: var(--surface-100);
  border: 1px solid var(--surface-200);
  color: var(--text-primary);
}

.btn-primary {
  background-color: var(--primary-300) !important;
  border-color: var(--primary-300) !important;
  color: #0b0d13 !important;
}

.btn-primary:hover {
  background-color: var(--primary-400) !important;
  border-color: var(--primary-400) !important;
}

/* Audience buttons */
button.header-audience-btn.btn.btn-default.action-button {
  padding: 14px 32px !important;
  background-color: transparent !important;
  border: 2px solid #ffffff !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 19px !important;
  color: #ffffff !important;
  box-shadow: 0 0 15px rgba(190, 255, 0, 0.9) !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  min-width: 140px !important;
  height: auto !important;
}

button.header-audience-btn.btn.btn-default.action-button:hover {
  box-shadow: 0 0 20px rgba(190, 255, 0, 1) !important;
  transform: scale(1.05) !important;
  background-color: transparent !important;
  color: #ffffff !important;
}

.header-audience-btn:hover {
  box-shadow: 0 0 20px rgba(190, 255, 0, 1) !important;
  transform: scale(1.05) !important;
}

#audience_retail.header-audience-btn.selected,
#audience_qib.header-audience-btn.selected {
  background-color: #0088ff !important;
  box-shadow: 0 0 25px rgba(0, 136, 255, 0.8) !important;
  border-color: #0088ff !important;
  color: white !important;
}

.header-audience-btn:not(.selected) {
  background-color: transparent !important;
  box-shadow: 0 0 15px rgba(190, 255, 0, 0.9) !important;
}

#start_course:hover {
  background-color: #d4ff4d !important;
  box-shadow: 0 6px 20px rgba(190, 255, 0, 0.5) !important;
  transform: translateY(-2px);
}

/* =============================================
   5. VIDEO CARDS
   ============================================= */
.video-card {
  background: #0b0c14;
  border-radius: 12px;
  width: 500px !important;
  min-width: 500px !important;
  height: 400px !important;
  color: var(--text-primary);
  box-shadow: 0 32px 64px rgba(0,0,0,0.9);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex: 0 0 500px;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 80px rgba(0,0,0,1);
}

.video-card:hover .video-thumb {
  filter: brightness(1);
}

/* Video card play button overlay */
.video-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-45%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent white;
  z-index: 6;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-card:hover::before, .video-card:hover::after {
  opacity: 1;
}

/* Video thumbnail - keep last definition (contain) */
.video-thumb {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: #0b0c14 !important;
  filter: brightness(0.85);
  transition: filter 0.2s ease;
}

.video-thumb::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.05));
}

.video-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  padding: 16px !important;
  text-shadow: 0 3px 6px rgba(0,0,0,0.8);
}

.video-headline {
  font-size: 22px !important;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px 0;
}

.video-desc {
  font-size: 14px !important;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 14px 0;
  max-height: 3.2em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-footer {
  font-size: 14px;
  line-height: 1.3;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.video-author {
  color: #fff;
  font-weight: 500;
}

.video-date {
  color: var(--text-secondary);
  font-size: 13px;
}

/* =============================================
   6. LECTURE BOXES (merged - last definition wins)
   ============================================= */
.lecture-box {
  background-color: #1b1d24;
  border: 1px solid #2a2d36;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  transition: all 0.18s ease;
  overflow: hidden;
  position: relative;
}

.lecture-box:hover {
  background-color: #222530;
  border-color: #3a3f4f;
  box-shadow: 0 12px 28px rgba(0,0,0,0.75);
  cursor: pointer;
}

.lecture-box::before {
  content: none !important;
}

.lecture-box summary {
  list-style: none;
  padding: 14px 18px 14px 22px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.lecture-box summary::-webkit-details-marker {
  display: none;
}

.lecture-box[open] summary {
  color: var(--primary-300);
}

.lecture-box h4 {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.lecture-box p {
  padding: 12px 18px 18px 22px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Lecture top line */
.lecture-topline {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  flex-wrap: wrap;
  column-gap: 8px;
  row-gap: 4px;
  align-items: flex-start;
}

.lecture-num {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0.2px;
  color: var(--primary-300);
}

.lecture-num::before {
  content: "\25CF";
  color: var(--primary-300);
  margin-right: 6px;
  font-size: 10px;
  vertical-align: middle;
}

#credit_modules .lecture-num,
#credit_modules .lecture-num::before {
  color: var(--blue-accent);
}

#cyber_modules .lecture-num,
#cyber_modules .lecture-num::before {
  color: #00FFFF;
}

.lecture-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.4;
}

.lecture-sub {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 95%;
}

.lecture-chevron {
  margin-left: auto;
  font-size: 14px;
  line-height: 1;
  color: var(--text-secondary);
  font-weight: 400;
  transition: transform 0.18s ease, color 0.18s ease;
}

.lecture-box[open] .lecture-chevron {
  transform: rotate(90deg);
  color: var(--primary-300);
}

#credit_modules .lecture-box[open] .lecture-chevron {
  color: var(--blue-accent);
}

#cyber_modules .lecture-box[open] .lecture-chevron {
  color: #00FFFF;
}

/* Per-column glow (merged - last definition with combined shadows) */
#knowledge .lecture-box {
  box-shadow: 0 0 12px rgba(190,255,0,0.08), 0 8px 20px rgba(0,0,0,0.6);
  transition: box-shadow 0.25s ease, background-color 0.18s ease, border-color 0.18s ease;
}

#knowledge .lecture-box:hover {
  box-shadow: 0 0 20px rgba(190,255,0,0.18), 0 12px 28px rgba(0,0,0,0.75);
}

#credit_modules .lecture-box {
  box-shadow: 0 0 12px rgba(0,136,255,0.08), 0 8px 20px rgba(0,0,0,0.6);
  transition: box-shadow 0.25s ease, background-color 0.18s ease, border-color 0.18s ease;
}

#credit_modules .lecture-box:hover {
  box-shadow: 0 0 20px rgba(0,136,255,0.18), 0 12px 28px rgba(0,0,0,0.75);
}

#cyber_modules .lecture-box {
  box-shadow: 0 0 12px rgba(0,255,255,0.10), 0 8px 20px rgba(0,0,0,0.6);
  transition: box-shadow 0.25s ease, background-color 0.18s ease, border-color 0.18s ease;
}

#cyber_modules .lecture-box:hover {
  box-shadow: 0 0 22px rgba(0,255,255,0.25), 0 12px 28px rgba(0,0,0,0.75);
}

/* Knowledge row layout */
.knowledge-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
}

.knowledge-row > .col-sm-4 {
  display: flex !important;
  flex-direction: column;
}

.knowledge-row .module-container {
  height: auto !important;
  min-height: 180px;
  flex-grow: 0 !important;
}

/* Section headers */
.module-header {
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 12px 0;
  text-align: center;
  width: 100%;
}

.knowledge-section-h3 {
  color: var(--text-secondary);
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 500;
  text-align: center;
  width: 100%;
}

.knowledge-section-h2 {
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  width: 100%;
}

/* Expand / hide buttons */
.module-toggle-btn {
  background-color: #1f222c !important;
  border: 1px solid #3a3f4f !important;
  color: var(--text-primary) !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  line-height: 1.4;
  margin-bottom: 16px;
  cursor: pointer;
  display: inline-block;
}

.module-toggle-btn:hover {
  background-color: #2a2e3a;
  border-color: #4a5064;
  color: var(--text-primary);
}

.module-header-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  height: 100% !important;
}

.module-header-wrap h4 {
  font-style: italic;
  color: var(--text-secondary);
  margin-top: 6px;
  margin-bottom: 12px;
  font-weight: 400;
  min-height: 48px !important;
}

/* Module containers */
.module-container {
  background-color: #1b1d24;
  border: 1px solid #2a2d36;
  border-radius: 12px;
  padding: 40px 20px;
  margin-bottom: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  transition: background 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 280px !important;
  height: 100% !important;
  text-align: center;
}

.module-container:hover {
  background-color: #20232b;
}

/* =============================================
   7. CAROUSEL
   ============================================= */
.carousel-container {
  background-color: var(--surface-50);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  color: var(--text-primary);
  max-width: 100%;
  overflow: hidden;
}

/* Scrollable carousel (deduplicated) */
.carousel-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 40px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 16px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-200) var(--surface-100);
}

.carousel-scroll::-webkit-scrollbar {
  height: 8px;
}

.carousel-scroll::-webkit-scrollbar-track {
  background: var(--surface-100);
  border-radius: 4px;
}

.carousel-scroll::-webkit-scrollbar-thumb {
  background: var(--surface-200);
  border-radius: 4px;
}

.carousel-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--primary-300);
}

/* Carousel track / slides / nav */
.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel-track.dragging {
  transition: none;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  background: #20222c;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  font-size: 24px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.2s;
  opacity: 0.7;
}

.carousel-nav:hover {
  opacity: 1;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.carousel-prev {
  left: 12px;
}

.carousel-next {
  right: 12px;
}

.carousel-dots .carousel-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  margin: 0 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-dots .carousel-dot:hover {
  background: rgba(255,255,255,0.7);
  transform: scale(1.2);
}

.carousel-dots .carousel-dot.active {
  background: #beff00;
  width: 20px;
  border-radius: 4px;
}

/* =============================================
   8. FILE CARDS
   ============================================= */
.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 30px;
  justify-content: start;
}

.file-card {
  background-color: var(--surface-100);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  transition: transform 0.2s ease;
  cursor: pointer;
  color: var(--text-primary);
}

.file-card:hover {
  transform: translateY(-2px);
  background-color: var(--surface-200);
}

.file-icon {
  font-size: 48px;
  color: var(--primary-300);
  margin-bottom: 10px;
}

.file-name {
  color: var(--text-primary);
  font-size: 14px;
  word-wrap: break-word;
}

.file-card-with-thumb {
  background-color: var(--surface-100);
  border-radius: 8px;
  padding: 0;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  overflow: hidden;
  width: 280px;
  height: auto;
  display: flex;
  flex-direction: column;
  color: var(--text-primary);
}

.file-card-with-thumb:hover {
  transform: translateY(-2px);
  background-color: var(--surface-200);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.file-thumbnail {
  width: 100%;
  height: 360px;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: #000000;
  border-radius: 8px 8px 0 0;
}

.file-card-with-thumb .file-name {
  font-size: 14px;
  word-wrap: break-word;
  padding: 10px;
  background-color: var(--surface-100);
  flex-grow: 1;
}

/* =============================================
   9. FACTSHEETS
   ============================================= */
.factsheet-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

.factsheet-header {
  text-align: center;
  margin-bottom: 40px;
}

.factsheet-header h2 {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(90deg, #00D4AA, #3399ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.factsheet-header p {
  color: #8892a0;
  font-size: 1.5rem;
}

.factsheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

@media (max-width: 768px) {
  .factsheet-container {
    padding: 20px 12px !important;
  }
  .factsheet-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .factsheet-card {
    width: 100% !important;
  }
  .factsheet-thumbnail {
    height: 140px !important;
  }
  .factsheet-content {
    padding: 14px !important;
  }
  .factsheet-title {
    font-size: 1rem !important;
  }
  .factsheet-description {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
  }
  .factsheet-buttons {
    flex-direction: row !important;
    gap: 8px !important;
  }
  .factsheet-buttons .btn {
    font-size: 0.75rem !important;
    padding: 10px 12px !important;
  }
  .btn-preview {
    font-size: 0.75rem !important;
    padding: 10px 12px !important;
  }
  .factsheet-header {
    margin-bottom: 24px !important;
  }
  .factsheet-header h2 {
    font-size: 1.4rem !important;
  }
  .factsheet-header p {
    font-size: 0.85rem !important;
  }
  /* Preview modal mobile */
  .preview-modal-content {
    width: 95% !important;
    max-width: 95vw !important;
    padding: 16px !important;
  }
  .preview-modal-content img {
    max-height: 70vh !important;
  }
  .preview-title {
    font-size: 1rem !important;
  }
  .preview-close {
    font-size: 0.8rem !important;
    padding: 8px 12px !important;
  }
}

.factsheet-card {
  background: #1a2235;
  border: 1px solid #2d3a4f;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.factsheet-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.factsheet-thumbnail {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #11111d;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.factsheet-thumbnail img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top;
}

.factsheet-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.factsheet-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fafafa;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.factsheet-description {
  font-size: 0.95rem;
  color: #8892a0;
  margin: 0 0 15px 0;
  line-height: 1.5;
  flex: 1;
}

.factsheet-buttons {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.factsheet-buttons .btn {
  flex: 1;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.btn-preview {
  background: #2d3a4f;
  color: #fafafa;
  font-size: 1.5rem;
  padding: 10px 20px;
}

.btn-preview:hover {
  background: #3d4a5f;
}

.btn-download {
  background: #00D4AA;
  color: #0a0f1a;
  font-size: 1.5rem;
  padding: 10px 20px;
}

.btn-download:hover {
  background: #00b894;
}

/* Factsheet preview modal */
.preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.preview-modal-content {
  max-width: 95%;
  max-height: 95%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preview-modal-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 8px;
}

.preview-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: #ff5252;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}

.preview-close:hover {
  background: #ff3333;
}

.preview-title {
  color: #fafafa;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

#academy-factsheet {
  font-size: 16px;
}

#academy-factsheet h3 {
  font-size: 24px;
}

/* =============================================
   10. LIBRARY TABS
   ============================================= */
#library_tabs.nav-tabs {
  margin-top: 40px !important;
  border-bottom: none !important;
  display: flex;
  gap: 40px;
}

#library_tabs > li {
  margin-bottom: 0 !important;
}

#library_tabs > li > a {
  color: #a9adb3 !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 !important;
  padding: 12px 0 !important;
  margin-right: 30px !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  transition: all 0.3s ease !important;
}

#library_tabs > li > a:hover {
  color: #c9cdd3 !important;
  background: transparent !important;
  border-bottom: 3px solid #a9adb3 !important;
}

#library_tabs > li.active > a,
#library_tabs > li.active > a:hover,
#library_tabs > li.active > a:focus {
  color: #beff00 !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 3px solid #beff00 !important;
}

/* =============================================
   11. MODALS
   ============================================= */
.modal-content {
  background-color: #1a1b23 !important;
  border: 1px solid #2a2d36 !important;
  color: #fff !important;
}

.modal-header {
  background-color: #1a1b23 !important;
  border-bottom: 1px solid #2a2d36 !important;
  cursor: move !important;
}

.modal-header .close {
  color: #fff !important;
  opacity: 0.8;
}

.modal-body {
  background-color: #1a1b23 !important;
}

.modal-dialog {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
}

.modal-dialog.modal-lg {
  width: 80%;
  max-width: 900px;
}

/* Modal touch compatibility */
.modal-header.dragging {
  touch-action: none;
}

/* =============================================
   12. COMMUNITY
   ============================================= */
.community-scroll {
  scrollbar-width: thin;
  scrollbar-color: #444 #1f2129;
}

.community-scroll::-webkit-scrollbar {
  width: 8px;
}

.community-scroll::-webkit-scrollbar-track {
  background: linear-gradient(180deg, #1b1c22, #1f2129);
  border-radius: 10px;
}

.community-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3e4452, #5b6070);
  border-radius: 10px;
  border: 1px solid #1a1b23;
}

.community-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #6b7080, #8a8f9e);
}

.community-scroll::-webkit-scrollbar-corner {
  background: transparent;
}

/* =============================================
   13. WELCOME OVERLAY
   ============================================= */
.ils101-welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0d1117 0%, #1a1b23 50%, #0d1117 100%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 40px 20px;
}

.ils101-welcome-logo {
  margin-bottom: 16px;
}

.ils101-text-logo {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
}

.ils101-text-logo .ils {
  color: #ffffff;
}

.ils101-text-logo .one-oh-one {
  color: #00D4AA;
}

.ils101-tagline {
  color: #8b8f96;
  font-size: 15px;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin-bottom: 20px;
  text-align: center;
}

.ils101-video-container {
  width: 100%;
  max-width: 580px;
  margin-bottom: 24px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2a2d36;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.ils101-video-container video,
.ils101-video-container iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}

.ils101-video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1a1b23 0%, #21212c 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}

.ils101-video-placeholder i {
  font-size: 44px;
  margin-bottom: 10px;
  color: #00D4AA;
  opacity: 0.7;
}

.ils101-welcome-text {
  text-align: center;
  max-width: 700px;
  margin-bottom: 40px;
}

.ils101-welcome-title {
  color: #fafafa;
  font-size: 28px;
  font-weight: 600;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin-bottom: 16px;
}

.ils101-welcome-description {
  color: #bbbbbf;
  font-size: 16px;
  line-height: 1.7;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Sign Up — primary CTA */
.ils101-signup-btn {
  background: #beff00 !important;
  color: #0d1117 !important;
  border: none !important;
  padding: 12px 36px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 24px rgba(190, 255, 0, 0.25) !important;
  font-family: 'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  letter-spacing: 0.3px;
  min-width: 180px;
}

.ils101-signup-btn:hover {
  background: #d4ff4d !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 32px rgba(190, 255, 0, 0.35) !important;
}

.ils101-signup-btn:active {
  transform: translateY(0) !important;
}

/* Log In — secondary */
.ils101-login-btn {
  background: transparent !important;
  color: #00D4AA !important;
  border: 1.5px solid #00D4AA !important;
  padding: 10px 32px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: none !important;
  font-family: 'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  min-width: 180px;
}

.ils101-login-btn:hover {
  background: rgba(0, 212, 170, 0.1) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(0, 212, 170, 0.15) !important;
  color: #00e6b8 !important;
  border-color: #00e6b8 !important;
}

.ils101-welcome-footer {
  margin-top: 24px;
  text-align: center;
}

.ils101-welcome-footer a {
  color: #6b7280;
  font-size: 14px;
  text-decoration: none;
  margin: 0 15px;
  transition: color 0.2s;
}

.ils101-welcome-footer a:hover {
  color: #00D4AA;
}

/* =============================================
   14. LEGAL SECTION
   ============================================= */
#legal-section h3 {
  color: #beff00 !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  margin-top: 0 !important;
  margin-bottom: 16px !important;
}

#legal-section h4 {
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  margin-bottom: 8px !important;
}

#legal-section p, #legal-section li {
  font-size: 17px !important;
  line-height: 1.7 !important;
  color: #c9cdd3 !important;
}

#legal-section p {
  margin-bottom: 12px !important;
}

#legal-section b {
  color: #ffffff !important;
  font-weight: 600 !important;
}

#legal-section ul {
  margin-bottom: 16px !important;
}

#legal-section details {
  margin-bottom: 8px;
}

#legal-section details summary {
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  padding: 8px 0;
}

#legal-section details[open] summary {
  color: var(--primary-300);
}

.warning-box {
  background-color: #2a2d36 !important;
  border-left: 4px solid #ff6b6b !important;
  border-radius: 5px !important;
  padding: 15px !important;
  color: #c9cdd3 !important;
}
.warning-box h4 {
  color: #ff6b6b !important;
}
.warning-box p {
  color: #c9cdd3 !important;
  font-weight: normal !important;
}

#legal-section .nav-pills > li > a {
  color: #ffffff !important;
}

#legal-section .nav-pills > li.active > a,
#legal-section .nav-pills > li > a.active {
  color: #0b0d13 !important;
  background-color: #beff00 !important;
}

#legal-section .nav-pills > li > a:hover,
#legal-section .nav-pills > li > a:focus {
  color: #beff00 !important;
  background-color: rgba(190, 255, 0, 0.1) !important;
}

/* =============================================
   15. DATA TABLES
   ============================================= */
table.dataTable tbody tr {
  background-color: #20222c !important;
  color: #c9cdd3 !important;
}

table.dataTable thead th {
  background-color: #222530 !important;
  color: #ffffff !important;
  font-weight: 600;
}

table.dataTable {
  border: none !important;
  width: 100% !important;
}

.dataTables_wrapper .dataTables_scrollBody::-webkit-scrollbar {
  width: 6px;
}

.dataTables_wrapper .dataTables_scrollBody::-webkit-scrollbar-thumb {
  background-color: #444;
  border-radius: 3px;
}

/* =============================================
   16. FEEDBACK FORM
   ============================================= */
#feedback_name, #feedback_email, #feedback_comments, #feedback_type {
  background-color: var(--surface-100) !important;
  border: 1px solid var(--surface-200) !important;
  color: var(--text-primary) !important;
  border-radius: 6px !important;
  padding: 12px 16px !important;
  font-size: 16px !important;
}

#feedback_name::placeholder, #feedback_email::placeholder, #feedback_comments::placeholder {
  color: var(--text-secondary) !important;
  opacity: 0.6;
}

#feedback_rating .radio {
  display: inline-block;
  margin-right: 20px;
}

#feedback_rating label {
  color: var(--text-primary) !important;
  font-size: 16px !important;
}

#feedback_type + .dropdown-menu {
  font-size: 14px !important;
}

.bootstrap-select.btn-group .dropdown-toggle {
  font-size: 14px !important;
}

/* Feedback form validation */
.field-error {
  color: #ff6b6b;
  font-size: 13px;
  margin-top: 4px;
  display: none;
}

.field-error.visible {
  display: block;
}

.form-control.input-error {
  border-color: #ff6b6b !important;
}

/* =============================================
   17. TESTIMONIAL FILTERS
   ============================================= */
#jobFilter, #locationFilter {
  background-color: #1a252f !important;
  color: white !important;
  border: 1px solid #3a3a3a !important;
}

label[for="jobFilter"], label[for="locationFilter"] {
  color: white !important;
}

#jobFilter option, #locationFilter option {
  background-color: #1a252f !important;
  color: white !important;
}

/* option:hover removed — not supported in most browsers */

/* =============================================
   18. SLIDE DECKS
   ============================================= */
/* .slide-deck-tile removed — unused */

.selectize-dropdown-content::-webkit-scrollbar {
  width: 8px;
}

.selectize-dropdown-content::-webkit-scrollbar-track {
  background: var(--surface-100);
  border-radius: 4px;
}

.selectize-dropdown-content::-webkit-scrollbar-thumb {
  background: var(--surface-200);
  border-radius: 4px;
}

.selectize-dropdown-content::-webkit-scrollbar-thumb:hover {
  background: var(--primary-300);
}

.selectize-dropdown-content {
  scrollbar-width: thin;
  scrollbar-color: var(--surface-200) var(--surface-100);
}

#slide_deck_summary::-webkit-scrollbar,
.slide-deck-summary-box::-webkit-scrollbar {
  width: 8px;
}

#slide_deck_summary::-webkit-scrollbar-track,
.slide-deck-summary-box::-webkit-scrollbar-track {
  background: var(--surface-100);
  border-radius: 4px;
}

#slide_deck_summary::-webkit-scrollbar-thumb,
.slide-deck-summary-box::-webkit-scrollbar-thumb {
  background: var(--surface-200);
  border-radius: 4px;
}

#slide_deck_summary::-webkit-scrollbar-thumb:hover,
.slide-deck-summary-box::-webkit-scrollbar-thumb:hover {
  background: var(--primary-300);
}

#slide_deck_summary,
.slide-deck-summary-box {
  scrollbar-width: thin;
  scrollbar-color: var(--surface-200) var(--surface-100);
}

/* =============================================
   19. SELECTIZE / BOOTSTRAP-SELECT
   ============================================= */
.selectize-input {
  background-color: #0d1117 !important;
  color: white !important;
  border: 1px solid #2a2d36 !important;
}

.selectize-dropdown {
  background-color: #0d1117 !important;
  color: white !important;
  border: 1px solid #2a2d36 !important;
}

.selectize-dropdown-content .option {
  background-color: #0d1117 !important;
  color: white !important;
}

.selectize-dropdown-content .option:hover {
  background-color: #1a1d23 !important;
  color: #beff00 !important;
}

.selectize-input.focus {
  border-color: #beff00 !important;
}

#sst_basin_1, #sst_basin_2 {
  width: 100% !important;
}

.form-group {
  width: 100% !important;
}

.bootstrap-select .btn-dark {
  background-color: #1a252f !important;
  border: none !important;
  color: white !important;
  font-size: 18px !important;
  padding: 12px 20px !important;
  height: auto !important;
  min-height: 50px !important;
}

.bootstrap-select .btn-dark:focus,
.bootstrap-select .btn-dark:hover {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.bootstrap-select .dropdown-menu {
  background-color: #1a252f !important;
  border: none !important;
  font-size: 16px !important;
}

.bootstrap-select .dropdown-menu li a {
  color: white !important;
  padding: 10px 20px !important;
}

.bootstrap-select .dropdown-menu li a:hover {
  background-color: #2a3540 !important;
}

.global-search-bar input::placeholder {
  color: #888;
}

/* =============================================
   20. ANIMATIONS
   ============================================= */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* =============================================
   21. FOCUS / ACCESSIBILITY
   ============================================= */
.video-card:focus-visible,
.lecture-box:focus-visible,
.sidebar-menu li a:focus-visible,
.file-card:focus-visible,
.factsheet-card:focus-visible {
  outline: 2px solid var(--primary-300);
  outline-offset: 2px;
}

/* =============================================
   22. BREADCRUMB / SEARCH / PROGRESS / PAGINATION
   ============================================= */

/* Breadcrumb */
.breadcrumb-bar {
  background: var(--surface-50);
  padding: 8px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

.breadcrumb-bar a {
  color: var(--primary-300);
  text-decoration: none;
}

.breadcrumb-bar a:hover {
  text-decoration: underline;
}

.breadcrumb-bar .separator {
  margin: 0 8px;
  color: var(--surface-200);
}

/* Search bar */
.global-search-bar {
  position: relative;
  display: inline-block;
}

.global-search-bar input {
  background: var(--surface-100) !important;
  border: 1px solid var(--surface-200) !important;
  color: var(--text-primary) !important;
  border-radius: 20px !important;
  padding: 8px 16px 8px 36px !important;
  font-size: 14px !important;
  width: 250px !important;
  transition: width 0.3s ease, border-color 0.3s ease;
}

.global-search-bar input:focus {
  width: 350px !important;
  border-color: var(--primary-300) !important;
  outline: none;
}

/* Search results dropdown scrollbar */
.global-search-bar div[style*="overflow-y"] {
  scrollbar-width: thin;
  scrollbar-color: #beff00 #1a1b23;
}
.global-search-bar div[style*="overflow-y"]::-webkit-scrollbar {
  width: 6px;
}
.global-search-bar div[style*="overflow-y"]::-webkit-scrollbar-track {
  background: #1a1b23;
  border-radius: 3px;
}
.global-search-bar div[style*="overflow-y"]::-webkit-scrollbar-thumb {
  background: #beff00;
  border-radius: 3px;
}
.global-search-bar div[style*="overflow-y"]::-webkit-scrollbar-thumb:hover {
  background: #a8d900;
}

.global-search-bar .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 14px;
  pointer-events: none;
}

/* Progress bar */
.progress-bar-container {
  background: var(--surface-100);
  border-radius: 4px;
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
}

.progress-bar-fill {
  background: var(--primary-300);
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.lecture-box .completed-check {
  color: var(--primary-300);
  margin-left: 8px;
}

/* Pagination */
.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.pagination-controls .btn {
  background: var(--surface-100);
  color: var(--text-primary);
  border: 1px solid var(--surface-200);
  border-radius: 6px;
  padding: 8px 16px;
}

.pagination-controls .btn:hover {
  background: var(--surface-200);
}

.pagination-controls .page-info {
  color: var(--text-secondary);
  font-size: 14px;
}

/* =============================================
   23. TOAST / VALIDATION / TOUCH
   ============================================= */

/* Toast notification override (shinytoastr) */
.toast-success {
  background-color: var(--primary-300) !important;
  color: #0b0d13 !important;
}

.toast-error {
  background-color: #ff6b6b !important;
}

/* =============================================
   24. RESPONSIVE
   ============================================= */

/* 480px - Mobile */
@media (max-width: 480px) {
  .knowledge-row { flex-direction: column !important; }
  .knowledge-row > .col-sm-4 { width: 100% !important; }
  .video-card { width: 100% !important; min-width: 100% !important; flex: 1 1 100% !important; }
  .factsheet-grid { grid-template-columns: 1fr !important; }
  .video-headline { font-size: 18px !important; }
  .module-header { font-size: 18px !important; }
  .factsheet-header h2 { font-size: 2rem !important; }
  /* .community-filters removed — unused */
}

/* 768px - Tablet */
@media (max-width: 768px) {
  /* Collapse sidebar off-screen */
  .main-sidebar,
  .left-side {
    width: 180px !important;
    transform: translateX(-180px) !important;
    position: fixed !important;
    z-index: 1040 !important;
    transition: transform 0.3s ease !important;
  }

  /* When sidebar is toggled open on mobile */
  .sidebar-open .main-sidebar,
  .sidebar-open .left-side {
    transform: translateX(0) !important;
  }

  /* Smaller sidebar items on mobile */
  .sidebar-menu li a {
    font-size: 16px !important;
    padding: 14px 12px !important;
  }

  /* Sidebar scrollable on mobile */
  .main-sidebar {
    overflow-y: auto !important;
    height: 100vh !important;
  }
  .sidebar-menu {
    overflow-y: auto !important;
    max-height: calc(100vh - 50px) !important;
  }

  /* Content takes full width */
  .content-wrapper,
  .right-side,
  .main-footer {
    margin-left: 0 !important;
  }

  /* Navbar full width */
  .main-header .navbar {
    margin-left: 0 !important;
  }
  .main-header .logo {
    width: auto !important;
  }
  .skin-blue .main-header .navbar {
    background-color: #1a1b23 !important;
  }
  .main-header .navbar-custom-menu {
    background-color: #1a1b23 !important;
  }

  /* Overlay when sidebar open */
  .sidebar-open .content-wrapper::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1030;
  }

  /* Search bar adjustments */
  .global-search-bar {
    display: none !important;
  }

  /* Mobile video stacking */
  #video-slider-pricing {
    flex-direction: column !important;
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    gap: 20px !important;
  }
  #video-slider-pricing .video-card {
    width: 100% !important;
    min-width: 100% !important;
    flex: 1 1 100% !important;
  }

  /* Mobile library tabs */
  #library_tabs > li > a {
    font-size: 14px !important;
    margin-right: 15px !important;
    padding: 10px 0 !important;
    white-space: nowrap !important;
  }
  #library_tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Knowledge row: stack vertically, full width */
  .knowledge-row {
    flex-direction: column !important;
    gap: 0 !important;
  }
  .knowledge-row > .col-sm-4,
  .knowledge-row > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .module-container {
    min-height: auto !important;
    height: auto !important;
    padding: 24px 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* SST charts stack on mobile */
  .plotly {
    width: 100% !important;
  }

  /* Audience toggle */
  .custom-toggle {
    width: 40px !important;
  }

  /* Columns stack */
  .col-sm-6, .col-sm-4 {
    width: 100% !important;
    float: none !important;
  }

  /* Modal: proper width on mobile */
  .modal-dialog {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 15px !important;
    width: auto !important;
    max-width: none !important;
  }
  .modal-dialog.modal-lg,
  .modal-dialog.modal-xl {
    width: auto !important;
    max-width: none !important;
    margin: 15px !important;
  }
}

/* 1024px - Small desktop */
@media (max-width: 1024px) {
  .knowledge-row > .col-sm-4 { width: 50% !important; }
  .factsheet-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* 1280px+ - Large desktop */
@media (min-width: 1280px) {
  .content-wrapper { max-width: 1400px; margin: 0 auto; }
  .factsheet-container { max-width: 1400px; }
}

/* =============================================
   26. QUIZ COMPONENTS
   ============================================= */
/* Quiz cards grid layout */
.quiz-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 992px) {
  .quiz-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .quiz-cards-grid {
    grid-template-columns: 1fr;
  }
}

.quiz-card {
  background: var(--surface-50);
  border: 1px solid var(--surface-100);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 180px;
}

.quiz-card:hover {
  border-color: var(--primary-300);
  box-shadow: 0 0 16px rgba(190, 255, 0, 0.1);
}

.quiz-card h4 {
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px 0;
}

.quiz-card .quiz-status {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 12px;
}

.quiz-card .quiz-score {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-300);
  margin-bottom: 12px;
}

.quiz-card .quiz-score.fail {
  color: #ff6b6b;
}

.quiz-card .btn-quiz {
  background: var(--primary-300);
  color: #0b0d13;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.quiz-card .btn-quiz:hover {
  background: var(--primary-200);
}

.quiz-question-box {
  background: var(--surface-50);
  border: 1px solid var(--surface-100);
  border-radius: 12px;
  padding: 28px;
  margin-top: 20px;
}

.quiz-question-box h4 {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.quiz-question-box .radio label,
.quiz-question-box .shiny-options-group label {
  display: block !important;
  color: var(--text-primary) !important;
  font-size: 15px !important;
  padding: 12px 16px !important;
  margin-bottom: 8px !important;
  background: var(--surface-100);
  border: 1px solid var(--surface-200);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.quiz-question-box .radio label:hover,
.quiz-question-box .shiny-options-group label:hover {
  border-color: var(--primary-300);
  background: rgba(190, 255, 0, 0.05);
}

.quiz-question-box .radio input[type="radio"] {
  margin-right: 10px;
}

.quiz-feedback-correct {
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid #4caf50;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
  color: #81c784;
  font-size: 14px;
  line-height: 1.6;
}

.quiz-feedback-incorrect {
  background: rgba(244, 67, 54, 0.15);
  border: 1px solid #f44336;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
  color: #ef9a9a;
  font-size: 14px;
  line-height: 1.6;
}

.quiz-progress-bar {
  background: var(--surface-100);
  border-radius: 4px;
  height: 4px;
  margin-bottom: 20px;
  overflow: hidden;
}

.quiz-progress-bar .fill {
  background: var(--primary-300);
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.quiz-progress-text {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 8px;
}

.certificate-card {
  background: var(--surface-50);
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, var(--primary-300), #00D4AA, var(--blue-accent)) 1;
  border-radius: 0;
  padding: 32px;
  text-align: center;
  margin-top: 30px;
}

.certificate-card h3 {
  color: var(--primary-300);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.certificate-card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

.certificate-card .btn-certificate {
  background: linear-gradient(135deg, var(--primary-300), #00D4AA);
  color: #0b0d13;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.certificate-card .btn-certificate:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(190, 255, 0, 0.3);
}

/* =============================================
   25. PRINT
   ============================================= */
@media print {
  .main-sidebar, .main-header, .sidebar-toggle, .carousel-nav, .btn, button { display: none !important; }
  .content-wrapper { background: white !important; color: black !important; margin-left: 0 !important; }
  #legal-section, #legal-section p, #legal-section li { color: black !important; }
  #legal-section h3, #legal-section h4 { color: black !important; }
  .factsheet-card { break-inside: avoid; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666; }
}

/* =============================================
   27. LECTURE NOTES
   ============================================= */
.lecture-notes {
  background: rgba(190, 255, 0, 0.03);
  border: 1px solid rgba(190, 255, 0, 0.1);
  border-radius: 8px;
  margin: 8px 0;
  transition: border-color 0.2s ease;
}

.lecture-notes:hover {
  border-color: rgba(190, 255, 0, 0.25);
}

.lecture-notes summary {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-300);
  cursor: pointer;
  list-style: none;
}

.lecture-notes summary::-webkit-details-marker {
  display: none;
}

.lecture-notes[open] summary {
  border-bottom: 1px solid rgba(190, 255, 0, 0.1);
}

.lecture-notes ul {
  padding: 12px 16px 12px 32px;
  margin: 0;
}

.lecture-notes li {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 6px;
}

/* =============================================
   28. GLOSSARY
   ============================================= */
.glossary-card {
  background: var(--surface-50);
  border: 1px solid var(--surface-100);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 12px;
  transition: border-color 0.2s ease;
}

.glossary-card:hover {
  border-color: rgba(190, 255, 0, 0.3);
}

#glossary_search {
  background-color: var(--surface-100) !important;
  border: 1px solid var(--surface-200) !important;
  color: var(--text-primary) !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
}

/* =============================================
   29. MARKET STAT CARDS
   ============================================= */
.market-stat-card {
  background: var(--surface-50);
  border: 1px solid var(--surface-100);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  margin-bottom: 16px;
  transition: border-color 0.2s ease;
}

.market-stat-card:hover {
  border-color: rgba(190, 255, 0, 0.3);
}

.market-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-300);
  margin-bottom: 4px;
}

.market-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =============================================
   30. PROGRESS TRACKER
   ============================================= */
.progress-tracker {
  background: var(--surface-50);
  border: 1px solid var(--surface-100);
  border-radius: 12px;
  padding: 24px;
}

/* =============================================
   31. BOOKMARK STAR
   ============================================= */
.bookmark-star {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 18px;
  color: var(--surface-200);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.bookmark-star:hover {
  color: var(--primary-300);
  transform: scale(1.2);
}

.bookmark-star.active {
  color: var(--primary-300);
  text-shadow: 0 0 8px rgba(190, 255, 0, 0.5);
}

/* =============================================
   32. QUIZ ANALYTICS
   ============================================= */
.quiz-analytics {
  background: var(--surface-50);
  border: 1px solid var(--surface-100);
  border-radius: 12px;
  padding: 24px;
}

/* =============================================
   33. BADGE CARDS
   ============================================= */
.badge-card {
  background: var(--surface-50);
  border: 1px solid var(--surface-100);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  width: 120px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.badge-earned {
  border-color: rgba(190, 255, 0, 0.3);
  box-shadow: 0 0 16px rgba(190, 255, 0, 0.08);
}

.badge-earned:hover {
  box-shadow: 0 0 24px rgba(190, 255, 0, 0.15);
  transform: translateY(-2px);
}

.badge-locked {
  opacity: 0.5;
}

/* =============================================
   34. SHORTS (AUDIO EPISODES)
   ============================================= */
.shorts-card {
  background: var(--surface-50);
  border: 1px solid var(--surface-100);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}
.shorts-card:hover {
  border-color: rgba(190, 255, 0, 0.25);
}
.shorts-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.shorts-card audio {
  height: 40px;
  filter: invert(1) hue-rotate(180deg) brightness(0.8) contrast(1.1);
  opacity: 0.85;
}

/* =============================================
   35. NAT CAT EXPLORER
   ============================================= */
#natcat_tabs > .nav-tabs {
  border-bottom: 1px solid var(--surface-100) !important;
  margin-bottom: 0;
}

#natcat_tabs > .nav-tabs > li > a {
  color: var(--text-secondary) !important;
  background: transparent !important;
  border: none !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  padding: 12px 20px !important;
}

#natcat_tabs > .nav-tabs > li.active > a {
  color: var(--primary-300) !important;
  border-bottom: 2px solid var(--primary-300) !important;
}

/* Duplicate .progress-bar-container/.progress-bar-fill removed — defined in section 22 */

/* =============================================
   35. LEADERBOARD / DT DARK OVERRIDES
   ============================================= */
#leaderboard_tabs > .nav-tabs {
  border-bottom: 1px solid var(--surface-100) !important;
  margin-bottom: 16px;
}

#leaderboard_tabs > .nav-tabs > li > a {
  color: var(--text-secondary) !important;
  background: transparent !important;
  border: none !important;
  font-size: 14px !important;
}

#leaderboard_tabs > .nav-tabs > li.active > a {
  color: var(--primary-300) !important;
  border-bottom: 2px solid var(--primary-300) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  color: var(--text-secondary) !important;
  background: transparent !important;
  border: 1px solid var(--surface-100) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  color: var(--primary-300) !important;
  border-color: var(--primary-300) !important;
}

.dataTables_wrapper .dataTables_info {
  color: var(--text-secondary) !important;
}

/* =============================================
   36. SETTINGS / PROFILE PAGE
   ============================================= */
.settings-profile-card {
  background: var(--surface-50);
  border: 1px solid var(--surface-100);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin-bottom: 24px;
}

.settings-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-300), #00D4AA);
  color: #0b0d13;
  font-size: 28px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.settings-section {
  background: var(--surface-50);
  border: 1px solid var(--surface-100);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.settings-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

/* =============================================
   26. ANALYTICS DASHBOARD
   ============================================= */

.analytics-dashboard {
  padding: 20px;
  max-width: 1400px;
}

.analytics-kpi-card {
  background: var(--surface-50);
  border: 1px solid var(--surface-100);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  transition: border-color 0.2s;
}

.analytics-kpi-card:hover {
  border-color: var(--primary-300);
}

.analytics-section {
  background: var(--surface-50);
  border: 1px solid var(--surface-100);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

/* Dark theme for DT tables inside analytics */
.analytics-dashboard .dataTables_wrapper {
  color: var(--text-secondary);
}

.analytics-dashboard table.dataTable {
  background: transparent !important;
  color: var(--text-primary) !important;
  border-collapse: collapse;
}

.analytics-dashboard table.dataTable thead th {
  background: #1a1b23 !important;
  color: var(--text-secondary) !important;
  border-bottom: 1px solid var(--surface-100) !important;
  padding: 10px 14px !important;
}

.analytics-dashboard table.dataTable tbody td {
  background: transparent !important;
  color: var(--text-primary) !important;
  border-bottom: 1px solid rgba(255,255,255,0.04) !important;
  padding: 8px 14px !important;
}

.analytics-dashboard table.dataTable tbody tr:hover td {
  background: rgba(190,255,0,0.03) !important;
}

.analytics-dashboard .dataTables_info,
.analytics-dashboard .dataTables_paginate {
  color: var(--text-secondary) !important;
  margin-top: 12px;
}

.analytics-dashboard .dataTables_paginate .paginate_button {
  color: var(--text-secondary) !important;
  background: var(--surface-50) !important;
  border: 1px solid var(--surface-100) !important;
  border-radius: 4px !important;
  margin: 0 2px !important;
}

.analytics-dashboard .dataTables_paginate .paginate_button.current {
  color: #0b0d13 !important;
  background: var(--primary-300) !important;
  border-color: var(--primary-300) !important;
}

/* =============================================
   37. TRIAL BANNER & CONTENT GATING
   ============================================= */

/* Trial banner - amber active variant */
.trial-banner {
  background: linear-gradient(135deg, #1a1500 0%, #2a2200 50%, #1a1500 100%);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 8px;
  padding: 12px 20px;
  margin: 0 15px 16px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.trial-banner .trial-banner-text {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffc107;
  font-size: 14px;
  font-weight: 500;
}

.trial-banner .trial-banner-text i {
  font-size: 18px;
}

/* Trial banner - expired red variant */
.trial-banner-expired {
  background: linear-gradient(135deg, #1a0500 0%, #2a0800 50%, #1a0500 100%);
  border-color: rgba(255, 82, 82, 0.3);
}

.trial-banner-expired .trial-banner-text {
  color: #ff8a80;
}

/* Upgrade button inside banner */
.trial-upgrade-btn {
  background: linear-gradient(135deg, #ff9800, #ff6d00) !important;
  color: #fff !important;
  border: none !important;
  padding: 8px 20px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  white-space: nowrap;
}

.trial-upgrade-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(255, 152, 0, 0.4) !important;
}

/* Quiz card - trial badge highlight */
.quiz-card-trial {
  border-color: rgba(255, 193, 7, 0.4) !important;
  box-shadow: 0 0 12px rgba(255, 193, 7, 0.08) !important;
  position: relative;
}

/* Quiz card - locked/dimmed state */
.quiz-card-locked {
  opacity: 0.45;
  pointer-events: none;
  position: relative;
}

.quiz-card-locked:hover {
  border-color: var(--surface-100);
  box-shadow: none;
}

/* Locked card overlay with upgrade button (needs pointer-events restored) */
.quiz-card-locked .quiz-locked-overlay {
  pointer-events: auto;
}

/* Trial badge on quiz cards */
.trial-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  margin-left: 8px;
  vertical-align: middle;
}

/* Responsive adjustments for trial banner */
@media (max-width: 576px) {
  .trial-banner {
    flex-direction: column;
    text-align: center;
    padding: 12px 14px;
    margin: 0 8px 12px 8px;
  }
  .trial-banner .trial-banner-text {
    font-size: 13px;
    justify-content: center;
  }
  .trial-upgrade-btn {
    width: 100%;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Content gating — locked cards for factsheets, videos & shorts
   ═══════════════════════════════════════════════════════════════ */

/* Shared locked state — dims the card and disables interaction */
.content-locked {
  opacity: 0.45;
  position: relative;
  pointer-events: none;
}

.content-locked:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Overlay with lock icon + upgrade button — sits on top with pointer-events restored */
.content-locked-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.3);
  border-radius: inherit;
}

/* Factsheet locked card */
.factsheet-card.content-locked {
  opacity: 0.45;
}

.factsheet-card.content-locked .factsheet-thumbnail img {
  filter: brightness(0.4) grayscale(0.3);
}

/* Video card locked state */
.video-card.content-locked {
  cursor: default;
}

.video-card.content-locked .video-thumb {
  filter: brightness(0.35) !important;
}

/* Shorts locked card */
.shorts-card.content-locked {
  opacity: 0.45;
}

/* File card locked (library_videos) */
.file-card.content-locked {
  cursor: default;
}

.file-card.content-locked .content-locked-overlay {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
}

/* =============================================
   Shiny Progress Bar — dark theme override
   ============================================= */
.shiny-notification {
  background-color: var(--surface-0);
  color: var(--text-primary);
  border: 1px solid var(--surface-100);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  opacity: 1;
  font-family: 'DM Sans', sans-serif;
  top: 16px !important;
  right: 16px !important;
  width: 360px;
}

.shiny-notification-message,
.shiny-notification-warning,
.shiny-notification-error {
  background-color: var(--surface-0);
  color: var(--text-primary);
  border: 1px solid var(--surface-100);
}

.shiny-notification-close {
  color: var(--text-secondary);
}

.shiny-notification-close:hover {
  color: var(--text-primary);
}

.shiny-notification .progress {
  background-color: var(--surface-50);
  border-radius: 6px;
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
}

.shiny-notification .progress .progress-bar {
  background-color: var(--primary-300);
  border-radius: 6px;
  transition: width 0.3s ease;
}

.shiny-notification .progress-text {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
}

.shiny-notification .progress-detail {
  color: var(--text-secondary);
  font-size: 12px;
  margin-top: 2px;
}
