.course-logo {
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    background-color: transparent;
    border-radius: 10px;
    overflow: hidden;
}

.course-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.course-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e0e0e0;
    font-size: 2rem;
    font-weight: bold;
    color: #666;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.course-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.course-card:hover {
    transform: scale(1.03);
}

.course-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-info {
    flex-grow: 1;
    margin-bottom: 15px;
}

.course-info h3 {
    margin-bottom: 10px;
    color: #333;
}

.course-info p {
    margin: 5px 0;
    color: #666;
    font-size: 0.9rem;
}

.course-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.progress-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 60px;
    height: 60px;
}

.progress-circle canvas {
    position: absolute;
    top: 0;
    left: 0;
}

.progress-text {
    position: relative;
    z-index: 1;
    font-weight: bold;
}

.course-actions .u-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 15px;
}

/* Цена курса на уровне кнопки */
.course-price {
    background-color: #2c3e50;
    color: white;
    padding: 8px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.course-price i {
    font-size: 10px;
    margin-right: 3px;
}

/* Стили для загрузки */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading.active {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .course-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.filters input,
.filters select {
    flex-grow: 1;
    min-width: 180px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.filters input:focus,
.filters select:focus {
    outline: none;
    border-color: #73a3de;
    box-shadow: 0 0 0 3px rgba(115, 163, 222, 0.2);
}

.filters button {
    padding: 10px 20px;
    background-color: #73a3de;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    transition:
        background-color 0.3s ease,
        transform 0.2s ease;
}

.filters button:hover {
    background-color: #5a8ad0;
    transform: translateY(-2px);
}

.filters .checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #666;
}

.filters .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: auto;
    margin: 0;
}

@media (max-width: 768px) {
    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filters input,
    .filters select,
    .filters button {
        width: 100%;
        margin-bottom: 10px;
    }
}
