/* Copilot Country Seattle - Main Styles */

/* CSS Variables - Copilot Brand + Earth Tone System */
:root {
  /* Copilot Brand Colors */
  --copilot-blue: #0078D4;
  --copilot-cyan: #00B4F0;
  --copilot-purple: #7719AA;
  --copilot-pink: #E74984;
  --copilot-gradient: linear-gradient(135deg, #0078D4 0%, #7719AA 50%, #E74984 100%);
  --copilot-gradient-h: linear-gradient(90deg, #0078D4 0%, #00B4F0 40%, #7719AA 80%, #E74984 100%);

  /* Primary Colors - Natural Earth Tones (60/30/10) */
  --oat: #f5f1eb;
  --sand: #e8ddd4;
  --sage: #0078D4;          /* replaced with Copilot blue */
  --charcoal: #1a1a2e;
  --accent: #7719AA;        /* Copilot purple as main accent */

  /* Additional Color Variations */
  --oat-dark: #ede6dc;
  --sand-light: #f0e7de;
  --sage-light: #50a8e8;
  --sage-dark: #005a9e;
  --charcoal-light: #4a4a6a;
  --accent-hover: #5e1388;
  --white: #ffffff;
  --success: #48bb78;
  --warning: #ed8936;
  --error: #e53e3e;

  /* Layout Variables */
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 8px rgba(0, 120, 212, 0.1);
  --shadow-lg: 0 6px 24px rgba(119, 25, 170, 0.15);
  --maxWidth: 1200px;
  --focus: 0 0 0 3px rgba(0, 180, 240, 0.4);

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size-base: 16px;
  --font-size-sm: 14px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 32px;
  --line-height-base: 1.6;
  --line-height-tight: 1.2;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: var(--line-height-base);
  color: var(--charcoal);
  background-color: var(--oat);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: var(--line-height-tight);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--charcoal);
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5, h6 { font-size: var(--font-size-base); }

p {
  margin-bottom: var(--space-sm);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

a:focus {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--radius);
}

/* Layout Components */
.container {
  max-width: var(--maxWidth);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-full {
  width: 100%;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
}

.section-alt {
  background-color: var(--sand);
}

/* Header Styles */
.header {
  background-color: var(--white);
  box-shadow: 0 2px 12px rgba(0, 120, 212, 0.12);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid transparent;
  border-image: var(--copilot-gradient-h) 1;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  min-height: 70px;
}

.logo {
  font-size: var(--font-size-xl);
  font-weight: 800;
  background: var(--copilot-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  letter-spacing: -0.5px;
}

.logo .logo-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo .logo-tagline {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--copilot-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.75;
  line-height: 1;
  align-self: center;
  margin-top: 0.1rem;
}

/* "This is Copilot Country" — distinct brand line */
.logo .logo-tagline-brand {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--copilot-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 1;
  line-height: 1;
  align-self: center;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.logo:hover {
  opacity: 0.85;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  margin: 0;
}

.nav-links a {
  color: var(--charcoal);
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: linear-gradient(135deg, rgba(0,120,212,0.1) 0%, rgba(119,25,170,0.1) 100%);
  color: var(--copilot-blue);
  text-decoration: none;
}

.nav-links a.active {
  background: var(--copilot-gradient);
  color: white;
  -webkit-text-fill-color: white;
}

.social-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.social-links a {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--charcoal-light);
  font-size: var(--font-size-sm);
  padding: var(--space-xs);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.social-links a:hover {
  background-color: var(--oat);
  color: var(--accent);
  text-decoration: none;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: var(--font-size-base);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
  gap: var(--space-xs);
}

.btn:focus {
  outline: none;
  box-shadow: var(--focus);
}

.btn-primary {
  background: var(--copilot-gradient);
  color: var(--white);
  border: none;
  box-shadow: 0 2px 8px rgba(119, 25, 170, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #005fa3 0%, #5e1388 50%, #c23070 100%);
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(119, 25, 170, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--copilot-blue);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--sage-dark);
  color: var(--white);
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  color: var(--copilot-purple);
  border: 2px solid var(--copilot-purple);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--white);
  text-decoration: none;
}

/* Accessible outline button for use over dark/gradient backgrounds */
.btn-outline-light {
  background-color: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background-color: rgba(255, 255, 255, 0.18);
  border-color: var(--white);
  color: var(--white);
  text-decoration: none;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.btn-sm {
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--font-size-sm);
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-size-lg);
}

/* Card Components */
.card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal-light);
  font-size: var(--font-size-sm);
}

.card-content {
  padding: var(--space-md);
}

/* Event card body gets extra breathing room */
.event-card .card-body,
.event-card .card-content {
  padding: var(--space-lg) var(--space-md);
}

.card-title {
  margin-bottom: var(--space-xs);
  font-size: var(--font-size-lg);
}

.card-meta {
  color: var(--charcoal-light);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-sm);
}

.card-description {
  margin-bottom: var(--space-md);
}

.card-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Events Page Styles */
.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin: var(--space-xl) 0;
  padding: 0 var(--space-md);
}

.events-hero {
  background: var(--copilot-gradient);
  color: white;
  position: relative;
  overflow: hidden;
}

.event-card {
  display: flex;
  flex-direction: row;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.event-image {
  position: relative;
  flex: 0 0 300px;
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-date-badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: white;
  border-radius: var(--radius);
  padding: var(--space-xs) var(--space-sm);
  text-align: center;
  box-shadow: var(--shadow);
}

.event-month {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--sage);
  text-transform: uppercase;
}

.event-day {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1;
}

.event-title {
  margin-bottom: var(--space-sm);
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-sm);
  color: var(--charcoal-light);
}

.event-meta-icon {
  font-size: 16px;
  width: 20px;
}

.event-description {
  margin-bottom: var(--space-md);
  line-height: var(--line-height-base);
}

.event-speakers {
  margin-bottom: var(--space-md);
}

.event-speakers h5 {
  margin-bottom: var(--space-xs);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--charcoal);
}

.speakers-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.speaker-tag {
  background: var(--oat);
  color: var(--charcoal);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

/* Speaker / Champion card with photo */
.speaker-card {
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

.speaker-photo-wrap {
  flex: 0 0 160px;
  overflow: hidden;
  background: var(--sand);
}

.speaker-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  min-height: 200px;
}

/* Small square photo for past-speakers grid */
.past-speaker-photo {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

@media (max-width: 600px) {
  .speaker-card {
    flex-direction: column;
  }

  .speaker-photo-wrap {
    flex: none;
    height: 200px;
    width: 100%;
  }

  .speaker-photo {
    min-height: unset;
    height: 100%;
  }
}

/* Champion card — vertical, photo at top */
.champion-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.champion-photo-wrap {
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: var(--sand);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .champion-photo-wrap {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .champion-photo-wrap {
    height: 260px;
  }
}

.champion-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}

.champion-card:hover .champion-photo {
  transform: scale(1.04);
}

.champion-quote {
  font-style: italic;
  margin: var(--space-sm) 0 var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-left: 3px solid var(--copilot-blue);
  background: rgba(0, 120, 212, 0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--charcoal-light);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

.event-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.stat-card {
  text-align: center;
  padding: var(--space-lg);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--sage);
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-weight: 500;
  color: var(--charcoal-light);
}

/* Grid Systems */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Hero Section */
.hero {
  position: relative;
  background: var(--copilot-gradient);
  padding: var(--space-2xl) 0;
  text-align: center;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,120,212,0.58) 0%, rgba(119,25,170,0.52) 55%, rgba(231,73,132,0.48) 100%);
  z-index: 1;
  display: none;  /* hidden unless hero has a bg image */
}

/* Only show overlay when a hero-bg image is present */
.hero:has(.hero-bg)::after {
  display: block;
}

/* index.html slider hero - no gradient overlay needed */
.hero:not(:has(.hero-bg)) {
  background: var(--copilot-gradient);
  padding: 0;
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  color: white;
}

/* Hero h1/h2 inside non-slider heros */
.hero h1,
.hero h2 {
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--space-md);
  color: white;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-xl);
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Slider/Carousel */
.slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-height: 420px;
}

.slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.slide {
  min-width: 100%;
  background: var(--copilot-gradient);
  color: var(--white);
  padding: var(--space-2xl);
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,120,212,0.60) 0%, rgba(119,25,170,0.56) 55%, rgba(231,73,132,0.50) 100%);
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}

.slide-title {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  margin-bottom: var(--space-md);
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
  font-weight: 800;
}

.slide-subtitle {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-lg);
  text-shadow: 0 1px 6px rgba(0,0,0,0.2);
  line-height: 1.5;
}

.slider-controls {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-xs);
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background-color: var(--white);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: var(--space-md);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9) translateY(-20px);
  transition: all 0.3s ease;
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--sand);
  display: flex;
  align-items: center;
  justify-content: between;
}

.modal-title {
  margin: 0;
  flex-grow: 1;
}

.modal-close {
  background: none;
  border: none;
  font-size: var(--font-size-xl);
  cursor: pointer;
  color: var(--charcoal-light);
  padding: var(--space-xs);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.modal-close:hover {
  background-color: var(--oat);
  color: var(--charcoal);
}

.modal-body {
  padding: var(--space-lg);
}

/* Form Styles */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  color: var(--charcoal);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 2px solid var(--sand);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: var(--font-size-base);
  background-color: var(--white);
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-error {
  color: var(--error);
  font-size: var(--font-size-sm);
  margin-top: var(--space-xs);
}

.form-success {
  color: var(--success);
  font-size: var(--font-size-sm);
  margin-top: var(--space-xs);
}

/* Filters */
.filters {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.filter-btn {
  padding: var(--space-xs) var(--space-sm);
  border: 2px solid var(--sand);
  background-color: var(--white);
  color: var(--charcoal);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: var(--font-size-sm);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  background-color: var(--accent);
  color: var(--white);
}

/* Tags */
.tags {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-bottom: var(--space-sm);
}

.tag {
  background-color: var(--sage-light);
  color: var(--white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: var(--font-size-2xl);
  cursor: pointer;
  padding: var(--space-sm);
}

/* Compact Events Widget */
.events-widget {
  background-color: var(--sage);
  color: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  margin-top: var(--space-xl);
}

.events-widget-title {
  margin-bottom: var(--space-md);
  color: var(--white);
}

.event-compact {
  background-color: rgba(255, 255, 255, 0.1);
  padding: var(--space-sm);
  border-radius: var(--radius);
  margin-bottom: var(--space-sm);
}

.event-compact:last-child {
  margin-bottom: 0;
}

.event-compact-title {
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--white);
}

.event-compact-date {
  font-size: var(--font-size-sm);
  opacity: 0.9;
  margin-bottom: var(--space-xs);
}

/* Footer Styles */
.footer {
  background-color: var(--charcoal);
  color: var(--white);
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: var(--space-2xl);
}

.footer-content {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-bottom: var(--space-xl);
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

/* Footer Quick Links — accessible contrast on dark background */
.footer-section nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section nav a:hover,
.footer-section nav a:focus {
  color: var(--white);
  text-decoration: underline;
}

.footer-tagline {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.footer-subtitle {
  color: var(--sage-light);
  font-size: var(--font-size-sm);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-social a {
  color: var(--sage-light);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--sage-light);
  font-size: var(--font-size-sm);
}

/* Hamburger / Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 7px;
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus {
  border-color: var(--copilot-blue);
  outline: none;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav Dropdown Wrapper (wraps nav-links + register button) */
.nav-dropdown {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: relative;
    align-items: center;
  }

  /* Hide the dropdown by default on mobile */
  .nav-dropdown {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-md);
    min-width: 220px;
    z-index: 1000;
    gap: var(--space-sm);
    border: 1px solid var(--sand);
  }

  .nav.nav-open .nav-dropdown {
    display: flex;
  }

  /* Stack nav links vertically inside dropdown */
  .nav-dropdown .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav-dropdown .nav-links li {
    width: 100%;
  }

  .nav-dropdown .nav-links a {
    display: block;
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius);
  }

  .nav-dropdown > .btn-primary {
    width: 100%;
    justify-content: center;
  }

  /* Stack event card vertically on mobile */
  .event-card {
    flex-direction: column;
  }

  .event-image {
    flex: none;
    height: 220px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .card-actions {
    flex-direction: column;
  }

  .filters {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  :root {
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 2.5rem;
  }
  
  .container {
    padding: 0 var(--space-sm);
  }

  .modal {
    margin: var(--space-sm);
  }

  .modal-body,
  .modal-header {
    padding: var(--space-md);
  }
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

.pagination-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-sm);
  border: 2px solid var(--sand);
  background: var(--white);
  color: var(--charcoal);
  border-radius: var(--radius);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--copilot-blue);
  color: var(--copilot-blue);
  background: rgba(0,120,212,0.06);
}

.pagination-btn.active {
  background: var(--copilot-gradient);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 2px 8px rgba(119,25,170,0.3);
}

.pagination-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Accessibility Helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--charcoal);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  border-radius: var(--radius);
  z-index: 10000;
}

.skip-link:focus {
  top: 6px;
}

/* Animation Classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
  cursor: wait;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--sand);
  border-radius: 50%;
  border-top-color: var(--accent);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.hidden { display: none; }
.visible { display: block; }

/* ===================================================
   COPILOT BRAND ACCENT ENHANCEMENTS
   =================================================== */

/* Gradient top border on footer */
.footer {
  border-top: 4px solid transparent;
  border-image: var(--copilot-gradient-h) 1;
}

/* Section h2 decorative underline */
.section h2,
.section-header h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

/* Dark section heading overrides */
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6,
.section-dark p {
  color: var(--white);
}

.section h2::after,
.section-header h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: var(--copilot-gradient-h);
  border-radius: 2px;
}

.text-center h2::after,
.section h2.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Card hover — Copilot gradient top border */
.card:hover {
  border-top: 3px solid transparent;
  background-clip: padding-box;
  outline: 2px solid transparent;
}

.card-hover-accent:hover {
  box-shadow: 0 0 0 2px var(--copilot-blue), var(--shadow-lg);
}

/* Speaker photo ring */
.speaker-image,
.speaker-photo,
img.speaker-img {
  border: 3px solid transparent;
  background: white;
  box-shadow: 0 0 0 3px var(--copilot-blue), 0 4px 16px rgba(0,120,212,0.2);
  border-radius: 50%;
}

/* Tags / badges — Copilot tinted */
.tag {
  background: linear-gradient(135deg, rgba(0,120,212,0.12) 0%, rgba(119,25,170,0.12) 100%);
  color: var(--copilot-blue);
  border: 1px solid rgba(0,120,212,0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  display: inline-block;
}

/* Stat numbers — Copilot gradient text */
.stat-number {
  background: var(--copilot-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Event date badge month — Copilot blue */
.event-month {
  color: var(--copilot-blue);
}

/* Speaker tags */
.speaker-tag {
  background: linear-gradient(135deg, rgba(0,120,212,0.1) 0%, rgba(0,180,240,0.1) 100%);
  color: var(--copilot-blue);
  border: 1px solid rgba(0,120,212,0.15);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: var(--font-size-sm);
  font-weight: 500;
}

/* Copilot logo box icon */
.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--copilot-gradient);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-style: normal;
  flex-shrink: 0;
}

/* Gallery Archive Collapsible */
.gallery-archive {
  margin-top: 3rem;
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Respect EXIF orientation for all gallery/card images */
.card img, .gallery-item img {
  image-orientation: from-image;
}

.gallery-archive-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: var(--sand);
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--charcoal);
  list-style: none;
  user-select: none;
  transition: background 0.2s ease;
}

.gallery-archive-toggle::-webkit-details-marker { display: none; }
.gallery-archive-toggle::marker { display: none; }

.gallery-archive[open] .gallery-archive-toggle {
  background: linear-gradient(90deg, rgba(0,120,212,0.08) 0%, rgba(119,25,170,0.08) 100%);
  border-bottom: 1px solid rgba(0,120,212,0.15);
}

.gallery-archive-toggle:hover {
  background: rgba(0,120,212,0.08);
}

.gallery-archive-count {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--charcoal-light);
  background: rgba(0,0,0,0.06);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.gallery-archive-grid {
  padding: 2rem 1.5rem;
}