/* Timeline Styles */
.animated-timeline-section {
    position: relative;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    overflow: hidden;
    padding: 20px 0;
    z-index: 1;
}

.timeline-shape-1,
.timeline-shape-2,
.timeline-shape-3 {
    position: absolute;
    border-radius: 50%;
    background: rgba(110, 142, 251, 0.1);
    z-index: -1;
    display: none; /* Hide shapes on mobile */
}

.timeline-container {
    position: relative;
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px 10px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px; /* Adjusted for better mobile alignment */
    width: 3px;
    height: 100%;
    background: #4e54c8;
    z-index: 1;
    border-radius: 2px;
}

.timeline-block {
    position: relative;
    margin-bottom: 25px;
    width: 100%;
    clear: both;
    padding-left: 40px; /* Reduced padding for mobile */
}

.timeline-block:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    top: 22px;
    left: 13px;
    width: 14px;
    height: 14px;
    background: #fff;
    border: 3px solid #4e54c8;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 3px rgba(78, 84, 200, 0.2);
    transition: all 0.3s ease;
}

.timeline-content {
    position: relative;
    width: 100%;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    z-index: 2;
    margin: 8px 0 !important;
    float: none !important;
}

.timeline-year {
    position: absolute;
    top: -10px;
    left: -35px !important;
    min-width: 65px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: linear-gradient(135deg, #4e54c8, #8f94fb);
    color: white;
    font-weight: 600;
    font-size: 11px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border-radius: 12px;
}

.timeline-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.3;
}

.timeline-content p {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 0;
}

.timeline-image {
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.timeline-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Small Mobile Devices */
@media (max-width: 359px) {
    .timeline-block {
        padding-left: 35px;
    }
    
    .timeline-dot {
        left: 10px;
        width: 12px;
        height: 12px;
    }
    
    .timeline-year {
        left: -30px !important;
        min-width: 55px;
        height: 20px;
        line-height: 20px;
        font-size: 10px;
        padding: 0 8px;
    }
    
    .timeline-content {
        padding: 12px;
    }
    
    .timeline-content h3 {
        font-size: 15px;
    }
    
    .timeline-content p {
        font-size: 12px;
    }
}

/* Tablet and Desktop Styles */
@media (min-width: 768px) {
    .animated-timeline-section {
        padding: 60px 0;
    }

    .timeline-container {
        padding: 40px 15px;
    }

    .timeline-container::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-block {
        padding: 0 20px;
        margin-bottom: 40px;
    }

    .timeline-content {
        width: calc(50% - 40px);
        padding: 25px;
        margin: 0 !important;
    }

    .timeline-block:nth-child(odd) .timeline-content {
        float: right;
        margin-right: 10px !important;
    }

    .timeline-block:nth-child(even) .timeline-content {
        float: left;
        margin-left: 10px !important;
    }

    .timeline-dot {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 20px;
        height: 20px;
    }

    .timeline-year {
        top: -15px;
        min-width: 80px;
        height: 30px;
        line-height: 30px;
        font-size: 13px;
        padding: 0 15px;
    }

    .timeline-block:nth-child(odd) .timeline-year {
        right: 0;
        left: auto !important;
        border-radius: 20px 0 0 20px;
    }

    .timeline-block:nth-child(even) .timeline-year {
        left: 0 !important;
        right: auto;
        border-radius: 0 20px 20px 0;
    }

    .timeline-shape-1,
    .timeline-shape-2,
    .timeline-shape-3 {
        display: block; /* Show shapes on desktop */
    }

    .timeline-shape-1 {
        width: 300px;
        height: 300px;
        top: -150px;
        left: -150px;
    }

    .timeline-shape-2 {
        width: 200px;
        height: 200px;
        bottom: -100px;
        right: -100px;
        background: rgba(167, 119, 227, 0.1);
    }

    .timeline-shape-3 {
        width: 100px;
        height: 100px;
        top: 50%;
        right: 10%;
        background: rgba(67, 233, 123, 0.1);
    }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
    .timeline-content {
        padding: 30px;
    }
    
    .timeline-content h3 {
        font-size: 20px;
    }
    
    .timeline-content p {
        font-size: 15px;
    }
}

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Apply Poppins font to all elements */
* {
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}
