/* Milestone Slider Component Styles */

.milestone-slider-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.milestone-slider-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #333;
}

.milestone-slider-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.milestone-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.milestone-slider {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.milestone-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
    padding: 20px 0;
}

.milestone-card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 300px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.milestone-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.milestone-year {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    padding: 20px;
    text-align: center;
}

.milestone-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.milestone-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.milestone-card:hover .milestone-image img {
    transform: scale(1.05);
}

.milestone-content {
    padding: 24px;
}

.milestone-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
}

.milestone-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Navigation Buttons */
.milestone-nav {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: 2px solid #667eea;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #667eea;
    z-index: 10;
}

.milestone-nav:hover {
    background: #667eea;
    color: #fff;
    transform: scale(1.1);
}

.milestone-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.milestone-nav svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

/* Pagination Dots */
.milestone-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.milestone-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.milestone-dot.active {
    background: #667eea;
    width: 32px;
    border-radius: 6px;
}

.milestone-dot:hover {
    background: #aaa;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .milestone-card {
        flex: 0 0 calc(50% - 15px);
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .milestone-slider-section {
        padding: 40px 0;
    }

    .milestone-slider-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .milestone-card {
        flex: 0 0 100%;
        min-width: 260px;
    }

    .milestone-track {
        gap: 20px;
    }

    .milestone-nav {
        width: 40px;
        height: 40px;
    }

    .milestone-nav svg {
        width: 20px;
        height: 20px;
    }

    .milestone-year {
        font-size: 1.75rem;
        padding: 16px;
    }

    .milestone-image {
        height: 160px;
    }

    .milestone-content {
        padding: 20px;
    }

    .milestone-title {
        font-size: 1.1rem;
    }

    .milestone-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .milestone-slider-wrapper {
        padding: 0 10px;
    }

    .milestone-slider-container {
        gap: 10px;
    }

    .milestone-nav {
        width: 36px;
        height: 36px;
    }

    .milestone-slider-title {
        font-size: 1.5rem;
    }
}
