/* Universities Section - Modern Design */

.universities-section {
    background: linear-gradient(135deg, #0a0a0f 0%, #0f0a15 50%, #0a0a0f 100%);
    padding: 80px var(--spacing-lg) !important;
    position: relative;
    overflow: hidden;
}

.universities-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    z-index: 0;
}

.universities-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
    z-index: 0;
}

.universities-section h2 {
    text-align: center;
    color: #ffffff;
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
    font-size: clamp(2rem, 5vw, 3rem);
}

.universities-section h2::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #a855f7, #ec4899);
    border-radius: 2px;
}

.universities-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto var(--spacing-2xl);
    color: #d1d5db;
    font-size: 1rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
    animation: slideUp 0.8s ease-out;
}

/* Universities Grid - 3 columns */
.universities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto var(--spacing-2xl);
}

/* University Badge */
.university-badge {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(236, 72, 153, 0.05));
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 8px;
    padding: var(--spacing-lg);
    transition: all var(--transition-slow);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--spacing-md);
    animation: slideUp 0.8s ease-out both;
    color: #a855f7;
    font-weight: 600;
    font-size: 0.95rem;
    min-height: 60px;
}

.university-badge:nth-child(1) { animation-delay: 0.05s; }
.university-badge:nth-child(2) { animation-delay: 0.1s; }
.university-badge:nth-child(3) { animation-delay: 0.15s; }
.university-badge:nth-child(4) { animation-delay: 0.2s; }
.university-badge:nth-child(5) { animation-delay: 0.25s; }
.university-badge:nth-child(6) { animation-delay: 0.3s; }
.university-badge:nth-child(7) { animation-delay: 0.35s; }
.university-badge:nth-child(8) { animation-delay: 0.4s; }
.university-badge:nth-child(9) { animation-delay: 0.45s; }
.university-badge:nth-child(10) { animation-delay: 0.5s; }
.university-badge:nth-child(11) { animation-delay: 0.55s; }
.university-badge:nth-child(12) { animation-delay: 0.6s; }

.university-badge:hover {
    transform: translateY(-4px);
    border-color: rgba(236, 72, 153, 0.5);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.15);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(236, 72, 153, 0.08));
    color: #ec4899;
}

.university-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #a855f7;
    transition: color var(--transition-base);
}

.university-badge:hover .university-icon {
    color: #ec4899;
}

.university-name {
    color: #a855f7;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--transition-base);
}

.university-badge:hover .university-name {
    color: #ec4899;
}

/* Universities Text */
.universities-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
    animation: slideUp 0.8s ease-out 0.4s both;
}

.universities-text strong {
    color: #ffffff;
    font-weight: 700;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-30px);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .universities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .universities-section {
        padding: 60px var(--spacing-md) !important;
    }

    .universities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .university-badge {
        padding: var(--spacing-md);
    }

    .university-name {
        font-size: 0.85rem;
    }
}
