.cert-category-block {
    margin-bottom: 60px;
}

.cert-category-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--grey);
    margin-bottom: 30px;
}

.cert-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cert-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cert-img-wrapper {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #E5E7EB;
    background-color: var(--white);
    padding: 10px;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-img-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.cert-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.cert-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    line-height: 1.4;
}

.custom-scrollbar-container.cert-scrollbar {
    display: none;
}

@media (max-width: 991px) {
    .cert-category-title {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .cert-gallery {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        
        margin-left: 10px;
        margin-right: 10px;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 20px;
        gap: 20px;
        
        -ms-overflow-style: none;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    
    .cert-gallery::-webkit-scrollbar {
        display: none;
    }

    .cert-card:first-child { margin-left: 20px; }
    .cert-card:last-child { margin-right: 20px; }

    .cert-card {
        flex: 0 0 260px; 
        min-width: 260px;
    }

    .custom-scrollbar-container.cert-scrollbar {
        display: block;
        margin-top: 10px;
    }
}

@media (max-width: 767px) {
    .cert-card {
        flex: 0 0 220px;
        min-width: 220px;
    }
    
    .cert-name {
        font-size: 14px;
    }
}



#lightboxModal {
    background-color: rgba(0, 0, 0, 0.85); 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#lightboxModal .lightbox-content {
    position: relative;
    max-width: 90vw; 
    max-height: 90vh;
    display: flex;
    justify-content: center;
}

#lightboxModal img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#lightboxModal.active img {
    transform: scale(1);
}

#lightboxModal .lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10000;
    transition: transform 0.2s ease;
}

#lightboxModal .lightbox-close:hover {
    transform: scale(1.1);
}