/* =========================================================
   Project: Learn Xtra
   File: main.css
   Author: MICB
   Description: Unified styles for base, home, auth, dashboard, course, module and content pages.
     
========================================================= */

/* ---------------------------------------------------------
   1. ROOT VARIABLES & THEME
   --------------------------------------------------------- */
:root {
  --ed-primary: #0047ff;
  --ed-light-skye: #87cefa;
  --ed-primary-soft: rgba(0, 71, 255, 0.1);
  --ed-accent: #f36b4f;
  --ed-accent-light: #ecdbd8;
  --ed-accent-soft: rgba(243, 107, 79, 0.1);
  --ed-arrows-dots-lines: #5aff01;
  --ed-bg: #f6f7fb;
  --ed-surface: #ffffff;
  --ed-muted: #6b7280;
  --ed-dark: #0f172a;

  --ed-star: #f6c343; 
  --ed-border: rgba(15, 23, 42, 0.08);

  --ed-radius-lg: 1.5rem;
  --ed-radius-md: 1rem;
  --ed-radius-sm: .5rem;
  --ed-shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.08);
  --ed-shadow-md: 0 24px 60px rgba(15, 23, 42, 0.11);
  --sidebar-width: 250px;
  --topbar-height: 64px;


  /* Typography scaling */
  --fs-base: clamp(0.9rem, 0.4vw + 0.8rem, 1rem);
  --fs-lg: clamp(1rem, 0.6vw + 1rem, 1.25rem);
  --fs-xl: clamp(1.4rem, 1vw + 1rem, 2.2rem);
  --fs-xxl: clamp(2rem, 2vw + 1rem, 3rem);

  /* Spacing system */
  --space-xs: clamp(0.25rem, 0.5vw, 0.5rem);
  --space-sm: clamp(0.5rem, 1vw, 0.75rem);
  --space-md: clamp(1rem, 1.5vw, 1.25rem);
  --space-lg: clamp(1.5rem, 2vw, 2rem);
  --space-xl: clamp(2rem, 3vw, 3rem);
}

/* ---------------------------------------------------------
   2. GLOBAL RESETS & BASE STYLES
   --------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}


/* New shell for static + dashboard pages so footer sits at bottom */
.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* This grows to push footer down */
.page-main {
  flex: 1;
}



html {
  margin: 0;
  padding: 0;
  background: var(--ed-bg);
  scroll-behavior: smooth;
  font-size: 100%;
  height: 100%;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--ed-bg);
  color: var(--ed-dark);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-size: var(--fs-base);
  height: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}


/* ---------------------------------------------------------
   3. RESPONSIVE CONTAINER & GRID SYSTEM
   --------------------------------------------------------- */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-md);
  max-width: 1400px;
}

.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Flex helpers */
.flex { display: flex; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* ---------------------------------------------------------
   4. TYPOGRAPHY (RESPONSIVE)
   --------------------------------------------------------- */
h1, .h1 { font-size: var(--fs-xxl); font-weight: 700; margin-bottom: var(--space-md); }
h2, .h2 { font-size: var(--fs-xl); font-weight: 600; margin-bottom: var(--space-sm); }
h3, .h3 { font-size: var(--fs-lg); font-weight: 600; margin-bottom: var(--space-xs); }
p { font-size: var(--fs-base); margin-bottom: var(--space-sm); color: var(--ed-muted); }

/* ---------------------------------------------------------
   5. BUTTONS
   --------------------------------------------------------- */
.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: var(--fs-base);
}
.btn-primary {
  background: var(--ed-primary);
  color: #fff;
}
.btn-primary:hover {
  background: #0036c7;
}
.btn-accent {
  background: var(--ed-accent);
  color: #fff;
}
.btn-outline-light {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--ed-primary);
}

/* ---------------------------------------------------------
   6. RESPONSIVE MEDIA QUERIES (XS → XXL)
   --------------------------------------------------------- */

/* Extra Small (phones <400px) */
@media (max-width: 400px) {
  h1 { font-size: 1.8rem; }
  .container { padding: 0 var(--space-sm); }
  .btn { padding: 0.5rem 1rem; }
  .ed-sidebar { width: 200px; }
}

/* Small (phones ≤576px) */
@media (max-width: 576px) {
  .ed-topbar { flex-wrap: wrap; gap: .5rem; }
  .metrics-grid,
  .tiles-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .hero { padding: 3rem 1rem; }
}

/* Medium (tablets ≤768px) */
@media (max-width: 768px) {
  .ed-sidebar {
    position: fixed;
    left: -260px;
    transition: left .25s ease-out;
  }
  .ed-sidebar.show { left: 0; }
  #sidebarToggle { display: inline-flex; }
  .ed-content { padding: 1rem; }
  .hero { text-align: center; }
}

/* Large (laptops ≤992px) */
@media (max-width: 992px) {
  .metrics-grid,
  .tiles-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .hero-card { grid-template-columns: 1fr; }
}

/* Extra Large (≥1200px) */
@media (min-width: 1200px) {
  .container { max-width: 1280px; }
}

/* XXL (ultrawide ≥1600px) */
@media (min-width: 1600px) {
  .container { max-width: 1600px; }
  body { font-size: 1.05rem; }
}



/* ---------------------------------------------------------
   3. LAYOUT SHELL (Sidebar + Topbar + Content)
   --------------------------------------------------------- */

html, body {
  height: auto !important;
}


.app-shell {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.ed-sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(150deg, #002f9a 0%, #0047ff 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem;
  gap: 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 1040;
}
.ed-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 700;
  font-size: 1.35rem;
}
.ed-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: .75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.15);
}
.ed-nav {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex: 1;
  margin-top: .75rem;
}
.ed-nav-title {
  letter-spacing: .12em;
  font-size: .65rem;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  font-weight: 600;
  margin-bottom: .25rem;
}
.ed-nav-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .7rem;
  border-radius: .75rem;
  color: rgba(255,255,255,.7);
  transition: .2s ease;
  font-weight: 500;
}


.ed-nav-link:hover,
.ed-nav-link.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.sidebar-footer {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: .85rem;
  font-size: .7rem;
  color: rgba(255,255,255,.35);
}

/* Topbar */
.ed-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.ed-topbar {
  height: var(--topbar-height);
  background: var(--ed-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  gap: 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, .04);
  position: sticky;
  top: 0;
  z-index: 1030;
}
#sidebarToggle {
  display: none;
}
.ed-search {
  width: min(360px, 65vw);
  background: #f1f5f9;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .35rem .85rem;
}
.ed-search input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: .87rem;
}
.ed-avatar {
  display: flex;
  align-items: center;
  gap: .45rem;
  background: #f1f5f9;
  padding: .3rem .65rem;
  border-radius: 999px;
}

.ed-avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #e2e8f0;
}
.ed-content {
  padding: 1.5rem 1.5rem 2.5rem;
  flex: 1;
}

.ed-footer {
  padding: .85rem 1.5rem;
  font-size: .78rem;
  color: #94a3b8;
}


/* ---------------------------------------------------------
   4. DASHBOARD ELEMENTS
   --------------------------------------------------------- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.metric-card {
  background: var(--ed-surface);
  border-radius: 1rem;
  box-shadow: var(--ed-shadow-sm);
  padding: .9rem .85rem .75rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.metric-icon {
  width: 36px;
  height: 36px;
  border-radius: .8rem;
  background: rgba(243, 107, 79, .12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f36b4f;
  margin-bottom: .35rem;
}

.metric-value {
  font-weight: 700;
  font-size: 1.6rem;
}
.metric-label {
  color: var(--ed-muted);
  font-size: .8rem;
}
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 1rem;
}
.tile-card {
  background: var(--ed-primary);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 1rem;
  padding: .8rem .75rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  position: relative;
  overflow: hidden;
  min-height: 112px;
}
.tile-card.orange {
  background: var(--ed-accent);
}
.tile-card small {
  opacity: .7;
  font-size: .7rem;
}
.tile-card .btn-tile {
  background: rgba(255,255,255,.2);
  border: none;
  color: #fff;
  padding: .3rem .65rem;
  border-radius: 999px;
  font-size: .65rem;
  align-self: flex-start;
}

.tile-card--form {
  overflow: visible;
  
}

.course-list{
  background: var(--ed-light-skye);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 1rem;
  padding: .8rem .75rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  position: relative;
  overflow: hidden;
  min-height: 112px;
}

/* ---------------------------------------------------------
   5. MARKETING PAGES (HOME / LOGIN / SIGNUP)
   --------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--ed-primary), #6610f2);
  color: #fff;
  padding: 100px 0;
  text-align: center;
}
.hero h1 {
  font-weight: 700;
  font-size: 2.8rem;
}
.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}
.features {
  padding: 80px 0;
}
.feature-box {
  background: var(--ed-surface);
  border-radius: var(--ed-radius-md);
  box-shadow: var(--ed-shadow-sm);
  padding: 40px 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.feature-icon {
  font-size: 2.5rem;
  color: var(--ed-primary);
  margin-bottom: 20px;
}
#contact form {
  background: var(--ed-surface);
  border-radius: var(--ed-radius-md);
  box-shadow: var(--ed-shadow-sm);
  padding: 30px;
}



/*------------start testing animation-----------------------------------*/

/* =========================================================
   HOME HERO SLIDER (3 slides) — Glass panel, centered, readable
   ========================================================= */

.hero.hero-slider {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ed-bg);
}

/* viewport height: bigger + responsive */
.hero-slider__viewport {
  position: relative;
  min-height: clamp(540px, 74vh, 860px);
}

/* slides stack on each other */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(3.5%);
  transition: opacity 0.55s ease, transform 0.7s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* MEDIA LAYER (video or image) */
.hero-slide__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: #0b1220;
  transform: scale(1.02);
}

/* image slide */
.hero-media__image {
  background-size: cover;
  background-position: center;
}

/* video slide */
.hero-media__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.06) contrast(1.06);
}

/* readability overlay (keeps glass panel readable even on bright videos/images) */
.hero-slide__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;

  /* layered overlay: dark base + soft highlight */
  background:
    radial-gradient(1000px 520px at 20% 30%, rgba(255,255,255,0.12), transparent 60%),
    linear-gradient(120deg, rgba(0,0,0,0.62), rgba(0,0,0,0.34));
}

/* CONTENT */
.hero-slide__content {
  position: relative;
  z-index: 3;
  height: 100%;
  min-height: inherit;

  /* center content (vertical + horizontal) */
  display: flex;
  align-items: center;
  justify-content: center;

  padding: var(--space-xl) 0;
  text-align: center;
}

.hero-copy {
  position: relative;
  margin: 0 auto;
  max-width: min(72ch, 92vw);

  /* token-based spacing */
  padding: var(--space-lg);
  border-radius: var(--ed-radius-lg);

  /* GLASS panel: readable */
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);

  /* add depth */
  box-shadow: 0 18px 60px rgba(0,0,0,0.30);

  /* glass blur */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  /* keep it readable always */
  outline: 1px solid rgba(255,255,255,0.10);
}

/* subtle accent shimmer */
.hero-copy::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;

  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.16) 28%,
    rgba(255,255,255,0) 55%
  );

  transform: translateX(-120%);
  opacity: 0.9;
}

.hero-title {
  margin: 0 0 var(--space-sm);
  font-size: var(--fs-xxl);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;

  color: #fff;
  text-shadow: 0 16px 44px rgba(0,0,0,0.45);
}

.hero-subtitle {
  margin: 0 0 var(--space-md);
  font-size: var(--fs-lg);
  line-height: 1.65;

  color: rgba(255,255,255,0.92);
  text-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

/* buttons */
.hero-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* glass-styled outline button (visible on light slides) */
.hero-actions .btn-outline-light {
  border-color: rgba(255,255,255,0.80) !important;
  color: #fff !important;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-actions .btn-outline-light:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.95) !important;
}

/* “light” button stays readable but still fits glass style */
.hero-actions .btn.btn-light {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,255,255,0.40);
  color: var(--ed-dark);
}

.hero-actions .btn.btn-light:hover {
  background: rgba(255,255,255,0.96);
}

/* NAV arrows */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;

  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);

  background: rgba(15, 23, 42, 0.35);
  color: #fff;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 14px 36px rgba(0,0,0,0.22);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.hero-nav:hover {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(255,255,255,0.35);
}

.hero-nav--prev { left: var(--space-md); }
.hero-nav--next { right: var(--space-md); }

/* Dots */
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: var(--space-md);
  transform: translateX(-50%);
  z-index: 4;

  display: inline-flex;
  gap: .5rem;
  padding: .45rem .7rem;

  border-radius: 999px;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255,255,255,0.18);
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.45);
  transition: transform .2s ease, background .2s ease, width .2s ease;
}

.hero-dot.is-active {
  background: var(--ed-arrows-dots-lines);
  width: 26px;
}

/* Freelancer-style motion */
.hero-slide.is-active .hero-slide__media {
  animation: heroMediaMove 6.5s ease-in-out both;
}

@keyframes heroMediaMove {
  0%   { transform: scale(1.02) translate3d(0,0,0); }
  50%  { transform: scale(1.07) translate3d(-1.6%, -1.1%, 0); }
  100% { transform: scale(1.05) translate3d(1.1%, 0.7%, 0); }
}

/* shimmer on active slide */
.hero-slide.is-active .hero-copy::before {
  animation: heroShimmer 2.4s ease-in-out 0.25s both;
}

@keyframes heroShimmer {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

/* Mobile tweaks */
@media (max-width: 575.98px) {
  .hero-nav { display: none; }
  .hero-copy {
    padding: var(--space-md);
    border-radius: var(--ed-radius-md);
  }
  .hero-subtitle {
    font-size: var(--fs-base);
  }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide.is-active .hero-slide__media,
  .hero-slide.is-active .hero-copy::before {
    animation: none !important;
    transition: none !important;
  }
}





/* =========================================================
   HERO SLIDER — remove gap under fixed-top navbar 
   ========================================================= */

/* Ensure no margin/padding creates a gap above the hero */
.hero.hero-slider{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* If any global container or section adds top padding, neutralize it */
.hero.hero-slider .hero-slide__content{
  padding-top: 0 !important;
}

/* Make hero start at top of viewport so navbar overlays it (lap) */
.hero.hero-slider .hero-slider__viewport{
  min-height: clamp(540px, 74vh, 860px);
}

/* OPTIONAL: if your navbar has a shadow and you want hero visible under it */
.navbar.fixed-top{
  background: rgba(255,255,255,0.92); /* keeps menu readable over video */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}



/*--------------------------------------end of testing animation--------------------------------------*/




/* ---------------------------------------------------------
   6. FOOTER & NAVBAR
   --------------------------------------------------------- */
footer {
  background: #212529;
  color: #adb5bd;
  text-align: center;
  padding: 30px 0;
  font-size: 0.9rem;
}
footer a {
  color: var(--ed-muted);
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
.navbar {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  background: var(--ed-surface) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Footer link should match footer <p> typography + color */
footer .footer-link{
  color: inherit;              /* same as footer text */
  font: inherit;               /* same font + size */
  line-height: inherit;
  display: inline-block;
  margin-bottom: 0.15rem;      /* small spacing before the <p> */
}

/* Subtle hover that still respects the palette */
footer .footer-link:hover{
  color: var(--ed-muted);
  text-decoration: underline;
}


/* ---------------------------------------------------------
   7. RESPONSIVE BREAKPOINTS
   --------------------------------------------------------- */
@media (max-width: 991.98px) {
  .ed-sidebar {
    position: fixed;
    left: -260px;
    transition: left .25s ease-out;
  }
  .ed-sidebar.show {
    left: 0;
  }
  #sidebarToggle {
    display: inline-flex;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: .75rem;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
  }
  .hero-card {
    grid-template-columns: 1fr;
  }
  .ed-content {
    padding: 1rem;
  }
  .ed-search {
    width: auto;
    flex: 1;
  }
}

@media (max-width: 575.98px) {
  .metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  }
  .tiles-grid {
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  }
  .ed-topbar {
    padding: 0 .65rem;
  }
  .ed-footer, footer {
    text-align: center;
  }
}



/* ---------------------------------------------------------
   DASHBOARD AVATAR DROPDOWN
   --------------------------------------------------------- */
.ed-avatar {
  position: relative;
  cursor: pointer;
  background: #f1f5f9;
  padding: .3rem .65rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: .45rem;
  transition: background 0.2s ease;
}

.ed-avatar:hover {
  background: #e2e8f0;
}

/* Dropdown menu */
.avatar-menu {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  min-width: 160px;
  background: var(--ed-surface);
  box-shadow: var(--ed-shadow-sm);
  border-radius: var(--ed-radius-sm);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 2000;
}

.avatar-menu a {
  padding: .6rem .9rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--ed-dark);
  font-size: .9rem;
  transition: background 0.2s ease;
}

.avatar-menu a:hover {
  background: var(--ed-primary-soft);
  color: var(--ed-primary);
}

.avatar-menu .dropdown-divider {
  height: 1px;
  background: rgba(0,0,0,0.05);
  margin: .25rem 0;
}

/* Show dropdown */
.ed-avatar.show .avatar-menu {
  display: flex;
}

/* Responsiveness */
@media (max-width: 575.98px) {
  .avatar-menu {
    right: auto;
    left: 0;
  }
}



/* ---------------------------------------------------------
   DASHBOARD NAV DROPDOWN (Sidebar) - Inherits .ed-nav-link styles
   --------------------------------------------------------- */

.ed-nav-dropdown {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}

/* Toggle button: inherits .ed-nav-link appearance */
.ed-nav-toggle {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: .6rem .7rem;
  border-radius: .75rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  color: rgba(255,255,255,.7);
  font-weight: 500;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
  font-size: .9rem;
}

.ed-nav-toggle:hover,
.ed-nav-toggle.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}

/* Icon spacing inside */
.nav-icon i {
  width: 1.25rem;
}

/* Dropdown arrow */
.dropdown-arrow {
  margin-left: auto;
  transition: transform 0.2s ease;
}
.ed-nav-dropdown.show .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown menu */
.dashbd-menu {
  display: none;
  flex-direction: column;
  margin-left: 2rem;
  padding: .3rem 0;
  border-left: 2px solid rgba(255,255,255,.12);
}

.dashbd-menu a {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  padding: .45rem 0 .45rem .75rem;
  border-radius: .5rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.dashbd-menu a:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.dashbd-menu .dropdown-divider {
  height: 1px;
  background: rgba(255,255,255,.1);
  margin: .25rem 0;
}

/* Show menu */
.ed-nav-dropdown.show .dashbd-menu {
  display: flex;
}

/* Responsive tweak for small screens */
@media (max-width: 991.98px) {
  .dashbd-menu {
    margin-left: 1.25rem;
    padding: .25rem 0;
  }
  .ed-nav-toggle {
    font-size: .85rem;
    padding: .55rem .6rem;
  }
}



/* ---------------------------------------------------------
   SIDEBAR TOGGLE VISIBILITY & ITS MOBILE BEHAVIOR 
   --------------------------------------------------------- */

/* --- Mobile sidebar toggle: keep it always clickable/visible --- */
@media (max-width: 991.98px) {
  /* Keep the toggle above everything and anchored */
  #sidebarToggle {
    display: inline-flex !important;
    position: fixed;             /* key change */
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: .75rem;
    background: #ffffff;         /* high contrast against sidebar */
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15);
    color: #0f172a;
    z-index: 3001;               /* higher than sidebar */
    cursor: pointer;
  }

  /* Sidebar slides over content but sits under the toggle */
  .ed-sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: var(--sidebar-width);
    height: 100vh;
    transition: left .3s ease;
    z-index: 3000;               /* below toggle */
  }
  .ed-sidebar.show { left: 0; }

  /* Optional overlay for UX clarity */
  body.sidebar-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    z-index: 2000;               /* below sidebar & toggle */
  }
/* ---------------------------------------------------------
   HIDE SEARCH BAR & AVATAR DROPDOWN ON SMALL DEVICES
--------------------------------------------------------- */

  .ed-search,
  .ed-avatar {
    display: none !important;
  }
}





/* ---------------------------------------------------------
   TOPBAR LAYOUT FIX — Prevent toggle overlap with heading
   --------------------------------------------------------- */

/* Base alignment improvements */
.ed-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* When toggle becomes fixed on small screens */
@media (max-width: 991.98px) {
  /* Add left padding so heading shifts right */
  .topbar-left {
    padding-left: 52px; /* roughly equal to toggle button width + margin */
  }

  /* Center heading text vertically with toggle & Help */
  .topbar-left h1,
  .topbar-left .h5 {
    margin: 0;
    font-weight: 600;
    text-align: center;
  }

  /* Optionally, balance spacing on right side for Help button */
  .topbar-right {
    margin-right: 0.5rem;
  }
}

/* On larger screens, restore natural alignment */
@media (min-width: 992px) {
  .topbar-left {
    padding-left: 0;
  }
}



/* =========================================================
   DASHBOARD RESPONSIVE ENHANCEMENTS
   ========================================================= */

@media (max-width: 767.98px) {
  .metrics-grid .metric-card:nth-last-child(-n+2) {
    display: none;
  }
}


.hero-card {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 1.5rem; 
  align-items: center;
  background: var(--ed-surface);
  border-radius: 1.25rem;
  box-shadow: var(--ed-shadow-md);
  overflow: hidden;
  margin-top: 1.25rem;
}

/* Hero text side */
.hero-text {
  padding: 2rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.hero-text h2 {
  font-size: clamp(1.2rem, 1vw + 1rem, 1.8rem);
  font-weight: 700;
  margin-bottom: .5rem;
}

.hero-text p {
  color: #64748b;
  font-size: clamp(0.85rem, 0.4vw + 0.8rem, 1rem);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}


.hero-text .btn {
  align-self: flex-start;
  font-size: clamp(0.8rem, 0.4vw + 0.75rem, 0.95rem);
  padding: 0.6rem 1.25rem;
  margin-top: auto;
  margin-bottom: .5rem;
}

/* --- Hero image full responsiveness --- */
.hero-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  width: 100%;
  height: 100%;
  min-height: 220px;
}

.hero-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-width: 100%;
  display: block;
}

/* --- Adjustments for small devices (XS–MD) --- */
@media (max-width: 991.98px) {
  .hero-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0;
  }

  .hero-text {
    padding: 1.5rem;
    align-items: center;
  }

  .hero-text .btn {
    align-self: center;
    margin-top: 1rem;
  }

  .hero-media {
    min-height: 200px;
    padding: 0.5rem 1rem 1.5rem;
  }

  .hero-media img {
    width: 100%;
    height: auto;
    max-height: 300px;
  }
}

/* --- Larger devices (≥1200px) --- */
@media (min-width: 1200px) {
  .hero-media img {
    max-width: 100%;
    object-fit: cover;
  }
}

/* --- Extra-large displays (≥1600px) --- */
@media (min-width: 1600px) {
  .hero-card {
    grid-template-columns: 1fr 1fr;
    padding: 2rem 2.5rem;
  }

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



/* ================================================
   FIXES FOR: metrics, hero button spacing, hero media image
   ================================================ */

/*Hide last two metric cards on small devices ONLY */
@media (max-width: 767.98px) {
  .metrics-grid > .metric-card:nth-child(3),
  .metrics-grid > .metric-card:nth-child(4) {
    display: none !important;
  }
}


.hero-card {
  /* column/row gap */
  gap: 1.25rem;
}


@media (max-width: 991.98px) {
  .hero-card {
    grid-template-columns: 1fr !important;
    row-gap: 1.25rem !important; 
  }

  .hero-text {
    padding: 1.25rem 1.25rem 0;  
    text-align: center;
    align-items: center;
  }

  .hero-text .btn {
    align-self: center;
    margin-top: 0.75rem;        
  }
}

img.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}


.hero-media {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
}


@media (min-width: 768px) {
  .hero-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; 
  }
}

@media (max-width: 767.98px) {
  .hero-media {
    min-height: 200px;
    padding: 0 1rem 1rem;
  }
  .hero-media img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important; 
  }

  .hero-text .btn {
    margin-bottom: 0.25rem;
  }
}



/* ----------------------------------------------
   Ensure hero-card and metric-card are not hidden under topbar
   ---------------------------------------------- */
.ed-content > .hero-card:first-child {
  margin-top: 3.5rem;
}

.ed-content > .metric-card:first-child {
  margin-top: 3.5rem;
}




/* ----------------------------------------------
   CUSTOMISE QUILL EDITOR
   ---------------------------------------------- */

/* Better sizing for Quill editors */
#course-editor,
.quill-editor {
  min-height: 200px;
  background: #ffffff;
}

/* Make the inner editor scroll properly */
#course-editor .ql-editor,
.quill-editor .ql-editor {
  min-height: 220px;
  max-height: none;
  /*overflow-y: auto;*/
}

/* Ensure Quill editor text is readable against white background */
.ql-editor {
  color: var(--ed-dark);
}

/* Let Quill containers expand naturally, no weird clipping */
.ql-container {
  min-height: 200px;
}


/* ----------------------------------------------
   Quill editor visibility & scrolling
   ---------------------------------------------- */

/* General Quill text color so it's readable on white */
.ql-editor {
  color: var(--ed-dark);
}

/* Ensure Quill containers have a sensible minimum height */
.ql-container {
  min-height: 220px;
}

/* For module/content editors inside dashboard cards */
.tile-card--form .ql-editor {
  min-height: 200px;
  max-height: 350px;
  overflow-y: auto;   
}

/* Make sure form cards can grow and don't clip editors */
.tile-card--form {
  overflow: visible;
}




/* Sticky footer for all pages using base.html */
html, body {
  height: 100%;
}

/* Wraps navbar + main + footer */
.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main grows, footer stays at bottom */
.page-main {
  flex: 1;
}



/* ----------------------------------------------
   Lecture player layout
   ---------------------------------------------- */
.lecture-shell {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .lecture-shell.layout-left {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  }
  .lecture-shell.layout-right {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  }
}

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

.lecture-main,
.lecture-sidebar {
  background: var(--ed-surface);
  border-radius: var(--ed-radius-md);
  box-shadow: var(--ed-shadow-sm);
  padding: 1rem;
}

.lecture-section-title {
  font-weight: 600;
}

.lecture-content-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .4rem .5rem;
  border-radius: .5rem;
  font-size: .9rem;
  text-decoration: none;
}

.lecture-content-link:hover,
.lecture-content-link.active {
  background: var(--ed-primary-soft);
  color: var(--ed-primary);
}





/* ----------------------------------------------
   Management tiles (e.g. instructor course manage)
   ---------------------------------------------- */
.tile-card--form {
  background: var(--ed-accent-light);     
  color: var(--ed-dark);              
  border: 1px solid rgba(15, 23, 42, 0.06);
}

/* Buttons inside management tiles */
.tile-card--form .btn-tile {
  background: var(--ed-primary-soft);  
  color: var(--ed-primary);
  border: none;
}

.tile-card--form .btn-tile:hover {
  background: var(--ed-primary);
  color: #ffffff;
}


/* ----------------------------------------------
   Go Back button style
   ---------------------------------------------- */
.btn-go-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--ed-primary);
  background: var(--ed-primary-soft);   /* soft blue background */
  color: var(--ed-primary);             /* blue text/icon */
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.btn-go-back i {
  font-size: 0.8rem;
}

.btn-go-back:hover {
  background: var(--ed-primary);
  color: #ffffff;
  text-decoration: none;
}





/* =======================================
   FOR REVIEWS (UI + Carousel) 
   ======================================= */


/* Section wrapper */
.reviews-section {
  padding: clamp(2rem, 3vw, 3.5rem) 0;
}

.reviews-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.reviews-head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 1vw + 1rem, 1.7rem);
  font-weight: 800;
  color: var(--ed-dark);
}

.reviews-head p {
  margin: 0;
  color: var(--ed-muted);
  max-width: 58ch;
}

/* Marquee container */
.reviews-marquee {
  position: relative;
  overflow: hidden;
  border-radius: var(--ed-radius-lg);
  background: var(--ed-surface);
  border: 1px solid var(--ed-border);
  box-shadow: var(--ed-shadow-sm);
  padding: 1rem 0.75rem;
}

/* subtle fade edges */
.reviews-marquee::before,
.reviews-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50px;
  z-index: 2;
  pointer-events: none;
}
.reviews-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--ed-surface), rgba(255,255,255,0));
}
.reviews-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--ed-surface), rgba(255,255,255,0));
}

/* Track */
.reviews-track {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  padding: 0.25rem 1rem;
  width: max-content;
  animation: reviews-scroll var(--reviews-speed, 50s) linear infinite;
}

/* Pause on hover for UX */
.reviews-marquee:hover .reviews-track {
  animation-play-state: paused;
}

/* Review Card */
.review-card {
  width: clamp(260px, 32vw, 420px);
  min-height: 150px;
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid var(--ed-border);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  padding: 1rem 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.review-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.review-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  line-height: 1;
  font-size: 0.95rem;
}
.review-stars i {
  color: var(--ed-star);
}
.review-stars i.off {
  color: rgba(15, 23, 42, 0.18);
}

/* Tag pill (Platform/Course/Instructor) */
.review-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .6rem;
  font-size: .75rem;
  font-weight: 700;
  border-radius: 999px;
  color: var(--ed-primary);
  background: var(--ed-primary-soft);
  white-space: nowrap;
}

/* Title / target */
.review-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ed-dark);
}

/* Body */
.review-text {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Footer */
.review-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.12);
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.review-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #e2e8f0;
  flex: 0 0 auto;
}

.review-author small {
  display: block;
  color: var(--ed-muted);
  line-height: 1.25;
}
.review-author strong {
  display: block;
  color: var(--ed-dark);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 18ch;
}

.review-date {
  color: var(--ed-muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

/* Animation (continuous loop) */
@keyframes reviews-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Responsiveness */
@media (max-width: 575.98px) {
  .reviews-marquee { padding: 0.75rem 0.25rem; }
  .reviews-track { gap: 0.75rem; }
  .review-card { width: 78vw; }
}

@media (min-width: 992px) {
  .review-card { width: clamp(300px, 28vw, 420px); }
}

/* Respect reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .reviews-track { animation: none; }
}



/* =======================================
   Profile image support for avatar circles
   ======================================= */

.ed-avatar-img,
.review-avatar {
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ed-avatar-img img,
.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}




/* =========================================================
   HOME: OUR PROJECTS (Token-based UI / XS → XXL)
   ========================================================= */

.projects-section {
  padding: var(--space-xl) 0;
}

.projects-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.projects-head h2 {
  margin: 0;
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--ed-dark);
}

.projects-head p {
  margin: 0;
  max-width: 60ch;
  font-size: var(--fs-base);
  color: var(--ed-muted);
}

.projects-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr; /* XS */
}

/* SM */
@media (min-width: 576px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

/* LG */
@media (min-width: 992px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

/* XXL */
@media (min-width: 1400px) {
  .projects-grid { grid-template-columns: repeat(4, 1fr); }
}

.project-card {
  background: var(--ed-surface);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius-md);
  overflow: hidden;
  box-shadow: var(--ed-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.project-card:hover {
  transform: translateY(-0.4rem);
  box-shadow: var(--ed-shadow-md);
  border-color: rgba(0, 71, 255, 0.18);
  background: linear-gradient(
    120deg,
    var(--ed-primary-soft),
    rgba(255,255,255,0.96)
  );
}

.project-media {
  width: 100%;
  aspect-ratio: 16/9;
  background: rgba(135, 206, 250, 0.35); /* ed-light-skye soft */
  overflow: hidden;
}

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

.project-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

.project-title {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--ed-dark);
  line-height: 1.2;
}

.project-text {
  margin: 0;
  color: #475569;
  font-size: var(--fs-base);
  line-height: 1.6;

  /* clamp to 4 lines */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.project-foot {
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px dashed rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  color: var(--ed-muted);
  font-size: calc(var(--fs-base) * 0.85);
}

.project-foot .cta {
  font-weight: 800;
  color: var(--ed-primary);
}

/* =========================================================
   HOME: TWO-COLUMN INFO (Left = Info, Right = Image)
   Token-based UI / XS → XXL
   ========================================================= */

.info-split {
  padding: var(--space-xl) 0;
}

.info-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr; /* XS stacks */
  align-items: stretch;
}

/* MD+ = two columns */
@media (min-width: 768px) {
  .info-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.info-box {
  background: var(--ed-surface);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius-lg);
  box-shadow: var(--ed-shadow-sm);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.info-kicker {
  letter-spacing: .14em;
  font-size: calc(var(--fs-base) * 0.85);
  text-transform: uppercase;
  color: var(--ed-primary);
  font-weight: 800;
}

.info-title {
  margin: 0;
  font-size: var(--fs-xl);
  font-weight: 900;
  color: var(--ed-dark);
  line-height: 1.15;
}

.info-lead {
  margin: 0;
  font-size: var(--fs-base);
  color: #475569;
  line-height: 1.65;
}

.info-points {
  margin: 0;
  padding-left: 1.1rem;
  color: #475569;
  font-size: var(--fs-base);
  line-height: 1.7;
}

.info-actions {
  margin-top: var(--space-sm);
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Right column media */
.info-media {
  border-radius: var(--ed-radius-lg);
  overflow: hidden;
  background: rgba(135, 206, 250, 0.35);
  box-shadow: var(--ed-shadow-sm);
  border: 1px solid var(--ed-border);
  min-height: 260px;
  display: flex;
}

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






/* =========================================================
   NAVBAR → PAGE GAP CONTROL (for base.html pages only)
  
   ========================================================= */

:root{
  /* To decrease the top gap btw navbar and hero-card*/
  --page-top-gap: 0.85rem;
}

/* To Neutralize Bootstrap spacing utilities on the wrapper */
body .page-main.mt-5{ margin-top: 0 !important; }
body .page-main.pt-3{ padding-top: 0 !important; }

/* Apply controlled spacing below the fixed navbar */
body .page-main{
  padding-top: calc(72px + var(--page-top-gap)) !important;
}

/* Mobile: navbar often slightly shorter */
@media (max-width: 575.98px){
  body .page-main{
    padding-top: calc(64px + var(--page-top-gap)) !important;
  }
}




/* =========================================================
   COOKIE CONSENT BANNER (GLOBAL - HARD GATE / MODAL)
   ========================================================= */

/* Lock scrolling when consent is required */
html.cookie-locked,
body.cookie-locked {
  overflow: hidden !important;
  height: 100%;
}

/* Full-screen overlay */
.cookie-consent-overlay{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: var(--space-md);
  background: rgba(15, 23, 42, 0.70);
  backdrop-filter: blur(10px);
}

/* Card */
.cookie-consent-card{
  width: min(620px, 100%);
  background: var(--ed-surface);
  border-radius: var(--ed-radius-lg);
  box-shadow: var(--ed-shadow-md);
  border: 1px solid var(--ed-border);
  padding: clamp(1rem, 2vw, 1.35rem);
  color: var(--ed-dark);
  overflow: hidden;
}

/* Header */
.cookie-consent-head{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .85rem;
  align-items: start;
}

.cookie-consent-badge{
  width: 46px;
  height: 46px;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: var(--ed-primary-soft);
  color: var(--ed-primary);
  flex: 0 0 auto;
}

.cookie-consent-title{
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .2px;
}

.cookie-consent-subtitle{
  margin: .25rem 0 0 0;
  color: var(--ed-muted);
  line-height: 1.55;
  font-size: .95rem;
}

/* Body */
.cookie-consent-body{
  margin-top: .9rem;
}

.cookie-consent-list{
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ed-muted);
}

.cookie-consent-list li{
  margin: .35rem 0;
}

/* Actions */
.cookie-consent-actions{
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.cookie-btn{
  width: 100%;
  border-radius: 999px;
  padding: .65rem 1rem;
  font-weight: 700;
}

/* Reject button uses your palette */
.btn-cookie-reject{
  background: var(--ed-accent-soft);
  color: var(--ed-accent);
  border: 1px solid rgba(243, 107, 79, 0.35);
}

.btn-cookie-reject:hover{
  background: rgba(243, 107, 79, 0.18);
  color: var(--ed-accent);
}

/* Footnote */
.cookie-consent-footnote{
  margin: .9rem 0 0 0;
  font-size: .85rem;
  color: var(--ed-muted);
}

/* XS adjustments */
@media (max-width: 576px){
  .cookie-consent-head{
    grid-template-columns: 1fr;
  }
  .cookie-consent-badge{
    width: 44px;
    height: 44px;
  }
  .cookie-consent-actions{
    grid-template-columns: 1fr;
  }
}


/* Interest block inside cookie modal */
.cookie-interest-label{
  font-weight: 700;
  color: var(--ed-dark);
  margin-bottom: .25rem;
}

.cookie-interest-help{
  margin: .25rem 0 .6rem 0;
  color: var(--ed-muted);
  font-size: .9rem;
  line-height: 1.5;
}

.cookie-interest .form-select{
  border-radius: 1rem;
  border: 1px solid var(--ed-border);
  padding: .6rem .75rem;
}

.cookie-interest-details{
  margin-top: .75rem;
}

.cookie-interest-details details{
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius-md);
  padding: .6rem .75rem;
  background: rgba(0, 71, 255, 0.04);
}

.cookie-interest-details summary{
  cursor: pointer;
  font-weight: 700;
  color: var(--ed-primary);
  list-style: none;
}

.cookie-interest-details summary::-webkit-details-marker{
  display: none;
}

.cookie-interest-details-body{
  margin-top: .6rem;
  color: var(--ed-muted);
}


/* =========================================================
   HOME HERO — MOBILE OVERRIDES (hide glass panel + subtitle)
   ========================================================= */


@media (max-width: 575.98px) {

  /* Keep the container so the layout/centering stays intact,
     but remove the "glassy panel" look entirely. */
  .hero-slide__content {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 0 !important;
    box-shadow: none !important;

    /* Reduce panel spacing so it doesn't cover the slide */
    padding: 0 !important;
    margin: 0 !important;

    /* Ensure it doesn't create a big overlay box */
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Hide subtitle paragraph only on small devices */
  .hero-subtitle {
    display: none !important;
  }

  /* Keep title + buttons visible and above any overlay layers */
  .hero-title,
  .hero-actions {
    position: relative;
    z-index: 5;
  }

  /* Optional: keep buttons neat on XS while staying responsive */
  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    width: 100%;
  }

  .hero-actions .btn {
    width: min(100%, 420px);
  }
}







/*-------NOT DEPLOYED YET---------*/


/* =========================
   HOW-TO PAGE (Guide Player)
   ========================= */
.howto-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 992px){
  .howto-grid{
    grid-template-columns: 380px 1fr;
    align-items:start;
  }
}

.howto-steps,
.howto-player{
  background: var(--ed-surface);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius-lg);
  box-shadow: var(--ed-shadow-sm);
  padding: var(--space-md);
}

.howto-steps__head h5{
  color: var(--ed-dark);
}

.howto-steplist{
  margin-top: var(--space-md);
  display:flex;
  flex-direction:column;
  gap: .5rem;
  max-height: 520px;
  overflow:auto;
  padding-right: .25rem;
}

.howto-step{
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius-md);
  padding: .75rem .85rem;
  background: rgba(0, 71, 255, 0.04);
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.howto-step:hover{
  transform: translateY(-1px);
  border-color: rgba(0, 71, 255, 0.25);
  background: rgba(0, 71, 255, 0.08);
}

.howto-step.is-active{
  border-color: var(--ed-primary);
  background: var(--ed-primary-soft);
}

.howto-step__title{
  font-weight: 700;
  color: var(--ed-dark);
  font-size: var(--fs-base);
}
.howto-step__meta{
  margin-top: .25rem;
  color: var(--ed-muted);
  font-size: .85rem;
}

.howto-actions{
  margin-top: var(--space-md);
  display:flex;
  gap: .5rem;
  justify-content:space-between;
}

/* Player */
.howto-stage{
  position: relative;
  width: 100%;
  border-radius: var(--ed-radius-lg);
  overflow:hidden;
  background: #0b1220;
  border: 1px solid var(--ed-border);
}

.howto-video{
  width: 100%;
  height: auto;
  display:block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Spotlight overlay */

.howto-spotlight{
  position:absolute;
  inset:0;
  pointer-events:none;
  background: rgba(15, 23, 42, 0.58);
  opacity: 0;
  transition: opacity .2s ease;
}

/* The “hole” is created by a border on a pseudo element */
.howto-spotlight::after{
  content:"";
  position:absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: var(--w, 20%);
  height: var(--h, 15%);
  transform: translate(-50%, -50%);
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.58);
  /*outline: 2px solid rgba(90, 255, 1, 0.9);*/   /* your arrows/dots color */
  outline-offset: 2px;
}

/* Cursor */
.howto-cursor{
  position:absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--ed-arrows-dots-lines);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
  transform: translate(-50%, -50%);
  left: var(--cx, 50%);
  top: var(--cy, 50%);
  opacity: 0;
  transition: opacity .2s ease, left .35s ease, top .35s ease;
  pointer-events:none;
}

/* Caption */
.howto-caption{
  position:absolute;
  left: 50%;
  bottom: var(--space-md);
  transform: translateX(-50%);
  width: min(720px, calc(100% - 1.25rem));
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius-lg);
  padding: var(--space-sm) var(--space-md);
  box-shadow: var(--ed-shadow-md);
}

.howto-caption__title{
  font-weight: 800;
  color: var(--ed-dark);
  font-size: var(--fs-lg);
}

.howto-caption__text{
  margin-top: .25rem;
  color: var(--ed-muted);
  font-size: var(--fs-base);
}

.howto-caption__links{
  margin-top: .6rem;
  display:flex;
  justify-content:flex-start;
  gap: .5rem;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .howto-step,
  .howto-spotlight,
  .howto-cursor{
    transition:none !important;
  }
}





/* ===========================
   HOW-TO PAGE (Fixes)
   - No video shrinking
   - Overlay removed/clean
   - Caption outside video, small, hidden on mobile
   =========================== */

/* Make sure wrappers don't cause horizontal scroll */ 
.howto-wrap,
.howto-main,
.howto-sidebar {
  min-width: 0;
  max-width: 100%;
}

/* Video container */
.howto-stage{
  position: relative;
  width: 100%;
  border-radius: var(--ed-radius-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--ed-border);
  box-shadow: var(--ed-shadow-sm);
}

/* IMPORTANT: Do NOT clamp max-height (no shrinking).
   Let the video be full width and scale naturally. */
#howtoVideo,
.howto-video{
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  background: #000;
  object-fit: contain; /* ensures full video is visible */
}

/* If you had a dark overlay on top of the video, disable it */
.howto-spotlight,
.howto-overlay,
.howto-dark-layer {
  display: none !important;
}

/* Cursor/spotlight (if you use them) should never block video interaction */
.howto-cursor{
  pointer-events: none;
}

/* Tip row stays clean and responsive */
.howto-tip{
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--ed-radius-md);
  border: 1px solid var(--ed-border);
  background: var(--ed-surface);
  color: var(--ed-dark);
  font-size: var(--fs-base);
}

/* Caption (optional): small, outside video */
.howto-caption{
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--ed-radius-md);
  border: 1px solid var(--ed-border);
  background: var(--ed-surface);
  box-shadow: var(--ed-shadow-sm);
  max-width: 100%;
}

/* Smaller caption typography */
.howto-caption__title{
  font-size: 1rem;
  font-weight: 800;
  color: var(--ed-dark);
  margin: 0 0 .25rem 0;
}

.howto-caption__text{
  font-size: .95rem;
  color: var(--ed-muted);
  margin: 0;
}

/* OPTIONAL behaviour: if caption is empty, hide it (keeps it “not required”) */
.howto-caption:empty{
  display: none;
}

/* Responsive layout: prevent video disappearing on small devices */
@media (max-width: 991.98px){
  .howto-wrap{
    display: block;
  }
}

/* Mobile rules: caption hidden on small devices (your requirement) */
@media (max-width: 575.98px){
  .howto-caption{
    display: none !important;
  }

  /* Ensure video never collapses */
  #howtoVideo,
  .howto-video{
    width: 100%;
    height: auto;
    display: block;
  }
}




/* =========================================================
   HOW-TO: remove the visible green spot (spotlight + cursor)
   Paste at the VERY BOTTOM of main.css
   ========================================================= */

/* Hide spotlight overlay completely */
.howto-stage .howto-spotlight,
#howtoSpotlight {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Hide fake cursor completely (often the “green dot”) */
.howto-stage .howto-cursor,
#howtoCursor {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* In case the dot is created by pseudo-elements */
.howto-stage .howto-spotlight::before,
.howto-stage .howto-spotlight::after,
.howto-stage .howto-cursor::before,
.howto-stage .howto-cursor::after {
  display: none !important;
  content: none !important;
}
