/* Global Attributes */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
}

header, footer {
    background-color: #222;
    color: #fff;
    padding: 1rem;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

nav a {
    color: #fff;
    text-decoration: none;
}

nav a:hover,
nav .active {
    text-decoration: underline;
}

main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h1, h2 {
    color: #111;
}

/* Flex container for each school */
.school {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.logo-container {
    width: 200px;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.school-logo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}
/* Responsive: stack logo above text on mobile */
@media (max-width: 600px) {
    .school {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-container {
        width: 50px;    /* smaller on mobile */
        margin-bottom: 0.5rem;
    }
}

/* Governs Projects */
.projects-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.project-card {
    display: flex;
    flex-direction: column;   /* stack image, title, description, link vertically */
    justify-content: center;  /* vertical centering */
    align-items: center;      /* horizontal centering */
    border: 1px solid #ccc;
    padding: 15px;
    width: 320px;             /* slightly larger to fit image + text */
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    text-align: center;       /* centers text inside the card */
}

.project-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
}

.project-card h2 {
  font-size: 1.2em;
  margin: 10px 0;
}

.project-card p {
  font-size: 0.95em;
  margin-bottom: 10px;
}

.project-card a {
  color: #0066cc;
  text-decoration: none;
  font-weight: bold;
}
.project-card a:hover {
  text-decoration: underline;
}

.project-card img {
    max-width: 288px;   /* ~3 inches */
    max-height: 288px;  /* ~3 inches */
    width: auto;        /* scale width proportionally */
    height: auto;       /* scale height proportionally */
    display: block;     /* removes extra space under image */
    margin: 0 auto;     /* centers image if smaller than container */
    border-radius: 5px; /* optional styling */
}