/* ===== THEME VARIABLES ===== */
.dark-theme {
  --bg: #020617;
  --text: #f8fafc;
  --card: #0f172a;
  --accent: #38bdf8;
}

.light-theme {
  --bg: #f8fafc;
  --text: #020617;
  --card: #ffffff;
  --accent: #2563eb;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", sans-serif;
  transition: 0.4s;
}

/* ===== NAVBAR ===== */
.glass-navbar {
  background: rgba(15,23,42,0.7);
  backdrop-filter: blur(15px);
}

.nav-logo { width: 42px; }
.brand-name { color: var(--accent); font-weight: 700; }
.nav-link { color: var(--text) !important; }

/* ===== BUTTONS ===== */
.enroll-btn, .card-btn {
  background: var(--accent);
  color: white;
  border-radius: 30px;
  padding: 8px 25px;
}

/* ===== HERO ===== */
.hero-section {
  background: linear-gradient(135deg, var(--bg), var(--card));
}
.hero-img { max-width: 420px; }
.price { color: var(--accent); }

/* ===== COURSES ===== */
.course-section {
  padding: 90px 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.course-card {
  background: var(--card);
  border-radius: 22px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: 0.4s;
}

.course-card:hover {
  transform: translateY(-12px);
}

/* IMAGE FIX (MOST IMPORTANT PART) */
.course-img-box {
  width: 100%;
  height: 200px;          /* SAME HEIGHT FOR ALL */
  overflow: hidden;
}

.course-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* CROPS IMAGE PROPERLY */
}

/* CONTENT */
.course-content {
  padding: 25px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ===== BUY ===== */
.buy-section {
  padding: 90px 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--card), var(--bg));
}

/* ===== FOOTER ===== */
.footer {
  padding: 15px;
  text-align: center;
  opacity: 0.7;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
.float { animation: float 4s infinite; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(56,189,248,.7); }
  70% { box-shadow: 0 0 0 15px rgba(56,189,248,0); }
  100% { box-shadow: 0 0 0 0 rgba(56,189,248,0); }
}
.pulse { animation: pulse 2s infinite; }
