/* ===== ROOT VARIABLES ===== */
:root {
  --section-padding: 80px;
  --section-padding-sm: 60px;
  --gap-sm: 16px;
  --gap-md: 24px;
  --gap-lg: 32px;

  --h1: 64px;
  --h2: 44px;
  --h3: 22px;
  --text-lg: 20px;
  --text-md: 16px;
  --text-sm: 14px;
}

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

img {
  max-width: 100%;
  height: auto;
}

html {
  font-size: 18px;
  background: #000;
}

body {
  font-family: 'Inter', sans-serif;
  background: #000;
  color: #fff;
  letter-spacing: 0.2px;
  overflow-x: hidden;
}

/* ===== GLOBAL CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== TYPOGRAPHY ===== */
h1 {
  font-size: var(--h1);
  line-height: 1.1;
}

h2 {
  font-size: var(--h2);
}

h3 {
  font-size: var(--h3);
}

p {
  color: #aaa;
  line-height: 1.6;
}

/* ===== CARDS ===== */
.card {
  background: rgba(10,10,10,0.7);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(58,175,185,0.3);
  box-shadow: 0 0 40px rgba(58,175,185,0.15);
}

/* ===== BUTTONS ===== */
.btn {
  padding: 16px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.btn.primary {
  background: linear-gradient(135deg, #3AAFB9, #00c3ff);
  color: #000;
  box-shadow: 0 0 20px rgba(58,175,185,0.4);
}

.btn.secondary {
  border: 1px solid rgba(58,175,185,0.4);
  color: #3AAFB9;
}

/* ===== TAGS ===== */
.tag {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(58,175,185,0.1);
  border: 1px solid rgba(58,175,185,0.3);
  color: #3AAFB9;
}

/* ===== GRID SYSTEM ===== */
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-lg);
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-links {
  display: flex;
  gap: var(--gap-lg);
}

.navbar a {
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.navbar a:hover {
  color: #3AAFB9;
  transform: translateY(-2px);
}

.logo img {
  height: 30px;
}

/* ===== FOOTER ===== */
footer {
  margin-top: 80px;
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  text-align: left;
  max-width: 330px;
}

.footer-brand h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.footer-brand p {
  font-size: 14px;
  color: #777;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: #3AAFB9;
}

.footer-socials {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

.footer-socials a {
  color: #aaa;
  font-size: 18px;
}

.footer-socials a:hover {
  color: #3AAFB9;
}

.dashboard-page {
  padding: 60px 20px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;

  padding: 30px;
  margin-bottom: 40px;
}

.hero-content h2 {
  margin: 10px 0;
}

.hero-content p {
  color: #aaa;
  max-width: 500px;
}

.hero-progress {
  text-align: center;
}

.hero-progress h3 {
  font-size: 32px;
  color: #3AAFB9;
}

.dashboard-courses h2 {
  margin-bottom: 20px;
}

.course-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.course-card h3 {
  margin: 12px 0 6px;
}

.course-card p {
  color: #aaa;
}

.course-progress {
  margin-top: 12px;
}

.progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-bar div {
  height: 100%;
  background: linear-gradient(90deg, #3AAFB9, #00c3ff);
}

/* COURSE PAGE */
.lesson-item h3 {
  margin-bottom: 4px;
}

.lesson-item p {
  font-size: 13px;
  color: #aaa;
}

.course-page {
  padding: 60px 20px;
}

.course-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;

  padding: 30px;
  margin-bottom: 40px;
}

.course-hero h1 {
  margin: 10px 0;
}

.course-hero p {
  color: #aaa;
  max-width: 500px;
}

.hero-meta {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  color: #777;
  font-size: 14px;
}

.hero-progress {
  text-align: center;
}

.hero-progress h3 {
  font-size: 32px;
  color: #3AAFB9;
}

.course-lessons h2 {
  margin-bottom: 20px;
}

.lesson-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lesson-item {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 16px 20px;
  border-radius: 12px;

  text-decoration: none;
  color: inherit;
}
/* LESSON TYPES */
.lesson-item.completed {
  color: #3AAFB9;
}

.lesson-item.active {
  border: 1px solid rgba(58,175,185,0.3);
  background: rgba(58,175,185,0.1);
}
.lesson-item.locked {
  opacity: 0.4;
  pointer-events: none;
}

.lesson-left {
  display: flex;
  gap: 14px;
  align-items: center;
}

.lesson-number {
  width: 32px;
  height: 32px;

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

  border-radius: 8px;

  background: rgba(58,175,185,0.2);
  color: #3AAFB9;
  font-weight: 600;
}

.lesson-status {
  font-size: 12px;
  color: #777;
}


/* LESSON PAGES */

.lesson-page {
  padding: 60px 20px;
}

.lesson-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.lesson-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lesson-meta {
  color: #777;
  font-size: 14px;
}

.lesson-content {
  line-height: 1.7;
  color: #ddd;
}

.lesson-content h2 {
  margin-top: 30px;
  margin-bottom: 10px;
}

.lesson-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lesson-progress {
  padding: 20px;
}

.lesson-nav {
  padding: 20px;
}

.lesson-nav h3 {
  margin-bottom: 10px;
}

.lesson-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;

  text-decoration: none;
  color: #aaa;

  transition: all 0.2s ease;
}

.lesson-item span {
  color: #3AAFB9;
}

/* LESSON STATES */

.lesson-item.completed {
  color: #3AAFB9;
}

.lesson-item.active {
  background: rgba(58,175,185,0.1);
  border: 1px solid rgba(58,175,185,0.3);
}

.lesson-item.locked {
  opacity: 0.4;
  pointer-events: none;
}

.lesson-item:hover {
  background: rgba(255,255,255,0.05);
}

.lesson-actions {
  margin-top: 20px;
}

/* VIDEO WRAPPER */
.post-video {
  margin: 24px 0;
  border-radius: 16px;
  overflow: hidden;

  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.05);

  box-shadow: 0 0 30px rgba(0,0,0,0.4);
}

/* RESPONSIVE VIDEO */
.post-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}


/* ===== MOBILE ===== */
@media (max-width: 768px) {

  .course-grid {
    grid-template-columns: 1fr;
  }

  .navbar {
    justify-content: space-between;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    margin: 0 auto;
    text-align: center;
  }

  .footer-links {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
  }

  .footer-socials {
    justify-content: center;
  }
.dashboard-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-progress {
    margin-top: 10px;
  }
.course-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-meta {
    justify-content: center;
  }
	
 .lesson-layout {
    grid-template-columns: 1fr;
  }

  .lesson-sidebar {
    order: -1; /* move above content */
  }

}