/* Website 3 — formal university portal (maroon accent, utility strip, serif masthead) */
:root {
  --w3-navy: #1e3a5f;
  --w3-navy-deep: #0f172a;
  --w3-maroon: #7f1d1d;
  --w3-maroon-light: #991b1b;
  --w3-paper: #faf9f7;
}

body.site-w3 {
  font-family: "Libre Franklin", system-ui, sans-serif;
  background: var(--w3-paper);
  color: #1c1917;
}

.w3-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--w3-paper);
  display: flex;
  align-items: center;
  justify-content: center;
}

.w3-mega {
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}
.w3-mega a {
  color: #374151;
  text-decoration: none;
  font-weight: 600;
}
.w3-mega a:hover { color: var(--w3-maroon); }

.w3-maroonstrip {
  background: linear-gradient(90deg, var(--w3-maroon), var(--w3-maroon-light));
}

.w3-header {
  background: #fff;
  box-shadow: 0 2px 0 rgba(127,29,29,0.15);
}
.w3-navbar { background: #fff !important; border-bottom: 1px solid #e7e5e4; }
.w3-logo { border-radius: 4px; }
.w3-univ-name {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--w3-navy-deep);
  letter-spacing: -0.02em;
}
.w3-univ-sub { font-size: 0.75rem; color: #78716c; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; }

.w3-navlist .nav-link {
  color: #292524 !important;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.55rem 0.85rem !important;
  border-radius: 2px;
}
.w3-navlist .nav-link:hover,
.w3-navlist .nav-link.active {
  background: rgba(127,29,29,0.08);
  color: var(--w3-maroon) !important;
}

.w3-main .hero-slider .carousel-item { height: 58vh; min-height: 320px; }
.w3-main .hero-slider .carousel-inner { border-bottom: 4px solid var(--w3-maroon); }
.w3-main .hero-slider .carousel-inner img { object-fit: cover; height: 100%; width: 100%; }
.w3-main .carousel-caption {
  background: rgba(15, 23, 42, 0.82);
  left: 0;
  right: auto;
  bottom: 12%;
  max-width: min(560px, 90vw);
  padding: 1.5rem 2rem;
  text-align: left;
}
.w3-main .carousel-caption h5 {
  font-family: "Newsreader", serif;
  font-weight: 700;
}

.w3-news-panel {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 2px;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(30,58,95,0.06);
}

.w3-section-title {
  font-family: "Newsreader", serif;
  font-weight: 700;
  color: var(--w3-navy-deep);
  border-bottom: 2px solid var(--w3-maroon);
  display: inline-block;
  padding-bottom: 0.35rem;
  margin-bottom: 1rem;
}

.w3-stat {
  text-align: center;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 2px;
}
.w3-stat strong {
  display: block;
  font-size: 1.75rem;
  color: var(--w3-maroon);
  font-family: "Newsreader", serif;
}
.w3-stat span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: #57534e; }

.w3-footer-top {
  background: linear-gradient(180deg, var(--w3-navy-deep), var(--w3-navy));
  color: #e7e5e4;
}
.w3-foot-links a {
  color: #d6d3d1;
  text-decoration: none;
}
.w3-foot-links a:hover { color: #fff; text-decoration: underline; }
.w3-footer-bottom {
  background: #0c1222;
  color: #a8a29e;
}

.w3-back-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 44px;
  height: 44px;
  background: var(--w3-maroon);
  color: #fff;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s;
  z-index: 1000;
}
.w3-back-top.show { opacity: 1; visibility: visible; }
.w3-back-top:hover { background: var(--w3-navy); color: #fff; }

/* Homepage middle sections — university portal look */
.site-w3 .w3-staff-line:hover .row {
  background: rgba(127, 29, 29, 0.04);
}
.site-w3 .w3-staff-thumb {
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid #e7e5e4;
}
.site-w3 .w3-staff-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.site-w3 .w3-msg-block {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-left: 4px solid var(--w3-maroon);
  padding: 1.25rem;
  box-shadow: 0 10px 28px rgba(30, 58, 95, 0.06);
}
.site-w3 .w3-tst-face {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 3px solid var(--w3-maroon);
}

/* Staff listing page (/staff) */
.staff-img {
  width: 150px;
  height: 150px;
  max-width: min(100%, 150px);
  margin-left: auto;
  margin-right: auto;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 5px solid rgba(127, 29, 29, 0.12);
}
.staff-img img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  display: block;
}
