body {
    overflow-x: hidden;
}
.flag-image {
    width: 30px;
    
    overflow: hidden; /* Ensure content does not overflow the container */
    perspective: 1000px; /* Add perspective for 3D effect */
    text-align: left; /* Align content to the left */
}

.flag-image img {
    transition: transform 0.6s; /* Apply transition to transform */
    transform-style: preserve-3d; /* Ensure 3D transform is preserved */
    display: block; /* Change to block to align left */
}

.flag-image:hover img {
    transform: rotateY(180deg); /* Flip the image horizontally */
}

.cards {
    display: flex;
    flex-wrap: wrap; /* Changed to wrap for better responsiveness */
    justify-content: space-between;
}

.cards__card {
    align-items: center;
    display: flex;
    flex-direction: column; /* Ensures content stacks vertically */
    margin-bottom: 1.4rem;
    max-width: 100%;
    width: 100%; /* Full width for mobile */
    max-width: 600px; /* Limit width on larger screens */
    transition: transform 0.3s, box-shadow 0.3s; /* Smooth transition for hover effects */
    overflow: hidden; /* Ensure the image stays within the card */
}

.cards__card:hover {
    transform: scale(1.05); /* Slightly scale up the card */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Add shadow for depth effect */
}

.card__image {
    height: auto;
    max-width: 100%;
    transition: transform 0.3s; /* Smooth transition for image hover effect */
}

.cards__card:hover .card__image {
    transform: scale(1.1); /* Scale up the image on hover */
}

.card__text {
    padding: 18px 1.6rem;
    width: 100%;
    min-height: 765px;
    position:relative;
    padding-bottom:60px;
}

.card__text p {
    margin-bottom: 0;
}

.card__text h5 {
    margin-bottom: 5px;
}

.fa {
    padding: 10px;
    font-size: 16px;
    width: 36px;
    text-align: center;
    text-decoration: none;
    margin: 8px 2px;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.3s; /* Smooth transition for icon hover effect */
}

.fa:hover {
    opacity: 0.7;
    transform: scale(1.1); /* Slightly scale up the icon */
}

.fa-facebook,
.fa-twitter,
.fa-linkedin {
    background: #020202;
    color: white;
}

.social-icons-group {
    display: flex;
    gap: 10px;
    margin-left: 0;
    margin-bottom: 0px;
    bottom:0;
 
}

.right-arrow{
  margin-left:auto;
  bottom: 0;
  right: 0;
}

.social-icons-group.bottomicon {
    position: absolute;
    bottom: 20px;
    width: 90%;
    padding-top: 15px;
}

@media (max-width: 767px) {
    .cards {
        justify-content: center; /* Center the cards on mobile */
    }

    .cards__card {
        width: 100%; /* Full width on mobile */
        margin: 10px 20px 30px 20px;
    }

    .fa {
        font-size: 14px;
        width: 32px;
        padding: 8px;
    }

    .card__text {
        padding: 10px 1rem 65px 1rem;
    }

    h4 {
        font-size: 2.425rem !important;
    }

    h5 {
        font-size: 2.0rem !important;
    }

    h6,
    p {
        font-size: 1.1rem !important;
    }

    .content-wrapper--vertical-spacing,
    .dnd-section {
        padding: 10px 1rem;
    }

    
}

@media (min-width: 768px) and (max-width: 1023px) {
    h4 {
        font-size: 2rem !important;
    }

    h6,
    p {
        font-size: 1.2rem !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    /* For iPad in portrait and landscape mode */
    .card__text {
        min-height: 300px;
    }
}

@media (min-width: 1025px) and (max-width: 1366px) {
    /* For iPad Pro in portrait and landscape mode */
    .card__text {
        min-height: 550px;
    }
}

@media (max-width: 991px) {
    .hero-fold--title h2 {
        color: #1d1d1f;
        font-size: 2.5rem !important;
        line-height: 3.6rem;
        width: 80%;
    }
}

/* MacBook Pro 14-inch and 16-inch screens */
@media only screen and (min-width: 1930px) and (max-width: 2560px) {
.card__text {

    min-height: 470px;
   
}
}

/* High-resolution Retina screens */
@media only screen and (-webkit-min-device-pixel-ratio: 2), 
only screen and (min-resolution: 192dpi) {
 .card__text {

    min-height: 605px;
   
}
}

/* Media query for Full HD screens (1920x1080) */
@media only screen and (min-width: 1920px) and (max-width: 1920px) and (min-height: 1080px) and (max-height: 1080px) {
   .card__text {

    min-height: 635px;
   
}