:root {
  --brand: #10b981;
  --brand-dark: #059669;
  --brand-soft: rgba(16, 185, 129, 0.12);
  --dark: #0b1220;
  --dark-2: #101a2c;
  --dark-3: #16233a;
  --navy: #1e293b;
  --body-bg: #f4f6f9;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--body-bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */
.btn-brand {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.2s ease;
}
.btn-brand:hover,
.btn-brand:focus {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* ------------------------------------------------------------------ */
/* Navbar                                                              */
/* ------------------------------------------------------------------ */
.site-navbar {
  background: var(--dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 24px rgba(11, 18, 32, 0.35);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff !important;
}
.site-brand i {
  font-size: 1.6rem;
  color: var(--brand);
}

/* Center the nav links in the space between brand and auth controls. */
.navbar-center {
  flex-grow: 1;
  justify-content: center;
  position: relative;
}
.navbar-center .navbar-nav {
  margin: 0;
}

.auth-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  /* Desktop: pinned to the right edge without affecting link centering. */
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* In the mobile hamburger menu, auth controls join the other nav items; a
   separator keeps them visually grouped at the bottom of the panel. */
@media (max-width: 991.98px) {
  .auth-right {
    position: static;
    transform: none;
    margin-left: 0;
    margin-top: 0.5rem;
    padding: 0.75rem 0.5rem 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
  }
}

.site-navbar .navbar-nav .nav-link {
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  position: relative;
  transition: color 0.2s ease;
}
.site-navbar .navbar-nav .nav-link:hover {
  color: #fff;
}
.site-navbar .navbar-nav .nav-link.active {
  color: #fff;
}
.site-navbar .navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.1rem;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.site-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.25);
}
.site-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ------------------------------------------------------------------ */
/* Hero (landing for anonymous visitors)                               */
/* ------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 55%, var(--dark-3) 100%);
  color: #fff;
  padding: 5rem 0 6rem;
}
.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-soft);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
}
.hero h1 .text-brand {
  color: var(--brand);
}

.hero-lead {
  color: #b8c4d6;
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem;
  max-width: 560px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.hero-search .form-control {
  border: none;
  box-shadow: none;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  background: transparent;
}
.hero-search .form-control:focus {
  box-shadow: none;
}
.hero-search .btn {
  border-radius: 999px;
  white-space: nowrap;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.75rem;
}
.hero-cta .btn-outline-light {
  border-radius: 999px;
  font-weight: 600;
}
.hero-cta .btn-outline-light:hover {
  background: #fff;
  color: var(--dark);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 3rem;
}
.hero-stats .stat-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.hero-stats .stat-value em {
  color: var(--brand);
  font-style: normal;
}
.hero-stats .stat-label {
  color: #8fa0b8;
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

/* ------------------------------------------------------------------ */
/* Feature cards                                                       */
/* ------------------------------------------------------------------ */
.features {
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
  box-shadow: 0 10px 30px rgba(11, 18, 32, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(11, 18, 32, 0.12);
}
.feature-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}
.feature-card h5 {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ------------------------------------------------------------------ */
/* Section headings                                                    */
/* ------------------------------------------------------------------ */
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.section-heading h2 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 0;
}
.section-heading .section-sub {
  color: var(--muted);
  margin-bottom: 0.25rem;
}

/* ------------------------------------------------------------------ */
/* Course cards                                                        */
/* ------------------------------------------------------------------ */
.course-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 20px rgba(11, 18, 32, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(11, 18, 32, 0.14);
}
.course-card .card-thumb {
  position: relative;
  display: block;
  overflow: hidden;
}
.course-card .card-thumb img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.course-card:hover .card-thumb img {
  transform: scale(1.05);
}
.course-card .card-thumb .thumb-placeholder {
  height: 185px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 100%);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 3rem;
}
.course-card .price-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(11, 18, 32, 0.85);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.site-footer {
  background: var(--dark);
  margin-top: 5rem;
  padding: 3.5rem 0 1.75rem;
  flex-shrink: 0;
}
.site-footer .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}
.site-footer .footer-brand i {
  color: var(--brand);
  font-size: 1.4rem;
}
.site-footer h6 {
  font-weight: 700;
}
.site-footer .footer-links li {
  margin-bottom: 0.55rem;
}
.site-footer .footer-links a {
  color: #b7c3d6;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.site-footer .footer-links a:hover {
  color: var(--brand);
}

/* ------------------------------------------------------------------ */
/* Small helper                                                        */
/* ------------------------------------------------------------------ */
.bg-brand-soft {
  background: var(--brand-soft);
}
.text-brand {
  color: var(--brand) !important;
}
.auth-card {
  border-radius: var(--radius);
  overflow: hidden;
}
.auth-card .card-header {
  border-bottom: none;
}
