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

:root {
  /* Brand Colors extracted from Logo */
  --bs-primary: #274B8C;
  /* New Brand Blue */
  --bs-secondary: #980C2F;
  /* New Brand Red */
  --brand-blue: #274B8C;
  --brand-red: #980C2F;
  --brand-gradient: linear-gradient(135deg, #980C2F 0%, #274B8C 100%);
  --bs-body-font-family: 'Inter', sans-serif;
  --bs-headings-font-family: 'Outfit', sans-serif;
}

/* Check if user wants Tailwind (No, stick to Bootstrap overrides) */

/* Gradient Text Class */
.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-navy-burgundy {
  background: linear-gradient(135deg, #980C2F 0%, #274B8C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Border Gradient */
.border-gradient {
  border-image: var(--brand-gradient);
  border-image-slice: 1;
}

html {
  font-size: 16px;
  /* Prevent Admin Toolbar from shrinking rem units */
}

body {
  font-family: var(--bs-body-font-family);
  color: #1e293b;
  line-height: 1.6;
  background-color: #f8fafc;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--bs-headings-font-family);
  font-weight: 700;
  color: #0f172a;
}

/* Navbar Tuning */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.5px;
  font-size: 1.5rem;
}

.navbar-brand img {
  animation: logo-pulse 3s infinite ease-in-out;
}

@keyframes logo-pulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(39, 75, 140, 0));
  }

  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(39, 75, 140, 0.3));
  }

  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(39, 75, 140, 0));
  }
}

.nav-link {
  font-weight: 500;
  color: #475569 !important;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
  position: relative;
}

/* Sliding Menu Indicator */
.navbar-nav {
  position: relative;
}

.nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  background-color: var(--bs-secondary);
  /* #980C2F */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  border-radius: 2px;
  z-index: 9999;
}

.nav-link:hover,
.nav-link.active {
  color: var(--bs-primary) !important;
  background: none;
  box-shadow: none;
}

.btn-primary {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  box-shadow: 0 4px 6px -1px rgba(39, 75, 140, 0.3);
}

.btn-primary:hover {
  background-color: var(--bs-secondary);
  border-color: var(--bs-secondary);
  transform: translateY(-1px);
}

.btn-brand-red {
  background-color: var(--bs-secondary);
  border-color: var(--bs-secondary);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(152, 12, 47, 0.3);
  transition: all 0.3s ease;
  animation: brightness-pulse 3s infinite ease-in-out;
}

.btn-brand-red:hover {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: white;
  transform: translateY(-2px);
}

@keyframes brightness-pulse {

  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.2);
  }
}


.btn-brand-red:hover {
  background-color: var(--bs-primary);
  /* Change to Blue on Hover */
  border-color: var(--bs-primary);
  color: white;
  transform: translateY(-1px);
}

/* Page Structure */
.content-wrapper {
  padding-top: 4rem;
}

.footer {
  background: #0f172a;
  border-top: 4px solid var(--bs-primary);
}

/* Drupal Specific Fixes */
ul.navbar-nav {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

/* Timeline Component */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--bs-primary);
  /* Timeline line color */
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
  z-index: 0;
  /* Line at the bottom */
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
  z-index: 1;
  /* Content above line */
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: #980C2F;
  /* Brand Red */
  border: none;
  top: 25px;
  border-radius: 50%;
  z-index: 10;
  /* Dot on TOP of everything */
  /* box-shadow removed */
}

.timeline-item.left {
  left: 0;
}

/* Custom Badge Color */
.bg-brand-red {
  background-color: #980C2F !important;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item.right::after {
  left: -10px;
}

.timeline-content {
  position: relative;
  transition: transform 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
}

/* Staggered Text Reveal Animation */
.timeline-item .badge,
.timeline-item h4,
.timeline-item p {
  opacity: 0;
  transform: translateY(20px);
  padding-bottom: 5px;
  /* Prevent clipping */
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
}

/* Badge appears first */
.timeline-item.aos-animate .badge {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

/* Title appears second */
.timeline-item.aos-animate h4 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.45s;
}

/* Description appears last */
.timeline-item.aos-animate p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

/* Mobile Responsiveness for Timeline */
@media screen and (max-width: 768px) {
  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item::after {
    left: 21px;
  }

  .timeline-item.right {
    left: 0%;
  }

  .timeline-item.left::after,
  .timeline-item.right::after {
    left: 21px;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 80vh;
  /* Increased height for better impact */
  display: flex;
  align-items: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/hero_bg.jpeg');
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0;
  /* Hidden initially */
  transition: opacity 1.5s ease-in-out;
  will-change: transform, opacity;
}

.hero-background.loaded {
  opacity: 1;
  /* Fade in when ready */
  animation: hero-zoom 20s infinite alternate ease-in-out;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 40%);
  z-index: 0;
  /* Same as background but physically after in DOM, so it overlays */
  pointer-events: none;
}



.hero-glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.text-gradient-brand {
  background: linear-gradient(90deg, #980C2F, #274B8C);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Fallback for browsers not supporting clip */
}

.hero-section .container {
  z-index: 1;
  /* Ensure text is above background */
}

.z-index-1 {
  z-index: 1;
}

@keyframes hero-zoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}

/* Join Section */
.join-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: transparent;
  z-index: 1;
}

/* 3D Lift & Rotate */
.join-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px -5px rgba(39, 75, 140, 0.15), 0 10px 20px -5px rgba(39, 75, 140, 0.1) !important;
}

/* Shine Effect */
.join-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  transition: none;
  pointer-events: none;
  z-index: 2;
}

.join-card:hover::after {
  animation: shine 0.75s;
}

@keyframes shine {
  100% {
    left: 150%;
  }
}

.icon-wrapper {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease;
}

.join-card:hover .icon-wrapper {
  transform: scale(1.15) rotate(5deg);
}

.btn-white {
  background-color: #fff;
  color: var(--bs-primary);
  border: 2px solid #fff;
}

.btn-white:hover {
  background-color: #f8f9fa;
  color: var(--bs-primary);
  border-color: #f8f9fa;
}

.opacity-10 {
  opacity: 0.1;
}

/* Glassmorphism Donate Card */
.glass-donate-card {
  background: rgba(39, 75, 140, 0.85);
  /* Brand Blue with opacity */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.25) !important;
}

/* Premium Gradient Button */
/* Premium Gradient Button */
.btn-premium-gradient {
  background: linear-gradient(110deg, #980C2F 0%, #FF3366 50%, #980C2F 100%);
  background-size: 200% 100%;
  border: none;
  position: relative;
  z-index: 10;
  animation: gradient-shift 6s ease infinite, pulse-glow 4s infinite ease-in-out;
  transition: all 0.3s ease;
}

.btn-premium-gradient:hover {
  background-position: 100% 0;
  animation: gradient-shift 6s ease infinite, pulse-glow 4s infinite ease-in-out, shake-hover 0.4s infinite;
  box-shadow: 0 10px 20px rgba(152, 12, 47, 0.5) !important;
  color: white !important;
}

@keyframes shake-hover {
  0% {
    transform: scale(1.05) rotate(0deg);
  }

  25% {
    transform: scale(1.05) rotate(1deg);
  }

  50% {
    transform: scale(1.05) rotate(0deg);
  }

  75% {
    transform: scale(1.05) rotate(-1deg);
  }

  100% {
    transform: scale(1.05) rotate(0deg);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }

  50% {
    box-shadow: 0 0 20px 0 rgba(255, 255, 255, 0.2);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.pointer-events-none {
  pointer-events: none;
}

/* Newsroom Section */
.news-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .15) !important;
}

.transition-scale {
  transition: transform 0.5s ease;
}

.news-card:hover .transition-scale {
  transform: scale(1.05);
}

.object-fit-cover {
  object-fit: cover;
}

.transform-scale-sm {
  transform: scale(1.025);
  z-index: 2;
}

/* Map Section */
.voivodeship {
  fill: #e2e8f0;
  /* gray-200 */
  stroke: #ffffff;
  stroke-width: 1.5;
  transition: fill 0.3s ease;
  cursor: pointer;
}

.voivodeship:hover {
  fill: var(--bs-primary) !important;
}

#tooltip {
  position: absolute;
  display: none;
  pointer-events: none;
  z-index: 1000;
  transform: translate(-50%, -110%);
  background-color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  /* shadow-lg */
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Map Blueprint Styles */
.filar-blueprint {
  fill: #f8f9fa !important;
  /* gray-50 */
  stroke: #adb5bd !important;
  /* gray-500 */
  stroke-dasharray: 4, 4;
  opacity: 0.8;
}

.filar-blueprint:hover {
  fill: #e9ecef !important;
  /* gray-200 */
  stroke: #6c757d !important;
  /* gray-600 */
  cursor: help;
}

/* .filar-active { Standard behavior } */

/* Footer Styles */
.hover-white:hover {
  color: #fff !important;
}

.border-white-10 {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Ensure Bootstrap Icons are loaded or fallback */
/* (Bootstrap Icons fallback logic: check libraries if missing) */

/* Global Bootstrap Overrides to match Brand Colors */
.text-primary {
  color: var(--bs-primary) !important;
}

.bg-primary {
  background-color: var(--bs-primary) !important;
}

.border-primary {
  border-color: var(--bs-primary) !important;
}

.link-primary {
  color: var(--bs-primary) !important;
}

.link-primary:hover {
  color: var(--bs-secondary) !important;
}

.btn-outline-primary {
  color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.btn-outline-primary:hover {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

/* Promise Card Interactions */
.promise-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 1rem 3rem rgba(39, 75, 140, 0.15) !important;
  /* Brand Blue Shadow */
  z-index: 10;
}

.promise-card .card-title {
  transition: color 0.3s ease;
}

.promise-card:hover .card-title {
  color: var(--bs-primary);
}

/* Glassmorphism utility if not present */
.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Masonry Layout Removed - Using Bootstrap Grid */

/* Opposition Quote Style */
.opposition-quote {
  font-style: italic;
  background-color: #f8f9fa;
  padding: 1.5rem 1rem 1.5rem 2.5rem;
  /* Extra left padding for quote mark */
  border-left: 4px solid #dc3545;
  /* Brand Red */
  margin: 1.5rem 0;
  color: #495057;
  position: relative;
  border-radius: 0 0.5rem 0.5rem 0;
}

.opposition-quote::before {
  content: "„";
  font-size: 4rem;
  line-height: 1;
  color: #dc3545;
  opacity: 0.2;
  position: absolute;
  top: 0;
  left: 0.5rem;
  font-family: serif;
}

/* Brand overrides for status badges */
.bg-danger {
  background-color: #980C2F !important;
  /* Brand Red */
}

.bg-warning {
  background-color: #ffc107 !important;
  color: #000 !important;
}

.bg-success {
  background-color: #198754 !important;
}

.rounded-circle {
  border-radius: 50% !important;
}

/* Hide default page title on Promise nodes to avoid duplication */
body.node--type-promise .page-title,
body.node--type-promise h1.title {
  display: none;
}

/* Wybij kafel do przodu na gridzie Masonry */
article.node--type-promise:hover {
  z-index: 1000 !important;
}

/* Promise Teaser Hover Effects based on Status */
article.node--type-promise[data-status*="Zrealizowano"] .news-card,
article.node--type-promise[data-status*="realizowano" i] .news-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

article.node--type-promise[data-status*="Zrealizowano"]:hover .news-card,
article.node--type-promise[data-status*="realizowano" i]:hover .news-card {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(40, 167, 69, 0.8) !important;
  z-index: 100;
}

article.node--type-promise[data-status*="Niezrealizowano"] .news-card,
article.node--type-promise[data-status*="Zlamano"] .news-card,
article.node--type-promise[data-status*="łamano" i] .news-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

article.node--type-promise[data-status*="Niezrealizowano"]:hover .news-card,
article.node--type-promise[data-status*="Zlamano"]:hover .news-card,
article.node--type-promise[data-status*="łamano" i]:hover .news-card {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(220, 53, 69, 0.8) !important;
  z-index: 100;
}

article.node--type-promise[data-status*="W toku"] .news-card,
article.node--type-promise[data-status*="pending" i] .news-card,
article.node--type-promise[data-status*="Oczekuje"] .news-card,
article.node--type-promise[data-status*="toku" i] .news-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

article.node--type-promise[data-status*="W toku"]:hover .news-card,
article.node--type-promise[data-status*="pending" i]:hover .news-card,
article.node--type-promise[data-status*="Oczekuje"]:hover .news-card,
article.node--type-promise[data-status*="toku" i]:hover .news-card {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(220, 53, 69, 0.8) !important;
  z-index: 100;
}

/* ==========================================================================
   AESTHETICS 2026: NATIVE MICROINTERACTIONS & MOBILE GLASSMORPHISM
   ========================================================================== */

/* 1. Glassmorphism - Mobile Adjustments */
@media (max-width: 768px) {
  .hero-glass-card {
    background: rgba(255, 255, 255, 0.85); /* Less transparency for better readability on small screens */
    backdrop-filter: blur(5px); /* Less blur to save GPU battery */
    -webkit-backdrop-filter: blur(5px);
    padding: 2rem !important; /* Slightly smaller padding */
  }
}

/* 2. Magnetic/Scale Button Effect (Native CSS) */
.btn-primary, .btn-brand-red, .btn-premium-gradient {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease-out !important;
  will-change: transform, box-shadow;
}

.btn-primary:hover, .btn-brand-red:hover, .btn-premium-gradient:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(39, 75, 140, 0.4) !important;
}

.btn-primary:active, .btn-brand-red:active, .btn-premium-gradient:active {
  transform: scale(0.98);
}

/* 3. Hero Glass Card Microinteractions */
.hero-glass-card {
  transition: transform 0.4s ease-out, box-shadow 0.4s ease-out, background 0.4s ease-out;
  will-change: transform, box-shadow;
}

.hero-glass-card:hover {
  transform: translateY(-5px) scale(1.01) !important;
  box-shadow: 0 15px 35px 0 rgba(31, 38, 135, 0.15);
  background: rgba(255, 255, 255, 0.75);
}

/* 4. Timeline Node-Scroll Hover Sync Effect */
.timeline-content {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease !important;
}

.timeline-content:hover {
  transform: translateX(5px) translateY(-5px) !important;
  box-shadow: 0 12px 24px -8px rgba(39, 75, 140, 0.2) !important;
  border-color: #980C2F !important; /* Using generic border color override as we use border-start in HTML */
}

/* ==========================================================================
   DASHBOARD OBYWATELSKI
   ========================================================================== */

/* 5. SVG Progress Circle */
.progress-circle {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg); /* Start at top */
}

.progress-circle .circle {
  stroke-dasharray: 0, 100;
  animation: progress-fill 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes progress-fill {
  from { stroke-dasharray: 0, 100; }
  /* To is defined inline in Twig via inline styles/attributes, but animation drives the easing */
}

.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

.hover-primary:hover {
  color: #274B8C !important;
}
.transition-colors {
  transition: color 0.3s ease;
}

/* ==========================================================================
   STRONA GŁÓWNA & MAPA & AKTUALNOŚCI (Aesthetics 2026)
   ========================================================================== */

/* 1. Live Sync Pulse Dot */
.pulse-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(40, 167, 69, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

/* 2. Helper Classes */
.w-fit-content {
  width: fit-content !important;
}

.text-primary-dark {
  color: #172a4e !important;
}

/* 3. CSS-Only Gradient Avatar */
.avatar-gradient {
  background: linear-gradient(135deg, #274b8c 0%, #980c2f 100%) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  box-shadow: 0 2px 4px rgba(39, 75, 140, 0.1);
}

/* 4. News Card Premium Zoom Hover */
.news-card {
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease !important;
}

.news-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 32px -10px rgba(11, 21, 40, 0.15) !important;
  border-color: rgba(39, 75, 140, 0.2) !important;
}

.news-card .transition-scale {
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.news-card:hover .transition-scale {
  transform: scale(1.06) !important;
}

/* 5. Glassmorphism Map Tooltip Override */
#tooltip.glass-card {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1) !important;
  padding: 16px !important;
  color: #2b303a !important;
}

/* ==========================================================================
   FILARY PROGRAMOWE
   ========================================================================== */

.program-hero {
  background: linear-gradient(135deg, #0b1528 0%, #274b8c 100%) !important;
  border-bottom: 3px solid #980c2f;
}

.program-hero-bg {
  background-image: radial-gradient(circle at 20% 30%, rgba(152, 12, 47, 0.4) 0%, transparent 50%),
                    radial-gradient(circle at 80% 70%, rgba(39, 75, 140, 0.4) 0%, transparent 50%);
}

/* Soft colors for PAS */
.bg-soft-primary {
  background-color: rgba(39, 75, 140, 0.1) !important;
}
.bg-soft-danger {
  background-color: rgba(220, 53, 69, 0.1) !important;
}
.bg-soft-success {
  background-color: rgba(40, 167, 69, 0.1) !important;
}
.bg-soft-info {
  background-color: rgba(23, 162, 184, 0.1) !important;
}
.bg-soft-warning {
  background-color: rgba(255, 193, 7, 0.1) !important;
}

.bg-secondary-soft {
  background-color: rgba(108, 117, 125, 0.1) !important;
}
.text-secondary {
  color: #6c757d !important;
}
.text-warning-dark {
  color: #997404 !important;
}

/* Card hover effects */
.pillar-card {
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

.pillar-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 20px 40px -15px rgba(11, 21, 40, 0.15) !important;
  border-color: rgba(39, 75, 140, 0.4) !important;
}

.pas-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.pillar-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* ==========================================================================
   PROGRAM HUB - SCROLLYTELLING & DARK MODE (Aesthetics 2026)
   ========================================================================== */

.program-hub-wrapper-light {
  background-color: #f8f9fa;
  color: #2b303a;
  min-height: 100vh;
}

.light-mesh-background {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(39, 75, 140, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(152, 12, 47, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.8) 0%, transparent 60%);
  animation: bg-shift 15s ease-in-out infinite alternate;
}

@keyframes bg-shift {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.tracking-wide {
  letter-spacing: 2px;
}

.text-glow {
  text-shadow: 0 0 30px rgba(39, 75, 140, 0.2);
}

/* Staggered Big Typography Backgrounds */
.big-number-bg {
  position: absolute;
  font-size: 14rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(0, 0, 0, 0.03);
  z-index: 0;
  top: 50%;
  left: 0;
  transform: translateY(-50%) translateX(-20%);
  pointer-events: none;
}

.big-number-bg.right {
  left: auto;
  right: 0;
  transform: translateY(-50%) translateX(20%);
}

/* Light Glassmorphism Card */
.policy-hub-card-light {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 1) !important;
  border-radius: 24px !important;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.policy-hub-card-light:hover {
  transform: translateY(-10px) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(39, 75, 140, 0.2) !important;
  box-shadow: 0 25px 50px -12px rgba(11, 21, 40, 0.15), 0 0 20px rgba(39, 75, 140, 0.1) !important;
}

/* Icon Glows */
.icon-glow-wrapper {
  font-size: 3rem;
  display: inline-block;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.1));
}

.policy-hub-card-light:hover .icon-glow-wrapper {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 0 20px currentColor);
}

/* Button Glows */
.glow-btn {
  transition: all 0.3s ease;
}
.glow-btn:hover {
  box-shadow: 0 0 20px rgba(39, 75, 140, 0.3);
  transform: translateY(-2px);
}

.glow-btn-primary {
  transition: all 0.3s ease;
}
.glow-btn-primary:hover {
  background: #172a4e !important;
  box-shadow: 0 0 30px rgba(39, 75, 140, 0.4);
  transform: translateY(-3px);
}

/* Cascading Animations */
.fade-in-up {
  opacity: 0;
  animation: fadeInUp 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}
/* PREMIUM USER PANEL STYLING */
.premium-form-styling form input.form-text,
.premium-form-styling form input.form-email,
.premium-form-styling form input.form-password {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.premium-form-styling form input:focus {
    border-color: #274b8c;
    box-shadow: 0 0 0 0.25rem rgba(39, 75, 140, 0.25);
}
.premium-form-styling .button--primary {
    background: linear-gradient(135deg, #980c2f 0%, #274b8c 100%);
    border: none;
    border-radius: 50rem;
    padding: 0.75rem 2rem;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.premium-form-styling .button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(39, 75, 140, 0.3);
}
.premium-form-styling .tabs.primary {
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 2rem;
    padding-left: 0;
}
.premium-form-styling .tabs.primary li {
    display: inline-block;
    margin-bottom: -2px;
}
.premium-form-styling .tabs.primary li a {
    color: #6c757d;
    padding: 10px 20px;
    display: block;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
}
.premium-form-styling .tabs.primary li.is-active a {
    color: #274b8c;
    border-bottom: 2px solid #274b8c;
    font-weight: 700;
}
.premium-form-styling .profile dt {
    font-weight: 700;
    color: #274b8c;
    margin-top: 1rem;
}
.premium-form-styling .profile dd {
    margin-bottom: 1.5rem;
    color: #495057;
}