/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html, body {
  height: 100%;
  background-color: #f9f9f9;
}

/* Layout */
body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Header */
.header {
  background-color: #222;
  padding: 20px 10px 0;
  position: relative;
}

/* Header Inner Content */
.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.logo {
  width: 70px;
  position: absolute;
  left: 20px;
  top: 10px;
  border-radius: 5px;
  z-index: 2;
}

/* Title */
.school-title {
  color: white;
  font-size: 30px;
  text-align: center;
  padding: 10px 50px 0;
  margin-top: 10px;
}

/* Navigation */
nav.nav-links {
  background-color: #222;
  text-align: center;
  padding: 10px 0;
}

.nav-links ul {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.nav-links ul li {
  display: inline-block;
  margin: 0 12px;
  position: relative;
}

.nav-links ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  padding: 6px;
}

/* Red underline on hover */
.nav-links ul li::after {
  content: '';
  width: 0%;
  height: 2px;
  background: red;
  display: block;
  margin: auto;
  transition: 0.3s;
}

.nav-links ul li:hover::after {
  width: 100%;
}

/* Faculty Section */
.faculty-section {
  padding: 40px 20px;
  text-align: center;
}

.faculty-heading {
  font-size: 2em;
  color: #302851;
  margin-bottom: 30px;
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  justify-items: center;
}

.faculty-box {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 20px;
  width: 220px;
  height: 300px; /* slightly increased */
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}


.faculty-box:hover {
  background-color: #d8ebf3;
  transform: scale(1.05);
}

.faculty-box img {
  width: 130px;
  height: 170px;
  object-fit: contain; /* show full image without cropping */
  border-radius: 50%;   /* makes the image oval */
  margin-bottom: 10px;
  background-color: #fff; /* optional background if image is small */
  padding: 5px;
}

.faculty-box h3 {
  font-size: 1rem;
  color: #302851;
  line-height: 1.4;
}
/* Category Section (Faculty Grid) */
.category {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  padding: 30px 10px;
  justify-items: center;
  align-items: center;
  text-align: center;
}

.category .box {
  padding: 15px;
  background-color: #f5f5f5;
  border-radius: 10px;
  transition: 0.3s;
  text-decoration: none;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 220px;
}

.category .box:hover {
  background-color: #9ec7d5;
  transform: scale(1.05);
}

.category .box img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
}

.category .box h3 {
  color: #302851;
  font-size: 1.1rem;
  margin-top: 5px;
}
/* Footer */
footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 15px 0;
  font-size: 14px;
}

/* Mobile Navigation Icons */
.menu-icon,
.close-icon {
  display: none;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
  .menu-icon {
    display: block;
    font-size: 28px;
    color: white;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 10;
    cursor: pointer;
  }

  .close-icon {
    display: block;
    font-size: 26px;
    color: white;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    cursor: pointer;
  }

  nav.nav-links {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background-color: #222;
    transition: right 0.3s ease;
    padding-top: 60px;
    z-index: 9;
    text-align: left;
  }

  .nav-links ul li {
    display: block;
    margin: 20px 30px;
  }

  .logo {
    position: static;
    margin-bottom: 10px;
  }

  .school-title {
    font-size: 20px;
    padding: 0 40px;
    text-align: center;
  }
  .category {
    grid-template-columns: repeat(2, 1fr); /* 2 photos per row on mobile */
  }
}
