/* ----------------------------- */
/* Projects Section */
/* ----------------------------- */
.projects-section {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ----------------------------- */
/* Grid */
/* ----------------------------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ----------------------------- */
/* Project Card */
/* ----------------------------- */
.project-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    color: var(--text);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

/* ----------------------------- */
/* Image */
/* ----------------------------- */
.project-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ----------------------------- */
/* Content */
/* ----------------------------- */
.project-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.project-date {
    color: var(--disabled-text) !important;
    font-size: 16px;
}

/* Description max ~50 chars visually */
.project-description {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 1rem;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* See more */
.project-description .see-more {
    color: var(--primary);
    font-weight: 500;
}

/* Button */
.project-card .btn {
    margin-top: 20px;
    align-self: flex-start;
}

/* Small button */
.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

.text-muted {
    color: var(--primary);
    font-size: 15px;
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto;
}

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

    .project-image {
        height: 180px;
    }
}

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

    .project-image {
        height: 200px;
    }

    .project-title {
        font-size: 1rem;
    }

    .project-description {
        font-size: 0.9rem;
    }

    .btn-sm {
        font-size: 0.85rem;
        padding: 0.35rem 0.7rem;
    }
}

@media (max-width: 480px) {
    .projects-section {
        padding: 2rem 1rem;
    }

    .project-image {
        height: 160px;
    }

    .project-title {
        font-size: 0.95rem;
    }

    .project-description {
        font-size: 0.85rem;
    }

    .btn-sm {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}
