/* ============================================================
   Maarifa EduHub – Redesign Stylesheet
   Provides custom styles for the redesigned front-end:
   navbar buttons, hero section, course cards, category cards,
   section titles, CTA, testimonials, and responsive overrides.
   ============================================================ */

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

/* ---------- Custom Properties ---------- */
:root {
  --text-dark: #2d3436;
  --text-muted: #636e72;
  --bg-light: #f8f9fa;
  --card-radius: 16px;
  --transition: 0.3s ease;
  --green-cta: #22c55e;
  --green-cta-hover: #16a34a;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* ===================================================================
   NAVBAR BUTTONS
   =================================================================== */
.btn-login {
  border: 2px solid var(--primary, #F0623E);
  color: var(--primary, #F0623E) !important;
  background: transparent;
  border-radius: 50px;
  padding: 6px 22px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}
.btn-login:hover,
.btn-login:focus {
  background: var(--primary, #F0623E);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(240, 98, 62, 0.35);
}

.btn-get-started {
  background: var(--primary, #F0623E) !important;
  color: #fff !important;
  border: 2px solid var(--primary, #F0623E);
  border-radius: 50px;
  padding: 8px 24px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-get-started:hover,
.btn-get-started:focus {
  background: #d9502f !important;
  color: #fff !important;
  border-color: #d9502f;
  box-shadow: 0 4px 12px rgba(240, 98, 62, 0.35);
}

.navbar.fixed-top {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  padding: 12px 0;
  z-index: 1030;
}

.navbar-nav {
  gap: 10px;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: all 0.2s ease;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1020;
  transition: opacity 0.3s ease;
}
.overlay.active {
  display: block;
}

/* ===================================================================
   HERO SECTION
   =================================================================== */
.hero-section {
  background: linear-gradient(135deg, #fef5f0 0%, #fdeadf 40%, #fdf0ea 60%, #fff8f5 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,98,62,0.08) 0%, transparent 70%);
  top: -180px;
  right: -120px;
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,0.06) 0%, transparent 70%);
  bottom: -100px;
  left: -60px;
  pointer-events: none;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero-title .text-learn {
  color: var(--primary, #F0623E);
}
.hero-title .text-grow {
  color: var(--text-dark);
}
.hero-title .text-succeed {
  color: var(--primary, #F0623E);
  position: relative;
  display: inline-block;
}
.hero-title .text-succeed::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--primary, #F0623E);
  opacity: 0.25;
  border-radius: 3px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted, #636e72);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 28px;
}

/* Hero search bar */
.hero-search {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 50px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  overflow: hidden;
  max-width: 480px;
  position: relative;
}
.hero-search .search-icon {
  position: absolute;
  left: 18px;
  color: #b2bec3;
  font-size: 1.1rem;
  z-index: 1;
}
.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 20px 14px 44px;
  font-size: 0.95rem;
  background: transparent;
  color: var(--text-dark);
}
.hero-search input::placeholder {
  color: #b2bec3;
}
.hero-search .btn-search {
  background: var(--primary, #F0623E);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 600;
  margin: 4px;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.hero-search .btn-search:hover {
  background: #d9502f;
  box-shadow: 0 4px 16px rgba(240, 98, 62, 0.3);
}

/* Hero CTA Buttons */
.btn-hero-getstarted {
  background: var(--primary, #F0623E);
  color: #fff !important;
  border: none;
  border-radius: 50px;
  padding: 10px 24px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(240, 98, 62, 0.25);
}
.btn-hero-getstarted:hover {
  background: #d9502f;
  box-shadow: 0 6px 24px rgba(240, 98, 62, 0.4);
  transform: translateY(-1px);
}

.btn-hero-startnow {
  background: var(--green-cta);
  color: #fff !important;
  border: none;
  border-radius: 50px;
  padding: 10px 24px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.25);
}
.btn-hero-startnow:hover {
  background: var(--green-cta-hover);
  box-shadow: 0 6px 24px rgba(34, 197, 94, 0.4);
  transform: translateY(-1px);
}

/* Hero Image Collage Grid */
.hero-image-grid {
  position: relative;
}
.hero-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  max-width: 480px;
  margin-left: auto;
}
.collage-item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}
.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.collage-item:hover img {
  transform: scale(1.05);
}
.collage-main {
  grid-row: span 2;
  min-height: 280px;
  border-radius: 20px;
}
.collage-top-right {
  min-height: 134px;
}
.collage-bottom-left {
  display: none; /* only show 3 images to match reference */
}
.collage-bottom-right {
  min-height: 134px;
}

/* Play overlay on video thumbnail */
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.collage-item:hover .play-overlay {
  opacity: 1;
}
.play-overlay i {
  font-size: 2.5rem;
  color: #fff;
  background: var(--primary, #F0623E);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(240,98,62,0.4);
}

/* Floating cards */
.hero-floating-card {
  position: absolute;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  padding: 16px 22px;
  animation: float 3.5s ease-in-out infinite;
  z-index: 5;
}
.hero-floating-card.card-courses {
  top: 20px;
  right: -10px;
  background: var(--primary, #F0623E);
  border-radius: 16px;
}

/* Watch Video link */
.hero-watch-video {
  position: absolute;
  bottom: 30px;
  left: 0;
  z-index: 5;
}
.play-btn-circle {
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: var(--transition);
}
.play-btn-circle i {
  font-size: 1.4rem;
  color: var(--primary, #F0623E);
  margin-left: 2px;
}
.hero-watch-video a:hover .play-btn-circle {
  background: var(--primary, #F0623E);
  box-shadow: 0 6px 24px rgba(240,98,62,0.3);
}
.hero-watch-video a:hover .play-btn-circle i {
  color: #fff;
}

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

/* Hero bottom row */
.hero-bottom-row {
  margin-top: 8px;
}
.hero-stats .fw-bold,
.hero-rating .fw-bold {
  color: var(--text-dark);
}

/* ===================================================================
   SECTION TITLES
   =================================================================== */
.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark, #2d3436);
  margin-bottom: 4px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: var(--primary, #F0623E);
  border-radius: 2px;
  margin-top: 8px;
}
.text-center .section-title::after {
  margin-left: auto;
  margin-right: auto;
}
.section-title-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.btn-view-all {
  color: var(--primary, #F0623E) !important;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.btn-view-all:hover {
  opacity: 0.8;
}
.btn-view-all i {
  transition: transform 0.3s ease;
}
.btn-view-all:hover i {
  transform: translateX(4px);
}

/* ===================================================================
   CATEGORY CARDS
   =================================================================== */
.category-card {
  background: #fff;
  border-radius: var(--card-radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
  height: 100%;
  cursor: pointer;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(240, 98, 62, 0.12);
  border-color: var(--primary, #F0623E);
}
.category-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(240, 98, 62, 0.1);
  color: var(--primary, #F0623E);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
  transition: var(--transition);
}
.category-card:hover .category-icon {
  transform: scale(1.1);
}

/* ===================================================================
   COURSE CARDS (New Design)
   =================================================================== */
.course-card-new {
  background: #fff;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.04);
}
.course-card-new:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.course-thumb-wrap {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}
.course-thumb-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.course-card-new:hover .course-thumb-wrap img {
  transform: scale(1.05);
}
.course-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary, #F0623E);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.course-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.course-cat {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary, #F0623E);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.course-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark, #2d3436) !important;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-description {
  font-size: 0.85rem;
  color: var(--text-muted) !important;
  margin-bottom: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.course-price-group {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.course-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary, #F0623E) !important;
}
.course-price.free {
  color: #16a34a !important;
}
.course-price-original {
  font-size: 0.85rem;
  color: #999 !important;
  text-decoration: line-through;
  font-weight: 500;
}

/* ===================================================================
   TESTIMONIAL CARDS
   =================================================================== */
.testimonial-card {
  background: #f8f9fa;
  border-radius: 20px;
  padding: 28px;
  height: 100%;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 3rem;
  color: var(--primary, #F0623E);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}
.testimonial-card h5 {
  color: var(--text-dark) !important;
}
.testimonial-card p.fst-italic {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ===================================================================
   CTA SECTION
   =================================================================== */
.cta-wrap {
  background: linear-gradient(135deg, var(--primary, #F0623E) 0%, #d9502f 100%);
  border-radius: 24px;
  padding: 60px 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-wrap::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  top: -100px;
  right: -60px;
  pointer-events: none;
}
.cta-wrap::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  bottom: -60px;
  left: -40px;
  pointer-events: none;
}
.cta-wrap h2 {
  color: #fff !important;
}
.cta-wrap p {
  color: rgba(255,255,255,0.85);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-wrap .btn {
  color: var(--primary) !important;
  font-weight: 700;
}
.cta-wrap .btn:hover {
  background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

/* ===================================================================
   BOOTSTRAP OVERRIDES (btn-primary brand color)
   =================================================================== */
.btn-primary,
.btn-primary:focus {
  background-color: var(--primary, #F0623E) !important;
  border-color: var(--primary, #F0623E) !important;
  color: #fff !important;
}
.btn-primary:hover {
  background-color: #d9502f !important;
  border-color: #d9502f !important;
}
.btn-outline-primary {
  color: var(--primary, #F0623E) !important;
  border-color: var(--primary, #F0623E) !important;
  background: transparent !important;
}
.btn-outline-primary:hover {
  background-color: var(--primary, #F0623E) !important;
  color: #fff !important;
}

/* ===================================================================
   FOOTER ACCENT BAR
   =================================================================== */
footer.bg-white {
  border-top: 3px solid transparent !important;
  border-image: linear-gradient(90deg, var(--primary, #F0623E), #f59e0b, #22c55e, #3b82f6) 1 !important;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 50px 0 40px;
  }
  .hero-title {
    font-size: 2.6rem;
  }
  .hero-search {
    max-width: 100%;
  }
  .hero-bottom-row {
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: 40px 0 30px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .hero-search {
    flex-direction: column;
    border-radius: 16px;
    gap: 0;
  }
  .hero-search .search-icon {
    display: none;
  }
  .hero-search input {
    width: 100%;
    text-align: center;
    padding-left: 20px;
  }
  .hero-search .btn-search {
    width: calc(100% - 8px);
    border-radius: 12px;
  }
  .section-title {
    font-size: 1.4rem;
  }
  .section-title-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta-wrap {
    padding: 40px 24px;
  }
  .cta-wrap h2 {
    font-size: 1.5rem;
  }
  .hero-cta-buttons {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.8rem;
  }
  .category-card {
    padding: 20px 12px;
  }
  .category-icon {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }
  .course-content {
    padding: 14px;
  }
  .course-name {
    font-size: 0.95rem;
  }
  .hero-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .hero-bottom-row .vr {
    display: none !important;
  }
}

/* ===================================================================
   LOGIN PAGE
   =================================================================== */
.login-page-bg {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: linear-gradient(135deg, #fef5f0 0%, #e8f4f8 50%, #fdf0ea 100%);
  position: relative;
  overflow: hidden;
}
.login-page-bg::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,98,62,0.06) 0%, transparent 70%);
  top: -200px;
  left: -200px;
  pointer-events: none;
}
.login-page-bg::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.05) 0%, transparent 70%);
  bottom: -100px;
  right: -100px;
  pointer-events: none;
}

.login-modern-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
}

.login-header-group {
  text-align: center;
  margin-bottom: 28px;
}
.login-header-group h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark) !important;
  margin-bottom: 6px;
}
.login-header-group p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Phone / Email toggle */
.login-toggle-group {
  display: flex;
  background: #f1f3f5;
  border-radius: 50px;
  padding: 4px;
  margin-bottom: 28px;
  gap: 4px;
}
.login-toggle-btn {
  flex: 1;
  border: none;
  background: transparent;
  border-radius: 50px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-toggle-btn.active {
  background: #fff;
  color: var(--text-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.login-toggle-btn:hover:not(.active) {
  color: var(--text-dark);
}

/* Form groups */
.login-form-group {
  margin-bottom: 20px;
}
.login-form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-dark) !important;
  margin-bottom: 8px;
}
.login-input-wrap {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border: 1.5px solid #e9ecef;
  border-radius: 12px;
  padding: 0 14px;
  transition: var(--transition);
}
.login-input-wrap:focus-within {
  border-color: var(--primary, #F0623E);
  box-shadow: 0 0 0 3px rgba(240,98,62,0.1);
  background: #fff;
}
.login-input-wrap i {
  font-size: 1.1rem;
  color: #b2bec3;
  flex-shrink: 0;
}
.login-input-wrap .form-control {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 12px 12px;
  font-size: 0.95rem;
  color: var(--text-dark);
}
.login-input-wrap .form-control::placeholder {
  color: #b2bec3;
}
.login-input-wrap .password-toggle {
  cursor: pointer;
  color: #b2bec3;
  transition: color 0.2s;
}
.login-input-wrap .password-toggle:hover {
  color: var(--primary, #F0623E);
}

/* Forgot password link */
.text-brand {
  color: var(--primary, #F0623E) !important;
}

/* Premium login button */
.login-btn-premium {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--primary, #F0623E) 0%, #e85530 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(240,98,62,0.3);
}
.login-btn-premium:hover {
  background: linear-gradient(135deg, #e85530 0%, #d9502f 100%);
  box-shadow: 0 6px 28px rgba(240,98,62,0.45);
  transform: translateY(-1px);
}

/* Quick access section */
.quick-access-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e9ecef;
  text-align: center;
}
.quick-access-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 500;
}
.quick-access-grid {
  display: flex;
  gap: 12px;
}
.quick-btn-outline {
  flex: 1;
  padding: 10px 20px;
  border: 1.5px solid #e0e0e0;
  border-radius: 50px;
  background: transparent;
  color: var(--text-dark) !important;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none !important;
  text-align: center;
  transition: var(--transition);
}
.quick-btn-outline:hover {
  border-color: var(--primary, #F0623E);
  background: rgba(240,98,62,0.04);
  color: var(--primary, #F0623E) !important;
}

/* Login responsive */
@media (max-width: 575.98px) {
  .login-modern-card {
    padding: 32px 24px;
    border-radius: 20px;
  }
  .login-header-group h1 {
    font-size: 1.5rem;
  }
  .login-toggle-btn {
    font-size: 0.82rem;
    padding: 8px 12px;
  }
}

/* ===================================================================
   REGISTER PAGE (reuse login styles)
   =================================================================== */
.register-page-bg {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: linear-gradient(135deg, #fef5f0 0%, #e8f4f8 50%, #fdf0ea 100%);
  position: relative;
  overflow: hidden;
}
.register-page-bg::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,0.06) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  pointer-events: none;
}
.register-modern-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  padding: 40px 36px;
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 1;
}

/* ===================================================================
   COURSES LISTING PAGE
   =================================================================== */
.filter-sidebar {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.02);
  height: fit-content;
  position: sticky;
  top: 100px;
}
.filter-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark) !important;
  margin-bottom: 24px;
}
.filter-group {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f3f5;
}
.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.filter-group-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark) !important;
  margin-bottom: 14px;
  text-transform: capitalize;
}

/* Custom Checkbox/Radio styling for filters */
.filter-sidebar .form-check {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
.filter-sidebar .form-check-input {
  margin-top: 0;
  width: 1.1em;
  height: 1.1em;
  cursor: pointer;
  border: 1.5px solid #d1d5db;
}
.filter-sidebar .form-check-input:checked {
  background-color: var(--primary, #F0623E);
  border-color: var(--primary, #F0623E);
}
.filter-sidebar .form-check-label {
  cursor: pointer;
  padding-left: 8px;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.9rem;
}

.btn-cancel-filters {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  font-weight: 600;
  margin-top: 8px;
}

/* Header count and search */
.courses-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}
.courses-title-area h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 4px;
}

/* Badges for Courses */
.card-badges-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.badge-cat, .badge-level {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
}
.badge-cat {
  background: rgba(240,98,62,0.1);
  color: var(--primary, #F0623E);
}
.badge-cat.Technology { background: rgba(14,165,233,0.1); color: #0ea5e9; }
.badge-cat.Design { background: rgba(16,185,129,0.1); color: #10b981; }
.badge-cat.Marketing { background: rgba(244,63,94,0.1); color: #f43f5e; }
.badge-cat.Business { background: rgba(139,92,246,0.1); color: #8b5cf6; }

.badge-level {
  background: #f3f4f6;
  color: #6b7280;
}

/* Instructor & Stats */
.course-instructor-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.course-instructor-info .instructor-name {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.88rem;
}
.course-rating-stats {
  display: flex;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 6px;
}
.course-rating-stats i.bi-star-fill {
  color: #fbbf24;
}

@media (max-width: 991.98px) {
  .filter-sidebar {
    position: static;
    margin-bottom: 30px;
  }
}