/* ===========================
   EDUCATION SECTION
   =========================== */

.education {
    background: #f9f9f9;
    padding: 80px 20px;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.education-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.education-card:hover::before {
    opacity: 1;
}

.education-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2);
}

.education-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.education-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

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

.degree-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

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

.degree-level {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.education-content {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.education-content h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    font-weight: 700;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.field-of-study {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1.2rem;
    background: linear-gradient(135deg, #f8f9ff, #f0f2ff);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #667eea;
}

.field-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.field-of-study span:last-child {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
    font-weight: 500;
}

.education-details {
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-icon {
    font-size: 1.2rem;
    color: #667eea;
    flex-shrink: 0;
}

.detail-text {
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}

.education-highlights {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
}

.education-highlights h4 {
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.education-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.education-highlights li {
    color: #555;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
}

.education-highlights li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.1rem;
}

.education-highlights li:hover {
    color: #667eea;
    padding-left: 2rem;
    transition: all 0.3s ease;
}

/* Alternating styles */
.education-card:nth-child(even) .education-header {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.education-card:nth-child(even) .field-of-study {
    background: linear-gradient(135deg, #fff5f8, #ffe8f0);
    border-left-color: #764ba2;
}

.education-card:nth-child(even) .detail-icon {
    color: #764ba2;
}

.education-card:nth-child(even) .education-highlights li::before {
    color: #764ba2;
}

.education-card:nth-child(even) .education-highlights li:hover {
    color: #764ba2;
}
