.nkf-courses-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nkf-courses-list .nkf-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.nkf-courses-list .nkf-filter-btn {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    color: #475569;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.nkf-courses-list .nkf-filter-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.nkf-courses-list .nkf-filter-btn.nkf-filter-active {
    background: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 2px 4px rgba( 37, 99, 235, 0.2 );
    color: #fff;
}

.nkf-course-item.nkf-course-hidden {
    display: none;
}

.nkf-courses-calendar {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nkf-course-item {
    margin: 0;
    padding: 0;
}

.nkf-course-item + .nkf-course-item {
    border-top: 1px solid #e5e5e5;
}

.nkf-course-details {
    background: #fff;
}

.nkf-course-summary {
    display: grid;
    grid-template-columns: 72px 1fr 24px;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0.5rem;
    cursor: pointer;
    list-style: none;
    transition: background-color 0.15s ease;
}

.nkf-course-summary::-webkit-details-marker {
    display: none;
}

.nkf-course-summary::marker {
    display: none;
    content: '';
}

.nkf-course-summary:hover {
    background-color: #f7f7f7;
}

.nkf-course-date {
    text-align: center;
    line-height: 1;
}

.nkf-course-day {
    font-size: 2.25rem;
    font-weight: 700;
    color: #d0021b;
    line-height: 1;
}

.nkf-course-month {
    font-size: 0.875rem;
    color: #333;
    text-transform: lowercase;
    margin-top: 0.25rem;
}

.nkf-course-info {
    min-width: 0;
}

.nkf-course-title {
    font-size: 1.063rem;
    font-weight: 600;
    color: #111;
    line-height: 1.35;
    margin-bottom: 0.25rem;
}

.nkf-course-time,
.nkf-course-location {
    display: inline-block;
    font-size: 0.875rem;
    color: #555;
    margin-right: 0.75rem;
}

.nkf-course-location::before {
    content: '•';
    margin-right: 0.75rem;
    color: #aaa;
}

.nkf-course-chevron {
    width: 12px;
    height: 12px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    justify-self: end;
    margin-right: 0.5rem;
    margin-bottom: 4px;
}

.nkf-course-details[open] .nkf-course-chevron {
    transform: rotate(-135deg);
    margin-bottom: -4px;
}

.nkf-course-body {
    padding: 0.5rem 0.5rem 1.5rem calc(72px + 1rem + 0.5rem);
    animation: nkf-course-fade 0.2s ease;
}

@keyframes nkf-course-fade {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nkf-course-description {
    color: #333;
    font-size: 0.938rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.nkf-course-description p {
    margin: 0 0 0.75rem;
}

.nkf-course-description p:last-child {
    margin-bottom: 0;
}

.nkf-course-meta {
    margin: 0 0 1rem;
    padding: 0;
    font-size: 0.875rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.nkf-course-meta-item {
    display: grid;
    grid-template-columns: 8.5rem 1fr;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-top: 1px solid #f0f0f0;
}

.nkf-course-meta-item:first-child {
    border-top: none;
}

.nkf-course-meta-item dt {
    font-weight: 600;
    color: #333;
    margin: 0;
}

.nkf-course-meta-item dd {
    margin: 0;
    color: #555;
}

.nkf-course-actions {
    margin: 0.5rem 0 0;
}

.nkf-course-link {
    display: inline-block;
    background: #d0021b;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: background-color 0.15s ease;
}

.nkf-course-link:hover,
.nkf-course-link:focus {
    background: #a80116;
    color: #fff;
}

.nkf-courses-empty {
    text-align: center;
    padding: 2rem;
    color: #777;
    font-style: italic;
}

@media (max-width: 560px) {
    .nkf-course-summary {
        grid-template-columns: 56px 1fr 18px;
        gap: 0.75rem;
        padding: 0.875rem 0.25rem;
    }

    .nkf-course-day {
        font-size: 1.75rem;
    }

    .nkf-course-title {
        font-size: 1rem;
    }

    .nkf-course-location {
        display: block;
        margin-top: 0.125rem;
    }

    .nkf-course-location::before {
        display: none;
    }

    .nkf-course-body {
        padding-left: calc(56px + 0.75rem + 0.25rem);
    }

    .nkf-course-meta-item {
        grid-template-columns: 1fr;
        gap: 0.125rem;
    }
}
