/* ==========================================================================
   CONSA (College of Nursing Sciences, Adazi-Nnukwu)
   Global Stylesheet & JAMB Bottom-Fixed Ticker
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Dynamic branding properties derived from CONSA official crest */
  --consa-blue: #22328c;
  /* Dominant Crest Blue */
  --consa-blue-dark: #152060;
  /* Deep Navy */
  --consa-blue-light: #3748b0;
  /* Brighter Blue */
  --consa-blue-50: #eef2fb;
  /* Tinted Background */
  --consa-blue-100: #dce4f7;
  /* Soft Badge */
  --consa-red: #d91b24;
  /* Motto Ribbon Red */
  --consa-gold: #d97706;
  /* Cross/Lantern Warm Gold */
  --consa-ink: #0b1233;
}

/* Strict Global Viewport Containment: Prevents horizontal scrolling/shifting on mobile */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  position: relative;
}

/* Ensure body has bottom padding on desktop where ticker is fixed at bottom */
body {
  padding-bottom: 0 !important;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #0b1233;
  background-color: #ffffff;
}

@media (min-width: 769px) {
  body {
    padding-bottom: 50px !important;
  }
}

/* Typography */
.font-display {
  font-family: 'Archivo', 'Inter', system-ui, sans-serif;
}

/* Header & Nav */
.nav-link.active {
  color: #22328c !important;
  color: var(--consa-blue, #22328c) !important;
  font-weight: 700 !important;
}

.nav-link.active .active-bar {
  transform: scaleX(1) !important;
  background-color: #22328c !important;
  background-color: var(--consa-blue, #22328c) !important;
}

/* ==========================================================================
   JAMB-STYLE BOTTOM-FIXED RECENT HEADLINES TICKER
   Pinned to the bottom edge of the viewport just like jamb.gov.ng
   Branded in official CONSA Royal Blue & Crisp White
   ========================================================================== */
.jamb-bottom-ticker {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 100 !important;
  background-color: #ffffff !important;
  border-top: 2px solid var(--consa-blue, #22328c) !important;
  box-shadow: 0 -4px 12px rgba(11, 18, 51, 0.1) !important;
  height: 48px !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
}

/* Strategic Mobile Headlines Placement: Sticky Top Alert Bar directly under header */
@media (max-width: 768px) {
  .jamb-bottom-ticker {
    position: sticky !important;
    top: 68px !important;
    bottom: auto !important;
    z-index: 45 !important;
    height: 36px !important;
    border-top: none !important;
    border-bottom: 2px solid var(--consa-blue, #22328c) !important;
    box-shadow: 0 2px 8px rgba(11, 18, 51, 0.08) !important;
  }
}

.jamb-bottom-inner {
  width: 100% !important;
  max-width: 1600px !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 1rem !important;
  overflow: hidden !important;
  height: 100% !important;
}

@media (max-width: 768px) {
  .jamb-bottom-inner {
    padding: 0 0.5rem !important;
  }
}

/* JAMB-Style Solid Red Badge (Matches Crest Ribbon Red #d91b24) */
.jamb-badge-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  background-color: var(--consa-red, #d91b24) !important;
  color: #ffffff !important;
  font-family: 'Archivo', sans-serif !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 0 0.85rem !important;
  height: 32px !important;
  border-radius: 3px !important;
  flex-shrink: 0 !important;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25) !important;
  user-select: none !important;
}

@media (min-width: 769px) {
  .jamb-badge-btn {
    font-size: 12.5px !important;
    height: 36px !important;
    padding: 0 1rem !important;
  }
}

@media (max-width: 768px) {
  .jamb-badge-btn {
    font-size: 10px !important;
    height: 24px !important;
    padding: 0 0.5rem !important;
    letter-spacing: 0.04em !important;
    gap: 0.25rem !important;
  }
  .jamb-circle-icon {
    display: none !important;
  }
  .jamb-headline-text {
    font-size: 11.5px !important;
  }
}

.jamb-badge-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background-color: #ffffff !important;
  animation: pulseDot 1.5s infinite !important;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

/* Circle Icon with Upward Arrow (Matching JAMB screenshot) */
.jamb-circle-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: 0.4rem !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  border: 1.5px solid rgba(34, 50, 140, 0.4) !important;
  background-color: #f0f4ff !important;
  color: var(--consa-blue, #22328c) !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.jamb-circle-icon:hover {
  background-color: var(--consa-blue, #22328c) !important;
  color: #ffffff !important;
}

@media (min-width: 640px) {
  .jamb-circle-icon {
    width: 26px !important;
    height: 26px !important;
    margin-left: 0.5rem !important;
  }
}

/* CONSA Digital Portal Banner - Rock-Solid Contrast Fallback */
.consa-portal-banner {
  background-color: #17246e !important;
  background: linear-gradient(135deg, #22328c 0%, #0d1542 100%) !important;
  color: #ffffff !important;
}

/* Ticker Scroll Area */
.jamb-scroll-wrap {
  flex: 1 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  position: relative !important;
  margin: 0 0.75rem !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
}

.jamb-scroll-track {
  display: flex !important;
  width: max-content !important;
  white-space: nowrap !important;
  animation: jambScroll 68s linear infinite !important;
  will-change: transform !important;
}

.jamb-scroll-wrap:hover .jamb-scroll-track,
.jamb-scroll-track:hover {
  animation-play-state: paused !important;
}

@keyframes jambScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.jamb-headline-text {
  display: inline-flex !important;
  align-items: center !important;
  font-family: 'Archivo', sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: #22328c !important;
  color: var(--consa-blue, #22328c) !important;
  letter-spacing: 0.02em !important;
  text-decoration: none !important;
}

@media (min-width: 640px) {
  .jamb-headline-text {
    font-size: 12.5px !important;
  }
}

.jamb-headline-text:hover {
  color: #152060 !important;
  color: var(--consa-blue-dark, #152060) !important;
  text-decoration: underline !important;
}

.jamb-dot-separator {
  display: inline-block !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background-color: #22328c !important;
  background-color: var(--consa-blue, #22328c) !important;
  margin: 0 1rem !important;
  flex-shrink: 0 !important;
}

/* ==========================================================================
   Smooth Scroll Reveal Experience (Enhanced Interactivity)
   ========================================================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.is-revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.scroll-reveal-scale {
  opacity: 0;
  transform: scale(0.96) translateY(18px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal-scale.is-revealed {
  opacity: 1 !important;
  transform: scale(1) translateY(0) !important;
}

/* Stagger Delays for Cascade Scroll */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Interactive Scroll Depth Progress Bar (Top of Screen) */
#scrollProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #22328c 0%, #3b82f6 60%, #d91b24 100%);
  z-index: 10002;
  pointer-events: none;
  transition: width 0.12s ease-out;
}

/* Print Styles */
@media print {

  .jamb-bottom-ticker,
  header,
  footer,
  .no-print,
  button {
    display: none !important;
  }

  body {
    padding-bottom: 0 !important;
  }
}

/* ==========================================================================
   Interactive Modals: Photobooth Gallery Lightbox & Smart News Reader
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(9, 14, 36, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-in-out;
}

@media (max-width: 640px) {
  .modal-overlay {
    padding: 0.5rem;
  }
}

#mobileMenuDrawerPanel {
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s ease-in-out;
  will-change: transform;
}

.modal-overlay.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.modal-content-card {
  transform: scale(0.96) translateY(8px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content-card {
  transform: scale(1) translateY(0);
}

/* ==========================================================================
   Mature Institutional Preloader & Page Entrance Transitions
   ========================================================================== */
#pagePreloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

#pagePreloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.02);
}

.preloader-crest-wrapper {
  position: relative;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2.5px solid rgba(34, 50, 140, 0.12);
  border-top-color: #22328c;
  border-right-color: #22328c;
  animation: preloaderSpin 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes preloaderSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.preloader-bar-wrap {
  width: 130px;
  height: 3px;
  background-color: rgba(34, 50, 140, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 1.25rem;
  position: relative;
}

.preloader-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22328c, #3b50c4, #22328c);
  border-radius: 9999px;
  animation: preloaderBarIndeterminate 1.2s infinite ease-in-out;
}

@keyframes preloaderBarIndeterminate {
  0% { left: -40%; width: 40%; }
  50% { left: 20%; width: 60%; }
  100% { left: 100%; width: 40%; }
}

/* Page Navigation Progress Indicator Bar at Very Top of Screen */
#navProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #22328c 0%, #3b82f6 70%, #d91b24 100%);
  z-index: 10000;
  pointer-events: none;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

/* Smooth Matured Page Entrance */
main {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

body.page-loaded main {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ==========================================================================
   Compelling WhatsApp Card Interactive Animations (Contact Page)
   ========================================================================== */
.whatsapp-glow-card {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border: 1.5px solid #86efac;
  box-shadow: 0 4px 20px -2px rgba(37, 211, 102, 0.15);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.whatsapp-glow-card:hover {
  transform: translateY(-3px);
  border-color: #22c55e;
  box-shadow: 0 12px 30px -4px rgba(37, 211, 102, 0.25);
}

.whatsapp-cta-btn {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  position: relative;
  overflow: hidden;
}

.whatsapp-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s ease;
}

.whatsapp-cta-btn:hover::before {
  left: 140%;
}

.whatsapp-cta-btn:hover {
  transform: translateY(-1.5px) scale(1.015);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.whatsapp-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  border: 1px solid #bbf7d0;
}

/* ==========================================================================
   Campus Gallery Filter Buttons (Rock-Solid Text Visibility & Active States)
   ========================================================================== */
.gallery-filter-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.5rem 1.25rem !important;
  font-family: 'Archivo', 'Inter', system-ui, sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  border-radius: 9999px !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  user-select: none !important;
}

/* Active Filter Pill */
.gallery-filter-btn.active-filter,
.gallery-filter-btn.is-active,
.gallery-filter-btn[data-category="all"]:not(.inactive) {
  background-color: #22328c !important;
  color: #ffffff !important;
  border: 1.5px solid #22328c !important;
  box-shadow: 0 2px 8px rgba(34, 50, 140, 0.25) !important;
}

/* Inactive Filter Pills (Always visible dark ink text) */
.gallery-filter-btn.inactive,
.gallery-filter-btn:not(.active-filter):not(.is-active) {
  background-color: #ffffff !important;
  color: #0b1233 !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.gallery-filter-btn:not(.active-filter):not(.is-active):hover {
  background-color: #f8fafc !important;
  color: #0b1233 !important;
  border-color: #94a3b8 !important;
  transform: translateY(-1px) !important;
}



/* ==========================================================================
   Mature Institutional Preloader & Page Entrance Transitions
   ========================================================================== */
#pagePreloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

#pagePreloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.02);
}

.preloader-crest-wrapper {
  position: relative;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2.5px solid rgba(34, 50, 140, 0.12);
  border-top-color: #22328c;
  border-right-color: #22328c;
  animation: preloaderSpin 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes preloaderSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.preloader-bar-wrap {
  width: 130px;
  height: 3px;
  background-color: rgba(34, 50, 140, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 1.25rem;
  position: relative;
}

.preloader-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22328c, #3b50c4, #22328c);
  border-radius: 9999px;
  animation: preloaderBarIndeterminate 1.2s infinite ease-in-out;
}

@keyframes preloaderBarIndeterminate {
  0% { left: -40%; width: 40%; }
  50% { left: 20%; width: 60%; }
  100% { left: 100%; width: 40%; }
}

/* Page Navigation Progress Indicator Bar at Very Top of Screen */
#navProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #22328c 0%, #3b82f6 70%, #d91b24 100%);
  z-index: 10000;
  pointer-events: none;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

/* Smooth Matured Page Entrance */
main {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

body.page-loaded main {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ==========================================================================
   Compelling WhatsApp Card Interactive Animations (Contact Page)
   ========================================================================== */
.whatsapp-glow-card {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border: 1.5px solid #86efac;
  box-shadow: 0 4px 20px -2px rgba(37, 211, 102, 0.15);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.whatsapp-glow-card:hover {
  transform: translateY(-3px);
  border-color: #22c55e;
  box-shadow: 0 12px 30px -4px rgba(37, 211, 102, 0.25);
}

.whatsapp-cta-btn {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  position: relative;
  overflow: hidden;
}

.whatsapp-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s ease;
}

.whatsapp-cta-btn:hover::before {
  left: 140%;
}

.whatsapp-cta-btn:hover {
  transform: translateY(-1.5px) scale(1.015);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.whatsapp-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  border: 1px solid #bbf7d0;
}

/* ==========================================================================
   Campus Gallery Filter Buttons (Rock-Solid Text Visibility & Active States)
   ========================================================================== */
.gallery-filter-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.5rem 1.25rem !important;
  font-family: 'Archivo', 'Inter', system-ui, sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  border-radius: 9999px !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  user-select: none !important;
}

/* Active Filter Pill */
.gallery-filter-btn.active-filter,
.gallery-filter-btn.is-active,
.gallery-filter-btn[data-category="all"]:not(.inactive) {
  background-color: #22328c !important;
  color: #ffffff !important;
  border: 1.5px solid #22328c !important;
  box-shadow: 0 2px 8px rgba(34, 50, 140, 0.25) !important;
}

/* Inactive Filter Pills (Always visible dark ink text) */
.gallery-filter-btn.inactive,
.gallery-filter-btn:not(.active-filter):not(.is-active) {
  background-color: #ffffff !important;
  color: #0b1233 !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.gallery-filter-btn:not(.active-filter):not(.is-active):hover {
  background-color: #f8fafc !important;
  color: #0b1233 !important;
  border-color: #94a3b8 !important;
  transform: translateY(-1px) !important;
}


