
    .teaching-wrapper {
        margin-top: 24px;
        width: 100%;
        font-feature-settings: "ss01";
    }

    .teaching-header-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 22px 24px;
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: 20px;
        box-shadow: var(--shadow);
        margin-bottom: 24px;
    }

    .teaching-header-title {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .teaching-header-title i {
        font-size: 1.6rem;
        color: #0284c7;
        background: #e0f2fe;
        width: 48px;
        height: 48px;
        flex-shrink: 0;
        display: grid;
        place-items: center;
        border-radius: 14px;
    }

    .teaching-header-title h2 {
        font-size: 1.25rem;
        color: var(--primary);
        font-weight: 800;
        margin: 0;
    }

    .teaching-header-title p {
        color: var(--muted);
        font-size: 0.85rem;
        margin: 4px 0 0 0;
    }

    /* تایم‌لاین سوابق */
    .timeline-container {
        position: relative;
        padding-right: 24px;
    }

    .timeline-container::before {
        content: '';
        position: absolute;
        top: 15px;
        bottom: 15px;
        right: 7px;
        width: 2px;
        background: #e2e8f0;
    }

    .timeline-item {
        position: relative;
        margin-bottom: 22px;
    }

    .timeline-item:last-child {
        margin-bottom: 0;
    }

    .timeline-dot {
        position: absolute;
        top: 24px;
        right: -24px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: var(--white);
        border: 3px solid #0284c7;
        box-shadow: 0 0 0 4px #e0f2fe;
        z-index: 2;
    }

    .timeline-item:first-child .timeline-dot {
        border-color: #10b981;
        box-shadow: 0 0 0 4px #d1fae5;
    }

    .teaching-card {
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 20px 24px;
        box-shadow: var(--shadow);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .teaching-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
    }

    .teaching-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
        padding-top: 12px;
        border-top: 1px dashed var(--border);
    }

    .courses-label {
        -size: 0.95rem;
        color: var(--primary);
    }

    .teaching-term i {
        color: #0284c7;
    }

    .teaching-uni {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 0.84rem;
        font-weight: 700;
        color: #475569;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        padding: 5px 12px;
        border-radius: 10px;
    }

    .courses-box {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
        padding-top: 12px;
        border-top: 1px dashed var(--border);
    }

    .courses-label {
        font-size: 0.8rem;
        font-weight: 800;
        color: var(--muted);
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .course-tag {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: #eff6ff;
        color: #1d4ed8;
        border: 1px solid #dbeafe;
        padding: 4px 11px;
        border-radius: 8px;
        font-size: 0.82rem;
        font-weight: 700;
    }

    .course-tag.lab {
        background: #fefce8;
        color: #854d0e;
        border-color: #fef08a;
    }

    @media (max-width: 768px) {
        .teaching-header-card {
            flex-direction: column;
            text-align: center;
        }

        .teaching-header-title {
            flex-direction: column;
        }

        .timeline-container {
            padding-right: 18px;
        }

        .timeline-container::before {
            right: 5px;
        }

        .timeline-dot {
            right: -18px;
            width: 12px;
            height: 12px;
            top: 22px;
        }

        .teaching-card {
            padding: 16px;
        }

        .teaching-top {
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
        }
    }
