/* Base layout */
body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #222;
}

/* Centered column */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 0;
    background: white;
    justify-content: space-between; /* Makes space between title/nav and logo */
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    margin: 0;
    font-size: 1.8rem;
}

.site-title a {
    text-decoration: none;
    color: #000;
}

.site-nav a {
    margin-right: 20px;
    text-decoration: none;
    color: #0057b7;
    font-weight: 500;
}

.site-nav a:hover {
    text-decoration: underline;
}

/* Make header items appear in one horizontal row */
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center; /* vertically center the logo with the title */
}

/* Stack title above the nav */
.left-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* left-align content */
}

/* Adjust the nav placement */
.site-nav {
    margin-top: 8px;
}

/* Logo size */
.site-logo img {
    height: 50px;  /* adjust */
    width: auto;
}

/* Main content */
.main-content {
    padding: 40px 0;
}

h1,
h2,
h3,
h4 {
    margin-top: 1.4em;
    margin-bottom: 0.6em;
    font-weight: 600;
}

p {
    margin: 0.6em 0;
}

ul {
    margin: 0.6em 0;
    padding-left: 22px;
}

/* Footer */
.site-footer {
    border-top: 1px solid #e5e5e5;
    margin-top: 40px;
    padding: 20px 0;
    background: white;
    font-size: 0.9rem;
    color: #555;
}

.site-footer p {
    margin: 4px 0;
}

/* Rotating hero images */
.hero-rotator {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 380px;
  margin: 0 auto 40px auto;
  overflow: hidden;
  border-radius: 12px;
}

.hero-image {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fading effect */
.fade {
  opacity: 0;
}

.fade.show {
  opacity: 1;
}

/* Responsive tweaks */
@media (max-width: 600px) {
    .site-nav a {
        margin-right: 12px;
    }

    .site-title {
        font-size: 1.5rem;
    }
}

.hero-caption {
  position: absolute;
  bottom: 15px;
  left: 20px;
  right: 20px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 10px 15px;
  font-size: 1rem;
  border-radius: 6px;
  font-weight: 500;

  opacity: 0;                /* start hidden */
  transition: opacity 1s ease-in-out 0.5s; /* fade in with 0.5s delay */
}

.hero-image.show .hero-caption {
  opacity: 1;
}

.news-timeline {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.news-timeline h2 {
  text-align: center;
  margin-bottom: 2rem;
}

/* News */

.news {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.news h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.news ul {
  list-style: disc inside;
  padding-left: 0;
}

.news li {
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

/* Faculty */

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.faculty-item {
  text-align: center;
}

.faculty-item img {
  width: 159px;
  height: 176px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.faculty-item .caption {
  display: block;
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.faculty-item .caption a {
  text-decoration: none;
  color: #007acc;
}

.faculty-item .description {
  display: block;
  font-size: 0.95rem;
  color: #333;
}
