/**
 * Components — NCF Landing Page
 * Styles for cards, navigation, hero, badges, and interactive elements
 */

/* === Header & Navigation === */
/* Note: Modern navigation styles are now in navigation.css */
/* These are legacy styles for backwards compatibility */

.site-header {
  background-color: var(--surface-0);
  border-bottom: 1px solid var(--surface-100);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  transition: all var(--transition-base);
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Legacy nav toggle - kept for compatibility */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: var(--text-2xl);
  color: var(--ink-700);
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: var(--space-1);
  transition: all var(--transition-fast);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  background-color: var(--brand-50);
}

.nav-toggle:hover {
  background-color: var(--surface-50);
  color: var(--brand-600);
}

/* === Hero Section === */
.hero {
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-500) 100%);
  color: var(--surface-0);
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero with background image support */
.hero[data-background] {
  background-image: var(--hero-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Pattern overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></svg>') repeat;
  background-size: 50px 50px;
  opacity: 0.3;
  z-index: 1;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  padding: var(--space-6);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-8);
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
}

.hero-title {
  font-size: var(--text-5xl);
  font-weight: 700;
  margin-bottom: var(--space-6);
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 4px 16px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 1);
}

.hero-subtitle {
  font-size: var(--text-xl);
  margin-bottom: var(--space-10);
  opacity: 1;
  line-height: 1.5;
  font-weight: 400;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 3px 12px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 1);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-8);
}

/* Hero Video Background */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-video-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2;
}

.hero-video-placeholder:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) scale(1.1);
}

.hero-video-placeholder i {
  font-size: var(--text-3xl);
  color: var(--surface-0);
  margin-left: 4px; /* Optical alignment for play icon */
}

/* === Hero Slider === */
.hero-swiper {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0 !important;
  pointer-events: none !important;
}

.hero-swiper,
.hero-swiper .swiper-wrapper,
.hero-swiper .swiper-slide {
  width: 100%;
  height: 100%;
}

.hero-slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  color: var(--surface-0);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  left: auto !important;
  right: auto !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

.hero-swiper .swiper-button-prev {
  left: 20px !important;
}

.hero-swiper .swiper-button-next {
  right: 20px !important;
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1) !important;
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
  font-size: var(--text-xl);
}

.hero-swiper .swiper-pagination {
  bottom: 30px !important;
  z-index: 100 !important;
  pointer-events: auto !important;
}

.hero-swiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  opacity: 0.7;
  transition: all var(--transition-base);
  cursor: pointer !important;
  pointer-events: auto !important;
}

.hero-swiper .swiper-pagination-bullet-active {
  background: var(--surface-0);
  opacity: 1;
}

/* === Cards === */
.card {
  background: var(--surface-0);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: var(--space-6);
  transition: all var(--transition-base);
  border: 1px solid var(--surface-100);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  cursor: pointer;
}

.card-header {
  margin-bottom: var(--space-4);
}

.card-title {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: var(--space-2);
}

.card-subtitle {
  color: var(--ink-500);
  font-size: var(--text-sm);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.card-body {
  margin-bottom: var(--space-4);
}

.card-footer {
  border-top: 1px solid var(--surface-100);
  padding-top: var(--space-4);
  margin-top: var(--space-4);
}

/* Highlight Cards */
.highlight-card {
  text-align: center;
  padding: var(--space-8) var(--space-6);
}

.highlight-icon {
  width: 64px;
  height: 64px;
  background: var(--brand-50);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  color: var(--brand-600);
  font-size: var(--text-3xl);
}

.highlight-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.highlight-text {
  color: var(--ink-500);
  line-height: 1.6;
}

/* === Badges === */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
}

.badge-primary {
  background-color: var(--brand-600);
  color: var(--surface-0);
}

.badge-secondary {
  background-color: var(--brand-50);
  color: var(--brand-600);
  border-color: var(--brand-200);
}

.badge-accent {
  background-color: var(--accent-500);
  color: var(--ink-900);
}

.badge-success {
  background-color: #10B981;
  color: var(--surface-0);
}

.badge-warning {
  background-color: var(--accent-500);
  color: var(--ink-900);
  font-weight: 700;
}

/* Trust Badges - Enhanced styles */
.badge.fs-sm {
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-4);
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-lg);
}

/* === Membership Tiers === */
.membership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.membership-card {
  position: relative;
  border: 2px solid var(--surface-100);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  transition: all var(--transition-base);
}

.membership-card:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-hover);
}

.membership-card.featured {
  border-color: var(--brand-600);
  background: linear-gradient(135deg, var(--brand-50) 0%, var(--surface-0) 100%);
}

.membership-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-600);
  color: var(--surface-0);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.membership-type {
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.membership-price {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--brand-600);
  margin-bottom: var(--space-1);
}

.membership-period {
  color: var(--ink-500);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

.membership-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-8) 0;
  text-align: left;
}

.membership-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--surface-100);
}

.membership-feature:last-child {
  border-bottom: none;
}

.membership-feature::before {
  content: '✓';
  color: var(--brand-600);
  font-weight: 600;
  flex-shrink: 0;
}

/* === Timeline/Steps === */
.steps-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: var(--space-4);
  margin: var(--space-8) 0;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 32px;
  right: -calc(var(--space-4) / 2);
  width: var(--space-4);
  height: 2px;
  background: var(--brand-300);
  z-index: 1;
}

.step-number {
  width: 64px;
  height: 64px;
  background: var(--brand-600);
  color: var(--surface-0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 2;
}

.step-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.step-description {
  color: var(--ink-500);
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* === Accordion === */
.accordion {
  border: 1px solid var(--surface-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--surface-100);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  margin: 0;
}

.accordion-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-5) var(--space-6);
  background: var(--surface-0);
  border: none;
  text-align: left;
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--ink-900);
  cursor: pointer;
  transition: all var(--transition-fast);
}

/* Disable Bootstrap's default chevron pseudo-element */
.accordion-button::after {
  display: none !important;
}

.accordion-button:not(.collapsed)::after {
  display: none !important;
}

.accordion-button:hover {
  background: var(--surface-50);
}

.accordion-button[aria-expanded="true"] {
  background: var(--brand-50);
  color: var(--brand-600);
}

.accordion-icon {
  font-size: var(--text-xl);
  transition: transform var(--transition-base);
}

.accordion-button[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base) ease;
  color: var(--ink-700);
  line-height: 1.6;
}

.accordion-content.expanded {
  max-height: 200px;
  padding: 0 var(--space-6) var(--space-5);
  transition: max-height var(--transition-base) ease;
}

/* Focus states for accessibility */
.accordion-button:focus {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

/* === Sponsors Strip === */
.sponsors-strip {
  background: var(--surface-50);
  padding: var(--space-8) 0;
}

/* Flexible sponsors container with auto-wrap */
.sponsors-flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
}

.sponsor-logo {
  height: 80px;
  width: auto;
  max-width: 160px;
  opacity: 0.7;
  transition: all var(--transition-base);
  filter: grayscale(100%);
  padding: var(--space-3);
  background: var(--surface-0);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.sponsor-logo:hover,
.sponsor-logo:focus {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Legacy scrolling styles (kept for backwards compatibility) */
.sponsors-scroll {
  display: flex;
  animation: scroll 30s linear infinite;
  gap: var(--space-8);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Pause animation on hover */
.sponsors-strip:hover .sponsors-scroll {
  animation-play-state: paused;
}

/* === Cookie Banner === */
.cookie-banner {
  position: fixed;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  z-index: var(--z-fixed);
  background: var(--ink-900);
  color: var(--surface-0);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: var(--space-5) var(--space-6);
  display: none; /* hidden by default; shown via JS if not previously accepted */
  border: 1px solid var(--ink-700);
}

.cookie-banner.show {
  display: block;
}

.cookie-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-6);
  padding-right: var(--space-8); /* Leave space for close button */
}

.cookie-banner-text {
  flex: 1;
}

.cookie-banner-title {
  margin: 0 0 var(--space-2) 0;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--surface-0); /* Ensure white text */
}

.cookie-banner-description {
  margin: 0;
  color: rgba(255, 255, 255, 0.85); /* Light gray on dark */
  line-height: 1.5;
  font-size: var(--text-sm);
}

.cookie-banner-link {
  color: var(--brand-300); /* Light brand color for good contrast */
  text-decoration: underline;
}

.cookie-banner-link:hover {
  color: var(--brand-200); /* Even lighter on hover */
  text-decoration: none;
}

.cookie-banner-actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
  align-items: flex-start;
}

/* Custom button styles for cookie banner */
.cookie-banner .btn-outline-light {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-4);
}

.cookie-banner .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--surface-0);
}

.cookie-banner .btn-outline-light:focus-visible {
  outline: 2px solid var(--brand-300);
  outline-offset: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.cookie-banner .btn-light {
  background: var(--surface-0);
  border: 1px solid var(--surface-0);
  color: var(--ink-900);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
}

.cookie-banner .btn-light:hover {
  background: var(--surface-100);
  border-color: var(--surface-100);
  color: var(--ink-900);
}

.cookie-banner .btn-light:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
  background: var(--surface-100);
}

.cookie-banner-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: var(--space-1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.cookie-banner-close:hover {
  color: var(--surface-0);
  background: rgba(255, 255, 255, 0.1);
}

.cookie-banner-close:focus {
  outline: 2px solid var(--brand-300);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .cookie-banner {
    bottom: var(--space-2);
    left: var(--space-2);
    right: var(--space-2);
    padding: var(--space-4);
  }

  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    padding-right: var(--space-6);
  }

  .cookie-banner-actions {
    justify-content: flex-end;
    margin-top: var(--space-2);
  }

  .cookie-banner .btn-outline-light,
  .cookie-banner .btn-light {
    flex: 1;
    max-width: 120px;
  }
}

/* === Back to Top Button === */
.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 48px;
  height: 48px;
  background: var(--brand-600);
  color: var(--surface-0);
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-pop);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: all var(--transition-base);
  z-index: var(--z-fixed);
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.back-to-top:hover {
  background: var(--brand-500);
  transform: scale(1.1);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--brand-300);
  outline-offset: 2px;
}

.back-to-top:active {
  transform: scale(1);
}

/* === Loading States & Skeleton Screens === */
.skeleton {
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
  color: transparent !important;
  pointer-events: none;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  background: var(--surface-0);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--surface-100);
}

.skeleton-text {
  height: 1em;
  margin-bottom: var(--space-3);
}

.skeleton-text.small {
  height: 0.8em;
  width: 60%;
}

.skeleton-text.large {
  height: 1.5em;
  width: 80%;
}

.skeleton-image {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.skeleton-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto var(--space-4);
}

.skeleton-button {
  height: 40px;
  width: 120px;
  border-radius: var(--radius-md);
  margin-top: var(--space-4);
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--surface-300);
  border-radius: 50%;
  border-top-color: var(--brand-600);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Hide content when loading */
.loading .real-content {
  display: none;
}

.loading .skeleton-content {
  display: block;
}

.skeleton-content {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
    background: var(--surface-200);
  }
  
  .loading-spinner {
    animation: none;
    border-top-color: var(--brand-600);
  }
}

/* === Scroll-Triggered Animations === */
[data-animate] {
  opacity: 0;
  transition: all 0.6s ease-out;
}

[data-animate].animated {
  opacity: 1;
}

[data-animate="fade-up"] {
  transform: translateY(30px);
}

[data-animate="fade-up"].animated {
  transform: translateY(0);
}

[data-animate="fade-in"] {
  opacity: 0;
}

[data-animate="fade-in"].animated {
  opacity: 1;
}

[data-animate="slide-left"] {
  transform: translateX(-30px);
}

[data-animate="slide-left"].animated {
  transform: translateX(0);
}

[data-animate="slide-right"] {
  transform: translateX(30px);
}

[data-animate="slide-right"].animated {
  transform: translateX(0);
}

[data-animate="scale-up"] {
  transform: scale(0.9);
}

[data-animate="scale-up"].animated {
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* === Toast Notification System === */
.toast-container {
  position: fixed;
  top: var(--space-8);
  right: var(--space-8);
  z-index: var(--z-toast, 9999);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--surface-0);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  min-width: 300px;
  max-width: 400px;
  opacity: 0;
  transform: translateX(100%);
  transition: all var(--transition-base);
  pointer-events: auto;
  position: relative;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-success { border-left: 4px solid var(--brand-600); }
.toast-error { border-left: 4px solid #EF4444; }
.toast-warning { border-left: 4px solid #F59E0B; }
.toast-info { border-left: 4px solid #3B82F6; }

.toast-icon {
  flex-shrink: 0;
  font-size: var(--text-xl);
}

.toast-success .toast-icon { color: var(--brand-600); }
.toast-error .toast-icon { color: #EF4444; }
.toast-warning .toast-icon { color: #F59E0B; }
.toast-info .toast-icon { color: #3B82F6; }

.toast-message {
  flex: 1;
  color: var(--ink-900);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.toast-close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--ink-500);
  cursor: pointer;
  padding: var(--space-1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.toast-close:hover {
  background: var(--surface-100);
  color: var(--ink-900);
}

@media (max-width: 768px) {
  .toast-container {
    top: var(--space-4);
    right: var(--space-4);
    left: var(--space-4);
  }
  
  .toast {
    min-width: auto;
    max-width: none;
  }
}

/* === Enhanced Button Interactions === */
.btn-primary,
.btn-secondary {
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.btn-primary::before,
.btn-secondary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-primary:active,
.btn-secondary:active {
  transform: translateY(0);
}

/* Enhanced focus-visible styles */
*:focus-visible {
  outline: 3px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Enhanced card hover effects */
.event-card,
.news-card,
.highlight-card {
  transition: all var(--transition-base);
}

.event-card:hover,
.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-pop);
}

/* Icon animations on hover */
.highlight-icon i {
  transition: transform var(--transition-base);
}

.highlight-card:hover .highlight-icon i {
  transform: scale(1.2) rotate(5deg);
}

/* === Progress Indicators — moved to profile-wizard.css === */

/* === Mobile Responsiveness === */
/* Note: Modern mobile navigation is in navigation.css */
@media (max-width: 768px) {
  /* Hero Mobile Optimizations */
  .hero {
    min-height: 100svh; /* Use small viewport units on mobile */
    padding: var(--space-12) 0;
  }
  
  .hero-content {
    padding: var(--space-4);
  }
  
  .hero-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
    line-height: 1.15;
  }
  
  .hero-subtitle {
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
    margin-top: var(--space-6);
  }
  
  /* Touch-friendly CTAs */
  .hero-actions .btn-lg {
    min-height: 48px;
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-lg);
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  
  .hero-video-placeholder {
    width: 60px;
    height: 60px;
  }
  
  .hero-video-placeholder i {
    font-size: var(--text-2xl);
  }
  
  .steps-container {
    flex-direction: column;
    gap: var(--space-6);
  }
  
  .step:not(:last-child)::after {
    top: auto;
    bottom: -calc(var(--space-6) / 2);
    left: 32px;
    right: auto;
    width: 2px;
    height: var(--space-6);
  }
  
  .membership-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sponsors-scroll {
    animation: none;
  }
  
  .card:hover,
  .membership-card:hover {
    transform: none;
  }
}

/* === Statistics Section === */
.section-statistics {
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-500) 100%);
  color: var(--surface-0);
  position: relative;
  overflow: hidden;
}

.section-statistics::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></svg>') repeat;
  background-size: 50px 50px;
  opacity: 0.3;
}

.statistics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  position: relative;
  z-index: 1;
}

.stat-card {
  text-align: center;
  padding: var(--space-6);
  transition: transform var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-icon {
  font-size: 48px;
  margin-bottom: var(--space-4);
  color: var(--accent-400);
  opacity: 0.9;
}

.stat-value {
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-2);
  color: var(--surface-0);
}

.stat-label {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* === Testimonials Section === */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
}

.testimonial-card {
  background: var(--surface-0);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-base);
  border: 1px solid var(--surface-100);
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.testimonial-rating {
  color: var(--accent-500);
  margin-bottom: var(--space-4);
  display: flex;
  gap: var(--space-1);
  font-size: var(--text-base);
}

.testimonial-quote {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--ink-700);
  margin: 0 0 var(--space-6);
  font-style: italic;
  flex-grow: 1;
}

.testimonial-quote::before {
  content: '"';
  font-size: var(--text-3xl);
  color: var(--brand-300);
  line-height: 0;
  vertical-align: middle;
  margin-right: var(--space-1);
}

.testimonial-quote::after {
  content: '"';
  font-size: var(--text-3xl);
  color: var(--brand-300);
  line-height: 0;
  vertical-align: middle;
  margin-left: var(--space-1);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: auto;
}

.testimonial-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--brand-200);
  flex-shrink: 0;
}

.testimonial-info {
  flex-grow: 1;
}

.testimonial-name {
  font-weight: 600;
  color: var(--ink-900);
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.testimonial-role {
  font-size: var(--text-sm);
  color: var(--ink-600);
  margin-bottom: var(--space-1);
}

.testimonial-location {
  font-size: var(--text-xs);
  color: var(--ink-500);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.testimonial-location i {
  font-size: 12px;
}

/* === Contact Section === */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
  max-width: 1000px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-6);
  background: var(--surface-0);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-base);
  border: 1px solid var(--surface-100);
}

.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand-200);
}

.contact-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  color: var(--surface-0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: var(--space-4);
  transition: transform var(--transition-base);
}

.contact-item:hover .contact-icon {
  transform: scale(1.1);
}

.contact-details h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: var(--space-3);
}

.contact-details p {
  color: var(--ink-600);
  font-size: var(--text-base);
  line-height: 1.6;
  margin: 0;
}

.contact-details a {
  color: var(--brand-600);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.contact-details a:hover {
  color: var(--brand-700);
  text-decoration: underline;
}

/* Mobile responsiveness for new sections */
@media (max-width: 768px) {
  .statistics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
  
  .stat-value {
    font-size: var(--text-4xl);
  }
  
  .stat-label {
    font-size: var(--text-base);
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

@media (max-width: 480px) {
  .statistics-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact grid: force 4-in-a-row on large screens, center wraps on tablets */
@media (min-width: 992px) {
  .contact-grid {
    max-width: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .contact-grid {
    max-width: 960px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-grid > *:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 560px;
  }
}

/* === Responsive Grid Alignment for Multi-card Sections === */
/* Ensure 4-in-a-row on larger screens, wrap and center on smaller screens */

/* Highlights */
#highlights .d-grid {
  align-items: stretch;
}

@media (min-width: 992px) {
  #highlights .d-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  #highlights .d-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  /* Center a single last card on its own row when count is odd */
  #highlights .d-grid > *:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 560px;
  }
}

/* Membership */
@media (min-width: 992px) {
  .membership-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .membership-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .membership-grid > *:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 560px;
  }
}

/* Events */
@media (min-width: 992px) {
  #events .d-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  #events .d-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  #events .d-grid > *:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 600px;
  }
}

/* News */
@media (min-width: 992px) {
  #news .d-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  #news .d-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  #news .d-grid > *:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 600px;
  }
}
/* === Site Footer === */
.site-footer {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
  color: var(--surface-0);
  padding: var(--space-16) 0 var(--space-8);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-500), transparent);
}

.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.03"/></svg>') repeat;
  background-size: 40px 40px;
  opacity: 0.5;
  pointer-events: none;
}

.site-footer .container {
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand {
  padding-right: var(--space-6);
}

.footer-logo img {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--surface-0);
  margin: 0;
  line-height: 1.3;
}

.footer-contact {
  margin-top: var(--space-6);
}

.contact-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink-700);
  font-size: var(--text-sm);
  line-height: 1.6;
  transition: all var(--transition-fast);
  background: var(--surface-0);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item i {
  font-size: var(--text-lg);
  color: var(--brand-500);
  flex-shrink: 0;
}

.contact-item a,
.contact-item span {
  color: var(--ink-700);
  text-decoration: none;
  transition: color var(--transition-fast);
  flex: 1;
  text-align: left;
}

.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand-400);
}

.contact-item:hover i,
.contact-item a:hover {
  color: var(--brand-600);
}

.footer-heading {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--surface-0);
  margin-bottom: var(--space-4);
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: var(--space-2);
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: all var(--transition-fast);
  padding: var(--space-1) 0;
}

.footer-nav a i {
  font-size: 10px;
  color: var(--brand-400);
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--surface-0);
  padding-left: var(--space-2);
}

.footer-nav a:hover i {
  opacity: 1;
  transform: translateX(0);
}

.footer-social-text,
.footer-newsletter-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  line-height: 1.5;
}

.social-links {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--surface-0);
  font-size: var(--text-xl);
  text-decoration: none;
  transition: all var(--transition-base);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  background: var(--brand-500);
  border-color: var(--brand-400);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 122, 94, 0.3);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-500);
  pointer-events: none;
  font-size: var(--text-base);
}

.newsletter-input {
  width: 100%;
  padding: var(--space-3) var(--space-4) var(--space-3) calc(var(--space-4) * 2.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  color: var(--surface-0);
  font-size: var(--text-sm);
  transition: all var(--transition-base);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--brand-400);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(0, 122, 94, 0.15);
}

.newsletter-btn {
  padding: var(--space-3) var(--space-6);
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  color: var(--surface-0);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  transition: all var(--transition-base);
  box-shadow: 0 4px 12px rgba(0, 122, 94, 0.2);
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 122, 94, 0.3);
  background: linear-gradient(135deg, var(--brand-400), var(--brand-500));
}

.newsletter-btn i {
  transition: transform var(--transition-base);
}

.newsletter-btn:hover i {
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--surface-0);
}

.footer-legal .separator {
  color: rgba(255, 255, 255, 0.3);
  font-size: var(--text-sm);
}

/* Footer Responsive */
@media (max-width: 991.98px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    padding-right: 0;
    margin-bottom: var(--space-4);
  }
}

@media (max-width: 767.98px) {
  .site-footer {
    padding: var(--space-12) 0 var(--space-6);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .footer-brand {
    margin-bottom: var(--space-2);
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
  
  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Responsive grid utilities */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-12);
    align-items: start;
}
.grid-2-col-equal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}
.grid-3-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-4);
}
@media (max-width: 768px) {
    .grid-2-col,
    .grid-2-col-equal,
    .grid-3-col {
        grid-template-columns: 1fr;
    }
}