body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #013834;
    color: white;
    text-align: center;
}

.projects-container {
    padding: 20px;
}

h1 {
    margin-bottom: 20px;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    margin: 0 auto;
    max-width: 1200px;
}

.project-card {
    background-color: #343a3c;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card img {
    max-width: 100%;
    height: 200px;
    object-fit: cover; /* Ensures the image covers the area */
}

.card-text {
    padding: 15px;
    flex-grow: 1; /* Allows the text container to grow dynamically */
    text-align: left; /* Aligns the text to the left for readability */

}

.card-text h2 {
    margin: 10px 0 5px;
    font-size: 16px;
    color: #ffffff;
}

.card-text p {
    margin: 0;
    font-size: 16px;
    color: #ccdc4fe7;
    word-wrap: break-word; /* Ensures long words break to fit within the card */
    overflow: hidden; /* Hides overflow text */
    text-overflow: ellipsis; /* Adds '...' if the text is truncated */
    display: -webkit-box;
    -webkit-line-clamp: 5; /* Limits the description to 3 lines */
    -webkit-box-orient: vertical;
}
a {
    color: inherit; /* Makes the link the same color as surrounding text */
}

a:hover, a:visited, a:active {
    color: inherit; /* Ensures color stays the same in all states */
    text-decoration: none;
}
