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

:root {
  --primary: #1a1a2e;
  --accent: #e63946;
  --accent-soft: #ff6b6b;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-gray: #f0f2f5;
  --mid-gray: #e2e8f0;
  --text-dark: #1a1a2e;
  --text-mid: #4a5568;
  --text-light: #718096;
  --border: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  direction: rtl;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── NAV ─────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-mid);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover { color: var(--accent); }

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  transition: var(--transition) !important;
}

.nav-cta:hover {
  background: var(--accent) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── HERO ─────────────────────────────────── */
.hero {
  padding: 100px 5% 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(230,57,70,0.08);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(230,57,70,0.2);
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary);
  margin-bottom: 1.2rem;
}

.hero h1 .highlight {
  color: var(--accent);
  position: relative;
}

.typing-wrapper {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-mid);
  min-height: 2.5em;
  margin-bottom: 2rem;
  font-weight: 400;
}

#typed-text {
  color: var(--primary);
  font-weight: 600;
  border-left: 3px solid var(--accent);
  padding-left: 4px;
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  50% { border-color: transparent; }
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  background: #c1121f;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(230,57,70,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  border: 2px solid var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: var(--transition);
}

.video-placeholder:hover { transform: scale(1.02); }

.video-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(230,57,70,0.3) 0%, rgba(26,26,46,0.8) 100%);
}

.play-btn {
  width: 72px;
  height: 72px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 15px rgba(255,255,255,0.15);
  transition: var(--transition);
}

.play-btn::after {
  content: '';
  border-style: solid;
  border-width: 12px 0 12px 22px;
  border-color: transparent transparent transparent var(--accent);
  margin-right: -4px;
}

.video-placeholder:hover .play-btn {
  transform: scale(1.1);
  box-shadow: 0 0 0 20px rgba(255,255,255,0.2);
}

.video-label {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 1;
  white-space: nowrap;
}

/* ─── SECTION COMMON ─────────────────────────────────── */
section { padding: 90px 5%; }

.section-inner { max-width: 1300px; margin: 0 auto; }

.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 0.8rem;
  display: block;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 600px;
}

/* ─── WHY US ─────────────────────────────────── */
.why-us { background: var(--off-white); }

.why-header { text-align: center; margin-bottom: 3.5rem; }
.why-header .section-sub { margin: 0 auto; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 0;
  background: var(--accent);
  transition: var(--transition);
  border-radius: 0 var(--radius) 0 0;
}

.why-card:hover::before { height: 100%; }

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(230,57,70,0.2);
}

.why-icon {
  width: 56px;
  height: 56px;
  background: rgba(230,57,70,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.why-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  color: var(--primary);
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* ─── COURSES ─────────────────────────────────── */
.courses { background: var(--white); }

.courses-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.course-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.course-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--primary) 0%, #2d2d5e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}

.course-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.4) 100%);
}

.course-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: var(--accent);
  color: var(--white);
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  z-index: 1;
}

.course-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.course-meta span {
  font-size: 0.78rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.course-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.course-body p {
  font-size: 0.82rem;
  color: var(--text-light);
  flex: 1;
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: auto;
}

.course-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.course-price .old {
  font-size: 0.8rem;
  color: var(--text-light);
  text-decoration: line-through;
  font-weight: 400;
  display: block;
  line-height: 1;
}

.btn-enroll {
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
  font-family: inherit;
  border: none;
  cursor: pointer;
}

.btn-enroll:hover { background: var(--accent); }

/* ─── VIDEO SECTION ─────────────────────────────────── */
.video-section { background: var(--light-gray); }

.video-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.video-embed {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--primary);
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-content .section-sub { margin-bottom: 2rem; }

.stats-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.3rem;
}

/* ─── TESTIMONIALS ─────────────────────────────────── */
.testimonials { background: var(--white); }

.testimonials-header { text-align: center; margin-bottom: 3rem; }
.testimonials-header .section-sub { margin: 0 auto; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}

.testimonial-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.quote-icon {
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 0.5rem;
  font-family: Georgia, serif;
}

.testimonial-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--white);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.author-info strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

.author-info span {
  font-size: 0.78rem;
  color: var(--text-light);
}

.stars {
  color: #ffd700;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

/* ─── ACCREDITATIONS ─────────────────────────────────── */
.accreditations { background: var(--primary); color: var(--white); }

.accreditations .section-title { color: var(--white); }
.accreditations .section-tag { color: rgba(255,255,255,0.6); }

.accr-header { text-align: center; margin-bottom: 3rem; }
.accr-header .section-sub { color: rgba(255,255,255,0.6); margin: 0 auto; }

.accr-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.accr-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.accr-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-4px);
  border-color: rgba(230,57,70,0.5);
}

.accr-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.accr-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.accr-card p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* ─── FOOTER ─────────────────────────────────── */
footer {
  background: #12121f;
  color: rgba(255,255,255,0.7);
  padding: 3rem 5%;
  text-align: center;
}

.footer-inner { max-width: 1300px; margin: 0 auto; }

.footer-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-logo span { color: var(--accent); }

.footer-tagline {
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--accent); }

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.4;
}

/* ─── MODAL ─────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 3rem;
  max-width: 460px;
  width: 100%;
  position: relative;
  animation: modalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
  padding: 0.3rem;
  transition: var(--transition);
  font-family: inherit;
}

.modal-close:hover { color: var(--accent); }

.modal h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.modal-sub {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 1.8rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition);
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  direction: rtl;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230,57,70,0.1);
}

.form-group textarea { resize: vertical; min-height: 90px; }

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  font-size: 0.82rem;
}

.form-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* ─── AUTH PAGES ─────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
  padding: 2rem;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 3rem;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo .logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

.auth-logo .logo-text span { color: var(--accent); }

.auth-role {
  display: inline-block;
  background: rgba(230,57,70,0.08);
  color: var(--accent);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.5rem;
  border: 1px solid rgba(230,57,70,0.2);
}

.auth-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.4rem;
  color: var(--primary);
}

.auth-card .auth-sub {
  text-align: center;
  color: var(--text-light);
  font-size: 0.88rem;
  margin-bottom: 2rem;
}

.auth-divider {
  text-align: center;
  color: var(--text-light);
  font-size: 0.82rem;
  margin: 1.2rem 0;
  position: relative;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border);
}

.auth-divider::before { right: 0; }
.auth-divider::after { left: 0; }

.btn-full {
  width: 100%;
  text-align: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

/* ─── DASHBOARD ─────────────────────────────────── */
.dashboard {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--primary);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sidebar-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo span { color: var(--accent); }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.sidebar-link:hover, .sidebar-link.active {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

.sidebar-link.active { background: rgba(230,57,70,0.2); color: var(--accent); }

.sidebar-icon { font-size: 1.1rem; }

.main-area { background: var(--off-white); padding: 2.5rem; overflow-y: auto; }

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.dash-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.stat-card .label {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.stat-card .value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-card .change {
  font-size: 0.78rem;
  color: #22c55e;
  margin-top: 0.3rem;
}

/* COURSE FORM */
.admin-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.admin-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.lessons-list { display: flex; flex-direction: column; gap: 0.6rem; }

.lesson-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--off-white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.lesson-item input { flex: 1; border: none; background: none; font-family: inherit; font-size: 0.88rem; }
.lesson-item input:focus { outline: none; }

.btn-add-lesson {
  background: none;
  border: 1.5px dashed var(--border);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text-light);
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  margin-top: 0.4rem;
}

.btn-add-lesson:hover { border-color: var(--accent); color: var(--accent); }

/* ─── STUDENT DASHBOARD ─────────────────────────────────── */
.my-courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.my-course-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.my-course-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.my-course-thumb {
  height: 130px;
  background: linear-gradient(135deg, var(--primary), #2d2d5e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  position: relative;
}

.progress-badge {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  background: rgba(0,0,0,0.7);
  color: var(--white);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
}

.my-course-body { padding: 1.2rem; }

.my-course-body h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--primary);
}

.progress-bar {
  background: var(--mid-gray);
  border-radius: 50px;
  height: 6px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 50px;
  transition: width 0.8s ease;
}

.progress-text {
  font-size: 0.75rem;
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
}

.continue-btn {
  display: block;
  text-align: center;
  margin-top: 0.8rem;
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  width: 100%;
  font-family: inherit;
}

.continue-btn:hover { background: var(--accent); }

/* ─── COURSE PLAYER ─────────────────────────────────── */
.player-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  min-height: 100vh;
  background: var(--off-white);
}

.player-main { padding: 2rem; }

.player-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.back-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.back-link:hover { color: var(--accent); }

.player-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.player-video {
  background: #000;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-video iframe { width: 100%; height: 100%; border: none; }

.video-demo {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  gap: 1rem;
}

.video-demo .play-big {
  width: 80px;
  height: 80px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.video-demo .play-big:hover { transform: scale(1.1); }

.video-demo .play-big::after {
  content: '';
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent var(--white);
  margin-right: -5px;
}

.lesson-desc {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.lesson-desc h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.lesson-desc p { font-size: 0.88rem; color: var(--text-light); line-height: 1.8; }

.player-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.player-sidebar { border-right: 1px solid var(--border); background: var(--white); display: flex; flex-direction: column; }

.sidebar-header { padding: 1.5rem; border-bottom: 1px solid var(--border); }

.sidebar-header h3 { font-size: 0.95rem; font-weight: 700; color: var(--primary); }

.sidebar-header .progress-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.lessons-nav { flex: 1; overflow-y: auto; }

.lesson-nav-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.5rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.lesson-nav-item:hover { background: var(--off-white); }

.lesson-nav-item.active { background: rgba(230,57,70,0.06); }

.lesson-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: var(--transition);
}

.lesson-check.done { border-color: #22c55e; background: #22c55e; color: var(--white); }
.lesson-check.current { border-color: var(--accent); }

.lesson-nav-info .lesson-nav-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.3;
}

.lesson-nav-info .lesson-nav-dur {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ─── BLOG ─────────────────────────────────── */
.blog-hero {
  background: var(--primary);
  color: var(--white);
  padding: 80px 5%;
  text-align: center;
}

.blog-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.blog-hero p { color: rgba(255,255,255,0.7); font-size: 1rem; max-width: 500px; margin: 0 auto; }

.blog-section { padding: 80px 5%; background: var(--off-white); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1300px;
  margin: 0 auto;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.blog-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--primary), #2d2d5e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.blog-body { padding: 1.5rem; }

.blog-cat {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.6rem;
}

.blog-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.blog-body p { font-size: 0.85rem; color: var(--text-light); line-height: 1.7; margin-bottom: 1rem; }

.blog-meta { display: flex; justify-content: space-between; align-items: center; }

.blog-meta span { font-size: 0.78rem; color: var(--text-light); }

.blog-meta a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
}

.blog-meta a:hover { text-decoration: underline; }

/* ─── NEW COURSES BANNER ─────────────────────────────────── */
.new-courses-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #c1121f 100%);
  margin: 1.5rem 0;
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.new-courses-banner h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
}

.new-courses-banner p { font-size: 0.85rem; color: rgba(255,255,255,0.8); }

.btn-banner {
  background: var(--white);
  color: var(--accent);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
  font-family: inherit;
  border: none;
  cursor: pointer;
}

.btn-banner:hover { background: rgba(255,255,255,0.9); }

/* ─── TOAST ─────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary);
  color: var(--white);
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 2000;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .accr-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-cards { grid-template-columns: repeat(2, 1fr); }
  .my-courses-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  nav.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    inset-inline: 0;
    background: var(--white);
    padding: 2rem;
    gap: 1.5rem;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    z-index: 99;
  }
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 60px; }
  .hero-visual { order: -1; }
  .why-grid { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: 1fr; }
  .video-wrapper { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .accr-grid { grid-template-columns: 1fr 1fr; }
  .dashboard { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .player-layout { grid-template-columns: 1fr; }
  .player-sidebar { border-right: none; border-top: 1px solid var(--border); }
  .blog-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-cards { grid-template-columns: repeat(2, 1fr); }
  .my-courses-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  section { padding: 60px 5%; }
  .accr-grid { grid-template-columns: 1fr; }
  .modal { padding: 2rem 1.5rem; }
  .stats-cards { grid-template-columns: 1fr 1fr; }
}
