/* Новые стили для списка школ */

.ca-schools-list-new {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Карточка школы */
.ca-school-item-new {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ca-school-item-new:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Логотип школы */
.ca-school-logo-new {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.ca-school-logo-new img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Контент школы */
.ca-school-content-new {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-width: 0;
}

/* Секция с названием и рейтингом */
.ca-school-title-section {
    flex: 1;
    min-width: 0;
}

.ca-school-title-link-new {
    text-decoration: none;
    color: inherit;
    display: block;
}

.ca-school-title-link-new:hover {
    text-decoration: none;
}

.ca-school-name-new {
    margin: 0 0 6px 0;
    font-size: 1.3em;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.ca-school-title-link-new:hover .ca-school-name-new {
    color: #007cba;
}

/* Рейтинг и отзывы */
.ca-school-rating-info {
    display: inline;
    font-size: 0.9em;
}

.ca-school-rating-value {
    font-weight: 600;
    display: inline;
    margin-right: 8px;
}

.ca-school-reviews {
    color: #6c757d;
    display: inline;
    white-space: nowrap;
}

/* Кнопки действий */
.ca-school-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ca-school-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ca-school-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    text-decoration: none;
}

.ca-btn-icon {
    font-size: 1.1em;
    filter: brightness(1.2);
}

.ca-btn-text {
    font-weight: 500;
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Стиль кнопки курсов */
.ca-btn-courses {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
}

.ca-btn-courses:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: #fff !important;
}

/* Стиль кнопки промокодов */
.ca-btn-promo {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff !important;
}

.ca-btn-promo:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    color: #fff !important;
}

/* Сообщение об отсутствии школ */
.ca-no-schools {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 1.1em;
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
    .ca-school-content-new {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .ca-school-title-section {
        text-align: center;
    }
    
    .ca-school-actions {
        justify-content: center;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .ca-school-item-new {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .ca-school-logo-new {
        width: 140px;
        height: 90px;
    }
    
    .ca-school-content-new {
        width: 100%;
    }
    
    .ca-school-name-new {
        font-size: 1.2em;
    }
    
    .ca-school-rating-info {
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .ca-school-actions {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .ca-school-btn {
        width: 100%;
        justify-content: center;
        padding: 10px;
    }
}

/* Адаптивность для маленьких экранов */
@media (max-width: 480px) {
    .ca-schools-list-new {
        padding: 10px;
    }
    
    .ca-school-item-new {
        margin-bottom: 15px;
        padding: 12px;
    }
    
    .ca-school-logo-new {
        width: 100px;
        height: 65px;
    }
    
    .ca-school-name-new {
        font-size: 1.1em;
    }
    
    .ca-school-btn {
        font-size: 0.85em;
        padding: 8px 12px;
    }
}

/* Стили для версии без логотипа */
.ca-school-item-new:not(:has(.ca-school-logo-new)) .ca-school-content-new {
    margin-left: 0;
}

/* Анимация появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ca-school-item-new {
    animation: fadeInUp 0.5s ease-out;
}

.ca-school-item-new:nth-child(1) { animation-delay: 0.1s; }
.ca-school-item-new:nth-child(2) { animation-delay: 0.2s; }
.ca-school-item-new:nth-child(3) { animation-delay: 0.3s; }
.ca-school-item-new:nth-child(4) { animation-delay: 0.4s; }
.ca-school-item-new:nth-child(5) { animation-delay: 0.5s; }