
.section 
{
    /* padding: 1rem 0; */
}
.section .service-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    height: 75%; /* Ensures equal height */
    width:100%;
    display: flex;
    flex-direction: column;
    border-radius: 20px 20px 20px 0;
}

.section .number-badge {
    width: 50px;
    height: 50px;
    background: #00A67E;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    font-weight: bold;
    border: 5px solid #f8f9fa; 
}

/* Badge positioning */
.section .card-up .number-badge {
    bottom: -30px;
}

.section .card-down .number-badge {
    top: -30px;
}

.section .service-icon {
    color: #00A67E;
    font-size: 2rem;
    margin-bottom: 1rem;
}
.section .service-title {
    font-weight: 600;
    margin-top:5px;
    font-size: 18px;
    color: black;

}

.section .service-description {
    color: black;
    font-size: 15px;
    margin-top: 5px;
}

.section .container {
    position: relative;
}

.section .card-up {
    margin-top: 0;
}
.section .service-card,
.section .arrow1 img,
.section .arrow2 img {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

/* Different movement directions */
.section .card-up {
    transform: translateY(50px);
}

.section .card-down {
    transform: translateY(-50px);
}

.section .arrow1 img {
    transform: translateY(50px);
}

.section .arrow2 img {
    transform: translateY(-50px);
}
/* Responsive adjustments */
@media (max-width: 991px) {
    .section .card-up, .section .card-down {
        margin-top: 2rem;
    }
}
.section .arrow1
{
  margin-left: 135px;
  margin-top: -30px;
}

.section .arrow2
{
  margin-left: 140px;
  margin-bottom: -40px;
}
.section h2
{
  text-align: center;
  margin-bottom: 30px ;
  font-size: 22px;
  font-weight: bold;
}

.section .four
{
  margin-top: 130px;
  height: 75%;
}
.section .service-img {
    width: 100px;
    height: 100px;
    margin-bottom: 0;
}
@keyframes slideUp {
from {
transform: translateY(50px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}

@keyframes slideDown {
from {
    transform: translateY(-50px);
    opacity: 0;
}
to {
    transform: translateY(0);
    opacity: 1;
}
}

/* Initially hide the cards and arrows */
.section .service-card,
.section .arrow1 img,
.section .arrow2 img {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

/* Different movement directions */
.section .card-up {
    transform: translateY(50px);
}

.section .card-down {
    transform: translateY(-50px);
}

.section .arrow1 img {
    transform: translateY(50px);
}

.section .arrow2 img {
    transform: translateY(-50px);
}

/* Active state when in view */
.section .service-card.visible,
.section .arrow1 img.visible,
.section .arrow2 img.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for cards */
.section .col-lg-3:nth-child(1) .service-card.visible {
    transition-delay: 0.2s;
}

.section .col-lg-3:nth-child(2) .service-card.visible {
    transition-delay: 0.4s;
}

.section .col-lg-3:nth-child(3) .service-card.visible {
    transition-delay: 0.6s;
}

.section .col-lg-3:nth-child(4) .service-card.visible {
    transition-delay: 0.8s;
}

/* Staggered delay for arrows */
.section .col-lg-3:nth-child(1) .arrow1 img.visible {
    transition-delay: 0.3s;
}

.section .col-lg-3:nth-child(2) .arrow2 img.visible {
    transition-delay: 0.5s;
}

.section .col-lg-3:nth-child(3) .arrow1 img.visible {
    transition-delay: 0.7s;
}

.section .col-lg-3:nth-child(4) .arrow2 img.visible {
    transition-delay: 0.9s;
}


/* Responsive Design */
@media (max-width :1024px)
{
.section .arrow1
{
    margin-left: 80px;
}
.section .arrow2
{
    margin-left: 80px;
    
}
.section .service-card .d-flex {
flex-direction: column;
align-items: center;
text-align: center;
}
.section .service-card
{
height: auto;
}

}
@media (max-width: 991px) {
.section .arrow1, .section .arrow2 {
display: none; /* Hide arrows for tablets and mobile */
}

.section .service-card {
height: auto; /* Allow dynamic height */
display: flex;
flex-direction: column;
justify-content: space-between;
}

.section .row {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px; /* Maintain spacing */
align-items: stretch; /* Make cards align properly */
}

.section .col-lg-3 {
width: 48%; /* Two cards per row */
display: flex;
}

.section .service-card {
flex-grow: 1; /* Makes all cards take equal height */
}

/* Ensure the fourth card (last one) is positioned correctly */
.section .four {
margin-top: 0; /* Remove unnecessary margin */
}

/* Adjust number badge positioning */
.section .number-badge {
position: absolute;
top: -20px; /* Adjust badge position */
left: 50%;
transform: translateX(-50%);
width: 40px;
height: 40px;
font-size: 1rem;
}
.section .card-down .number-badge {
top: -20px; /* Reset top positioning */
}      
}

/* For screens below 768px (small devices like mobiles), show one card per row */
@media (max-width: 768px) {
.section .col-lg-3 {
width: 100%; /* Make each card take full width */
}

}


@media (max-width: 576px) {
.section .col-lg-3 {
    width: 100%; /* One card per row in mobile */
}

.section h2 {
    font-size: 18px;
}

.section .service-card {
    padding: 1.5rem;
    text-align: center;
}

.section .service-img {
    width: 80px;
    height: 80px;
}

.section .service-title {
    font-size: 16px;
}

.section .service-description {
    font-size: 14px;
}

.section .number-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
    border: 4px solid #f8f9fa;
}

}
