/* Subject Selection Modern Styles */

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, rgb(var(--card)) 0%, rgb(var(--muted) / 0.3) 100%);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid rgb(var(--border));
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: rgb(var(--muted-fg));
}

.breadcrumb .current {
  color: rgb(var(--accent));
  font-weight: 500;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: rgb(var(--fg));
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgb(var(--muted-fg));
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Subjects Section */
.subjects-section {
  padding: 7rem 0;
  background: rgb(var(--bg));
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Subject Cards */
.subject-card {
  background: rgb(var(--card));
  border: 1px solid rgb(var(--border));
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.subject-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgb(var(--accent) / 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.subject-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgb(var(--shadow) / 0.1), 0 10px 10px -5px rgb(var(--shadow) / 0.04), 0 0 0 1px
    rgb(var(--accent) / 0.1);
  border-color: rgb(var(--accent) / 0.2);
}

.subject-card:hover::before {
  opacity: 1;
}

.subject-card:hover .subject-icon {
  color: rgb(var(--accent));
  transform: scale(1.1);
}

.subject-card:hover .subject-arrow {
  transform: translateX(4px);
  color: rgb(var(--accent));
}

/* Subject Icon */
.subject-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: rgb(var(--muted) / 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(var(--muted-fg));
  transition: all 0.3s ease;
}

/* Subject Content */
.subject-content {
  flex: 1;
  min-width: 0;
}

.subject-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: rgb(var(--fg));
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.subject-desc {
  font-size: 1rem;
  color: rgb(var(--muted-fg));
  margin-bottom: 1rem;
  line-height: 1.5;
}

.subject-stats {
  display: flex;
  gap: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgb(var(--accent));
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: rgb(var(--muted-fg));
  margin-top: 0.25rem;
}

/* Subject Arrow */
.subject-arrow {
  flex-shrink: 0;
  color: rgb(var(--muted-fg));
  transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .subjects-section {
    padding: 4rem 0;
  }

  .subjects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .subject-card {
    padding: 1.5rem;
    gap: 1rem;
  }

  .subject-icon {
    width: 56px;
    height: 56px;
  }

  .subject-title {
    font-size: 1.25rem;
  }

  .subject-desc {
    font-size: 0.9rem;
  }

  .breadcrumb {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .stat-item {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

}

/* Animation for cards */
.subject-card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.subject-card:nth-child(1) {
  animation-delay: 0.1s;
}
.subject-card:nth-child(2) {
  animation-delay: 0.2s;
}
.subject-card:nth-child(3) {
  animation-delay: 0.3s;
}
.subject-card:nth-child(4) {
  animation-delay: 0.4s;
}
.subject-card:nth-child(5) {
  animation-delay: 0.5s;
}
.subject-card:nth-child(6) {
  animation-delay: 0.6s;
}
.subject-card:nth-child(7) {
  animation-delay: 0.7s;
}
.subject-card:nth-child(8) {
  animation-delay: 0.8s;
}
.subject-card:nth-child(9) {
  animation-delay: 0.9s;
}
.subject-card:nth-child(10) {
  animation-delay: 1.0s;
}
.subject-card:nth-child(11) {
  animation-delay: 1.1s;
}
.subject-card:nth-child(12) {
  animation-delay: 1.2s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
