:root {
  --klu-maroon: #97443e;
  --klu-maroon-dark: #7a3731;
  --section-bg: #fff9f7;
  --main-bg: #f4eeea;
  --glass-white: rgba(255,255,255,0.74);
  --text-light: #fff;
  --text-dark: #26211f;
  --highlight: #ffeecb;
}

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  background: var(--main-bg);
  color: var(--text-dark);
  transition: background 0.3s, color 0.3s;
}

.top-header {
  background: var(--klu-maroon);
  padding-bottom: 0.6em;
}

.header-logos-titles {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3em;
  padding: 1.2em 2em 0.2em 2em;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 1.4em;
}
.header-logo {
  height: 56px;
  width: auto;
  display: block;
}
.main-title-block {
  display: flex;
  flex-direction: column;
}
.main-title {
  font-size: 2.2em;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  line-height: 1.05;
}
.main-subtitle {
  color: #ffeecb;
  font-size: 1.05em;
  font-weight: 500;
  margin-top: 0.25em;
}

.main-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 2em 0.4em 2em;
  background: var(--klu-maroon);
}
.main-navbar ul {
  display: flex;
  gap: 2em;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-navbar li a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 600;
  transition: color 0.2s, border-bottom 0.2s;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.main-navbar li a:hover, .main-navbar li a.active {
  color: var(--highlight);
  border-bottom: 2px solid var(--highlight);
}
#theme-toggle {
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 1.6em;
  cursor: pointer;
  margin-left: 2em;
  transition: color 0.2s;
}
#theme-toggle:focus {
  outline: 2px solid var(--highlight);
}

/* Faculty grid styles */
.sections-content {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.2em 2em;
}
.section {
  background: var(--glass-white);
  border-radius: 18px;
  box-shadow: 0 2.5px 18px #97443e18;
  backdrop-filter: blur(7.5px);
  padding: 2.6em 2.5em 2.3em 2.55em;
  margin-bottom: 2em;
}
.section h2 {
  color: var(--klu-maroon-dark);
  font-size: 2.2em;
  margin-bottom: 1.3em;
}
.faculty-grid {
  display: flex;
  gap: 3em 2.2em;
  flex-wrap: wrap;
  justify-content: center;
}
.faculty-tile {
  background: rgba(255,255,255,.95);
  border-radius: 15px;
  box-shadow: 0 4px 28px #97443e23;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 260px;
  max-width: 350px;
  padding: 2.2em 1.5em 2.3em 1.5em;
  margin: 1em 0;
  transition: box-shadow .18s, transform .12s;
}
.faculty-tile:hover {
  box-shadow: 0 12px 38px #97443e33;
  transform: translateY(-5px) scale(1.04);
}
.faculty-tile img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 5px 26px #97443e26;
  margin-bottom: 1.25em;
  background: #eaeaea;
}
.faculty-info {
  margin-bottom: 0.9em;
  font-size: 1.25em;
  text-align: center;
}
.faculty-info b {
  font-weight: bold;
  color: var(--klu-maroon-dark);
  font-size: 1.12em;
}
.faculty-links {
  display: flex;
  gap: 1.3em;
  margin-top: 0.7em;
  font-size: 1.18em;
}
.faculty-links a {
  color: var(--klu-maroon-dark);
  transition: color .18s;
}
.faculty-links a:hover {
  color: var(--klu-maroon);
}
.footer-bar {
  margin-top: 3em;
  background: var(--klu-maroon-dark);
  color: #f7e7db;
  text-align: center;
  padding: 1.3em 0 .8em;
  font-size: 1.06em;
}

/* DARK MODE */
body.dark-mode {
  background: #26211f;
  color: #eee;
}
body.dark-mode .top-header,
body.dark-mode .main-navbar {
  background: #26211f;
}
body.dark-mode .main-title {
  color: #ffeecb;
}
body.dark-mode .main-subtitle {
  color: #ffeecb;
}
body.dark-mode .main-navbar li a {
  color: #ffeecb;
}
body.dark-mode .main-navbar li a:hover,
body.dark-mode .main-navbar li a.active {
  color: #fff;
  border-bottom: 2px solid #ffeecb;
}
body.dark-mode #theme-toggle {
  color: #ffeecb;
}
body.dark-mode .section {
  background: rgba(30,30,30, 0.92);
}
body.dark-mode .section h2,
body.dark-mode .faculty-info b,
body.dark-mode .faculty-links a {
  color: #ffeecb;
}
body.dark-mode .faculty-tile {
  background: rgba(50,50,50,.92);
}
body.dark-mode .faculty-tile img {
  background: #333;
}
body.dark-mode .footer-bar {
  background: #191411;
  color: #ffeecb;
}

/* Responsive for header/faculty */
@media (max-width: 1200px) {
  .faculty-grid { gap: 2em 1.1em; }
  .faculty-tile img { width: 200px; height: 200px; }
}
@media (max-width: 900px) {
  .header-logos-titles { flex-direction: column; gap: 1.3em; text-align: center; }
  .main-title { font-size: 1.3em; }
  .main-navbar { padding: 1em 0.6em 0.5em 0.6em; }
  .faculty-grid { gap: 1em 0.7em; }
  .faculty-tile { min-width: 84vw; max-width: 96vw; }
  .faculty-tile img { width: 120px; height: 120px; }
}
@media (max-width: 540px) {
  .faculty-tile img { width: 68vw; height: 68vw; min-width: 95px; }
  .faculty-tile { min-width: 98vw; }
}



#scrollUpBtn {
  display: none;
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 120;
  background: var(--klu-maroon, #97443e);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 54px;
  height: 54px;
  font-size: 2em;
  cursor: pointer;
  box-shadow: 0 2px 18px #97443e1a;
  transition: background 0.18s, transform 0.15s;
}
#scrollUpBtn:hover {
  background: var(--klu-maroon-dark, #7a3731);
  transform: scale(1.13);
}

#scrollUpBtn {
  /* Example: update with a new color */
  background: #5c3d33;      /* Rich brown */
  /* or */
  /* background: #eebe5d;   /* Accent yellow */
  /* or */
  /* background: #3e74b8;   /* Pleasant blue */
  color: #fff;
  /* rest of your styles */
}
#scrollUpBtn:hover {
  background: #985e4a;   /* Darker shade for hover */
}

#theme-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--highlight, #ffeecb);
  border-radius: 50%;
}

/* For tablets and large screens */
@media (max-width: 1200px) {
  .faculty-grid { gap: 2em 1.1em; }
  .faculty-tile img { width: 200px; height: 200px; }
}

/* For mobile screens */
@media (max-width: 900px) {
  .header-logos-titles { flex-direction: column; gap: 1.3em; text-align: center; }
  .main-title { font-size: 1.3em; }
  .main-navbar { padding: 1em 0.6em 0.5em 0.6em; }
  .faculty-grid { gap: 1em 0.7em; }
  .faculty-tile { min-width: 84vw; max-width: 96vw; }
  .faculty-tile img { width: 120px; height: 120px; }
}

/* For very small screens */
@media (max-width: 540px) {
  .faculty-tile img { width: 68vw; height: 68vw; min-width: 95px; }
  .faculty-tile { min-width: 98vw; }
}


/*
  Copyright © 2025 Adhiraj Bhagawati. All rights reserved.
*/