/* Milestone Section Styles */

.milestone-section {
    background: #fff;
    position: relative;
    overflow: hidden;
}

.milestone-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.milestone-section .container {
    position: relative;
    z-index: 2;
}

/* Section Title */
.milestone-section .section-title {
    margin-bottom: 60px;
}

.milestone-section .section-title h2 {
  font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 400;
    color: #333;
    margin-bottom: 20px;
    position: relative;
}

.milestone-section .section-subtitle {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Milestone Cards */

.milestone-card {
    background: #fff;
    padding: 22px;
    text-align: center;
    border: 1px solid #dadada;
    transition: all 0.4s ease;
    position: relative;
    height: 100%;
}

.milestone-card:hover {
    border-color: #fbb712;
}

/* Milestone Icon */
.milestone-icon {
    margin-bottom: 18px;
}

.milestone-icon img {
    height: 62px;
    color: #fbb712;
    transition: all 0.3s ease;
}

.milestone-card:hover .milestone-icon i {
    transform: scale(1.1);
    color: #e67e22;
}

/* Milestone Content */
.milestone-content {
    position: relative;
}

.milestone-number {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 400;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1;
    position: relative;
}

.milestone-content .icon {
    font-size: 32px;
    color: #fbb712;
    margin-left: 5px;
}

.milestone-label {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.milestone-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    display: block;
}

/* Timeline Section */
.milestone-timeline {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid #eee;
}

.timeline-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 50px;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, #fbb712, #e67e22);
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    padding: 0 40px;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: #fbb712;
    border: 4px solid #fff;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 3px #fbb712;
}

.timeline-item:nth-child(odd)::before {
    right: -10px;
}

.timeline-item:nth-child(even)::before {
    left: -10px;
}

.timeline-year {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #fbb712;
    margin-bottom: 10px;
}

.timeline-content {
    background: #fff;
    padding: 25px;
    border: 1px solid #dadada;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    box-shadow: 0 10px 30px rgba(251, 183, 18, 0.1);
    border-color: #fbb712;
}

.timeline-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.timeline-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Timeline arrows */
.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -10px;
    width: 0;
    height: 0;
    border-left: 10px solid #dadada;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    left: -10px;
    width: 0;
    height: 0;
    border-right: 10px solid #dadada;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content:hover::after {
    border-left-color: #fbb712;
}

.timeline-item:nth-child(even) .timeline-content:hover::after {
    border-right-color: #fbb712;
}

/* Responsive Design */
@media (max-width: 991px) {
    .milestone-section .section-title h2 {
        font-size: 36px;
    }
    
    .milestone-card {
        padding: 30px 25px;
    }
    
    .milestone-number {
        font-size: 40px;
    }
    
    .timeline-title {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .milestone-section .section-title h2 {
        font-size: 32px;
    }
    
    .milestone-card {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    .milestone-icon i {
        font-size: 40px;
    }
    
    .milestone-number {
        font-size: 36px;
    }
    
    .milestone-label {
        font-size: 16px;
    }
    
    .milestone-desc {
        font-size: 13px;
    }
    
    /* Mobile Timeline */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left;
        padding-left: 60px;
        padding-right: 20px;
    }
    
    .timeline-item::before {
        left: 10px !important;
        right: auto !important;
    }
    
    .timeline-content::after {
        display: none;
    }
    
    .timeline-title {
        font-size: 24px;
    }
    
    .timeline-year {
        font-size: 20px;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .timeline-content h4 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .milestone-section .section-title h2 {
        font-size: 28px;
    }
        
    .milestone-number {
        font-size: 32px;
    }
    
    .timeline-item {
        padding-left: 50px;
        margin-bottom: 30px;
    }
    
    .timeline-content {
        padding: 15px;
    }
}

/* Animation for counter numbers */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.milestone-card.animate .milestone-number {
    animation: countUp 0.8s ease-out;
}

/* Hover effects for better interactivity */
.milestone-card {
    cursor: default;
}

.milestone-card:hover .milestone-number {
    color: #fbb712;
    transition: color 0.3s ease;
}

/* Special styling for percentage numbers */
