
/* Card grid */
.exam-card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Card styles – exactly as homepage SCSS */
.card {
  border: 1px solid var(--gray-light);
  border-radius: 0.5rem;
  background: white;
  transition: box-shadow 0.2s ease;
  height: 100%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  position: relative;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Date badge – subtle chip using tertiary tint */
.date-badge {
  background: rgba(63, 180, 172, 0.1);
  color: var(--primary);
  padding: 0.35rem 0.8rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 1rem;
  border: none;
}

/* Countdown – tertiary accent */
.countdown {
  color: var(--tertiary);
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Course title */
.card h3 {
  margin: 0 0 0.25rem 0;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
}

/* Instructor and institute */
.card p {
  margin: 0.2rem 0;
  color: var(--text-muted);
}

.card p:first-of-type {
  font-size: 0.95rem;
}

.card p:nth-of-type(2) {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* Status indicators */
.status-open {
  color: var(--tertiary);
  font-weight: 700;
  margin: 0.75rem 0 0.5rem;
}

.status-closed {
  color: var(--status-closed);
  font-weight: 700;
  margin: 0.75rem 0 0.5rem;
}

/* Deadline section */
.deadline {
  font-size: 0.9rem;
  margin-top: 1rem;
  border-top: 1px dashed var(--gray-light);
  padding-top: 1rem;
  color: var(--text-muted);
}

.deadline strong {
  color: var(--primary);
  font-weight: 600;
}

/* No exams message */
.exam-card-container p:only-child {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-light);
  color: var(--text-muted);
}

/* Small screen tweaks */
@media (max-width: 600px) {
  body { padding: 0px; }
  .header h1 { font-size: 2rem; }
  .exam-card-container { grid-template-columns: 1fr; }
}