/* Custom styles for topic cards */
.topic-card {
  position: relative;
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #e2e8f0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.topic-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-color: #f6c90e;
}

.topic-card__date {
    position: absolute;
    top: 0;
    right: 0;
    background: #1a202c;
    color: white;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 0 15px 0 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    min-width: 60px;
}

.topic-card__date-day {
    font-size: 1.2rem;
    font-weight: 700;
}

.topic-card__date-month {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: lowercase;
}

/* Color variations for date labels */
.topics-grid .topic-card:nth-child(9n+1) .topic-card__date { background: #667eea; }
.topics-grid .topic-card:nth-child(9n+2) .topic-card__date { background: #f59e0b; }
.topics-grid .topic-card:nth-child(9n+3) .topic-card__date { background: #10b981; }
.topics-grid .topic-card:nth-child(9n+4) .topic-card__date { background: #f56565; }
.topics-grid .topic-card:nth-child(9n+5) .topic-card__date { background: #ed8936; }
.topics-grid .topic-card:nth-child(9n+6) .topic-card__date { background: #4299e1; }
.topics-grid .topic-card:nth-child(9n+7) .topic-card__date { background: #9f7aea; }
.topics-grid .topic-card:nth-child(9n+8) .topic-card__date { background: #4fd1c5; }
.topics-grid .topic-card:nth-child(9n+9) .topic-card__date { background: #ec4899; }

.topic-card__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.topic-card__title {
    font-size: 1rem;
    color: #2c3e50;
    margin: 0.5rem 0;
    font-weight: 600;
    line-height: 1.4;
    flex-grow: 1;
}

.topic-card__description {
    font-size: 0.9rem;
    color: #5a6c7d;
    margin: 0.5rem 0;
    line-height: 1.5;
} 