/* Shared page enhancements — About / Services / Guides / Contact */
.lsu-page-hero {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  color: #fff;
  margin: -20px 0 0;
}
.lsu-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16,1,2,.92) 8%, rgba(16,1,2,.45) 55%, rgba(16,1,2,.25));
}
.lsu-page-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 2rem;
}
.lsu-page-kicker {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  color: #ffcc00;
  font-weight: 700;
  margin: 0 0 .45rem;
}
.lsu-page-hero h1 {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin: 0 0 .4rem;
  line-height: 1.1;
}
.lsu-page-hero p {
  margin: 0;
  max-width: 40rem;
  color: rgba(255,255,255,.84);
  line-height: 1.5;
}

.lsu-page-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3.5rem;
}

.lsu-card {
  background: #fff;
  border: 1px solid rgba(16,1,2,.07);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(16,1,2,.07);
  padding: 1.35rem 1.4rem;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.lsu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(16,1,2,.12);
}
.lsu-card h3, .lsu-card h4 {
  color: #100102;
  font-weight: 700;
  margin-bottom: .65rem;
}
.lsu-card p, .lsu-card li {
  color: #4b4440;
  line-height: 1.55;
}
.lsu-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(204,0,20,.08);
  color: #cc0014;
  font-size: 1.35rem;
  margin-bottom: .85rem;
}

.lsu-loan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 1.75rem;
}
.lsu-loan-card {
  background: linear-gradient(160deg, #2a1510, #100102);
  color: #f3e6c8;
  border-radius: 16px;
  padding: 1.2rem 1.25rem;
  box-shadow: 0 14px 30px rgba(16,1,2,.18);
}
.lsu-loan-card h4 {
  color: #ffcc00;
  font-size: 1.05rem;
  margin: 0 0 .55rem;
}
.lsu-loan-card p {
  margin: 0;
  color: rgba(243,230,200,.9);
  font-size: .92rem;
  line-height: 1.5;
}

/* Faculty guides polish */
.faculty-header {
  min-height: 260px !important;
  height: auto !important;
  align-items: flex-end !important;
  padding-bottom: 2rem;
}
.faculty-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem) !important;
  max-width: 900px;
  padding: 0 1rem;
}
.librarian-card, .resource-card {
  border-radius: 18px !important;
  box-shadow: 0 14px 32px rgba(16,1,2,.08) !important;
  border: 1px solid rgba(16,1,2,.06);
}
.librarian-photo {
  width: 160px !important;
  height: 160px !important;
  max-width: 100% !important;
  border-width: 4px !important;
  border-color: #cc0014 !important;
  box-shadow: 0 10px 24px rgba(204,0,20,.2);
}
.chat-btn, .nav-pills .nav-link.active {
  background: #cc0014 !important;
}
.chat-btn:hover {
  background: #100102 !important;
}

/* Contact team — responsive grid, all visible on mobile */
.lsu-team-section {
  padding: 2.5rem 0 3.5rem;
  background:
    radial-gradient(800px 300px at 90% 0%, rgba(204,0,20,.08), transparent 55%),
    radial-gradient(600px 240px at 10% 100%, rgba(255,204,0,.08), transparent 50%),
    #f7f1e6;
}
.lsu-team-head {
  text-align: center;
  margin-bottom: 1.75rem;
}
.lsu-team-head h2 {
  font-weight: 800;
  color: #100102;
  margin-bottom: .35rem;
}
.lsu-team-head p { color: #6b625c; margin: 0; }

.lsu-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.15rem;
}

.lsu-team-card {
  --rise: 28px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(16,1,2,.07);
  box-shadow: 0 12px 28px rgba(16,1,2,.08);
  padding: 1.25rem 1.1rem 1.35rem;
  text-align: center;
  opacity: 0;
  transform: translate3d(0, var(--rise), 0) scale(.96);
  filter: blur(6px);
  transition:
    opacity .65s cubic-bezier(.22,1,.36,1),
    transform .65s cubic-bezier(.22,1,.36,1),
    filter .65s cubic-bezier(.22,1,.36,1),
    box-shadow .3s ease;
  transition-delay: calc(var(--i, 0) * 55ms);
  will-change: transform, opacity, filter;
}
.lsu-team-card.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}
.lsu-team-card:hover {
  transform: translate3d(0, -8px, 0) scale(1);
  box-shadow: 0 22px 44px rgba(16,1,2,.14);
}
.lsu-team-card.is-in:hover {
  transform: translate3d(0, -8px, 0) scale(1);
}

.lsu-team-photo-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 1rem;
  max-width: 100%;
}
.lsu-team-photo-wrap::before,
.lsu-team-photo-wrap::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  pointer-events: none;
}
.lsu-team-photo-wrap::before {
  background: conic-gradient(from 0deg, #cc0014, #ffcc00, #cc0014, transparent 65%);
  opacity: .55;
  animation: lsuRingSpin 6s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
}
.lsu-team-photo-wrap::after {
  inset: -2px;
  box-shadow: 0 14px 28px rgba(16,1,2,.18);
  border-radius: 50%;
}
.lsu-team-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 4px solid #fff;
  background: #ddd;
  position: relative;
  z-index: 1;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.lsu-team-card:hover .lsu-team-photo {
  transform: scale(1.06);
}
.lsu-team-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #100102;
  margin: 0 0 .35rem;
  text-transform: none;
  letter-spacing: 0;
}
.lsu-team-role {
  display: block;
  color: #cc0014;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .85rem;
  min-height: 2.6em;
  line-height: 1.35;
}
.lsu-team-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: center;
  align-items: center;
}
.lsu-team-mail {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: linear-gradient(135deg, #cc0014, #a00012);
  color: #fff !important;
  text-decoration: none !important;
  padding: .45rem .85rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(204,0,20,.25);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.lsu-team-mail:hover {
  background: #100102;
  color: #fff !important;
}
.lsu-team-ext {
  display: inline-block;
  background: #100102;
  color: #f3e6c8;
  font-size: .78rem;
  font-weight: 600;
  padding: .4rem .7rem;
  border-radius: 999px;
}

@keyframes lsuRingSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 991.98px) {
  .lsu-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .lsu-team-grid { grid-template-columns: 1fr; }
  .lsu-team-photo-wrap { width: 168px; height: 168px; }
  .lsu-page-hero { min-height: 200px; }
  .lsu-team-card { --rise: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .lsu-team-card {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  .lsu-team-photo-wrap::before { animation: none; }
}



/* ===== Faculty guides — enhanced layout ===== */
.faculty-header {
  min-height: 280px !important;
  height: auto !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  padding: 0 0 2.25rem !important;
  position: relative;
  overflow: hidden;
}
.faculty-header::before {
  background: linear-gradient(to top, rgba(16,1,2,.92) 5%, rgba(16,1,2,.45) 55%, rgba(16,1,2,.28)) !important;
}
.faculty-header h1 {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto !important;
  padding: 0 1.25rem !important;
  text-align: left !important;
  font-size: clamp(1.7rem, 3.8vw, 2.6rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  text-shadow: 0 10px 30px rgba(0,0,0,.35) !important;
}
.faculty-shell {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3.5rem;
}
.faculty-tabs.nav-pills {
  gap: .35rem;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid rgba(16,1,2,.07);
  border-radius: 999px;
  padding: .4rem;
  box-shadow: 0 10px 24px rgba(16,1,2,.06);
  margin-bottom: 1.35rem !important;
}
.faculty-tabs .nav-link {
  border-radius: 999px !important;
  margin: 0 !important;
  font-weight: 600;
  color: #3a3330 !important;
  padding: .55rem 1.15rem !important;
}
.faculty-tabs .nav-link.active {
  background: #cc0014 !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(204,0,20,.28);
}
.faculty-intro {
  background: #fff;
  border: 1px solid rgba(16,1,2,.07);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(16,1,2,.07);
  padding: 1.4rem 1.5rem;
}
.faculty-intro h4 {
  font-weight: 800;
  color: #100102;
  margin-bottom: .85rem;
}
.faculty-intro p {
  color: #4b4440;
  line-height: 1.6;
  margin-bottom: .75rem;
}
.faculty-intro p:last-child { margin-bottom: 0; }

.librarian-card {
  background: linear-gradient(180deg, #fff 0%, #faf7f2 100%) !important;
  border-radius: 22px !important;
  border: 1px solid rgba(16,1,2,.07);
  box-shadow: 0 18px 40px rgba(16,1,2,.1) !important;
  padding: 1.6rem 1.25rem 1.5rem !important;
  position: sticky;
  top: 1rem;
}
.librarian-photo {
  width: 168px !important;
  height: 168px !important;
  max-width: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 4px solid #fff !important;
  box-shadow:
    0 0 0 3px rgba(204,0,20,.4),
    0 14px 28px rgba(16,1,2,.18) !important;
  margin: 0 auto 1rem !important;
}
.librarian-card h4 {
  font-weight: 800;
  color: #100102;
  margin-bottom: .25rem;
}
.librarian-card .text-muted {
  color: #cc0014 !important;
  font-weight: 600;
}
.resource-card {
  border-radius: 18px !important;
  border: 1px solid rgba(16,1,2,.06);
  border-left: 4px solid #cc0014 !important;
  box-shadow: 0 14px 32px rgba(16,1,2,.08) !important;
  height: 100%;
}
.manual-item, .training-item {
  border-radius: 12px !important;
  border: 1px solid rgba(16,1,2,.05);
}
.chat-btn {
  background: #cc0014 !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 22px rgba(204,0,20,.25);
}
.chat-btn:hover {
  background: #100102 !important;
}

@media (max-width: 991.98px) {
  .librarian-card { position: static; margin-top: 1rem; }
  .faculty-tabs.nav-pills { border-radius: 18px; }
}

/* ===== Library Services pop-in (enhanced AOS companion) ===== */
.lsu-pop {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(.96);
  filter: blur(5px);
  transition:
    opacity .7s cubic-bezier(.22,1,.36,1),
    transform .7s cubic-bezier(.22,1,.36,1),
    filter .7s cubic-bezier(.22,1,.36,1),
    box-shadow .3s ease;
  will-change: transform, opacity, filter;
}
.lsu-pop.is-in,
[data-aos].aos-animate.lsu-pop,
.aos-animate .lsu-pop {
  opacity: 1;
  transform: none;
  filter: none;
}
.lsu-service-card {
  background: #fff;
  border: 1px solid rgba(16,1,2,.07);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(16,1,2,.07);
  padding: 1.35rem 1.4rem;
  height: 100%;
  transition: transform .28s ease, box-shadow .28s ease;
}
.lsu-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px rgba(16,1,2,.14);
}
.lsu-service-card .lsu-card-icon {
  margin-bottom: .9rem;
}
.lsu-services-band {
  margin: 1.5rem -1.25rem 0;
  padding: 2rem 1.25rem 2.25rem;
  background:
    radial-gradient(700px 260px at 85% 0%, rgba(204,0,20,.08), transparent 55%),
    #100102;
  border-radius: 24px;
  color: #f3e6c8;
}
.lsu-services-band .lsu-page-kicker { color: #ffcc00; }
.lsu-services-band h3 { color: #fff; }
.lsu-services-band .lsu-service-card {
  background: rgba(255,255,255,.96);
  color: #100102;
}
.lsu-services-band .lsu-service-card h4 { color: #100102; }
.lsu-services-band .lsu-service-card p { color: #4b4440; }

@media (prefers-reduced-motion: reduce) {
  .lsu-pop { opacity: 1; transform: none; filter: none; transition: none; }
}


/* ===== Past Exam Papers ===== */
.lsu-exam-wrap { padding-top: 1.25rem; }
.lsu-exam-alert {
  border-radius: 14px;
  padding: .95rem 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}
.lsu-exam-alert--ok { background: #e8f8ef; color: #0f5132; border: 1px solid #b7ebc9; }
.lsu-exam-alert--err { background: #fdebec; color: #842029; border: 1px solid #f1aeb5; }

.lsu-exam-auth {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #fff7e8, #fff);
  border: 1px solid rgba(204,0,20,.18);
  border-left: 5px solid #cc0014;
  border-radius: 18px;
  padding: 1.2rem 1.35rem;
  box-shadow: 0 12px 28px rgba(16,1,2,.06);
  margin-bottom: 1.25rem;
}
.lsu-exam-auth.is-signed-in {
  background: linear-gradient(135deg, #eefbf2, #fff);
  border-color: rgba(25,135,84,.2);
  border-left-color: #198754;
}
.lsu-exam-auth-copy h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #100102;
  margin: .35rem 0 .25rem;
}
.lsu-exam-auth-copy p { margin: 0; color: #5b534e; line-height: 1.45; max-width: 46rem; }
.lsu-exam-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(25,135,84,.12);
  color: #0f5132;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .28rem .65rem;
  border-radius: 999px;
}
.lsu-exam-auth-badge--warn {
  background: rgba(204,0,20,.1);
  color: #cc0014;
}

.lsu-exam-panel {
  background: #fff;
  border: 1px solid rgba(16,1,2,.07);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(16,1,2,.07);
  padding: 1.25rem 1.3rem 1.4rem;
  margin-bottom: 1.25rem;
}
.lsu-exam-panel-head {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.lsu-exam-panel-head h3 {
  margin: 0;
  font-weight: 800;
  color: #100102;
  font-size: 1.25rem;
}
.lsu-exam-hint { margin: 0; color: #6b625c; font-size: .92rem; }

.lsu-exam-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}
.lsu-exam-field label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #6b625c;
  margin-bottom: .35rem;
}
.lsu-exam-field .form-control {
  border-radius: 12px;
  border: 1px solid rgba(16,1,2,.12);
  min-height: 46px;
  box-shadow: none;
}
.lsu-exam-field .form-control:focus {
  border-color: rgba(204,0,20,.45);
  box-shadow: 0 0 0 3px rgba(204,0,20,.12);
}
.lsu-exam-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .25rem;
}

.lsu-exam-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border-radius: 999px;
  padding: .62rem 1.15rem;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.lsu-exam-btn:hover { transform: translateY(-1px); }
.lsu-exam-btn--primary {
  background: linear-gradient(135deg, #cc0014, #a00012);
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(204,0,20,.28);
}
.lsu-exam-btn--search {
  background: #100102;
  color: #f3e6c8 !important;
  box-shadow: 0 10px 22px rgba(16,1,2,.2);
}
.lsu-exam-btn--search:hover { background: #cc0014; color: #fff !important; }
.lsu-exam-btn--ghost {
  background: #fff;
  color: #100102 !important;
  border: 1px solid rgba(16,1,2,.14);
}
.lsu-exam-btn--preview {
  background: #fff4cc;
  color: #5c4800 !important;
  border: 1px solid #f0d76a;
}
.lsu-exam-btn--download {
  background: #128C7E;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(18,140,126,.25);
}
.lsu-exam-btn--download:hover { background: #0b6b60; }

.lsu-exam-table-wrap { overflow-x: auto; }
.lsu-exam-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 720px;
}
.lsu-exam-table thead th {
  background: #100102;
  color: #f3e6c8;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  padding: .85rem 1rem;
  border: none;
}
.lsu-exam-table thead th:first-child { border-radius: 12px 0 0 12px; }
.lsu-exam-table thead th:last-child { border-radius: 0 12px 12px 0; }
.lsu-exam-table tbody td {
  padding: 1rem;
  border-bottom: 1px solid rgba(16,1,2,.07);
  color: #3a3330;
  vertical-align: middle;
  background: #fff;
}
.lsu-exam-table tbody tr:hover td { background: #faf7f2; }
.lsu-exam-year {
  display: inline-flex;
  min-width: 3.4rem;
  justify-content: center;
  background: rgba(204,0,20,.08);
  color: #cc0014;
  font-weight: 800;
  border-radius: 999px;
  padding: .28rem .55rem;
}
.lsu-exam-code {
  background: #f3eee7;
  color: #100102;
  padding: .2rem .45rem;
  border-radius: 8px;
  font-weight: 700;
}
.lsu-exam-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.lsu-exam-empty {
  text-align: center;
  padding: 2.5rem 1rem;
}
.lsu-exam-empty i {
  font-size: 2.6rem;
  color: rgba(204,0,20,.35);
  display: block;
  margin-bottom: .75rem;
}
.lsu-exam-empty h4 {
  color: #100102;
  font-weight: 800;
  margin-bottom: .35rem;
}
.lsu-exam-empty p { color: #6b625c; margin: 0 auto; max-width: 32rem; }
.lsu-exam-pagination { margin-top: 1rem; }

@media (max-width: 991.98px) {
  .lsu-exam-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .lsu-exam-filters { grid-template-columns: 1fr; }
  .lsu-exam-table { min-width: 0; }
  .lsu-exam-table thead { display: none; }
  .lsu-exam-table tbody tr {
    display: block;
    background: #fff;
    border: 1px solid rgba(16,1,2,.08);
    border-radius: 16px;
    margin-bottom: .85rem;
    box-shadow: 0 8px 20px rgba(16,1,2,.05);
    overflow: hidden;
  }
  .lsu-exam-table tbody td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 1rem;
    border-bottom: 1px solid rgba(16,1,2,.06);
  }
  .lsu-exam-table tbody td:last-child { border-bottom: none; }
  .lsu-exam-table tbody td::before {
    content: attr(data-label);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b625c;
    flex: 0 0 38%;
  }
  .lsu-exam-row-actions { justify-content: flex-end; }
  .lsu-exam-empty-row td { display: block; }
  .lsu-exam-empty-row td::before { display: none; }
}
