/* ============================================================
   EDULUX — UNIFIED STYLESHEET  (index.html + course.html)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

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

/* ===================== VARIABLES ===================== */
:root {
  --blue: #60a5fa;
  --purple: #a78bfa;
  --purple-light: #c4b5fd;
  --blue-v: #2563eb;
  --purple-v: #7c3aed;

  --s1: rgba(255, 255, 255, .04);
  --s2: rgba(255, 255, 255, .07);
  --s3: rgba(255, 255, 255, .10);

  --t1: #f1f5f9;
  --t2: #94a3b8;
  --t3: #64748b;

  --border: rgba(148, 163, 184, .12);
  --border-h: rgba(167, 139, 250, .35);

  --grad: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --grad-card: linear-gradient(160deg, rgba(14, 26, 64, .92) 0%, rgba(36, 18, 72, .88) 100%);

  --sh-sm: 0 4px 16px rgba(0, 0, 0, .4);
  --sh-md: 0 10px 40px rgba(37, 13, 80, .55);
  --sh-lg: 0 20px 60px rgba(37, 13, 80, .7);
  --sh-glow: 0 0 30px rgba(124, 58, 237, .25);

  --r: 14px;
  --rsm: 8px;
  --rlg: 20px;
}

/* ===================== BASE ===================== */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Cairo', 'Segoe UI', sans-serif;
  color: var(--t1);
  background: linear-gradient(160deg, #060d1f 0%, #0b1a40 50%, #160b38 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  line-height: 1.3;
}

p {
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

ul {
  list-style: none;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, .4);
  border-radius: 99px;
}

/* ===================== HEADER ===================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(6, 13, 31, .88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: background .3s, box-shadow .3s;
}

header.scrolled {
  background: rgba(6, 13, 31, .97);
  border-bottom-color: rgba(167, 139, 250, .2);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .5);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5%;
  max-width: 1400px;
  margin: 0 auto;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
}

.logo i {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(124, 58, 237, .5));
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: var(--t2);
  font-weight: 600;
  font-size: .9rem;
  position: relative;
  transition: color .25s;
  cursor: pointer;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: width .3s;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-buttons {
  display: flex;
  gap: .65rem;
  flex-shrink: 0;
}

.btn-login {
  padding: .6rem 1.3rem;
  background: transparent;
  color: var(--t2);
  border: 1.5px solid var(--border);
  border-radius: var(--rsm);
  cursor: pointer;
  font-weight: 600;
  font-size: .85rem;
  transition: all .25s;
}

.btn-login:hover {
  color: var(--t1);
  border-color: var(--border-h);
  background: var(--s1);
}

.btn-signup {
  padding: .6rem 1.5rem;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: var(--rsm);
  cursor: pointer;
  font-weight: 700;
  font-size: .85rem;
  transition: all .25s;
  box-shadow: 0 4px 14px rgba(124, 58, 237, .35);
}

.btn-signup:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(124, 58, 237, .5);
}

/* ---- Hamburger ---- */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  border-radius: var(--rsm);
  transition: background .2s;
  flex-shrink: 0;
}

.hamburger-menu:hover {
  background: var(--s1);
}

.hamburger-menu span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--t1);
  border-radius: 2px;
  transition: all .3s;
}

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

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

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

/* ---- Mobile Menu ---- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  background: rgba(6, 13, 31, .99);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  z-index: 999;
  max-height: calc(100vh - 65px);
  overflow-y: auto;
}

.mobile-menu.active {
  display: flex;
  animation: menuDown .25s ease-out;
}

@keyframes menuDown {
  from {
    opacity: 0;
    transform: translateY(-10px)
  }

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

.mobile-menu li {
  border-bottom: 1px solid var(--border);
}

.mobile-menu li:last-child {
  border-bottom: none;
  padding-bottom: 1.5rem;
}

.mobile-menu li a {
  display: block;
  padding: 1.1rem 2rem;
  color: var(--t2);
  font-weight: 600;
  font-size: .95rem;
  transition: all .2s;
  text-align: right;
}

.mobile-menu li a:hover {
  color: var(--t1);
  background: var(--s1);
  padding-right: 2.5rem;
}

.btn-login-mobile,
.btn-signup-mobile {
  display: block;
  width: calc(100% - 3rem);
  margin: .6rem 1.5rem;
  padding: .85rem;
  border-radius: var(--rsm);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: all .25s;
  font-family: inherit;
}

.btn-login-mobile {
  background: transparent;
  color: var(--t2);
  border: 1.5px solid var(--border);
}

.btn-login-mobile:hover {
  background: var(--s1);
  color: var(--t1);
}

.btn-signup-mobile {
  background: var(--grad);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(124, 58, 237, .35);
}

/* ===================== HERO ===================== */
.hero {
  padding-top: 110px;
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, .12) 0%, transparent 65%);
  top: -180px;
  right: -120px;
  pointer-events: none;
  animation: orb 9s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, .09) 0%, transparent 65%);
  bottom: -120px;
  left: -100px;
  pointer-events: none;
  animation: orb 12s ease-in-out infinite reverse;
}

@keyframes orb {

  0%,
  100% {
    transform: translateY(0) scale(1)
  }

  50% {
    transform: translateY(28px) scale(1.04)
  }
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  letter-spacing: -.5px;
}

.hero-content p {
  font-size: 1.05rem;
  color: var(--t2);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-primary {
  padding: .9rem 2.1rem;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: .97rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s;
  box-shadow: 0 6px 20px rgba(124, 58, 237, .4);
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, .55);
}

.btn-primary i {
  color: rgba(255, 255, 255, .95);
}

.btn-secondary {
  padding: .9rem 2.1rem;
  background: var(--s1);
  color: var(--t1);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: .97rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}

.btn-secondary:hover {
  background: var(--s2);
  border-color: var(--border-h);
  transform: translateY(-4px);
}

.btn-secondary i {
  color: var(--purple-light);
}

.icon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}

.icon-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem 1.1rem;
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all .25s;
}

.icon-item:hover {
  background: var(--s2);
  border-color: var(--border-h);
  transform: translateY(-3px);
}

.icon-item i {
  font-size: 1.4rem;
  min-width: 26px;
  text-align: center;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.icon-item span {
  font-weight: 600;
  font-size: .84rem;
  color: var(--t2);
}

.hero-image {
  position: relative;
}

.hero-image-box {
  width: 100%;
  height: 460px;
  background: var(--grad-card);
  border-radius: var(--rlg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7rem;
  box-shadow: var(--sh-lg), var(--sh-glow);
  position: relative;
  overflow: hidden;
}

.hero-image-box i {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(124, 58, 237, .6));
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1)
  }

  50% {
    transform: scale(1.05)
  }
}

/* ===================== SECTION HEADER ===================== */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  display: inline-block;
  position: relative;
  margin-bottom: 1.2rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  background: var(--grad);
  border-radius: 2px;
}

.section-header p {
  font-size: 1rem;
  color: var(--t2);
  max-width: 560px;
  margin: 0 auto;
}

/* ===================== COURSES ===================== */
.courses {
  padding: 6rem 5%;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
}

/* ---- Course Card ---- */
.course-card {
  background: linear-gradient(165deg, rgba(14, 26, 64, .95) 0%, rgba(30, 14, 62, .9) 100%);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1), border-color .35s, box-shadow .35s;
  position: relative;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .3s;
  z-index: 2;
}

.course-card:hover {
  transform: translateY(-10px);
  border-color: rgba(167, 139, 250, .4);
  box-shadow: 0 16px 48px rgba(37, 13, 80, .6), 0 0 0 1px rgba(167, 139, 250, .12);
}

.course-card:hover::before {
  opacity: 1;
}

/* ✅ خط علوي ملوّن حسب المستوى */
.course-card.beginner::before {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.course-card.intermediate::before {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.course-card.advanced::before {
  background: linear-gradient(90deg, #ef4444, #f97316);
}

/* ---- صورة الكورس ---- */
.course-image {
  height: 155px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .5rem;
  border-bottom: 1px solid var(--border);
}

.course-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, .18) 0%, rgba(124, 58, 237, .22) 100%);
}

.course-image::after {
  content: '';
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, .25) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.course-image i {
  font-size: 3.4rem;
  position: relative;
  z-index: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 16px rgba(124, 58, 237, .55));
  transition: transform .3s;
}

.course-card:hover .course-image i {
  transform: scale(1.12);
  filter: drop-shadow(0 0 22px rgba(124, 58, 237, .75));
}

.course-image .tech-label {
  position: relative;
  z-index: 1;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}

/* ---- محتوى الكارت ---- */
.course-content {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: transparent;
}

/* ---- Badge ---- */
.course-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  width: fit-content;
  padding: .3rem .85rem;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 800;
  margin-bottom: .75rem;
  border: 1px solid transparent;
}

.course-badge::before {
  content: '●';
  font-size: .45rem;
  opacity: .8;
}

.course-badge.beginner {
  background: rgba(16, 185, 129, .12);
  color: #34d399;
  border-color: rgba(16, 185, 129, .22);
}

.course-badge.intermediate {
  background: rgba(245, 158, 11, .12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, .22);
}

.course-badge.advanced {
  background: rgba(239, 68, 68, .12);
  color: #f87171;
  border-color: rgba(239, 68, 68, .22);
}

.course-badge:not(.beginner):not(.intermediate):not(.advanced) {
  background: rgba(124, 58, 237, .12);
  color: var(--purple-light);
  border-color: rgba(167, 139, 250, .2);
}

.course-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--t1);
  margin-bottom: .55rem;
  line-height: 1.35;
}

.course-description {
  color: var(--t2);
  font-size: .83rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-stats {
  display: flex;
  gap: 1.2rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.stat {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: var(--t2);
}

.stat i {
  color: var(--purple);
  font-size: .9rem;
}

/* ✅ فوتر الكارت — بدون خلفية */
.course-card .course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  background: transparent !important;
  padding: 0;
  border: none;
}

.course-price {
  font-size: 1.15rem;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.course-price.free {
  background: linear-gradient(135deg, #10b981, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
}

.btn-enroll {
  padding: .52rem 1.1rem;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: .8rem;
  cursor: pointer;
  transition: all .25s;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  box-shadow: 0 3px 10px rgba(124, 58, 237, .3);
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.btn-enroll::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background .2s;
}

.btn-enroll:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 18px rgba(124, 58, 237, .5);
}

.btn-enroll:hover::after {
  background: rgba(255, 255, 255, .08);
}

.btn-enroll i {
  transition: transform .25s;
}

.btn-enroll:hover i {
  transform: rotate(90deg);
}

/* ===================== FEATURED ===================== */
.featured-section {
  background: var(--grad);
  padding: 4.5rem 5%;
  margin: 0 auto 4rem;
  max-width: 1400px;
  width: calc(100% - 10%);
  border-radius: var(--rlg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-lg);
}

.featured-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}

.featured-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
}

.featured-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.featured-text h2 {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.featured-text p {
  font-size: 1rem;
  color: rgba(255, 255, 255, .9);
  margin-bottom: 2rem;
  line-height: 1.85;
}

.featured-highlights {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin-bottom: 2.5rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: rgba(255, 255, 255, .95);
  font-size: .93rem;
  font-weight: 600;
}

.highlight-item i {
  color: rgba(255, 255, 255, .95);
  min-width: 20px;
}

.featured-btn {
  padding: .9rem 2.2rem;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .4);
  border-radius: 10px;
  font-weight: 800;
  font-size: .97rem;
  cursor: pointer;
  transition: all .25s;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: inherit;
  backdrop-filter: blur(8px);
}

.featured-btn:hover {
  background: rgba(255, 255, 255, .25);
  border-color: rgba(255, 255, 255, .7);
  transform: translateY(-3px);
}

.featured-icon-box {
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--rlg);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 370px;
  font-size: 7rem;
}

.featured-icon-box i {
  color: rgba(255, 255, 255, .95);
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, .3));
  animation: pulse 3s ease-in-out infinite;
}

/* ===================== STATS ===================== */
.stats-section {
  padding: 4.5rem 5%;
  background: rgba(255, 255, 255, .02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.8rem;
  max-width: 1400px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 1.8rem 1rem;
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all .3s;
}

.stat-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-h);
  box-shadow: var(--sh-md);
  background: var(--s2);
}

.stat-number {
  font-size: 2.3rem;
  font-weight: 900;
  margin-bottom: .35rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--t2);
  font-weight: 600;
  font-size: .9rem;
}

/* ===================== TESTIMONIALS ===================== */
.testimonials {
  padding: 6rem 5%;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.8rem;
}

.testimonial-card {
  background: var(--grad-card);
  padding: 1.9rem;
  border-radius: var(--r);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all .3s;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-h);
  box-shadow: var(--sh-md);
}

/* ✅ أيقونة الاقتباس — لون مباشر بدل gradient-clip */
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 4px;
  right: 1.3rem;
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--purple-light);
  opacity: .22;
  background: none;
  -webkit-text-fill-color: var(--purple-light);
}

.stars {
  display: flex;
  gap: .25rem;
  margin-bottom: 1.1rem;
}

.star {
  color: #fbbf24;
  font-size: .95rem;
}

.testimonial-text {
  color: var(--t2);
  font-size: .88rem;
  line-height: 1.75;
  margin-bottom: 1.4rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--border);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.author-info h4 {
  color: var(--t1);
  margin-bottom: .15rem;
  font-weight: 700;
  font-size: .9rem;
}

.author-info p {
  color: var(--t3);
  font-size: .8rem;
}

/* ===================== FOOTER (index.html) ===================== */
footer {
  background: rgba(3, 6, 15, .98);
  color: #fff;
  padding: 4rem 5%;
  border-top: 1px solid var(--border);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 3rem;
}

.footer-section h4 {
  margin-bottom: 1.4rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--t1);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.footer-section h4 i {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: .7rem;
}

.footer-section a {
  color: rgba(255, 255, 255, .65);
  font-size: .88rem;
  font-weight: 500;
  transition: color .2s;
}

.footer-section a:hover {
  color: #fff;
}

.social-links {
  display: flex;
  gap: .65rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: var(--rsm);
  background: var(--s2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t2);
  font-size: .95rem;
  transition: all .25s;
}

.social-links a:hover {
  background: var(--s3);
  border-color: var(--border-h);
  color: var(--purple-light);
  transform: translateY(-2px);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--t3);
  font-size: .85rem;
}

/* ===================== BOOKING MODAL ===================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

.modal.open {
  display: flex;
  animation: fadeIn .3s;
}

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px)
  }

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

.modal-content {
  background: linear-gradient(160deg, #0c1735 0%, #1a0e3a 100%);
  border: 1px solid var(--border);
  border-radius: var(--rlg);
  width: 90%;
  max-width: 500px;
  padding: 2.5rem;
  box-shadow: 0 25px 80px rgba(0, 0, 0, .7);
  position: relative;
  animation: slideUp .35s ease-out;
}

.modal-close {
  position: absolute;
  top: 1.4rem;
  left: 1.4rem;
  width: 36px;
  height: 36px;
  border-radius: var(--rsm);
  background: var(--s1);
  border: 1px solid var(--border);
  color: var(--t2);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s;
}

.modal-close:hover {
  color: var(--t1);
  background: var(--s2);
  transform: rotate(90deg);
}

.modal-step {
  display: none;
}

.modal-step.active {
  display: block;
  animation: fadeIn .3s;
}

.modal-step h2 {
  color: #fff;
  font-size: 1.65rem;
  text-align: center;
  font-weight: 900;
  margin-bottom: .4rem;
}

.step-indicator {
  text-align: center;
  color: var(--t3);
  font-size: .85rem;
  margin-bottom: 2rem;
}

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

.form-group label {
  display: block;
  color: var(--t2);
  font-weight: 600;
  margin-bottom: .45rem;
  font-size: .88rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .85rem 1rem;
  background: var(--s1);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  color: var(--t1);
  font-size: .9rem;
  font-family: inherit;
  transition: all .25s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(124, 58, 237, .55);
  background: var(--s2);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--t3);
}

.form-group select option {
  background: #0c1735;
  color: #fff;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.payment-option input {
  display: none;
}

.payment-box {
  padding: 1.6rem 1rem;
  background: var(--s1);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all .25s;
  color: var(--t2);
  font-weight: 600;
  font-size: .88rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
}

.payment-box i {
  font-size: 1.75rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.payment-option input:checked+.payment-box {
  background: rgba(124, 58, 237, .15);
  border-color: rgba(124, 58, 237, .5);
  color: var(--t1);
}

.form-buttons {
  display: flex;
  gap: .75rem;
}

.btn-next,
.btn-back {
  flex: 1;
  padding: .88rem;
  border-radius: 9px;
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  transition: all .25s;
}

.btn-next {
  background: var(--grad);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(124, 58, 237, .35);
}

.btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(124, 58, 237, .5);
}

.btn-back {
  background: var(--s1);
  color: var(--t2);
  border: 1.5px solid var(--border);
}

.btn-back:hover {
  background: var(--s2);
  color: var(--t1);
}

.success-content {
  text-align: center;
  padding: 1.5rem 0;
}

.success-icon {
  margin-bottom: 1.4rem;
}

.success-icon i {
  font-size: 3.5rem;
  color: #4ade80;
  animation: successBounce .6s ease-out;
  filter: drop-shadow(0 0 12px rgba(74, 222, 128, .4));
}

@keyframes successBounce {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0
  }

  50% {
    transform: scale(1.1)
  }

  100% {
    transform: scale(1);
    opacity: 1
  }
}

.success-message {
  color: var(--t2);
  margin-bottom: 2rem;
  font-size: .97rem;
}

.booking-details {
  background: var(--s1);
  padding: 1.4rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-align: right;
  margin-bottom: 2rem;
}

.booking-details h3 {
  color: var(--t1);
  margin-bottom: 1rem;
  font-size: .97rem;
}

.booking-details p {
  color: var(--t2);
  margin-bottom: .65rem;
  font-size: .88rem;
}

.booking-details strong {
  color: var(--t1);
}

.btn-done {
  padding: .88rem 3rem;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  transition: all .25s;
  box-shadow: 0 4px 14px rgba(124, 58, 237, .35);
}

.btn-done:hover {
  transform: translateY(-2px);
}

/* ===================== COURSE PAGE ===================== */
.course-page {
  padding-top: 80px;
  min-height: 100vh;
}

.progress-banner {
  background: rgba(37, 99, 235, .1);
  border-bottom: 1px solid var(--border);
  padding: .75rem 5%;
}

.progress-banner-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.progress-banner-inner>span {
  font-size: .83rem;
  font-weight: 600;
  color: var(--t2);
  white-space: nowrap;
}

.progress-bar-wrap {
  flex: 1;
  min-width: 100px;
  height: 6px;
  background: var(--s2);
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--grad);
  border-radius: 99px;
  transition: width .6s cubic-bezier(.4, 0, .2, 1);
}

.progress-pct {
  font-size: .83rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.progress-label {
  font-size: .78rem;
  color: var(--t3);
  white-space: nowrap;
}

.course-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 5% 4rem;
  display: grid;
  grid-template-columns: 295px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.course-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  position: sticky;
  top: 88px;
}

.sidebar-card {
  background: var(--grad-card);
  border-radius: var(--r);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color .3s;
}

.sidebar-card:hover {
  border-color: var(--border-h);
}

.sidebar-card-header {
  background: linear-gradient(135deg, rgba(37, 99, 235, .2), rgba(124, 58, 237, .2));
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}

.sidebar-card-header i {
  font-size: 1.1rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-card-header h3 {
  font-size: .95rem;
  font-weight: 800;
  color: #fff;
}

.sidebar-card-body {
  padding: 1.3rem 1.4rem;
}

.course-big-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 1.1rem;
}

.course-meta-row {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .82rem;
  color: var(--t2);
}

.meta-item i {
  color: var(--purple);
  width: 15px;
  text-align: center;
}

.meta-item strong {
  color: var(--t1);
}

.rating-stars {
  display: flex;
  gap: 2px;
}

.rating-stars span {
  color: #fbbf24;
  font-size: .85rem;
}

.user-avatar-box {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.1rem;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.user-name-sub h4 {
  color: #fff;
  font-size: .95rem;
  margin-bottom: .12rem;
}

.user-name-sub span {
  color: var(--t3);
  font-size: .78rem;
}

.user-detail-row {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.user-detail-item {
  display: flex;
  gap: .5rem;
  font-size: .8rem;
}

.user-detail-item .lbl {
  color: var(--t3);
  flex-shrink: 0;
}

.user-detail-item .val {
  color: var(--t2);
  word-break: break-all;
}

.stats-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
  text-align: center;
}

.stat-box {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .9rem;
  transition: all .25s;
}

.stat-box:hover {
  background: var(--s2);
  border-color: var(--border-h);
}

.stat-box-val {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .18rem;
}

.stat-box-lbl {
  font-size: .72rem;
  color: var(--t3);
  font-weight: 600;
}

.course-main {
  background: var(--grad-card);
  border-radius: var(--rlg);
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 600px;
}

.tabs-bar {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, .18);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-bar::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: .9rem 1.5rem;
  background: none;
  border: none;
  color: var(--t3);
  cursor: pointer;
  font-weight: 600;
  font-size: .86rem;
  transition: all .25s;
  position: relative;
  display: flex;
  align-items: center;
  gap: .45rem;
  white-space: nowrap;
  font-family: inherit;
  border-bottom: 2px solid transparent;
  flex-shrink: 0;
}

.tab-btn:hover {
  color: var(--t2);
  background: var(--s1);
}

.tab-btn.active {
  color: #fff;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
}

.tab-btn i {
  font-size: .85rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tab-badge {
  background: rgba(124, 58, 237, .18);
  color: var(--purple-light);
  border: 1px solid rgba(167, 139, 250, .22);
  border-radius: 99px;
  font-size: .68rem;
  padding: .08rem .5rem;
  font-weight: 800;
}

.tab-content {
  display: none;
  padding: 2rem;
}

.tab-content.active {
  display: block;
  animation: fadeIn .3s;
}

.lessons-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
  gap: .9rem;
}

.lessons-header h2,
.materials-header h2,
.assignments-header h2 {
  font-size: 1.15rem;
  color: #fff;
  font-weight: 800;
}

.materials-header,
.assignments-header {
  margin-bottom: 1.4rem;
}

.lessons-filter {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: .35rem .85rem;
  border-radius: 99px;
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--t3);
  font-family: inherit;
}

.filter-btn.active,
.filter-btn:hover {
  background: rgba(124, 58, 237, .15);
  border-color: rgba(167, 139, 250, .3);
  color: var(--purple-light);
}

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

.lesson-item {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.3rem;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .9rem;
  align-items: center;
  transition: background .25s, border-color .25s, transform .25s, box-shadow .25s;
}

.lesson-item:hover {
  background: var(--s2);
  border-color: var(--border-h);
  transform: translateX(-4px);
  box-shadow: var(--sh-sm);
}

.lesson-item.completed {
  border-color: rgba(74, 222, 128, .2);
}

.lesson-num {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, .2), rgba(124, 58, 237, .2));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 800;
  color: var(--purple-light);
}

.lesson-item.completed .lesson-num {
  background: linear-gradient(135deg, rgba(74, 222, 128, .18), rgba(16, 185, 129, .18));
  border-color: rgba(74, 222, 128, .3);
  color: #4ade80;
}

.lesson-info {
  min-width: 0;
}

.lesson-title {
  font-size: .92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .28rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lesson-meta {
  display: flex;
  gap: .9rem;
  font-size: .76rem;
  color: var(--t3);
  flex-wrap: wrap;
}

.lesson-meta span {
  display: flex;
  align-items: center;
  gap: .28rem;
}

.lesson-meta i {
  color: var(--purple);
}

.lesson-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .45rem;
  flex-shrink: 0;
}

.lesson-duration-badge {
  font-size: .7rem;
  padding: .22rem .6rem;
  background: rgba(124, 58, 237, .12);
  color: var(--purple-light);
  border: 1px solid rgba(167, 139, 250, .15);
  border-radius: 99px;
  font-weight: 700;
}

.btn-play {
  padding: .48rem .95rem;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: .76rem;
  font-family: inherit;
  transition: all .25s;
  display: flex;
  align-items: center;
  gap: .38rem;
  box-shadow: 0 3px 10px rgba(124, 58, 237, .3);
}

.btn-play:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 16px rgba(124, 58, 237, .5);
}

.ai-widget {
  margin-top: 1.8rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(124, 58, 237, .08));
  border: 1px solid rgba(167, 139, 250, .18);
  border-radius: var(--r);
  overflow: hidden;
}

.ai-widget-header {
  padding: .95rem 1.3rem;
  border-bottom: 1px solid rgba(167, 139, 250, .1);
  display: flex;
  align-items: center;
  gap: .7rem;
}

.ai-widget-header i {
  font-size: 1.1rem;
  color: var(--purple-light);
}

.ai-widget-header h3 {
  color: #fff;
  font-size: .9rem;
  font-weight: 800;
}

.ai-live-badge {
  margin-right: auto;
  padding: .18rem .65rem;
  background: rgba(74, 222, 128, .14);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, .2);
  border-radius: 99px;
  font-size: .68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: .3rem;
}

.ai-live-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  background: #4ade80;
  border-radius: 50%;
  animation: dot 1.5s ease infinite;
}

@keyframes dot {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .3
  }
}

.ai-chat-area {
  padding: 1.1rem 1.3rem;
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.ai-bubble {
  max-width: 85%;
  padding: .75rem .95rem;
  border-radius: 12px;
  font-size: .83rem;
  line-height: 1.6;
}

.ai-bubble.bot {
  background: rgba(124, 58, 237, .12);
  border: 1px solid rgba(167, 139, 250, .15);
  color: var(--t2);
  align-self: flex-start;
  border-radius: 12px 12px 12px 0;
}

.ai-bubble.user {
  background: rgba(37, 99, 235, .16);
  border: 1px solid rgba(96, 165, 250, .16);
  color: var(--t1);
  align-self: flex-end;
  border-radius: 12px 12px 0 12px;
}

.ai-input-row {
  padding: .9rem 1.3rem;
  border-top: 1px solid rgba(167, 139, 250, .08);
  display: flex;
  gap: .65rem;
}

.ai-input {
  flex: 1;
  padding: .65rem .9rem;
  background: rgba(255, 255, 255, .04);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--t1);
  font-family: inherit;
  font-size: .83rem;
  transition: all .25s;
}

.ai-input::placeholder {
  color: var(--t3);
}

.ai-input:focus {
  outline: none;
  border-color: rgba(124, 58, 237, .5);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .1);
}

.btn-ai-send {
  padding: .65rem 1rem;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: .85rem;
  font-family: inherit;
  font-weight: 700;
  transition: all .25s;
  display: flex;
  align-items: center;
  gap: .38rem;
}

.btn-ai-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(124, 58, 237, .4);
}

.btn-ai-send:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.1rem;
}

.material-card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.3rem;
  transition: all .25s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
}

.material-card:hover {
  background: var(--s2);
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: var(--sh-sm);
}

.material-icon {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .2), rgba(124, 58, 237, .2));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.material-icon i {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.material-card h4 {
  font-size: .88rem;
  font-weight: 800;
  color: #fff;
}

.material-card p {
  font-size: .78rem;
  color: var(--t2);
  line-height: 1.5;
  flex: 1;
}

.material-type {
  font-size: .68rem;
  padding: .18rem .55rem;
  border-radius: 99px;
  font-weight: 700;
}

.type-pdf {
  background: rgba(239, 68, 68, .13);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, .2);
}

.type-code {
  background: rgba(37, 99, 235, .13);
  color: var(--blue);
  border: 1px solid rgba(37, 99, 235, .2);
}

.type-link {
  background: rgba(74, 222, 128, .13);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, .2);
}

.type-zip {
  background: rgba(251, 191, 36, .13);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, .2);
}

.btn-download {
  width: 100%;
  padding: .55rem;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: .78rem;
  font-family: inherit;
  transition: all .25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}

.btn-download:hover {
  transform: scale(1.03);
  box-shadow: 0 5px 16px rgba(124, 58, 237, .5);
}

.assignments-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.assignment-card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}

.assignment-card:hover {
  border-color: var(--border-h);
  box-shadow: var(--sh-sm);
}

.assignment-card-top {
  padding: 1.2rem 1.3rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.assignment-title-row h4 {
  color: #fff;
  font-size: .95rem;
  margin-bottom: .35rem;
}

.assignment-meta-row {
  display: flex;
  gap: .9rem;
  font-size: .76rem;
  color: var(--t3);
  flex-wrap: wrap;
}

.assignment-meta-row span {
  display: flex;
  align-items: center;
  gap: .28rem;
}

.assignment-meta-row i {
  color: var(--purple);
}

.assignment-status {
  padding: .28rem .9rem;
  border-radius: 99px;
  font-size: .73rem;
  font-weight: 800;
  flex-shrink: 0;
}

.status-pending {
  background: rgba(245, 158, 11, .13);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, .2);
}

.status-submitted {
  background: rgba(37, 99, 235, .13);
  color: var(--blue);
  border: 1px solid rgba(37, 99, 235, .2);
}

.status-graded {
  background: rgba(74, 222, 128, .13);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, .2);
}

.assignment-card-body {
  padding: 1.2rem 1.3rem;
}

.assignment-desc {
  color: var(--t2);
  font-size: .86rem;
  line-height: 1.65;
  margin-bottom: 1.1rem;
}

.assignment-actions {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-submit {
  padding: .55rem 1.2rem;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: .8rem;
  font-family: inherit;
  transition: all .25s;
  display: flex;
  align-items: center;
  gap: .4rem;
  box-shadow: 0 3px 10px rgba(124, 58, 237, .3);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, .45);
}

.btn-submit:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.btn-view-details {
  padding: .55rem 1.2rem;
  background: transparent;
  color: var(--t2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: .8rem;
  font-family: inherit;
  transition: all .25s;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.btn-view-details:hover {
  color: var(--t1);
  border-color: var(--border-h);
}

.deadline-chip {
  margin-right: auto;
  font-size: .73rem;
  color: var(--t3);
  display: flex;
  align-items: center;
  gap: .28rem;
}

.deadline-chip i {
  color: #f59e0b;
}

.deadline-chip.urgent {
  color: #f87171;
}

.deadline-chip.urgent i {
  color: #f87171;
}

.video-modal-inner {
  background: linear-gradient(160deg, #0c1735, #1a0e3a);
  border: 1px solid var(--border);
  border-radius: var(--rlg);
  width: 100%;
  max-width: 860px;
  box-shadow: var(--sh-lg);
  animation: slideUp .35s ease-out;
  overflow: hidden;
}

.video-modal-header {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.video-modal-header h3 {
  color: #fff;
  font-size: .97rem;
}

.video-wrap {
  background: #000;
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  color: var(--t3);
}

.video-placeholder i {
  font-size: 2.8rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.video-placeholder p {
  font-size: .88rem;
}

.video-modal-footer {
  padding: 1.1rem 1.4rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .9rem;
}

.video-nav {
  display: flex;
  gap: .7rem;
}

.btn-vid-nav {
  padding: .55rem 1.1rem;
  background: var(--s1);
  color: var(--t2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: .8rem;
  font-family: inherit;
  transition: all .25s;
  display: flex;
  align-items: center;
  gap: .38rem;
}

.btn-vid-nav:hover {
  color: #fff;
  border-color: var(--border-h);
  background: var(--s2);
}

.btn-vid-nav:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.btn-mark-done {
  padding: .55rem 1.2rem;
  background: rgba(74, 222, 128, .12);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, .22);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: .8rem;
  font-family: inherit;
  transition: all .25s;
  display: flex;
  align-items: center;
  gap: .38rem;
}

.btn-mark-done:hover {
  background: rgba(74, 222, 128, .22);
}

.upload-modal-inner {
  background: linear-gradient(160deg, #0c1735, #1a0e3a);
  border: 1px solid var(--border);
  border-radius: var(--rlg);
  width: 100%;
  max-width: 520px;
  padding: 2rem;
  box-shadow: var(--sh-lg);
  animation: slideUp .35s ease-out;
  position: relative;
}

.upload-modal-inner h2 {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: .4rem;
}

.upload-subtitle {
  color: var(--t3);
  font-size: .83rem;
  text-align: center;
  margin-bottom: 1.8rem;
}

.upload-step-indicator {
  display: flex;
  justify-content: center;
  gap: .65rem;
  margin-bottom: 1.8rem;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all .3s;
}

.step-dot.active {
  background: var(--purple-v);
  transform: scale(1.35);
}

.step-dot.done {
  background: var(--blue-v);
}

.upload-step {
  display: none;
}

.upload-step.active {
  display: block;
  animation: fadeIn .3s;
}

.form-control {
  width: 100%;
  padding: .82rem 1rem;
  background: var(--s1);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  color: var(--t1);
  font-size: .88rem;
  font-family: inherit;
  transition: all .25s;
}

.form-control:focus {
  outline: none;
  border-color: rgba(124, 58, 237, .55);
  background: var(--s2);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .12);
}

.form-control::placeholder {
  color: var(--t3);
}

.form-control option {
  background: #0c1735;
  color: #fff;
}

.file-drop-zone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 1.8rem;
  text-align: center;
  cursor: pointer;
  transition: all .25s;
}

.file-drop-zone:hover,
.file-drop-zone.drag-over {
  border-color: rgba(124, 58, 237, .5);
  background: rgba(124, 58, 237, .05);
}

.file-drop-zone i {
  font-size: 1.9rem;
  margin-bottom: .65rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.file-drop-zone p {
  color: var(--t2);
  font-size: .86rem;
}

.file-drop-zone span {
  color: var(--purple-light);
  font-weight: 700;
}

.file-drop-zone .file-types {
  color: var(--t3);
  font-size: .73rem;
  margin-top: .35rem;
}

.file-selected {
  margin-top: .7rem;
  padding: .7rem;
  background: rgba(74, 222, 128, .08);
  border: 1px solid rgba(74, 222, 128, .18);
  border-radius: 8px;
  display: none;
  align-items: center;
  gap: .55rem;
  font-size: .8rem;
  color: #4ade80;
}

.file-selected.show {
  display: flex;
}

.modal-actions {
  display: flex;
  gap: .7rem;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}

.btn-modal-next {
  flex: 1;
  padding: .88rem;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  font-family: inherit;
  transition: all .25s;
  box-shadow: 0 4px 14px rgba(124, 58, 237, .35);
}

.btn-modal-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(124, 58, 237, .5);
}

.btn-modal-back {
  flex: 1;
  padding: .88rem;
  background: var(--s1);
  color: var(--t2);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  font-family: inherit;
  transition: all .25s;
}

.btn-modal-back:hover {
  background: var(--s2);
  color: #fff;
}

.upload-info-box {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem;
  text-align: right;
  margin-bottom: 1.3rem;
}

.upload-info-box p {
  color: var(--t2);
  font-size: .83rem;
  margin-bottom: .45rem;
}

.upload-info-box strong {
  color: #fff;
}

.upload-success {
  text-align: center;
  padding: .8rem 0;
}

.success-lottie {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(74, 222, 128, .13);
  border: 2px solid rgba(74, 222, 128, .26);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  animation: successBounce .6s ease-out;
}

.success-lottie i {
  font-size: 1.9rem;
  color: #4ade80;
}

.upload-success h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: .45rem;
}

.upload-success p {
  color: var(--t2);
  font-size: .88rem;
  margin-bottom: 1.3rem;
}

.btn-close-success {
  width: 100%;
  padding: .88rem;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  font-family: inherit;
  transition: all .25s;
  box-shadow: 0 4px 14px rgba(124, 58, 237, .35);
}

.btn-close-success:hover {
  transform: translateY(-2px);
}

/* ✅ فوتر صفحة course.html — اسم مختلف تماماً لتجنب التعارض مع فوتر الكارت */
.course-page-footer {
  background: rgba(3, 6, 15, .98);
  border-top: 1px solid var(--border);
  padding: 3.5rem 5%;
}

.course-page-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: #fff;
  font-size: .97rem;
  font-weight: 800;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.footer-col h4 i {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-col p,
.footer-col a {
  color: var(--t2);
  font-size: .86rem;
  line-height: 1.7;
  display: block;
  margin-bottom: .55rem;
  transition: color .2s;
}

.footer-col a:hover {
  color: #fff;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .83rem;
  color: var(--t2);
  margin-bottom: .55rem;
}

.contact-item i {
  color: var(--purple);
  width: 15px;
}

.social-row {
  display: flex;
  gap: .55rem;
  margin-top: .45rem;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--s2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t2);
  font-size: .88rem;
  transition: all .25s;
}

.social-btn:hover {
  background: var(--s3);
  border-color: var(--border-h);
  color: var(--purple-light);
  transform: translateY(-2px);
}

.footer-bottom-bar {
  border-top: 1px solid var(--border);
  padding-top: 1.4rem;
  text-align: center;
  color: var(--t3);
  font-size: .82rem;
  max-width: 1400px;
  margin: 0 auto;
}

.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  align-items: center;
  pointer-events: none;
}

.toast {
  padding: .7rem 1.3rem;
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .45rem;
  box-shadow: var(--sh-md);
  animation: toastIn .3s ease-out;
  pointer-events: all;
  max-width: calc(100vw - 2rem);
}

.toast.success {
  background: rgba(74, 222, 128, .17);
  border: 1px solid rgba(74, 222, 128, .27);
  color: #4ade80;
}

.toast.info {
  background: rgba(96, 165, 250, .17);
  border: 1px solid rgba(96, 165, 250, .27);
  color: var(--blue);
}

.toast.error {
  background: rgba(248, 113, 113, .17);
  border: 1px solid rgba(248, 113, 113, .27);
  color: #f87171;
}

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

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

.btn-home {
  padding: .6rem 1.3rem;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: var(--rsm);
  cursor: pointer;
  font-weight: 700;
  font-size: .85rem;
  transition: all .25s;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(124, 58, 237, .35);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.btn-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(124, 58, 237, .5);
}

.btn-logout {
  padding: .6rem 1.3rem;
  background: transparent;
  color: var(--t2);
  border: 1.5px solid var(--border);
  border-radius: var(--rsm);
  cursor: pointer;
  font-weight: 600;
  font-size: .85rem;
  transition: all .25s;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.btn-logout:hover {
  color: #f87171;
  border-color: rgba(248, 113, 113, .35);
  background: rgba(248, 113, 113, .07);
}

.mobile-btn-row {
  display: flex;
  gap: .75rem;
  padding: 1rem 1.5rem 1.5rem;
}

.mobile-btn-row button {
  flex: 1;
  padding: .85rem;
  border-radius: var(--rsm);
  font-weight: 700;
  cursor: pointer;
  font-size: .9rem;
  font-family: inherit;
  transition: all .25s;
}

.mob-primary {
  background: var(--grad);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(124, 58, 237, .35);
}

.mob-secondary {
  background: transparent;
  color: var(--t2);
  border: 1.5px solid var(--border);
}

.mob-secondary:hover {
  color: var(--t1);
  background: var(--s1);
}

.mob-danger:hover {
  color: #f87171;
  border-color: rgba(248, 113, 113, .35);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width:1024px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .featured-text h2 {
    font-size: 1.85rem;
  }

  .course-wrapper {
    grid-template-columns: 250px 1fr;
    gap: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:900px) {
  .course-wrapper {
    grid-template-columns: 1fr;
  }

  .course-sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    position: static;
  }

  .materials-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width:768px) {
  html {
    font-size: 15px;
  }

  .nav-links,
  .nav-buttons {
    display: none !important;
  }

  .hamburger-menu {
    display: flex !important;
  }

  nav {
    padding: .85rem 3%;
  }

  .logo {
    font-size: 1.35rem;
  }

  .hero {
    padding-top: 78px;
    padding-bottom: 50px;
    min-height: auto;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-content h1 {
    font-size: 1.9rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-image {
    display: none;
  }

  .icon-grid {
    gap: .8rem;
  }

  .courses {
    padding: 4rem 3%;
  }

  .section-header h2 {
    font-size: 1.85rem;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .featured-section {
    padding: 2.5rem 3%;
    margin: 0 0 2.5rem;
    width: 100%;
    border-radius: 0;
  }

  .featured-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .featured-text h2 {
    font-size: 1.55rem;
  }

  .featured-icon-box {
    min-height: 200px;
    font-size: 4rem;
    padding: 2rem;
  }

  .stats-section {
    padding: 3rem 3%;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
  }

  .testimonials {
    padding: 4rem 3%;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  footer {
    padding: 3rem 3%;
  }

  .course-wrapper {
    padding: 1.4rem 3% 3rem;
    gap: 1.3rem;
  }

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

  .tab-content {
    padding: 1.2rem;
  }

  .lesson-item {
    grid-template-columns: auto 1fr;
  }

  .lesson-action {
    flex-direction: row;
    align-items: center;
    grid-column: 1/-1;
    justify-content: space-between;
  }

  .assignment-card-top {
    flex-direction: column;
  }

  .progress-banner {
    padding: .6rem 3%;
  }

  .video-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .video-nav {
    width: 100%;
    justify-content: space-between;
  }

  .btn-mark-done {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width:600px) {
  html {
    font-size: 14px;
  }

  .mobile-menu {
    top: 60px;
  }

  .hero-content h1 {
    font-size: 1.65rem;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

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

  .stat-number {
    font-size: 1.9rem;
  }

  footer {
    padding: 2.5rem 2%;
  }

  .tabs-bar {
    gap: 0;
  }

  .tab-btn {
    padding: .78rem .95rem;
    font-size: .78rem;
  }

  .lesson-item {
    grid-template-columns: 1fr;
    gap: .65rem;
  }

  .lesson-num {
    display: none;
  }

  .lesson-action {
    flex-direction: row;
    justify-content: space-between;
  }

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

  .upload-modal-inner {
    padding: 1.3rem;
  }

  .modal-actions {
    flex-direction: column;
  }

  .stats-duo {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:400px) {
  html {
    font-size: 13px;
  }

  .hero-content h1 {
    font-size: 1.45rem;
  }

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


.course-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: inherit;
}