body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #FDB5CE;
    color: #e2e8f0;
}

.topbar {
    background: #111827;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #1f2937;
}

/* dashboard layout */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* main cards */
.card {
    background: #1e293b;
    padding: 20px;
    border-radius: 12px;
}

/* make lectures span full width */
.wide {
    grid-column: 1 / -1;
}

/* 2 lecture boxes */

/* lecture boxes */
.lecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.subcard {
    background: #0f172a;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #334155;
}

/* CENTERED REVISION CARD */
.subcard.center {
    grid-column: 1 / -1;   /* take full row */
    max-width: 400px;      /* control width */
    margin: 0 auto;        /* center horizontally */
    text-align: center;
}

/* lists */
ul {
    list-style: none;
    padding: 0;
}

li {
    display: flex;
    justify-content: space-between;
    margin: 6px 0;
}

span {
    opacity: 0.6;
    font-size: 12px;
}

/* labs spaced out more */
.lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.lab-grid a {
    background: #0f172a;
    padding: 14px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid #334155;
    transition: 0.2s;
}

.lab-grid a:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

/* general links */
a {
    color: #60a5fa;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}
.cat-img {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: auto;
}
