/* Modern Page Styles */
:root {
    --primary-color: #4CAF50;
    --primary-light: #81C784;
    --primary-dark: #388E3C;
    --accent-color: #a8e6cf;
    --text-dark: #2D3748;
    --text-light: #718096;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
.modern-page {
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Social Links */
.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: #247228;
}

.hero-content p {
    color: #333;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    max-width: 85%;
}

/* Blob Animations */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Search Section */
.search-section {
    position: relative;
    background-color: transparent;
}

.search-box input {
    height: 60px;
    padding-left: 3rem;
    font-size: 1rem;
    border: 2px solid #E2E8F0;
    border-radius: 30px;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

/* Filter Buttons */
.filter-options {
    display: flex;
    gap: 1rem;
}

.btn-outline {
    padding: 0.75rem 1.5rem;
    border: 2px solid #E2E8F0;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline:hover,
.btn-outline.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* University Cards */
.universities-grid {
    display: grid;
    gap: 2rem;
    padding: 2rem 0;
}

/* University Cards - New Mobile Friendly Design */
.university-card {
    position: relative;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.university-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.university-logo-wrapper {
    flex-shrink: 0;
    position: relative;
}

.university-logo-wrapper img {
    transition: transform 0.3s ease;
    border: 2px solid rgba(0, 0, 0, 0.05);
}

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

.university-info {
    min-width: 0; /* Ensures text truncation works */
}

.university-info h3 {
    transition: color 0.3s ease;
}

.university-card:hover .university-info h3 {
    color: var(--primary-color);
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.stat-badge i {
    font-size: 1rem;
    color: var(--primary-color);
}

.university-card:hover .stat-badge {
    background: rgba(76, 175, 80, 0.1);
    color: var(--primary-color);
}

.arrow-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.university-card:hover .arrow-icon {
    background: var(--primary-color);
    transform: translateX(-4px);
}

.university-card:hover .arrow-icon i {
    color: white;
}

.university-progress {
    height: 4px;
    background: rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.university-progress .progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary-light), var(--primary-color));
    transition: width 1s ease-in-out;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .universities-grid {
        padding: 1rem 0;
    }

    .university-card {
        border-radius: 12px;
    }

    .university-logo-wrapper img {
        width: 60px;
        height: 60px;
        border-radius: 12px;
    }

    .university-info h3 {
        font-size: 1rem;
    }

    .stat-badge {
        padding: 0.2rem 0.5rem;
        font-size: 0.75rem;
    }

    .arrow-icon {
        width: 28px;
        height: 28px;
    }
}

/* Loading Animation for Progress Bars */
@keyframes progressAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.university-progress .progress-bar {
    background-size: 200% 200%;
    animation: progressAnimation 2s ease infinite;
}

/* Hover Effects */
.university-card {
    will-change: transform;
}

.university-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                rgba(255, 255, 255, 0.1) 0%,
                transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.university-card:hover::after {
    opacity: 1;
}

/* Add smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading Skeleton Animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Stats Card */
.stats-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 2rem;
    justify-content: space-around;
}

.stat-item {
    text-align: center;
}

.stat-item .counter {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }

    .social-links {
        display: none;
    }

    .search-section {
        padding: 2rem 1rem;
    }

    .filter-options {
        flex-wrap: wrap;
        justify-content: center;
    }

    .stats-card {
        padding: 1.5rem;
        gap: 1.5rem;
    }
}

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

.fade-up {
    animation: fadeUp 0.6s ease-out forwards;
}

/* Print Styles */
@media print {
    .social-links,
    .search-section,
    .hero-section {
        display: none;
    }

    .university-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
} 