/* --- Teaching Overview CSS --- */

.teaching_overview__container {
    /* Variables matched to study/publication overview for consistency */
    --teaching-blue: #1e64c8;
    --teaching-blue-fade: rgba(30, 100, 200, 0.05);
    --teaching-blue-shadow: rgba(30, 100, 200, 0.25);
    --teaching-text-main: #222;
    --teaching-text-sub: #666;
    --teaching-border: #eaeaea;

    font-family: inherit;
    max-width: 100%;
}

/* --- Header Stats --- */
.teaching_overview__header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--teaching-text-sub);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--teaching-border);
    flex-wrap: wrap;
}

.teaching_overview__stat strong {
    color: var(--teaching-blue);
    font-size: 1.1rem;
    font-weight: 700;
}

.teaching_overview__divider {
    color: var(--teaching-border);
    font-size: 1.1rem;
}
/* ---------------------------------- */

.teaching_overview__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Item Card */
.teaching_overview__item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--teaching-border);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 1;
}

/* Hover Effect */
.teaching_overview__item:hover {
    border-color: var(--teaching-blue);
    box-shadow: 0 20px 40px -10px var(--teaching-blue-shadow);
    transform: translateY(-5px) scale(1.005);
    z-index: 2;
}

/* --- Left Column: Content --- */
.teaching_overview__content {
    flex: 1;
    padding-right: 2rem;
}

.teaching_overview__title {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--teaching-text-main);
    line-height: 1.3;
}

/* Institution & Location Line */
.teaching_overview__meta_row {
    font-size: 0.95rem;
    color: var(--teaching-text-sub);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.teaching_overview__institution {
    font-weight: 600;
    color: #444;
}

.teaching_overview__separator {
    color: #ccc;
    font-size: 0.8em;
}

.teaching_overview__location {
    color: var(--teaching-text-sub);
}

/* WYSIWYG Description styling */
.teaching_overview__description {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--teaching-border);
}

.teaching_overview__description p {
    margin-bottom: 0.5em;
}

.teaching_overview__description p:last-child {
    margin-bottom: 0;
}

/* --- Right Column: Sidebar Meta --- */
.teaching_overview__sidebar {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    min-width: 140px;
    text-align: right;
}

.teaching_overview__year_badge {
    background: #f4f6f9;
    color: var(--teaching-text-main);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
}

.teaching_overview__type_badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: #888;
    background: #fff;
    border: 1px solid var(--teaching-border);
    padding: 4px 8px;
    border-radius: 4px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 767px) {
    .teaching_overview__item {
        flex-direction: column;
    }

    .teaching_overview__content {
        padding-right: 0;
        margin-bottom: 1rem;
        border-bottom: 1px solid var(--teaching-border);
        padding-bottom: 1rem;
    }

    .teaching_overview__sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}