/* Education section styles */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.education-item {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.education-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2ecc71);
    opacity: 0.7;
}

.education-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.education-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.education-content {
    text-align: left;
}

.education-content h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.university {
    color: #3498db;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.distinction {
    color: #2ecc71;
    font-weight: 500;
    margin: 0.5rem 0;
}

.date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.degree-focus {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.degree-focus p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Hover effects */
.education-item[data-degree="PhD"]:hover .education-icon {
    animation: bounce 0.5s ease;
}

.education-item[data-degree="MA"]:hover .education-icon {
    animation: swing 0.5s ease;
}

.education-item[data-degree="MSc"]:hover .education-icon {
    animation: tada 0.5s ease;
}

.education-item[data-degree="BSc"]:hover .education-icon {
    animation: pulse 0.5s ease;
}

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

@keyframes swing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}

@keyframes tada {
    0% { transform: scale(1); }
    10%, 20% { transform: scale(0.9) rotate(-3deg); }
    30%, 50%, 70%, 90% { transform: scale(1.1) rotate(3deg); }
    40%, 60%, 80% { transform: scale(1.1) rotate(-3deg); }
    100% { transform: scale(1) rotate(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .education-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem;
    }

    .education-item {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }

    .education-icon {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .education-content h4 {
        font-size: 1.1rem;
    }

    .university {
        font-size: 1rem;
    }

    .date {
        font-size: 0.85rem;
    }

    .degree-focus {
        margin-top: 0.8rem;
        padding-top: 0.8rem;
    }

    .degree-focus p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .education-grid {
        padding: 0.25rem;
    }

    .education-item {
        padding: 1.25rem;
        margin: 0 0.25rem;
    }

    .education-icon {
        font-size: 1.6rem;
    }

    .education-content h4 {
        font-size: 1rem;
    }
} 