.toerm-schoolagenda {
    --toerm-teal: #05a8b3;
    --toerm-teal-dark: #008b98;
    --toerm-mint: #e6f8f8;
    --toerm-soft: #f4f1ee;
    --toerm-text: #16353a;
    box-sizing: border-box;
    color: var(--toerm-text);
    font-family: inherit;
    margin: 0;
    max-width: 100%;
    padding: 0;
}

.toerm-schoolagenda *,
.toerm-schoolagenda *::before,
.toerm-schoolagenda *::after {
    box-sizing: inherit;
}

.toerm-list-wrap {
    margin: 0;
    padding: 0;
}

.toerm-calendar-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.05) !important;
    margin: 0;
    max-width: none;
    padding: 60px 72px 68px;
    width: 100%;
}

.toerm-calendar-section {
    background: transparent;
    padding: 0;
    width: 100%;
}

.toerm-schoolagenda h2 {
    color: var(--toerm-teal);
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    margin: 0 0 16px;
    text-align: center;
}

.toerm-overview--teal h2 {
    color: #fff;
}

.toerm-intro {
    color: #24434a;
    font-size: 15px;
    line-height: 1.65;
    margin: 0 auto 28px;
    max-width: 560px;
    text-align: center;
}

.toerm-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toerm-list li {
    align-items: baseline;
    border-bottom: 2px solid var(--toerm-teal);
    font-size: 20px;
    padding: 15px 0;
}

.toerm-list-row {
    display: grid;
    gap: 10px 24px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.toerm-list-date-only {
    display: block;
    text-align: center;
}

.toerm-overview--studiedag .toerm-list li,
.toerm-overview--12uurvrij .toerm-list li {
    border-bottom-color: #E9F7F8;
}

.toerm-event-title {
    font-weight: 700;
}

.toerm-event-date {
    color: #173b42;
    text-align: right;
}

.toerm-list-date-only .toerm-event-date {
    color: #fff;
    display: block;
    text-align: center;
}

.toerm-event-note-inline::before {
    content: " ";
}

.toerm-event-note-inline {
    font-weight: inherit;
}

.toerm-event-note {
    color: #476168;
    font-size: 14px;
    grid-column: 1 / -1;
}

.toerm-empty {
    font-weight: 700;
    margin: 0;
    text-align: center;
}

.toerm-calendar-section {
    max-width: none;
}

.toerm-calendar-heading {
    margin: 0 auto 28px;
    max-width: 760px;
}

.toerm-calendar-card {
    transition: opacity .18s ease;
}

.toerm-calendar-loading .toerm-calendar-card {
    opacity: .55;
}

.toerm-calendar-nav {
    align-items: center;
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr auto 1fr;
    margin-bottom: 34px;
}

.toerm-calendar-nav h3 {
    color: #000;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    text-align: center;
}

.toerm-pill {
    align-items: center;
    background: #fff;
    border: 2px solid var(--toerm-teal);
    border-radius: 999px;
    color: var(--toerm-teal);
    display: inline-flex;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    gap: 12px;
    justify-content: center;
    line-height: 1;
    min-width: 178px;
    padding: 14px 22px;
    text-decoration: none;
    width: fit-content;
    cursor: pointer;
}

.toerm-pill:last-child {
    justify-self: end;
}

.toerm-calendar-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.toerm-calendar-item {
    background: var(--toerm-soft);
    border-radius: 18px;
    min-height: 196px;
    padding: 24px 30px 80px;
}

.toerm-calendar-item time {
    color: #000;
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.toerm-calendar-tag {
    background: var(--toerm-teal-dark);
    border-radius: 30px;
    color: white;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 16px;
    padding: 8px 12px;
}

.toerm-calendar-item h4 {
    color: var(--toerm-teal);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.toerm-calendar-item p,
.toerm-calendar-note {
    color: #243d42;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin: 12px 0 0;
}

@media (max-width: 700px) {
    .toerm-schoolagenda {
        padding: 0;
    }

    .toerm-calendar-card {
        border-radius: 14px;
        padding: 26px 18px 32px;
    }

    .toerm-list-row,
    .toerm-calendar-grid {
        grid-template-columns: 1fr;
    }

    .toerm-calendar-nav {
        gap: 16px;
        grid-template-columns: 1fr;
    }

    .toerm-calendar-nav h3 {
        grid-row: 1;
    }

    .toerm-list-row .toerm-event-date,
    .toerm-pill:last-child {
        justify-self: start;
        text-align: left;
		font-size:16px;
    }

    .toerm-pill,
    .toerm-pill:last-child {
        justify-self: center;
    }

    .toerm-calendar-item {
        min-height: 150px;
    }
}
