/* ==========================================================================
   EDUSPHERE - Modern 2026 Online Education & LMS Platform CSS
   ========================================================================== */

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

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Unified Brand Color Palette */
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --primary-dark: #3730A3;
  --primary-rgb: 79, 70, 229;
  --primary-light: #EEF2FF;
  --primary-border: #E0E7FF;
  
  --secondary: #4338CA;
  --secondary-light: #EEF2FF;
  
  --accent: #4F46E5;
  --accent-light: #EEF2FF;
  
  --success: #059669;
  --success-light: #ECFDF5;
  
  --danger: #DC2626;
  --danger-light: #FEF2F2;

  /* Neutrals */
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --white: #FFFFFF;

  /* Elevations */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 8px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 6px 20px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.08);
  --shadow-primary: 0 8px 24px -2px rgba(79, 70, 229, 0.25);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
  
  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--slate-50);
  color: var(--slate-700);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--slate-900);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--slate-100);
}
::-webkit-scrollbar-thumb {
  background: var(--slate-300);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--slate-400);
}

/* Section Spacing */
.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
  border: 1px solid var(--primary-border);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.75rem;
  }
}

.section-subtitle {
  color: var(--slate-500);
  font-size: 1.125rem;
  max-width: 620px;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.6875rem 1.375rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.btn-outline-primary {
  background-color: transparent;
  border-color: var(--slate-200);
  color: var(--slate-700);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-light {
  background-color: var(--white);
  border-color: var(--slate-200);
  color: var(--slate-800);
  box-shadow: var(--shadow-xs);
}

.btn-light:hover {
  background-color: var(--slate-100);
  border-color: var(--slate-300);
  color: var(--slate-900);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-lg);
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-primary { background-color: var(--primary-light); color: var(--primary); }
.badge-secondary { background-color: var(--secondary-light); color: var(--secondary); }
.badge-accent { background-color: var(--accent-light); color: #B45309; }
.badge-success { background-color: var(--success-light); color: var(--success); }

/* ==========================================================================
   NAVIGATION & HEADER
   ========================================================================== */

.top-bar {
  background-color: var(--slate-900);
  color: var(--slate-300);
  font-size: 0.8125rem;
  padding: 0.45rem 0;
}

.top-bar a {
  color: var(--slate-300);
}

.top-bar a:hover {
  color: var(--white);
}

.main-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1020;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  transition: var(--transition);
}

.main-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--slate-900);
  letter-spacing: -0.03em;
}

.navbar-brand .brand-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, #6366F1 100%);
  color: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.navbar-nav .nav-link {
  font-weight: 600;
  color: var(--slate-700);
  font-size: 0.9375rem;
  padding: 0.75rem 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary);
}

.dropdown-menu {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  background-color: var(--white);
  animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  color: var(--slate-700);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.dropdown-item:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.header-action-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-700);
  background-color: var(--slate-100);
  border: 1px solid var(--slate-200);
  position: relative;
  transition: var(--transition);
}

.header-action-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-border);
}

.header-action-btn .badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--primary);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

.user-nav-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-border);
}

/* ==========================================================================
   CARDS & HOVER EFFECTS
   ========================================================================== */

.card-custom {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-custom:hover {
  border-color: rgba(79, 70, 229, 0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* Category Card */
.category-card {
  padding: 1.75rem 1.5rem;
  text-align: center;
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  height: 100%;
}

.category-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
  background-color: var(--white);
}

.category-icon-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.category-card:hover .category-icon-box {
  background-color: var(--primary);
  color: var(--white);
  transform: scale(1.08);
}

.category-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.35rem;
}

.category-count {
  font-size: 0.875rem;
  color: var(--slate-500);
}

/* Course Card */
.course-card {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.course-card:hover {
  border-color: rgba(79, 70, 229, 0.3);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.course-thumb-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: var(--slate-100);
}

.course-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.course-card:hover .course-thumb-wrap img {
  transform: scale(1.05);
}

.course-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
}

.course-wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-600);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.course-wishlist-btn:hover {
  background-color: var(--white);
  color: var(--danger);
  transform: scale(1.1);
}

.course-wishlist-btn.active {
  color: var(--danger);
}

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

.course-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
}

.course-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
  color: var(--slate-800);
}

.course-rating .star-icon {
  color: #F59E0B;
}

.course-rating-count {
  color: var(--slate-400);
  font-weight: 400;
}

.course-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.course-title a {
  color: var(--slate-900);
}

.course-title a:hover {
  color: var(--primary);
}

.course-instructor {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.instructor-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.instructor-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
}

.course-features-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--slate-100);
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.course-feature-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.course-card-footer {
  padding: 1rem 1.25rem;
  background-color: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.course-price-box {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.current-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

.old-price {
  font-size: 0.875rem;
  color: var(--slate-400);
  text-decoration: line-through;
}

/* Instructor Card */
.instructor-card {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
  height: 100%;
}

.instructor-card:hover {
  border-color: rgba(79, 70, 229, 0.3);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.instructor-photo-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--slate-100);
}

.instructor-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.instructor-card:hover .instructor-photo-wrap img {
  transform: scale(1.05);
}

.instructor-info {
  padding: 1.5rem 1.25rem;
}

.instructor-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.instructor-profession {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-bottom: 1rem;
}

.instructor-stats {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
}

.instructor-stats span {
  font-weight: 700;
  color: var(--slate-900);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--slate-100);
  color: var(--slate-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.social-btn:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* Event Card */
.event-card {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.event-card:hover {
  border-color: rgba(79, 70, 229, 0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.event-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.event-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.event-card:hover .event-thumb-wrap img {
  transform: scale(1.05);
}

.event-date-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  line-height: 1.1;
}

.event-date-day {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.event-date-month {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--slate-500);
  display: block;
}

.event-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.event-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--slate-500);
  margin-bottom: 0.75rem;
}

.event-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.event-desc {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-bottom: 1.25rem;
}

/* Blog Card */
.blog-card {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  border-color: rgba(79, 70, 229, 0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.blog-thumb-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.blog-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-thumb-wrap img {
  transform: scale(1.05);
}

.blog-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.8125rem;
  color: var(--slate-500);
  margin-bottom: 0.75rem;
}

.blog-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.blog-desc {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-bottom: 1rem;
}

/* ==========================================================================
   HOMEPAGE SPECIFIC SECTIONS
   ========================================================================== */

/* Hero Section */
.hero-section {
  position: relative;
  padding: 5rem 0 6rem;
  background: linear-gradient(180deg, #F8FAFC 0%, #EEF2FF 100%);
  border-bottom: 1px solid var(--slate-200);
  overflow: hidden;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--slate-900);
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 2.75rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.15rem;
  }
}

.hero-subtitle {
  font-size: 1.1875rem;
  color: var(--slate-600);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-search-box {
  background-color: var(--white);
  padding: 0.45rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  max-width: 520px;
  margin-bottom: 1.5rem;
}

.hero-search-box input {
  border: none;
  outline: none;
  box-shadow: none;
  padding: 0.6rem 1rem;
  font-size: 0.9375rem;
  width: 100%;
}

.hero-visual-wrap {
  position: relative;
}

.hero-main-img-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}

.hero-float-card {
  position: absolute;
  background-color: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 3;
  animation: floatSubtle 4s ease-in-out infinite alternate;
}

.hero-float-1 {
  bottom: 24px;
  left: -20px;
}

.hero-float-2 {
  top: 24px;
  right: -20px;
  animation-delay: -2s;
}

@media (max-width: 768px) {
  .hero-float-1, .hero-float-2 {
    position: static;
    margin-top: 1rem;
    animation: none;
  }
}

@keyframes floatSubtle {
  from { transform: translateY(0px); }
  to { transform: translateY(-8px); }
}

.float-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.float-icon.primary { background-color: var(--primary-light); color: var(--primary); }
.float-icon.accent { background-color: var(--accent-light); color: var(--accent); }
.float-icon.success { background-color: var(--success-light); color: var(--success); }

/* Statistics Section */
.stats-section {
  background-color: var(--white);
  border-bottom: 1px solid var(--slate-200);
  padding: 3rem 0;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.stat-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-lg);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--slate-500);
  font-weight: 500;
}

/* Filter Nav Tabs */
.filter-tabs {
  display: inline-flex;
  padding: 0.35rem;
  background-color: var(--slate-100);
  border-radius: var(--radius-pill);
  gap: 0.35rem;
  border: 1px solid var(--slate-200);
}

.filter-tabs .tab-btn {
  border: none;
  background: transparent;
  color: var(--slate-600);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  cursor: pointer;
}

.filter-tabs .tab-btn.active,
.filter-tabs .tab-btn:hover {
  background-color: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

/* Video Showcase Section */
.video-showcase-box {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
  background-color: var(--slate-900);
}

.video-showcase-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  box-shadow: 0 0 0 10px rgba(79, 70, 229, 0.25), 0 0 0 20px rgba(79, 70, 229, 0.15);
  cursor: pointer;
  transition: var(--transition);
  animation: pulsePlay 2.5s infinite;
}

.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: var(--primary-hover);
}

@keyframes pulsePlay {
  0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4), 0 0 0 10px rgba(79, 70, 229, 0.2); }
  70% { box-shadow: 0 0 0 15px rgba(79, 70, 229, 0), 0 0 0 25px rgba(79, 70, 229, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0), 0 0 0 0 rgba(79, 70, 229, 0); }
}

/* Feature Box */
.feature-box {
  padding: 2rem 1.5rem;
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  height: 100%;
}

.feature-box:hover {
  border-color: rgba(79, 70, 229, 0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--slate-500);
  margin-bottom: 0;
}

/* How It Works Steps */
.step-item {
  position: relative;
  text-align: center;
  padding: 1.5rem;
}

.step-badge {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  border: 2px dashed var(--primary);
  position: relative;
  z-index: 2;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.9375rem;
  color: var(--slate-500);
}

/* Testimonial Card */
.testimonial-card {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-quote {
  font-size: 1.125rem;
  color: var(--slate-700);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-border);
}

.author-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.15rem;
}

.author-role {
  font-size: 0.8125rem;
  color: var(--slate-500);
}

/* CTA Section */
.cta-banner {
  background: linear-gradient(135deg, var(--slate-900) 0%, #1E1B4B 100%);
  border-radius: var(--radius-xl);
  padding: 4.5rem 3.5rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .cta-banner {
    padding: 2.5rem 1.5rem;
  }
}

.cta-banner h2 {
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .cta-banner h2 {
    font-size: 1.85rem;
  }
}

.cta-banner p {
  color: var(--slate-300);
  font-size: 1.125rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

/* Newsletter Box */
.newsletter-card {
  background-color: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  text-align: center;
}

@media (max-width: 768px) {
  .newsletter-card {
    padding: 2rem 1.25rem;
  }
}

/* Footer */
.site-footer {
  background-color: #0F172A;
  color: #94A3B8;
  padding-top: 4.5rem;
  border-top: 1px solid #1E293B;
  position: relative;
  z-index: 10;
}

.footer-newsletter-box {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.footer-brand {
  color: #FFFFFF !important;
  font-size: 1.45rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  text-decoration: none;
}

.footer-brand .brand-logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary) 0%, #6366F1 100%);
  color: #FFFFFF;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.footer-desc {
  color: #94A3B8 !important;
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.footer-heading {
  color: #FFFFFF !important;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #CBD5E1 !important;
  font-size: 0.9375rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.footer-links a i {
  font-size: 0.75rem;
  color: #818CF8;
  transition: transform 0.2s ease;
}

.footer-links a:hover {
  color: #FFFFFF !important;
  transform: translateX(4px);
}

.footer-links a:hover i {
  transform: translateX(2px);
  color: #FFFFFF;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-social-link:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF !important;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.footer-bottom {
  padding: 1.75rem 0;
  margin-top: 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

.footer-legal-links a {
  color: #94A3B8 !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: #FFFFFF !important;
  text-decoration: underline;
}

/* Back To Top Button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-hover);
  transform: translateY(-4px);
}

/* ==========================================================================
   PAGE HEADERS & BREADCRUMBS
   ========================================================================== */

.page-header {
  background: linear-gradient(180deg, #F8FAFC 0%, #EEF2FF 100%);
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--slate-200);
}

.page-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.breadcrumb-custom {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-500);
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb-custom a {
  color: var(--slate-600);
}

.breadcrumb-custom a:hover {
  color: var(--primary);
}

.breadcrumb-custom .active {
  color: var(--primary);
  font-weight: 600;
}

/* ==========================================================================
   COURSE DETAILS SPECIFIC
   ========================================================================== */

.course-details-hero {
  background-color: var(--slate-900);
  color: var(--white);
  padding: 3.5rem 0 4rem;
}

.course-details-hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.course-sidebar-card {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: sticky;
  top: 90px;
}

.course-video-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: var(--slate-900);
  cursor: pointer;
}

.course-video-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.preview-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.course-video-preview:hover .preview-play-icon {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: var(--white);
}

.curriculum-accordion .accordion-item {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.curriculum-accordion .accordion-button {
  font-weight: 700;
  color: var(--slate-900);
  background-color: var(--slate-50);
  padding: 1rem 1.25rem;
  box-shadow: none !important;
}

.curriculum-accordion .accordion-button:not(.collapsed) {
  background-color: var(--primary-light);
  color: var(--primary);
}

.curriculum-lesson-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--slate-100);
  font-size: 0.9375rem;
}

.curriculum-lesson-item:last-child {
  border-bottom: none;
}

/* ==========================================================================
   DASHBOARD & PROFILE
   ========================================================================== */

.dashboard-sidebar {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  box-shadow: var(--shadow-xs);
}

.dashboard-user-box {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--slate-100);
  margin-bottom: 1.25rem;
}

.dashboard-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-border);
  margin: 0 auto 0.75rem;
}

.dashboard-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  color: var(--slate-700);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: var(--transition);
  margin-bottom: 0.25rem;
}

.dashboard-nav-item:hover,
.dashboard-nav-item.active {
  background-color: var(--primary-light);
  color: var(--primary);
}

.dashboard-stat-card {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dashboard-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* ==========================================================================
   AUTH PAGES (LOGIN, REGISTER, ETC)
   ========================================================================== */

.auth-card {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.5rem;
  box-shadow: var(--shadow-md);
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 576px) {
  .auth-card {
    padding: 2rem 1.5rem;
  }
}

.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  background-color: var(--white);
  color: var(--slate-700);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: var(--transition);
}

.auth-social-btn:hover {
  background-color: var(--slate-50);
  border-color: var(--slate-300);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--slate-400);
  font-size: 0.8125rem;
  margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--slate-200);
}

.auth-divider::before { margin-right: .75em; }
.auth-divider::after { margin-left: .75em; }

.form-control, .form-select {
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  padding: 0.65rem 1rem;
  font-size: 0.9375rem;
  color: var(--slate-800);
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 0.35rem;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.toast-container-custom {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.custom-toast {
  background-color: var(--slate-900);
  color: var(--white);
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  min-width: 280px;
  max-width: 380px;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 4px solid var(--primary);
}

.custom-toast.success { border-left-color: var(--success); }
.custom-toast.error { border-left-color: var(--danger); }
.custom-toast.warning { border-left-color: var(--accent); }

@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Utility Helpers */
.text-primary-custom { color: var(--primary) !important; }
.bg-primary-custom { background-color: var(--primary) !important; }
.bg-primary-light { background-color: var(--primary-light) !important; }
.border-radius-lg { border-radius: var(--radius-lg) !important; }
.border-radius-xl { border-radius: var(--radius-xl) !important; }

/* Slate Text & Background Utilities */
.text-slate-50 { color: var(--slate-50) !important; }
.text-slate-100 { color: var(--slate-100) !important; }
.text-slate-200 { color: var(--slate-200) !important; }
.text-slate-300 { color: var(--slate-300) !important; }
.text-slate-400 { color: var(--slate-400) !important; }
.text-slate-500 { color: var(--slate-500) !important; }
.text-slate-600 { color: var(--slate-600) !important; }
.text-slate-700 { color: var(--slate-700) !important; }
.text-slate-800 { color: var(--slate-800) !important; }
.text-slate-900 { color: var(--slate-900) !important; }

.bg-slate-50 { background-color: var(--slate-50) !important; }
.bg-slate-100 { background-color: var(--slate-100) !important; }
.bg-slate-200 { background-color: var(--slate-200) !important; }
.bg-slate-800 { background-color: var(--slate-800) !important; }
.bg-slate-900 { background-color: var(--slate-900) !important; }

.border-slate-100 { border-color: var(--slate-100) !important; }
.border-slate-200 { border-color: var(--slate-200) !important; }
.border-slate-300 { border-color: var(--slate-300) !important; }
.border-slate-700 { border-color: var(--slate-700) !important; }
.border-slate-800 { border-color: var(--slate-800) !important; }

/* Global Text Readability & Contrast Overrides */
.text-dark { color: #0F172A !important; }
.text-muted { color: #64748B !important; }
.card, .course-card, .instructor-card, .event-card, .blog-card {
  color: #334155;
}
.accordion-button {
  color: #0F172A !important;
}
.accordion-button:not(.collapsed) {
  color: var(--primary) !important;
  background-color: var(--primary-light) !important;
}

/* Top bar text contrast */
.top-bar {
  background-color: var(--slate-900);
  color: var(--slate-300);
}
.top-bar a {
  color: var(--slate-300) !important;
  transition: color 0.2s ease;
}
.top-bar a:hover {
  color: #FFFFFF !important;
}

/* Dark Hero Sections (course-details, etc.) contrast */
.course-details-hero {
  background-color: var(--slate-900);
  color: #F8FAFC;
}
.course-details-hero .breadcrumb-custom {
  color: var(--slate-400);
}
.course-details-hero .breadcrumb-custom a {
  color: var(--slate-300);
}
.course-details-hero .breadcrumb-custom a:hover {
  color: #FFFFFF;
}
.course-details-hero .breadcrumb-custom .active {
  color: #FFFFFF;
  font-weight: 600;
}
.course-details-hero h1,
.course-details-hero .page-title {
  color: #FFFFFF !important;
}
.course-details-hero p,
.course-details-hero .lead {
  color: var(--slate-200) !important;
}

/* Form inputs high contrast */
.form-label {
  color: #0F172A !important;
  font-weight: 600;
}
.form-control, .form-select {
  color: #0F172A !important;
  background-color: #FFFFFF !important;
}
.form-control::placeholder {
  color: #94A3B8 !important;
}

/* Badge high contrast */
.badge-tag.badge-primary {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

/* Button high contrast */
.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #FFFFFF !important;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  color: #FFFFFF !important;
}
.btn-outline-primary {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
  background-color: transparent !important;
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #FFFFFF !important;
}


