/* ========================================
   EDUCATION PAGE - TIMELINE DESIGN & SOLID THEME
   Matches Experience Page Design
   ======================================== */

#education {
    background: #fff !important;
    padding: 4rem 0 !important;
}

html.dark #education {
    background: #000 !important;
}

/* Section Title */
#education h2 {
    font-size: clamp(2rem, 4vw, 3rem) !important;
    font-weight: 800 !important;
    text-align: center !important;
    margin-bottom: 3rem !important;
    background: linear-gradient(135deg, #0071e3, #2997ff) !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

html.dark #education h2 {
    background: linear-gradient(135deg, #58a6ff, #79c0ff) !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* ========================================
   TIMELINE LAYOUT
   ======================================== */

.education-timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding-left: 0;
}

/* Timeline Vertical Line */
.education-timeline::before {
    content: '';
    position: absolute;
    left: 32px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #0071e3, #2997ff);
    z-index: 0;
}

html.dark .education-timeline::before {
    background: linear-gradient(to bottom, #2997ff, #0071e3);
}

/* Timeline Item Container */
.education-item {
    position: relative;
    padding-left: 90px;
    margin-bottom: 3rem;
}

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

/* Timeline Icon */
.education-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0071e3, #2997ff);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgb(0 113 227 / 40%);
    z-index: 2;
    border: 4px solid #fff;
}

html.dark .education-icon {
    border-color: #000;
    box-shadow: 0 8px 20px rgb(0 0 0 / 40%);
}

.education-icon i {
    font-size: 1.75rem;
    color: #fff;
}

/* ========================================
   EDUCATION CARD (Content)
   ======================================== */

.education-content {
    background: #fff !important;
    border: 1px solid rgb(0 0 0 / 10%) !important;
    border-radius: 20px !important;
    padding: 2rem !important;
    box-shadow: 0 4px 24px rgb(0 0 0 / 5%) !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    position: relative;
}

html.dark .education-content {
    background: #000 !important;
    border-color: rgb(255 255 255 / 15%) !important;
    box-shadow: 0 4px 24px rgb(0 0 0 / 40%) !important;
}

.education-content:hover {
    transform: translateX(8px) !important;
    box-shadow: 0 16px 48px rgb(0 0 0 / 10%) !important;
    border-color: rgb(0 113 227 / 30%) !important;
}

html.dark .education-content:hover {
    box-shadow: 0 20px 60px rgb(0 0 0 / 60%) !important;
    border-color: rgb(41 151 255 / 40%) !important;
}

/* ========================================
   TYPOGRAPHY & VISIBILITY
   ======================================== */

/* Degree Title */
.education-degree {
    color: #000 !important;
    font-size: 1.5rem !important;
    margin-bottom: 0.25rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

html.dark .education-degree {
    color: #fff !important;
}

/* Institution Name */
.education-institution {
    color: #0071e3 !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    margin-bottom: 1rem !important;
    display: block !important;
}

html.dark .education-institution {
    color: #58a6ff !important;
}

/* Location */
.education-location {
    font-size: 0.875rem !important;
    color: #6e6e73 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

html.dark .education-location {
    color: #86868b !important;
}

/* Tick Icons - if added in future */

/* Period */
.education-period {
    font-size: 0.875rem !important;
    color: #6e6e73 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

html.dark .education-period {
    color: #86868b !important;
}

/* Badges */
.education-badge {
    padding: 0.5rem 1rem !important;
    border-radius: 100px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    white-space: nowrap !important;
    display: inline-block !important;
}

.education-badge.completed {
    background: #22c55e !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgb(34 197 94 / 30%) !important;
}

html.dark .education-badge.completed {
    background: #16a34a !important;
    box-shadow: 0 4px 12px rgb(22 163 74 / 30%) !important;
}

/* Header Layout */
.education-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 2rem !important;
}

.education-title-group {
    flex: 1 !important;
}

.education-meta {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 0.75rem !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (width <=768px) {
    .education-timeline::before {
        left: 24px !important;
    }

    .education-item {
        padding-left: 70px !important;
    }

    .education-icon {
        width: 48px !important;
        height: 48px !important;
    }

    .education-icon i {
        font-size: 1.25rem !important;
    }

    .education-content {
        padding: 1.5rem !important;
    }

    .education-header {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .education-meta {
        align-items: flex-start !important;
        width: 100% !important;
    }

    .education-degree {
        font-size: 1.25rem !important;
    }

    .education-institution {
        font-size: 1rem !important;
    }
}