/* ═══════════════════════════════════════════
   B.R. Harne College — Premium UI Design System
   ═══════════════════════════════════════════ */

:root {
  /* Brand & Primary — Maroon/Gold identity derived from the college crest */
  --color-primary-900: #4E1414; /* deepest maroon */
  --color-primary-700: #7A1F1F; /* PRIMARY maroon */
  --color-primary-500: #9A3B3B; /* maroon hover/mid */
  --color-primary-100: #F6E9E9; /* maroon tint */
  --color-accent-600: #E8A317;  /* gold accent */
  --color-accent-100: #FBF1DA;  /* gold tint */
  --color-maroon-700: #7A1F1F;
  --color-orange-500: #E8611A;  /* rare highlight */

  /* Neutrals */
  --color-ink-900: #111827;
  --color-ink-700: #374151;
  --color-ink-500: #6B7280;
  --color-line-200: #E5E7EB;
  --color-surface-50: #F9FAFB;
  --color-surface-0: #FFFFFF;

  /* Semantic / Status */
  --color-success: #137A4B;
  --color-warning: #B45309;
  --color-danger: #B42318;
  --color-info: #1E5A97;

  /* Spacing Scale (4px base) */
  --space-0: 0px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  /* Elevation / Shadows */
  --elevation-0: none;
  --elevation-1: 0 1px 3px rgba(17,24,39,0.08);
  --elevation-2: 0 4px 12px rgba(17,24,39,0.10);
  --elevation-3: 0 12px 32px rgba(17,24,39,0.16);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;

  /* Typography */
  --font-family: 'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --focus-ring: rgba(122, 31, 31, 0.5);
}

/* ═══════════════════════════════════════════
   Base Styles & Reset
   ═══════════════════════════════════════════ */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-ink-900);
  background-color: var(--color-surface-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Headings Typography */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-serif);
  color: var(--color-primary-900);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.25rem, 4vw, 3rem); } /* text-display / h1 */
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); } /* text-h2 */
h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); } /* text-h3 */
h4 { font-size: 1.125rem; } /* text-h4 */

p {
  color: var(--color-ink-700);
  margin-bottom: var(--space-4);
}

.text-small { font-size: 0.875rem; line-height: 1.4; }
.text-xs { font-size: 0.75rem; line-height: 1.4; }

::selection {
  background-color: var(--color-primary-700);
  color: white;
}

/* Focus States (WCAG AA) */
*:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-surface-50);
}
::-webkit-scrollbar-thumb {
  background: var(--color-ink-500);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-ink-700);
}

/* ═══════════════════════════════════════════
   Legacy & Utility Classes 
   (Mapped to new tokens to prevent breaking old pages)
   ═══════════════════════════════════════════ */

.text-navy { color: var(--color-primary-900) !important; }
.text-saffron { color: var(--color-accent-600) !important; }
.bg-navy { background-color: var(--color-primary-900) !important; color: white; }
.bg-navy-dark { background-color: #3A0E0E !important; color: white; }
.bg-saffron { background-color: var(--color-accent-600) !important; color: white; }

/* ═══════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════ */

.btn {
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-5);
  transition: all 0.2s ease;
  min-height: 44px; /* Touch target */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.btn-primary {
  background-color: var(--color-primary-700);
  color: white;
  border: none;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--color-primary-500);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--elevation-1);
}

.btn-saffron {
  background-color: var(--color-accent-600);
  color: white;
  border: none;
}
.btn-saffron:hover, .btn-saffron:focus {
  background-color: #A6761A;
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--elevation-1);
}

.btn-outline-primary {
  color: var(--color-primary-700);
  border: 1px solid var(--color-primary-700);
  background: transparent;
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: var(--color-primary-100);
  color: var(--color-primary-900);
}

/* ═══════════════════════════════════════════
   Cards & Layouts
   ═══════════════════════════════════════════ */

.premium-card {
  background: var(--color-surface-0);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line-200);
  padding: var(--space-6);
  box-shadow: var(--elevation-0);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}
.premium-card.hoverable:hover {
  box-shadow: var(--elevation-1);
  transform: translateY(-2px);
}
.premium-card.glass {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.section-padding {
  padding: var(--space-6) 0; /* 24px on mobile */
}
@media (min-width: 768px) {
  .section-padding {
    padding: var(--space-8) 0; /* 32px on desktop */
  }
}

/* Events sits directly above Leadership; tighten the seam between them */
#events {
  padding-bottom: var(--space-8);
}
#leadership {
  padding-top: var(--space-8);
}

.section-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-accent-600);
  margin: var(--space-4) auto 0;
  border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════
   Navbar (Mobile-First Slide-In Drawer)
   ═══════════════════════════════════════════ */

.main-navbar {
  background-color: var(--color-primary-900);
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}

.main-navbar.scrolled {
  box-shadow: var(--elevation-2);
}

.main-navbar .nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: var(--space-4) var(--space-3);
  transition: color 0.2s;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link:focus {
  color: var(--color-accent-600);
}

.dropdown-menu {
  border: 1px solid var(--color-line-200);
  border-radius: var(--radius-md);
  box-shadow: var(--elevation-2);
  margin-top: 0;
  padding: var(--space-2) 0;
}

.dropdown-item {
  padding: var(--space-3) var(--space-5);
  font-size: 0.875rem;
  color: var(--color-ink-700);
  transition: all 0.2s;
  min-height: 44px; /* Touch target */
  display: flex;
  align-items: center;
}

.dropdown-item:hover, .dropdown-item:focus {
  background-color: var(--color-primary-100);
  color: var(--color-primary-900);
}

/* Mobile Drawer Styles */
@media (max-width: 991.98px) {
  .navbar-collapse {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--color-surface-0);
    z-index: 1050;
    overflow-y: auto;
    transition: left 0.3s ease-in-out;
    padding: var(--space-6);
    box-shadow: var(--elevation-3);
  }
  
  .navbar-collapse.show {
    left: 0;
  }
  
  .main-navbar .nav-link {
    color: var(--color-ink-900);
    border-bottom: 1px solid var(--color-line-200);
    padding: var(--space-4) 0;
  }
  
  .main-navbar .nav-link:hover {
    color: var(--color-primary-700);
  }
  
  .dropdown-menu {
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--color-primary-100);
    border-radius: 0;
    margin-left: var(--space-3);
    padding: 0;
  }

  .drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(17, 24, 39, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
  }

  .drawer-overlay.show {
    opacity: 1;
    visibility: visible;
  }
}

/* ═══════════════════════════════════════════
   Hero Slider
   ═══════════════════════════════════════════ */

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  background: var(--color-primary-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}
.hero-slide.active { opacity: 1; z-index: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 2;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 3;
  color: white;
  padding: 0 var(--space-6);
}

.hero-content-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.hero-content h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: white;
  line-height: 1.1;
}
.hero-content p {
  color: rgba(255,255,255,0.9);
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: var(--space-6);
  max-width: 600px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  border: 2px solid white;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 var(--space-1);
  display: inline-block;
  padding: 0;
}
.hero-dot.active {
  background: var(--color-accent-600);
  border-color: var(--color-accent-600);
  transform: scale(1.2);
}

/* ═══════════════════════════════════════════
   What's New Ticker
   ═══════════════════════════════════════════ */

.ticker-wrapper {
  overflow: hidden;
  height: 280px;
  position: relative;
}
.ticker-wrapper::before,
.ticker-wrapper::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 24px;
  z-index: 2;
  pointer-events: none;
}
.ticker-wrapper::before {
  top: 0;
  background: linear-gradient(to bottom, var(--color-surface-0), transparent);
}
.ticker-wrapper::after {
  bottom: 0;
  background: linear-gradient(to top, var(--color-surface-0), transparent);
}

/* Static, scrollable list instead of a looping marquee: a marquee only loops
   seamlessly if its content is duplicated to exactly double height, which breaks
   the moment the notice count changes. A scrollable list stays correct always. */
.ticker-content {
  padding: var(--space-4);
  overflow-y: auto;
  height: 100%;
}

.ticker-item {
  border-bottom: 1px solid var(--color-line-200);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-3);
}
.ticker-item:last-child {
  border-bottom: none;
}
.ticker-item a {
  text-decoration: none;
  color: var(--color-ink-700);
  display: flex;
  gap: var(--space-2);
  font-size: 0.875rem;
  transition: color 0.2s;
  align-items: flex-start;
}
.ticker-item a:hover {
  color: var(--color-primary-700);
}

.new-badge {
  display: inline-flex;
  background-color: var(--color-danger);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════ */
.footer-link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  margin-bottom: var(--space-2);
  font-size: 0.875rem;
  min-height: 24px;
}
.footer-link:hover {
  color: var(--color-accent-600);
}

/* ═══════════════════════════════════════════
   Animations
   ═══════════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}/* ═══════════════════════════════════════════
   Stage 1: CSS Animation & Scroll-Spy System
   ═══════════════════════════════════════════ */
.animate-fade-in { animation: fadeIn 0.6s ease-out forwards; }
.animate-slide-up { animation: slideUp 0.6s ease-out forwards; }

/* Scroll-spy side navigation */
.scrollspy-dots {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 16px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--elevation-2);
}
.scrollspy-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-ink-500);
  border: none;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.scrollspy-dot:hover {
  background: var(--color-accent-600);
  transform: scale(1.3);
}
.scrollspy-dot.active {
  background: var(--color-primary-700);
  transform: scale(1.5);
  box-shadow: 0 0 0 4px rgba(122, 31, 31, 0.2);
}
.scrollspy-dot::after {
  content: attr(data-title);
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: var(--color-primary-900);
  color: white;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  white-space: nowrap;
  box-shadow: var(--elevation-1);
}
.scrollspy-dot:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Floating Actions */
.sticky-apply-btn {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 999;
  box-shadow: var(--elevation-3);
  transition: all 0.3s;
}
.sticky-apply-btn:hover {
  transform: translateY(-3px);
}
.back-to-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  background: var(--color-accent-600);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--elevation-3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s;
}
.back-to-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top-btn:hover {
  background: var(--color-primary-700);
  transform: translateY(-3px);
}

/* ═══════════════════════════════════════════
   Stage 2: Cinematic Hero Slider & Ken Burns
   ═══════════════════════════════════════════ */
.hero-slider-upgraded {
  height: 70vh;
  min-height: 480px;
  max-height: 700px;
  position: relative;
  overflow: hidden;
  background: #000;
}
.hero-slide-upgraded {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 1;
}
.hero-slide-upgraded.active {
  opacity: 1;
  z-index: 2;
}
.hero-slide-upgraded img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}
.hero-slide-upgraded.active img {
  animation: kenBurns 12s linear forwards;
}
@keyframes kenBurns {
  0% { transform: scale(1.05) translate(0, 0); }
  50% { transform: scale(1.12) translate(-1%, -0.5%); }
  100% { transform: scale(1.05) translate(0, 0); }
}

.hero-overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.25) 100%);
  z-index: 3;
}
.hero-content-premium {
  position: relative;
  z-index: 4;
  height: 100%;
  display: flex;
  align-items: center;
}

/* ═══════════════════════════════════════════
   Stage 3: Advanced Card System & Reveals
   ═══════════════════════════════════════════ */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stat counter premium cards */
.premium-stat-card {
  background: var(--color-surface-0);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  border: 1px solid var(--color-line-200);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.premium-stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-primary-700);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.premium-stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--elevation-3);
  border-color: rgba(122, 31, 31, 0.15);
}
.premium-stat-card:hover::after {
  transform: scaleX(1);
}
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary-700);
  line-height: 1;
  margin-bottom: 8px;
}

/* Swiper custom styles */
.swiper-button-premium {
  color: var(--color-primary-700) !important;
  background: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: var(--elevation-2);
  border: 1px solid var(--color-line-200);
  transition: all 0.3s;
}
.swiper-button-premium::after {
  font-size: 18px !important;
  font-weight: bold;
}
.swiper-button-premium:hover {
  background: var(--color-primary-700);
  color: white !important;
}

/* Marquee infinite scroll styles */
.marquee-container {
  overflow: hidden;
  width: 100%;
  display: flex;
  position: relative;
  background: white;
  padding: 30px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: scrollMarquee 25s linear infinite;
  gap: 60px;
}
.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-item {
  width: 150px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.marquee-item:hover {
  transform: scale(1.08);
}
@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Premium Departments & Highlights Cards */
.department-card-premium {
  background: white;
  border-radius: var(--radius-xl);
  padding: 32px;
  border: 1px solid var(--color-line-200);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.department-card-premium:hover {
  transform: translateY(-8px);
  box-shadow: var(--elevation-3);
  border-color: rgba(122, 31, 31, 0.2);
}
.department-card-premium .icon-chip {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  transition: all 0.3s;
}
.department-card-premium:hover .icon-chip {
  transform: scale(1.1) rotate(5deg);
}

/* Prevent Swiper's default flex-stretch from forcing every event card to match the height of the tallest slide */
.swiper-events .swiper-wrapper,
.swiper-departments .swiper-wrapper {
  align-items: flex-start;
  height: auto; /* override Swiper's default height:100%, which otherwise leaves a large empty gap below the cards */
  transition-timing-function: linear !important;
}
.swiper-events .swiper-slide,
.swiper-departments .swiper-slide {
  height: auto;
}

/* Upcoming Events dates styling */
.event-date-chip {
  background: var(--color-primary-100);
  color: var(--color-primary-700);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  min-width: 70px;
  font-weight: 700;
  box-shadow: var(--elevation-1);
}

/* Leadership quote cards */
.quote-card-premium {
  border-left: 5px solid var(--color-accent-600);
  background: white;
  padding: 32px;
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  box-shadow: var(--elevation-2);
  transition: all 0.3s;
}
.quote-card-premium:hover {
  box-shadow: var(--elevation-3);
  transform: translateX(5px);
}

/* Accessibility prefers-reduced-motion overrides */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .scrollspy-dots, .back-to-top-btn, .sticky-apply-btn {
    transition: none !important;
  }
  .back-to-top-btn.visible {
    transform: none !important;
  }
  .hero-slide-upgraded.active img {
    animation: none !important;
  }
  .marquee-track {
    animation: none !important;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 991px) {
  .scrollspy-dots {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════
   Signature Elements (Premium UI)
   ═══════════════════════════════════════════ */

/* Gold Scroll Progress Bar */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 9999;
}
.scroll-progress-bar {
  height: 100%;
  background: var(--color-accent-600);
  width: 0%;
  transition: width 0.1s ease-out;
}

/* Oversized Crest Watermark */
.crest-watermark {
  position: absolute;
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  width: 800px;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

/* Section Index Labels */
.section-index-label {
  display: block;
  font-family: var(--font-serif);
  color: var(--color-accent-600);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  letter-spacing: 0.05em;
}

/* Duotone / Maroon Tinted Image Treatment */
.duotone-maroon {
  position: relative;
  display: inline-block;
}
.duotone-maroon::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--color-primary-700);
  mix-blend-mode: color;
  opacity: 0.4;
  pointer-events: none;
}
.duotone-maroon img {
  filter: grayscale(100%) contrast(1.2);
}

/* Gold Underline Sweep for Links */
.hover-underline-sweep {
  position: relative;
  text-decoration: none;
  display: inline-block;
}
.hover-underline-sweep::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--color-accent-600);
  transition: width 0.3s ease;
}
.hover-underline-sweep:hover::after {
  width: 100%;
}

/* Blinking NEW Badge Animation */
@keyframes blinkBadge {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.95); }
}
.new-badge {
  display: inline-block;
  animation: blinkBadge 1.2s infinite ease-in-out;
  background: var(--color-accent-600) !important;
  color: white !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  letter-spacing: 0.05em;
}
