/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Merriweather:wght@300;400;700&display=swap');

/* ---------------- Body ---------------- */
body {
  margin: 0;
  font-family: 'Merriweather', serif;
  background: #ffffff;
  color: #000;
  text-align: center;
}

/* ---------------- Top Navbar ---------------- */
.top-navbar {
  background-color: #8b0000;
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 8px 0;
  font-family: 'Cinzel', serif;
  position: relative;
  z-index: 5;
}

.top-navbar a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.75rem; /* reduced from 0.95rem */
}

.top-navbar a:hover {
  text-decoration: underline;
}

/* ---------------- Header ---------------- */
header {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #8b0000;
  color: white;
  padding: 15px 20px;
  font-family: 'Cinzel', serif;
  gap: 15px;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
  margin: 0; /* remove margin */
}

header .crest {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

header h1 {
  margin: 0; /* remove any default margin */
  font-size: 2.5rem;
  line-height: 1.2;
  color: white;
}

header a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* ---------------- Main Navigation ---------------- */
nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
  font-family: 'Cinzel', serif;
  margin: 0; /* remove top margin that caused white bar */
  flex-wrap: wrap;
  position: relative;
  z-index: 20;
  background-color: #8b0000; /* dark red for visibility */
  padding: 10px 0;
}

nav > div {
  position: relative;
  cursor: pointer;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  padding: 5px 10px;
}

nav a:hover {
  text-decoration: underline; /* optional hover effect */
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #333;
  min-width: 150px;
  font-family: 'Merriweather', serif;
  text-align: left;
  border-radius: 4px;
  overflow: hidden;
}

.dropdown a {
  display: block;
  padding: 10px;
  color: white;
}

nav div:hover .dropdown {
  display: block;
}

.dropdown a:hover {
  background-color: #555;
}

/* ---------------- Remove underline globally ---------------- */
a, a:hover, a:focus, a:active {
  text-decoration: none;
}

/* ---------------- Page Headers ---------------- */
.page-header {
  background: #f2f2f2;
  padding: 60px 20px;
  font-family: 'Cinzel', serif;
}

.page-header h1 {
  margin: 0;
  font-size: 2.8rem;
  color: #8b0000;
}

/* ---------------- Hero Section ---------------- */
.hero {
  padding: 160px 40px;
  color: white;
  font-family: 'Cinzel', serif;
  background-image: url('https://thumbs.dreamstime.com/b/beautiful-park-university-campus-bright-sunny-summer-day-flowers-grass-295432872.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-shadow: 0px 0px 8px #000;
}


.hero h1 {
  margin: 0;
  font-size: 3.2rem;
}

/* ---------------- General Sections ---------------- */
.section {
  padding: 60px 40px;
  font-family: 'Merriweather', serif;
}

.section h2 {
  color: #8b0000;
  font-family: 'Cinzel', serif;
  font-size: 2rem;
}

/* ---------------- Faculty Cards ---------------- */
.faculty-container {
  max-width: 900px;
  margin: 50px auto;
  text-align: left;
  padding: 0 20px;
}

.faculty-card {
  display: flex;
  gap: 20px;
  margin-bottom: 60px;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid #ccc;
}

.faculty-image {
  width: 180px;
  height: 220px;
  background: #ddd;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: #555;
  border: 2px solid #aaa;
}

.faculty-info h2 {
  margin: 0;
  font-family: 'Cinzel', serif;
  color: #8b0000;
}

.faculty-info p {
  margin: 6px 0;
}

/* ---------------- Slideshow (Legacy Section) ---------------- */
.slideshow-container {
  max-width: 900px;
  margin: 40px auto;
  position: relative;
}

.slide {
  display: none;
}

.slide p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ---------------- Legacy Section ---------------- */
.section.legacy {
  position: relative;
  padding: 80px 20px;
  color: #fff;
  background-image: url('https://www.rawpixel.com/image/6016755/photo-image-background-public-domain-free-musical.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section.legacy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.section.legacy > * {
  position: relative;
  z-index: 1;
}

/* ---------------- Footer ---------------- */
footer {
  background: #111;
  color: white;
  padding: 50px 20px;
  font-family: 'Merriweather', serif;
  text-align: center;
  border-top: 4px solid #8b0000;
  margin-top: 80px;
}

.footer-columns {
  display: flex;
  justify-content: center;
  gap: 80px;
  max-width: 900px;
  margin: 0 auto 20px auto;
  text-align: left;
}

.footer-columns div p:first-child {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
  border-bottom: 1px solid #444;
  padding-bottom: 6px;
}

.footer-columns p {
  margin: 6px 0;
}

footer a {
  color: white;
  text-decoration: none;
}

footer a:hover {
  color: #cccccc;
}

footer a:visited {
  color: white;
}

/* ---------------- Responsive ---------------- */
@media screen and (max-width: 600px) {
  header .crest {
    width: 70px;
    height: 70px;
  }

  header h1 {
    font-size: 1.8rem;
  }

  nav {
    gap: 10px;
  }

  .faculty-card {
    flex-direction: column;
    align-items: center;
  }

  .faculty-image {
    margin-bottom: 15px;
  }

  .faculty-info {
    text-align: center;
  }

  .top-navbar {
    gap: 15px;
  }
}
