/*
 * CSS for the Collaborators Page
 * Save this content in a file named "styles.css" in your project directory.
*/

/* Main grid container for collaborators */
.collaborator-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* 1 column on mobile */
    gap: 2rem;
}

/* The individual collaborator card */
.collaborator-card {
    background-color: #ffffff;
    border-radius: 0.5rem; /* 8px */
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    padding: 1.5rem; /* 24px */
    text-align: left;
    height: 100%; /* Make cards in the same row equal height */
}

.collaborator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Collaborator image */
.collaborator-card img {
    width: 100%;
    height: 256px; /* 16rem */
    object-fit: cover;
    border-radius: 0.375rem; /* 6px */
    margin-bottom: 1rem;
}

/* Collaborator name (h3 heading) */
.collaborator-card h3 {
    font-family: 'Lora', serif;
    font-size: 1.25rem; /* 20px */
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.25rem;
}

/* Link styling for the name */
.collaborator-card h3 a {
    color: #111827; /* dark gray */
    text-decoration: none;
    transition: color 0.2s;
}

.collaborator-card h3 a:hover {
    color: #1d4ed8; /* blue-700 */
}

/* Collaborator affiliation (paragraph after the h3) */
.collaborator-card h3 + p {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    color: #1d4ed8; /* blue-700 */
    margin-top: 0;
    margin-bottom: 0.75rem;
}

/* Collaborator description (any other paragraph) */
.collaborator-card p {
    font-family: 'Lora', sans-serif;
    font-size: 1rem; /* 16px */
    color: #4b5563; /* gray-600 */
    line-height: 1.6;
}


/* Responsive Grid Layout */
/* On small screens (sm) and up, use 2 columns */
@media (min-width: 640px) {
    .collaborator-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* On large screens (lg) and up, use 3 columns */
@media (min-width: 1024px) {
    .collaborator-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* On extra-large screens (xl) and up, use 4 columns */
@media (min-width: 1280px) {
    .collaborator-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Add this to the end of your styles.css file */

.page-header {
  text-align: center;
  margin-bottom: 3rem; /* Adds some nice space below the header */
}
