/* ======================================================= */
/* ====== CERTIFICATION GRID CSS ========================= */
/* ======================================================= */

.cert-grid-section {
    background-color: white;
    padding: 2rem 0 5rem 0; /* pt-8 pb-20 */
}
@media (min-width: 640px) { .cert-grid-section { padding-bottom: 6rem; } }

.cert-grid-container {
    max-width: 80rem; margin: 0 auto; padding: 0 1rem;
}

/* Category Filters (reusing news styles, with some color changes) */
.category-filters {
    display: flex; justify-content: center; flex-wrap: wrap;
    gap: 0.75rem; margin-bottom: 3rem;
}
.cat-button {
    padding: 0.5rem 1.25rem; font-size: 0.875rem; font-weight: 500;
    border-radius: 9999px; text-decoration: none; transition: all 0.2s ease-in-out;
    background-color: #f3f4f6; color: #374151; border: none; cursor: pointer;
}
.cat-button:hover { background-color: #e5e7eb; }
.cat-button--active {
    background-color: #2563eb; /* bg-blue-600 */
    color: white;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

/* Certifications Grid */
.certifications-grid {
    display: grid; grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 640px) { .certifications-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .certifications-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .certifications-grid { grid-template-columns: repeat(4, 1fr); } }

.cert-card {
    background-color: rgba(249, 250, 251, 0.7);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    padding: 1.25rem;
    border-radius: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}
.cert-card:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    transform: translateY(-0.25rem);
}

.cert-image-wrapper { margin-bottom: 0.5rem; height: 16rem; /* h-64 equivalent */ }
.cert-image { width: 100%; height: 100%; object-fit: cover; border-radius: 0.375rem; }
.cert-title { font-weight: 700; color: #1f2937; font-size: 1.125rem; }
.cert-issuer { font-size: 0.875rem; color: #6b7280; margin-top: 0.25rem; }
.cert-date { font-size: 0.75rem; color: #9ca3af; margin-top: 0.75rem; }
.no-certs-found { text-align: center; padding: 2rem; color: #6b7280; }

/* --- Lightbox CSS --- */
.lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.lightbox--visible {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    background-color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    max-width: 32rem; /* max-w-lg */
    width: 100%;
}
#lightbox-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    border-radius: 0.375rem;
}
.lightbox-close {
    position: absolute;
    top: 0.5rem; right: 0.5rem;
    background-color: rgba(0,0,0,0.5);
    color: white;
    border-radius: 9999px;
    padding: 0.5rem;
    border: none;
    cursor: pointer;
    line-height: 0; /* Prevents button from having extra height */
    transition: background-color 0.2s;
}
.lightbox-close:hover { background-color: rgba(0,0,0,0.7); }