/* =========================================================
       CSS CUSTOM PROPERTIES â€” LIGHT (default) & DARK themes
    ========================================================= */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #f1f5f9;
  --bg-hero-from: #f0f4f8;
  --bg-hero-via: #e8eef5;
  --bg-hero-to: #f0f4f8;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-faint: #94a3b8;
  --accent: #0891b2;
  --accent-light: #06b6d4;
  --accent-hover: #0e7490;
  --border-color: rgba(8, 145, 178, 0.12);
  --border-subtle: rgba(15, 23, 42, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(8, 145, 178, 0.15);
  --glass-shadow: rgba(8, 145, 178, 0.06);
  --header-bg: rgba(255, 255, 255, 0.85);
  --header-border: rgba(15, 23, 42, 0.06);
  --card-bg: rgba(241, 245, 249, 0.8);
  --card-border: rgba(8, 145, 178, 0.08);
  --card-border-hover: rgba(8, 145, 178, 0.25);
  --card-shadow-hover: rgba(8, 145, 178, 0.08);
  --icon-bg: rgba(8, 145, 178, 0.08);
  --tag-bg: rgba(8, 145, 178, 0.06);
  --tag-text: rgba(8, 145, 178, 0.7);
  --divider: rgba(8, 145, 178, 0.1);
  --grid-line: rgba(8, 145, 178, 0.04);
  --glow-ring: rgba(8, 145, 178, 0.06);
  --glow-ring-accent: rgba(8, 145, 178, 0.1);
  --footer-border: rgba(15, 23, 42, 0.06);
  --footer-text: #94a3b8;
  --footer-text-faint: #cbd5e1;
  --scrollbar-track: #f1f5f9;
  --scrollbar-thumb: #94a3b8;
  --scrollbar-hover: #0891b2;
  --contact-border: rgba(15, 23, 42, 0.12);
  --contact-text: #334155;
  --cta-border: rgba(8, 145, 178, 0.2);
  --cta-text: rgba(8, 145, 178, 0.8);
  --mobile-menu-bg: rgba(255, 255, 255, 0.95);
}



/* ===== Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  transition: background-color 0.3s, color 0.3s;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-hover);
}

.bullet {
  margin-left: 20px;
}

/* ===== Hero Background Grid ===== */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 100%);
}

/* ===== Animated C Glow Ring ===== */
.c-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  border: 2px solid var(--glow-ring);
  border-right-color: transparent;
  border-radius: 50%;
  animation: c-rotate 12s linear infinite;
  pointer-events: none;
}

@media (min-width: 640px) {
  .c-glow {
    width: 340px;
    height: 340px;
  }
}

.c-glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  border: 2px solid transparent;
  border-top-color: var(--glow-ring-accent);
  border-radius: 50%;
  filter: blur(8px);
  animation: c-rotate 8s linear infinite reverse;
}

@keyframes c-rotate {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ===== Glassmorphism ===== */
.glass-strong {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
}

/* ===== Top Nav ===== */
.top-nav {
  box-shadow: 0 0 30px var(--glass-shadow);
}

.top-nav-item {
  transition: all 0.25s ease;
  color: var(--text-muted);
}

.top-nav-item:hover {
  color: var(--accent);
  transform: scale(1.05);
}

.top-nav-item.active {
  color: var(--accent);
}

/* ===== Section Reveal ===== */
.section-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Card ===== */
.service-card {
  background: var(--card-bg);
  transition: all 0.3s ease;
  border: 1px solid var(--card-border);
}

.service-card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--card-shadow-hover);
}

/* ===== Header ===== */
#header {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--header-border);
}

/* ===== Buttons ===== */
.btn-contact {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border-color: var(--contact-border);
  color: var(--contact-text);
}

.btn-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-contact:hover::before {
  opacity: 1;
}

.btn-contact:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(8, 145, 178, 0.08);
  color: var(--accent);
}

/* ===== Divider ===== */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--divider), transparent);
}

/* ===== Accent line ===== */
.accent-line {
  width: 40px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* ===== Project Card Shimmer ===== */
.project-card {
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(8, 145, 178, 0.03), transparent);
  transition: left 0.6s ease;
}

.project-card:hover::before {
  left: 100%;
}

/* ===== Hero gradient ===== */
.hero-bg {
  background: linear-gradient(to bottom, var(--bg-hero-from), var(--bg-hero-via), var(--bg-hero-to));
  transition: background 0.4s ease;
}

.hero-fade {
  background: linear-gradient(to top, var(--bg-primary), transparent);
}

/* ===== Theme Toggle ===== */
.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--contact-border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.icon-sun {
  display: none;
}

.icon-moon {
  display: block;
}

[data-theme="dark"] .icon-sun {
  display: block;
}

[data-theme="dark"] .icon-moon {
  display: none;
}

/* ===== Mobile Hamburger ===== */
.hamburger {
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--contact-border);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hamburger:hover {
  border-color: var(--accent);
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 1px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(2.5px, 2.5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(2.5px, -2.5px);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--mobile-menu-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 3rem;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu a {
  display: block;
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.2s ease;
  width: 80%;
  max-width: 300px;
  text-align: center;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--accent);
  background: var(--icon-bg);
}

/* ===== Smooth transitions ===== */
.service-card,
.section-divider,
.accent-line,
#header,
.glass-strong,
.btn-contact,
footer,
.hero-bg,
.hero-fade,
.theme-toggle,
.mobile-menu {
  transition-property: background, border-color, color, box-shadow;
  transition-duration: 0.4s;
  transition-timing-function: ease;
}

/* ===== Custom Code Block (Highlight.js) ===== */
.clinch-code-block {
  margin: 1.5rem 0;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.clinch-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background-color: #2d2d2d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.clinch-code-lang {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.clinch-code-actions {
  display: flex;
  gap: 0.5rem;
}

.clinch-code-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  padding: 0.35rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  outline: none;
}

.clinch-code-btn:hover {
  color: #f8fafc;
  background-color: rgba(255, 255, 255, 0.1);
}

.clinch-code-btn svg {
  width: 1rem;
  height: 1rem;
}

/* Base override for pre/code */
.clinch-code-block pre {
  margin: 0 !important;
  padding: 1rem !important;
  background-color: transparent !important;
  /* let container show through or Atom One Dark takes over */
  overflow-x: auto;
}

.clinch-code-block code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* =========================================================
       TEXT VISIBILITY & CONTEXT-AWARE COLOR SYSTEM
   ========================================================= */

/* 1. Global Reset (Removing blunt overrides) */
body {
  background-color: #0b1220;
  /* Fixed standard background */
  color: inherit;
}

/* 2. Standard Context (Dark environment) */
:root,
[data-theme="dark"],
.dark-section {
  color: #FFFFFF;
}

/* 3. Light Context fallback (If any) */
.light-section {
  color: #0b1220 !important;
}

/* 4. Semantic Hierarchy Inheritance */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: inherit !important;
  font-weight: 700;
}

p {
  color: inherit !important;
  opacity: 0.85;
  /* Maintain professional readability */
  line-height: 1.6;
}

/* 5. Components Visibility Rules */
.section-reveal,
.service-card,
.project-card {
  color: inherit !important;
}

/* 6. Navigation Link Safety */
.top-nav-item,
.mobile-menu a {
  color: rgba(255, 255, 255, 0.7) !important;
}

.top-nav-item:hover,
.top-nav-item.active {
  color: #F1AF2C !important;
  /* Keep the gold accent */
}

/* 7. Debug Fallback */
* {
  outline: none;
}

/* 8. Fix for subtext styles previously using blunt !important */
[style*="rgba(255, 255, 255, 0.6)"] {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* =========================================================
       WHITE & GOLD PREMIUM DESIGN SYSTEM
   ========================================================= */

/* 1. Global Layout (White Base) */
:root {
  --primary-gold: #F1AF2C;
  --dark-text: #0b1220;
  --white-text: #FFFFFF;
  --bg-main: #FFFFFF;
}

body {
  background-color: var(--bg-main) !important;
  color: var(--dark-text) !important;
}

/* 2. Primary Visibility (Black Text on White) */
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div,
section,
.main-content {
  color: inherit !important;
  /* Inherits from body (dark-text) */
}

/* 3. Gold Navigation & Components */
#header.scrolled,
.glass-strong,
.top-nav {
  background: rgba(241, 175, 44, 0.15) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(241, 175, 44, 0.3) !important;
}

/* Nav Links Context */
.top-nav-item,
.mobile-menu a {
  color: var(--dark-text) !important;
}

.top-nav-item:hover,
.top-nav-item.active {
  color: var(--primary-gold) !important;
}

/* 4. Gold Cards (Service-Card) */
.service-card,
.project-card {
  background: var(--primary-gold) !important;
  color: var(--white-text) !important;
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(241, 175, 44, 0.15);
  transition: 0.3s ease-in-out;
}

.service-card p,
.service-card span,
.service-card h3 {
  color: var(--white-text) !important;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(241, 175, 44, 0.3);
}

/* 5. Gold Buttons */
button,
.btn,
.btn-contact,
a[class*="btn-"] {
  background: var(--primary-gold) !important;
  color: var(--white-text) !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 24px;
  font-weight: 600;
  transition: 0.25s ease;
}

button:hover,
.btn:hover {
  background: #d9991f !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(241, 175, 44, 0.4);
}

/* 6. Fix for Theme Toggles (Visual contrast) */
.theme-toggle {
  border-color: var(--primary-gold) !important;
  color: var(--primary-gold) !important;
}

/* =========================================================
       THEME ICON VISIBILITY (Moon/Sun)
   ========================================================= */

[data-theme="dark"] #theme-toggle .icon-moon {
  display: none !important;
}

[data-theme="dark"] #theme-toggle .icon-sun {
  display: block !important;
  color: #FFFFFF !important;
}

#theme-toggle .icon-moon {
  display: block !important;
  color: #0b1220 !important;
}

#theme-toggle .icon-sun {
  display: none !important;
}

/* =========================================================
       WHITE BOX TEXT VISIBILITY (Black)
   ========================================================= */

/* Targeting cards/badges with pure white backgrounds to force black text */
[style*="background-color: rgb(255, 255, 255)"],
[style*="background-color: #ffffff"],
[style*="background: white"],
[style*="background: #fff"],
.bg-white,
.service-card[style*="background: white"] {
  color: #000000 !important;
}

/* Ensure all nested text inside these white boxes is also black */
[style*="background-color: #ffffff"] *,
[style*="background: white"] *,
.bg-white * {
  color: #000000 !important;
}

/* =========================================================
       GLOBAL WHITE BOX -> BLACK TEXT (Accessibility Fix)
   ========================================================= */

/* Any container using the light secondary background should force black text */
[style*="background: var(--bg-secondary)"],
[style*="background-color: var(--bg-secondary)"],
[style*="background: white"],
[style*="background: #ffffff"],
.bg-white {
  color: #000000 !important;
}

/* Ensure all nested text elements inside these containers are also forced to black */
[style*="background: var(--bg-secondary)"] div,
[style*="background: var(--bg-secondary)"] p,
[style*="background: var(--bg-secondary)"] span,
[style*="background: white"] *,
.bg-white * {
  color: #000000 !important;
}


/* =========================================================
       CORE REVEAL ANIMATIONS (Fix for Hidden Cards)
   ========================================================= */

.section-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-reveal.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Fallback for cases where JS fails */
@media (prefers-reduced-motion: reduce) {
  .section-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =========================================================
       EMERGENCY CONTENT VISIBILITY OVERRIDE
   ========================================================= */

/* Forcing all reveal-gated content to 100% opacity to resolve blank page issues. */
.section-reveal,
#about,
.service-card,
.project-card {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  display: flex !important;
  /* Matches standard member card layout */
}

/* Ensure the Member Cards flex layout is maintained */
.flex-col.md\:flex-row {
  display: flex !important;
}

/* =========================================================
       RESPONSIVENESS & SCALING ENHANCEMENTS
   ========================================================= */

/* 1. Global Responsiveness Fix */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

/* Ensure no fixed widths break layout */
[style*="width: 1000px"],
[style*="width: 1200px"] {
  width: 100% !important;
  max-width: 100% !important;
}

/* 2. Player Page Fix */
.course-content {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  padding: 0 16px;
}

.course-content pre,
.course-content code {
  overflow-x: auto;
  max-width: 100%;
}

/* 3. Text Scaling Fix */
h1 {
  font-size: clamp(24px, 4vw, 40px) !important;
}

p {
  font-size: clamp(14px, 2vw, 18px) !important;
}

/* 4. Course Card Redesign */
.service-card {
  padding: 20px !important;
  border-radius: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 100% !important;
}

.service-card h3 {
  font-size: 18px !important;
  font-weight: 600 !important;
  margin: 0 !important;
}

.small-badge {
  font-size: 12px !important;
  opacity: 0.7 !important;
}

.caption {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  margin: 0 !important;
  max-width: 100%;
}

/* 5. Grid Fix */
.grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  width: 100%;
}

/* =========================================================
       COURSE PLAYER STRICT LAYOUT ENFORCEMENT
   ========================================================= */





.module-card {
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
  background: #F1AF2C;
  padding: 30px;
  margin: 0 auto;
}

.module-card * {
  max-width: 100%;
  box-sizing: border-box;
}

pre {
  overflow-x: auto;
  background: #1e293b;
  border-radius: 10px;
  padding: 16px;
}

.module-card p {
  line-height: 1.6;
  max-width: 800px;
}

.module-card h1 {
  margin-bottom: 16px;
  color: #0b1220 !important;
}

.module-card h3 {
  margin-top: 20px;
  margin-bottom: 8px;
  color: #0b1220 !important;
}

.module-card p {
  color: #0b1220 !important;
}

/* =========================================================
       NETACAD-INSPIRED CONTENT ENHANCEMENTS
   ========================================================= */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  color: #ffffff;
  opacity: 0.6;
}

.breadcrumb span {
  opacity: 0.4;
}

.module-header {
  border-bottom: 2px solid rgba(11, 18, 32, 0.1);
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.metadata-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #0b1220;
  background: rgba(11, 18, 32, 0.05);
  padding: 4px 10px;
  border-radius: 6px;
}

/* Callout Boxes */
.callout {
  margin: 25px 0;
  padding: 20px;
  border-radius: 12px;
  border-left: 5px solid;
  background: rgba(255, 255, 255, 0.4);
}

.callout-info {
  border-left-color: #0891b2;
}

.callout-tip {
  border-left-color: #22c55e;
}

.callout-warning {
  border-left-color: #ef4444;
}

.callout-label {
  display: block;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  opacity: 0.8;
}

/* ===== NETACAD-INSPIRED PLAYER LAYOUT ===== */
.player-layout {
  display: flex;
  min-height: calc(100vh - 80px);
  /* Adjust for header height if needed */
  background: var(--bg-primary);
  overflow: hidden;
}

/* Sidebar */
.player-sidebar {
  width: 320px;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  height: calc(100vh - 80px);
  position: sticky;
  top: 80px;
  overflow-y: auto;
  transition: all 0.3s ease;
  z-index: 40;
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid #e2e8f0;
  background: white;
}

.sidebar-header h2 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.sidebar-content {
  padding: 12px 0;
}

.sidebar-module-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 4px solid transparent;
  color: #475569;
  font-size: 0.9375rem;
  font-weight: 500;
}

.sidebar-module-item:hover {
  background: #f1f5f9;
  color: #0b1220;
}

.sidebar-module-item.active {
  background: #f0f9ff;
  color: #0369a1;
  border-left-color: #F1AF2C;
  font-weight: 600;
}

.sidebar-module-number {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 0.75rem;
  border-radius: 6px;
  background: #e2e8f0;
  color: #64748b;
}

.active .sidebar-module-number {
  background: #F1AF2C;
  color: #0b1220;
}

/* Main Content Area */
.player-main {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  background: white;
}

.player-header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f1f5f9;
}

/* Scrollbar for sidebar */
.player-sidebar::-webkit-scrollbar {
  width: 5px;
}

.player-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.player-sidebar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

@media (max-width: 1024px) {
  .player-sidebar {
    position: fixed;
    left: -320px;
    top: 80px;
    bottom: 0;
  }

  .player-sidebar.open {
    left: 0;
  }
}

/* Progress Enhancements */
.progress-meter {
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #F1AF2C, #FFD700);
  box-shadow: 0 0 10px rgba(241, 175, 44, 0.5);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================
   FIXED GRID SYSTEM FOR COURSES
   ========================================================= */
.container-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .container-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .container-grid {
    grid-template-columns: 1fr;
  }
}