/* ==================== WO-ED-01: ONLINE LEARNING PLATFORM ==================== */
/* LearnHub - Modern Education Template */
/* Color Palette: Blue, Purple, Orange */

:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --secondary: #8b5cf6;
  --accent: #f97316;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --bg-light: #f8fafc;
  --bg-blue: #eff6ff;
  --white: #ffffff;
}

/* Override base colors */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
}

.section-badge {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
}

/* Typography */
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
}

/* Navbar */
.navbar-brand {
  font-size: 1.75rem;
  font-weight: 800;
}

.navbar-brand span {
  color: var(--primary);
}

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

.navbar-link::after {
  background: var(--primary);
}

/* Hero Education */
.hero-education {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-blue) 100%);
  min-height: 100vh;
  padding-top: 100px;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-search {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-search .search-input {
  flex: 1;
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.hero-search .search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.hero-stat h3 {
  color: var(--primary);
}

.hero-visual {
  position: relative;
}

.hero-visual > img {
  border-radius: 30px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.floating-card {
  position: absolute;
  background: var(--white);
  padding: 16px 20px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-icon {
  font-size: 2rem;
}

.floating-card strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-dark);
}

.floating-card div span {
  font-size: 0.8125rem;
  color: var(--text-light);
}

.card-1 {
  top: 30px;
  right: -20px;
  animation: float 3s ease-in-out infinite;
}

.card-2 {
  bottom: 50px;
  left: -30px;
  animation: float 3s ease-in-out infinite 1.5s;
}

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

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-search {
    max-width: 100%;
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .card-1 { right: 10px; }
  .card-2 { left: 10px; }
}

@media (max-width: 576px) {
  .hero-search {
    flex-direction: column;
  }
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.category-card {
  background: var(--white);
  padding: 30px 20px;
  border-radius: 16px;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  display: block;
}

.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.category-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.category-card p {
  color: var(--text-light);
  font-size: 0.875rem;
  margin: 0;
}

@media (max-width: 1200px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Courses Grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.course-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.course-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.course-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 14px;
  background: var(--accent);
  color: var(--white);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.course-content {
  padding: 20px;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.course-category {
  padding: 4px 10px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.course-rating {
  font-size: 0.8125rem;
  color: var(--text-light);
}

.course-title {
  font-size: 1.125rem;
  margin-bottom: 8px;
  color: var(--text-dark);
  line-height: 1.3;
}

.course-instructor {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.course-info {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.8125rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.course-price {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.price-original {
  font-size: 0.9375rem;
  color: var(--text-light);
  text-decoration: line-through;
}

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

@media (max-width: 576px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }
}

/* Features */
.feature-icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.feature-card:hover {
  border-color: var(--primary);
}

/* Instructors Grid */
.instructors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.instructor-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.instructor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.instructor-card .instructor-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.instructor-card .instructor-content {
  padding: 20px;
}

.instructor-card h3 {
  font-size: 1.125rem;
  margin-bottom: 4px;
}

.instructor-title {
  display: block;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.instructor-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--text-light);
}

@media (max-width: 992px) {
  .instructors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .instructors-grid {
    grid-template-columns: 1fr;
  }
}

/* Testimonials */
.testimonial-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
}

.testimonial-rating {
  color: #fbbf24;
}

/* CTA Education */
.cta-education {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.cta-education .btn-primary {
  background: var(--white);
  color: var(--primary);
}

.cta-education .btn-secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.cta-education .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
  background: var(--text-dark);
}

.footer-brand span {
  color: var(--primary);
}

.footer-social a:hover {
  background: var(--primary);
}

.footer-link:hover {
  color: var(--primary);
}

/* Section Alt */
.section-alt {
  background: var(--bg-light);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  z-index: 999;
}

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

.back-to-top:hover {
  transform: translateY(-5px);
}
