/* START PAGE */
.start-page {
  padding: 60px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

/* SUBJECTS */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(3, 280px);
  justify-content: center;
  gap: 20px;
}


.subj-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  min-height: 220px;
  text-decoration: none;
  display: block;
}

.subj-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.subj-card.purple::before { background: var(--purple); }
.subj-card.green::before { background: var(--green); }
.subj-card.orange::before { background: var(--orange); }
.subj-card.accent::before { background: var(--accent); }
.subj-card.blue::before { background: #0984e3; }
.subj-card.teal::before { background: #00cec9; }

.subj-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(108,92,231,0.12);
}

.subj-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}

.subj-name {
  font-family: 'Unbounded', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.subj-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.subj-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.subj-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 50px;
}

.tag-purple { background: var(--purple-pale); color: var(--purple); }
.tag-green { background: #d4f7ec; color: #00916e; }
.tag-orange { background: #fde8e4; color: #c0392b; }
.tag-blue { background: #e3f2fd; color: #0277bd; }
.tag-accent { background: #fde8f0; color: #c0306b; }
.tag-teal { background: #e0f9f9; color: #008080; }

.subj-count {
  font-size: 12px;
  color: var(--muted);
}

/* DARK THEME */
body.dark-theme .subj-card {
  background: #181c25;
}

body.dark-theme .subj-name {
  color: white;
}

body.dark-theme .subj-desc,
body.dark-theme .subj-count {
  color: #a0a7b5;
}

/* MOBILE */
@media (max-width: 768px) {

  .subjects-grid {
    grid-template-columns: 1fr;
  }

}