/* Upcoming Certifications */
.top-certifications {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.top-certifications h2 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 5px;
    text-align: left;
    font-weight: bold;
}

/* certifications Carousel */
.certifications-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 8px;
    padding: 10px 0;
    scroll-behavior: smooth;
    align-items: stretch; /* Align all cards properly */
    flex-wrap: nowrap; /* Ensure all cards are in one row */
    min-height: 220px;
}


.certification-1card {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: top;
    text-align: center;
    padding: 10px;
}

.certification-1card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.certification-1image {
    width: 80px;
    height: auto;
    object-fit: contain;
    border-radius: 10%;
    margin-bottom: 5px;
}

.certification-1info {
    padding: 3px;
    text-align: center;
    align-items: center;
}

.certification-1info p {
    font-size: 0.7rem;
    color: #555;
    margin: 3px 0;
    text-overflow: ellipsis;
    text-align: center;
    overflow: hidden;
}

.certification-1info strong {
    font-weight: bold;
    color: #333;
}

/* Responsive Design for Larger Screens */
@media (min-width: 768px) {
    .top-certifications h2 {
        font-size: 1rem;
    }

    .certification-1card {
        width: 200px;
        height: 200px;
    }

    .certification-1image {
        width: 80px;
        height: auto;
    }
}

/* Responsive Design for Smaller Screens */
@media (max-width: 767px) {
    .top-certifications h2 {
        font-size: 1rem;
    }

    .certification-1card {
        width: 200px;
        height: 200px;
    }

    .certification-1image {
        width: 80px;
        height: auto;
    }
}
