/**
 * Timeline Widget Styles
 * Responsive timeline for education, career history, and events
 */

/* Base Timeline Container */
.timeline {
    position: relative;
}

/* Timeline Vertical Line */
.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(to bottom, #C4884A, rgba(196,136,74,0.1));
}

/* Timeline Item */
.timeline-item {
    position: relative;
    margin-bottom: 52px;
    padding-left: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Timeline Dot */
.timeline-dot {
    position: absolute;
    left: -40px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #C4884A;
    border: 3px solid #FFFFFF;
    box-shadow: 0 0 0 1px #C4884A;
}

/* Location/Year Text */
.timeline-year {
    font-size: 10px;
    font-weight: 500;
    color: #C4884A;
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-family: var(--font-b, 'Arial', sans-serif);
    text-transform: uppercase;
}

/* Institution Title */
.timeline-institution {
    font-family: var(--font-h, 'Georgia', serif);
    font-size: 26px;
    font-weight: 400;
    color: #1a2a3a;
    margin-bottom: 4px;
    line-height: 1.1;
}

/* Role/Degree Text */
.timeline-role {
    font-size: 13px;
    font-weight: 500;
    color: #2E8B8B;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

/* Description */
.timeline-desc {
    font-size: 14px;
    font-weight: 300;
    color: #4A6274;
    line-height: 1.75;
    max-width: 620px;
}

/* Responsive Styles */

/* Tablet Devices */
@media (max-width: 1024px) {


    .timeline::before {
        left: 5px;
        top: 6px;
        bottom: 6px;
    }

    .timeline-item {
        padding-left: 30px;
        margin-bottom: 40px;
    }

    .timeline-dot {
        left: -30px;
        width: 14px;
        height: 14px;
        border-width: 2.5px;
    }

    .timeline-institution {
        font-size: 22px;
    }

    .timeline-desc {
        font-size: 13px;
        max-width: 500px;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {

    .timeline::before {
        left: 4px;
        top: 5px;
        bottom: 5px;
    }

    .timeline-item {
        padding-left: 25px;
        margin-bottom: 35px;
    }

    .timeline-dot {
        left: -25px;
        width: 12px;
        height: 12px;
        border-width: 2px;
    }

    .timeline-year {
        font-size: 9px;
        letter-spacing: 1.5px;
        margin-bottom: 6px;
    }

    .timeline-institution {
        font-size: 18px;
        margin-bottom: 3px;
    }

    .timeline-role {
        font-size: 12px;
        margin-bottom: 8px;
        letter-spacing: 0.2px;
    }

    .timeline-desc {
        font-size: 13px;
        line-height: 1.6;
        max-width: 100%;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {


    .timeline::before {
        left: 3px;
    }

    .timeline-item {
        padding-left: 20px;
        margin-bottom: 30px;
    }

    .timeline-dot {
        left: -20px;
        width: 10px;
        height: 10px;
        border-width: 2px;
    }

    .timeline-institution {
        font-size: 16px;
    }

    .timeline-desc {
        font-size: 12px;
    }
}

/* Animation for Timeline Items */
.timeline-item {
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Animation Delays */
.timeline-item:nth-child(1) {
    transition-delay: 0.1s;
}

.timeline-item:nth-child(2) {
    transition-delay: 0.2s;
}

.timeline-item:nth-child(3) {
    transition-delay: 0.3s;
}

.timeline-item:nth-child(4) {
    transition-delay: 0.4s;
}

.timeline-item:nth-child(5) {
    transition-delay: 0.5s;
}

/* Hover Effect on Timeline Dot */
.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}
