/* Enhanced University Cards Styles */

.university-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.university-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) \!important;
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
}

.card-image-wrapper img {
    transition: transform 0.3s ease;
}

.university-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.compare-checkbox-wrapper {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.compare-checkbox-wrapper .btn {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.1);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.compare-checkbox-wrapper .btn:hover {
    background: #fff;
    transform: scale(1.05);
}

.quick-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-item i {
    flex-shrink: 0;
}

.info-item div {
    overflow: hidden;
}

.info-item strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rating-section .stars i {
    text-shadow: 0 0 2px rgba(255,193,7,0.3);
}

.approval-badges {
    min-height: 24px;
}

.approval-badges .badge {
    font-weight: 500;
    border: 1px solid #e5e7eb;
}

.card-actions .btn {
    transition: all 0.3s ease;
    font-weight: 500;
}

.card-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.card-actions .btn-outline-primary:hover {
    background: #667eea;
    color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .university-card {
        margin-bottom: 1rem \!important;
    }
    
    .quick-info-grid {
        gap: 8px;
        padding: 8px;
    }
    
    .info-item i {
        font-size: 14px \!important;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .card-actions .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .col-6.uni-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Loading State */
.university-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Hover Effects */
.university-card .uni-name {
    transition: color 0.3s ease;
}

.university-card:hover .uni-name {
    color: #667eea \!important;
}
