/* about.css */
body {
    overflow-x: hidden;
}


/* General section styling */
.about-us {
    overflow: hidden;
}





/* Card animations */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}




/* Statistical snapshot cards */
.card.shadow-sm {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.col-md-4:nth-child(1) .card {
    animation-delay: 0.4s;
}

.col-md-4:nth-child(2) .card {
    animation-delay: 0.6s;
}

.col-md-4:nth-child(3) .card {
    animation-delay: 0.8s;
}


/* Partner cards */
.partner-wap {
    transition: all 0.3s ease;
}

.partner-wap:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Team member animation */
.team-member {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.team-member:nth-child(1) {
    animation-delay: 0.4s;
}

.team-member:nth-child(2) {
    animation-delay: 0.6s;
}

.team-member:nth-child(3) {
    animation-delay: 0.8s;
}

.team-member-img {
    transition: all 0.3s ease;
}

.team-member:hover .team-member-img {
    transform: scale(1.05);
}

/* Logo section animation */
.logocard {
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.col-lg-2:nth-child(1) .logocard {
    animation-delay: 0.2s;
}

.col-lg-2:nth-child(2) .logocard {
    animation-delay: 0.4s;
}

.col-lg-2:nth-child(3) .logocard {
    animation-delay: 0.6s;
}

.col-lg-2:nth-child(4) .logocard {
    animation-delay: 0.8s;
}

.col-lg-2:nth-child(5) .logocard {
    animation-delay: 1s;
}

.logocard:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/*Milestone*/

/* Text animation */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: #2f6b4f;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.milestone {
    padding: 0px 40px;
    position: relative;
    width: 45%;
    opacity: 0;
    transition: all 0.6s ease-in-out;
    margin: 20px 0;
}

.milestone.visible {
    opacity: 1;
    transform: translateX(0);
}

.milestone.left {
    left: 0;
    transform: translateX(-50px);
}

.milestone.right {
    left: 55%;
    transform: translateX(50px);
}

.content {
    padding: 20px;
    background: #ffffff;
    position: relative;
    border-radius: 8px;
    border: 1px solid #4f8b6f;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.milestone::before {
    content: '';
    position: absolute;
    top: 25px;
    width: 16px;
    height: 16px;
    background: #4f8b6f;
    border-radius: 50%;
    z-index: 1;
}

.milestone.left::before {
    right: -8px;
}

.milestone.right::before {
    left: -8px;
}


@media (max-width: 768px) {
    .timeline::after { left: 20px; }
    .milestone { 
        width: 80%; 
        left: 50px !important;
        transform: translateX(-30px);
    }
    .milestone.right::before,
    .milestone.left::before { left: -18px; }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .timeline {
        padding: 10px 0;
    }

    .timeline::after {
        left: 25px;
    }

    .milestone {
        width: calc(100% - 70px); /* Full width minus padding and marker */
        left: 45px !important;
        padding: 10px 15px;
        transform: translateX(-30px);
    }

    .milestone.right::before,
    .milestone.left::before {
        left: -20px;
        top: 15px;
    }

    .content {
        padding: 12px;
    }


}

@media (max-width: 480px) {

    .milestone {
        width: calc(100% - 50px);
        left: 35px !important;
    }

    .timeline::after {
        left: 15px;
    }

    .milestone.right::before,
    .milestone.left::before {
        left: -18px;
    }
}