/* ============================================================
   Common / shared styles — every page (from templates/includes/header_tpl.php)
   ============================================================ */
:root {
  --bg-academic-blue: #1e3a8a;
  --text-gold: #fbbf24;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  color: #1f2937;
  margin: 0;
}

.college-name {
  font-family: 'Poppins', sans-serif;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 10px -1px rgba(0, 0, 0, 0.1);
}

.dropdown-container {
  padding-top: 20px;
  margin-top: -20px;
}

.group:hover .group-hover\:block {
  display: block;
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   academics.php (from templates/academics_tpl.php)
   ============================================================ */
body.page-academics .page-main-content {
  padding-top: 8rem;
  position: relative;
  z-index: 10;
}

body.page-academics .hero-gradient {
  background: #f8fafc;
}

body.page-academics .glass-card {
  background: #ffffff;
  border-radius: 2rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

body.page-academics .glass-card:hover {
  background: #fef3c7;
  transform: translateY(-5px);
  border-color: #fbbf24;
}

body.page-academics .header-title {
  font-family: 'Poppins', sans-serif;
}

body.page-academics .course-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

body.page-academics .fade-in {
  animation: academics-fadeIn 0.8s ease-out forwards;
}

@keyframes academics-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.page-academics .text-white {
  color: #1f2937 !important;
}

body.page-academics .text-blue-300 {
  color: #3b82f6 !important;
}

body.page-academics .text-yellow-400 {
  color: #f59e0b !important;
}

body.page-academics .text-gray-400 {
  color: #6b7280 !important;
}

body.page-academics .text-blue-500 {
  color: #2563eb !important;
}

body.page-academics .text-green-400 {
  color: #10b981 !important;
}

body.page-academics .bg-blue-500 {
  background-color: rgba(37, 99, 235, 0.1);
}

body.page-academics .bg-yellow-500 {
  background-color: rgba(245, 158, 11, 0.1);
}

body.page-academics .bg-green-500 {
  background-color: rgba(16, 185, 129, 0.1);
}

body.page-academics .btn-light-cta {
  background-color: #fbbf24;
  color: #1f2937;
}

body.page-academics .btn-light-cta:hover {
  background-color: #fcd34d;
  color: #1f2937;
}

/* ============================================================
   bba.php (from templates/bba_tpl.php)
   ============================================================ */
body.page-bba .page-wrapper {
  background: #f9fafb;
  min-height: auto;
  color: #1f2937;
}

body.page-bba .glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(156, 163, 175, 0.3);
  border-radius: 1.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.page-bba .glass-card:hover {
  transform: translateY(-3px);
  border-color: #fbbf24;
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.2);
}

body.page-bba .section-title {
  font-family: 'Poppins', sans-serif;
  border-left: 5px solid #fbbf24;
  padding-left: 1rem;
  color: #1f2937;
}

body.page-bba .step-node {
  width: 18px;
  height: 18px;
  background: #fbbf24;
  border: 3px solid #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: -35px;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(251, 191, 36, 0.25);
}

body.page-bba .step-line {
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: rgba(251, 191, 36, 0.4);
}

body.page-bba .mgt-tag {
  background: rgba(251, 191, 36, 0.15);
  color: #b45309;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

body.page-bba .btn-download {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1f2937;
  transition: all 0.3s;
}

body.page-bba .btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
  color: #000;
}

body.page-bba a {
  text-decoration: none;
}

body.page-bba h2,
body.page-bba h3,
body.page-bba h4 {
  color: #1f2937;
}

body.page-bba p {
  color: #4b5563;
}

/* ============================================================
   bca.php (from templates/bca_tpl.php)
   ============================================================ */
body.page-bca .page-wrapper {
  background: #f8fafc;
  min-height: auto;
  color: #1f2937;
}

body.page-bca .glass-card {
  background: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

body.page-bca .glass-card:hover {
  border-color: #2563eb;
  transform: translateY(-5px);
}

body.page-bca .section-title {
  font-family: 'Poppins', sans-serif;
  border-left: 5px solid #2563eb;
  padding-left: 1rem;
}

body.page-bca .step-node {
  width: 18px;
  height: 18px;
  background: #2563eb;
  border: 3px solid #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: -35px;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(37, 99, 235, 0.25);
}

body.page-bca .step-line {
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: rgba(37, 99, 235, 0.35);
}

body.page-bca .tech-tag {
  background: rgba(99, 179, 237, 0.1);
  color: #2563eb;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

body.page-bca .btn-download {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #ffffff;
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
}

body.page-bca .btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* ============================================================
   bcom.php (from templates/bcom_tpl.php)
   ============================================================ */
body.page-bcom {
  background: #f9fafb;
  color: #1f2937;
  font-family: 'Poppins', sans-serif;
}

body.page-bcom .page-wrapper {
  min-height: auto;
  padding-top: 8rem;
  padding-bottom: 5rem;
}

body.page-bcom .glass-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1.5rem;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.page-bcom .glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

body.page-bcom .section-title {
  font-family: 'Poppins', sans-serif;
  border-left: 5px solid #f59e0b;
  padding-left: 1rem;
  font-weight: bold;
}

body.page-bcom .step-node {
  width: 18px;
  height: 18px;
  background: #f59e0b;
  border: 3px solid #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: -35px;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(245, 158, 11, 0.25);
}

body.page-bcom .step-line {
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: rgba(245, 158, 11, 0.4);
}

body.page-bcom .subject-tag {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

body.page-bcom .btn-download {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: bold;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

body.page-bcom .btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3);
}

body.page-bcom a.back-link {
  color: #f59e0b;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}

body.page-bcom a.back-link:hover {
  color: #d97706;
}

/* ============================================================
   campus-life.php (from templates/campus-life_tpl.php)
   ============================================================ */
body.page-campus-life {
  background: #f9fafb;
  color: #1f2937;
  font-family: 'Poppins', sans-serif;
}

body.page-campus-life .page-wrapper {
  padding-top: 8rem;
  overflow-x: hidden;
}

body.page-campus-life .container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

body.page-campus-life .bento-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: minmax(140px, auto);
  gap: 16px;
}

body.page-campus-life .bento-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 24px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

body.page-campus-life .bento-item:hover {
  border-color: #3b82f6;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}

@media (min-width: 768px) {
  body.page-campus-life .bento-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  body.page-campus-life .span-md-2 {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  body.page-campus-life .bento-container {
    grid-template-columns: repeat(4, 1fr);
  }

  body.page-campus-life .span-2 {
    grid-column: span 2;
  }

  body.page-campus-life .span-3 {
    grid-column: span 3;
  }

  body.page-campus-life .row-2 {
    grid-row: span 2;
  }
}

body.page-campus-life .span-full {
  grid-column: 1 / -1;
}

body.page-campus-life .path-line {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

body.page-campus-life .path-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
}

body.page-campus-life .step-circle {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: #e0f2fe;
  border: 2px solid #3b82f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

@media (min-width: 992px) {
  body.page-campus-life .path-line {
    flex-direction: row;
    justify-content: space-between;
    padding-top: 20px;
  }

  body.page-campus-life .path-line::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: rgba(59, 130, 246, 0.2);
    z-index: 1;
  }

  body.page-campus-life .path-step {
    flex-direction: column;
    text-align: center;
    width: 18%;
  }
}

body.page-campus-life .gradient-text {
  background: linear-gradient(to right, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.page-campus-life .growth-label {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* ============================================================
   computer-lab.php (from templates/computer-lab_tpl.php)
   ============================================================ */
body.page-computer-lab .page-wrapper {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  min-height: auto;
  color: #111827;
  padding-top: 8rem;
}

body.page-computer-lab .glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
  border-radius: 1.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: #111827;
  height: 100%;
  display: flex;
  flex-direction: column;
}

body.page-computer-lab .lab-card:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.15);
}

body.page-computer-lab .image-container {
  overflow: hidden;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
}

body.page-computer-lab .section-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

body.page-computer-lab .lab-card:hover .section-image {
  transform: scale(1.05);
}

body.page-computer-lab .spec-badge {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #374151;
  transition: background 0.3s ease;
}

body.page-computer-lab .lab-card:hover .spec-badge {
  background: #fff;
  border-color: #bfdbfe;
}

body.page-computer-lab .fiber-pulse {
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

body.page-computer-lab .gradient-text {
  background: linear-gradient(90deg, #111827 0%, #4b5563 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.page-computer-lab h1,
body.page-computer-lab h2,
body.page-computer-lab h3,
body.page-computer-lab h4,
body.page-computer-lab h5 {
  color: #111827;
}

body.page-computer-lab p,
body.page-computer-lab span,
body.page-computer-lab ul li {
  color: #4b5563;
}

body.page-computer-lab .text-gray-400 {
  color: #6b7280 !important;
}

body.page-computer-lab .text-blue-400 {
  color: #3b82f6 !important;
}

body.page-computer-lab .text-purple-400 {
  color: #8b5cf6 !important;
}

body.page-computer-lab .text-green-500 {
  color: #10b981 !important;
}

body.page-computer-lab .text-yellow-400 {
  color: #f59e0b !important;
}

body.page-computer-lab .text-emerald-400 {
  color: #10b981 !important;
}

body.page-computer-lab .bg-blue-500\/20 {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

body.page-computer-lab .bg-purple-500\/20 {
  background: rgba(139, 92, 246, 0.1);
  color: #7c3aed;
}

body.page-computer-lab .bg-emerald-500\/20 {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

body.page-computer-lab .bg-gray-500\/20 {
  background: rgba(107, 114, 128, 0.1);
  color: #4b5563;
}

body.page-computer-lab .fiber-card {
  background: white;
  border-left: 4px solid #10b981;
}

body.page-computer-lab .connectivity-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 100px;
  border-left: 5px solid #10b981;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 3rem;
}

body.page-computer-lab .strip-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

body.page-computer-lab .strip-badge-group {
  display: flex;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  body.page-computer-lab .connectivity-strip {
    flex-direction: column;
    border-radius: 2rem;
    text-align: center;
    padding: 2rem 1rem;
    gap: 1.5rem;
  }

  body.page-computer-lab .strip-content {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ============================================================
   contact.php (from templates/contact_tpl.php)
   ============================================================ */
body.page-contact .py-10 {
  padding-top: 8rem;
  padding-bottom: 2.5rem;
}

/* ============================================================
   gallery.php (from templates/gallery_tpl.php)
   ============================================================ */
body.page-gallery .page-wrapper {
  background: radial-gradient(circle at 50% 0%, #f8fafc 0%, #e5e7eb 100%);
  min-height: auto;
  padding-top: 8rem;
  padding-bottom: 80px;
}

body.page-gallery .masonry-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  body.page-gallery .masonry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  body.page-gallery .masonry-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

body.page-gallery .gallery-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

body.page-gallery .gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body.page-gallery .image-container {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 1.2rem;
}

body.page-gallery .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

body.page-gallery .gallery-card:hover img {
  transform: scale(1.1);
}

body.page-gallery .event-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #1e3a8a;
}

body.page-gallery #myModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  background: #0f172a;
  flex-direction: column;
}

body.page-gallery #myModal.active {
  display: flex !important;
}

body.page-gallery .gallery-header {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

body.page-gallery .gallery-title {
  color: #f8fafc;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

body.page-gallery .close-gallery-btn {
  color: white;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  transition: 0.3s;
}

body.page-gallery .close-gallery-btn:hover {
  color: #fbbf24;
  transform: rotate(90deg);
}

body.page-gallery .gallery-scroll-view {
  flex: 1 1 auto;
  overflow-y: auto !important;
  padding: 40px;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

body.page-gallery .gallery-scroll-view::-webkit-scrollbar {
  width: 8px;
}

body.page-gallery .gallery-scroll-view::-webkit-scrollbar-track {
  background: #0f172a;
}

body.page-gallery .gallery-scroll-view::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 10px;
}

body.page-gallery .gallery-scroll-view::-webkit-scrollbar-thumb:hover {
  background: #fbbf24;
}

body.page-gallery .custom-gallery-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: none;
}

body.page-gallery .custom-gallery-backdrop.active {
  display: block;
}

body.page-gallery.gallery-is-open {
  overflow: hidden !important;
}

body.page-gallery .modal-img-item {
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

body.page-gallery .modal-img-item:hover {
  transform: scale(1.02);
}

body.page-gallery #imageZoomOverlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10050;
  align-items: center;
  justify-content: center;
}

body.page-gallery #imageZoomOverlay.active {
  display: flex;
}

body.page-gallery #zoomedImage {
  max-width: 88vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  cursor: default;
}

body.page-gallery .zoom-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

body.page-gallery .zoom-nav-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

body.page-gallery .zoom-prev-btn {
  left: 20px;
}

body.page-gallery .zoom-next-btn {
  right: 20px;
}

body.page-gallery .zoom-close-btn {
  top: 20px;
  right: 20px;
  left: auto;
  bottom: auto;
  transform: none;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  line-height: 1;
}

body.page-gallery .zoom-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 16px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  body.page-gallery .zoom-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  body.page-gallery .zoom-prev-btn {
    left: 8px;
  }

  body.page-gallery .zoom-next-btn {
    right: 8px;
  }

  body.page-gallery .zoom-close-btn {
    top: 12px;
    right: 12px;
  }
}

/* ============================================================
   history.php (from templates/history_tpl.php)
   ============================================================ */
body.page-history .page-wrapper {
  background: #f8fafc;
  min-height: auto;
  color: #1f2937;
}

body.page-history .glass-card {
  background: #ffffff;
  border-radius: 2rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.page-history .building-hero {
  position: relative;
  border-radius: 2.5rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  height: 450px;
}

body.page-history .building-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1) contrast(1);
}

body.page-history .building-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: linear-gradient(to top, rgba(248, 250, 252, 0.95), transparent);
}

body.page-history .building-overlay h2 {
  color: #1f2937;
}

body.page-history .building-overlay p {
  color: #2563eb;
  font-weight: 500;
  font-style: italic;
}

body.page-history .timeline {
  position: relative;
}

body.page-history .timeline-center-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, #3b82f6, #10b981, #8b5cf6, #f59e0b, #ef4444);
  border-radius: 3px;
}

body.page-history .timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

body.page-history .timeline-item:last-child {
  margin-bottom: 0;
}

body.page-history .timeline-marker {
  order: -1;
  position: relative;
  z-index: 10;
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  background: #ffffff;
  border: 3px solid;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.page-history .timeline-slot-a,
body.page-history .timeline-slot-b {
  display: none;
  width: 100%;
}

body.page-history .timeline-item.timeline-left .timeline-slot-a,
body.page-history .timeline-item.timeline-right .timeline-slot-b {
  display: block;
}

@media (min-width: 1024px) {
  body.page-history .timeline-item {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3.5rem;
  }

  body.page-history .timeline-marker {
    order: 0;
  }

  body.page-history .timeline-slot-a,
  body.page-history .timeline-slot-b {
    display: block;
    width: calc(50% - 3.75rem);
  }
}

body.page-history .trust-badge {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #3b82f6;
  padding: 5px 15px;
  border-radius: 99px;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: bold;
}

/* ============================================================
   index.php (from templates/index_tpl.php)
   ============================================================ */
body.page-index .page-wrapper {
  background: radial-gradient(circle at 50% 0%, #f8fafc 0%, #e5e7eb 100%);
  min-height: auto;
  color: #0f172a;
  font-family: 'Poppins', sans-serif;
}

body.page-index .hero-section {
  position: relative;
  background:
    linear-gradient(rgba(248, 250, 252, 0.85), rgba(248, 250, 252, 0.95)),
    url('https://jjkcc.org/assets/images/building_deskop.webp');
  background-size: cover;
  background-position: center;
  height: 90vh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.page-index .glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 2rem;
  transition: all 0.35s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.page-index .glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

body.page-index .hero-title {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

body.page-index .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

body.page-index .notice-box {
  height: 220px;
  overflow-y: auto;
  padding-right: 10px;
}

body.page-index .notice-box::-webkit-scrollbar {
  width: 3px;
}

body.page-index .notice-box::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}

body.page-index .notice-content p {
  margin-bottom: 0.5rem;
}

body.page-index .notice-content p:last-child {
  margin-bottom: 0;
}

body.page-index .notice-content ul,
body.page-index .notice-content ol {
  list-style: revert;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

body.page-index .notice-content li {
  margin-bottom: 0.25rem;
}

body.page-index .notice-content a {
  color: #2563eb;
  text-decoration: underline;
}

body.page-index .notice-content strong,
body.page-index .notice-content b {
  font-weight: 700;
}

body.page-index .notice-content img {
  max-width: 100%;
  border-radius: 0.5rem;
  margin: 0.5rem 0;
}

body.page-index .gallery-scroll-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}

body.page-index .gallery-scroll-track::-webkit-scrollbar {
  height: 6px;
}

body.page-index .gallery-scroll-track::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}

body.page-index .gallery-card {
  flex: 0 0 260px;
  display: block;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

body.page-index .gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body.page-index .gallery-card .image-container {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 1.2rem;
}

body.page-index .gallery-card .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

body.page-index .gallery-card:hover .image-container img {
  transform: scale(1.1);
}

body.page-index .gallery-card .event-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #1e3a8a;
}

/* ============================================================
   library.php (from templates/library_tpl.php)
   ============================================================ */
body.page-library .page-wrapper {
  background: radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
    radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
    radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
  background-color: #f3f4f6;
  background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
  min-height: auto;
  color: #111827;
  padding-top: 8rem;
  font-family: 'Poppins', sans-serif;
}

body.page-library .glass-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  border-radius: 1.5rem;
  color: #111827;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.page-library .glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

body.page-library .stat-circle {
  border: 2px solid rgba(16, 185, 129, 0.3);
  background: rgba(220, 252, 231, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

body.page-library .glass-card:hover .stat-circle {
  transform: scale(1.1);
}

body.page-library .library-accent {
  color: #1e40af;
  font-family: 'Poppins', sans-serif;
}

body.page-library .resource-link {
  transition: all 0.3s ease;
  border: 1px solid rgba(203, 213, 225, 0.5);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
}

body.page-library .resource-link:hover {
  background: #fff;
  border-color: #3b82f6;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}

body.page-library h1,
body.page-library h2,
body.page-library h3,
body.page-library h4,
body.page-library h5 {
  color: #111827;
}

body.page-library p,
body.page-library ul li,
body.page-library span {
  color: #4b5563;
}

body.page-library .text-gray-400 {
  color: #6b7280 !important;
}

body.page-library .text-gray-500 {
  color: #4b5563 !important;
}

body.page-library .text-blue-400 {
  color: #3b82f6 !important;
}

body.page-library .text-green-400 {
  color: #10b981 !important;
}

body.page-library .text-yellow-400 {
  color: #f59e0b !important;
}

body.page-library .text-purple-400 {
  color: #8b5cf6 !important;
}

body.page-library .text-red-400 {
  color: #dc2626 !important;
}

body.page-library .font-bold {
  font-weight: 700;
}

body.page-library .uppercase {
  text-transform: uppercase;
}

body.page-library .section-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ============================================================
   principal.php (from templates/principal_tpl.php)
   ============================================================ */
body.page-principal .page-wrapper {
  background: #f8fafc;
  min-height: auto;
  color: #1f2937;
}

body.page-principal .glass-card {
  background: #ffffff;
  border-radius: 2rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.page-principal .message-quote {
  font-family: 'Poppins', sans-serif;
  position: relative;
}

body.page-principal .message-quote::before {
  content: '"';
  position: absolute;
  top: -40px;
  left: -20px;
  font-size: 120px;
  color: rgba(59, 130, 246, 0.1);
  font-family: serif;
}

body.page-principal .principal-photo-frame {
  position: relative;
  border: 2px solid #fbbf24;
  padding: 10px;
  border-radius: 2rem;
  background: #fefce8;
}

body.page-principal .principal-photo-frame img {
  border-radius: 1.5rem;
  width: 100%;
  height: auto;
}

body.page-principal .signature-font {
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  color: #fbbf24;
}

/* ============================================================
   smart-class.php (from templates/smart-class_tpl.php)
   ============================================================ */
body.page-smart-class .page-wrapper {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  min-height: auto;
  color: #111827;
  padding-top: 8rem;
}

body.page-smart-class .glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 2rem;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04);
  color: #111827;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.page-smart-class .smart-feature-card {
  border-bottom: 4px solid transparent;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.page-smart-class .smart-feature-card:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.15);
}

body.page-smart-class .smart-feature-card.border-blue:hover {
  border-bottom-color: #3b82f6;
}

body.page-smart-class .smart-feature-card.border-yellow:hover {
  border-bottom-color: #f59e0b;
}

body.page-smart-class .icon-box {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
}

body.page-smart-class .icon-box.bg-blue-500\/20 {
  background: rgba(59, 130, 246, 0.15);
  color: #2563eb;
}

body.page-smart-class .icon-box.bg-yellow-500\/20 {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

body.page-smart-class .glow-text {
  background: linear-gradient(to right, #111827, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.1));
}

body.page-smart-class h1,
body.page-smart-class h2,
body.page-smart-class h3,
body.page-smart-class h4,
body.page-smart-class h5 {
  color: #111827;
}

body.page-smart-class p,
body.page-smart-class ul li {
  color: #4b5563;
}

body.page-smart-class .image-wrapper {
  width: 100%;
  overflow: hidden;
  border-radius: 1.5rem;
  margin-bottom: 1.5rem;
  height: 220px;
}

body.page-smart-class .section-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

body.page-smart-class .smart-feature-card:hover .section-image {
  transform: scale(1.08);
}

body.page-smart-class .small-image-wrapper {
  height: 140px;
  border-radius: 1rem;
}

body.page-smart-class .text-blue-400 {
  color: #3b82f6 !important;
}

body.page-smart-class .text-yellow-500 {
  color: #f59e0b !important;
}

body.page-smart-class .text-emerald-400 {
  color: #10b981 !important;
}

body.page-smart-class .text-purple-400 {
  color: #8b5cf6 !important;
}

body.page-smart-class .text-gray-400 {
  color: #6b7280 !important;
}

/* ============================================================
   sports.php (from templates/sports_tpl.php)
   ============================================================ */
body.page-sports .page-wrapper {
  background: radial-gradient(circle at 50% 0%, #f8fafc 0%, #e5e7eb 100%);
  min-height: auto;
  color: #111827;
  padding-top: 8rem;
}

body.page-sports .glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 2rem;
  color: #111827;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.page-sports .glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  background: rgba(255, 255, 255, 0.95);
}

body.page-sports .achievement-card {
  background: linear-gradient(145deg, rgba(253, 230, 138, 0.2), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(251, 191, 36, 0.3);
}

body.page-sports .achievement-card h3 {
  background: linear-gradient(to bottom right, #111827, #4b5563);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.page-sports .training-alert {
  background: white;
  border-left: 6px solid #10b981;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

body.page-sports h1,
body.page-sports h2,
body.page-sports h3,
body.page-sports h4,
body.page-sports h5 {
  color: #111827;
}

body.page-sports .text-emerald-500 {
  color: #10b981 !important;
}

body.page-sports .text-gray-400 {
  color: #9ca3af !important;
}

body.page-sports .text-gray-500 {
  color: #6b7280 !important;
}

body.page-sports .text-yellow-500 {
  color: #f59e0b !important;
}

body.page-sports .text-blue-500 {
  color: #3b82f6 !important;
}

body.page-sports .sport-card {
  display: flex;
  flex-direction: column;
}

body.page-sports .image-overflow {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 1.25rem;
  margin-bottom: 1rem;
}

body.page-sports .sport-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

body.page-sports .sport-card:hover img {
  transform: scale(1.1);
}

body.page-sports .hero-gradient {
  background: linear-gradient(90deg, #111827, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.page-sports .image-overflow {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 1.25rem;
  margin-bottom: 1rem;
}

body.page-sports .sport-card img,
body.page-sports .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

body.page-sports .sport-card:hover img {
  transform: scale(1.1);
}

body.page-sports .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-auto-rows: 200px;
  gap: 15px;
}

body.page-sports .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

body.page-sports .gallery-item.tall {
  grid-row: span 2;
}

body.page-sports .gallery-item.wide {
  grid-column: span 2;
}

/* ============================================================
   nep-2020.php (from templates/nep-2020_tpl.php)
   ============================================================ */
body.page-nep-2020 .page-wrapper {
  background: #f8fafc;
  min-height: auto;
  color: #1f2937;
}

body.page-nep-2020 .glass-card {
  background: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.page-nep-2020 .paired-card-heading {
  min-height: 3.75rem;
}

@media (min-width: 768px) {
  body.page-nep-2020 .paired-card-heading {
    min-height: 4rem;
  }
}

body.page-nep-2020 .glass-card-blue {
  background: #eff6ff;
  border-color: #bfdbfe;
}

body.page-nep-2020 .trust-badge {
  display: inline-block;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #3b82f6;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: bold;
  white-space: nowrap;
}

/* ============================================================
   staff.php (from templates/staff_tpl.php)
   ============================================================ */
body.page-staff .page-wrapper {
  background: #f8fafc;
  min-height: auto;
  color: #1f2937;
}

body.page-staff .glass-card {
  background: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.page-staff .staff-role-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.page-staff .staff-meta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #374151;
}

body.page-staff .staff-meta span {
  display: inline-flex;
  align-items: center;
  background: #f3f4f6;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
}

body.page-staff .staff-meta i {
  color: #6366f1;
  margin-right: 6px;
  font-size: 12px;
}

body.page-staff .staff-initials {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* --- Leadership: white cards with the site's own brand blue + gold accent --- */
body.page-staff .staff-h-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.75rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-top: 4px solid var(--bg-academic-blue, #1e3a8a);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.page-staff .staff-h-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

body.page-staff .staff-h-card-highlight {
  position: relative;
  border-top-color: var(--text-gold, #fbbf24);
  background: linear-gradient(180deg, #fffbeb, #ffffff 45%);
}

body.page-staff .staff-h-highlight-icon {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 16px;
  color: var(--text-gold, #fbbf24);
}

body.page-staff .staff-h-link {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--bg-academic-blue, #1e3a8a);
}

body.page-staff .staff-h-link:hover {
  color: #1e40af;
}

body.page-staff .staff-avatar-md {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--text-gold, #fbbf24);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

body.page-staff .staff-avatar-md.staff-initials {
  font-size: 2rem;
  border: 4px solid var(--text-gold, #fbbf24);
}

body.page-staff .staff-h-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bg-academic-blue, #1e3a8a);
}

body.page-staff .staff-h-info .staff-role-badge {
  margin-top: 8px;
  letter-spacing: 0.06em;
}

/* --- Teaching staff: department tabs --- */
body.page-staff .staff-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2rem;
}

body.page-staff .staff-tab-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

body.page-staff .staff-tab-btn:hover {
  border-color: #a78bfa;
  color: #7c3aed;
}

body.page-staff .staff-tab-btn.active {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #ffffff;
}

/* --- Teaching staff: profile card --- */
body.page-staff .staff-photo-card {
  overflow: hidden;
  padding: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.page-staff .staff-photo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

body.page-staff .staff-photo-block {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

body.page-staff .staff-photo-watermark {
  position: absolute;
  bottom: -18px;
  right: -14px;
  font-size: 6.5rem;
  color: rgba(255, 255, 255, 0.14);
  transform: rotate(-10deg);
}

body.page-staff .staff-photo-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.page-staff .staff-photo-initials {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-weight: 800;
  font-size: 4rem;
  letter-spacing: 0.03em;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

body.page-staff .staff-photo-footer {
  padding: 20px 22px 26px;
  text-align: center;
  border-top: 3px solid #f8fafc;
}

body.page-staff .staff-photo-footer h4 {
  font-weight: 700;
  font-size: 1.1rem;
  color: #111827;
}

body.page-staff .staff-photo-footer .staff-role-badge {
  margin-top: 8px;
}

body.page-staff .staff-photo-footer .staff-meta {
  justify-content: center;
}

/* --- Non-teaching & support: compact rows --- */
body.page-staff .staff-row-list {
  padding: 0.5rem 1.5rem;
}

body.page-staff .staff-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f1f5f9;
}

body.page-staff .staff-row:last-child {
  border-bottom: none;
}

body.page-staff .staff-avatar-xs {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f3f4f6;
}

body.page-staff .staff-avatar-xs.staff-initials {
  font-size: 1rem;
}

body.page-staff .staff-row-info {
  flex: 1;
  min-width: 0;
}

body.page-staff .staff-row-info h5 {
  font-weight: 700;
  font-size: 0.95rem;
  color: #111827;
}

body.page-staff .staff-row-info span {
  font-size: 0.8rem;
  color: #6b7280;
}

body.page-staff .staff-row-exp {
  font-size: 0.75rem;
  color: #9ca3af;
  white-space: nowrap;
}

