.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    width: 100%;
}

.cert-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-secondary); /* Success Green indicator */
    border-radius: 4px;
    padding: 15px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cert-card:hover {
    background: rgba(63, 185, 80, 0.05);
    border-color: var(--accent-secondary);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cert-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cert-status {
    font-size: 0.65rem;
    font-weight: bold;
    color: var(--accent-secondary);
    background: rgba(63, 185, 80, 0.1);
    padding: 2px 6px;
    border-radius: 2px;
    letter-spacing: 1px;
}

.cert-provider {
    font-size: 0.75rem;
    color: var(--accent-highlight);
    font-weight: bold;
}

.cert-body {
    flex-grow: 1;
}

.cert-title {
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.cert-desc {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed var(--border-color);
    padding-top: 10px;
    margin-top: auto;
}

.cert-duration {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-family: monospace;
}

.cert-link {
    font-size: 0.75rem;
    color: var(--accent-primary);
    font-weight: bold;
    text-decoration: none;
    border: none;
}

.cert-link:hover {
    text-decoration: underline;
    background: transparent;
    color: var(--accent-primary);
}

/* Light Mode Contrast */
[data-theme="light"] .cert-card { background: #f6f8fa; }
[data-theme="light"] .cert-title { color: #24292f; }