/* Certificates Page Styles */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.certificate-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid var(--border);
}

.certificate-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.certificate-card.featured-card {
    border: 2px solid var(--accent);
    position: relative;
}

.certificate-card.featured-card::before {
    content: 'Featured';
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.cert-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--bg-light);
}

.cert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.certificate-card:hover .cert-image img {
    transform: scale(1.05);
}

.cert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-card:hover .cert-overlay {
    opacity: 1;
}

.cert-overlay i {
    color: var(--white);
    font-size: 2rem;
    background: var(--accent);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.certificate-card:hover .cert-overlay i {
    transform: scale(1);
}

.cert-info {
    padding: 25px;
}

.cert-year {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.featured-year {
    background: var(--accent);
    color: var(--white);
}

.cert-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.cert-issuer {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.cert-date, .cert-location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cert-date i, .cert-location i {
    color: var(--accent);
    width: 16px;
}

/* Affiliations */
.affiliations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.affiliation-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.affiliation-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--accent);
}

.affiliation-icon {
    width: 70px;
    height: 70px;
    background: rgba(202, 138, 4, 0.1);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

.affiliation-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.affiliation-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 4px solid var(--white);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--accent);
}

.lightbox-caption {
    color: var(--white);
    margin-top: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: 1fr;
    }
    .lightbox-content img {
        max-height: 70vh;
    }
}