.content {
    max-width: 800px;
    align-self: center;
}

p {
    text-align: left;
}

main {
    margin-top: 2rem;
}

.intro {
    padding-bottom: 2rem;
}

.intro p {
    margin: 1.4rem 0;
}

.menu a.active {
    text-decoration: underline;
}


main .posts {
    padding-left: 0;
    padding-right: 0;
}

.projects {
    width: 100%;
    max-width: 800px;
    text-align: left;
    padding: 20px;
    margin: 20px auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
    width: 100%;
}

.project-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    padding: 1rem;
    text-align: left;
    text-decoration: none;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Project thumbnail */
.project-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: contain;
    pointer-events: none;
}

/* Placeholder for missing thumbnails */
.placeholder {
    background-color: #f0f0f0;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
}

/* Project title */
.project-card h2 {
    font-size: 1.25rem;
    margin: 1rem;
}

.project-card h2 a {
    color: #333;
    text-decoration: none;
}

.project-card h2 a:hover {
    color: #0056b3;
}

/* Project summary */
.project-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0 1rem 1rem;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 1.5rem;
    }
}

/* GitHub stars styling */
.github-stars {
    display: flex;
    align-items: center;
    margin: 1rem;
    font-size: 0.9rem;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    overflow: hidden;
    width: fit-content;
}

.star-icon {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background-color: #f6f8fa;
    color: #24292e;
    border-right: 1px solid #e1e4e8;
}

.star-count {
    padding: 0.5rem 0.75rem;
    color: #24292e;
    font-weight: 600;
}
