/* Certificates Gallery Styles */
.certificates-gallery {
    padding: 80px 0;
}

.certificate-filter {
    margin-bottom: 30px;
    text-align: center;
}

.filter-btn {
    background: none;
    border: 2px solid #0d6efd;
    color: #0d6efd;
    padding: 8px 20px;
    margin: 5px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #0d6efd;
    color: white;
    transform: translateY(-2px);
}

.certificate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.certificate-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
}

.certificate-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.certificate-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.certificate-item:hover .certificate-image img {
    transform: scale(1.05);
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 110, 253, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-item:hover .certificate-overlay {
    opacity: 1;
}

.certificate-actions {
    display: flex;
    gap: 10px;
}

.certificate-btn {
    background: white;
    color: #0d6efd;
    border: none;
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.certificate-btn:hover {
    background: #0d6efd;
    color: white;
    transform: scale(1.1);
}

.certificate-info {
    padding: 20px;
}

.certificate-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.certificate-company {
    color: #0d6efd;
    font-weight: 500;
    margin-bottom: 5px;
}

.certificate-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.certificate-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #0d6efd;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
}

/* Certificate Preview Section */
.certificate-preview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
}

.certificate-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.certificate-image-preview {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    background: white;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .certificate-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .certificate-filter {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-btn {
        margin: 3px;
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    .certificate-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .certificate-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.certificate-item {
    animation: fadeIn 0.6s ease;
}