/* Certificate Pages Styles */
body {
    background-color: #f5f5f5;
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
}

.certificate-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.certificate-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.certificate-header {
    text-align: center;
    margin-bottom: 30px;
}

.certificate-header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.certificate-image {
    text-align: center;
    margin-bottom: 30px;
}

.certificate-image img {
    max-width: 100%;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.certificate-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.certificate-item {
    text-align: center;
}

.certificate-item img {
    max-width: 100%;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.certificate-item img:hover {
    transform: scale(1.03);
}

.certificate-details {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
}

.certificate-details h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.certificate-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.certificate-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.certificate-meta-item i {
    color: #3498db;
    font-size: 1.2rem;
}

.back-button {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #2980b9;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    margin-top: 50px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover {
    color: #bbb;
}

/* Responsive styles */
@media (max-width: 768px) {
    .certificate-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .certificate-gallery {
        grid-template-columns: 1fr;
    }
}