/* ========================================
   EDUCATION SECTION - COMPLETE REDESIGN
   ======================================== */

/* Education Section */
.education.section {
    background: var(--bg-primary);
    min-height: 100vh;
    padding: 100px 0;
}

.education .section-title {
    text-align: center;
    margin-bottom: 80px;
}

.education .section-title h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Simple Timeline Container */
.education .timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 480px) {
    .education .timeline-container {
        padding: 0 20px; /* Add mobile padding like other pages */
    }
}

/* Education Items - No Gap Timeline Integration */
.education .education-item {
    margin-bottom: 50px;
    position: relative;
    padding-left: 0; /* Remove all left padding */
}

.education .education-item:last-child {
    margin-bottom: 0;
}

.education .education-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 24px; /* Center of 20px dot */
    top: 30px; /* Start from center of the dot */
    width: 3px;
    height: calc(100% + 50px);
    background: linear-gradient(180deg, var(--skin-color), #ff6b6b);
    opacity: 0.8;
    z-index: 3;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.2);
}

/* Timeline Marker - Modern Design */
.education .timeline-marker {
    position: absolute;
    left: 15px; /* Positioned inside the card */
    top: 20px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--skin-color), #ff6b6b);
    border: 3px solid var(--bg-secondary);
    border-radius: 50%;
    z-index: 5;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3);
}

.education .education-item:hover .timeline-marker {
    transform: scale(1.3);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.5);
}

/* Education Card - Timeline Fully Integrated */
.education .education-card {
    background: var(--bg-secondary);
    padding: 30px 30px 30px 60px; /* Increased left padding to 60px to accommodate timeline */
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    margin-left: 0; /* Remove margin since timeline is now inside */
}

.education .education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--skin-color);
}

/* Card Header - Simplified */
.education .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 20px;
}

.education .degree-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.education .education-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.education .education-date {
    background: var(--skin-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.education .institution-badge {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: contain;
    background: white;
    padding: 6px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.education .institution-badge:hover {
    border-color: var(--skin-color);
    transform: scale(1.05);
}

/* Education Description - Clean */
.education .education-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.education .education-description p {
    margin: 0;
}

.education .education-description b {
    color: var(--text-primary);
    font-weight: 600;
}

/* Simple Responsive Design */
@media (max-width: 768px) {
    .education .education-item {
        padding-left: 0; /* No left padding on tablet */
    }
    
    .education .education-item:not(:last-child)::after {
        left: 18.5px; /* Center of 16px dot */
        top: 25px;
        width: 3px;
        height: calc(100% + 50px);
        z-index: 3;
        background: linear-gradient(180deg, var(--skin-color), #ff6b6b);
        opacity: 0.8;
        border-radius: 2px;
        box-shadow: 0 0 6px rgba(255, 107, 107, 0.2);
    }
    
    .education .timeline-marker {
        left: 12px; /* Position marker inside card */
        width: 16px;
        height: 16px;
        border-width: 2px;
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    }
    
    .education .education-card {
        padding: 25px 25px 25px 45px; /* Increased left padding for tablet */
        margin-left: 0; /* No margin needed */
    }
    
    .education .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .education .degree-title {
        font-size: 20px;
    }
    
    .education .education-meta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    .education .institution-badge {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .education.section {
        padding: 100px 20px; /* Add left and right padding on mobile */
    }
    
    .education .section-title h2 {
        font-size: 32px;
    }
    
    .education .education-item {
        padding-left: 0; /* No left padding on mobile */
    }
    
    .education .education-item:not(:last-child)::after {
        left: 15.5px; /* Center of 14px dot */
        width: 3px;
        top: 22px;
        height: calc(100% + 50px);
        z-index: 3;
        background: linear-gradient(180deg, var(--skin-color), #ff6b6b);
        opacity: 0.8;
        border-radius: 2px;
        box-shadow: 0 0 5px rgba(255, 107, 107, 0.2);
    }
    
    .education .timeline-marker {
        left: 10px; /* Position marker inside card */
        width: 14px;
        height: 14px;
        border-width: 2px;
        box-shadow: 0 2px 6px rgba(255, 107, 107, 0.3);
    }
    
    .education .education-card {
        padding: 20px 20px 20px 40px; /* Increased left padding for mobile */
        margin-left: 0; /* No margin needed */
        margin: 0 10px 20px 0; /* Add horizontal margin for mobile spacing */
    }
    
    .education .degree-title {
        font-size: 18px;
    }
    
    .education .institution-badge {
        width: 35px;
        height: 35px;
    }
    
    .education .education-description {
        font-size: 14px;
    }
}
