/* Styles for research.html projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.project-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-header {
    margin-bottom: 10px;
    text-align: center;
}

.funding-logo {
    width: 80px; /* Double the size */
    height: auto;
    margin-top: 10px;
}

.project-content h3 {
    margin: 0;
    color: #005b96;
}

.project-content .expand-btn {
    background: none;
    border: 1px solid #005b96;
    color: #005b96;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.9em;
    outline: none;
    border-radius: 5px;
    margin-top: 20px;
    align-self: center;
}

.project-content .expand-btn:hover {
    background: #005b96;
    color: #ffffff;
}

.expanded-project {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.expanded-content {
    max-width: 1000px;
    margin: auto;
}

.expanded-content h2 {
    color: #005b96;
}

.expanded-content p {
    margin: 10px 0;
    line-height: 1.6;
}

.expanded-content a {
    color: #005b96;
    text-decoration: none;
}

.expanded-content a:hover {
    text-decoration: underline;
}

.collapse-btn {
    display: block;
    margin: 20px auto 0;
    background: none;
    border: 1px solid #005b96;
    color: #005b96;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.9em;
    outline: none;
    border-radius: 5px;
}

.collapse-btn:hover {
    background: #005b96;
    color: #ffffff;
}

/* Responsive Styles for research.html */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    .project-details {
        position: relative;
    }
}