/* Course Card Grid for current courses */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 0px 0;
}

.course-card:focus-visible,
.course-list a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 8px;
}

.course-card {
    text-decoration: none;
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.course-card h3 { margin: 5px 0; color: #111; }
.semester { font-size: 0.8rem; font-weight: bold; color: var(--primary-color); }

/* Timeline for Archive */
.timeline {
	margin-top: -10px;
    border-left: 2px solid #e6e6e6;
    padding-left: 30px;
    margin-left: 10px;
    position: relative;
}

.timeline-year {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
    margin-top: 5px;
    position: relative;
}

/* The dot on the timeline line */
.timeline-year::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
}

.course-list {
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
	margin-top: 5px;
}

.course-list li {
    margin-bottom: 0px;
    background: #fdfdfd;
    padding: 2px 10px;
    border-radius: 4px;
}

.course-list a {
    color: #222;
    text-decoration: none;
	font-weight: 500;
}

.course-list a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Reduce space after intro paragraph */
#content > p {
    margin-bottom: 15px;
}

