/*========================================
Base Style Reset
========================================*/
* {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
}
html, body {
 font-family: 'Playfair Display', serif;
 line-height: 1.5;
 -webkit-font-smoothing: antialiased;
 color: #ccc;
 scroll-behavior: smooth;
 background:
  /* scratch layer */
  repeating-linear-gradient(
    -8deg,
    rgba(255,255,255,0.015) 0,
    rgba(255,255,255,0.01) 1px,
    transparent 3px
  ),
  radial-gradient(circle at center,
    rgba(50,50,50,0.75), 
    rgba(5,5,5,0.95) 80%),
  linear-gradient(to bottom, 
    #252525, 
    #151515);
 background-blend-mode: overlay, overlay, multiply, normal;
 overflow-x: hidden;
 height: 100%;
}
button {
  border: unset;
  background: unset;
  font-size:  unset;
  font-family: unset;
  color: unset;
  text-align: unset;
}
:root {
 --color-subdued-white: #bbb;
 --color-active: #9ef0f9;
 --border-1px: 1px groove #333;
 --box-shadow-header:   0px 1px 6px rgba(0, 0, 0, 0.4),
                        2px 6px 8px rgba(20, 25, 30, 0.25),
                        inset 0 1px 2px rgba(255, 255, 255, 0.25),
                        inset 0 -1px 3px rgba(0,0,0,0.4);
 --box-shadow-modal: 0 18px 40px rgba(0, 0, 0, 0.7),
                     0 6px 20px rgba(0, 0, 0, 0.5),
                     0 0 10px rgba(90, 120, 150, 0.25),
                     inset 0 2px 6px rgba(255, 255, 255, 0.05),
                     inset 0 -4px 10px rgba(0, 0, 0, 0.6); 
                        --dark-gradient: linear-gradient(30deg,    
                        hsla(0, 0%, 0%),    
                        hsla(225, 30%, 10%),    
                        hsla(200, 5%, 5%));
 --dark-blue-gradient: linear-gradient(30deg,    
                             hsla(0, 0%, 0%, .8),    
                             hsla(225, 15%, 12%, .85),    
                             hsla(200, 5%, 15%, .9));
 --action-button-gradient: linear-gradient(5deg,
                                hsla(215, 8%, 8%),
                                hsl(210, 12%, 8%),
                                hsl(217, 25%, 12%),
                                hsl(215, 28%, 12%), 
                                #333);
 --card-gradient: linear-gradient(30deg,    
                        hsla(0, 0%, 0%, .5),    
                        hsla(225, 15%, 12%, .65),    
                        hsla(200, 5%, 15%, .5));
 --green-gradient: linear-gradient(to right, 
                         #4caf50,
                         #81c784, 
                         #4caf50);
 --red-gradient: linear-gradient(to right,
                       #f44336, 
                       #e57373, 
                       #f44336);
  --site-header-height: 85px;
}
@font-face {
  font-family: "Portmanteau";
  src: 
    url("../fonts/portmanteau.woff2") format("woff2"),
    url("../fonts/portmanteau.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Use swap for better performance */
  }
/* ===============================
   Homepage & Sitewide Styles
================================== */
.hidden { display: none !important; }
/*
//    Header
*/
.site-header {
 width: 100%;
 max-width: 100vw;
 height: 85px;
 pointer-events: none;
 border-bottom: 2px groove hsla(210, 11%, 18%, 0.5);
 border-right: 2px groove hsla(210, 11%, 18%, 0.5);
 border-bottom-right-radius: 10px;
 box-shadow: var(--box-shadow-header);
 background-size: 400% 100%;
 background-position: 50% 0%;
 animation: headerShift 12s ease-in-out infinite;
 transition: all 0.3s ease;
 position: fixed;
 top: 0;
 left: 0;
 background: var(--dark-gradient);
 z-index: 1000;
} 
@keyframes headerShift {
 0%   { background-position:   0% 50%; }
 50%  { background-position: 100% 50%; }
 100% { background-position:   0% 50%; }
}
.site-header .header-inner {  
  display: flex;  
  justify-content: space-between;  
  align-items: center;  
  padding:5px 30px;  
  position: relative;  
  backdrop-filter: blur(100px);  
  background:  #ffffff0f;  
  overflow: hidden; 
} 
.site-header .header-inner::before,
.site-header .header-inner::after {
 content: "";
 position: absolute;
 inset: 0;
 pointer-events: none;
 transition: opacity 1s ease-in-out;
}
.site-header .header-inner::before {
 background: linear-gradient(
             50deg, transparent 30%,
             rgba(255,255,255,0.06) 50%,
             transparent 70%);
 background-size: 200% 200%;
 animation: sweep 20s linear infinite;
}
@keyframes sweep {
 0%   { background-position: -200% 0; }
 100% { background-position: 200% 0; }
}
.site-header .header-inner::after {
 background: radial-gradient(
              circle at 30% 50%,
              rgba(255,255,255,0.05),
              transparent 70%);
 animation: drift 15s ease-in-out infinite alternate;
}
@keyframes drift {
 0%   { background-position: 30% 50%; }
 100% { background-position: 70% 50%; }
}
.site-header .logo-area img {
 height: 75px;
 pointer-events: all;
 margin-left: 1rem;
 transition: transform 0.3s ease, filter 0.3s ease;
}

.site-header .logo-area img:hover {
 transform: scale(1.05);
 filter: drop-shadow(0 0 8px rgba(158, 240, 249, 0.4));
}
/*
//    Navigation 
*/
.site-header .main-nav ul {
 display: flex;
 gap: 1rem;
 list-style: none;
 margin-right: 1rem;
 align-items: center;
}
.site-header .main-nav a {
 color: var(--color-subdued-white);
 text-decoration: none;
 font-weight: 700;
 font-size: 1rem;
 transition: all 0.3s ease;
 padding: .25rem .75rem;
 position: relative;
 top: 30%;
 pointer-events: all;
 cursor: pointer;
}

/* Auth Button Visibility - Default to login shown, logout hidden */
.site-header .login-btn {
 display: block;
}
.site-header .logout-btn {
 display: none;
}

/* Get Started CTA Button - Subtle gold accent */
.site-header .cta-nav-link {
  color: #d4af37 !important;
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
}

.site-header .cta-nav-link::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
  opacity: 0.6;
}

.site-header .cta-nav-link:hover {
  color: #f4d03f !important;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.site-header .cta-nav-link:hover::after {
  opacity: 1;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* Mobile auth buttons */
.mobile-nav .mobile-login {
 display: block;
}
.mobile-nav .mobile-logout {
 display: none;
}

/* Mobile Get Started Button - More prominent on mobile */
.mobile-nav .mobile-cta-link {
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
  color: #1a1a1a !important;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  display: block;
  margin: 10px 15px;
  transition: all 0.3s ease;
}

.mobile-nav .mobile-cta-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.site-header .main-nav a::after {
 content: "";
 position: absolute;
 bottom: -3px;
 left: 0;
 width: 0;
 height: 2px;
 background: var(--color-active);
 transition: all 0.3s ease;
 opacity: 0;
}
.site-header .main-nav a:hover::after {
 width: 100%;
 opacity: 1;
}
.site-header .main-nav a:hover {
 color: var(--color-active);
 text-shadow: 2px 3px 2px rgba(0, 19, 19, 0.85);
}
.site-header .main-nav #account-options-button {
 border-radius: 50%;
 height: 48px;
 width: 48px;
 background: transparent;
 position: relative;
 transition: all 0.3s ease;
 display: inline-grid;
 place-items: center;
 pointer-events: all;
 top: 0;
 padding: 4px;
}
.site-header .main-nav #account-options-button:hover{
 background-color: rgba(30, 50, 70, 0.3);
}
.site-header .main-nav .account-options-icon{
 position: absolute;
 inset:0;
 transform:rotate(-90deg);
 pointer-events: all;
}
.site-header .main-nav #account-options-button:hover .account-options-icon circle{
 animation:ringDraw .4s linear forwards;
 color: rgba(10, 30, 50, .7);
}
@keyframes ringDraw {
 to { stroke-dashoffset: 0; }
}

/* 
//      Mobile Header Styles
*/
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  pointer-events: all;
  margin-right: 1rem;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(30, 50, 70, 0.3);
  border-radius: 8px;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: var(--color-subdued-white);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 81px;
  left: 0;
  right: 0;
  background: linear-gradient(180deg,
    hsla(210, 20%, 8%, 0.98),
    hsla(210, 15%, 5%, 0.98));
  backdrop-filter: blur(20px);
  border-bottom: 2px groove hsla(210, 11%, 18%, 0.5);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
  z-index: 1001;
}

.mobile-nav.active {
  display: block;
  max-height: calc(100vh - 81px);
  overflow-y: auto;
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-list {
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  animation: fadeInItem 0.3s ease forwards;
  opacity: 0;
}

.mobile-nav-list li:nth-child(1) { animation-delay: 0.05s; }
.mobile-nav-list li:nth-child(2) { animation-delay: 0.1s; }
.mobile-nav-list li:nth-child(3) { animation-delay: 0.15s; }
.mobile-nav-list li:nth-child(4) { animation-delay: 0.2s; }
.mobile-nav-list li:nth-child(5) { animation-delay: 0.25s; }
.mobile-nav-list li:nth-child(6) { animation-delay: 0.3s; }

@keyframes fadeInItem {
  to {
    opacity: 1;
  }
}

.mobile-nav-list li:last-child {
  border-bottom: none;
}

.mobile-nav-list a {
  display: block;
  padding: 1rem 2rem;
  color: var(--color-subdued-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
}

.mobile-nav-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-active);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.mobile-nav-list a:active,
.mobile-nav-list a:hover {
  background: rgba(158, 240, 249, 0.05);
  color: var(--color-active);
  padding-left: 2.5rem;
}

.mobile-nav-list a:active::before,
.mobile-nav-list a:hover::before {
  transform: scaleY(1);
}

.mobile-nav-list .auth-section {
  padding: 0.5rem 0;
  background: rgba(0, 0, 0, 0.2);
}

.mobile-nav-list .mobile-account {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0.5rem;
}

/* Hide mobile nav on desktop */
@media (min-width: 1025px) {
  .mobile-menu-toggle {
    display: none !important;
  }
  
  .mobile-nav {
    display: none !important;
  }
  
  .desktop-nav {
    display: block !important;
  }
}

/* Show mobile nav on tablets and phones */
@media (max-width: 1024px) {
  /* Hero logo responsive scaling for tablets - slight left offset */
  .skull-image {
    left: 30%;
    transform: translate(-50%, -50%) scale(.42);
  }
  
  .hero-logo-helmet {
    left: 30%;
    transform: translate(-50%, -50%) scale(.95);
  }
  
  .homepage-main .hero .hero-logo-wrapper .slice,
  #helmet-back {
    transform: translate(-50%, -50%) scale(.42);
  }
  .desktop-nav {
    display: none !important;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .site-header {
    width: 100%;
    border-right: none;
    border-bottom-right-radius: 0;
  }
  
  .site-header .logo-area img {
    height: 60px;
    margin-left: 0.5rem;
  }
  
  .site-header .header-inner {
    padding: 3px 15px;
  }
  
  #mws-header-container {
    margin-bottom: 70px;
  }

  /* When the beta banner is present, the banner will sit under the header.
     Remove the extra bottom margin on the header container to avoid a visible
     gap between the header and the fixed banner (applies to tablet/mobile). */
  body.has-beta-banner #mws-header-container {
    margin-bottom: 0;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .site-header .logo-area img {
    height: 50px;
    margin-left: 0.25rem;
  }
  
  .mobile-menu-toggle {
    width: 36px;
    height: 36px;
    margin-right: 0.5rem;
  }
  
  .hamburger-line {
    height: 2.5px;
  }
  
  .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  #mws-header-container {
    margin-bottom: 60px;
  }
}

/* Ensure no gap between header container and fixed beta banner at any width */
body.has-beta-banner #mws-header-container {
  margin-bottom: 0 !important;
}

/* Remove header border-bottom when beta banner is present to prevent gap */
body.has-beta-banner .site-header {
  border-bottom: none;
}

/* 
//      Modals 
*/
#login-modal-container .modal {
  display: none;
  position: fixed;
  inset: 0;
    /* Sit beneath the fixed site header (header z-index is 1000) so the banner does
      not overlap the header when positioned directly underneath it. */
    z-index: 900;
  justify-content: center;
  align-items: center;
}

/* Normalize overlay modal padding so modals don't overlap the fixed header */
#login-modal-container .modal,
#course-preview-modal,
.dashboard-modal,
.dashboard-container .challenge-modal,
.dashboard-container .badges-modal,
#account-settings-modal {
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--site-header-height, 85px) + 12px);
}

@media (max-height: 700px) {
  #login-modal-container .modal,
  #course-preview-modal,
  .dashboard-modal,
  .dashboard-container .challenge-modal,
  .dashboard-container .badges-modal,
  #account-settings-modal {
    align-items: flex-start;
    padding-top: calc(var(--site-header-height, 85px) + 12px);
    padding-bottom: 12px;
  }
}
#login-modal-container .active {
  display: flex;
}
#login-modal-container .modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

/* =====================
   Beta banner (thin fixed notice)
   Injected immediately under the header container and positioned under header
   ===================== */
.mws-beta-banner {
  position: fixed;
  left: 0;
  right: 0;
  top: 0; /* moved into place via JS to sit under header */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  height: auto; /* Allow height to scale with content */
  background: linear-gradient(60deg, #252525 0%, #151515 100%);
  color: #bbb;
  font-size: 0.95rem;
  z-index: 1000;
  box-shadow: var(--box-shadow-header);
  border-bottom: 1px groove rgba(0,0,0,0.5);
  box-sizing: border-box;
  box-sizing: border-box;
}
.mws-beta-banner__inner {
  width: 100%;
  max-width: 1180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap; /* allow items to wrap on small screens */
}
.mws-beta-banner__message { margin: 0; padding: 0; text-align: center; font-weight: 600; flex: 1 1 220px; }
.mws-beta-banner__link { color: #666; text-decoration: underline; }
.mws-beta-banner__dismiss { background: transparent; border: none; font-size: 20px; line-height: 1; padding: 2px 6px; cursor: pointer; color: #bbb; }

/* When the banner is present, add a small push to page content so it doesn't get covered */
body.has-beta-banner {
  transition: padding-top 0.18s ease;
}

@media (max-width: 600px) {
  .mws-beta-banner { font-size: 0.9rem; padding: 8px 10px; }
  .mws-beta-banner__inner { padding: 0 8px; align-items: center; }
  .mws-beta-banner__message { font-size: 0.92rem; text-align: left; }
  .mws-beta-banner__dismiss { order: 2; margin-left: 6px; }
  /* If space is tight, stack message above dismiss control */
  .mws-beta-banner__inner > * { flex-basis: 100%; }
  .mws-beta-banner__message { flex-basis: auto; }
}
#login-modal-container .modal-content {
  position: relative;
  background: var(--color-subdued-white);
  color: #000;
  padding: 2rem;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  z-index: 1;
  box-shadow: var(--box-shadow-header);
  max-height: calc(100vh - (var(--site-header-height, 85px) + 56px));
  overflow-y: auto;
}
#login-modal-container .modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}
#login-modal-container .input-group {
  margin-bottom: 1rem;
}
#login-modal-container .input-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
#login-modal-container .input-group input {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid var(--color-subdued-white);
  border-radius: 4px;
}
#login-modal-container button[type="submit"],
#login-modal-container button[type="button"] {
  width: 100%;
  padding: 0.8rem;
  margin-top: 0.5rem;
  background: var(--dark-blue-gradient); 
  backdrop-filter: blur(4px);
  box-shadow: var(--box-shadow-header);
  background-size: 400% 100%;
  background-position: 50% 0%;
  color: #eee;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}
#login-modal-container #cancel-password-reset,
#login-modal-container #send-reset-link {
  width: 48%;
}
#login-modal-container button[type="submit"]:hover,
#login-modal-container button[type="button"]:hover {
  filter: brightness(1.5);
  transform: translateY(-3px);
}
/* Course Preview Modal */
#course-preview-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  justify-content: center;
  align-items: center;
}
#course-preview-modal[aria-hidden="false"] {
  display: flex;
}
#course-preview-modal .modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}
#course-preview-modal .modal-content {
  position: relative;
  z-index: 2;
  width: 92%;
  max-width: 820px;
  background: linear-gradient(180deg, #0e0e0e, #111);
  color: var(--color-subdued-white);
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: var(--box-shadow-modal);
  border: var(--border-1px);
  max-height: calc(100vh - (var(--site-header-height, 85px) + 56px));
  overflow-y: auto;
}
#course-preview-modal .modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 1.25rem;
  background: transparent;
  border: none;
  color: var(--color-subdued-white);
  cursor: pointer;
}
#course-preview-modal .modal-body { padding: 0.5rem 0; }
#course-preview-modal .modal-body h2 { color: var(--color-active); margin-bottom: 0.25rem; }
#course-preview-modal .modal-body p { color: #d7d7d7; }
#course-preview-modal .modal-footer { margin-top: 1rem; text-align: right; }

/* demo: countdown bar and improved image (scoped under .demo-embed) */
.demo-embed .demo-image { position: relative; overflow: hidden; }
.demo-embed .demo-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.demo-embed .demo-countdown {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: rgba(255,255,255,0.06);
}
.demo-embed .demo-countdown .progress {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #4caf50, #81c784);
  transition: width linear;
}
#login-modal-container .auth-links {
  font-size: 0.85rem;
  margin-top: 0.75rem;
  text-align: center;
}
#login-modal-container .auth-links a {
  color: #0066cc;
  text-decoration: none;
}
#login-modal-container .auth-links a:hover {
  text-decoration: underline;
}
.login-modal-back-icon{
  width: 1rem;
  height: 1rem;
  padding-top: -.25rem;
  padding-bottom: -.25rem;
  position: relative;
  top: 4px;
  margin-right: .5rem;
}
.catalog-filters,
.resource-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  padding-bottom: 1rem;
  border-bottom: var(--border-1px);
  margin-bottom: 1.5rem;
}
.catalog-filters h2,
.resource-filters h2 {
  width: 100%;
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}
.catalog-search-row {
  display:flex;
  gap:10px;
  align-items:center;
  width: 30%;
  right: -5%;
  position: relative;
}
.resource-search-row {
  display:flex;
  gap:10px;
  align-items:center;
  width:30%;
  right: -30%;
  position: relative;
}
.catalog-search-row svg,
.resource-search-row svg  {
  width: 24px;
  position: absolute;
  right: 10px;
  color: rgb(50, 50, 50, 0.75);
}
.catalog-search-input,
.resource-search-input,
#account-settings-modal .tab-panel input[type="text"],
#account-settings-modal .tab-panel input[type="email"],
#account-settings-modal .tab-panel input[type="password"],
#account-settings-modal .tab-panel input[type="textarea"] {
  flex:1;
  background: #111;
  border: var(--border-1px);
  color: var(--color-subdued-white);
  padding: .5rem;
  border-radius:8px;
  outline:none;
  font-size: 1rem;
  min-width:0;
  padding-left: 1rem;
  width: 100%;
  margin-top: 0.25rem;
}
.catalog-search-input::placeholder,
.resource-search-input::placeholder {
  color:hsla(0, 0%, 25%, 0.75);
  font-weight: 400;
}
.filter-group {
  display: flex;
  flex-direction: column;
  min-width: 150px;
  margin-right: 25px;
}
.filter-group select,
.filter-group input {
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  border: var(--border-1px);
  background: #111;
  font-size: 0.95rem;
  box-shadow: var(--box-shadow-header);
  color: var(--color-subdued-white);
}
.catalog-container,
.resource-hub-container {
  max-width: var(--max-width);
  margin: 75px auto;
  padding: 2rem;
}
.catalog-grid {
  gap: 1rem;
  display: flex;
  flex-direction: column;
  justify-self: center;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 324px);
  gap: 1rem;
  justify-content: center;
}
.resource-card {
  max-width: 316px;
  max-height: 400px;
  position: relative;
}
.resource-card .resource-description-container {
  background: linear-gradient(30deg, 
                hsla(0,0%,0%, .25), 
                hsla(0,0%,0%,.15));
  border-radius: 8px;
  border-top-right-radius: 4px;
  padding: 0 .75rem;
  width: 316px;
  height: 168px;
  justify-self: center;
  border: 1px groove #111;
  border-top: var(--border-1px);
  border-top-left-radius: 0;
  position: absolute;
  top: 134px;
}
.course-card .course-card-content {
  display: flex;
}
.resource-card .resource-title {
  font-size: 1.1rem;
  color: var(--color-subdued-white);
  transition: all 0.3s ease;
  text-shadow: 0px 1px 0px #111;
  /* Place title inside the card header area and ensure it doesn't get clipped.
     Use box-sizing and a two-line clamp so long titles remain readable but
     don't overflow the card layout. */
    position: absolute;
    /* Anchor the title to the bottom of the image area so it sits above
      the description container. Use bottom positioning (relative to the
      card) instead of top, so titles align consistently even if image
      heights vary. */
    left: 12px;
    bottom: calc(168px + 12px); /* description container height (168px) + gap */
  box-sizing: border-box;
  border-radius: 0;
  border-top-right-radius: 12px;
  border-bottom: var(--border-1px);
  background: linear-gradient(
    hsla(0,0%,0%, .75),
    hsla(0,0%,0%, .95)
  );
  width: calc(100% - 24px);
  padding: .4rem .6rem;
  z-index: 20;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  white-space: normal;
}
.resource-card:hover .resource-title {
  color: var(--color-active);
}
.resource-card .resource-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  color: var(--color-subdued-white);
  margin-top: .5rem;
}
.resource-card .resource-icon  {
  width: 1.5rem;
  position: absolute;
  top: .5rem;
  right: 1.5rem;
  opacity: .75;
}
.resource-card .resource-format,
.resource-card .resource-topic {
  color: #666;
  font-size: .75rem;
  font-style: italic;
}
.resource-card .resource-date {
  margin-right: 2rem;
  margin-left: 1rem;
  color: #666;
  font-size: .75rem;
  font-style: italic;  
}
.course-card:hover,
.course-card:focus,
.resource-card:hover,
.resource-card:focus {
  transform: translateY(-4px);
}

/*========================================
  Apparel Card Styles
  Product-focused card design for merchandise
========================================*/
.apparel-card {
  position: relative;
  width: 700px;
  height: auto;
  min-height: 420px;
  background: var(--card-gradient);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  box-shadow: var(--box-shadow-header);
  overflow: hidden;
  transition: all 0.4s ease;
  animation: headerShift 20s ease-in-out infinite;
  background-size: 400% 100%;
  background-position: 50% 0%;
}

.apparel-card:hover {
  transform: translateY(-8px);
  box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.6),
              4px 12px 16px rgba(20, 25, 30, 0.35),
              0 0 20px rgba(158, 240, 249, 0.15),
              inset 0 2px 4px rgba(255, 255, 255, 0.15),
              inset 0 -2px 6px rgba(0,0,0,0.5);
}

.apparel-link {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
}

.apparel-card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Badge */
.apparel-badge-container {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
}

.apparel-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: linear-gradient(135deg, 
                hsla(175, 85%, 45%, 0.95), 
                hsla(175, 75%, 55%, 0.95));
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Image Carousel */
.apparel-image-carousel {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(180deg, 
                rgba(20, 20, 25, 0.4), 
                rgba(10, 10, 15, 0.6));
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apparel-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  filter: brightness(0.85);
}

.apparel-image.active {
  opacity: 1;
  filter: brightness(1);
}

.apparel-card:hover .apparel-image.active {
  filter: brightness(1.1);
}

/* Carousel Controls */
.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.apparel-card:hover .carousel-controls {
  opacity: 1;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-subdued-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
}

.carousel-btn:hover {
  background: rgba(158, 240, 249, 0.2);
  border-color: var(--color-active);
  color: var(--color-active);
  transform: scale(1.1);
}

/* Carousel Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: var(--color-active);
  width: 24px;
  border-radius: 4px;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* Content Section */
.apparel-content {
  padding: 1.75rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.apparel-title {
  font-size: 1.5rem;
  color: var(--color-subdued-white);
  margin: 0;
  transition: color 0.3s ease;
  text-shadow: 0 1px 2px #000;
  font-weight: 600;
}

.apparel-card:hover .apparel-title {
  color: var(--color-active);
}

.apparel-description {
  font-size: 0.95rem;
  color: #aaa;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

/* Call to Action */
.apparel-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.apparel-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-active);
  text-shadow: 0 1px 2px #000;
}

.apparel-cta-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-subdued-white);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.apparel-card:hover .apparel-cta-text {
  color: var(--color-active);
  transform: translateX(4px);
}

.course-hash,
.resource-hash {
  display: block;      
  width: 100%;         
  height: 100%;         
  text-decoration: none; 
  color: inherit;       
}
.course-image {
  position: relative;
  top: -35px;
}
.resource-image {
  display: block;
  height: 136px;
  width: 100%;
  left: 0px;
  top: 0;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  position: absolute;
  filter: brightness(.75);
}
.homepage-main {
  background-color: #111;
  color: #eee;
  line-height: 1.6;
}
/*
//      Hero
*/
.homepage-main .hero,
.about-hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  filter: brightness(.5);
  /* Background image loaded via lazy-load utility */
  background-size: cover;
  background-repeat: no-repeat;
  isolation: isolate;
  overflow: hidden;
}
/* Fallback for non-lazy loaded background */
.homepage-main .hero:not(.lazy-load) {
  background-image: url(../images/procedural-clouds-background.webp);
}
/*
//      Drifting Noise Gradient
*/
.homepage-main .hero::before,
.about-hero::before {
 content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(60% 48% at 30% 45%, 
        rgba(255,160,80,0.24), 
        rgba(255,160,80,0.08) 40%, 
        transparent 60%),
    linear-gradient(120deg, 
        rgba(40,140,150,0.48), 
        rgba(255,160,80,0.24) 45%, 
        rgba(8,8,10,0.12));
  background-blend-mode: screen;
  mix-blend-mode: overlay;
  background-size: 200% 200%, 250% 250%;
  background-position: 10% 40%, 0% 50%;
  filter: blur(4px) saturate(1.03);
  will-change: background-position;
  animation: gradient-drift 30s linear infinite;
}
@keyframes gradient-drift {
  0%   { background-position: 0% 45%,   0% 50%; }
  12%  { background-position: 20% 50%,  30% 55%; }
  25%  { background-position: 40% 52%,  60% 50%; }
  37%  { background-position: 60% 48%,  30% 46%; }
  50%  { background-position: 80% 45%,  0% 50%; }
  62%  { background-position: 60% 48%,  30% 46%; }
  75%  { background-position: 40% 52%,  60% 50%; }
  87%  { background-position: 20% 50%,  30% 55%; }
  100% { background-position: 0% 45%,   0% 50%; }
}
/* 
//      Drifting Fog Layer 
*/
.homepage-main .hero::after,
.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url(../images/procedural-clouds-background.webp);
  background-size: 500% 500%;
  background-position: cover;
  z-index: 50;
  opacity: .65;
  animation: gradient-drift 30s linear infinite, 
             fogFade 10s ease-in-out forwards;
}
@keyframes fogFade {
  0% { opacity: 0.55; }
  10% { opacity: 0.6; }
  15% { opacity: 0.55; }
  40% { opacity: 0.35; }
  50% { opacity: 0.3; }  
  65% { opacity: 0.25; }
  100% { opacity: 0.05; }
}
.homepage-main .hero .hero-logo-wrapper {
  position: absolute;
  inset: 0;
  animation: drift 18s ease-in-out infinite;
}
@keyframes drift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(8px, -6px); }
  40%  { transform: translate(-12px, 4px); }
  60%  { transform: translate(10px, 10px); }
  80%  { transform: translate(-6px, -8px); }
  100% { transform: translate(0, 0); }
}
.skull-image {
  position: absolute;
  display: block;
  left: 50%;
  top: 75%;
  transform: translate(-50%, -50%) scale(.5);
  content: url(../images/logo-skull-test-1.webp);
  z-index: 10;
  filter: brightness(.8);
}
@keyframes heroSpartanDrop {
  0% {
    top: -20%;
    transform: translate(-50%, -50%) scale(.5);
  }
  100% {
    top: 50%;
    transform: translate(-50%, -50%) scale(.5);
  }
}
.homepage-main .hero .hero-logo-wrapper .slice {
  position: absolute;
  display: block;
  left: 50%;
  top: 75%;
  transform: translate(-50%, -50%) scale(.5);
  content: url(../images/spartan-helmet-test-1.webp);
  z-index: 20;
}
#helmet-back {
  position: absolute;
  display: block;
  left: 50%;
  top: 75%;
  transform: translate(-50%, -50%) scale(.5);
  content: url(../images/spartan-helmet-test-1-back.webp);
  z-index: 5;
  animation: 4s heroSpartanDrop ease-in-out; 
}
/* 
//      Glitch Transition Animation 
*/
.slice1  {clip-path: inset(0 0 89% 0);  
  animation: heroSpartanDrop 4s ease-in-out, glitchSlice1 0.5s steps(2) forwards 4.5s;
}
.slice2  {clip-path: inset(9% 0 79% 0); 
  animation: heroSpartanDrop 4s ease-in-out, glitchSlice2 0.5s steps(2) forwards 4.55s;
}
.slice3  {clip-path: inset(19% 0 69% 0); 
  animation: heroSpartanDrop 4s ease-in-out, glitchSlice3 0.5s steps(2) forwards 4.53s;
}
.slice4  {clip-path: inset(29% 0 59% 0); 
  animation: heroSpartanDrop 4s ease-in-out, glitchSlice4 0.5s steps(2) forwards 4.52s;
}
.slice5  {clip-path: inset(39% 0 49% 0); 
  animation: heroSpartanDrop 4s ease-in-out, glitchSlice5 0.5s steps(2) forwards 4.58s;
}
.slice6  {clip-path: inset(49% 0 39% 0); 
  animation: heroSpartanDrop 4s ease-in-out, glitchSlice1 0.5s steps(2) forwards 4.53s;
}
.slice7  {clip-path: inset(59% 0 29% 0); 
  animation: heroSpartanDrop 4s ease-in-out, glitchSlice2 0.5s steps(2) forwards 4.55s;
}
.slice8  {clip-path: inset(69% 0 19% 0); 
  animation: heroSpartanDrop 4s ease-in-out, glitchSlice3 0.5s steps(2) forwards 4.58s;
}
.slice9  {clip-path: inset(79% 0 9% 0); 
  animation: heroSpartanDrop 4s ease-in-out, glitchSlice4 0.5s steps(2) forwards 4.52s;
}
.slice10 {clip-path: inset(89% 0 0 0);  
  animation: heroSpartanDrop 4s ease-in-out, glitchSlice5 0.5s steps(2) forwards 4.5s;
}
@keyframes glitchSlice1 { 0%,100%{transform:translate(-50%, -50%) scale(.5) translateX(0);} 
                          20%{transform:translate(-50%, -50%) scale(.5) translateX(120px);} 
                          40%{transform:translate(-50%, -50%) scale(.5) translateX(-80px);} 
                          60%{transform:translate(-50%, -50%) scale(.5) translateX(40px);} 
                          80%{transform:translate(-50%, -50%) scale(.5) translateX(-64px);}
}
@keyframes glitchSlice2 { 0%,100%{transform:translate(-50%, -50%) scale(.5) translateX(0);} 
                          25%{transform:translate(-50%, -50%) scale(.5) translateX(-96px);} 
                          50%{transform:translate(-50%, -50%) scale(.5) translateX(80px);} 
                          75%{transform:translate(-50%, -50%) scale(.5) translateX(-48px);}
}
@keyframes glitchSlice3 { 0%,100%{transform:translate(-50%, -50%) scale(.5) translateX(0);} 
                          20%{transform:translate(-50%, -50%) scale(.5) translateX(80px);} 
                          40%{transform:translate(-50%, -50%) scale(.5) translateX(-120px);} 
                          60%{transform:translate(-50%, -50%) scale(.5) translateX(40px);} 
                          80%{transform:translate(-50%, -50%) scale(.5) translateX(-64px);}
}
@keyframes glitchSlice4 { 0%,100%{transform:translate(-50%, -50%) scale(.5) translateX(0);} 
                          30%{transform:translate(-50%, -50%) scale(.5) translateX(-80px);} 
                          60%{transform:translate(-50%, -50%) scale(.5) translateX(96px);} 
                          90%{transform:translate(-50%, -50%) scale(.5) translateX(-40px);}
}
@keyframes glitchSlice5 { 0%,100%{transform:translate(-50%, -50%) scale(.5) translateX(0);} 
                          25%{transform:translate(-50%, -50%) scale(.5) translateX(120px);} 
                          50%{transform:translate(-50%, -50%) scale(.5) translateX(-64px);} 
                          75%{transform:translate(-50%, -50%) scale(.5) translateX(80px);}
}
.homepage-main .hero-overlay,
.resource-card,
.actions a,
.action-buttons,
.quick-info .card,
.info-box,
.related-courses .related-card,
.tab-item button,
.about-main .about-hero #hero-overlay  {
  background: var(--dark-blue-gradient);   
  backdrop-filter: 4px;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--box-shadow-header);
  background-size: 400% 100%;
  background-position: 50% 0%;
  animation: headerShift 16s ease-in-out infinite;
  z-index: 100;
  color: var(--color-active);
  width: 100%;
  max-width: 700px;
  height: auto;
  box-sizing: border-box;
}
.homepage-main .hero-overlay {
  position: relative;
  top: -5%;
  width: 100%;
  max-width: 650px;
  min-width: 0;
  height: fit-content;
  padding: 1.25rem;
  background: var(--card-gradient);       
  box-sizing: border-box;
}
@media (max-width: 820px) {
  .homepage-main .hero-overlay {
    max-width: 98vw;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .homepage-main .hero-overlay {
    max-width: 99vw;
    padding: 0.75rem 0.5rem;
    font-size: 0.98rem;
  }
  .homepage-main .hero-overlay h1 {
    font-size: 1.3rem !important;
    flex-direction: column;
    gap: 0.2rem;
    word-break: break-word;
  }
  .homepage-main .hero-overlay p {
    font-size: 1rem !important;
    margin-bottom: 1rem;
  }
  .homepage-main .hero-buttons {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    align-items: stretch;
  }
  .homepage-main .btn {
    width: 100%;
    min-width: 0;
    font-size: 1rem;
    padding: 0.7rem 0.5rem;
  }
}
.course-card {
  height: 260px;
  background: var(--card-gradient);
  width: 700px;
  backdrop-filter: blur(4px);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--box-shadow-header);
  background-size: 400% 100%;
  background-position: 50% 0%;
  animation: headerShift 16s ease-in-out infinite;
  transition: all 0.3s ease;
  position: relative;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.6),
              4px 12px 16px rgba(20, 25, 30, 0.35),
              0 0 15px rgba(158, 240, 249, 0.1),
              inset 0 2px 4px rgba(255, 255, 255, 0.15),
              inset 0 -2px 6px rgba(0,0,0,0.5);
}

.course-card .course-card-content {
  display: flex;
  gap: 1.5rem;
  height: 100%;
}

.course-card .course-image-container {
  position: relative;
  overflow: hidden;
  width: 300px;
  min-width: 300px;
  height: 175px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.course-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  filter: brightness(0.85);
}

.course-card:hover .course-image {
  transform: scale(1.05);
  filter: brightness(1);
}

.course-card .course-description-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.course-card .course-title {
  font-size: 1.35rem;
  color: var(--color-subdued-white);
  margin: 0;
  transition: color 0.3s ease;
  text-shadow: 0 1px 2px #000;
  font-weight: 600;
  line-height: 1.3;
}

.course-card:hover .course-title {
  color: var(--color-active);
}

.course-card .course-description {
  font-size: 0.95rem;
  color: #aaa;
  line-height: 1.6;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
}
.homepage-main .hero h1 {
  font-family: "Portmanteau", serif;  
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  display: inline-block;
  background-size: 300% 100%;
  color: hsl(175, 50%, 50%);
  text-shadow: 1px 1px 0px #000,
               1px 2px 3px hsla(150, 70%, 30%, 0.75);
}
.homepage-main .hero h1 span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease-in-out forwards;
  margin-left: .5rem;
  margin-right: .5rem;
  transition: all ease-in-out;
}
.homepage-main .hero h1 span:nth-child(1) { 
  animation-delay: 0.5s; 
}
.homepage-main .hero h1 span:nth-child(2) { 
  animation-delay: 1.25s; 
}
.homepage-main .hero h1 span:nth-child(3) { 
  animation-delay: 2s; 
}
@keyframes fadeUp {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
.homepage-main .hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--color-subdued-white);
  font-style: italic;
}
.homepage-main .hero p::after,
.about-main .overlay p::after {
  content: "|";
  margin-left: .25rem;
  font-weight: bold;  
  color: var(--color-subdued-white);
  animation: heroTyping 1s ease-in-out infinite;
}
@keyframes heroTyping {
  0%, 100% {opacity: 0;}
  50% {opacity: 1;}
}
.homepage-main .hero-buttons .btn {
  margin: 0 0.5rem;
}
.homepage-main .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}
.homepage-main  .btn-primary {
  background: var(--action-button-gradient);
  color: var(--color-subdued-white);
  box-shadow: var(--box-shadow-header);
  border: var(--border-1px);
  transition: all .3s ease;
}
.homepage-main  .btn-primary:hover {
  filter: brightness(1.5);
  color: var(--color-active);
  transform: translateY(-4px);
}
.homepage-main  .btn-secondary {
  background: transparent;
  color: #666;
  font-style: italic;
  border: 1px groove transparent;
  transition: all .3s ease;
}
.homepage-main #hero-secondary-btn,
.homepage-main #cta-secondary-btn {
  box-shadow: none;
}
.homepage-main .btn-secondary:hover {
  color: var(--color-active);
  border: 1px groove transparent;
  box-shadow: none;
  transform: translateY(-4px);
}
.homepage-main section {
  padding: 4rem 2rem;
  text-align: center;
}
.homepage-main #value-props {
  position: relative;
  box-shadow: var(--box-shadow-header);
  border-top: none;
}
.homepage-main h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.homepage-main .props-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}
.homepage-main .prop svg {
  position: relative;
  margin-bottom: -8rem;
  z-index: 1;
  opacity: 0;
  transition: all .3s ease;
}
.homepage-main .prop.active svg {
  position: relative;
  margin-bottom: -8rem;
  z-index: 1;
  opacity: 1;
}
.homepage-main .prop:hover svg {
  opacity: .5;
}
.homepage-main .prop h3 {
  font-size: 1.3rem;
  font-family: "Portmanteau", serif;  
  margin-bottom: 0.5rem;
  color: var(--color-subdued-white);
  z-index: 900;
  position: relative;
  top: -80px;
  transition: all .3s ease;
}
.homepage-main .prop.active h3,
.homepage-main .prop:hover h3 {
  color: var(--color-active);
  top: -80px;
  text-shadow: 1px 1px 1px #000;
  z-index: 900;
}
.homepage-main .prop p {
  position: relative;
  top: -80px;
  transition: all .3s ease;
}
.homepage-main .prop.active p,
.homepage-main .prop:hover p {
  color: var(--color-subdued-white);
  top: -100px;
  padding-top: 1rem;
  position: relative;
  z-index: 900;
}
.homepage-main .highlight-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.25rem;
  align-items: start;
  margin-top: 0.5rem;
}
@media (max-width: 1024px) {
    .homepage-main .highlight-grid {
      grid-template-columns: 1fr;   /* one column */
      grid-template-rows: auto;
    }
}
.highlights {
  position: relative;
  display: block;
  width: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.22));
  border: 1px solid rgba(255,255,255,0.03);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: .5rem;
}
.highlights ul {
  padding-left: 3rem;
}
.highlights li {
  padding: .5rem;
  font-size: 1.25rem;
  color:#ccc;
}
.highlights p { color: #d7d7d7; margin: 0.5rem 0; }
.homepage-main .highlight-grid img {
  max-width: 100%;
  display: block;
  margin: 0 0 0.5rem 0;
}
/*
// Example Badge 
*/
.badge {
  background: #333;
  padding: 2px;
  border-radius: 6px;
  text-align: center;
  box-shadow: var(--box-shadow-header);
  border: var(--border-1px);
  position: relative;
  overflow: visible;
  width: 125px;
  height: 75px;
}
.badge .title {
  font-weight: bold;
  display: block;
  position: absolute;
  bottom: 8px;
  color: var(--color-subdued-white);
  font-style: italic;
}
.decay-bar {
  background: var(--color-subdued-white);
  border-radius: 4px;
  height: 8px;
  position: relative;
  overflow: hidden;
  bottom: -60px;
  left: 0;
}
.remaining {
  background: var(--green-gradient);
  height: 100%;
  width: 100%;
  border-radius: 3px;
  position: relative;
  background-size: 200% 200%;
  animation: remainingTimeBar 1.5s forwards 0.3s, 
             remainingTimeSweep 8s linear infinite;
}
.short {
  background: var(--red-gradient);
  border-radius: 3px;
}
.expiry {
  font-size: 0.85rem;
  display: block;
  opacity: 0;
  position: absolute;
  bottom: -70px;
  left: 0px;
  transition: all .3s ease-in-out;
}
@keyframes remainingTimeBar {
  to { width: var(--remaining-time);}
  }
@keyframes remainingTimeSweep {
 0%   { background-position: -200% 0; }
 100% { background-position: 200% 0; }
}
.badge:hover .expiry {
  opacity: .75;
  bottom: -70px;
  transform: translateX(24px);
}
.expiring {
  animation: badgeFlash 6s ease-in-out infinite;
}
@keyframes badgeFlash {
    0%, 30%, 100% {
    box-shadow: var(--box-shadow-header);
  }
    15% {
    box-shadow: 0 0 16px hsl(0, 100%, 50%, .5),
              0 0 24px hsl(0, 100%, 50%, .25),
              inset 0 0 16px hsl(0,100%, 50%, .75),
              inset 0 0 24px hsl(0, 100%, 50%, .5),
              inset 0 0 48px hsl(0, 100%, 50%, .25);
    border: 2px groove red;
  }
}
.badge-icons {
  position: absolute;
  top: 10%;
  left: 0;
  opacity: .6;
  transition: transform .3s ease-in-out,
              opacity .1s ease-in-out;
}
.badge:hover .badge-icons {
  opacity: .8;
  bottom: -70px;
  transform: scale(1.1);
}
.homepage-main  .roadmap {
  display: flex;
  font-size: 1.1rem;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1rem;
}
.homepage-main .roadmap ul {
  padding-left: 3rem;
}
.homepage-main .roadmap li {
  padding: .75rem;
  font-size: 1.1rem;
  color:#ccc;
}
.fade-slide {
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 1.2s ease-out, 
              transform 1.2s ease-out;
}
.fade-slide.visible {
  opacity: 1;
  transform: translateX(0);
}
.homepage-main .roadmap li strong {
  font-size:1.25rem;
  text-shadow: 1px 2px 1px #000;
  color: var(--color-active);
}
.homepage-main .stage {
  background: var(--action-button-gradient);
  border: var(--border-1px);
  padding: 1.5rem;
  box-shadow: var(--box-shadow-header);
  border-radius: 8px;
  width: 250px;
  color: var(--color-subdued-white);
  transition: all .2s ease;
}
.homepage-main .stage:hover {
  color: var(--color-active);
  filter: brightness(1.5);
  transform: translateY(-4px);
}
.homepage-main #advisor-list ul {
  padding: 1rem 3rem;

}
.homepage-main #advisor-list li {
  padding: .5rem;
  margin-left: 3rem;
  font-size: 1.25rem;
  color:#ccc;
}
.homepage-main #access p {
  color: #d7d7d7; 
  margin: 0.5rem;
  font-size: 1.1rem;
}
.homepage-main .small-note {
  font-size: 1rem;
  font-style: italic;
  color: #666;
  text-align: center;
}
.homepage-main .prop-details h4 {
  font-family: "Portmanteau", serif;  
  font-size: 1.25rem;
  text-shadow: 1px 2px 1px #000;
  text-align: center;
  margin-bottom: 1.5rem;
}
.homepage-main .footer-cta {
  background: #000;
  text-align: center;
  padding: 3rem 2rem;
}
.homepage-main .footer-cta h2 {
  margin-bottom: 1.5rem;
}
.homepage-main .tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0;
}
.homepage-main .tab-btn {
  background: #222;
  border: var(--border-1px);
  color: var(--color-subdued-white);
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}
.homepage-main .tab-btn:hover {
  background: #333;
  color: #eee;
}
.homepage-main .tab-btn.active {
  background: linear-gradient(5deg,
              #111,
              #222,
              #333);
  color: #fff;
  border-color: #555;
  box-shadow: var(--box-shadow-header);
}
.homepage-main .tab-content {
  display: none;
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--box-shadow-header);
  animation: fadeIn 0.3s ease;
}
.homepage-main .tab-content.active {
  display: block;
}
.homepage-main .prop-details {
  display: none;
  margin-top: 0;
  padding: 1.5rem 2.5rem;
  background: var(--card-gradient);
  border: var(--border-1px);
  border-radius: 8px;
  text-align: left;
  box-shadow: var(--box-shadow-header);
  animation: fadeIn 0.3s ease;
  max-width: 98vw;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 820px) {
  .homepage-main .prop-details {
    padding: 1.25rem 1rem;
    max-width: 98vw;
  }
}

@media (max-width: 480px) {
  .homepage-main .prop-details {
    padding: 0.75rem 0.5rem;
    font-size: 0.98rem;
    max-width: 99vw;
  }
  .homepage-main .prop-details p,
  .homepage-main .prop-details li {
    font-size: 1rem;
    line-height: 1.6;
  }
}
.homepage-main .prop-details.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.homepage-main .prop {
  cursor: pointer;
  transition: transform 0.2s ease;
}
.homepage-main .prop:hover {
  transform: translateY(-4px);
}
/* Outcomes strip under hero */
.outcomes-strip {
  max-width: 1200px;
  margin: 1.25rem auto 0;
  padding: 0.5rem 1rem;
  background: linear-gradient(35deg, #15151533, #00000033);
  border: var(--border-1px);
  border-radius: 8px;
}
.outcomes-inner {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}
.outcome {
  flex: 1 1 0;
  padding: 0.25rem 0.75rem;
}
.outcome strong { display:block; color: var(--color-active); font-size: 1rem; }
.outcome span { color: #d7d7d7; font-size: 0.92rem; }

/* Situational awareness micro-demo (scoped under .demo-embed) */
.demo-embed .demo-course { max-width: 1100px; margin: 1.5rem auto; padding: 1rem; }
.demo-embed .demo-course h4 { margin: 0 0 0.25rem 0; color: var(--color-active); }
.demo-embed .demo-desc { color: #d3d3d3; margin-bottom: 0.5rem; }
.demo-embed .demo-stage { display: grid; grid-template-columns: 320px 1fr; gap: 1rem; align-items: start; }
.demo-embed .demo-image { background: linear-gradient(180deg, #222, #111); color: #777; height: 180px; display:flex; align-items:center; justify-content:center; border-radius:6px; border: var(--border-1px); }
.demo-embed .demo-controls { display:flex; align-items:center; gap:0.5rem; }
.demo-embed .demo-questions { margin-top: 0.5rem; }
.demo-embed .demo-questions .question { margin-bottom: 0.75rem; }
.demo-embed .demo-questions label { display:block; margin: 0.25rem 0; color: #d7d7d7; }
.demo-embed .demo-result { margin-top: 0.75rem; color: var(--color-subdued-white); }
.demo-embed .demo-result-summary { display:flex; flex-direction:column; gap:6px; }
.demo-embed .demo-result-summary.success { color: #b7f6e9; }
.demo-embed .demo-result-summary.fail { color: #f6b7b7; }
.demo-embed .demo-result-message { font-size: 0.95rem; opacity: 0.95; margin-top: 0.25rem; }
.demo-embed .mini-badge { display:flex; gap:0.75rem; align-items:center; margin-top:0.75rem; padding:0.6rem; border-radius:8px; background: linear-gradient(90deg, rgba(158,240,249,0.03), rgba(0,0,0,0.15)); border: 1px solid rgba(158,240,249,0.04); }
.demo-embed .mini-badge-icon { font-size:1.6rem; }
.demo-embed .mini-badge-title { font-weight:700; color: var(--color-active); }
.demo-embed .mini-badge-meta { font-size:0.9rem; color:#d7d7d7; margin-top:2px; }
.demo-embed .mini-badge-actions { margin-top:6px; display:flex; gap:0.5rem; }
.demo-embed .demo-failure-tip { margin-top:0.6rem; color:#d7d7d7; font-size:0.95rem; }

/* Level tree styles */
.demo-embed .demo-tree { margin-top: 1rem; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.12)); padding: 0.75rem; border-radius:8px; border: var(--border-1px); }
.demo-embed .demo-tree-title { color: var(--color-active); margin: 0 0 0.5rem 0; font-size: 1rem; }
.demo-embed .demo-levels { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.demo-embed .demo-level-node { background: #121212; color: var(--color-subdued-white); border: 1px solid rgba(255,255,255,0.03); padding: 0.5rem 0.75rem; border-radius: 8px; cursor: pointer; display:flex; gap:0.5rem; align-items:center; min-width: 140px; }
.demo-embed .demo-level-node .lvl-num { background: rgba(255,255,255,0.03); padding: 0.4rem 0.5rem; border-radius:6px; font-weight:700; color: var(--color-subdued-white); }
.demo-embed .demo-level-node .lvl-meta { text-align: left; font-size: 0.9rem; }
.demo-embed .demo-level-node .lvl-pass { font-size: 0.78rem; color: #d0d0d0; margin-top: 3px; }
.demo-embed .demo-level-node.active { outline: 2px solid var(--color-active); transform: translateY(-4px); }
.demo-embed .demo-level-node.passed { background: linear-gradient(90deg, rgba(75,180,150,0.06), rgba(0,0,0,0.12)); border-color: rgba(75,180,150,0.2); box-shadow: 0 6px 18px rgba(40,120,90,0.06); }
.demo-embed .demo-level-node.failed { background: linear-gradient(90deg, rgba(240,120,120,0.03), rgba(0,0,0,0.12)); border-color: rgba(240,120,120,0.12); }
.demo-embed .demo-questions-timer { font-size: 0.95rem; color: #ddd; margin-bottom: 0.5rem; }
.demo-embed .demo-complete { margin-top: 0.5rem; color: var(--color-active); font-weight: 700; }
.demo-embed .demo-image img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius:6px; }

@media (max-width: 820px) {
  .demo-embed .demo-stage { grid-template-columns: 1fr; }
  .outcomes-inner { flex-direction: column; gap: 0.5rem; align-items: stretch; }
}
/*
//     Contact Card
*/
.contact-card button {
  display: block;
  width: 40%;
  margin: 6px 0;
  padding: 3px 4px;
  background: linear-gradient(#273533f2, 
                              #47607cdc);
  backdrop-filter: blur 4px;
  color: var(--lifeline-float-button-text);
  border: var(--lifeline-float-button-border);
  border-radius: 8px;
  text-align: center;
  font-size: 1rem;
  font-family: 'Playfair Display', serif;
  cursor: pointer;
  text-decoration: none;
  left: 65%;
  position: relative;
}
.contact-card button:hover {
  background: var(--lifeline-global-secondary);
  display: block;
  width: 40%;
  margin: 6px 0;
  padding: 3px 4px;
  color: var(--lifeline-float-button-text);
  border: var(--lifeline-float-button-border);
  border-radius: 8px;
  text-align: center;
  font-size: 1rem;
  font-family: 'Playfair Display', serif;
  cursor: pointer;
  text-decoration: none;
}
.contact-card textarea {
  border: 2px groove #9e9e9e;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: bold;
  color: #222;
  font-family: 'Playfair Display', serif;
  font-size: .85rem;
  margin-top: 4px;
  width: 100%;
  height: 5rem;
}
/* 
//      Info Boxes 
*/
.about-main .info-boxes {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    margin-top: 1rem;
}
.about-main .info-box {
    flex: 1 1 400px;
    padding: 1.5rem;
    color: var(--color-subdued-white);
    display: block;  
    position: relative;
    height: fit-content;
}
/* ========================================
   About - FAQ (accordion)
   ======================================== */
.about-faq {
  max-width: 1100px;
  margin: 2.5rem auto;
  padding: 1.5rem;
  text-align: left;
  color: var(--color-subdued-white);
}
.about-faq h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--color-subdued-white);
}
.about-faq .faq-intro {
  margin-bottom: 1rem;
  color: #cfcfcf;
  font-size: 0.98rem;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}
.faq-item {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.25));
  border: 1px solid rgba(255,255,255,0.03);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  box-shadow: var(--box-shadow-header);
  align-self: start;
  transition: transform 0.18s ease, background 0.2s ease;
}
.faq-item[open] {
  background: linear-gradient(180deg, rgba(158,240,249,0.02), rgba(0,0,0,0.25));
  transform: translateY(-3px);
}
.faq-question {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding: 0.5rem 0.25rem;
  color: var(--color-subdued-white);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
/* hide default marker and use a custom caret */
summary::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '\25BE'; /* small downward caret */
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--color-subdued-white);
  transform-origin: center;
  transition: transform 0.18s ease;
  opacity: 0.9;
}
.faq-item[open] .faq-question::after {
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0.5rem 0.25rem 0.75rem 0.25rem;
  color: #d7d7d7;
  font-size: 0.95rem;
}
.faq-answer p { margin: 0 0 0.5rem 0; }

/*========================================
  Responsive Styles - Catalog Cards
========================================*/

/* Tablet and smaller */
@media (max-width: 1024px) {
  .course-card,
  .apparel-card {
    width: 100%;
    max-width: 600px;
  }
  
  .course-card {
    height: auto;
    min-height: 240px;
  }
  
  .course-card .course-card-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .course-card .course-image-container {
    width: 100%;
    height: 200px;
  }
  
  .apparel-card {
    min-height: 380px;
  }
  
  .apparel-image-carousel {
    height: 240px;
  }
}

/* Mobile landscape and smaller */
@media (max-width: 768px) {
  .catalog-grid {
    padding: 0 1rem;
  }
  
  .course-card,
  .apparel-card {
    max-width: 100%;
    padding: 1.5rem;
  }
  
  .course-card .course-title,
  .apparel-title {
    font-size: 1.2rem;
  }
  
  .course-card .course-description,
  .apparel-description {
    font-size: 0.9rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
  
  .apparel-content {
    padding: 1.5rem;
  }
  
  .apparel-badge-container {
    top: 1rem;
    right: 1rem;
  }
  
  .carousel-btn {
    width: 32px;
    height: 32px;
  }
  
  .carousel-btn svg {
    width: 18px;
    height: 18px;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  .course-card,
  .apparel-card {
    padding: 1.25rem;
  }
  
  .course-card {
    min-height: 320px;
  }
  
  .course-card .course-image-container {
    height: 160px;
  }
  
  .course-card .course-title,
  .apparel-title {
    font-size: 1.1rem;
  }
  
  .course-card .course-description,
  .apparel-description {
    font-size: 0.85rem;
  }
  
  .apparel-card {
    min-height: 360px;
  }
  
  .apparel-image-carousel {
    height: 200px;
  }
  
  .apparel-content {
    padding: 1.25rem;
    gap: 0.5rem;
  }
  
  .apparel-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .apparel-price {
    font-size: 1.1rem;
  }
  
  .apparel-cta-text {
    font-size: 0.95rem;
  }
  
  .carousel-controls {
    padding: 0 0.5rem;
  }
  
  .carousel-btn {
    width: 28px;
    height: 28px;
  }
  
  .carousel-btn svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 768px) {
  .about-faq { padding: 1rem; }
  .faq-grid { grid-template-columns: 1fr; }
}
#instructor-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}
#instructor-img-wrapper {
    position: relative;
    flex: 0 0 auto;
    margin-right: 75px;
}
#instructor-info-wrapper {
    position: relative;
    flex: 1;
    display: block;
}
#instructor-img {
    padding: 0 8px;
    float: left;
    position: relative;
    display: block;
    max-width: 300px;
    height: auto;
}
.about-main .caption-box {
    background: linear-gradient(30deg,    
                hsla(0, 0%, 0%, .97),    
                hsla(225, 15%, 12%, .99),    
                hsla(200, 5%, 15%, .97));
    color: var(--color-subdued-white);
    font-style: italic;
    font-size: .85rem;
    padding: 4px 16px;
    text-align: center;
    border-radius: 6px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: -16px;
    width: 280px;
}
.trust { padding: 4rem 2rem; text-align: center; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
 .trust-item {
  background: #222;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--box-shadow-header);
}
.trust-item h3 { margin-bottom: 0.5rem; color: var(--color-subdued-white); }
/*
//      Footer
*/ 
#mws-footer-container { 
    bottom:  0; 
    left: 0;
    position: static;
    width: 100vw;
}
.site-footer {
  background: linear-gradient(30deg,    
             hsla(0, 0%, 0%, 0.85),    
             hsla(225, 30%, 4%, 0.85),    
             hsla(0, 4%, 50%, 0.85));  
  backdrop-filter: blur(50px); 
  color: #eee;
  padding: 2rem 1.5rem 0.5rem;
  box-shadow: var(--box-shadow-header);
  background-size: 400% 100%;
  background-position: 50% 0%;
  animation: headerShift 12s ease-in-out infinite;
  transition: all 0.4s ease;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 1.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-logo {
  width: 75px;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--color-subdued-white);
  max-width: 12rem;
  line-height: 1.4;
}

.footer-nav h4,
.footer-contact h4,
.footer-social h4 {
  margin-bottom: .75rem;
  margin-top: 0.5rem;
  font-size: 1.25rem;
  color: #fff;
  text-align: center;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .9rem;
  text-align: center;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a,
.footer-contact a {
  color: var(--color-subdued-white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--color-active);
}

.footer-contact {
  text-align: center;
}

.footer-cta-btn {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: var(--dark-blue-gradient);
  border: 1px solid #333;
  border-radius: 8px;
  color: var(--color-active);
  font-weight: 600;
  text-decoration: none;
  text-shadow: 1px 1px 1px #111;
  box-shadow: var(--box-shadow-header);
  transition: all 0.3s ease;
}

.footer-cta-btn:hover {
  filter: brightness(1.5);
  transform: translateY(-3px);
}

/*
//      Social Icons 
*/
.footer-social {
  text-align: center;
}

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

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  text-decoration: none;
  color: var(--color-subdued-white);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: rgba(158, 240, 249, 0.15);
  transform: translateY(-3px) scale(1.1);
}

.footer-social svg {
  width: 22px;
  height: 22px;
  filter: invert(90%);
  transition: all 0.3s ease;
}

.footer-social a:hover svg {
  filter: invert(100%);
}

/*
//      Sub Footer 
*/
.footer-bottom {
  margin-top: 1.5rem;
  padding: 1rem 0.5rem;
  border-top: var(--border-1px);
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-subdued-white);
}

.footer-links {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-links .separator {
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom a {
  color: var(--color-subdued-white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--color-active);
}

/* Mobile Footer Styles */
@media (max-width: 768px) {
  /* Hero logo responsive scaling for mobile - center on small screens */
  .skull-image {
    left: 50%;
    transform: translate(-50%, -50%) scale(.5);
  }
  
  .homepage-main .hero .hero-logo-wrapper .slice,
  #helmet-back {
    left: 50%;
    transform: translate(-50%, -50%) scale(.5);
  }
  
  .site-footer {
    padding: 1.5rem 1rem 0.5rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-brand {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .footer-logo {
    width: 65px;
  }
  
  .footer-tagline {
    font-size: 0.8rem;
  }
  
  .footer-nav h4,
  .footer-contact h4,
  .footer-social h4 {
    font-size: 1.1rem;
    margin-top: 0;
  }
  
  .footer-nav ul {
    font-size: 0.85rem;
  }
  
  .footer-cta-btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .social-icons {
    gap: 0.75rem;
  }
  
  .footer-social a {
    width: 36px;
    height: 36px;
  }
  
  .footer-social svg {
    width: 20px;
    height: 20px;
  }
  
  .footer-bottom {
    font-size: 0.75rem;
    padding: 0.75rem 0.5rem;
  }
  
  .footer-links {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .footer-container {
    gap: 1.25rem;
  }
  
  .footer-logo {
    width: 55px;
  }
  
  .footer-tagline {
    font-size: 0.75rem;
    max-width: 10rem;
  }
  
  .footer-nav h4,
  .footer-contact h4,
  .footer-social h4 {
    font-size: 1rem;
  }
  
  .footer-nav ul {
    font-size: 0.8rem;
  }
  
  .footer-cta-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  
  .social-icons {
    gap: 0.5rem;
  }
  
  .footer-social a {
    width: 32px;
    height: 32px;
  }
  
  .footer-social svg {
    width: 18px;
    height: 18px;
  }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Skip to main content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
}

/* Inline preview and retention tree specific styles (scoped under .demo-embed) */
.sa-embed .demo-inline-previewer { width: 100%; }
.demo-inline-previewer .course-container.demo-course { display: flex; gap: 16px; align-items: flex-start; color: var(--color-subdued-white); }
.demo-inline-previewer .sidebar { width: 320px; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.18)); border: var(--border-1px); padding: 12px; border-radius: 8px; }
.sa-inline-previewer .sidebar .sidebar-header h2 { color: var(--color-active); margin: 0 0 8px 0; font-size: 1.05rem; }
.sa-inline-previewer .lessons { margin-top: 8px; display:flex; flex-direction:column; gap:6px; }
.sa-inline-previewer .lesson-entry { display:flex; justify-content:space-between; gap:8px; padding:6px; border-radius:6px; align-items:center; border:1px solid rgba(255,255,255,0.03); background: rgba(0,0,0,0.18); }
.sa-inline-previewer .lesson-entry .lesson-title { font-size:0.95rem; color:#e6e6e6; }
.sa-inline-previewer .lesson-entry button { padding:6px 8px; border-radius:6px; cursor:pointer; }
/* Hover / active effects to match site theme */
.sa-inline-previewer .lesson-entry:hover {
  transform: translateY(-4px);
  background: linear-gradient(180deg, rgba(158,240,249,0.02), rgba(0,0,0,0.22));
  box-shadow: var(--box-shadow-header);
}
.sa-inline-previewer .lesson-entry:active { transform: translateY(-2px) scale(0.998); }
.sa-inline-previewer .lesson-entry .lesson-title { transition: color 0.2s ease; }
.sa-inline-previewer .lesson-entry:hover .lesson-title { color: var(--color-active); }
.sa-inline-previewer .lesson-entry button { transition: transform 0.15s ease, background 0.15s ease; }
.sa-inline-previewer .lesson-entry button:hover { transform: translateY(-2px); }

/* Active / selected lesson state */
.sa-inline-previewer .lesson-entry.active {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(20,20,20,0.28));
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  transform: translateY(-6px);
}
.sa-inline-previewer .lesson-entry.active .lesson-title { color: var(--mws-accent, #9ef0f9); font-weight:600; }

/* Buttons inside lesson entries: match primary/secondary micro variants */
.sa-inline-previewer .lesson-entry .btn { font-size:0.8rem; padding:6px 8px; border-radius:6px; }
.sa-inline-previewer .lesson-entry .btn.btn-primary { background: linear-gradient(180deg,var(--mws-primary,#0b7285),#06606f); color:#fff; border:0; }
.sa-inline-previewer .lesson-entry .btn.btn-secondary { background: transparent; border:1px solid rgba(255,255,255,0.06); color:var(--color-subdued-white,#e6e6e6); }

/* Retention modal and retention card layout */
.sa-retention-modal, .sa-retention-overlay { z-index: 10000; }
.sa-retention-card { font-family: inherit; color: #222; }
.sa-retention-card .sa-retention-body { padding: 8px 0 0 0; }
.sa-retention-card .retention-tree { gap: 20px; }
.sa-retention-card .retention-section { padding: 12px; border-radius: 6px; background: #fafafa; box-shadow: 0 2px 8px rgba(12,12,12,0.04); }
.sa-retention-card .retention-section .muted { color: #666; font-size:0.9rem; margin-top:4px; }
.sa-retention-card .ret-badge { transition: transform 0.12s ease, box-shadow 0.12s ease; }
.sa-retention-card .ret-badge:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }

/* Badges library grid */
.sa-retention-card .badge-card { background: #fff; }
.sa-retention-card .badge-card img { border-radius: 6px; background: #fff; }
.sa-retention-card h4 { margin: 0 0 8px 0; }

/* Responsive tweaks */
@media (max-width: 720px) {
  .sa-retention-card { padding: 12px; }
  .sa-retention-card .retention-tree { grid-template-columns: 1fr; }
}

/* Small utilities to match course micro-interactions */
.lesson-entry .lesson-meta { font-size:0.8rem; color: rgba(255,255,255,0.6); }
.demo-display .loading { color: var(--mws-accent, #9ef0f9); }

/* Lesson sidebar micro-layout */
.sa-inline-previewer .lesson-index { width:28px; height:28px; background: rgba(255,255,255,0.03); border-radius:6px; display:inline-flex; align-items:center; justify-content:center; color:#dfeff0; margin-right:10px; font-weight:600; }
.sa-inline-previewer .lesson-body { display:flex; flex-direction:column; min-width:0; }
.sa-inline-previewer .lesson-meta { color: rgba(255,255,255,0.6); font-size:0.85rem; }
.sa-inline-previewer .preview-detail { padding:12px; background: rgba(0,0,0,0.06); border-radius:6px; margin-top:12px; }
.exercise-box { padding:12px; background: linear-gradient(180deg,#0f1720,#0b1216); color:#fff; border-radius:8px; box-shadow: 0 8px 30px rgba(2,6,9,0.6); }

/* Retention tree connectors and visual hierarchy */
.sa-retention-card .retention-tree { display:grid; grid-template-columns: 1fr 360px; gap:24px; align-items:start; }
.sa-retention-card .retention-section { position:relative; }
.sa-retention-card .retention-section:before { content: ''; position:absolute; left: -16px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.03)); border-radius:2px; }
.sa-retention-card .retention-section .section-head { display:flex; align-items:center; gap:12px; }
.sa-retention-card .retention-section ul { margin:8px 0 0 18px; padding:0; }
.sa-retention-card .ret-badge { width:72px; }
.sa-retention-card .ret-badge img { width:48px; height:48px; border-radius:8px; }
.sa-retention-card .ret-badge .badge-title { font-size:12px; margin-top:6px; color:#333; }

/* Badge tile styles for library */
.sa-retention-card .badge-card { display:flex; align-items:center; gap:10px; padding:8px; border-radius:8px; background: linear-gradient(180deg,#fff,#fbfbfb); }
.sa-retention-card .badge-card img { width:40px; height:40px; border-radius:6px; }
.a11y-hidden { position:absolute !important; left:-9999px !important; top:auto !important; width:1px !important; height:1px !important; overflow:hidden !important; }

/* Make modal header visually distinct */
.sa-retention-card > div:first-child h3 { margin:0 0 8px 0; font-size:1.05rem; }
.sa-retention-card .btn { border-radius:6px; }

/* small screen tweaks */
@media (max-width: 900px) {
  .sa-retention-card .retention-tree { grid-template-columns: 1fr; }
  .sa-retention-card .retention-section:before { left: 8px; }
}
.sa-inline-previewer .content { flex:1; min-height: 220px; background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.12)); padding:12px; border-radius:8px; border: var(--border-1px); }
.sa-inline-previewer .video.hero { margin-bottom: 12px; }
.sa-inline-previewer .demo-display { background: rgba(10,10,10,0.4); padding: 12px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.03); }

/* Retention tree styling (branching look) */
.sa-retention-card .retention-tree { display: block; }
.sa-retention-card .retention-section { padding: 12px 10px; border-radius: 8px; margin-bottom: 10px; background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.08)); border: 1px solid rgba(255,255,255,0.03); }
.sa-retention-card .retention-section .muted { color: #bbb; font-size: 0.9rem; margin-top:6px; }
.sa-retention-card .ret-badge { display:flex; flex-direction:column; align-items:center; width:72px; gap:6px; }
.sa-retention-card .ret-badge img { width:48px; height:48px; object-fit:contain; border-radius:6px; }
/* Branch connectors */
.sa-retention-card .retention-tree .retention-section + .retention-section { margin-left: 16px; position: relative; }
.sa-retention-card .retention-tree .retention-section::before { content: ''; position: absolute; left: -12px; top: 18px; width: 12px; height: 2px; background: rgba(255,255,255,0.04); }
.sa-retention-card .retention-tree .retention-section::after { content: ''; position: absolute; left: -12px; top: 18px; height: 18px; width: 2px; background: rgba(255,255,255,0.03); }

/* compact badge library */
.sa-retention-card .badge-card { display:flex; gap:8px; align-items:center; padding:8px; border-radius:6px; background: rgba(0,0,0,0.2); }

/*========================================
Notification System Styles
========================================*/

/* Notification drawer list */
.notifications-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Individual notification item */
.notification {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  margin-bottom: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.1));
  border: var(--border-1px);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.notification:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(0,0,0,0.08));
  transform: translateX(2px);
}

/* Unread notification highlight */
.notification.unread {
  background: linear-gradient(180deg, rgba(158,240,249,0.08), rgba(0,0,0,0.1));
  border-left: 3px solid var(--color-active);
}

.notification.unread::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 16px;
  width: 8px;
  height: 8px;
  background: var(--color-active);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(158,240,249,0.6);
}

/* Notification icon */
.notification-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.5rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
}

/* Notification type colors */
.notification[data-type="success"] .notification-icon {
  background: linear-gradient(135deg, rgba(46,204,113,0.2), rgba(39,174,96,0.3));
  color: #2ecc71;
  border-color: rgba(46,204,113,0.3);
}

.notification[data-type="error"] .notification-icon {
  background: linear-gradient(135deg, rgba(231,76,60,0.2), rgba(192,57,43,0.3));
  color: #e74c3c;
  border-color: rgba(231,76,60,0.3);
}

.notification[data-type="warning"] .notification-icon {
  background: linear-gradient(135deg, rgba(241,196,15,0.2), rgba(243,156,18,0.3));
  color: #f1c40f;
  border-color: rgba(241,196,15,0.3);
}

.notification[data-type="info"] .notification-icon {
  background: linear-gradient(135deg, rgba(52,152,219,0.2), rgba(41,128,185,0.3));
  color: #3498db;
  border-color: rgba(52,152,219,0.3);
}

.notification[data-type="achievement"] .notification-icon,
.notification[data-type="badge"] .notification-icon {
  background: linear-gradient(135deg, rgba(241,196,15,0.2), rgba(230,126,34,0.3));
  color: #f39c12;
  border-color: rgba(241,196,15,0.3);
}

.notification[data-type="points"] .notification-icon {
  background: linear-gradient(135deg, rgba(155,89,182,0.2), rgba(142,68,173,0.3));
  color: #9b59b6;
  border-color: rgba(155,89,182,0.3);
}

.notification[data-type="streak"] .notification-icon {
  background: linear-gradient(135deg, rgba(230,126,34,0.2), rgba(211,84,0,0.3));
  color: #e67e22;
  border-color: rgba(230,126,34,0.3);
}

.notification[data-type="course"] .notification-icon {
  background: linear-gradient(135deg, rgba(26,188,156,0.2), rgba(22,160,133,0.3));
  color: #1abc9c;
  border-color: rgba(26,188,156,0.3);
}

.notification[data-type="challenge"] .notification-icon {
  background: linear-gradient(135deg, rgba(231,76,60,0.2), rgba(192,57,43,0.3));
  color: #e74c3c;
  border-color: rgba(231,76,60,0.3);
}

/* Notification content */
.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  gap: 8px;
}

.notification-title {
  font-weight: 600;
  color: var(--color-active);
  font-size: 0.95rem;
  margin: 0;
}

.notification-time {
  font-size: 0.75rem;
  color: #888;
  flex-shrink: 0;
}

.notification-message {
  color: var(--color-subdued-white);
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

.notification-action {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  background: rgba(158,240,249,0.1);
  color: var(--color-active);
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.85rem;
  border: 1px solid rgba(158,240,249,0.2);
  transition: all 0.2s ease;
}

.notification-action:hover {
  background: rgba(158,240,249,0.2);
  border-color: rgba(158,240,249,0.4);
}

/* Delete button */
.notification-delete {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(231,76,60,0.1);
  color: #e74c3c;
  border: 1px solid rgba(231,76,60,0.2);
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  transition: all 0.2s ease;
  opacity: 0.6;
}

.notification-delete:hover {
  background: rgba(231,76,60,0.2);
  border-color: rgba(231,76,60,0.4);
  opacity: 1;
  transform: scale(1.1);
}

/* Mark all as read button */
.notification-mark-all-read {
  width: calc(100% - 24px);
  margin: 12px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(158,240,249,0.08), rgba(158,240,249,0.12));
  color: var(--color-active);
  border: 1px solid rgba(158,240,249,0.2);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notification-mark-all-read:hover {
  background: linear-gradient(180deg, rgba(158,240,249,0.12), rgba(158,240,249,0.16));
  border-color: rgba(158,240,249,0.3);
  transform: translateY(-1px);
}

/* Empty state */
.notifications-empty {
  padding: 40px 20px;
  text-align: center;
  color: #888;
}

.notifications-empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.3;
}

/* Notification badge count */
.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e74c3c;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  animation: notification-pulse 2s ease-in-out infinite;
}

@keyframes notification-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .notification {
    gap: 8px;
    padding: 10px;
  }
  
  .notification-icon {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }
  
  .notification-title {
    font-size: 0.9rem;
  }
  
  .notification-message {
    font-size: 0.85rem;
  }
}

/*========================================
Training History Drawer Styles
========================================*/

.training-history-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Date group */
.training-history-date-group {
  margin-bottom: 20px;
}

.training-history-date-header {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-active);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  padding: 0 12px;
}

.training-history-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Individual history item */
.training-history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.1));
  border: var(--border-1px);
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.training-history-item:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(0,0,0,0.08));
  transform: translateX(2px);
}

/* Lesson vs Course differentiation */
.training-history-lesson {
  border-left: 3px solid #4299e1;
}

.training-history-course {
  border-left: 3px solid #48bb78;
  background: linear-gradient(180deg, rgba(72,187,120,0.05), rgba(0,0,0,0.1));
}

/* Icon */
.training-history-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.5rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
}

.training-history-lesson .training-history-icon {
  background: linear-gradient(135deg, rgba(66,153,225,0.2), rgba(49,130,206,0.3));
}

.training-history-course .training-history-icon {
  background: linear-gradient(135deg, rgba(72,187,120,0.2), rgba(56,161,105,0.3));
}

/* Content */
.training-history-content {
  flex: 1;
  min-width: 0;
}

.training-history-title {
  font-weight: 600;
  color: var(--color-active);
  font-size: 0.95rem;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.training-history-subtitle {
  font-size: 0.85rem;
  color: #888;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Meta info (XP + time) */
.training-history-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.training-history-xp {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffd700;
  padding: 2px 8px;
  background: rgba(255,215,0,0.1);
  border-radius: 4px;
  border: 1px solid rgba(255,215,0,0.2);
}

.training-history-time {
  font-size: 0.75rem;
  color: #666;
}

/* Empty state */
.training-history-empty {
  padding: 40px 20px;
  text-align: center;
  color: #888;
}

.training-history-empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.3;
}

/* Responsive */
@media (max-width: 900px) {
  .training-history-item {
    gap: 8px;
    padding: 10px;
  }
  
  .training-history-icon {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }
  
  .training-history-title {
    font-size: 0.9rem;
  }
  
  .training-history-subtitle {
    font-size: 0.8rem;
  }
  
  .training-history-xp {
    font-size: 0.8rem;
    padding: 2px 6px;
  }
}

.sa-retention-card .badge-card img { width:40px; height:40px; object-fit:contain; border-radius:6px; }
