/*========================================
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);
  }
  
  .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;
  }


  /* 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) */
#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-search-input::placeholder,
.resource-search-input::placeholder {
  color:hsla(0, 0%, 25%, 0.75);
  font-weight: 400;
}
.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-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;
  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;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.resource-card .resource-icon  {
  width: 1.5rem;
  position: absolute;
  top: .5rem;
  right: 1.5rem;
  opacity: .75;
}
.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%;
}

/* Badge */
.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 */
.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-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-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-active);
  text-shadow: 0 1px 2px #000;
}

.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,
.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-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-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 h2 {
  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 h2,
.homepage-main .prop:hover h2 {
  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;
}
.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);
}
@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;
  }
}
.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 
.homepage-main 
.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 
.homepage-main 
.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: .5rem auto; padding: .5rem; }
.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-embed /* Level tree styles */
.demo-embed .demo-embed .demo-embed @media (max-width: 820px) {
  .outcomes-inner { flex-direction: column; gap: 0.5rem; align-items: stretch; }
}
/*
//     Contact Card
*/
/* 
//      Info Boxes 
*/
/* ========================================
   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;
  }
  
  .apparel-card {
    min-height: 380px;
  }
  
}

/* 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;
  }
  
  .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-title,
  .apparel-title {
    font-size: 1.1rem;
  }
  
  .course-card .course-description,
  .apparel-description {
    font-size: 0.85rem;
  }
  
  .apparel-card {
    min-height: 360px;
  }
  
  .apparel-price {
    font-size: 1.1rem;
  }
  
  .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; }
}
/*
//      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,
.skip-to-main {
  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,
.skip-to-main:focus {
  top: 0;
}

/* Inline preview and retention tree specific styles (scoped under .demo-embed) */
.demo-embed { width: 100%; }
.demo-embed .course-container.demo-preview { display: flex; gap: 16px; align-items: flex-start; color: var(--color-subdued-white); }
.demo-embed .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; }
.demo-embed .sidebar .sidebar-header h2 { color: var(--color-active); margin: 0 0 8px 0; font-size: .95rem; }
.demo-embed .lessons { margin-top: 8px; display:flex; flex-direction:column; gap:6px; }
.demo-embed .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); }
.demo-embed .lesson-entry .lesson-title { font-size:0.95rem; color:#e6e6e6; }
.demo-embed .lesson-entry button { padding:6px 8px; border-radius:6px; cursor:pointer; }
/* Hover / active effects to match site theme */
.demo-embed .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);
}
.demo-embed .lesson-entry:active { transform: translateY(-2px) scale(0.998); }
.demo-embed .lesson-entry .lesson-title { transition: color 0.2s ease; }
.demo-embed .lesson-entry:hover .lesson-title { color: var(--color-active); }
.demo-embed .lesson-entry button { transition: transform 0.15s ease, background 0.15s ease; }
.demo-embed .lesson-entry button:hover { transform: translateY(-2px); }

/* Active / selected lesson state */
.demo-embed .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);
}
.demo-embed .lesson-entry.active .lesson-title { color: var(--mws-accent, #9ef0f9); font-weight:600; }

/* Buttons inside lesson entries: match primary/secondary micro variants */
.demo-embed .lesson-entry .btn { font-size:0.8rem; padding:6px 8px; border-radius:6px; }
.demo-embed .lesson-entry .btn.btn-primary { background: linear-gradient(180deg,var(--mws-primary,#0b7285),#06606f); color:#fff; border:0; }
.demo-embed .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 */
/* Badges library grid */
/* Responsive tweaks */
@media (max-width: 720px) {
}

/* Small utilities to match course micro-interactions */
.lesson-entry .lesson-meta { font-size:0.8rem; color: rgba(255,255,255,0.6); }
/* Lesson sidebar micro-layout */
.demo-embed .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; }
.demo-embed .lesson-body { display:flex; flex-direction:column; min-width:0; }
.demo-embed .lesson-meta { color: rgba(255,255,255,0.6); font-size:0.85rem; }
/* Retention tree connectors and visual hierarchy */
/* Badge tile styles for library */
.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 */
/* small screen tweaks */
@media (max-width: 900px) {
}
.demo-embed .content { flex:1; min-height: 220px; background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.12)); padding:4px; border-radius:8px; border: var(--border-1px); }
.demo-embed .video.hero { margin-bottom: 12px; }
/* ===== DEMO COLLAPSIBLE SIDEBAR (≤ 1366px) ===== */
@media (max-width: 1366px) {
  /* Demo embed container - the outer wrapper that confines everything */
  .demo-embed {
    position: relative !important;
    overflow: hidden !important;
  }

  /* Course container - this is the positioning context for tab/panel */
  .demo-embed .course-container.demo-preview {
    display: flex !important;
    min-height: 600px !important;
    position: relative !important;
    overflow: visible !important;
  }

  /* Sidebar - make it invisible but keep space for layout purposes */
  .demo-embed .sidebar {
    position: static !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    flex-shrink: 0 !important;
    background: transparent !important;
    border: none !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  /* Hide desktop sidebar content */
  .demo-embed .sidebar-header,
  .demo-embed .sidebar > .lessons {
    display: none !important;
  }

  /* Collapsed Vertical Tab - direct child of course-container, positioned within it */
  .demo-embed .course-container > .sidebar-tab {
    display: flex !important;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    min-height: 120px;
    background-color: #222;
    color: var(--color-subdued-white);
    padding: 16px 4px;
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-style: italic;
    font-size: 1rem;
    border-radius: 0 8px 8px 0;
    border: 2px groove rgba(40, 45, 50, 0.5);
    border-left: none;
    box-shadow: var(--box-shadow-header);
    transition: opacity 0.4s ease, background 0.2s ease;
    user-select: none;
    z-index: 101;
    align-items: center;
    justify-content: center;
  }

  .demo-embed .course-container > .sidebar-tab:hover {
    background-color: #2a2a2a;
    color: var(--color-active);
  }

  /* Panel - direct child of course-container, slides in from left */
  .demo-embed .course-container > .sidebar-panel {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 0 8px 8px 0;
    background: linear-gradient(5deg,
      hsla(215, 28%, 8%, 0.98), hsl(210, 12%, 8%, .98),
      hsl(217, 25%, 12%, 0.98), hsl(215, 28%, 12%, 0.98),
      #333);
    border: 1px groove rgba(40, 45, 50, 0.5);
    border-left: none;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    z-index: 102;
  }

  /* Panel header */
  .demo-embed .sidebar-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-style: italic;
    font-size: 1rem;
    padding: 16px;
    color: var(--color-subdued-white);
    border-bottom: var(--border-1px);
    flex-shrink: 0;
  }

  .demo-embed .sidebar-panel-header span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 8px;
  }

  .demo-embed .sidebar-close {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    font-size: 1.5rem;
    line-height: 1;
    padding: 4px 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }

  .demo-embed .sidebar-close:hover {
    color: var(--color-active);
    transform: scale(1.1);
  }

  /* Panel progress section */
  .demo-embed .sidebar-panel-progress {
    padding: 12px 16px;
    border-bottom: var(--border-1px);
    flex-shrink: 0;
  }

  .demo-embed .sidebar-panel-progress .progress-bar {
    height: 8px;
    background: #222;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
  }

  .demo-embed .sidebar-panel-progress .progress-fill {
    height: 100%;
    background: linear-gradient(to right, #4caf50, #81c784);
    width: 0%;
    transition: width 0.3s;
  }

  .demo-embed .sidebar-panel-progress .progress-percent {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
  }

  /* Panel badges button */
  .demo-embed .sidebar-panel-badges {
    padding: 12px 16px;
    border-bottom: var(--border-1px);
    flex-shrink: 0;
  }

  .demo-embed .sidebar-panel-badges .btn {
    width: 100%;
    padding: 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #9ef0f9;
    cursor: pointer;
  }

  /* Panel lessons navigation */
  .demo-embed .panel-lessons {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
  }

  .demo-embed .panel-lessons .lesson-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #1a1a1a;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #222;
    transition: all 0.2s;
  }

  .demo-embed .panel-lessons .lesson-entry:hover {
    border-color: #9ef0f9;
    background: #252525;
    transform: translateX(4px);
  }

  /* Open State - Panel slides in AND tab hides */
  /* Tab and panel are direct children of .course-container */
  .demo-embed .course-container.sidebar-open > .sidebar-tab {
    opacity: 0;
    pointer-events: none;
  }

  .demo-embed .course-container.sidebar-open > .sidebar-panel {
    transform: translateX(0);
  }

  /* Main content - full width with left padding for the tab */
  .demo-embed .content {
    margin: 0 !important;
    padding: 20px !important;
    padding-left: 56px !important;
    width: 100% !important;
    position: relative;
    z-index: 1;
  }
}

/* Desktop - hide mobile collapsible elements */
@media (min-width: 1367px) {
  .demo-embed .course-container > .sidebar-tab,
  .demo-embed .course-container > .sidebar-panel {
    display: none !important;
  }
}

/* Retention tree styling (branching look) */
/* Branch connectors */
/* compact badge library */
/*========================================
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 */
/* 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);
}

/* 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;
  }
}

/* ===============================
   Global Reduced Motion
   Respects user's system preference
================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===============================
   Connection Status Indicator
================================== */
.connection-status {
  position: fixed;
  bottom: 20px;
  left: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.connection-status.visible {
  transform: translateY(0);
  opacity: 1;
}

.connection-status.offline {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  color: white;
}

.connection-status.online {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: white;
}

.connection-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ===============================
   Password Strength Meter
================================== */
.password-strength-container {
  margin-top: 8px;
}

.password-strength-bar {
  height: 4px;
  background: #333;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.password-strength-fill {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background 0.3s ease;
  border-radius: 2px;
}

.password-strength-fill.weak {
  width: 25%;
  background: #e74c3c;
}

.password-strength-fill.fair {
  width: 50%;
  background: #f39c12;
}

.password-strength-fill.good {
  width: 75%;
  background: #3498db;
}

.password-strength-fill.strong {
  width: 100%;
  background: #2ecc71;
}

.password-strength-text {
  font-size: 0.75rem;
  color: #888;
}

.password-strength-text.weak { color: #e74c3c; }
.password-strength-text.fair { color: #f39c12; }
.password-strength-text.good { color: #3498db; }
.password-strength-text.strong { color: #2ecc71; }

/* ===============================
   Focus Visible Improvements
   Better keyboard navigation indicators
================================== */
:focus-visible {
  outline: 2px solid var(--color-active, #9ef0f9);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-active, #9ef0f9);
  outline-offset: 2px;
}

/* ===============================
   Scroll-to-Top Button
================================== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2c3e50, #34495e);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 9999;
}

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

.scroll-to-top:hover {
  background: linear-gradient(135deg, #34495e, #4a6785);
  transform: translateY(-2px);
}

.scroll-to-top:active {
  transform: translateY(0);
}

.scroll-to-top svg {
  width: 20px;
  height: 20px;
}

/* ===============================
   Skeleton Loading Placeholders
================================== */
.skeleton {
  background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: 4px;
}

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

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  width: 100%;
}

.skeleton-title {
  height: 20px;
  margin-bottom: 12px;
  width: 60%;
}

.skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton-image {
  width: 100%;
  height: 120px;
  border-radius: 8px;
}

.skeleton-button {
  width: 80px;
  height: 32px;
  border-radius: 4px;
}

.skeleton-badge {
  width: 60px;
  height: 24px;
  border-radius: 12px;
}

.skeleton-card {
  background: rgba(30, 30, 30, 0.5);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.skeleton-card-content {
  padding-top: 12px;
}

.skeleton-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(30, 30, 30, 0.3);
  border-radius: 8px;
  margin-bottom: 8px;
}

.skeleton-list-content {
  flex: 1;
}

.skeleton-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.skeleton-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ===============================
   Image Lightbox
================================== */
.zoomable {
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.zoomable:hover {
  transform: scale(1.02);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.lightbox-caption {
  margin-top: 16px;
  color: #ccc;
  font-size: 0.9rem;
  text-align: center;
  max-width: 600px;
}

.lightbox-controls {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.lightbox-controls button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox-controls button:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===============================
   Form Auto-Save Indicator
================================== */
.autosave-indicator {
  display: inline-block;
  font-size: 0.75rem;
  color: #27ae60;
  margin-left: 12px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.autosave-indicator.fade-out {
  opacity: 0;
}

/* ===============================
   Session Activity Styles
================================== */
.session-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.session-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: rgba(30, 30, 30, 0.5);
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.session-item.current {
  border-color: var(--color-active, #9ef0f9);
  background: rgba(158, 240, 249, 0.05);
}

.session-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.session-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #888;
}

.session-details h4 {
  margin: 0 0 2px 0;
  font-size: 0.9rem;
  color: #fff;
}

.session-details span {
  font-size: 0.75rem;
  color: #888;
}

.session-current-badge {
  font-size: 0.7rem;
  background: var(--color-active, #9ef0f9);
  color: #000;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
}

.logout-all-sessions {
  margin-top: 16px;
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #e74c3c;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.logout-all-sessions:hover {
  background: rgba(231, 76, 60, 0.1);
  border-color: #e74c3c;
}
