/* ==========================================================================
   ST. JOSEPH'S COLLEGE OF NURSING, KALAMASSERY (ST. JOSEPH'S COLLEGE OF NURSING)
   Official Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Playfair+Display:ital,wght@0,600;0,700;1,400;1,600&display=swap');

:root {
  --color-primary-navy: #09233f;
  --color-primary-blue: #164e87;
  --color-accent-blue: #1d6fd8;
  --color-medical-red: #d32f2f;
  --color-medical-red-dark: #b71c1c;
  --color-heritage-gold: #c58925;
  --color-gold-light: #fef3c7;
  --color-surface-light: #f8fafc;
  --color-surface-card: #ffffff;
  --color-text-main: #1e293b;
  --color-text-muted: #64748b;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, Cambria, serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: #ffffff;
  overflow-x: hidden;
  max-width: 100%;
}

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

.font-serif-academic {
  font-family: var(--font-serif);
}

/* Glassmorphism Navigation */
.nav-glass {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px -2px rgba(9, 35, 63, 0.08);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-blue);
}

/* Academic Motto Banner */
.motto-ribbon {
  background: linear-gradient(135deg, #09233f 0%, #164e87 50%, #0d3b66 100%);
  position: relative;
  overflow: hidden;
}

.motto-ribbon::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(circle at 90% 10%, rgba(211, 47, 47, 0.15), transparent 40%),
              radial-gradient(circle at 10% 90%, rgba(197, 137, 37, 0.15), transparent 40%);
  pointer-events: none;
}

/* Card Hover Elevation */
.card-academic {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid #e2e8f0;
}
.card-academic:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px -10px rgba(9, 35, 63, 0.12);
  border-color: #cbd5e1;
}

/* Gradient Borders */
.gradient-border-left {
  border-left: 4px solid var(--color-medical-red);
}

.gradient-border-gold {
  border-left: 4px solid var(--color-heritage-gold);
}

.gradient-border-blue {
  border-left: 4px solid var(--color-accent-blue);
}

/* Badge Glow */
.badge-pulse {
  animation: pulse-ring 2.5s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(211, 47, 47, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
  }
}

/* Floating Action Button */
.floating-action-btn {
  box-shadow: 0 8px 24px rgba(9, 35, 63, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.floating-action-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 30px rgba(9, 35, 63, 0.28);
}

/* Gallery image hover effect */
.gallery-item {
  overflow: hidden;
  position: relative;
}
.gallery-item img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover img {
  transform: scale(1.08);
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background-color: rgba(9, 35, 63, 0.95);
  backdrop-filter: blur(8px);
}
.lightbox-modal.active {
  display: flex;
}

/* Toast alert */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-notice.show {
  transform: translateY(0);
}

/* Custom marquee */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
}
.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
}
@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
