: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-1022.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;
}

/*Play Button*/
.about-section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(14, 165, 233, 0.05);
    top: -100px;
    left: -100px;
    z-index: 0;
}

.about-section::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: rgba(245, 158, 11, 0.05);
    bottom: -50px;
    right: -50px;
    z-index: 0;
}

.section-title {
    position: relative;
    display: inline-block;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background: var(--accent);
}

.image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: all 0.3s ease;
    height: 100%;
    max-height: 450px;
    display: flex;
}

.image-container img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.image-container:hover {
    transform: translateY(-5px);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4));
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    overflow: hidden;
}

.play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.play-btn::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.5s ease;
}

.play-btn:hover {
    background-color: var(--secondary);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 15px 35px rgba(14, 165, 233, 0.5);
    color: white;
}

.play-btn:hover::before {
    opacity: 1;
}

.play-btn:hover::after {
    transform: scale(2);
}

.play-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}

.about-content {
    padding: 0.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.highlight {
    color: var(--primary);
    font-weight: 600;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(14, 165, 233, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-right: 1rem;
    flex-shrink: 0;
}

.btn-learn-more {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    align-self: flex-start;
}

.btn-learn-more:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.2);
    color: white;
}

@media (max-width: 1199px) {
    .image-container {
        max-height: 400px;
    }
}

@media (max-width: 991px) {
    .about-section {
        padding: 4rem 0;
    }

    .image-container {
        max-height: 350px;
        margin-bottom: 2rem;
    }

    .play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .image-container {
        max-height: 300px;
    }

    .about-content {
        padding: 1rem 0;
    }

    .feature-item {
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 575px) {
    .about-section {
        padding: 3rem 0;
    }

    .play-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}