body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: url('../images/faculty-bg.jpg') no-repeat center center fixed;
  background-size: cover;
}

.slideshow-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  
}

.faculty-slide {
  display: none;
  width: 100%;
  height: 100%;
  padding: 2vh 5vw;
  box-sizing: border-box;
}

.slide-content {
  display: flex;
  justify-content: space-between;
  height: 100%;
  align-items: center;
  gap: 3vw;
}

.slide-left {
  flex: 1;
  padding: 2vh;
  font-size: 1.8vw;
}

.faculty-name {
  color: #ac1f24;
  font-size: 3.5vw;
  margin-bottom: 1vh;
}

.faculty-designation {
  font-size: 2.5vw;
  margin-bottom: 1vh;
}

.special-designation {
  font-size: 2vw;
  margin-bottom: 2vh;
  color: #555;
}

.research-interests h3 {
  font-size: 2.2vw;
  margin-top: 2vh;
  margin-bottom: 1vh;
}

.research-interests ul {
  padding-left: 1.2em;
  font-size: 1.8vw;
}

.slide-right {
  flex-shrink: 0;
  width: 30vw;
  text-align: center;
}

.faculty-photo {
  width: 100%;
  max-height: 50vh;
  object-fit: contain;
  margin-bottom: 2vh;
}

.qr-code {
  width: 8vw;
  height: 8vw;
  margin-top: 1vh;
}

.qr-section {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1vw;
  margin-top: 2vh;
}


.qr-logo-container {
  display: flex;
  align-items: center;
  gap: 1vw;
}

.buet-logo {
  height: 12vw;
  width: auto;
  max-width: 20vw;
  object-fit: contain;
  filter: brightness(1.1);
  opacity: 0.95;
}

.qr-code {
  width: 8vw;
  height: 8vw;
  border: 2px solid #fff;
  border-radius: 10px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .qr-code,
  .buet-logo {
    height: 20vw;
    width: auto;
  }
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: #333;
  font-weight: bold;
  font-size: 3vw;
  transition: 0.6s ease;
  user-select: none;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  z-index: 10;
  opacity: 10%;
}

.next:hover, .prev:hover {
  opacity: 100%;
}

.next {
  right: 1vw;
}

.prev {
  left: 1vw;
}

.on-leave {
  color: rgb(16, 94, 249);
  font-weight: bold;
  margin-left: 1vw;
}

.fade {
  animation-name: fade;
  animation-duration: 1s;
}

@keyframes fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}
