/* ========================================
   PREMIUM EDUCATION TIMELINE ENHANCEMENTS
   Add this after the basic timeline styles
   ======================================== */

/* Enhanced Central Line with Animated Gradient */
.timeline::before {
    width: 6px !important;
    background: linear-gradient(180deg,
            transparent 0%,
            var(--color-accent-main) 10%,
            var(--color-primary-dark) 50%,
            var(--color-accent-main) 90%,
            transparent 100%) !important;
    border-radius: 3px !important;
    box-shadow: 0 0 20px rgba(160, 82, 45, 0.3) !important;
    animation: pulse-line 3s ease-in-out infinite !important;
    opacity: 1 !important;
}

@keyframes pulse-line {

    0%,
    100% {
        opacity: 0.6;
        box-shadow: 0 0 20px rgba(160, 82, 45, 0.3);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 30px rgba(160, 82, 45, 0.5);
    }
}

/* Enhanced Glowing Timeline Orbs */
.timeline-dot {
    width: 24px !important;
    height: 24px !important;
    background: linear-gradient(135deg, var(--color-accent-main), var(--color-primary-dark)) !important;
    box-shadow:
        0 0 0 6px rgba(160, 82, 45, 0.2),
        0 0 20px rgba(160, 82, 45, 0.4) !important;
    animation: pulse-dot 2s ease-in-out infinite !important;
}

@keyframes pulse-dot {

    0%,
    100% {
        transform: scale(1);
        box-shadow:
            0 0 0 6px rgba(160, 82, 45, 0.2),
            0 0 20px rgba(160, 82, 45, 0.4);
    }

    50% {
        transform: scale(1.1);
        box-shadow:
            0 0 0 10px rgba(160, 82, 45, 0.1),
            0 0 30px rgba(160, 82, 45, 0.6);
    }
}

.timeline-item.left .timeline-dot {
    right: -12px !important;
}

.timeline-item.right .timeline-dot {
    left: -12px !important;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2) rotate(180deg) !important;
    box-shadow:
        0 0 0 12px rgba(160, 82, 45, 0.15),
        0 0 40px rgba(160, 82, 45, 0.7) !important;
}

/* Enhanced Floating Gradient Date Badges */
.timeline-date {
    top: 25px !important;
    font-size: 0.85rem !important;
    letter-spacing: 1.5px !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, var(--color-accent-main), var(--color-primary-dark)) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(160, 82, 45, 0.3) !important;
}

.timeline-item.left .timeline-date {
    right: -180px !important;
    text-align: center !important;
}

.timeline-item.right .timeline-date {
    left: -180px !important;
    text-align: center !important;
}

.timeline-date:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(160, 82, 45, 0.4) !important;
}

/* Premium Glassmorphism Content Cards */
.timeline-content {
    border-radius: 20px !important;
    padding: 30px !important;
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(160, 82, 45, 0.2) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    transform-style: preserve-3d !important;
}

body.dark-mode .timeline-content {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(160, 82, 45, 0.3) !important;
}

/* 3D Hover Transform */
.timeline-content:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(2deg) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
}

/* Gradient Text for Titles */
.timeline-content h3 {
    background: linear-gradient(135deg, var(--color-accent-main), var(--color-primary-dark)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 800 !important;
    transition: transform 0.3s ease !important;
}

.timeline-content:hover h3 {
    transform: translateX(5px) !important;
}

/* Mention Badge Styling */
.timeline-content .mention {
    display: inline-block !important;
    padding: 4px 12px !important;
    background: linear-gradient(135deg, rgba(160, 82, 45, 0.1), rgba(92, 70, 54, 0.1)) !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    color: var(--color-accent-main) !important;
    margin-bottom: 8px !important;
}

/* Icon Prefixes */
.timeline-content .institution::before {
    content: '🎓 ' !important;
}

.timeline-content .location::before {
    content: '📍 ' !important;
}

/* Map Container Styling */
.map-container {
    margin-top: 15px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease !important;
}

.map-container:hover {
    transform: scale(1.02) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 18px !important;
    }

    .timeline-item.left .timeline-date,
    .timeline-item.right .timeline-date {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        margin-bottom: 15px !important;
        display: inline-block !important;
    }

    .timeline-content:hover {
        transform: translateY(-5px) !important;
    }
}