.projects-container {
    padding: 10px 0;
    flex-shrink: 0;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: min-content;
    gap: 16px;
    margin-top: 10px;
}

.gh-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gh-card:hover {
    border-color: var(--link-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .gh-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.gh-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.gh-repo-icon {
    color: var(--sidebar-text);
    font-size: 0.9rem;
}

.gh-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: var(--link-color);
}

.gh-card-title a {
    color: inherit;
    text-decoration: none;
}

.gh-card-title a:hover {
    text-decoration: underline;
}

.gh-description {
    font-size: 0.75rem;
    color: var(--text-color);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gh-card-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.75rem;
    color: var(--sidebar-text);
}

.gh-stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: inherit;
}

.gh-stat-item:hover {
    color: var(--link-color);
}

.gh-language-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: none; /* Shown via JS */
}

@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Featured & Docs Extensions ────────────────────────────── */
.gh-card.featured-card {
    grid-column: 1 / -1; /* Spans full width on desktop */
    border-left: 4px solid #DA5B0B; /* Jupyter orange or similar maturity indicator */
    background: rgba(var(--accent-color-rgb, 4, 51, 97), 0.02);
}

.gh-featured-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    background: #DA5B0B;
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: auto;
}

.gh-doc-link {
    margin-left: auto;
    color: var(--link-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s;
}

.gh-doc-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}
