.certifications-container {
    max-width: 1400px;
    margin: auto;
    text-align: center;
}

.certifications-title {
    color: #2ecc71;
    margin-bottom: 30px;
    letter-spacing: 1px;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 25px;
}

.certifications-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 30px;
}
@media (min-width:1026px){
    .image-margin{
        margin-right: 110px;
    }
}
@media (min-width:770px) and (max-width:1025px){
    .image-margin{
        margin-right: 50px;
    }
}
@media (min-width:425px) and (max-width:769px){
    .image-margin{
        margin-right: 10px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .content-desktop { display: none; }
    .content-tablet { display: block; }
}

@media (max-width: 768px), (min-width: 1025px) {
    .content-tablet { display: none; }
    .content-desktop { display: block; }
}

/* Scrolling effect on small screens */
@media (max-width: 500px) {
    .certifications-wrapper {
        overflow: hidden; /* Hide overflowing content */
        display: flex;
        justify-content: start;
        position: relative;
    }

    .scrolling-container {
        display: flex;
        align-items: center; /* Ensures vertical alignment */
        gap: 100px;
        width: max-content; /* Ensure it takes only required space */
        animation: scroll 10s linear infinite alternate;
    }

    /* Uniform image height */
    .scrolling-container img {
        flex-shrink: 0;
        /* Adjust as needed */
         /* Maintain aspect ratio */
        object-fit: contain; /* Ensure image is fully visible */
    }

    /* Scrolling animation */
    @keyframes scroll {
        from { transform: translateX(0); }
        to { transform: translateX(-100%); }
    }
}

.key-features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; /* Adjust spacing between cards */
}

.feature-card {
    flex: 1 1 calc(33.33% - 30px); /* Ensures 3 cards per row with spacing */
    max-width: calc(33.33% - 30px); /* Prevents overflow */
    background: #f4f4f4;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 40px;
    margin-bottom: 15px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .feature-card {
        flex: 1 1 calc(50% - 30px); /* 2 cards per row */
        max-width: calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .feature-card {
        flex: 1 1 100%; /* 1 card per row */
        max-width: 100%;
    }
}
