/* ============================================================================
   Shashan Robotics & Infotech Pvt. Ltd. — Global Public Styles
   ============================================================================ */

html {
  scroll-behavior: smooth;
}

::selection {
  background-color: rgba(220, 38, 38, 0.3);
  color: #ffffff;
}

*:focus-visible {
  outline: 2px solid var(--primary-red-accent);
  outline-offset: 2px;
}

/* Theme Variables */
:root {
  --primary-red: #DC2626;
  --primary-red-hover: #B91C1C;
  --primary-red-accent: #EF4444;
  --primary-blue: #1D4ED8;
  --primary-blue-mid: #184E98;
  --primary-blue-hover: #1E40AF;
  --primary-blue-accent: #3B82F6;
  --primary-blue-light: rgba(29, 78, 216, 0.07);
  --brand-gradient: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-blue) 100%);
  --brand-gradient-hover: linear-gradient(135deg, var(--primary-red-hover) 0%, var(--primary-blue-hover) 100%);
  --rich-black: #0F172A;
  --dark-bg: #F8FAFC;
  --light-bg: #FFFFFF;
  --dark-gray: #E2E8F0;
  --text-dark: #0F172A;
  --text-light: #1E293B;
  --text-muted: #64748B;
  --nav-text: #374151;
  --nav-text-hover: #1D4ED8;
  --border-color: rgba(15, 23, 42, 0.08);
  --nav-border: rgba(15, 23, 42, 0.07);
  --glass-bg: rgba(255, 255, 255, 0.97);
  --glass-border: rgba(15, 23, 42, 0.06);
  --footer-bg: #F8FAFC;
  --footer-border: #e5e7eb;
  --bg-body: #ffffff;
  --bg-card: #ffffff;
  --text-body: #1E293B;
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.03);
  --border-light: rgba(15, 23, 42, 0.06);

  /* Design System Extensions */
  --font-display: 'Space Grotesk', 'Poppins', sans-serif;
  --font-body: 'Inter', 'Poppins', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 50px;

  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 20px 40px rgba(15, 23, 42, 0.08);
  --shadow-nav: 0 4px 20px rgba(15, 23, 42, 0.02);

  --section-alt-bg: #F8FAFC;
  --cta-gradient: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);

  /* Spacing Scale */
  --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;
}

/* Core Settings */
body.public-body {
  background-color: #ffffff;
  color: var(--text-light);
  font-family: var(--font-body);
  /* clip (not hidden) avoids creating a scroll container,
     allowing the hero section to bleed edge-to-edge via negative margins */
  overflow-x: clip;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
p { font-size: clamp(0.9rem, 1.5vw, 1.05rem); color: var(--text-muted); line-height: 1.6; }
.small { font-size: clamp(0.8rem, 1.2vw, 0.9rem) !important; }

/* Premium Design System Classes */
.card-premium {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  height: 100%;
}
.card-premium:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(29, 78, 216, 0.15);
}

.btn-primary-custom {
  background-color: var(--primary-blue);
  color: #ffffff !important;
  border: 1.5px solid var(--primary-blue);
  font-weight: 600;
  transition: all 0.25s ease;
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.15);
}
.btn-primary-custom:hover {
  background-color: var(--primary-blue-hover);
  border-color: var(--primary-blue-hover);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.3);
}

.btn-ghost-custom {
  background: transparent;
  color: var(--primary-blue) !important;
  border: 1.5px solid rgba(29, 78, 216, 0.2);
  font-weight: 600;
  transition: all 0.25s ease;
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-ghost-custom:hover {
  background-color: var(--primary-blue-light);
  border-color: var(--primary-blue);
  color: var(--primary-blue) !important;
  transform: translateY(-1px);
}

.section-alt-bg {
  background-color: var(--section-alt-bg) !important;
}

.section-cta-bg {
  background: var(--cta-gradient) !important;
  color: #ffffff !important;
}
.section-cta-bg h1, .section-cta-bg h2, .section-cta-bg h3, .section-cta-bg h4, .section-cta-bg p {
  color: #ffffff !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--dark-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--dark-gray);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue);
}

/* Custom Cursor */
.custom-cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;

  /* transform is deliberately NOT transitioned. initCustomCursor() rewrites the
     transform every rAF and already lerps its own easing; a 150ms CSS transition
     on top re-tweened each frame's result, which is what made the cursor lag and
     rubber-band behind the pointer. Colour/opacity still transition. */
  transition: opacity 0.2s ease-out, background-color 0.2s ease-out,
              border-color 0.2s ease-out;
  will-change: transform;

  opacity: 0;
  width: 24px;
  height: 24px;
  background-color: rgba(29, 78, 216, 0.08);
  border: 1.5px solid rgba(29, 78, 216, 0.35);
}

/* Show custom cursor on mouse movement */
body:hover .custom-cursor-outline {
  opacity: 1;
}

/* Hide on prefers-reduced-motion / touch devices */
@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  .custom-cursor-outline {
    display: none !important;
  }
}
/* Buttons & General CTA styles */
.btn-danger-custom {
  background-color: var(--primary-blue);
  color: #ffffff !important;
  border: 1.5px solid var(--primary-blue);
  font-weight: 600;
  transition: all 0.25s ease;
  border-radius: 50px;
  padding: 0.6rem 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.15);
}

.btn-danger-custom:hover {
  background-color: var(--primary-blue-hover);
  border-color: var(--primary-blue-hover);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.3);
}

.btn-outline-custom {
  border: 1.5px solid var(--primary-blue);
  color: var(--primary-blue) !important;
  background: transparent;
  font-weight: 600;
  transition: all 0.25s ease;
  border-radius: 50px;
  padding: 0.6rem 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline-custom:hover {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.2);
}

/* Hero Section Specific Buttons (ensure exact shapes and colors matching the screenshot) */
.hero-section .btn-danger-custom {
  background-color: #dc2626 !important;
  border-color: #dc2626 !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3) !important;
}
.hero-section .btn-danger-custom:hover {
  background-color: #b91c1c !important;
  border-color: #b91c1c !important;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45) !important;
}

/* Secondary hero CTA ("Browse Store").
   This block used to force brand blue on both border and text. On a light page
   that reads fine, but the hero sits on an uncontrolled photo, so blue-on-image
   with no backing left the label effectively unreadable. It becomes a white
   glass button here and inverts to solid white on hover.
   Note: the border must be set as a shorthand with !important, because the base
   .btn-outline-custom rule declares `border:` shorthand — a longhand
   border-color would lose to it. */
.hero-section .btn-outline-custom {
  border: 1.5px solid rgba(255, 255, 255, 0.75) !important;
  color: #ffffff !important;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.hero-section .btn-outline-custom:hover,
.hero-section .btn-outline-custom:focus-visible {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  color: var(--primary-blue) !important;
  text-shadow: none;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.28);
}

/* Page Load Animation classes */
.animate-on-load {
  opacity: 0;
  will-change: opacity, transform;
}
.animate-on-load.animate-fade-up {
  transform: translateY(15px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-on-load.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================================
   Header & Navbar — Clean white softbenz-inspired design
   ============================================================================ */
.bg-dark-custom {
  background-color: var(--rich-black);
}

/* ---- Main Navbar ---- */
.navbar {
  background-color: #ffffff !important;
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  position: relative;
  overflow: visible;
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
  background-color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding-top: 0.3rem !important;
  padding-bottom: 0.3rem !important;
}

.navbar-brand img {
  filter: none;
  transition: opacity 0.2s ease;
}
.navbar-brand:hover img {
  opacity: 0.85;
}

/* ---- Nav Links ---- */
.navbar-nav .nav-link {
  position: relative;
  color: var(--nav-text) !important;
  font-weight: 500;
  font-size: 0.93rem;
  padding: 0.45rem 0.85rem !important;
  border-radius: 0;
  transition: color 0.2s ease;
  white-space: nowrap;
  background: transparent !important;
  box-shadow: none !important;
}

.navbar-nav .dropdown-toggle::after {
  display: none !important;
}

.navbar-nav .nav-link:hover {
  color: var(--nav-text-hover) !important;
}

.navbar-nav .nav-link.active {
  color: var(--primary-blue) !important;
  font-weight: 600;
}

/* ---- Auth Buttons ---- */
.l__button--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-blue);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.45rem 1.6rem;
  border-radius: 50px;
  border: 1.5px solid var(--primary-blue);
  text-decoration: none !important;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.l__button--primary:hover {
  background-color: var(--primary-blue-hover);
  border-color: var(--primary-blue-hover);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.25);
  text-decoration: none !important;
}

.l__button--border {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--primary-blue) !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.45rem 1.6rem;
  border-radius: 50px;
  border: 1.5px solid var(--primary-blue);
  text-decoration: none !important;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.l__button--border:hover {
  background-color: var(--primary-blue);
  color: #ffffff !important;
  border-color: var(--primary-blue);
  transform: translateY(-1px);
  text-decoration: none !important;
}
/* ---- Cart Icon ---- */
.header-cart-icon {
  color: var(--nav-text) !important;
  position: relative;
  transition: color 0.2s ease;
}
.header-cart-icon:hover {
  color: var(--primary-blue) !important;
  filter: none;
}

/* ---- User Dropdown Button ---- */
.btn-outline-custom {
  border: 1.5px solid var(--nav-border);
  color: var(--nav-text);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.btn-outline-custom:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background: var(--primary-blue-light);
}

/* ---- Responsive: Large desktop ---- */
@media (min-width: 992px) and (max-width: 1200px) {
  .navbar-nav .nav-link {
    padding: 0.45rem 0.55rem !important;
    font-size: 0.85rem;
  }
}

/* ---- Mobile Toggler ---- */
.custom-toggler {
  width: 34px;
  height: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  background: transparent !important;
  border: 1.5px solid rgba(55, 65, 81, 0.3) !important;
  border-radius: 6px !important;
  cursor: pointer;
}
.toggler-bar {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--nav-text);
  border-radius: 2px;
  transition: all 0.25s ease;
}
.custom-toggler.collapsed .bar-top    { transform: none; }
.custom-toggler.collapsed .bar-middle { opacity: 1; }
.custom-toggler.collapsed .bar-bottom { transform: none; }
.custom-toggler:not(.collapsed) .bar-top    { transform: translateY(7px) rotate(45deg); }
.custom-toggler:not(.collapsed) .bar-middle { opacity: 0; }
.custom-toggler:not(.collapsed) .bar-bottom { transform: translateY(-7px) rotate(-45deg); }

/* ---- Dropdown ---- */
.dropdown-menu {
  border: 1px solid var(--nav-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 0.4rem;
}
.dropdown-item {
  border-radius: 6px;
  font-size: 0.875rem;
  transition: background-color 0.15s ease;
}
.dropdown-item:hover {
  background-color: var(--primary-blue-light);
  color: var(--primary-blue);
}

.dropdown-menu-dark {
  background-color: var(--rich-black);
}

/* @keyframes Animations */
@keyframes heroGlow {
  0%, 100% { opacity: 0.15; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.25; transform: translate(-50%, -50%) scale(1.15); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes borderGlow {
  0%, 100% { box-shadow: 0 8px 30px rgba(220, 38, 38, 0.15); }
  50% { box-shadow: 0 8px 40px rgba(220, 38, 38, 0.3), 0 0 20px rgba(220, 38, 38, 0.15); }
}

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

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseRed {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

/* Default state before animation */
.animate-on-scroll:not([class*="animate-fade-"]):not([class*="animate-zoom-"]):not([class*="animate-blur-"]) {
  transform: translateY(15px);
}

.animate-fade-up {
  transform: translateY(20px);
}
.animate-fade-down {
  transform: translateY(-20px);
}
.animate-fade-left {
  transform: translateX(-15px);
}
.animate-fade-right {
  transform: translateX(15px);
}
.animate-zoom-in {
  transform: scale(0.97);
}
.animate-blur-in {
  filter: blur(4px);
  transform: translateY(10px);
}

/* Animated active state triggers */
.animate-on-scroll.animated {
  opacity: 1;
  transform: translate(0) scale(1);
  filter: blur(0);
}

/* Transition Delays for Staggered grids */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  min-height: clamp(630px, 92vh, 870px);
  max-height: 98vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--dark-bg);
  /* Bleed to viewport edges — cancel any parent horizontal padding */
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.1) 0%, rgba(29, 78, 216, 0.08) 50%, transparent 70%);
  animation: heroGlow 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* Background Media Container */
.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

/* Background Image or Video */
.hero-bg-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-bg-position, center center);
  transform: scale(1.01); /* eliminates sub-pixel edge gaps */
  transform-origin: center;
}

/* Slightly Black Fade Overlay */
.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.25) 0%, rgba(10, 10, 10, 0.45) 60%, rgba(10, 10, 10, 0.55) 100%);
  z-index: 2;
}

.hero-section > .container {
  position: relative;
  z-index: 3;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  background: none !important;
  -webkit-text-fill-color: initial !important;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-float {
  animation: float 5s ease-in-out infinite;
}

.public-main-content {
  animation: fadeInPage 0.5s ease-out;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #f1f5f9 !important;
  max-width: 750px;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Cards & Grid Elements */
.card-custom {
  background-color: var(--rich-black);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-custom:hover {
  transform: translateY(-5px);
  border-color: rgba(29, 78, 216, 0.4) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(220, 38, 38, 0.15), 0 0 15px rgba(29, 78, 216, 0.15);
}

/* Sponsors Section */
.sponsor-tier-title {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.sponsor-tier-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-red);
}

/* Fallback colour for browsers without background-clip:text — it must match the
   gradient's dark tone, not white. This was #ffffff, so anything that failed to
   support the clip painted "Platinum Sponsors" white on a white section, i.e.
   invisible. The clip below overrides this wherever it is supported. */
.platinum-title { color: #1e293b; }

.sponsor-tier-title.platinum-title {
  background: linear-gradient(90deg, #1e293b 0%, #64748b 25%, #1e293b 50%, #64748b 75%, #1e293b 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}
.gold-title { color: #b45309 !important; }
.silver-title { color: #4b5563 !important; }

.sponsor-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border-radius: 8px;
  padding: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 140px;
  overflow: hidden;
}

/* Constrain the logo for EVERY shape.
   Only .shape-circle and .shape-square previously sized their image, so
   .shape-rounded and .shape-rectangle rendered the <img> at its natural size —
   which is why those logos burst far outside their tiles. `contain` (not
   `cover`) is correct for logos: it never crops or distorts wordmarks. */
.sponsor-logo-container img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.sponsor-logo-container:hover {
  transform: translateY(-3px);
}

/* Sponsors Shapes */
.sponsor-logo-container.shape-circle {
  border-radius: 50%;
  padding: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin: 0 auto;
}
/* `contain` + padding, not `cover`. cover cropped the wordmark to fill the
   circle — which is how "Shashan Robotics & Infotech" was rendering as "hash". */
.sponsor-logo-container.shape-circle img {
  width: auto;
  height: auto;
  max-width: 78%;
  max-height: 78%;
  object-fit: contain;
  border-radius: 0;
}

.sponsor-logo-container.shape-square {
  border-radius: 0;
  padding: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin: 0 auto;
}
.sponsor-logo-container.shape-square img {
  width: auto;
  height: auto;
  max-width: 82%;
  max-height: 82%;
  object-fit: contain;
  border-radius: 0;
}

.sponsor-logo-container.shape-rounded {
  border-radius: 24px;
}

.sponsor-logo-container.shape-rectangle {
  border-radius: 8px;
}

/* Horizontal sponsor wall — every sponsor on one line, ordered by tier.
   Tier sizing applies to the TILE, not to individual shapes: the old rules only
   sized .shape-circle/.shape-square, so rounded and rectangle sponsors had no
   cap at all and rendered at the logo's natural size. */
.sponsor-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem 2.75rem;
}

.sponsor-wall .sponsor-card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  width: auto;
}

/* Tier hierarchy is carried by tile size now that the per-tier headings are gone. */
.sponsor-card-link.sponsor-platinum .sponsor-logo-container {
  width: clamp(170px, 20vw, 210px);
  height: 130px;
}
.sponsor-card-link.sponsor-gold .sponsor-logo-container {
  width: clamp(140px, 16vw, 170px);
  height: 108px;
}
.sponsor-card-link.sponsor-silver .sponsor-logo-container {
  width: clamp(115px, 13vw, 140px);
  height: 92px;
}

/* A circle tile must stay square, or the explicit tier width above turns it into
   an ellipse. Match width to the tier's height and drop the aspect-ratio. */
.sponsor-card-link.sponsor-platinum .sponsor-logo-container.shape-circle {
  width: 130px;
  aspect-ratio: auto;
}
.sponsor-card-link.sponsor-gold .sponsor-logo-container.shape-circle {
  width: 108px;
  aspect-ratio: auto;
}
.sponsor-card-link.sponsor-silver .sponsor-logo-container.shape-circle {
  width: 92px;
  aspect-ratio: auto;
}

.sponsor-tier-chip {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.12rem 0.5rem;
  border-radius: 50px;
  border: 1px solid transparent;
}
.sponsor-tier-chip.tier-platinum {
  color: #334155;
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.sponsor-tier-chip.tier-gold {
  color: #92400e;
  background: #fffbeb;
  border-color: #fcd34d;
}
.sponsor-tier-chip.tier-silver {
  color: #475569;
  background: #f8fafc;
  border-color: #e2e8f0;
}
.category-badge {
  top: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--primary-red);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
}

/* Memberships */
.membership-tiers-row {
  max-width: 1250px;
  margin-left: auto;
  margin-right: auto;
}

.membership-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--nav-border);
  background-color: #ffffff;
  border-radius: 16px;
  padding: 2.2rem 1.8rem;
  transition: all 0.3s ease;
  max-width: 380px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.membership-card.featured {
  border-color: var(--primary-blue);
  box-shadow: 0 8px 30px rgba(29, 78, 216, 0.07);
}

.membership-card.featured::before {
  content: 'POPULAR';
  position: absolute;
  top: 15px;
  right: -30px;
  background-color: var(--primary-blue);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 2.5rem;
  transform: rotate(45deg);
}

.membership-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(29, 78, 216, 0.08);
  border-color: rgba(29, 78, 216, 0.2);
}

.membership-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
}

/* Footer Link Hovers */
.hover-link {
  transition: color 0.2s ease;
}

.hover-link:hover {
  color: var(--primary-red-accent) !important;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--dark-gray);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--primary-red);
  color: white !important;
  transform: translateY(-3px);
}

/* General Layout helpers */
.section-padding {
  padding: clamp(2.5rem, 5vw, 5rem) 0;
}

.bg-dark-accent {
  background-color: var(--dark-bg);
}

.text-danger-custom {
  color: var(--primary-red-accent);
}

.border-red-top {
  border-top: 3px solid var(--primary-red);
}

/* Cart Icon glow */
.header-cart-icon:hover {
  filter: drop-shadow(0 0 5px var(--primary-red-accent));
}

.badge-danger-custom {
  background-color: var(--primary-red);
}

.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background-color: var(--primary-red);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background-color: var(--primary-red-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.stat-number {
  font-variant-numeric: tabular-nums;
  display: inline-block;
  min-width: 2ch;
}

/* ============================================================================
   Mobile Responsiveness & Visual Enhancements
   ============================================================================ */
@media (max-width: 991.98px) {
  body.public-body {
    background-color: #ffffff !important;
  }

  /* Mobile navbar — stay white */
  .navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--nav-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }

  /* Mobile collapse panel */
  .navbar-collapse {
    background-color: #ffffff;
    border-top: 1px solid var(--nav-border);
    padding: 1rem 0.5rem;
    margin-top: 0.5rem;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  }

  .navbar-nav .nav-link {
    color: var(--nav-text) !important;
    padding: 0.6rem 1rem !important;
    border-radius: 6px;
    font-size: 0.95rem;
  }
  .navbar-nav .nav-link:hover {
    background-color: var(--primary-blue-light) !important;
    color: var(--primary-blue) !important;
  }
  .navbar-nav .nav-link.active {
    background-color: var(--primary-blue-light) !important;
    color: var(--primary-blue) !important;
  }
  /* Remove underline effect on mobile */
  .navbar-nav .nav-link::after {
    display: none;
  }

  /* Mobile auth buttons — full width */
  .l__button--primary,
  .l__button--border {
    width: 100%;
    justify-content: center;
    margin-top: 0.4rem;
  }

  .hero-section {
    min-height: clamp(460px, 65vw, 760px);
    max-height: 90vh;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .hero-title {
    font-size: 2.5rem !important;
    line-height: 1.2;
    text-align: center;
  }
  .hero-subtitle {
    font-size: 1.05rem !important;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-image-logo {
    max-height: 160px !important;
    margin-top: 2rem;
  }
  .section-padding {
    padding: 3rem 0;
  }
}

/* Sponsor Names Styles */
.sponsor-card-link {
  display: inline-block;
  width: 100%;
}
/* Was `color:#ffffff !important` — a dark-theme leftover that only stayed
   invisible-proof by accident, because a higher-specificity body.public-body
   rule happened to override it. Any markup using .sponsor-name without
   Bootstrap's .text-dark would have rendered white on white. State the real
   colour here instead of relying on that accident. */
.sponsor-name {
  color: var(--text-dark) !important;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.75rem;
  transition: color 0.2s ease;
}
/* --primary-red-accent (#EF4444) only reaches ~3.9:1 on white, under AA for
   text this size; --primary-red (#DC2626) clears it. */
.sponsor-card-link:hover .sponsor-name {
  color: var(--primary-red) !important;
}

/* Team roster.
   .team-grid was referenced by home.ejs but never defined in this stylesheet, so
   the container fell back to a plain block and every member stacked vertically
   down the page. The markup was always written for Grid — its empty state uses
   `grid-column: 1 / -1`, which only means anything inside a grid container.
   auto-fit keeps the roster on one row while it fits and reflows on narrow
   screens without needing breakpoints. */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.75rem;
  align-items: stretch;
}

@media (max-width: 575.98px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Fixed box + cover so portraits of any aspect ratio crop to a consistent
   circle instead of stretching the row. */
.team-member-photo {
  width: 130px;
  height: 130px;
  object-fit: cover;
  object-position: center top;
  background-color: #f1f5f9;
  flex: 0 0 auto;
}

/* Team Member Cards borderless style */
.team-member-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transition: all 0.3s ease;
}
.team-member-card:hover {
  transform: translateY(-5px);
}

.community-card {
  background-color: rgba(26, 26, 26, 0.75) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 380px;
  margin: 0 auto;
}
.community-card:hover {
  transform: translateY(-8px);
  border-color: rgba(239, 68, 68, 0.5) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(239, 68, 68, 0.2) !important;
}
.community-card h5 {
  color: var(--text-dark) !important;
  font-weight: 700 !important;
  font-size: 1.02rem !important;
  margin-top: 0.5rem;
  line-height: 1.4;
}
.community-card p {
  color: var(--text-muted) !important; /* Pure white description */
  font-size: 0.86rem !important;
  line-height: 1.6 !important;
  opacity: 1 !important;
}
.community-hover-zoom {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.community-card:hover .community-hover-zoom {
  transform: scale(1.08);
}

/* Small mobile */
@media (max-width: 576px) {
  h1 { font-size: 1.5rem !important; }
  h2 { font-size: 1.25rem !important; }
  h3 { font-size: 1.1rem !important; }
  p { font-size: 0.82rem !important; }
  .small { font-size: 0.75rem !important; }
  
  .hero-title {
    font-size: 1.8rem !important;
  }
  .hero-subtitle {
    font-size: 0.9rem !important;
  }
  .hero-section {
    min-height: clamp(340px, 80vw, 560px);
    max-height: 88vh;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  .hero-section::before {
    width: 150px;
    height: 150px;
  }
  .section-padding {
    padding: 1.75rem 0 !important;
  }
  .btn-lg {
    font-size: 0.85rem;
    padding: 0.5rem 1rem !important;
  }
  .community-card .community-img-container img {
    height: 120px !important;
  }
  .scroll-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
  }
  
  /* Compact Store Card Overrides (2-Column Grid) */
  .product-image-wrap {
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
  }
  .store-product-card .card-body {
    padding: 0.65rem !important;
  }
  .store-product-card h6 {
    font-size: 0.8rem !important;
    margin-bottom: 0.3rem !important;
  }
  .store-product-card p.small {
    font-size: 0.7rem !important;
    height: 32px !important;
    margin-bottom: 0.4rem !important;
  }
  .store-product-card .btn-danger-custom {
    padding: 0.35rem 0.5rem !important;
    font-size: 0.72rem !important;
    border-radius: 50px !important;
  }
  
  /* Compact Achievements Overrides (2-Column Grid) */
  .achievement-img-wrap {
    height: 100px !important;
    padding: 0.4rem !important;
  }
  .achievement-card-body {
    padding: 0.65rem !important;
  }
  .achievement-card-body h5 {
    font-size: 0.8rem !important;
    margin-bottom: 0.2rem !important;
  }
  .achievement-card-body p.small {
    font-size: 0.7rem !important;
    line-height: 1.4 !important;
  }
  .achievement-card-btn-wrap {
    padding: 0.65rem !important;
  }
  .achievement-card-btn-wrap .btn {
    padding: 0.35rem 0.5rem !important;
    font-size: 0.72rem !important;
  }

  /* Compact Team Members Overrides (2-Column Grid) */
  .team-member-card {
    padding: 0.75rem !important;
  }
  .team-member-card img {
    width: 70px !important;
    height: 70px !important;
  }
  .team-member-card h6 {
    font-size: 0.78rem !important;
  }
  .team-member-card small {
    font-size: 0.68rem !important;
  }
  .team-member-card p {
    font-size: 0.65rem !important;
    line-height: 1.35 !important;
  }
  
  /* Categories list spacing overrides */
  .card-custom ul {
    gap: 0.5rem !important;
  }
}

/* Tablet */
@media (max-width: 768px) {
  h1 { font-size: 1.8rem !important; }
  h2 { font-size: 1.45rem !important; }
  h3 { font-size: 1.25rem !important; }
  p { font-size: 0.9rem !important; }
  .small { font-size: 0.8rem !important; }

  .navbar-brand img {
    height: 30px !important;
  }
  .navbar {
    padding-top: 0.3rem !important;
    padding-bottom: 0.3rem !important;
  }
  .navbar-toggler {
    padding: 0.25rem 0.4rem !important;
  }
  .navbar-toggler-icon {
    width: 1.2rem !important;
    height: 1.2rem !important;
  }
  
  .card-custom {
    padding: 1.25rem !important;
  }
  .card-custom h5 {
    font-size: 1.1rem !important;
    margin-bottom: 0.75rem !important;
  }
  .card-custom ul {
    gap: 0.65rem !important;
  }
  .card-custom form {
    margin-bottom: 1.2rem !important;
  }
  
  .store-search-input {
    font-size: 0.85rem !important;
    padding: 0.45rem 0.85rem !important;
    border-radius: 8px !important;
  }
  .store-search-btn {
    padding: 0.45rem 0.95rem !important;
    border-radius: 8px !important;
  }
  
  .hero-section::before {
    width: 200px;
    height: 200px;
    top: 30%;
    right: 5%;
  }
  .membership-card {
    padding: 1.75rem 1.25rem;
  }
  .footer .col-lg-4 {
    text-align: center;
  }
}

/* Large desktop */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 4.5rem !important;
  }
  .container {
    width: 95% !important;
    max-width: 1750px !important;
  }
}

/* Extra large desktop */
@media (min-width: 1400px) {
  .container {
    width: 95% !important;
    max-width: 1750px !important;
  }
}

/* Decreased visibility of section separator lines & horizontal borders */
.border-secondary-subtle,
.border-secondary,
.dropdown-divider,
hr:not(.dropdown-divider),
section.border-top,
section.border-bottom,
footer.border-top {
  border-color: rgba(255, 255, 255, 0.04) !important;
}

/* Increased readability of secondary/muted elements, red labels, and CTA buttons */
body.public-body .text-secondary,
body.public-body .text-muted {
  color: #4b5563 !important;
}

body.public-body .text-danger {
  color: #ff5252 !important; /* Bright crimson-red for text tags/badges */
}

body.public-body .btn-danger-custom {
  background: var(--primary-blue) !important;
  color: #ffffff !important;
  border: 1px solid var(--primary-blue) !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.2) !important;
  transition: all 0.25s ease !important;
  text-shadow: none !important;
}

body.public-body .btn-danger-custom:hover {
  background: var(--primary-blue-hover) !important;
  border-color: var(--primary-blue-hover) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.35) !important;
}

/* Premium Store Search Styles */
.store-search-form {
  max-width: 300px;
  width: 100%;
}
.store-search-input {
  background-color: rgba(26, 26, 26, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  padding: 0.55rem 1rem !important;
  font-size: 0.9rem !important;
  transition: all 0.3s ease !important;
}
.store-search-input:focus {
  border-color: rgba(239, 68, 68, 0.5) !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.2) !important;
  background-color: rgba(36, 36, 36, 0.8) !important;
}
.store-search-btn {
  border-radius: 10px !important;
  padding: 0.55rem 1.1rem !important;
}

/* Decreased overall text size of store page */
.store-page {
  font-size: 0.85rem !important;
}
.store-page h1 {
  font-size: 2rem !important;
}
.store-page p.text-secondary {
  font-size: 0.82rem !important;
}
.store-page .card-custom h5 {
  font-size: 1.05rem !important;
}
.store-page .card-custom ul li a {
  font-size: 0.82rem !important;
}
.store-page .store-search-input {
  font-size: 0.82rem !important;
  padding: 0.45rem 0.85rem !important;
}
.store-page .store-search-btn {
  font-size: 0.82rem !important;
  padding: 0.45rem 0.95rem !important;
}
.store-page .category-badge {
  font-size: 0.65rem !important;
  padding: 0.18rem 0.45rem !important;
}
.store-page .store-product-card h6 {
  font-size: 0.85rem !important;
}
.store-page .store-product-card p.text-secondary {
  font-size: 0.72rem !important;
  line-height: 1.4 !important;
}
.store-page .store-product-card span.fs-5 {
  font-size: 1.05rem !important;
}
.store-page .store-product-card span.badge {
  font-size: 0.68rem !important;
  padding: 0.2rem 0.4rem !important;
}
.store-page .store-product-card .add-to-cart-btn,
.store-page .store-product-card .btn-secondary {
  font-size: 0.78rem !important;
  padding: 0.45rem 0.75rem !important;
}


section.border-bottom,
footer.border-top {
  border-color: rgba(255, 255, 255, 0.04) !important;
}

/* Increased readability of secondary/muted elements, red labels, and CTA buttons */
body.public-body .text-secondary,
body.public-body .text-muted {
  color: #4b5563 !important;
}

body.public-body .text-danger {
  color: #ff5252 !important; /* Bright crimson-red for text tags/badges */
}

body.public-body .btn-danger-custom {
  background: var(--primary-blue) !important;
  color: #ffffff !important;
  border: 1px solid var(--primary-blue) !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.2) !important;
  transition: all 0.25s ease !important;
  text-shadow: none !important;
}

body.public-body .btn-danger-custom:hover {
  background: var(--primary-blue-hover) !important;
  border-color: var(--primary-blue-hover) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.35) !important;
}

/* Premium Store Search Styles */
.store-search-form {
  max-width: 300px;
  width: 100%;
}
.store-search-input {
  background-color: rgba(26, 26, 26, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  padding: 0.55rem 1rem !important;
  font-size: 0.9rem !important;
}
.social-icon:hover {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #ffffff !important;
  transform: translateY(-3px);
}
.social-icon i { color: inherit !important; }

/* ---- Footer ---- */
footer {
  background-color: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
}

@media (min-width: 768px) {
  footer > .container {
    padding-bottom: 1.4rem !important;
  }
}

footer .hover-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
footer .hover-link:hover {
  color: var(--primary-blue) !important;
}

footer h5.small-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dark);
  margin-bottom: 1.1rem;
}

footer .social-icon {
  width: 34px;
  height: 34px;
  background-color: #e5e7eb;
  color: var(--text-dark) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}
footer .social-icon:hover {
  background-color: var(--primary-blue);
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* Copyright bar */
.footer-copyright {
  background-color: var(--primary-blue);
  padding: 0.35rem 0;
  margin-top: 0;
}
.footer-copyright p,
.footer-copyright span,
.footer-copyright a {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.85rem;
  font-weight: 400;
  margin-bottom: 0;
}
.footer-copyright a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

footer hr {
  border-color: var(--footer-border) !important;
}

/* ============================================================================
   SCROLL TO TOP BUTTON
   ============================================================================ */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--primary-blue);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1050;
  box-shadow: 0 4px 15px rgba(29, 78, 216, 0.3);
  transition: all 0.3s ease;
}
.scroll-to-top:hover {
  background: var(--primary-blue-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.4);
}
.scroll-to-top.visible {
  display: flex;
}

.store-page .category-badge {
  font-size: 0.65rem !important;
  padding: 0.18rem 0.45rem !important;
}
.store-page .store-product-card h6 {
  font-size: 0.85rem !important;
}
.store-page .store-product-card p.text-secondary {
  font-size: 0.72rem !important;
  line-height: 1.4 !important;
}
.store-page .store-product-card span.fs-5 {
  font-size: 1.05rem !important;
}
.store-page .store-product-card span.badge {
  font-size: 0.68rem !important;
  padding: 0.2rem 0.4rem !important;
}
.store-page .store-product-card .add-to-cart-btn,
.store-page .store-product-card .btn-secondary {
  font-size: 0.78rem !important;
  padding: 0.45rem 0.75rem !important;
}

/* Responsive mobile typography & layout tweaks */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.8rem !important;
  }
  .navbar-collapse {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  }
  .nav-item {
    margin: 0.4rem 0 !important;
  }
  .nav-link {
    padding: 0.6rem 1.2rem !important;
    text-align: center;
  }
  .nav-link.active::after {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem !important;
    line-height: 1.2 !important;
  }
  section {
    padding: 3rem 0 !important;
  }
  .card-custom {
    margin-bottom: 1.5rem;
  }
  .store-search-form {
    max-width: 100% !important;
    margin-bottom: 1.5rem;
  }
  .store-page h1 {
    font-size: 1.6rem !important;
    text-align: center;
  }
}
/* ============================================================================
   FORM CONTROLS
   ============================================================================ */
body.public-body .form-control,
body.public-body .form-select {
  background-color: #ffffff !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-dark) !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-body);
}
body.public-body .form-control:focus,
body.public-body .form-select:focus {
  border-color: var(--primary-blue) !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1) !important;
}
body.public-body .form-label { color: var(--text-dark) !important; font-weight: 500; }

/* ============================================================================
   TEXT HELPERS
   ============================================================================ */
body.public-body {
  background-color: var(--bg-body) !important;
  color: var(--text-body) !important;
}

/* =============================================================================
   LIGHT THEME UI/UX OVERRIDES & SERVICES TABS
   ============================================================================= */

/* Light theme readability overrides for Bootstrap text classes.
   The site moved from a dark theme to a light one, which left .text-white on
   markup that now sits on light surfaces. This darkens those cases. It must NOT
   reach text that sits on a genuinely dark surface — see the dark-surface rule
   below, which is deliberately ordered after this one. */
body.public-body h1.text-white,
body.public-body h2.text-white,
body.public-body h3.text-white,
body.public-body h4.text-white,
body.public-body h5.text-white,
body.public-body h6.text-white,
body.public-body label.text-white,
body.public-body a.text-white:not(.btn),
body.public-body li.text-white,
body.public-body span.text-white:not(.badge):not(.btn) {
  color: var(--text-dark) !important;
}

/* Dark surfaces — .text-white means what it says.
   Without this, the override above wins on specificity (0,2,2 vs 0,1,1) and
   painted the CTA heading #0F172A on a #0F172A gradient: contrast 1.00, i.e.
   invisible. Matches at 0,3,2 and is ordered last, so it wins any tie.
   Add new dark surfaces to the first :is() list.

   .hero-section is here because its text sits on a photo: the override was
   forcing the hero stat numbers and labels to --text-dark over the image, which
   is what made that strip look washed out. */
body.public-body :is(.section-cta-bg, .footer-copyright, .hero-section)
  :is(h1, h2, h3, h4, h5, h6, p, a, li, span, label).text-white:not(.btn) {
  color: #ffffff !important;
}

body.public-body .text-white { color: #ffffff !important; }
body.public-body .text-light { color: #f8fafc !important; }
body.public-body .text-secondary { color: var(--text-muted) !important; }
body.public-body .text-muted { color: var(--text-muted) !important; }
body.public-body .text-danger { color: var(--primary-red) !important; }
body.public-body .text-primary { color: var(--primary-blue) !important; }

body.public-body .bg-dark,
body.public-body .bg-dark-custom,
body.public-body .card-custom,
body.public-body .community-card,
body.public-body .sponsor-logo-container {
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow-sm) !important;
}

/* Bootstrap dark section fixes */
body.public-body .border-secondary-subtle,
body.public-body .border-secondary,
body.public-body hr:not(.dropdown-divider),
body.public-body footer.border-top {
  border-color: var(--border-light) !important;
}

/* ============================================================================
   SERVICES PAGE SPECIFICS
   ============================================================================ */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Inquiry Modal */
#inquiryModal .modal-content {
  background-color: #ffffff !important;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}
#inquiryModal .modal-header {
  background-color: var(--primary-blue-light) !important;
  border-bottom: 1px solid var(--border-color) !important;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
#inquiryModal .modal-body { background-color: #ffffff !important; }
#inquiryModal label, #inquiryModal h5, #inquiryModal h6 { color: var(--text-dark) !important; }

/* ============================================================================
   STAT NUMBERS
   ============================================================================ */
.stat-number {
  font-variant-numeric: tabular-nums;
  display: inline-block;
  min-width: 2ch;
  color: var(--primary-blue);
}

/* Sponsor name styling */
.sponsor-card-link { display: inline-block; width: 100%; }
.sponsor-name {
  color: var(--text-dark) !important;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.6rem;
  transition: color 0.3s ease;
}
.sponsor-card-link:hover .sponsor-name { color: var(--primary-blue) !important; }

/* ============================================================================
   CTA SECTIONS
  color: var(--primary-blue) !important;
}

/* Cart badge styling */
body.public-body .header-cart-icon i {
  color: var(--text-dark) !important;
}

/* Services Category Tabs & Interactive Design */
.services-category-tabs .category-tab-item {
  cursor: pointer;
  background-color: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.services-category-tabs .category-tab-item:hover {
  transform: translateX(4px);
  border-color: rgba(29, 78, 216, 0.2) !important;
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.05);
}
.services-category-tabs .category-tab-item.active {
  border-color: var(--primary-blue) !important;
  background: linear-gradient(to right, #ffffff, rgba(29, 78, 216, 0.02)) !important;
  box-shadow: 0 8px 25px rgba(29, 78, 216, 0.08);
}
.services-category-tabs .category-tab-item.active h5 {
  color: var(--primary-blue) !important;
}
.services-category-tabs .category-tab-item .tab-arrow {
  transition: transform 0.3s ease;
  color: var(--text-muted);
}
.services-category-tabs .category-tab-item.active .tab-arrow {
  transform: translateX(3px);
  color: var(--primary-blue) !important;
}

/* Service cards grid */
.service-clean-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}
.service-clean-card:hover {
  transform: translateY(-5px);
  border-color: rgba(29, 78, 216, 0.3) !important;
  box-shadow: 0 12px 30px rgba(29, 78, 216, 0.08);
}

.service-card-icon-container {
  width: 50px;
  height: 50px;
  background-color: rgba(29, 78, 216, 0.06);
  transition: all 0.3s ease;
}
.service-clean-card:hover .service-card-icon-container {
  background-color: var(--primary-blue);
}
.service-clean-card:hover .service-card-icon-container i {
  color: #ffffff !important;
  transform: scale(1.1);
}
.service-card-icon-container i {
  transition: all 0.3s ease;
}

/* Border-top red gradient (used on some section separators) */
.border-red-top { position: relative; border-top: none !important; }
.border-red-top::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-red) 100%);
}

/* "More" link style (softbenz pattern) */
.more {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  display: inline-block;
  padding-left: 5rem;
}

/* Clean text colors in Modal */
#inquiryModal label,
#inquiryModal h5,
#inquiryModal h6 {
  color: #0f172a !important;
}

/* Dark regions text visibility overrides (fixes unreadable footer & dropdowns) */
footer.bg-dark-custom,
footer.bg-dark-custom p,
footer.bg-dark-custom span,
footer.bg-dark-custom a,
footer.bg-dark-custom li,
footer.bg-dark-custom h5,
footer.bg-dark-custom h1,
footer.bg-dark-custom h2,
footer.bg-dark-custom h3,
footer.bg-dark-custom h4,
footer.bg-dark-custom div {
  color: rgba(255, 255, 255, 0.65) !important;
}
footer.bg-dark-custom a:hover {
  color: var(--primary-red-accent) !important;
}
footer.bg-dark-custom h5 {
  color: #ffffff !important;
}

.dropdown-menu-dark,
.dropdown-menu-dark .dropdown-item {
  color: rgba(255, 255, 255, 0.85) !important;
  background-color: var(--rich-black) !important;
}
.dropdown-menu-dark .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

/* Services Megamenu Dropdown */
/* The navbar parent must have position:relative (set above on .navbar) */
.megamenu-nav-item {
  position: static !important;
}

/* Desktop megamenu.
   Hidden via visibility/opacity/transform rather than `display`, for two reasons:
   a `display` toggle cannot animate closed (only open), and a non-important
   `display:none` loses to any Bootstrap display utility — d-lg-block on this
   element previously pinned the panel open over the hero on every page load.
   With visibility as the gate, a stray utility class can no longer reveal it.
   JS owns `top` (set inline to the navbar's bottom) and the .show class. */
@media (min-width: 992px) {
  .services-megamenu-dropdown {
    position: fixed;
    top: auto;
    left: 50%;
    width: min(960px, calc(100vw - 3rem));
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.13);
    z-index: 9990;

    /* A menu should never approach full-screen. Cap it and let it scroll in the
       rare case a category grows past the cap, rather than swallowing the page. */
    max-height: min(420px, calc(100vh - 120px));
    overflow-y: auto;
    overscroll-behavior: contain;

    /* Closed: rolled up against the navbar. */
    transform: translateX(-50%) scaleY(0);
    transform-origin: top center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.18s ease,
      visibility 0s linear 0.28s;
  }

  .services-megamenu-dropdown.show {
    transform: translateX(-50%) scaleY(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
      transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.18s ease,
      visibility 0s linear 0s;
  }

  /* scaleY squashes children while the panel rolls open. Fading the contents in
     just behind the panel hides the distortion. */
  .services-megamenu-dropdown > .container {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .services-megamenu-dropdown.show > .container {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.22s ease 0.1s, transform 0.22s ease 0.1s;
  }
}

/* Mobile: always hide the megamenu entirely */
@media (max-width: 991.98px) {
  .services-megamenu-dropdown {
    display: none !important;
  }
}

/* The megaMenuSlideIn keyframe and the ::before hover bridge were removed with
   the display-toggle rewrite. The panel is positioned flush under the navbar
   (JS sets top to the navbar's bottom edge), so there is no gap to bridge, and
   hideMenu() already grants a 200ms grace period for mouse transit. The bridge
   also could not survive `overflow:hidden` or the closed scaleY(0) state. */

/* Sizing note: the panel previously ran 658px tall — 91% of a 720px viewport —
   because each tab item was 160px (an unclamped 3-line description). The panel
   is a menu, not a page: it is capped and its copy is clamped so it stays a
   glanceable strip under the navbar. */
.megamenu-wrapper {
  display: flex;
  min-height: 0;
  background: #ffffff;
}

.megamenu-tabs {
  width: 32%;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  padding-right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.megamenu-tab-item {
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
  border: 1px solid transparent;
}

.megamenu-tab-item h6 {
  font-size: 0.9rem;
  line-height: 1.3;
}

/* Two lines max — the full description already lives on /services. */
.megamenu-tab-item p {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.megamenu-tab-item:hover {
  background-color: #f8fafc;
}

.megamenu-tab-item.active {
  background-color: rgba(29, 78, 216, 0.06);
  border-color: rgba(29, 78, 216, 0.15);
}

.megamenu-tab-item.active h6 {
  color: var(--primary-blue) !important;
}

.megamenu-content-panes {
  width: 68%;
  padding-left: 1.25rem;
}

.megamenu-service-card h6 {
  font-size: 0.88rem;
  line-height: 1.3;
}

.megamenu-service-card p {
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.megamenu-service-card {
  padding: 0.65rem !important;
}

.service-card-icon-container {
  width: 34px;
  height: 34px;
  font-size: 0.85rem;
}

.megamenu-pane {
  display: none;
}

.megamenu-pane.active {
  display: block;
  animation: fadeInPage 0.25s ease-out;
}

.megamenu-service-card-link {
  text-decoration: none !important;
}

.megamenu-service-card {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  transition: all 0.25s ease;
}

.megamenu-service-card-link:hover .megamenu-service-card {
  border-color: rgba(29, 78, 216, 0.2) !important;
  background-color: rgba(29, 78, 216, 0.02);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.megamenu-service-card h6 {
  color: var(--text-dark);
  transition: color 0.2s ease;
}

.megamenu-service-card-link:hover h6 {
  color: var(--primary-blue) !important;
}

.megamenu-service-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.service-card-icon-container {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(29, 78, 216, 0.08);
  color: var(--primary-blue);
  font-size: 1rem;
}

/* =============================================================================
   Pill Buttons & Process Cards & Sticky Social Sidebar
   ============================================================================= */
.btn-pill-primary {
  background-color: var(--primary-blue);
  color: #ffffff !important;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  transition: all 0.25s ease;
}
.btn-pill-primary:hover {
  background-color: var(--primary-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(24, 78, 152, 0.25);
}
.btn-pill-outline {
  background-color: transparent;
  color: var(--primary-blue) !important;
  border: 2px solid var(--primary-blue);
  border-radius: 50px;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  transition: all 0.25s ease;
}
.btn-pill-outline:hover {
  background-color: var(--primary-blue-light);
  transform: translateY(-2px);
}

/* Process Cards Section (Image 2 style) */
.process-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: 16px;
  padding: 2.2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}
.process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background-color: var(--primary-blue);
  transition: height 0.3s ease;
}
.process-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(24, 78, 152, 0.06);
  border-color: rgba(24, 78, 152, 0.1);
}
.process-card:hover::before {
  height: 100%;
}
.process-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: rgba(24, 78, 152, 0.08);
  line-height: 1;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}
.process-card:hover .process-number {
  color: var(--primary-blue-mid);
}

/* Vertical Sticky Social Sidebar (Image 5 style) */
.social-sticky-sidebar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1060;
  background-color: #25d366; /* Match green overlay bar or brand blue */
  display: flex;
  flex-direction: column;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  box-shadow: -2px 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.social-sticky-sidebar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #ffffff !important;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.social-sticky-sidebar a:hover {
  background-color: rgba(0, 0, 0, 0.15);
  transform: scale(1.1);
}

/* The WhatsApp float/pulse widget and the unused "Lets Chat" widget CSS were
   removed with the button itself. */

/* Scroll-to-top button adjustments */
.scroll-to-top {
  right: 25px !important;
  bottom: 25px !important;
  width: 50px !important;
  height: 50px !important;
  background: var(--brand-gradient) !important;
  border: none !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 15px rgba(29, 78, 216, 0.15) !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.scroll-to-top:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.3) !important;
}

/* Header sticky on scroll refinements with background blur */
header.header {
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: all 0.3s ease;
}
header.header.scrolled {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: var(--shadow-nav) !important;
  border-bottom: 1px solid var(--border-color);
}

/* Hero sub-hero proof strip */
/* The strip sits on an uncontrolled photo, so it must supply its own contrast.
   It previously used Bootstrap's `bg-white bg-opacity-10` — a WHITE wash — under
   white text, which washed the labels out over bright areas of the image. A dark
   tint is the only direction that works for white text on an unknown backdrop. */
.hero-proof-strip {
  background: rgba(15, 23, 42, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
}

/* opacity-75 on an already-busy backdrop is what made these unreadable. */
.hero-proof-strip .proof-item span {
  opacity: 1 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  letter-spacing: 0.02em;
}

.hero-proof-strip .proof-item h4 {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* (The hero secondary CTA is styled at its original definition further up,
   rather than duplicated here.) */
.proof-item h4 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}

/* Alternating Zig-Zag community section */
.zigzag-img-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 350px;
}
.zigzag-hover-zoom {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.zigzag-img-container:hover .zigzag-hover-zoom {
  transform: scale(1.04);
}
.zigzag-number {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--primary-blue);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.2);
}

/* Process Section (circuit-timeline process) */
.process-circuit-flow {
  position: relative;
}
@media (min-width: 992px) {
  .process-circuit-flow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    width: 80%;
    height: 2px;
    border-top: 2px dashed rgba(29, 78, 216, 0.2);
    z-index: 1;
    transform: translateY(-50%);
  }
}
.process-card {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-md);
  text-align: center;
  transition: all 0.3s ease;
}
.process-step-num {
  width: 45px;
  height: 45px;
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  border: 2px solid rgba(29, 78, 216, 0.1);
  transition: all 0.3s ease;
}
.process-card:hover .process-step-num {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
}

/* Testimonials custom overrides */
#testimonialsCarousel .carousel-indicators button {
  opacity: 0.4;
  transition: opacity 0.3s ease;
}
#testimonialsCarousel .carousel-indicators button.active {
  opacity: 1;
}

/* Store custom styling extensions */
.scrollbar-hidden::-webkit-scrollbar {
  display: none;
}
.scrollbar-hidden {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Skeleton Loading Shimmer */
.skeleton-card {
  height: 320px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
  background-size: 400% 100%;
  animation: skeletonShimmer 1.4s ease infinite;
  border-radius: var(--radius-md);
}
@keyframes skeletonShimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.product-image-wrap {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  transition: all 0.3s ease;
}
.store-product-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.store-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* Services Page Category Tab Styling */
.category-card {
  cursor: pointer;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(29, 78, 216, 0.15);
}
.category-card.active {
  border-color: var(--primary-blue) !important;
  background-color: var(--primary-blue-light) !important;
  box-shadow: 0 8px 25px rgba(29, 78, 216, 0.08);
}
.category-card-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-blue-light);
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: all 0.3s ease;
}
.category-card.active .category-card-icon {
  background-color: var(--primary-blue);
  color: #ffffff;
}

/* Achievements Timeline styling */
.timeline-container {
  position: relative;
}
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: var(--border-color);
  transform: translateX(-50%);
  z-index: 1;
}
.timeline-node {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background-color: var(--light-bg);
  border: 3px solid var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  font-size: 0.9rem;
}
.timeline-row {
  z-index: 2;
}

/* Mobile responsive timeline overrides */
@media (max-width: 767.98px) {
  .timeline-line {
    left: 20px;
  }
  .timeline-node {
    left: 20px;
    transform: translate(-50%, 0);
    top: 25px;
  }
  .timeline-row {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .timeline-card-col {
    width: 100% !important;
    padding-left: 35px !important;
  }
}



/* ============================================================================
   REDUCED MOTION
   ============================================================================
   The page runs several looping animations (heroGlow, shimmer, float,
   skeletonShimmer). Only the custom cursor was guarded before, so
   motion-sensitive visitors got continuous movement with no way out —
   WCAG 2.3.3.

   Animations are neutralised rather than removed: shimmer paints the sponsor
   tier headings via background-clip, so `animation: none` must still leave the
   gradient in place. Durations collapse to a single instant frame instead. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================================
   TOAST NOTIFICATIONS (cart feedback — replaces window.alert)
   ============================================================================ */
#toast-host {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10600;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: min(340px, calc(100vw - 40px));
  pointer-events: none;
}
.app-toast {
  background: #0f172a;
  color: #ffffff;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  border-left: 3px solid #64748b;
}
.app-toast.show {
  opacity: 1;
  transform: translateY(0);
}
.app-toast-success { border-left-color: #16a34a; }
.app-toast-info    { border-left-color: var(--primary-blue); }
.app-toast-error   { border-left-color: var(--primary-red); }

@media (prefers-reduced-motion: reduce) {
  .app-toast { transition: opacity 0.25s ease; transform: none; }
}
