/* ------------------------------- */
/* Projects Section */
.projects {
    flex: 1;
    width: 100%;
    max-width: 1200px; /* container width */
    margin: 0 auto;
    padding: 20px 10px;
}

.projects h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
}

/* Full-width underline under the title */
.projects h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    background-color: #05a0e2;
    border-radius: 2px;
}

/* ------------------------------- */
/* Projects Grid (3 per row) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* ------------------------------- */
/* Project Card */
.project-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0px 3px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

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

/* Image Styling */
.project-card img,
.project-card .no-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 8px;
    margin-bottom: 12px;
}

/* Text */
.project-card h3 {
    font-size: 1.2rem;
    margin: 0 0 12px 0; /* space between title and description */
    color: #111;
}

.project-card p {
    font-size: 0.9rem;
    margin: 0 0 6px 0;  /* space between description and tools/buttons */
    color: #555;
    flex-grow: 1;
}

/* ------------------------------- */
/* Tools Section */
.project-card p.tools {
    margin-top: 0px;       /* spacing from description */
    font-size: 0.85rem;
    color: #555;           /* light gray for the tool names */
}

.project-card p.tools strong {
    color: #555;           /* black for the "Tools:" label */
    margin-right: 5px;
    font-weight: 600;
}

/* Optional badges for tools */
.tool-badge {
    display: inline-block;
    background: #e8f6fb;
    color: #333;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin: 2px 4px 2px 0;
    font-weight: 500;
}

/* ------------------------------- */
/* Buttons */
.project-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    margin-top: auto;
}

.project-buttons a {
    text-decoration: none;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-read {
    background-color: #05a0e2;
    color: white;
}

.btn-read:hover {
    background-color: #0489c9;
    transform: scale(1.05);
}

.btn-dashboard {
    background-color: #76c9e7;
    color: white;
}

.btn-dashboard:hover {
    background-color: #5ab6d6;
    transform: scale(1.05);
}

/* ------------------------------- */
/* Responsive */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
    /* Prevent sidebar from overlapping the "Projects" title */
.projects {
    padding-left: 250px;
    padding-left:0 /* same width as your sidebar */
}

/* On small screens (when sidebar collapses), remove the padding */
@media (max-width: 768px) {
    .projects {
        padding-left: 0;
    }
}

