:root {
    --primary: #57B33E;
    --primary-rgb: 87, 179, 62;
    --secondary: #FFB800;
    --background: #f8f9fa;
    --text: #1a1a1a;
    --card-bg: rgba(255, 255, 255, 0.9);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --blur: blur(10px);
}

body {
    background: var(--background);
    color: var(--text);
    margin: 0;
    padding: 0;
}

.container-xxl.milestone-section {
    padding: 4rem 1rem;
    min-height: 100vh;
    position: relative;
    background: var(--background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary) !important;
}

.timeline-header h6 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.timeline-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
}

.timeline-container {
    position: relative;
    padding: 2rem 3rem; /* Increased lateral padding for side spacing */
    background: var(--card-bg);
    background-image: linear-gradient(135deg, rgba(87, 179, 62, 0.2), rgba(255, 184, 0, 0.2)), url('/img/carousel-1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    backdrop-filter: var(--blur);
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

/*** Services Start ***/
.serv1 .service-item {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    transition: 0.5s;
    z-index: 1;
}

.serv1 .service-item .service-img img {
    transition: 0.5s;
}

.serv1 .service-item:hover .service-img img {
    transform: scale(1.2);
}

.serv1 .service-item::after {
    content: "";
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
    z-index: 2;
}

.serv1 .service-item:hover:after {
    height: 100%;
    background: rgba(0, 0, 0, .4);
}

.serv1 .service-item .service-content {
    position: absolute;
    width: 100%;
    top: 50%; 
    left: 0; 
    transform: translateY(-50%);
    transition: 0.5s;
    opacity: 0;
    z-index: 3;
}

.serv1 .service-item:hover .service-content {
    opacity: 1;
}

.serv1 .service-item:hover .service-content a.fs-4 {
    color: var(--bs-white);
    transition: 0.5s;
}

.serv1 .service-item:hover .service-content a.fs-4:hover {
    color: var(--bs-warning);
}

.serv1 .service-item .service-tytle {
    position: absolute;
    width: 100%;
    height: 80px; 
    bottom: 0; 
    right: 0;
    background: var(--bs-white);
    display: flex;
    transition: 0.5s;
    z-index: 3;
}

.serv1 .service-item:hover .service-tytle {
    margin-right: -100%;
}
/*** Services End ***/

/*New Timeline*/

.timeline-track {
    position: relative;
    height: 8px;
    background-color: var(--primary);
    border-radius: 4px;
    margin: 2rem 0;
}

.timeline-years {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.year-marker {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.year-marker.active {
    transform: scale(1.2);
}

.year-marker .year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background-color: var(--light);
    border: 3px solid var(--primary);
    transition: all 0.3s ease;
}

.year-marker.active .year {
    background-color: var(--primary);
    color: white;
}

.timeline-content {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.milestone-container {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 1s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transform: translateX(100%);
    background-color: var(--primary);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.milestone-container.active {
    opacity: 1;
    transform: translateX(0);
}

.milestone-container.prev {
    opacity: 0;
    transform: translateX(-100%);
}

.milestone-title {
    color: var(--light);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    border-bottom: 3px solid var(--light);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.milestone-item {
    color: var(--light);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 2rem;
}

.milestone-item:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background-color: var(--light);
    border-radius: 50%;
}

.milestone-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.controls {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.control-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.control-btn:hover {
    background-color: var(--yellow);
    transform: translateY(-3px);
}

.control-btn:active {
    transform: translateY(0);
}

.auto-scroll-toggle {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.auto-scroll-toggle:hover {
    background-color: var(--yellow);
    transform: translateY(-3px);
}

.auto-scroll-toggle.active {
    background-color: var(--yellow);
}

.page-title {
    text-align: center;
    margin: 2rem 0;
    color: var(--light);
    font-weight: 700;
    font-size: 2.5rem;
}

.page-title span {
    color: var(--light);
}

/* Tablet Styles */
@media screen and (max-width: 768px) {
    .year-marker .year {
        font-size: 1.2rem;
        padding: 0.4rem 0.8rem;
    }

    .milestone-title {
        font-size: 1.75rem;
    }

    .milestone-item p {
        font-size: 1rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .timeline-content {
        height: 375px;
    }
}

/* Mobile Styles */
@media screen and (max-width: 480px) {
    .timeline-years {
        justify-content: center;
        gap: 0.5rem;
    }

    .year-marker .year {
        font-size: 1rem;
        padding: 0.3rem 0.6rem;
    }

    .milestone-container {
        padding: 1rem;
    }

    .milestone-title {
        font-size: 1.5rem;
    }

    .milestone-item {
        padding-left: 1.5rem;
    }

    .milestone-item:before {
        width: 8px;
        height: 8px;
    }

    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .timeline-content {
        height: 400px;
    }
}

/* Small Mobile Styles */
@media screen and (max-width: 320px) {
    .year-marker .year {
        font-size: 0.9rem;
        padding: 0.2rem 0.4rem;
    }

    .milestone-title {
        font-size: 1.25rem;
    }

    .milestone-item p {
        font-size: 0.9rem;
    }

    .control-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .auto-scroll-toggle {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}

/*------------------*/
/*------------------*/
/*Team Section*/

  .team-section {
        padding: 100px 0;
    }
    
    .section-title {
        margin-bottom: 60px;
        position: relative;
    }
    
    .section-title h2 {
        font-weight: 700;
        letter-spacing: -0.5px;
    }
    
    .section-title p {
        color: #64748b;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .team-tabs {
        margin-bottom: 40px;
    }
    
    .team-tabs .nav-link {
        color: #64748b;
        font-weight: 500;
        padding: 12px 24px;
        border-radius: 30px;
        margin: 0 8px;
        transition: all 0.3s ease;
    }
    
    .team-tabs .nav-link.active {
        background-color: var(--primary);
        color: white;
        box-shadow: 0 4px 15px rgba(67, 97, 238, 0.2);
    }
    
    .team-tabs .nav-link:hover:not(.active) {
        background-color: #e2e8f0;
    }
    
    .team-card {
        background: white;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
        transition: all 0.3s ease;
        margin-bottom: 30px;
        border: none;
    }
    
    .team-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    }
    
    .team-img {
        position: relative;
        overflow: hidden;
        height: 280px;
    }
    
    .team-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }
    
    .team-card:hover .team-img img {
        transform: scale(1.05);
    }
    
    .team-content {
        padding: 24px;
        text-align: center;
    }
    
    .team-content h5 {
        font-weight: 700;
        margin-bottom: 5px;
    }
    
    .team-content p {
        color: #64748b;
        margin-bottom: 15px;
        font-size: 0.95rem;
    }
    
    .fade-in {
        animation: fadeIn 0.5s ease-in-out;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .team-badge {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: var(--primary);
        color: white;
        padding: 6px 12px;
        border-radius: 30px;
        font-size: 0.8rem;
        font-weight: 600;
        z-index: 2;
    }
    
    .empty-state {
        text-align: center;
        padding: 60px 0;
    }
    
    .empty-state svg {
        width: 120px;
        height: 120px;
        margin-bottom: 20px;
    }
    
    .empty-state h4 {
        font-weight: 600;
        margin-bottom: 10px;
    }
    
    .empty-state p {
        color: #64748b;
        max-width: 400px;
        margin: 0 auto;
    }