.projects-section h1 {
    text-align: center;
    color: #333;
    margin-top: 30px; 
    margin-bottom: 40px;
    font-size: 2.5em;
    position: relative;
    padding-bottom: 15px;
}

.projects-section h1::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFCB05;
    border-radius: 2px;
}

.projects-section h2 {
    color: #333;
    border-bottom: 1px solid #eee; 
    padding-bottom: 8px;
    margin-bottom: 25px; 
    text-align: center;
    font-size: 1.8em;
    margin-top: 30px; 
}


.projects-section {
    padding: 20px;
    margin: 0 auto; 
    max-width: 1200px; 
}

.project-category {
    margin-top: 30px;
    margin-bottom: 30px; 
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 20px; 
    justify-content: center; 
    align-items: start; 
}

/* Her bir proje kartı */
.project-card {
    background-color: #fff;
    border-radius: 8px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    width: 100%; 
    max-width: 350px; 
}

.project-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); 
}

.project-card img {
    width: 100%;
    height: 200px; 
    object-fit: cover; 
    border-bottom: 1px solid #eee;
}

.card-content {
    padding: 15px; 
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    margin-top: 0;
    margin-bottom: 8px; 
    font-size: 1.2em; 
    color: #333;
    text-align: center;
    min-height: 1.5em; 
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; 
}

.card-content p {
    font-size: 0.9em; 
    color: #666;
    line-height: 1.4; 
    margin-bottom: 15px; 
    text-align: center;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
}

.project-status {
    display: inline-block;
    padding: 6px 12px; 
    border-radius: 20px; 
    font-size: 0.8em; 
    font-weight: bold;
    text-transform: uppercase;
    margin-top: auto;
    align-self: center;
}

.project-status.ongoing {
    background-color: #ffc107;
    color: #333;
}

.project-status.completed {
    background-color: #28a745;
    color: #fff;
}


.loading-message,
.no-projects-message {
    text-align: center;
    color: #777;
    padding: 20px;
    grid-column: 1 / -1; 
}


.section-divider {
    border: 0;
    height: 1px;
    background-color: #ccc;
    margin: 40px 0;
}


@media (max-width: 992px) { 
    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
        gap: 15px;
    }
    .project-card img {
        height: 180px;
    }
}

@media (max-width: 768px) { 
    .projects-section h1 {
        font-size: 2em;
    }
    .projects-section h2 {
        font-size: 1.6em;
    }
    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 2 sütun */
        gap: 15px;
    }
    .project-card img {
        height: 150px;
    }
    .card-content h3 {
        font-size: 1.1em;
    }
    .card-content p {
        font-size: 0.85em;
        -webkit-line-clamp: 4; 
    }
}

@media (max-width: 480px) { 
    .projects-section h1 {
        font-size: 1.8em;
    }
    .projects-section h2 {
        font-size: 1.4em;
    }
    .project-grid {
        grid-template-columns: 1fr; 
        gap: 15px;
    }
    .project-card img {
        height: 180px; 
    }
    .card-content h3 {
        white-space: normal;
        text-overflow: unset;
    }
    .card-content p {
        -webkit-line-clamp: 5; 
    }
}