/* ============================================
   BeSA Learn Page — learn.css
   ============================================ */

/* ── Full-page layout: navbar(70) + columns(flex) + footer(65) ── */
body:has(.learn-layout) {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ── Three-column layout fills all remaining space ── */
.learn-layout {
  display: flex;
  flex-direction: row;
  flex: 1 1 0%;
  min-height: 0;
  /* critical: allows flex child to shrink */
  margin-top: 70px;
  /* navbar height */
  overflow: hidden;
}

/* ── Footer pinned at bottom ── */
.learn-footer {
  flex-shrink: 0;
}

/* ════════════════════════════════════════
   LEFT SIDEBAR — Week selector
   flex child, scrolls independently
   ════════════════════════════════════════ */
.sidebar-left {
  flex: 0 0 220px;
  width: 220px;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 32px 16px 40px;
  border-right: 1px solid rgba(78, 205, 196, 0.12);
  display: flex;
  flex-direction: column;
  background: rgba(8, 20, 20, 0.97);
  transition: transform 0.3s ease;
}

.sidebar-left-header {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(78, 205, 196, 0.08);
}

.sidebar-section-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(180, 220, 220, 0.65);
  display: block;
}

/* Week items */
.weeks-menu {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.week-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 9px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

a.week-item {
  color: inherit;
}

.week-item.active {
  background: rgba(78, 205, 196, 0.1);
  border-color: rgba(78, 205, 196, 0.25);
}

.week-item:not(.week-item--locked):not(.active):hover {
  background: rgba(78, 205, 196, 0.06);
  border-color: rgba(78, 205, 196, 0.12);
}

.week-item--locked {
  opacity: 0.38;
  cursor: default;
}

.week-item-num {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--teal-light);
  opacity: 0.55;
  min-width: 20px;
}

.week-item.active .week-item-num {
  opacity: 1;
}

.week-item-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.week-item-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}

.week-item.active .week-item-title {
  color: var(--teal-light);
}

.week-item--locked .week-item-title {
  color: var(--gray-mid);
}

.week-item-sub {
  font-size: 0.68rem;
  color: var(--gray-mid);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.week-item-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-light);
  flex-shrink: 0;
}

.week-item:not(.active) .week-item-dot {
  display: none;
}

.week-item-lock {
  font-size: 0.7rem;
  flex-shrink: 0;
}

.weeks-more-note {
  margin-top: 10px;
  font-size: 0.68rem;
  color: rgba(155, 188, 188, 0.3);
  text-align: center;
  padding: 8px 0 0;
  border-top: 1px solid rgba(78, 205, 196, 0.06);
  font-style: italic;
}

.sidebar-back-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 18px;
  font-size: 0.78rem;
  color: rgba(155, 188, 188, 0.4);
  text-decoration: none;
  transition: color 0.2s;
  border-top: 1px solid rgba(78, 205, 196, 0.07);
  margin-top: 16px;
}

.sidebar-back-link:hover {
  color: var(--teal-light);
}

/* ════════════════════════════════════════
   MAIN CONTENT — scrollable center
   ════════════════════════════════════════ */
.learn-main {
  flex: 1 1 0%;
  width: auto;
  height: 100%;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 52px 60px 100px;
}

/* Page header */
.learn-page-header {
  margin-bottom: 48px;
  padding-bottom: 0;
}

.learn-page-eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 10px;
  display: block;
}

.learn-page-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 6px;
}

.learn-page-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  color: var(--teal-light);
  margin-bottom: 18px;
  opacity: 0.75;
}

.learn-page-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Section blocks */
.notion-section {
  margin-bottom: 58px;
  scroll-margin-top: 20px;
}

.notion-sub-section {
  margin-bottom: 30px;
}

.notion-sub-section+.notion-sub-section {
  padding-top: 26px;
  border-top: 1px solid rgba(78, 205, 196, 0.07);
}

/* H2 */
.notion-h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(78, 205, 196, 0.1);
}

.notion-h2-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* H3 */
.notion-h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--teal-light);
  margin-bottom: 12px;
}

/* Text */
.notion-text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(220, 240, 240, 0.85);
  margin-bottom: 14px;
}

.notion-text strong {
  color: var(--white);
}

.notion-text--label {
  font-size: 0.83rem;
  margin-top: 12px;
  margin-bottom: 8px;
  color: rgba(220, 240, 240, 0.75);
}

.notion-text--bright {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.88rem;
}

/* Callouts */
.notion-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 9px;
  margin-bottom: 16px;
  font-size: 0.86rem;
  line-height: 1.65;
}

.notion-callout--info {
  background: rgba(78, 205, 196, 0.07);
  border: 1px solid rgba(78, 205, 196, 0.2);
  color: var(--gray-mid);
}

.notion-callout--notice {
  background: rgba(255, 210, 60, 0.1);
  border: 1px solid rgba(255, 200, 40, 0.45);
  color: #f0d080;
}

.notion-callout--notice strong {
  color: #ffe066;
}

.notion-callout--warning {
  background: rgba(240, 170, 50, 0.07);
  border: 1px solid rgba(240, 170, 50, 0.25);
  color: #c8ad70;
}

.notion-callout--coming {
  background: rgba(78, 205, 196, 0.04);
  border: 1px solid rgba(78, 205, 196, 0.12);
  color: var(--gray-mid);
}

.notion-callout strong {
  color: var(--white);
}

.notion-callout--warning strong {
  color: #e8c060;
}

.notion-callout-icon {
  font-size: 1.05rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Video card */
.video-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(78, 205, 196, 0.13);
  border-radius: 11px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.video-card:hover {
  border-color: rgba(78, 205, 196, 0.28);
}

.video-card-thumb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b00, #e00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(180, 0, 0, 0.3);
}

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

.video-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 3px;
}

.video-card-sub {
  font-size: 0.75rem;
  color: var(--gray-mid);
}

.video-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(180, 0, 0, 0.15);
  border: 1px solid rgba(180, 0, 0, 0.35);
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  color: #ff6b6b;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
}

.video-card-btn:hover {
  background: rgba(180, 0, 0, 0.25);
  border-color: rgba(180, 0, 0, 0.55);
}

/* Bookmark */
.notion-bookmark {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  text-decoration: none;
  margin-bottom: 12px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.notion-bookmark::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--teal-light), var(--teal-dark));
  opacity: 0;
  transition: opacity 0.2s;
}

.notion-bookmark:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: #111111;
  transform: translateX(3px);
}

.notion-bookmark:hover::after {
  opacity: 1;
}

.notion-bookmark-icon {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: rgba(78, 205, 196, 0.1);
  border: 1px solid rgba(78, 205, 196, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-light);
  flex-shrink: 0;
}

.notion-bookmark-content {
  flex: 1;
  min-width: 0;
}

.notion-bookmark-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
}

.notion-bookmark-desc {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 5px;
}

.notion-bookmark-url {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--teal-light);
  opacity: 0.55;
}

.notion-bookmark-badge {
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(78, 205, 196, 0.1);
  border: 1px solid rgba(78, 205, 196, 0.2);
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--teal-light);
  white-space: nowrap;
}

/* Bullets */
.notion-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 4px;
}

.notion-bullets li {
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--gray-mid);
  padding-left: 18px;
  position: relative;
}

.notion-bullets li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal-light);
  opacity: 0.5;
}

/* Bottom nav */
.learn-bottom-nav {
  padding-top: 32px;
  border-top: 1px solid rgba(78, 205, 196, 0.1);
}

/* ════════════════════════════════════════
   RIGHT SIDEBAR — On this page
   flex child, scrolls independently
   ════════════════════════════════════════ */
.sidebar-right {
  flex: 0 0 200px;
  width: 200px;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 36px 16px 32px;
  border-left: 1px solid rgba(78, 205, 196, 0.08);
  background: rgba(8, 20, 20, 0.97);
}

.sidebar-toc-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(180, 220, 220, 0.6);
  margin-bottom: 14px;
  display: block;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(78, 205, 196, 0.08);
}

.sidebar-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sidebar-toc-list li {
  display: flex;
  flex-direction: column;
}

.toc-link {
  display: block;
  font-size: 0.85rem;
  line-height: 1.4;
  color: rgba(200, 230, 230, 0.7);
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 5px;
  transition: all 0.15s ease;
  border-left: 2px solid transparent;
}

.toc-link:hover {
  color: var(--teal-light);
  background: rgba(78, 205, 196, 0.06);
}

.toc-link.active {
  color: var(--teal-light);
  background: rgba(78, 205, 196, 0.08);
  border-left-color: var(--teal-light);
  font-weight: 500;
}

.toc-children {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-left: 10px;
  padding-left: 8px;
  border-left: 1px solid rgba(78, 205, 196, 0.1);
  margin-top: 1px;
}

.toc-child {
  font-size: 0.79rem;
  color: rgba(180, 215, 215, 0.55);
  padding: 4px 7px;
}

/* ════════════════════════════════════════
   SCROLL-SPY: uses learn-main as root
   JS targets learn-main container
   ════════════════════════════════════════ */

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 1100px) {
  .sidebar-right {
    display: none;
  }

  .learn-main {
    padding: 48px 44px 80px;
  }
}

@media (max-width: 768px) {
  .learn-layout {
    position: relative;
  }

  .sidebar-left {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    transform: translateX(-100%);
    box-shadow: none;
  }

  .sidebar-left.sidebar-open {
    transform: translateX(0);
    box-shadow: 6px 0 40px rgba(0, 0, 0, 0.7);
  }

  .learn-main {
    padding: 32px 18px 80px;
  }

  .notion-bookmark {
    flex-direction: column;
    align-items: flex-start;
  }

  .notion-bookmark-badge {
    align-self: flex-start;
  }

  .video-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Quiz Google Form embed ── */
.quiz-embed-wrapper {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(78, 205, 196, 0.2);
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.quiz-embed-wrapper iframe {
  display: block;
  width: 100%;
  border: none;
}

/* ── Custom scrollbars: styled thin, hidden on sidebar-right ── */

/* Main content scrollbar — thin and subtle */
.learn-main::-webkit-scrollbar {
  width: 4px;
}

.learn-main::-webkit-scrollbar-track {
  background: transparent;
}

.learn-main::-webkit-scrollbar-thumb {
  background: rgba(78, 205, 196, 0.2);
  border-radius: 4px;
}

.learn-main::-webkit-scrollbar-thumb:hover {
  background: rgba(78, 205, 196, 0.4);
}

/* Right sidebar scrollbar — completely hidden */
.sidebar-right::-webkit-scrollbar {
  width: 0px;
  display: none;
}

.sidebar-right {
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

/* Left sidebar scrollbar — hidden */
.sidebar-left::-webkit-scrollbar {
  width: 0px;
  display: none;
}

.sidebar-left {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* ── YouTube embed ── */
.yt-embed-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 */
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(78, 205, 196, 0.18);
  background: #000;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.yt-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Learn page footer — always visible, pinned by flex layout ── */
.learn-footer {
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  border-top: 1px solid rgba(78, 205, 196, 0.1);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(155, 188, 188, 0.45);
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: rgba(8, 20, 20, 0.97);
}

/* ── Video expandable toggle ── */
.video-card--expandable {
  cursor: pointer;
}

.video-card--expandable.is-open {
  border-color: rgba(78, 205, 196, 0.45);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
  margin-bottom: 0;
}

.video-card-thumb--toggle {
  transition: transform 0.2s;
}

.video-card--expandable.is-open .video-card-thumb--toggle {
  background: linear-gradient(135deg, #007a70, #00c4b8);
}

.video-card-toggle-btn {
  cursor: pointer;
  background: rgba(78, 205, 196, 0.10);
  border: 1px solid rgba(78, 205, 196, 0.30);
  color: #4ecdc4;
}

.video-card-toggle-btn:hover {
  background: rgba(78, 205, 196, 0.20);
  border-color: rgba(78, 205, 196, 0.55);
}

.video-card--expandable.is-open .video-card-toggle-btn {
  background: rgba(78, 205, 196, 0.20);
  border-color: rgba(78, 205, 196, 0.55);
}

.video-toggle-icon {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.video-card--expandable.is-open .video-toggle-icon {
  transform: rotate(180deg);
}

/* Embed panel */
.video-embed-panel {
  margin-bottom: 16px;
  border: 1px solid rgba(78, 205, 196, 0.45);
  border-top: none;
  border-bottom-left-radius: 11px;
  border-bottom-right-radius: 11px;
  overflow: hidden;
  background: #000;
  animation: slideDown 0.25s ease;
}

.video-embed-panel[hidden] {
  display: none;
}

.video-embed-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 */
}

.video-embed-inner iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ===== LIGHT MODE — learn pages ===== */

/* SIDEBARS */
body.light-mode .sidebar-left {
  background: rgba(240, 250, 250, 0.99);
  border-right-color: rgba(13, 92, 92, 0.1);
}

body.light-mode .sidebar-left-header {
  border-bottom-color: rgba(13, 92, 92, 0.08);
}

body.light-mode .sidebar-section-label {
  color: rgba(13, 92, 92, 0.55);
}

body.light-mode .week-item-title {
  color: #0a1a1a;
}

body.light-mode .week-item.active {
  background: rgba(13, 92, 92, 0.08);
  border-color: rgba(13, 92, 92, 0.2);
}

body.light-mode .week-item.active .week-item-title {
  color: var(--teal-dark);
}

body.light-mode .week-item:not(.week-item--locked):not(.active):hover {
  background: rgba(13, 92, 92, 0.04);
  border-color: rgba(13, 92, 92, 0.1);
}

body.light-mode .week-item--locked .week-item-title {
  color: #6a8a8a;
}

body.light-mode .week-item-num {
  color: var(--teal-dark);
}

body.light-mode .week-item-sub {
  color: #5a7a7a;
}

body.light-mode .week-item-dot {
  background: var(--teal-dark);
}

body.light-mode .weeks-more-note {
  color: rgba(13, 92, 92, 0.35);
  border-top-color: rgba(13, 92, 92, 0.06);
}

body.light-mode .sidebar-back-link {
  color: rgba(13, 92, 92, 0.45);
  border-top-color: rgba(13, 92, 92, 0.07);
}

body.light-mode .sidebar-back-link:hover {
  color: var(--teal-dark);
}

body.light-mode .sidebar-right {
  background: rgba(240, 250, 250, 0.99);
  border-left-color: rgba(13, 92, 92, 0.08);
}

body.light-mode .sidebar-toc-title {
  color: rgba(13, 92, 92, 0.55);
  border-bottom-color: rgba(13, 92, 92, 0.08);
}

body.light-mode .toc-link {
  color: rgba(10, 40, 40, 0.6);
}

body.light-mode .toc-link:hover {
  color: var(--teal-dark);
  background: rgba(13, 92, 92, 0.05);
}

body.light-mode .toc-link.active {
  color: var(--teal-dark);
  background: rgba(13, 92, 92, 0.07);
  border-left-color: var(--teal-dark);
}

body.light-mode .toc-children {
  border-left-color: rgba(13, 92, 92, 0.1);
}

body.light-mode .toc-child {
  color: rgba(10, 40, 40, 0.5);
}

/* MAIN CONTENT AREA - white background, dark text */
body.light-mode .learn-main {
  background: #ffffff;
}

body.light-mode .learn-page-title {
  color: #0a1a1a;
}

body.light-mode .learn-page-subtitle {
  color: var(--teal-dark);
}

body.light-mode .learn-page-eyebrow {
  color: var(--teal-dark);
}

body.light-mode .learn-page-tags .tag {
  background: rgba(13, 92, 92, 0.07);
  color: var(--teal-dark);
  border-color: rgba(13, 92, 92, 0.15);
}

/* TEXT */
body.light-mode .notion-h2 {
  color: #0a1a1a;
  border-bottom-color: rgba(13, 92, 92, 0.1);
}

body.light-mode .notion-h3 {
  color: var(--teal-dark);
}

body.light-mode .notion-text {
  color: #1a3a3a;
}

body.light-mode .notion-text strong {
  color: #0a1a1a;
}

body.light-mode .notion-text--bright {
  color: #0a1a1a !important;
}

body.light-mode .notion-bullets li {
  color: #2a4a4a;
}

body.light-mode .notion-bullets li::before {
  background: var(--teal-dark);
  opacity: 0.6;
}

body.light-mode .notion-h2-icon {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid));
}

/* CALLOUTS */
body.light-mode .notion-callout--info {
  background: rgba(13, 92, 92, 0.05);
  border-color: rgba(13, 92, 92, 0.2);
  color: #2a4a4a;
}

body.light-mode .notion-callout--notice {
  background: rgba(180, 120, 0, 0.07);
  border-color: rgba(200, 150, 0, 0.35);
  color: #6a4a00;
}

body.light-mode .notion-callout--notice strong {
  color: #5a3a00;
}

body.light-mode .notion-callout--warning {
  background: rgba(160, 90, 0, 0.05);
  border-color: rgba(200, 130, 0, 0.25);
  color: #5a4000;
}

body.light-mode .notion-callout--coming {
  background: rgba(13, 92, 92, 0.04);
  border-color: rgba(13, 92, 92, 0.1);
  color: #3a5a5a;
}

body.light-mode .notion-callout strong {
  color: #0a1a1a;
}

/* VIDEO CARDS — identical to dark mode look (solid dark card, white text) */
body.light-mode .video-card {
  background: #112121;
  border: 1px solid rgba(78, 205, 196, 0.18);
  color: #ffffff;
}

body.light-mode .video-card:hover {
  border-color: rgba(78, 205, 196, 0.35);
}

body.light-mode .video-card-title {
  color: #ffffff !important;
}

body.light-mode .video-card-sub {
  color: #9bbcbc !important;
}

body.light-mode .video-card-thumb {
  background: linear-gradient(135deg, #b00, #e00);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(180, 0, 0, 0.3);
}

body.light-mode .video-card-btn {
  background: rgba(180, 0, 0, 0.18);
  border-color: rgba(180, 0, 0, 0.4);
  color: #ff6b6b;
}

body.light-mode .video-card-btn:hover {
  background: rgba(180, 0, 0, 0.28);
  border-color: rgba(180, 0, 0, 0.6);
}

/* Expandable video card toggle button in light mode */
body.light-mode .video-card-toggle-btn {
  background: rgba(78, 205, 196, 0.12);
  border: 1px solid rgba(78, 205, 196, 0.35);
  color: #4ecdc4;
}

body.light-mode .video-card-toggle-btn:hover {
  background: rgba(78, 205, 196, 0.22);
  border-color: rgba(78, 205, 196, 0.6);
}

body.light-mode .video-card--expandable.is-open {
  border-color: rgba(78, 205, 196, 0.45);
}

/* Embed panel keeps dark in light mode */
body.light-mode .video-embed-panel {
  border-color: rgba(78, 205, 196, 0.45);
  background: #000;
}

/* BOOKMARKS */
body.light-mode .notion-bookmark {
  background: rgba(240, 250, 250, 0.99);
  border-color: rgba(13, 92, 92, 0.12);
  box-shadow: 0 2px 12px rgba(13, 92, 92, 0.06);
}

body.light-mode .notion-bookmark:hover {
  background: rgb(146, 223, 223);
  border-color: rgba(13, 92, 92, 0.25);
}


body.light-mode .notion-bookmark-title {
  color: #0a1a1a;
}

body.light-mode .notion-bookmark-desc {
  color: rgba(13, 50, 50, 0.6);
}

body.light-mode .notion-bookmark-url {
  color: var(--teal-dark);
}

body.light-mode .notion-bookmark-icon {
  background: rgba(13, 92, 92, 0.08);
  border-color: rgba(13, 92, 92, 0.15);
  color: var(--teal-dark);
}

body.light-mode .notion-bookmark-badge {
  background: rgba(13, 92, 92, 0.08);
  border-color: rgba(13, 92, 92, 0.15);
  color: var(--teal-dark);
}

/* MISC */
body.light-mode .learn-bottom-nav {
  border-top-color: rgba(13, 92, 92, 0.1);
}

body.light-mode .notion-sub-section+.notion-sub-section {
  border-top-color: rgba(13, 92, 92, 0.07);
}

body.light-mode .quiz-embed-wrapper {
  border-color: rgba(13, 92, 92, 0.15);
}

/* FOOTER */
body.light-mode .learn-footer {
  background: rgba(240, 250, 250, 0.99);
  border-top-color: rgba(13, 92, 92, 0.1);
  color: rgba(13, 92, 92, 0.4);
}