/* =============================================
   Theory Pass Master — Blade Frontend Styles
   ============================================= */

/* Utility */
.hidden { display: none !important; }

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

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #020817;
  color: #f8fafc;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Animations ─────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.92) rotate(-2deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-15px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.2; }
  50%       { opacity: 0.35; }
}

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

.animate-fade-up   { animation: fadeInUp 0.7s ease forwards; }
.animate-fade-up-2 { animation: fadeInUp 0.7s 0.15s ease both; }
.animate-fade-up-3 { animation: fadeInUp 0.7s 0.3s  ease both; }
.animate-fade-up-4 { animation: fadeInUp 0.7s 0.45s ease both; }
.animate-fade-up-5 { animation: fadeInUp 0.7s 0.6s  ease both; }
.animate-scale-in  { animation: fadeInScale 1s 0.3s cubic-bezier(.34,1.56,.64,1) both; }
.animate-float     { animation: float 4s ease-in-out infinite; }
.animate-pulse-glow{ animation: pulse-glow 3s ease-in-out infinite; }
.animate-slide-down{ animation: slideDown 0.25s ease forwards; }

/* Observer-based animations (scroll triggered) */
.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-animate.delay-1 { transition-delay: 0.1s; }
.scroll-animate.delay-2 { transition-delay: 0.2s; }
.scroll-animate.delay-3 { transition-delay: 0.3s; }
.scroll-animate.delay-4 { transition-delay: 0.4s; }
.scroll-animate.delay-5 { transition-delay: 0.5s; }

/* ── Navbar ─────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.8);
  transition: background 0.3s ease;
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  position: relative;
}

@media (max-width: 768px) {
  .navbar-inner {
    height: 64px !important;
    padding: 0 1rem !important;
  }
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 1;
  min-width: 0;
}

.navbar-logo-img {
  height: 52px;
  max-height: 56px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
  transition: all 0.2s ease;
}

@media (max-width: 768px) {
  .navbar-logo-img {
    height: 38px !important;
    max-height: 40px !important;
    max-width: 155px !important;
  }
}

@media (max-width: 380px) {
  .navbar-logo-img {
    max-width: 130px !important;
    height: 34px !important;
  }
}

.footer-logo-img {
  height: 48px;
  max-height: 52px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .footer-logo-img {
    height: 40px !important;
    max-width: 180px !important;
  }
}

.brand-icon {
  background: #2563eb;
  padding: 0.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .brand-name {
    font-size: 1.1rem !important;
  }
}

.nav-links {
  display: none !important;
  align-items: center;
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .nav-links { display: flex !important; }
}

.nav-link {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-link:hover { color: #60a5fa; }

.lang-btn,
.mobile-icon-btn,
.lang-btn-style {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid #334155;
  color: #94a3b8;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-btn:hover,
.mobile-icon-btn:hover,
.lang-btn-style:hover { background: #1e293b; color: #fff; border-color: #3b82f6; }

.btn-login {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.25s;
  box-shadow: 0 0 15px rgba(37,99,235,0.3);
  white-space: nowrap;
}
.btn-login:hover {
  background: #1d4ed8;
  box-shadow: 0 0 25px rgba(37,99,235,0.5);
  transform: translateY(-1px);
}

/* Mobile menu controls */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
@media (min-width: 992px) {
  .mobile-menu-btn {
    display: none !important;
  }
}

.hamburger-btn {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid #334155;
  color: #e2e8f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 0.55rem;
  transition: all 0.2s ease;
}
.hamburger-btn:hover, .hamburger-btn:focus {
  color: #fff;
  background: #1e293b;
  border-color: #3b82f6;
}

/* Mobile Navigation Drawer */
.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(51, 65, 85, 0.7);
  border-bottom: 1px solid rgba(51, 65, 85, 0.7);
  padding: 1.15rem 1.25rem 1.75rem;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.9);
  z-index: 99;
}

.mobile-nav.hidden {
  display: none !important;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 0.6rem;
  margin-bottom: 0.25rem;
  transition: all 0.15s ease;
}
.mobile-nav a:hover,
.mobile-nav a:active {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.15);
  transform: translateX(4px);
}
.mobile-nav .mobile-login {
  color: #ffffff !important;
  background: #2563eb;
  justify-content: center;
  font-weight: 700;
  margin-top: 0.75rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}
.mobile-nav .mobile-login:hover {
  background: #1d4ed8;
  color: #ffffff !important;
}

/* ── Hero ───────────────────────────────────── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 5rem;
  overflow: hidden;
  background: #0A0F1C;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(30,64,175,0.3) 0%, #0A0F1C 60%);
}

.hero-orb-1 {
  position: absolute;
  top: 25%;
  left: 25%;
  width: 500px;
  height: 500px;
  background: rgba(59,130,246,0.2);
  border-radius: 9999px;
  filter: blur(120px);
  mix-blend-mode: screen;
}

.hero-orb-2 {
  position: absolute;
  bottom: 25%;
  right: 25%;
  width: 400px;
  height: 400px;
  background: rgba(99,102,241,0.1);
  border-radius: 9999px;
  filter: blur(100px);
  mix-blend-mode: screen;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.3);
  color: #60a5fa;
  font-weight: 600;
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-h1 .gradient-text {
  background: linear-gradient(135deg, #60a5fa, #818cf8, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(99,102,241,0.3));
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #94a3b8;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .hero-btns { flex-direction: row; align-items: center; }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  text-decoration: none;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s;
  box-shadow: 0 0 40px rgba(79,70,229,0.4);
  white-space: nowrap;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #4338ca);
  box-shadow: 0 0 60px rgba(79,70,229,0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  text-decoration: none;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

.hero-feats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-feat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.hero-feat-item svg { color: #4ade80; flex-shrink: 0; }

/* Hero Image */
.hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
}

.hero-img-frame {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  aspect-ratio: 4/3;
}

@media (min-width: 1024px) {
  .hero-img-frame { aspect-ratio: 4/4; }
}

.hero-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1s ease-out;
}
.hero-img-frame:hover img { transform: scale(1.08); }

.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0A0F1C 0%, rgba(10,15,28,0.2) 40%, transparent 100%);
}

.hero-floating-badge {
  position: absolute;
  bottom: -2rem;
  left: -2rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 1.25rem;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  display: none;
  align-items: center;
  gap: 1rem;
  z-index: 20;
}

@media (min-width: 768px) { .hero-floating-badge { display: flex; } }

.badge-icon {
  background: linear-gradient(135deg, #4ade80, #059669);
  padding: 0.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-title {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.badge-sub { color: #6ee7b7; font-size: 0.8rem; font-weight: 600; }

/* ── Course Info Section ────────────────────── */
.course-info {
  padding: 6rem 0;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
}

.course-info::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: radial-gradient(circle at top right, rgba(219,234,254,0.5), transparent 70%);
  pointer-events: none;
}

.course-info-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.course-info-card {
  display: grid;
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(226,232,240,0.5);
  background: #fff;
}

@media (min-width: 1024px) {
  .course-info-card { grid-template-columns: 5fr 7fr; }
}

.course-info-left {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.course-info-left-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1580273916550-e323be2ae537?q=80&w=1964&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  mix-blend-mode: overlay;
  transition: transform 1s ease;
}
.course-info-card:hover .course-info-left-bg { transform: scale(1.05); }

.course-info-left-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.course-info-left-title .accent { color: #60a5fa; }

.course-info-img-frame {
  position: relative;
  height: 260px;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
  z-index: 1;
}
.course-info-img-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.course-info-card:hover .course-info-img-frame img { transform: scale(1.05); }

.course-info-left-bar {
  width: 5rem;
  height: 0.5rem;
  background: #3b82f6;
  border-radius: 9999px;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.course-info-left-tagline {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.course-info-right {
  background: #fff;
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.course-info-right-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.course-info-right-desc {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.course-features-grid {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .course-features-grid { grid-template-columns: 1fr 1fr; }
}

.course-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #f8fafc;
  padding: 0.75rem;
  border-radius: 0.625rem;
  border: 1px solid #e2e8f0;
  transition: border-color 0.2s;
}
.course-feat-item:hover { border-color: #93c5fd; }
.course-feat-item svg { color: #2563eb; flex-shrink: 0; margin-top: 2px; }
.course-feat-item span { color: #374151; font-weight: 600; font-size: 0.875rem; }

.btn-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFD147;
  color: #0f172a;
  text-decoration: none;
  padding: 1rem 2.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(251,191,36,0.3);
  letter-spacing: 0.02em;
}
.btn-yellow:hover {
  background: #FACC15;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(251,191,36,0.5);
}

/* ── Features Section ───────────────────────── */
.features {
  padding: 6rem 0;
  background: #fff;
  position: relative;
}
.features::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(248,250,252,0.5);
}

.features-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.features-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 5rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #64748b;
  font-weight: 300;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px)  { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: 1fr 1fr 1fr; } }

.feature-card {
  background: #fff;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(15,23,42,0.06);
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -2rem;
  right: -2rem;
  width: 8rem;
  height: 8rem;
  background: #f8fafc;
  border-radius: 9999px;
  transition: transform 0.7s ease;
  z-index: 0;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(59,130,246,0.12);
  border-color: #bfdbfe;
}
.feature-card:hover::before { transform: scale(2); }

.feature-icon-wrap {
  background: #f8fafc;
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: all 0.3s;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.feature-card:hover .feature-icon-wrap {
  transform: scale(1.1) rotate(3deg);
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.feature-card p {
  color: #64748b;
  line-height: 1.6;
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

/* Icon colors */
.icon-blue    { color: #3b82f6; }
.icon-indigo  { color: #6366f1; }
.icon-emerald { color: #10b981; }
.icon-amber   { color: #f59e0b; }
.icon-purple  { color: #a855f7; }
.icon-rose    { color: #f43f5e; }

/* ── Footer ─────────────────────────────────── */
.footer {
  background: #020817;
  color: #94a3b8;
  padding: 5rem 0 2rem;
  border-top: 1px solid #0f172a;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-brand-name { font-size: 1.2rem; font-weight: 800; color: #fff; }
.footer-desc { color: #475569; font-size: 0.9rem; line-height: 1.6; }

.footer-col-title {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.footer-contact-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 0.75rem; }
.footer-contact-list a { color: #94a3b8; text-decoration: none; transition: color 0.2s; }
.footer-contact-list a:hover { color: #60a5fa; }
.footer-contact-list svg { color: #3b82f6; flex-shrink: 0; margin-top: 2px; }

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { color: #94a3b8; text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: #60a5fa; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  text-align: center;
  color: #475569;
  font-size: 0.85rem;
}


/* ── Scrollbar ──────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* ══════════════════════════════════════════════
   REAL DATA SECTIONS
   ══════════════════════════════════════════════ */

/* ── Hero Stats Bar ─────────────────────────── */
.hero-stats-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  backdrop-filter: blur(8px);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 80px;
}

.hero-stat-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.125rem;
}

.hero-stat-divider {
  width: 1px;
  height: 2.5rem;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

/* ── Courses Section ────────────────────────── */
.courses-section {
  padding: 6rem 0;
  background: #0f172a;
  position: relative;
}
.courses-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at bottom left, rgba(37,99,235,0.08) 0%, transparent 60%);
}

.courses-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.courses-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px)  { .courses-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .courses-grid { grid-template-columns: 1fr 1fr 1fr 1fr; } }

.course-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1.25rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.course-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99,102,241,0.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(99,102,241,0.2);
  background: rgba(255,255,255,0.06);
}

.course-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #1e293b;
}
.course-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.course-card:hover .course-thumb img { transform: scale(1.06); }

.course-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #334155;
}

.course-price-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}
.price-free {
  background: #10b981;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.price-paid {
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
}

.course-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.course-category {
  font-size: 0.7rem;
  font-weight: 700;
  color: #818cf8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.course-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.course-meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}
.course-meta-item svg { flex-shrink: 0; }

.course-level {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.level-beginner  { background: rgba(16,185,129,0.15); color: #34d399; }
.level-intermediate { background: rgba(245,158,11,0.15); color: #fbbf24; }
.level-advanced  { background: rgba(239,68,68,0.15); color: #f87171; }

.course-instructor {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
}
.course-instructor span { font-size: 0.78rem; color: #94a3b8; font-weight: 500; }

.instructor-avatar {
  width: 24px; height: 24px;
  border-radius: 9999px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.1);
}
.instructor-avatar-placeholder {
  width: 24px; height: 24px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.course-cta {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 0.5rem;
}
.course-enroll-btn {
  font-size: 0.8rem;
  font-weight: 700;
  color: #818cf8;
  transition: color 0.2s;
}
.course-card:hover .course-enroll-btn { color: #a5b4fc; }

.courses-view-all {
  text-align: center;
  margin-top: 3rem;
}

.btn-outline-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border: 2px solid rgba(99,102,241,0.4);
  color: #818cf8;
  text-decoration: none;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s;
}
.btn-outline-primary:hover {
  background: rgba(99,102,241,0.1);
  border-color: #818cf8;
  transform: translateY(-2px);
}

/* ── Testimonials ───────────────────────────── */
.testimonials-section {
  padding: 6rem 0;
  background: #020817;
  position: relative;
  overflow: hidden;
}
.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60%; height: 100%;
  background: radial-gradient(circle at top right, rgba(99,102,241,0.06), transparent 60%);
  pointer-events: none;
}

.testimonials-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonials-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px)  { .testimonials-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .testimonials-grid { grid-template-columns: 1fr 1fr 1fr; } }

.testimonial-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99,102,241,0.3);
  background: rgba(255,255,255,0.05);
}

.testimonial-stars { display: flex; gap: 0.2rem; }

.testimonial-headline {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.4;
}

.testimonial-quote {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 400;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: auto;
}
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 9999px;
  object-fit: cover;
  border: 2px solid rgba(99,102,241,0.3);
  flex-shrink: 0;
}
.testimonial-avatar-placeholder {
  width: 40px; height: 40px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 1rem;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; color: #f1f5f9; font-size: 0.9rem; }
.testimonial-role { color: #64748b; font-size: 0.78rem; margin-top: 0.1rem; }

/* ── FAQs ───────────────────────────────────── */
.faqs-section {
  padding: 6rem 0;
  background: #0a0f1c;
}

.faqs-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.faqs-layout {
  display: grid;
  gap: 4rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .faqs-layout { grid-template-columns: 1fr 1.6fr; }
}

.faqs-left {}
.faqs-right { display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item {
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 0.875rem;
  overflow: hidden;
  transition: border-color 0.2s;
  background: rgba(255,255,255,0.02);
}
.faq-item.faq-open {
  border-color: rgba(99,102,241,0.4);
  background: rgba(99,102,241,0.05);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
  font-family: inherit;
}
.faq-question:hover { color: #fff; }
.faq-open .faq-question { color: #818cf8; }

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: #64748b;
}
.faq-open .faq-icon { transform: rotate(180deg); color: #818cf8; }

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.7;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1rem;
}

/* ── Courses Page ───────────────────────────── */
.courses-page-hero {
  padding: 9rem 0 4rem;
  background: #0A0F1C;
  text-align: center;
  position: relative;
}
.courses-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(30,64,175,0.2), transparent 60%);
}
.courses-page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}
.courses-page-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.courses-page-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 2rem;
}

.courses-search-form { margin-top: 1.5rem; }
.courses-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  max-width: 600px;
  margin: 0 auto;
  backdrop-filter: blur(8px);
}
.courses-search-wrap svg { color: #64748b; flex-shrink: 0; }
.courses-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #f1f5f9;
  font-size: 0.95rem;
  font-family: inherit;
}
.courses-search-input::placeholder { color: #64748b; }

.courses-page-body {
  padding: 3rem 0 6rem;
  background: #0f172a;
}

.courses-count {
  color: #64748b;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.courses-count strong { color: #94a3b8; }

.courses-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
  background: rgba(255,255,255,0.03);
}
.page-btn:hover { border-color: #818cf8; color: #818cf8; background: rgba(99,102,241,0.1); }
.page-btn-active { background: #4f46e5; border-color: #4f46e5; color: #fff; }

.courses-empty {
  text-align: center;
  padding: 5rem 1rem;
  color: #64748b;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.courses-empty h3 { font-size: 1.25rem; font-weight: 700; color: #94a3b8; }
.courses-empty p { font-size: 0.9rem; }
.courses-empty a { color: #818cf8; text-decoration: none; }
.courses-empty a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════
   NEWGSTAR.COM MATCHING STYLES
   ══════════════════════════════════════════════ */

/* ── Course Info Split Card (Section 2) ──────── */
.ci-section {
  padding: 6rem 0;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
}
.ci-section::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60%; height: 100%;
  background: radial-gradient(circle at top right, rgba(59,130,246,0.08), transparent 60%);
  pointer-events: none;
}

.ci-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.ci-card {
  display: grid;
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
  border: 1px solid #e2e8f0;
  background: #fff;
}
@media (min-width: 1024px) {
  .ci-card { grid-template-columns: 5fr 7fr; }
}

/* Left dark panel */
.ci-left {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.ci-left-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1580273916550-e323be2ae537?q=80&w=1964&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  transition: transform 0.8s ease;
}
.ci-left:hover .ci-left-bg { transform: scale(1.05); }

.ci-left-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  height: 100%;
}

.ci-left-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.ci-left-accent { color: #60a5fa; }

.ci-left-img-wrap {
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid rgba(255,255,255,0.1);
}
.ci-left-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.ci-left:hover .ci-left-img { transform: scale(1.05); }

.ci-left-bar {
  width: 5rem;
  height: 0.35rem;
  background: #3b82f6;
  border-radius: 9999px;
  margin-bottom: 1rem;
}
.ci-left-tagline {
  color: #94a3b8;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
}

/* Right white panel */
.ci-right {
  background: #fff;
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.ci-right-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.ci-right-desc {
  color: #475569;
  font-size: 1rem;
  line-height: 1.75;
}

.ci-checklist {
  display: grid;
  gap: 0.6rem;
}
@media (min-width: 640px) { .ci-checklist { grid-template-columns: 1fr 1fr; } }

.ci-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: #f8fafc;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  transition: border-color 0.2s;
}
.ci-check-item:hover { border-color: #bfdbfe; }

.ci-check-icon {
  color: #2563eb;
  flex-shrink: 0;
  margin-top: 0.1rem;
  width: 18px;
  height: 18px;
}

.ci-check-item span {
  font-size: 0.85rem;
  font-weight: 500;
  color: #334155;
  line-height: 1.4;
}

.ci-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFD147;
  color: #0f172a;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 1rem 2.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 25px rgba(234,179,8,0.3);
  transition: all 0.3s ease;
  width: 100%;
}
@media (min-width: 480px) { .ci-cta-btn { width: auto; } }
.ci-cta-btn:hover {
  background: #FACC15;
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(234,179,8,0.45);
}

/* ── Features Cards (Section 3) ─────────────── */
.feat-section {
  padding: 6rem 0;
  background: #fff;
  position: relative;
}
.feat-bg-tint {
  position: absolute;
  inset: 0;
  background: #f8fafc;
  opacity: 0.5;
  pointer-events: none;
}

.feat-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.feat-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 4rem;
}

.feat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.feat-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.feat-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  font-weight: 400;
  line-height: 1.65;
}

.feat-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px)  { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .feat-grid { grid-template-columns: 1fr 1fr 1fr; } }

.feat-card {
  background: #fff;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 10px 40px rgba(15,23,42,0.08);
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: default;
}
.feat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(59,130,246,0.15);
  border-color: #bfdbfe;
}

.feat-card-glow {
  position: absolute;
  top: -2rem; right: -2rem;
  width: 8rem; height: 8rem;
  background: #f8fafc;
  border-radius: 9999px;
  transition: transform 0.6s ease;
  z-index: 0;
}
.feat-card:hover .feat-card-glow { transform: scale(2); }

.feat-card-body {
  position: relative;
  z-index: 1;
}

.feat-icon-wrap {
  width: 4rem; height: 4rem;
  background: #f8fafc;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}
.feat-card:hover .feat-icon-wrap { transform: scale(1.1) rotate(3deg); }

.feat-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.feat-card-desc {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.65;
  font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────
   COURSES PAGE (Matches https://www.newgstar.com/courses)
───────────────────────────────────────────────────────────── */

.courses-page-wrapper {
  min-height: 100vh;
  background-color: #020617; /* slate-950 */
  color: #e2e8f0;
}

.courses-hero-banner {
  padding-top: 8rem; /* pt-32 */
  padding-bottom: 4rem; /* pb-16 */
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  background: linear-gradient(180deg, rgba(30, 58, 138, 0.2) 0%, #020617 100%);
  border-bottom: 1px solid #1e293b;
  text-align: center;
}

.courses-hero-inner {
  max-width: 80rem;
  margin: 0 auto;
}

.courses-hero-title {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.courses-hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: #94a3b8;
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.6;
}

.courses-content-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

.courses-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .courses-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .courses-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Individual Card */
.courses-card-item {
  background-color: #0f172a; /* slate-900 */
  border: 1px solid #1e293b; /* slate-800 */
  border-radius: 1rem; /* rounded-2xl */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
}

.courses-card-item:hover {
  border-color: #334155; /* slate-700 */
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.18);
}

/* Card Thumbnail */
.courses-card-thumb {
  position: relative;
  width: 100%;
  height: 12rem; /* h-48 */
  overflow: hidden;
  background-color: #1e293b;
}

.courses-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.courses-card-item:hover .courses-card-img {
  transform: scale(1.05);
}

.courses-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background-color: #2563eb;
  color: #ffffff;
  font-size: 0.625rem; /* 10px */
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Card Body */
.courses-card-body {
  padding: 1.5rem;
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
}

.courses-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.courses-card-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.courses-card-item:hover .courses-card-title a {
  color: #60a5fa; /* blue-400 */
}

.courses-card-desc {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.55;
  margin-bottom: 1rem;
  flex: 1 1 0%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Meta (Lessons & Duration) */
.courses-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #1e293b;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.meta-icon.icon-blue {
  color: #3b82f6;
}

.meta-icon.icon-purple {
  color: #a855f7;
}

/* Card Footer Info (Instructor & Price) */
.courses-card-footer-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.instructor-info-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.instructor-avatar-wrap {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid #334155;
  flex-shrink: 0;
}

.instructor-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instructor-text-wrap {
  display: flex;
  flex-direction: column;
}

.instructor-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.2;
}

.instructor-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.125rem;
}

.instructor-rating .star-icon {
  width: 0.75rem;
  height: 0.75rem;
}

.instructor-rating .rating-val {
  font-size: 0.625rem;
  font-weight: 700;
  color: #f59e0b;
}

.instructor-rating .reviews-count {
  font-size: 0.625rem;
  color: #64748b;
}

.course-price-wrap .price-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

/* Card Action Button */
.courses-card-action {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.btn-enroll-now {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  background-color: #1e293b;
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.courses-card-item:hover .btn-enroll-now {
  background-color: #2563eb;
  color: #ffffff;
}

/* Empty State */
.courses-empty-state {
  text-align: center;
  padding: 5rem 1rem;
}

.courses-empty-state svg {
  margin-bottom: 1rem;
}

.courses-empty-state .empty-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.5rem;
}

.courses-empty-state .empty-desc {
  font-size: 1rem;
  color: #94a3b8;
}

/* ─────────────────────────────────────────────────────────────
   COURSE DETAILS PAGE (Matches newgstar.com/courses/[slug])
───────────────────────────────────────────────────────────── */
.course-detail-page {
  min-height: 100vh;
  background-color: #020617;
  color: #e2e8f0;
}

.cd-container {
  max-width: 80rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.cd-hero {
  padding-top: 7.5rem;
  padding-bottom: 4rem;
  background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 60%), #020617;
  border-bottom: 1px solid #1e293b;
}

.cd-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .cd-hero-grid {
    grid-template-columns: 1.6fr 1fr;
  }
}

.cd-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.cd-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cd-badge-blue {
  background-color: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.4);
}

.cd-badge-purple {
  background-color: rgba(147, 51, 234, 0.2);
  color: #c084fc;
  border: 1px solid rgba(147, 51, 234, 0.4);
}

.cd-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.cd-subtitle {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.cd-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
}

.cd-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cd-rating-val {
  font-weight: 700;
  color: #f59e0b;
}

.cd-rating-count {
  color: #94a3b8;
  font-size: 0.8rem;
}

.cd-meta-dot {
  color: #475569;
}

.cd-instructor-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 9999px;
}

.cd-inst-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  overflow: hidden;
}

.cd-inst-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cd-inst-label {
  font-size: 0.675rem;
  color: #94a3b8;
  line-height: 1;
}

.cd-inst-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

/* Right Sticky Enroll Card */
.cd-enroll-card {
  background-color: #ffffff;
  color: #0f172a;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 6rem;
}

.cd-card-media {
  position: relative;
  width: 100%;
  height: 13rem;
  overflow: hidden;
  background-color: #020617;
}

.cd-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.cd-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(0,0,0,0.3);
  cursor: pointer;
}

.cd-play-circle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.cd-play-overlay:hover .cd-play-circle {
  transform: scale(1.1);
}

.cd-preview-text {
  font-size: 0.675rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.cd-card-body {
  padding: 1.5rem;
}

.cd-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.cd-price-main {
  font-size: 2.25rem;
  font-weight: 900;
  color: #0f172a;
}

.cd-price-old {
  font-size: 1.1rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.cd-discount-tag {
  background-color: #dcfce7;
  color: #15803d;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
}

.cd-btn-enroll {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.9rem 1.5rem;
  border-radius: 0.75rem;
  background-color: #2563eb;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
  margin-bottom: 1.5rem;
}

.cd-btn-enroll:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45);
}

.cd-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cd-features-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: #334155;
  font-weight: 500;
}

/* Body Content */
.cd-body-content {
  padding-top: 3.5rem;
  padding-bottom: 6rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 60rem;
  margin-left: 0;
}

.cd-section-card {
  background-color: #ffffff;
  color: #0f172a;
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cd-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.cd-master-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .cd-master-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.cd-master-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.925rem;
  color: #334155;
  font-weight: 500;
}

/* Curriculum Section */
.cd-curriculum-section {
  margin-top: 1rem;
}

.cd-curr-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.cd-curr-sub {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 1.25rem;
}

.cd-accordion-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cd-acc-item {
  background-color: #ffffff;
  color: #0f172a;
  border-radius: 0.875rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cd-acc-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  background: #ffffff;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.cd-acc-header:hover {
  background: #f8fafc;
}

.cd-acc-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.cd-mod-badge {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cd-mod-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.cd-acc-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cd-mod-count {
  font-size: 0.8rem;
  color: #64748b;
}

.cd-acc-chevron {
  color: #94a3b8;
  transition: transform 0.3s ease;
}

.cd-acc-item.active .cd-acc-chevron {
  transform: rotate(180deg);
}

.cd-acc-body {
  display: none;
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
}

.cd-acc-item.active .cd-acc-body {
  display: block;
}

.cd-lessons-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cd-lesson-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #f8fafc;
  transition: background 0.15s ease;
}

.cd-lesson-item:hover {
  background: #f8fafc;
}

.cd-lesson-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.cd-lesson-icon {
  flex-shrink: 0;
}

.cd-lesson-title {
  font-size: 0.875rem;
  color: #334155;
  font-weight: 500;
}

.cd-lesson-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.cd-preview-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
}

.cd-lesson-duration {
  font-size: 0.75rem;
  color: #94a3b8;
}

.cd-req-list {
  padding-left: 1.25rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #475569;
}

/* ─────────────────────────────────────────────────────────────
   CHECKOUT PAGE (Matches newgstar.com checkout)
───────────────────────────────────────────────────────────── */
.checkout-page-wrapper {
  min-height: 100vh;
  background-color: #020617;
  color: #e2e8f0;
  padding-top: 7rem;
  padding-bottom: 6rem;
}

.checkout-container {
  max-width: 68rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.checkout-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #94a3b8;
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.checkout-back-link:hover {
  color: #60a5fa;
}

.checkout-page-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.checkout-page-sub {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 2.5rem;
}

.checkout-alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
}

.checkout-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .checkout-form-grid {
    grid-template-columns: 1.6fr 1fr;
  }
}

.checkout-card {
  background-color: #ffffff;
  color: #0f172a;
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.checkout-sec-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.checkout-sec-sub {
  font-size: 0.825rem;
  color: #64748b;
  margin-bottom: 1.25rem;
}

.checkout-fields-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .checkout-fields-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field-group label {
  font-size: 0.825rem;
  font-weight: 700;
  color: #334155;
}

.text-red {
  color: #ef4444;
}

.checkout-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.625rem;
  font-size: 0.9rem;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.checkout-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Payment Methods List */
.payment-methods-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pay-method-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pay-method-item:hover {
  border-color: #93c5fd;
  background-color: #f8fafc;
}

.pay-method-item.active {
  border-color: #ec4899;
  background-color: #fdf2f8;
}

.pay-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.pay-radio {
  accent-color: #db2777;
  width: 1.15rem;
  height: 1.15rem;
}

.pay-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.pay-desc {
  font-size: 0.775rem;
  color: #64748b;
}

.pay-badge {
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 0.375rem;
}

.badge-bkash {
  background-color: #fce7f3;
  color: #be185d;
}

.badge-nagad {
  background-color: #ffedd5;
  color: #c2410c;
}

.badge-cards {
  background-color: #eff6ff;
  color: #1d4ed8;
}

.badge-stripe {
  background-color: #f3e8ff;
  color: #7e22ce;
}

.badge-paypal {
  background-color: #e0f2fe;
  color: #0284c7;
}

.badge-bank {
  background-color: #ecfdf5;
  color: #059669;
}

/* Order Summary Sidebar Card */
.order-summary-card {
  background-color: #ffffff;
  color: #0f172a;
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 6rem;
}

.summary-card-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #475569;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.summary-course-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}

.summary-course-thumb {
  width: 4rem;
  height: 3rem;
  object-fit: cover;
  border-radius: 0.5rem;
}

.summary-course-name {
  font-size: 0.925rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.summary-course-sub {
  font-size: 0.775rem;
  color: #64748b;
}

.promo-code-wrap {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.promo-input {
  flex: 1;
  padding: 0.65rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  outline: none;
}

.promo-apply-btn {
  padding: 0.65rem 1rem;
  background-color: #0f172a;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.promo-apply-btn:hover {
  background-color: #1e293b;
}

.summary-totals {
  margin-bottom: 1.5rem;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #475569;
}

.total-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 0.75rem 0;
}

.total-grand {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.grand-price {
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
}

.btn-pay-enroll {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background-color: #2563eb;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
  margin-bottom: 1rem;
}

.btn-pay-enroll:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45);
}

.checkout-guarantee-note {
  font-size: 0.725rem;
  color: #64748b;
  text-align: center;
  line-height: 1.4;
}

/* ─────────────────────────────────────────────────────────────
   ENROLL SUCCESS PAGE
───────────────────────────────────────────────────────────── */
.success-page-wrapper {
  min-height: 100vh;
  background-color: #020617;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem;
}

.success-card {
  background-color: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 1.5rem;
  padding: 3rem 2.5rem;
  max-width: 36rem;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 50px rgba(16, 185, 129, 0.15);
}

.success-icon-wrap {
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  background-color: rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.success-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.success-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.success-desc {
  font-size: 1rem;
  color: #94a3b8;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.success-details-box {
  background: #1e293b;
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.success-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.detail-label {
  color: #94a3b8;
}

.detail-val {
  color: #f1f5f9;
  font-weight: 600;
}

.status-active {
  color: #34d399;
  font-weight: 700;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.btn-start-course {
  display: block;
  width: 100%;
  padding: 0.9rem 1.5rem;
  background-color: #2563eb;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-start-course:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
}

.btn-browse-courses {
  display: block;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background-color: transparent;
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 0.75rem;
  border: 1px solid #334155;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-browse-courses:hover {
  background-color: #1e293b;
  color: #ffffff;
}

/* ─────────────────────────────────────────────────────────────
   AUTH PAGES (Login & Register matching newgstar.com)
───────────────────────────────────────────────────────────── */
.auth-page-wrapper {
  min-height: 100vh;
  background-color: #020617;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.5rem 4rem;
}

.auth-card {
  background-color: #ffffff;
  color: #0f172a;
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  max-width: 27rem;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.auth-logo-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background-color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.auth-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.auth-card-subtitle {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.auth-tabs {
  display: flex;
  background-color: #f1f5f9;
  padding: 0.25rem;
  border-radius: 0.625rem;
  margin-bottom: 1.25rem;
}

.auth-tab-btn {
  flex: 1;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  border: none;
  background: transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab-btn.active {
  background-color: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-google-auth {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.625rem;
  background-color: #ffffff;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-google-auth:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.auth-divider span {
  padding: 0 0.75rem;
}

.auth-error-alert {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 0.825rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.auth-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auth-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
}

.auth-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-forgot-link {
  font-size: 0.75rem;
  color: #2563eb;
  text-decoration: none;
}

.auth-forgot-link:hover {
  text-decoration: underline;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 0.85rem;
  pointer-events: none;
}

.auth-input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.6rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  color: #0f172a;
  outline: none;
  background-color: #f8fafc;
  transition: all 0.2s;
}

.auth-input:focus {
  background-color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.pwd-toggle-btn {
  position: absolute;
  right: 0.75rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
}

.btn-auth-submit {
  width: 100%;
  padding: 0.8rem 1.25rem;
  background-color: #2563eb;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 0.625rem;
  cursor: pointer;
  margin-top: 0.5rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transition: all 0.2s;
}

.btn-auth-submit:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
}

.auth-footer-text {
  font-size: 0.825rem;
  color: #64748b;
  margin-top: 1.5rem;
}

.auth-link-bold {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.auth-link-bold:hover {
  text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────
   STUDENT DASHBOARD (Matches newgstar.com/dashboard)
───────────────────────────────────────────────────────────── */
.dashboard-page-wrapper {
  min-height: 100vh;
  background-color: #020617; /* slate-950 */
  color: #e2e8f0;
  padding-top: 7rem;
  padding-bottom: 6rem;
}

.dashboard-container {
  max-width: 80rem; /* max-w-7xl */
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .dashboard-container {
    grid-template-columns: 18rem 1fr;
  }
}

/* Sidebar Profile Card */
.dash-profile-card {
  background-color: #ffffff;
  color: #0f172a;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 6rem;
}

.dash-user-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.dash-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background-color: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  flex-shrink: 0;
}

.dash-user-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.dash-user-email {
  font-size: 0.75rem;
  color: #64748b;
  word-break: break-all;
}

.dash-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 0.625rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dash-nav-item:hover {
  background-color: #f8fafc;
  color: #2563eb;
}

.dash-nav-item.active {
  background-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Right Main Area */
.dash-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dash-welcome-card {
  background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%);
  color: #ffffff;
  border-radius: 1.25rem;
  padding: 2.25rem 2rem;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

.dash-welcome-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.dash-welcome-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.dash-welcome-sub {
  font-size: 0.95rem;
  color: #e0e7ff;
  max-width: 38rem;
  line-height: 1.5;
}

/* 4 Stat Cards */
.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .dash-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.dash-stat-box {
  background-color: #ffffff;
  color: #0f172a;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.stat-box-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.stat-box-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

/* Enrolled Courses / Continue Learning Section */
.dash-courses-section {
  background-color: #ffffff;
  color: #0f172a;
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.dash-sec-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.5rem;
}

.dash-enrolled-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .dash-enrolled-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dash-course-card {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.dash-course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.dash-card-thumb-wrap {
  position: relative;
  width: 100%;
  height: 10rem;
  background-color: #0f172a;
  overflow: hidden;
}

.dash-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.dash-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dash-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
  line-height: 1.35;
}

.dash-progress-wrap {
  margin-bottom: 1.25rem;
  margin-top: auto;
}

.dash-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.775rem;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.dash-progress-bar {
  width: 100%;
  height: 0.5rem;
  background-color: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
}

.dash-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.btn-continue-learning {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.65rem 1rem;
  border-radius: 0.625rem;
  background-color: #2563eb;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-continue-learning:hover {
  background-color: #1d4ed8;
}

/* Empty State */
.dash-empty-state {
  text-align: center;
  padding: 4rem 1rem;
  border: 1.5px dashed #e2e8f0;
  border-radius: 1rem;
}

.empty-icon-wrap {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.empty-head {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.empty-text {
  font-size: 0.875rem;
  color: #64748b;
  max-width: 24rem;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

.btn-explore-courses {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 0.625rem;
  background-color: #2563eb;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all 0.2s;
}

.btn-explore-courses:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
}

/* ==========================================================================
   Comprehensive Universal Mobile Responsive System (Theory Pass Master)
   ========================================================================== */

/* ── 1. Global Viewport Safety & Layout Resets ────────────────────────── */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

img, video, iframe, svg {
  max-width: 100%;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

/* ── 2. Fluid Breakpoint Adjustments (Tablets & Mobile: < 992px) ────── */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 1.5rem !important;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
  }

  .courses-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 1.5rem !important;
  }
}

/* ── 3. Small Screen & Mobile Optimization (< 768px) ─────────────────── */
@media (max-width: 767px) {
  /* Spacings */
  .hero {
    padding: 5.5rem 0 3.5rem !important;
    min-height: auto !important;
  }

  .hero-inner,
  .section-inner,
  .footer-inner,
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .section-title {
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
  }

  .section-subtitle {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }

  .hero-title {
    font-size: 2.1rem !important;
    line-height: 1.2 !important;
  }

  .hero-desc {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }

  .hero-buttons {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }

  .hero-buttons .btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Single Column Grids */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .courses-grid,
  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* Auth & Checkout Forms */
  .auth-card,
  .checkout-card {
    padding: 1.5rem 1.25rem !important;
    margin: 1rem auto !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 1rem !important;
  }

  .form-row-2col,
  .grid-2col {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  /* Search Modal on Mobile */
  #global-search-modal {
    padding: 1rem 0.75rem !important;
  }

  .search-modal-card {
    max-width: 100% !important;
    margin: 0 auto !important;
    border-radius: 0.85rem !important;
  }

  /* Dashboard Cards */
  .dashboard-grid,
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

/* ── 4. Extra Small Devices (< 480px) ────────────────────────────────── */
@media (max-width: 479px) {
  .hero-title {
    font-size: 1.85rem !important;
  }

  .btn {
    padding: 0.65rem 1rem !important;
    font-size: 0.85rem !important;
  }

  .mobile-menu-btn {
    gap: 0.3rem !important;
  }

  .hamburger-btn {
    width: 36px !important;
    height: 36px !important;
  }

  .lang-btn {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.72rem !important;
  }

  .mobile-icon-btn {
    width: 32px !important;
    height: 32px !important;
  }

  .navbar-inner {
    padding: 0 0.75rem !important;
  }
}




