


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #FAF9F6;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 1200px; /* Ensures the content never shrinks below 1200px */
    overflow-x: auto; /* Allows horizontal scrolling on smaller screens */
}

/* Global Dashboard Button Section */
.dashboard-section {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px;
}

.dashboard-button {
    border-radius: 5px;
    background-color: #fff;
    color: #212427;
    text-align: center;
    font-size: 15pt;
    font-weight: bold;
    padding: 10px;
    border: 1px solid #212427;
    cursor: pointer;
    width: 100%;
    max-width: 1183px;
    transition: background-color 0.3s ease, color 0.3s ease, font-size 0.3s ease;
}

.dashboard-button:hover {
    background-color: #212427;
    color: #FAF9F6;
}

/* Responsive font size and padding for the dashboard button */
@media (max-width: 400px) {
    .dashboard-button {
        font-size: 10pt;
        padding: 5px;
    }
}

/* Project Cards Section */
.project-container {
    display: grid;
    gap: 20px;
    /* 
       The repeat(auto-fit, minmax(200px, 1fr)) ensures that each card
       will be at least 200px wide but can grow to fill available space.
       The number of cards per row adapts based on the container width. 
    */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    justify-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 10px;
}

.project-card {
    border-radius: 5px;
    /* Remove fixed min-width and width so the grid can control sizing */
    /* min-width: 400px; */
    /* width: 560px; */

    width: 100%; /* Allow the card to use the full width of its grid cell */
    overflow: hidden;
    cursor: pointer;
    background-color: #ffffff;
    box-shadow: 0 0 0 1px #212427;
}

.project-card:hover {
    box-shadow: 0 0 0 1.5px #212427;
    transition: all 0.3s ease;

}

.project-logo {
    width: 100%;
    height: 220px;
    object-fit: contain;
    padding: 10px;
}

.project-details {
    padding: 15px;
    text-align: center;
}

.project-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.project-type,
.project-started {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}
