/* 
 * Vision/Mission/Process Timeline - Fixed Layout
 * Makes the three boxes align nicely side by side
 */

.vision-mission-timeline {
    background: #f5f7fa;
    width: 100%;
    padding: 80px 0; /* Increased vertical padding */
    position: relative;
    overflow: hidden;
}

.timeline-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.timeline-header {
    text-align: center;
    margin-bottom: 60px;
}

.timeline-header h2 {
    color: #2B3990;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.timeline-header p {
    color: #555;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Use flexbox for better control */
.timeline-row {
    display: flex;
    justify-content: center;
    gap: 40px; /* Increased gap between boxes */
    flex-wrap: nowrap;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    align-items: stretch; /* Ensures all items stretch to match the tallest one */
}

/* Each timeline item is a card */
.timeline-item {
    background: #4A90E2;
    border-radius: 15px;
    flex: 1;
    min-width: 320px;
    max-width: 320px; /* Fixed width for uniform appearance */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px 50px; /* Adjusted padding with more space at bottom */
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease; /* Smoother transition */
    position: relative;
    text-align: center;
    margin-bottom: 30px;
    height: 450px;  /* Increased fixed height for all boxes */
    overflow: visible; /* Prevent content cutoff */
}

.timeline-item:hover {
    transform: translateY(-15px); /* Increased lift effect */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); /* Enhanced shadow for depth */
}

/* Number badge */
.timeline-number {
    position: absolute;
    top: -20px;
    right: 20px;
    background: #FF8A65;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Icon styling to match screenshot */
.timeline-icon {
    background: white;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
    position: relative;
    top: 0;
    margin-top: 5px; /* Reduced top margin */
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.timeline-icon i {
    font-size: 3.2rem;
    color: #4A90E2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Text styling */
.timeline-item h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
    width: 100%;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px; /* Fixed height for title */
}

.timeline-item p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    line-height: 1.5;
    text-align: center;
    padding: 0;
    width: 100%;
    display: block; /* Changed to block for better text wrapping */
    margin: 0 auto;
    min-height: 120px; /* Increased minimum height */
}

/* Content container */
.timeline-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    text-align: center;
    justify-content: flex-start;
    padding: 0;
    position: relative;
}

/* Make layout responsive */
@media (max-width: 1200px) {
    .timeline-row {
        justify-content: center;
        gap: 30px; /* Reduced gap on smaller screens */
        flex-wrap: wrap;
    }
    
    .timeline-item {
        flex: 0 0 320px; /* Fixed width */
        min-width: 320px;
        margin-bottom: 40px;
    }
}

/* For tablets */
@media (max-width: 991px) {
    .timeline-row {
        gap: 25px;
    }
    
    .timeline-item {
        flex: 0 0 320px; /* Maintain fixed width */
        min-width: 320px;
    }
}

/* For mobile devices */
@media (max-width: 767px) {
    .timeline-row {
        flex-direction: column;
        align-items: center;
        gap: 40px; /* More vertical space between cards */
    }
    
    .timeline-item {
        flex: 0 0 320px; /* Maintain fixed width */
        width: 320px;
        max-width: 320px;
        margin-bottom: 20px;
    }
    
    .timeline-header h2 {
        font-size: 2.5rem;
    }
    
    .timeline-item h3 {
        font-size: 1.9rem;
    }
}

/* Container override to ensure proper alignment */
.vision-mission-timeline .container {
    max-width: 1400px;
    width: 100%;
}
