.single-certificate {
    background: #fff;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.certificate-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.certificate-image-container {
    position: relative;
    display: inline-block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.certificate-img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-image-container:hover .certificate-overlay {
    opacity: 1;
}

.certificate-image-container:hover .certificate-img {
    transform: scale(1.02);
}

.view-certificate-btn {
    background: #fff;
    color: #2c3e50;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-certificate-btn:hover {
    background: #3498db;
    color: #fff;
    transform: scale(1.05);
}

.certificate-info h3 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.certificate-desc {
    color: #7f8c8d;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.certificate-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.meta-item i {
    color: #3498db;
}

/* Certificate Modal */
.certificate-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: #c0392b;
}

.modal-img {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .certificate-wrapper {
        padding: 30px 20px;
    }
    
    .certificate-info h3 {
        font-size: 1.5rem;
    }
    
    .certificate-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .modal-content {
        max-width: 95%;
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .certificate-wrapper {
        padding: 20px 15px;
    }
    
    .certificate-info h3 {
        font-size: 1.3rem;
    }
    
    .certificate-desc {
        font-size: 1rem;
    }
}

