/* ==========================================================================
   Unipix University — Main Stylesheet
   Framework: Bootstrap 5.3.3 + Custom Collegiate Editorial Design System
   ========================================================================== */

:root {
  /* Collegiate Brand Palette */
  --collegiate-900: #460814;
  --collegiate-800: #640d1f;
  --collegiate-700: #7a0f26;
  --collegiate-600: #8f142e;
  --collegiate-500: #a41636;
  --collegiate-50: #fdf3f4;

  --collegiate-dark: #2a050c;
  --collegiate-darker: #1f0308;

  --crimsonDark: #5c0a1a;
  --oxford-navy: #36050e;
  --academic-navy: #2a050c;
  --goldAccent: #d4af37;
  --academicBg: #faf8f5;
  --academicSlate: #12151c;
  --academic-slate: #12151c;
  --slate-ink: #1b1f23;

  /* Neutral Stone Scale */
  --stone-900: #1c1917;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-400: #a8a29e;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50: #fafaf9;

  /* Typography Variables: Plus Jakarta Sans (Headings 700-800) + Inter (Body 400-500, Nav 500-600, Buttons 600) */
  --font-heading: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: var(--font-heading);
  --font-sans: var(--font-body);
}

/* Base Document Setup */
html {
  scroll-behavior: auto; /* Handled smoothly by Lenis */
}

/* Base Document Setup — Complete Mobile Horizontal Overflow Lock */
html,
body {
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
  position: relative;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  scroll-behavior: auto; /* Handled smoothly by Lenis */
}

/* Lenis Smooth Scroll Engine Styles */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

main {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  background-color: var(--academicBg);
  color: var(--stone-800);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: var(--collegiate-700);
  color: #ffffff;
}

/* Typography: Main Headings (Plus Jakarta Sans 700–800) */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6,
.font-serif,
.font-serif-hero {
  font-family: var(--font-heading) !important;
  letter-spacing: -0.02em;
}

h1,
.h1,
.display-1,
.display-2,
.display-3,
.font-serif-hero {
  font-weight: 800;
}

h2,
h3,
h4,
h5,
h6,
.h2,
.h3,
.h4,
.h5,
.h6,
.display-4,
.display-5,
.display-6,
.font-serif {
  font-weight: 700;
}

/* Body Text (Inter 400–500) */
p,
.lead,
span,
li,
label,
input,
textarea,
select,
table,
td,
th {
  font-family: var(--font-body);
}

p,
.lead {
  font-weight: 400;
}

.lead,
.fw-medium {
  font-weight: 500;
}

.font-sans {
  font-family: var(--font-body);
}

.font-serif-hero {
  font-family: var(--font-heading) !important;
  font-weight: 800;
  letter-spacing: -0.02em;
}

#hero h1 {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

#hero p.lead {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.40);
}

/* Navigation (Inter 500–600) */
.navbar,
.nav-link-custom,
.navbar-nav,
.dropdown-menu,
.dropdown-item,
.top-notification-bar,
header {
  font-family: var(--font-body) !important;
}

.nav-link-custom {
  font-weight: 500 !important;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  font-weight: 600 !important;
}

.dropdown-item {
  font-weight: 500;
}

.dropdown-item:hover,
.dropdown-item:focus {
  font-weight: 600;
}

/* Buttons (Inter 600) */
.btn,
button,
input[type="button"],
input[type="submit"],
.btn-collegiate,
.btn-collegiate-outline,
.btn-light,
.btn-outline-light,
.btn-warning,
.btn-outline-warning,
.btn-dark {
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
}

/* Collegiate Color Utilities */
.bg-collegiate-900 {
  background-color: var(--collegiate-900) !important;
}
.bg-collegiate-800 {
  background-color: var(--collegiate-800) !important;
}
.bg-collegiate-700 {
  background-color: var(--collegiate-700) !important;
}
.bg-collegiate-600 {
  background-color: var(--collegiate-600) !important;
}
.bg-collegiate-500 {
  background-color: var(--collegiate-500) !important;
}
.bg-collegiate-50 {
  background-color: var(--collegiate-50) !important;
}

.text-collegiate-900 {
  color: var(--collegiate-900) !important;
}
.text-collegiate-800 {
  color: var(--collegiate-800) !important;
}
.text-collegiate-700 {
  color: var(--collegiate-700) !important;
}
.text-collegiate-600 {
  color: var(--collegiate-600) !important;
}
.text-collegiate-500 {
  color: var(--collegiate-500) !important;
}

.border-collegiate-700 {
  border-color: var(--collegiate-700) !important;
}
.border-collegiate-800 {
  border-color: var(--collegiate-800) !important;
}

.text-goldAccent {
  color: var(--goldAccent) !important;
}
.bg-goldAccent {
  background-color: var(--goldAccent) !important;
}
.border-goldAccent {
  border-color: var(--goldAccent) !important;
}

/* Outline, Badges & Animations */
.text-outline-heritage {
  -webkit-text-stroke: 1.5px rgba(122, 15, 38, 0.22);
  color: transparent;
}

.text-outline-white {
  -webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.35);
  color: transparent;
}

.blur-backdrop-crimson {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.rotate-badge-anim {
  animation: spinSlow 24s linear infinite;
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Header & Navigation - Transparent Header on Hero */
header.site-header-transparent {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  background-color: transparent !important;
  border-bottom: none !important;
  transition:
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    backdrop-filter 0.35s ease;
}

header.site-header-transparent .top-notification-bar {
  background-color: rgba(42, 5, 12, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

header.site-header-transparent.header-scrolled {
  background-color: rgba(42, 5, 12, 0.96) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border-bottom: none !important;
}

header.site-header-transparent.header-scrolled .top-notification-bar {
  display: none;
}

/* Top Bar Auto-Crawling News Ticker */
.top-news-ticker-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  max-width: 680px;
}

.top-news-ticker-badge {
  background: linear-gradient(135deg, #d4af37, #f3cf65);
  color: #2a050c;
  font-weight: 700;
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.top-news-ticker-wrap {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 15px, black calc(100% - 15px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15px, black calc(100% - 15px), transparent 100%);
}

.top-news-ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: crawlNews 28s linear infinite;
  will-change: transform;
}

.top-news-ticker-track:hover {
  animation-play-state: paused;
}

.top-news-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.74rem;
}

.top-news-item i {
  color: #d4af37;
}

@keyframes crawlNews {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-size: 0.75rem;
}

.top-bar-contact a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.top-bar-contact a:hover {
  color: var(--goldAccent) !important;
}

/* Top Bar & Header Mobile Responsive Locks */
@media (max-width: 767.98px) {
  .top-notification-bar {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    overflow: hidden !important;
  }

  .top-notification-bar .container-xl,
  .top-notification-bar .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .top-bar-contact {
    display: none !important;
  }

  .top-news-ticker-container {
    max-width: 100% !important;
    width: 100% !important;
    flex: 1 1 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 576px) {
  .brand-logo {
    height: 38px !important;
  }
  .navbar-brand {
    margin-right: 0 !important;
    max-width: calc(100% - 54px) !important;
  }
  .navbar-brand .font-serif.fs-4 {
    font-size: 1.12rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .navbar-brand span[style*="letter-spacing"] {
    font-size: 8px !important;
    letter-spacing: 0.1em !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ==========================================================================
   Animated Borderless Hamburger to Cross (X) Navigation Toggler — No Background, Pure Icon
   ========================================================================== */
.navbar-toggler.custom-toggler,
.navbar-toggler {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  background-color: transparent !important;
  padding: 0 !important;
  width: 36px;
  height: 36px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5.5px;
  cursor: pointer;
  border-radius: 0 !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* Strictly hide hamburger toggler on desktop screens (>= 992px) */
@media (min-width: 992px) {
  .navbar-toggler.custom-toggler,
  .navbar-toggler {
    display: none !important;
  }
}

/* Display hamburger toggler only on mobile & tablet (< 992px) */
@media (max-width: 991.98px) {
  .navbar-toggler.custom-toggler,
  .navbar-toggler {
    display: inline-flex !important;
  }
}

.navbar-toggler.custom-toggler:hover,
.navbar-toggler.custom-toggler:focus,
.navbar-toggler.custom-toggler:active,
.navbar-toggler.custom-toggler:visited,
.navbar-toggler.custom-toggler.is-active,
.navbar-toggler.custom-toggler[aria-expanded="true"],
.navbar-toggler.custom-toggler:not(.collapsed),
.navbar-toggler:hover,
.navbar-toggler:focus,
.navbar-toggler:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
  background-color: transparent !important;
}

/* Three Morphing Bars */
.burger-bar {
  display: block;
  width: 24px;
  height: 2.2px;
  background-color: #ffffff;
  border-radius: 3px;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.22s ease,
              background-color 0.2s ease;
  transform-origin: center;
}

/* Hover effect on bars */
.navbar-toggler.custom-toggler:hover .burger-bar {
  background-color: var(--goldAccent, #eab308);
}

/* Animated Morph into Cross (X) when Open */
.navbar-toggler.custom-toggler:not(.collapsed) .burger-bar.top-bar,
.navbar-toggler.custom-toggler[aria-expanded="true"] .burger-bar.top-bar,
.navbar-toggler.custom-toggler.is-active .burger-bar.top-bar {
  transform: translateY(7.7px) rotate(45deg);
}

.navbar-toggler.custom-toggler:not(.collapsed) .burger-bar.mid-bar,
.navbar-toggler.custom-toggler[aria-expanded="true"] .burger-bar.mid-bar,
.navbar-toggler.custom-toggler.is-active .burger-bar.mid-bar {
  opacity: 0;
  transform: scaleX(0);
}

.navbar-toggler.custom-toggler:not(.collapsed) .burger-bar.bot-bar,
.navbar-toggler.custom-toggler[aria-expanded="true"] .burger-bar.bot-bar,
.navbar-toggler.custom-toggler.is-active .burger-bar.bot-bar {
  transform: translateY(-7.7px) rotate(-45deg);
}

.nav-link-custom {
  color: #e5e7eb;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s ease;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--goldAccent) !important;
}

.nav-link-custom i {
  transition: transform 0.25s ease;
}

.dropdown:hover .nav-link-custom i.fa-chevron-down {
  transform: rotate(180deg);
}

/* Desktop Dropdown Hover */
@media (min-width: 992px) {
  .navbar-nav .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
    opacity: 1;
    visibility: visible;
    animation: fadeInMenu 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
}

@keyframes fadeInMenu {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Navbar Overlay — Ultra-Smooth Fluid Open & Close Animation */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(42, 5, 12, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-top: 0.75rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: height 0.32s cubic-bezier(0.16, 1, 0.3, 1),
                padding 0.32s cubic-bezier(0.16, 1, 0.3, 1),
                margin 0.32s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.22s ease,
                border-color 0.22s ease !important;
  }

  .navbar-collapse.collapsing {
    overflow: hidden !important;
    transition: height 0.32s cubic-bezier(0.16, 1, 0.3, 1),
                padding 0.32s cubic-bezier(0.16, 1, 0.3, 1),
                margin 0.32s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.22s ease,
                border-color 0.22s ease !important;
  }

  .nav-link-custom {
    display: block;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
}

/* Buttons */
.btn-collegiate {
  background-color: var(--collegiate-700);
  border-color: var(--collegiate-700);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.65rem 1.4rem;
  border-radius: 0.5rem;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-collegiate:hover,
.btn-collegiate:focus {
  background-color: var(--collegiate-800);
  border-color: var(--collegiate-800);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(122, 15, 38, 0.25);
}

.btn-collegiate-outline {
  border: 1.5px solid var(--collegiate-700);
  color: var(--collegiate-700);
  font-weight: 600;
  font-size: 0.8rem;
  background: transparent;
  padding: 0.55rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.25s ease;
}

.btn-collegiate-outline:hover {
  background-color: var(--collegiate-700);
  color: #ffffff;
  border-color: var(--collegiate-700);
}

.btn-emerald-outline {
  border: 1.5px solid #059669;
  color: #059669;
  font-weight: 600;
  font-size: 0.8rem;
  background: transparent;
  padding: 0.55rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.25s ease;
}

.btn-emerald-outline:hover {
  background-color: #059669;
  color: #ffffff;
  border-color: #059669;
}

/* Card Styles & Hover Zoom Effects */
.card-academic {
  background-color: #ffffff;
  border: 1px solid rgba(70, 8, 20, 0.08);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(70, 8, 20, 0.04);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-academic:hover {
  border-color: rgba(122, 15, 38, 0.25);
  box-shadow:
    0 12px 32px rgba(122, 15, 38, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.04);
  transform: translateY(-3px);
}

.img-zoom-container,
.img-zoom-wrapper {
  overflow: hidden;
}

.img-zoom,
.img-zoom-target {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-zoom:hover .img-zoom,
.card-academic:hover .img-zoom,
.img-zoom-container:hover .img-zoom,
.img-zoom-wrapper:hover .img-zoom-target {
  transform: scale(1.06);
}

/* Ribbons */
.ribbon-wrapper,
.diagonal-ribbon {
  position: absolute;
  top: 15px;
  right: -35px;
  transform: rotate(45deg);
  background-color: var(--collegiate-700);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 40px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

/* Form Controls */
.form-control:focus,
.form-select:focus {
  border-color: var(--collegiate-700);
  box-shadow: 0 0 0 0.2rem rgba(122, 15, 38, 0.15);
}

/* Unified Search Input Group (Seamless Border & Focus) */
.search-input-group {
  background: #ffffff;
  border: 1px solid #ced4da;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: stretch;
}

.search-input-group:focus-within {
  border-color: var(--collegiate-700) !important;
  box-shadow: 0 0 0 0.2rem rgba(122, 15, 38, 0.15) !important;
}

.search-input-group .input-group-text {
  background: transparent !important;
  border: none !important;
  color: var(--stone-500) !important;
  padding-left: 14px;
  padding-right: 6px;
  box-shadow: none !important;
}

.search-input-group .form-control {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  background: transparent !important;
}

.search-input-group .form-control:focus,
.search-input-group .form-control:focus-visible {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Responsive Dividers */
@media (min-width: 768px) {
  .border-end-md {
    border-right: 1px solid #e7e5e4 !important;
  }
  .border-start-md {
    border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
  }
}

.text-hover-gold:hover {
  color: var(--goldAccent) !important;
}

/* Footer Styling - Large, Airy & Matching Screenshot Layout */
footer.site-footer,
footer[data-purpose="site-footer"] {
  background-color: #2a050c !important;
  background-image: none !important;
  background: #2a050c !important;
  color: #ffffff !important;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5rem;
  padding-bottom: 4rem;
  position: relative;
}

.footer-link {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  display: inline-block;
  line-height: 1.6;
}

.footer-link:hover {
  color: #ffffff !important;
  transform: translateX(3px);
}

.footer-social-icon {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-social-icon:hover {
  color: #ffffff !important;
  transform: translateY(-2px);
}

.footer-seal-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  line-height: 1.1;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease;
}

.footer-seal-badge:hover {
  transform: scale(1.05);
}

.text-hover-white:hover {
  color: #ffffff !important;
}

/* Footer Newsletter Subscription */
.footer-subscribe-form .form-control {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

.footer-subscribe-form .form-control:focus {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border-color: var(--gold-accent, #c9933b) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 0.2rem rgba(201, 147, 59, 0.25) !important;
}

.footer-subscribe-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* ==========================================================================
   PreFooter Banner — Full-Width Editorial Banner with Gradient Overlay
   ========================================================================== */
.prefooter-banner-slanted {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  background-image:
    linear-gradient(
      to right,
      rgba(70, 8, 20, 0.85) 0%,
      rgba(100, 13, 31, 0.5) 55%,
      rgba(70, 8, 20, 0.25) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(70, 8, 20, 0.25) 0%,
      rgba(70, 8, 20, 0.45) 35%,
      rgba(70, 8, 20, 0.82) 70%,
      rgba(42, 5, 12, 0.96) 92%,
      #2a050c 100%
    ),
    url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1920&q=80") !important;
  background-size: cover !important;
  background-position: center 30% !important;
  clip-path: none !important;
  -webkit-clip-path: none !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 72px !important;
  padding-bottom: 72px !important;
  overflow: hidden;
  z-index: 2;
}

@media (min-width: 992px) {
  .prefooter-banner-slanted {
    padding-top: 160px !important;
    padding-bottom: 160px !important;
  }
}

@media (max-width: 991px) {
  .prefooter-banner-slanted {
    clip-path: none !important;
    -webkit-clip-path: none !important;
    margin-top: 0 !important;
    padding-top: 72px !important;
    padding-bottom: 72px !important;
  }
}

@media (max-width: 576px) {
  .prefooter-banner-slanted {
    clip-path: none !important;
    -webkit-clip-path: none !important;
    margin-top: 0 !important;
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }
}

/* Ensure banner paragraph is always visible (GSAP fallback) */
.prefooter-banner-slanted p {
  opacity: 1 !important;
  visibility: visible !important;
}

/* ==========================================================================
   GSAP Scroll Animation Safety — Blog Section & Banner
   Prevents opacity-0 stuck state if ScrollTrigger fires late or misses
   ========================================================================== */

/* Blog articles always visible by default; GSAP animates FROM this state */
#blog article {
  opacity: 1;
  transform: none;
}

/* Blog thumbnail images — fixed 90x90 size, no white wash, no stretch */
#blog .col-lg-6:last-child article img {
  width: 90px !important;
  height: 90px !important;
  min-width: 90px !important;
  min-height: 90px !important;
  max-width: 90px !important;
  max-height: 90px !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  opacity: 1 !important;
}

/* Right column: stretch to match left featured card height (380px) */
#blog .col-lg-6:last-child {
  display: flex !important;
  flex-direction: column;
}

#blog .col-lg-6:last-child > .d-flex {
  flex: 1;
  height: 380px;
}

#blog .col-lg-6:last-child > .d-flex > article {
  flex: 1 1 0 !important;
  min-height: 0 !important;
}

/* Left featured card: enforce exact 380px */
#blog .col-lg-6:first-child article {
  height: 380px !important;
}

/* Buttons should never inherit text-shadow from parent containers */
.btn {
  text-shadow: none !important;
}

/* Ensure all buttons and CTA links are always visible and never hidden by animation reversals */
.btn-collegiate,
.btn-collegiate-outline,
a.btn-collegiate,
button.btn-collegiate,
#about a.btn-collegiate,
#campus-life a.btn-collegiate {
  opacity: 1 !important;
  visibility: visible !important;
}

/* ==========================================================================
   Events Section — Featured Event Card Image Fix
   ========================================================================== */

/* Make the row stretch so image column fills full card height */
#events .card > .row {
  min-height: 280px;
}

/* Image column fills full height of the card */
#events .card > .row > .col-lg-5 {
  padding: 0 !important;
  overflow: hidden;
}

/* Image itself covers the full column area */
#events .card > .row > .col-lg-5 img {
  width: 100% !important;
  height: 100% !important;
  min-height: 280px !important;
  object-fit: cover !important;
  display: block !important;
}

/* ==========================================================================
   GSAP & Scroll Animation Engine Utilities
   ========================================================================== */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
  padding: 1rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  user-select: none;
}

.marquee-track {
  display: inline-flex;
  gap: 1.5rem;
  will-change: transform;
}

.marquee-item {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.5rem;
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--collegiate-800);
  transition: all 0.25s ease;
}

.marquee-item:hover {
  transform: translateY(-2px);
  border-color: var(--goldAccent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}


.will-reveal {
  will-change: transform, opacity;
}

/* ==========================================================================
   Line-by-Line Masked Text Reveal System
   ========================================================================== */
.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.line-inner {
  display: block;
  will-change: transform, opacity;
}

/* Brand Logo */
.brand-logo {
  height: 52px;
  width: auto;
  max-width: 60px;
  object-fit: contain;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.footer-logo {
  height: 60px;
  width: auto;
  max-width: 70px;
  object-fit: contain;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.navbar-brand:hover .brand-logo,
.footer-logo:hover {
  transform: scale(1.06);
}

/* ==========================================================================
   Editorial Vertical Rhythm System
   - Major sections: 120px top & bottom on desktop / 56px on mobile
   - Large editorial sections: 160px top & bottom on desktop / 72px on mobile
   - Section padding is the TOTAL top and bottom padding, NOT an additional margin
   ========================================================================== */

/* Remove any vertical margins between sections so background bands align seamlessly */
main > section,
section {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Major Sections (Desktop: 120px, Mobile: 56px) */
.section-major {
  padding-top: 56px !important;
  padding-bottom: 56px !important;
}

@media (min-width: 992px) {
  .section-major {
    padding-top: 120px !important;
    padding-bottom: 120px !important;
  }
}

/* Large Editorial Sections (Desktop: 160px, Mobile: 72px) */
.section-editorial {
  padding-top: 72px !important;
  padding-bottom: 72px !important;
}

@media (min-width: 992px) {
  .section-editorial {
    padding-top: 160px !important;
    padding-bottom: 160px !important;
  }
}

/* ==========================================================================
   Day 1 CPT Portal Components (CPTHunt Integration)
   ========================================================================== */

/* Subpage Hero Banner */
.cpt-page-hero {
  background-image: linear-gradient(180deg, rgba(30, 4, 9, 0.65) 0%, rgba(55, 7, 16, 0.48) 50%, rgba(30, 4, 9, 0.62) 100%),
    url('../images/hero-campus.jpg');
  background-size: cover;
  background-position: center;
  min-height: 480px;
  padding-top: 170px;
  padding-bottom: 70px;
}

.cpt-page-hero h1 {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.cpt-page-hero p.lead,
.cpt-page-hero p.text-white-50 {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.40);
}

/* Filter Controls */
.cpt-filter-pill {
  border: 1px solid var(--stone-300);
  background-color: #ffffff;
  color: var(--stone-700);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 9999px;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.cpt-filter-pill:hover {
  background-color: var(--collegiate-50);
  border-color: var(--collegiate-600);
  color: var(--collegiate-800);
}

.cpt-filter-pill.active {
  background-color: var(--collegiate-700) !important;
  border-color: var(--collegiate-700) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(122, 15, 38, 0.25);
}

/* University & Program Cards */
.cpt-card {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cpt-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(70, 8, 20, 0.15), 0 0 1px 1px rgba(122, 15, 38, 0.2);
  border-color: rgba(122, 15, 38, 0.3);
}

.cpt-card-header {
  border-bottom: 1px dashed var(--stone-200);
}

.cpt-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cpt-badge-wine {
  background-color: var(--collegiate-50);
  color: var(--collegiate-800);
  border: 1px solid rgba(122, 15, 38, 0.15);
}

.cpt-badge-navy {
  background-color: var(--collegiate-50);
  color: var(--collegiate-800);
  border: 1px solid rgba(122, 15, 38, 0.2);
}

.cpt-badge-gold {
  background-color: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
}

.cpt-badge-green {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Comparison Table */
.cpt-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.cpt-table thead th {
  background-color: var(--collegiate-800);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 16px 20px;
  border: none;
}

.cpt-table thead th:first-child {
  border-top-left-radius: 12px;
}

.cpt-table thead th:last-child {
  border-top-right-radius: 12px;
}

.cpt-table tbody td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--stone-200);
  vertical-align: middle;
  background-color: #ffffff;
}

.cpt-table tbody tr:hover td {
  background-color: var(--collegiate-50);
}

.cpt-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.cpt-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

/* Timeline / Process Steps */
.cpt-timeline-step {
  position: relative;
  padding-left: 54px;
}

.cpt-timeline-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--collegiate-700);
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(122, 15, 38, 0.3);
}

.cpt-timeline-step::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 42px;
  bottom: -15px;
  width: 2px;
  background-color: var(--stone-200);
}

.cpt-timeline-step:last-child::before {
  display: none;
}

/* Policy Guide Index Navigation */
.cpt-guide-nav-link {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--stone-700);
  border-left: 3px solid transparent;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cpt-guide-nav-link:hover,
.cpt-guide-nav-link.active {
  color: var(--collegiate-800);
  border-left-color: var(--collegiate-700);
  background-color: var(--collegiate-50);
  border-radius: 0 8px 8px 0;
}

/* FAQ Accordion */
.cpt-accordion .accordion-item {
  border: 1px solid var(--stone-200);
  border-radius: 12px !important;
  margin-bottom: 12px;
  overflow: hidden;
  background-color: #ffffff;
}

.cpt-accordion .accordion-button {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--stone-900);
  padding: 20px 24px;
  background-color: #ffffff;
  box-shadow: none !important;
}

.cpt-accordion .accordion-button:not(.collapsed) {
  background-color: var(--collegiate-50);
  color: var(--collegiate-800);
}

.cpt-accordion .accordion-button::after {
  background-size: 18px;
}

.cpt-accordion .accordion-body {
  padding: 20px 24px 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--stone-700);
}

/* ==========================================================================
   Modern Minimal Site Search Modal (Command+K Style)
   ========================================================================== */
#siteSearchModal .modal-content {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(42, 5, 12, 0.35);
  background: #ffffff;
}

.search-modal-input-wrap {
  border-bottom: 1px solid #f0f0f0;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #ffffff;
}

#siteSearchModal .modal-dialog {
  margin-top: 8vh;
}

#siteSearchModal .modal-content {
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.03) !important;
}

.search-modal-input-wrap .form-control {
  border: none !important;
  box-shadow: none !important;
  font-size: 1.15rem;
  font-weight: 500;
  color: #1c1917;
  padding: 0;
  background: transparent;
}

.search-modal-input-wrap .form-control::placeholder {
  color: #a8a29e;
  font-weight: 400;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: #292524;
  transition: all 0.15s ease;
  outline: none;
}

.search-result-item:hover,
.search-result-item:focus {
  background-color: #fdf2f4;
  color: #640d1f;
  transform: translateX(4px);
  outline: none;
}

.search-result-icon {
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fdf2f4;
  color: #7a0f26;
  flex-shrink: 0;
  font-size: 0.95rem;
  transition: all 0.15s ease;
}

.search-result-item:hover .search-result-icon,
.search-result-item:focus .search-result-icon {
  background: #7a0f26;
  color: #ffffff;
}

.search-quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 2rem;
  font-size: 12px;
  font-weight: 500;
  background: #f5f5f4;
  color: #57534e;
  border: 1px solid #e7e5e4;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.search-quick-chip:hover {
  background: #fdf2f4;
  color: #7a0f26;
  border-color: #f0c5ce;
}

/* ==========================================================================
   Global Mobile Responsive Horizontal Overflow Prevention & Viewport Lock
   ========================================================================== */

/* Prevent Bootstrap row negative margin overflow on screens smaller than 992px */
@media (max-width: 991.98px) {
  .row.g-5 {
    --bs-gutter-x: 1.25rem !important;
  }
  .row.g-4 {
    --bs-gutter-x: 1rem !important;
  }
}

@media (max-width: 576px) {
  .container-xl,
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Prevent absolute decorative elements or badges from overflowing viewport */
  .position-absolute[style*="right: 20px"],
  .position-absolute[style*="right:20px"] {
    right: 12px !important;
    max-width: calc(100% - 24px) !important;
  }

  .position-absolute[style*="right: -40px"] {
    display: none !important;
  }

  /* Ensure card grids and hero buttons never force horizontal stretch */
  .btn {
    max-width: 100%;
    word-break: break-word;
  }

  /* Pre-footer and Footer containment */
  .prefooter-banner-slanted,
  .site-footer,
  section {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
}




/* ==========================================================================
   Full-width header & footer (container-fluid with comfortable side gutters)
   ========================================================================== */
.site-wide-container {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .site-wide-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1400px) {
  .site-wide-container {
    padding-left: 3.5rem;
    padding-right: 3.5rem;
  }
}

/* Eagle-only brand mark in the header */
.navbar-brand .brand-logo {
  max-width: 56px;
}

/* ==========================================================================
   University logo plates (directory cards, home partner cards, university pages)
   ========================================================================== */
.uni-logo-plate {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.75rem;
  padding: 0.45rem 0.7rem;
  flex-shrink: 0;
}

.uni-logo-plate img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.uni-logo-plate--overlay {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 132px;
  height: 50px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  z-index: 2;
}

.uni-logo-plate--hero {
  display: inline-flex;
  height: 76px;
  max-width: 300px;
  padding: 0.6rem 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Universities directory: campus photo header with logo overlay */
.uni-card-media{margin:-1.5rem -1.5rem 0;height:220px;border-radius:1rem 1rem 0 0}
.uni-card-media img.w-100{transition:transform .5s ease}
.card-academic:hover .uni-card-media img.w-100{transform:scale(1.04)}
.uni-card-media .uni-logo-plate--overlay{left:16px;bottom:16px;width:150px;height:58px}
