:root {
  --primary-gradient: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
  --surface-shadow: 0 10px 30px rgba(0,0,0,0.08);
  --hover-shadow: 0 20px 40px rgba(0,0,0,0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-spin { transition: var(--transition); }
.logo-spin:hover { transform: rotate(10deg) scale(1.05); }

.home-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, #ffffff, #f8faff);
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
}
.hero-content-wrapper { padding: 3rem 0 5rem 0; }
.hero-title {
  font-size: 4.2rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  animation: fadeInUp 0.8s ease-out;
}
.hero-sub {
  font-size: 1.25rem;
  max-width: 600px;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease-out;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-visual-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 2rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.05);
  padding: 3rem;
  border: 1px solid rgba(255,255,255,0.5);
  position: relative;
  z-index: 2;
  animation: fadeInUp 1.2s ease-out;
}
.hero-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.08) 0%, rgba(102, 16, 242, 0.04) 100%);
  top: -150px;
  right: -150px;
  filter: blur(80px);
  z-index: 1;
  animation: float 12s ease-in-out infinite;
}

.btn-hero {
  padding: 0.9rem 2.2rem;
  border-radius: 1.25rem;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-size: 1.05rem;
}
.btn-hero-primary {
  background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
  color: white !important;
  border: none;
  box-shadow: 0 10px 25px rgba(13, 110, 253, 0.25);
}
.btn-hero-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 30px rgba(13, 110, 253, 0.35);
}
.btn-hero-outline {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1e293b !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.btn-hero-outline:hover {
  border-color: #0d6efd;
  color: #0d6efd !important;
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.trust-badge {
  padding: 0.5rem 1rem;
  background: #f8f9fa;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(0,0,0,0.05);
}

.card {
  border: none !important;
  border-radius: 1.25rem !important;
  transition: var(--transition) !important;
}
.card.shadow-sm:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow) !important;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 30px) scale(1.05); }
}

@media (max-width: 991px) {
  .hero-title { font-size: 2.8rem; }
  .home-hero { padding: 0 0 3rem 0; }
  .btn-hero { width: 100%; justify-content: center; }
}
@media (max-width: 576px) {
  .hero-title { font-size: 2.2rem; }
  .hero-sub { font-size: 1.1rem; }
  .home-hero { padding: 0 0 4rem 0; }
  .trust-badge { width: 100%; justify-content: center; }
}

#trending .card {
  border: 1px solid rgba(0,0,0,0.05) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04) !important;
}
#trending .list-group-item {
  border-left: none;
  border-right: none;
  padding: 1rem 1.25rem;
  transition: var(--transition);
}
#trending .list-group-item:hover { background-color: #f8faff; }
#trending .nav-pills .nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  color: #64748b;
}
#trending .nav-pills .nav-link.active {
  background: var(--primary-gradient);
  color: white;
}

.sidebar-card {
  border: 1px solid rgba(0,0,0,0.05) !important;
  border-radius: 1.5rem !important;
  background: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02) !important;
  overflow: hidden;
}
.sidebar-header {
  background: #f8fafc;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.sidebar-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.exam-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  width: 100%;
  margin-bottom: 0.5rem;
}
.exam-chip:hover {
  border-color: #3b82f6;
  color: #2563eb;
  background: #f0f7ff;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}
.trending-badge {
  font-size: 0.7rem;
  padding: 0.35em 0.65em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.reward-card {
  border-radius: 1.5rem !important;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05) !important;
  overflow: hidden;
}
.reward-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}
.reward-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.stat-card {
  background: white;
  border-radius: 1.25rem;
  padding: 1.5rem 1rem;
  border: 1px solid rgba(0,0,0,0.03);
  transition: var(--transition);
}
.stat-card:hover {
  border-color: #3b82f6;
  background: #f0f7ff;
}
.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.module-card {
  border: 1px solid rgba(0,0,0,0.05) !important;
  border-radius: 1.25rem !important;
  transition: var(--transition);
  text-decoration: none !important;
  background: white;
}
.module-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06) !important;
  border-color: #3b82f6 !important;
}
.module-icon {
  width: 42px;
  height: 42px;
  border-radius: 0.75rem;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #2563eb;
  transition: var(--transition);
}
.module-card:hover .module-icon {
  background: #2563eb;
  color: white;
}

.section-title {
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: #2563eb;
  border-radius: 2px;
}
.section-title-center::after {
  left: 50%;
  transform: translateX(-50%);
}

.why-card {
  padding: 2rem;
  border-radius: 1.5rem !important;
  border: none !important;
  background: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03) !important;
}
.why-icon {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  background: var(--primary-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
