@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;800&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --orange: #E8441A;
  --orange-light: #FF6B42;
  --cream: #F7F3EB;
  --dark: #0D0D0D;
  --dark-2: #1A1A1A;
  --mid: #3A3A3A;
  --muted: #888;
  --border: #E0DAD0;
  --white: #FFFFFF;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.14);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--dark);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem 2.5rem;
  background: rgba(247,243,235,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.nav-brand span { color: var(--orange); }

.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--dark); }
.nav-links a.active::after,
.nav-links a:hover::after { width: 100%; }

.nav-user { margin-left: 1.5rem; }
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  font-size: .8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 6rem 2.5rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-tag {
  display: inline-block;
  background: var(--orange);
  color: white;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: .35rem .8rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}
.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 1.2rem;
}
.hero-text h1 em {
  color: var(--orange);
  font-style: normal;
}
.hero-text p {
  color: var(--mid);
  max-width: 420px;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.btn-primary {
  display: inline-block;
  background: var(--dark);
  color: white;
  padding: .85rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.btn-primary:hover {
  background: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,68,26,0.3);
}
.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--dark);
  padding: .75rem 1.4rem;
  border-radius: 50px;
  font-weight: 500;
  font-family: var(--font-body);
  font-size: .9rem;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-ghost:hover {
  border-color: var(--dark);
  background: var(--dark);
  color: white;
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hero-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.hc-icon { font-size: 1.8rem; }
.hc-title {
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .4rem;
}
.hc-sub {
  font-size: .8rem;
  color: var(--muted);
  margin-top: .3rem;
}
.hc-big {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
}
.progress-bar {
  background: #EEE;
  border-radius: 10px;
  height: 8px;
  width: 160px;
  overflow: hidden;
}
.progress-fill {
  background: var(--orange);
  height: 100%;
  border-radius: 10px;
  transition: width 1s ease;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.floating { animation: float 4s ease-in-out infinite; }
.delay-1  { animation-delay: .8s;  margin-left: 2rem; }
.delay-2  { animation-delay: 1.6s; margin-left: 1rem; }

.categories {
  padding: 1rem 0 2rem;
  border-bottom: 1px solid var(--border);
}
.section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.cat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.cat-chip {
  padding: .5rem 1.2rem;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--mid);
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.cat-chip:hover,
.cat-chip.active {
  background: var(--dark);
  color: white;
  border-color: var(--dark);
}

.courses-section { padding: 4rem 0; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: .8rem;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: .5rem 1.2rem;
}
.search-box input {
  border: none;
  outline: none;
  background: none;
  font-family: var(--font-body);
  font-size: .9rem;
  width: 220px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.course-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.course-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
}
.course-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: white;
  color: var(--dark);
  font-size: .7rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.course-body {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.course-cat {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--orange);
  margin-bottom: .5rem;
}
.course-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .5rem;
  line-height: 1.3;
}
.course-meta {
  display: flex;
  gap: 1rem;
  color: var(--muted);
  font-size: .8rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.course-progress { margin-top: auto; }
.course-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  margin-bottom: .4rem;
}
.course-progress-label span:last-child {
  color: var(--orange);
  font-weight: 600;
}
.course-footer {
  padding: 1rem 1.2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.course-rating {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .85rem;
  font-weight: 600;
}
.stars { color: #F59E0B; }
.course-enroll {
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 50px;
  padding: .45rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}
.course-enroll:hover { background: var(--dark); }

.dashboard-main { padding: 4rem 0; }
.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.dash-header h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -1px;
}
.dash-header h1 em {
  color: var(--orange);
  font-style: normal;
}
.dash-sub {
  color: var(--muted);
  margin-top: .3rem;
}
.dash-date {
  color: var(--muted);
  font-size: .9rem;
  padding-top: .5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}
.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: all var(--transition);
  border-top: 4px solid var(--accent, var(--orange));
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.stat-icon {
  font-size: 1.6rem;
  margin-bottom: .7rem;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -1px;
}
.stat-label {
  color: var(--muted);
  font-size: .85rem;
  margin-top: .2rem;
}

.dash-two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.dash-panel {
  background: white;
  border-radius: var(--radius);
  padding: 1.8rem;
  border: 1px solid var(--border);
}
.dash-panel.wide { grid-column: 1 / -1; }
.dash-panel h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.progress-course-item { margin-bottom: 1.5rem; }
.pci-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: .4rem;
}
.pci-name { font-weight: 600; font-size: .9rem; }
.pci-pct { font-size: .82rem; color: var(--orange); font-weight: 700; }
.pci-bar {
  background: #EEE;
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
}
.pci-fill {
  background: var(--orange);
  height: 100%;
  border-radius: 10px;
  transition: width 1s ease;
}
.pci-meta {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .3rem;
}

.activity-chart {
  display: flex;
  align-items: flex-end;
  gap: .5rem;
  height: 100px;
  margin-bottom: .5rem;
}
.activity-bar {
  flex: 1;
  background: var(--border);
  border-radius: 4px;
  transition: all var(--transition);
  cursor: pointer;
}
.activity-bar.today { background: var(--orange); }
.activity-bar:hover { opacity: .8; }
.activity-labels {
  display: flex;
  gap: .5rem;
}
.activity-labels span {
  flex: 1;
  text-align: center;
  font-size: .72rem;
  color: var(--muted);
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.recent-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  cursor: pointer;
}
.recent-item:hover { background: var(--cream); }
.ri-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.ri-info { flex: 1; }
.ri-title { font-weight: 600; font-size: .9rem; }
.ri-sub { font-size: .78rem; color: var(--muted); margin-top: .1rem; }
.ri-action {
  font-size: .82rem;
  color: var(--orange);
  font-weight: 600;
  white-space: nowrap;
}

.lesson-main { padding: 2.5rem 0; }
.lesson-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  align-items: flex-start;
}

.breadcrumb {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.breadcrumb a { color: var(--orange); }
.breadcrumb a:hover { text-decoration: underline; }

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
  box-shadow: var(--shadow-lg);
  margin-bottom: 1.5rem;
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.lesson-info { margin-bottom: 2rem; }
.lesson-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: .8rem;
}
.lesson-tag {
  background: var(--cream);
  color: var(--mid);
  padding: .25rem .8rem;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .5px;
}
.lesson-dur { font-size: .82rem; color: var(--muted); }
.lesson-info h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: .6rem;
  letter-spacing: -.5px;
}
.lesson-info p { color: var(--mid); max-width: 600px; }
.lesson-actions {
  display: flex;
  gap: .8rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.lesson-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}
.tab-btn {
  padding: .8rem 1.4rem;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  transition: all var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.tab-btn:hover { color: var(--dark); }
.tab-btn.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
  font-weight: 700;
}
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.notes-list li {
  padding: .8rem 1rem;
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: .9rem;
}

.resource-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.resource-list li { font-size: .9rem; }
.resource-list a { color: var(--orange); }
.resource-list a:hover { text-decoration: underline; }

.comment-box {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin-bottom: 1.5rem;
}
.comment-box textarea {
  width: 100%;
  padding: .9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-family: var(--font-body);
  font-size: .9rem;
  resize: vertical;
  min-height: 80px;
  outline: none;
  background: white;
}
.comment-box textarea:focus { border-color: var(--orange); }

.comment {
  display: flex;
  gap: .8rem;
  margin-bottom: 1rem;
}
.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.comment-body .comment-name {
  font-weight: 600;
  font-size: .85rem;
}
.comment-body .comment-text {
  font-size: .85rem;
  color: var(--mid);
  margin-top: .2rem;
}
.comment-body .comment-time {
  font-size: .75rem;
  color: var(--muted);
  margin-top: .2rem;
}

.lesson-sidebar {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.sidebar-title {
  padding: 1.2rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
}
.curriculum {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}
.curriculum::-webkit-scrollbar { width: 4px; }
.curriculum::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.module-group { border-bottom: 1px solid var(--border); }
.module-header {
  padding: .9rem 1.5rem;
  font-weight: 600;
  font-size: .85rem;
  background: var(--cream);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.module-header span {
  font-size: .75rem;
  color: var(--muted);
  font-weight: 400;
}
.lesson-item {
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: .85rem;
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid #F5F5F5;
}
.lesson-item:hover { background: var(--cream); }
.lesson-item.active {
  background: #FFF2EE;
  color: var(--orange);
  font-weight: 600;
}
.lesson-item.done { color: var(--muted); }
.lesson-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  flex-shrink: 0;
}
.lesson-item.done .lesson-check {
  background: #16A34A;
  border-color: #16A34A;
  color: white;
}
.lesson-item.active .lesson-check {
  border-color: var(--orange);
}
.lesson-dur-sm {
  margin-left: auto;
  font-size: .75rem;
  color: var(--muted);
  white-space: nowrap;
}

.footer {
  padding: 2.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .85rem;
  margin-top: 4rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: .5rem;
}
.footer-brand span { color: var(--orange); }


@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.course-card { animation: fadeUp .4s ease both; }
.course-card:nth-child(1) { animation-delay: .05s; }
.course-card:nth-child(2) { animation-delay: .10s; }
.course-card:nth-child(3) { animation-delay: .15s; }
.course-card:nth-child(4) { animation-delay: .20s; }
.course-card:nth-child(5) { animation-delay: .25s; }
.course-card:nth-child(6) { animation-delay: .30s; }

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
  }
  .hero-visual {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-card { flex: 1; min-width: 180px; }
  .delay-1, .delay-2 { margin-left: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-two-col { grid-template-columns: 1fr; }
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-sidebar { position: static; }
}
@media (max-width: 600px) {
  .nav { padding: 1rem; }
  .nav-links { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-text h1 { font-size: 2.5rem; }
}