/* CSS Variables */
:root {
  --primary: #e91e63;
  --primary-dark: #c2185b;
  --primary-light: #f8bbd9;
  --secondary: #2196f3;
  --accent: #e91e63; /* Single consistent accent color */
  --text: #333333;
  --text-light: #666666;
  --background: #ffffff;
  --gray: #f5f5f5;
  --border: #e0e0e0;
  --success: #4caf50;
  --warning: #ff9800;
  --error: #f44336;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  --border-radius: 8px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  
  /* Pride Colors */
  --pride-red: #e40303;
  --pride-orange: #ff8c00;
  --pride-yellow: #ffed00;
  --pride-green: #008018;
  --pride-blue: #004cff;
  --pride-purple: #732982;
  --pride-brown: #784f17;
  --pride-black: #000000;
  --pride-trans-blue: #5bcffa;
  --pride-trans-pink: #f5a9b8;
  --pride-trans-white: #ffffff;
  
  /* Enhanced Vibrant Gradients */
  --progress-pride-gradient: linear-gradient(90deg, 
    var(--pride-red) 0%, 
    var(--pride-orange) 16.66%, 
    var(--pride-yellow) 33.33%, 
    var(--pride-green) 50%, 
    var(--pride-blue) 66.66%, 
    var(--pride-purple) 83.33%, 
    var(--pride-purple) 100%
  );
  
  --rainbow-gradient: linear-gradient(90deg,
    var(--pride-red),
    var(--pride-orange),
    var(--pride-yellow),
    var(--pride-green),
    var(--pride-blue),
    var(--pride-purple)
  );
  
  /* New Vibrant Background Gradients */
  --soft-rainbow-bg: linear-gradient(135deg, 
    rgba(228, 3, 3, 0.1) 0%,
    rgba(255, 140, 0, 0.1) 16.66%,
    rgba(255, 237, 0, 0.1) 33.33%,
    rgba(0, 128, 24, 0.1) 50%,
    rgba(0, 76, 255, 0.1) 66.66%,
    rgba(115, 41, 130, 0.1) 83.33%,
    rgba(115, 41, 130, 0.1) 100%
  );
  
  --warm-gradient: linear-gradient(135deg, 
    #ff6b6b 0%, 
    #ffa500 25%, 
    #ffff00 50%, 
    #32cd32 75%, 
    #1e90ff 100%
  );
  
  --pastel-gradient: linear-gradient(135deg,
    #ffb3ba 0%,
    #ffdfba 25%,
    #ffffba 50%,
    #baffc9 75%,
    #bae1ff 100%
  );
  
  --cosmic-gradient: linear-gradient(135deg,
    #667eea 0%,
    #764ba2 100%
  );
  
  /* Enhanced Color Palette */
  --vibrant-pink: #ff69b4;
  --vibrant-blue: #00bfff;
  --vibrant-green: #00ff7f;
  --vibrant-orange: #ff8c00;
  --vibrant-purple: #8a2be2;
  --soft-lavender: #e6e6fa;
  --soft-mint: #f0ffff;
  --soft-peach: #ffeee6;
      --soft-rose: #ffe4e1;
}

/* ==================== EVENTS STYLES ==================== */

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.event-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  transition: var(--transition);
  border-left: 4px solid var(--primary);
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.event-title {
  margin: 0;
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1.3;
}

.event-date {
  text-align: right;
  color: var(--primary);
  font-weight: 600;
  min-width: 120px;
}

.date-main {
  display: block;
  font-size: 1.1rem;
}

.event-time {
  display: block;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.2rem;
}

.date-range {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Venue Information */
.event-venue {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}

.venue-name {
  color: var(--text);
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.venue-address {
  color: var(--text-light);
  margin: 0;
  font-size: 0.9rem;
  font-style: italic;
}

/* Event Descriptions */
.event-summary, .event-full-details {
  margin-bottom: 1.5rem;
}

.event-summary {
  padding: 1rem;
  background: rgba(233, 30, 99, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}

.event-full-details {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}

.event-timing {
  margin: 1rem 0;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border-left: 3px solid var(--primary);
}

.event-full-time {
  color: var(--text);
  font-weight: 500;
  margin: 0;
  font-size: 0.95rem;
}

.event-end-time {
  color: var(--text-light);
  margin: 0.3rem 0 0 0;
  font-size: 0.85rem;
}

.event-summary h4, .event-full-details h4 {
  color: var(--primary);
  margin: 0 0 0.8rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.event-summary-content, .event-details-content {
  color: var(--text);
  line-height: 1.6;
  white-space: pre-line;
  font-size: 0.95rem;
}

.event-summary-content {
  font-weight: 500;
}

.event-details-content {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* Ticket Availability Styles */
.ticket-status {
  margin: 1rem 0;
  padding: 0.8rem;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.ticket-status.available {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #2e7d32;
}

.ticket-status.moderate {
  background: rgba(33, 150, 243, 0.1);
  border: 1px solid rgba(33, 150, 243, 0.3);
  color: #1565c0;
}

.ticket-status.limited {
  background: rgba(255, 152, 0, 0.1);
  border: 1px solid rgba(255, 152, 0, 0.3);
  color: #ef6c00;
  animation: pulse 2s infinite;
}

.ticket-status.capacity {
  background: rgba(156, 39, 176, 0.1);
  border: 1px solid rgba(156, 39, 176, 0.3);
  color: #7b1fa2;
}

.ticket-status.sold-out {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
  color: #c62828;
}

.sold-out-badge {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
}

.ticket-count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.ticket-count::before {
  content: "🎫";
  font-size: 1rem;
}

.ticket-status.sold-out .sold-out-badge::before {
  content: "❌";
  margin-right: 0.3rem;
}

/* Event Status */
.event-status-info {
  margin: 1rem 0;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}

.event-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.status-label {
  font-weight: 600;
  color: var(--text-light);
}

.status-value {
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.status-live {
  background: #4caf50;
  color: white;
}

.status-draft {
  background: #ff9800;
  color: white;
}

.status-ended {
  background: #757575;
  color: white;
}

.status-canceled {
  background: #f44336;
  color: white;
}

/* Ticket Sales Information */
.ticket-sales-info {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}

.sales-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sales-stats .stat {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
}

.sales-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.sales-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  transition: width 0.3s ease;
}

.sales-percentage {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
}

/* Pulse animation for limited tickets */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

.event-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Simple Ticket Indicator */
.ticket-indicator {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-left: 0.5rem;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.ticket-indicator.limited {
  background: rgba(149, 0, 255, 0.539);
  color: #f9f9f9;
  border: 1px solid rgba(231, 103, 163, 0.892);
  animation: pulse-orange 3s infinite;
}

.ticket-indicator.sold-out {
  background: rgba(244, 67, 54, 0.2);
  color: #c62828;
  border: 1px solid rgba(244, 67, 54, 0.4);
  font-weight: 700;
}

/* Pulse animation for limited tickets */
@keyframes pulse-orange {
  0% { 
    box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(255, 152, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
  }
}

.ticket-only {
  text-align: center;
  padding: 0.5rem;
}

.event-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
}

.status-live {
  background: var(--success);
  color: white;
}

.status-ended {
  background: var(--error);
  color: white;
}

.status-cancelled {
  background: var(--warning);
  color: white;
}

/* Loading and Error States */
.loading-events {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(233, 30, 99, 0.2);
  border-left: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Enhanced No Events Card */
.no-events-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  margin: 3rem auto;
  max-width: 500px;
  border: 1px solid var(--border, #e0e0e0);
  position: relative;
  overflow: hidden;
}

.no-events-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--progress-pride-gradient, linear-gradient(90deg, 
    #e40303 0%, 
    #ff8c00 16.66%, 
    #ffed00 33.33%, 
    #008018 50%, 
    #004cff 66.66%, 
    #732982 83.33%, 
    #732982 100%
  ));
}

.no-events-card h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text, #333);
  margin: 0 0 1rem 0;
  line-height: 1.3;
  background: linear-gradient(135deg, var(--primary, #e91e63), var(--secondary, #2196f3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.no-events-card p {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.125rem;
  color: var(--text-light, #666);
  margin: 0 0 2rem 0;
  line-height: 1.6;
  max-width: 400px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background: var(--primary, #e91e63);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark, #c2185b);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4);
}

.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.3);
}

/* Events Error Card */
.events-error-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  margin: 3rem auto;
  max-width: 500px;
  border: 1px solid rgba(244, 67, 54, 0.2);
}

.events-error-card h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--error, #f44336);
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

.events-error-card p {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  color: var(--text-light, #666);
  margin: 0 0 2rem 0;
  line-height: 1.6;
  max-width: 400px;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--text, #333);
  text-decoration: none;
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 8px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--gray, #f5f5f5);
  border-color: var(--text-light, #666);
}

.error-details {
  margin: 1rem 0 0 0;
  text-align: left;
  max-width: 400px;
  width: 100%;
}

.error-details summary {
  cursor: pointer;
  color: var(--text-light, #666);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem;
  border-radius: 4px;
  background: var(--gray, #f5f5f5);
  transition: all 0.2s ease;
}

.error-details summary:hover {
  background: var(--border, #e0e0e0);
}

.error-details code {
  display: block;
  background: var(--gray, #f5f5f5);
  padding: 1rem;
  border-radius: 4px;
  font-size: 0.8rem;
  word-break: break-all;
  margin-top: 0.5rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  color: var(--text, #333);
}

/* Responsive Design */
@media (max-width: 768px) {
  .events-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .event-card {
    padding: 1.5rem;
  }
  
  .event-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .event-date {
    text-align: left;
  }
  
  .event-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .no-events-card, .events-error-card {
    margin: 2rem 1rem;
    padding: 3rem 1.5rem;
  }
  
  .no-events-card h2 {
    font-size: 1.5rem;
  }
  
  .no-events-card p, .events-error-card p {
    font-size: 1rem;
  }
  
  .error-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    max-width: 280px;
  }
}

/* Enhanced High Contrast Mode */
.high-contrast {
  --primary: #ffff00;
  --primary-dark: #cccc00;
  --primary-light: #ffff99;
  --accent: #ffff00;
  --secondary: #00ffff;
  --text: #ffffff;
  --text-light: #cccccc;
  --background: #000000;
  --gray: #333333;
  --border: #666666;
  --success: #00ff00;
  --warning: #ffff00;
  --error: #ff0000;
  --soft-rainbow-bg: rgba(255, 255, 255, 0.1);
  --warm-gradient: #333333;
  --pastel-gradient: #333333;
  --cosmic-gradient: #333333;
  filter: contrast(150%) brightness(110%);
}

/* WORKING HIGH CONTRAST MODE - BLACK BACKGROUND, WHITE TEXT */
.high-contrast,
.high-contrast body {
  background: #000000 !important;
  color: #ffffff !important;
}

.high-contrast *:not(.accessibility-panel):not(.accessibility-panel *) {
  background: transparent !important;
  color: #ffffff !important;
}

.high-contrast main,
.high-contrast header,
.high-contrast footer,
.high-contrast section,
.high-contrast nav,
.high-contrast .container {
  background: #000000 !important;
  color: #ffffff !important;
}

.high-contrast h1, .high-contrast h2, .high-contrast h3, 
.high-contrast h4, .high-contrast h5, .high-contrast h6 {
  color: #ffffff !important;
  background: transparent !important;
}

.high-contrast p,
.high-contrast span,
.high-contrast div {
  color: #ffffff !important;
  background: transparent !important;
}

.high-contrast a {
  color: #ffff00 !important;
  background: transparent !important;
}

/* IMPROVED BUTTON STYLING IN HIGH CONTRAST */
.high-contrast .button,
.high-contrast .button.primary,
.high-contrast .button.secondary,
.high-contrast button:not(.accessibility-panel button) {
  background: #ffffff !important;
  color: #000000 !important;
  border: 3px solid #ffff00 !important;
  font-weight: bold !important;
  padding: 12px 24px !important;
  box-shadow: 0 4px 12px rgba(255, 255, 0, 0.3) !important;
}

.high-contrast .event-rsvp-btn {
  background: #ffffff !important;
  color: #000000 !important;
  border: 3px solid #ffff00 !important;
  font-weight: bold !important;
  font-size: 1.1rem !important;
  padding: 12px 20px !important;
  box-shadow: 0 4px 12px rgba(255, 255, 0, 0.3) !important;
  transform: none !important;
}

.high-contrast .event-rsvp-btn:hover {
  background: #ffff00 !important;
  color: #000000 !important;
  border: 3px solid #ffffff !important;
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-2px) !important;
}

.high-contrast .event-rsvp-btn:focus {
  outline: 3px solid #ffffff !important;
  outline-offset: 2px !important;
  background: #ffff00 !important;
  color: #000000 !important;
}

.high-contrast .event-rsvp-btn::before {
  display: none !important;
}

.high-contrast .button:hover,
.high-contrast .button.primary:hover,
.high-contrast .button.secondary:hover,
.high-contrast button:not(.accessibility-panel button):hover {
  background: #ffff00 !important;
  color: #000000 !important;
  border: 3px solid #ffffff !important;
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-2px) !important;
}

.high-contrast .nav-toggle {
  background: #000000 !important;
  color: #ffffff !important;
  border: 3px solid #ffffff !important;
  font-size: 1.2rem !important;
  font-weight: bold !important;
}

.high-contrast .nav-toggle:hover {
  background: #ffffff !important;
  color: #000000 !important;
  border: 3px solid #ffff00 !important;
}

.high-contrast nav a {
  color: #ffffff !important;
  background: transparent !important;
}

.high-contrast nav a:hover {
  color: #ffff00 !important;
  background: transparent !important;
}

/* FORCE NAVIGATION VISIBILITY IN HIGH CONTRAST */
.high-contrast nav ul,
.high-contrast nav li,
.high-contrast .nav-toggle {
  background: transparent !important;
  color: #ffffff !important;
}

.high-contrast .nav-toggle {
  border: 2px solid #ffffff !important;
}

.high-contrast .dropdown-menu {
  background: #000000 !important;
  border: 2px solid #ffffff !important;
}

.high-contrast .dropdown-menu a {
  color: #ffffff !important;
  background: transparent !important;
}

.high-contrast .dropdown-menu a:hover {
  color: #ffff00 !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

/* IMPROVE LOGO VISIBILITY IN HIGH CONTRAST */
.high-contrast .site-logo,
.high-contrast .logo-link img {
  filter: invert(1) hue-rotate(180deg) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  padding: 8px !important;
  border-radius: 8px !important;
  border: 2px solid #ffffff !important;
}

/* Accessibility panel is now excluded by design - no overrides needed */

/* TARGETED FIX: Keep accessibility panel positioned correctly in high contrast */
.high-contrast .accessibility-panel {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  z-index: 1000 !important;
}

.high-contrast .accessibility-toggle {
  background: #e91e63 !important;
  color: white !important;
  border: 2px solid white !important;
}

.high-contrast .accessibility-menu {
  background: white !important;
  color: black !important;
  border: 2px solid black !important;
}

.high-contrast .accessibility-menu h3,
.high-contrast .accessibility-option label {
  color: black !important;
}

.high-contrast .accessibility-toggle-switch {
  background: #ccc !important;
  border: 2px solid black !important;
}

.high-contrast .accessibility-toggle-switch.active {
  background: #e91e63 !important;
}

.high-contrast .text-size-btn {
  background: white !important;
  color: black !important;
  border: 2px solid black !important;
}

.high-contrast .text-size-btn.active {
  background: #e91e63 !important;
  color: white !important;
}

.high-contrast .button,
.high-contrast .hero-button,
.high-contrast .nav-toggle {
  background-color: black !important;
  color: white !important;
  border: 2px solid black !important;
}

.high-contrast header {
  background-color: white !important;
  border-bottom: 3px solid black !important;
}

.high-contrast footer {
  background-color: black !important;
  color: white !important;
}

/* Reduced Motion - Specific targeting to avoid layout issues */
.reduce-motion,
.reduce-motion *:not(.accessibility-panel):not(.accessibility-panel *),
.reduce-motion *:not(.accessibility-panel):not(.accessibility-panel *)::before,
.reduce-motion *:not(.accessibility-panel):not(.accessibility-panel *)::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

/* Dyslexia Friendly Font */
.dyslexia-friendly {
  font-family: 'Comic Sans MS', 'Arial', sans-serif !important;
}

.dyslexia-friendly * {
  font-family: inherit !important;
}

/* FIXED TEXT SIZE CONTROLS - EXCLUDES HERO/BANNER HEADERS */
.text-small {
  font-size: 14px;
}

.text-small main h1:not(.hero h1),
.text-small main h2:not(.hero h2),
.text-small main h3:not(.hero h3),
.text-small section:not(.hero) h1,
.text-small section:not(.hero) h2,
.text-small section:not(.hero) h3,
.text-small article h1,
.text-small article h2,
.text-small article h3 {
  font-size: 1.2em;
}

.text-large {
  font-size: 18px;
}

.text-large main h1:not(.hero h1),
.text-large main h2:not(.hero h2),
.text-large main h3:not(.hero h3),
.text-large section:not(.hero) h1,
.text-large section:not(.hero) h2,
.text-large section:not(.hero) h3,
.text-large article h1,
.text-large article h2,
.text-large article h3 {
  font-size: 1.4em;
}

.text-extra-large {
  font-size: 22px;
}

.text-extra-large main h1:not(.hero h1),
.text-extra-large main h2:not(.hero h2),
.text-extra-large main h3:not(.hero h3),
.text-extra-large section:not(.hero) h1,
.text-extra-large section:not(.hero) h2,
.text-extra-large section:not(.hero) h3,
.text-extra-large article h1,
.text-extra-large article h2,
.text-extra-large article h3 {
  font-size: 1.6em;
}

/* PRESERVE HERO/BANNER HEADERS - Never affected by text size changes */
.text-small .hero h1,
.text-large .hero h1,
.text-extra-large .hero h1,
.text-small .hero-content h1,
.text-large .hero-content h1,
.text-extra-large .hero-content h1 {
  font-size: 3.5rem !important;
}

/* Skip to Main Content */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  font-weight: bold;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 6px;
}

/* Enhanced Progress Pride Flag Stripe */
.pride-stripe {
  height: 8px;
  background: var(--progress-pride-gradient);
  width: 100%;
  position: relative;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .pride-stripe {
    height: 6px;
  }
}

/* Base Styles with Vibrant Background */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--soft-rainbow-bg);
  background-attachment: fixed;
  transition: var(--transition);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Enhanced Button Styles with Proper Tap Targets */
.button {
  display: inline-block;
  padding: var(--spacing-md) var(--spacing-xl);
  min-height: 44px;
  min-width: 44px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
  z-index: 1;
}

.button:hover::before {
  left: 100%;
}

.button:hover {
  /* No transform movement */
  box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
  color: white;
  background: var(--primary-dark);
}

.button:focus {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
}

.button.secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.2);
}

.button.secondary:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
}

.button.disabled {
  background: var(--gray);
  color: var(--text-light);
  cursor: not-allowed;
  box-shadow: none;
}

.button.disabled:hover {
  background: var(--gray);
  color: var(--text-light);
}

.button.disabled::before {
  display: none;
}

/* Vibrant Pride Section Dividers */
.section-divider {
  height: 6px;
  background: var(--rainbow-gradient);
  margin: var(--spacing-xl) 0;
  border-radius: 3px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  position: relative;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--rainbow-gradient);
  border-radius: 4px;
  z-index: -1;
  opacity: 0.3;
  filter: blur(4px);
}

/* Animated Decorative Elements */
.decorative-shapes {
  position: relative;
  overflow: hidden;
}

.decorative-shapes::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23ff69b4" opacity="0.3"/><circle cx="80" cy="30" r="1.5" fill="%2300bfff" opacity="0.4"/><circle cx="40" cy="70" r="1" fill="%2300ff7f" opacity="0.3"/><circle cx="90" cy="80" r="2.5" fill="%23ff8c00" opacity="0.2"/><circle cx="10" cy="60" r="1.8" fill="%238a2be2" opacity="0.3"/></svg>') repeat;
  animation: none;
  pointer-events: none;
  z-index: -1;
  opacity: 0.1;
}

/* Disable decorative shapes in hero section to prevent interference */
.hero.decorative-shapes::before {
  display: none;
}

/* No floating animations */
.decorative-shapes::before {
  animation: none;
  opacity: 0.1;
}

.reduce-motion .decorative-shapes::before {
  animation: none;
  opacity: 0.1;
}

/* Enhanced Header Styles */
header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 187, 217, 0.95) 100%);
  border-bottom: 3px solid var(--rainbow-gradient);
    position: sticky;
    top: 0;
  z-index: 100;
    transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

header.scrolled {
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 187, 217, 0.98) 100%);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
  padding: var(--spacing-md) 0;
}

/* Enhanced Logo Styles with Pride Elements */
.logo-link {
    display: flex;
    align-items: center;
  transition: all 0.3s ease;
    padding: 0.75rem;
  background: linear-gradient(135deg, white 0%, #ffe4e1 100%);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    margin: 0.5rem 0;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.logo-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: var(--rainbow-gradient);
  transition: left 0.5s ease;
}

.logo-link:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  border-color: var(--primary);
}

.logo-link:hover::before {
  left: 0;
}

.logo-link:focus {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
}

.site-logo {
  height: 60px;
    width: auto;
    transition: all 0.3s ease;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
}

.reduce-motion .logo-link:hover {
  /* No movement for reduced motion */
}

.reduce-motion .logo-link::before {
  display: none;
}

/* Mobile Logo Responsive Design */
@media (max-width: 768px) {
  .logo-link {
    padding: 0.5rem;
    margin: 0.25rem 0;
  }
  
  .site-logo {
    height: 45px;
  }
}

/* Enhanced Navigation Styles with Simple Hover Effects */
nav ul {
  display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
  gap: var(--spacing-lg);
}

nav li {
  position: relative;
}

nav a {
  color: var(--text);
  text-decoration: none;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 20px;
  transition: all 0.3s ease;
    display: block;
  white-space: nowrap;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

nav a:hover {
  color: var(--primary);
  background: rgba(233, 30, 99, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

nav a:focus {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

/* Enhanced Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-content {
  display: none;
    position: absolute;
  top: 100%;
    left: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(186, 225, 255, 0.98) 100%);
  min-width: 180px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--rainbow-gradient);
  border-radius: 15px;
  z-index: 1000;
  padding: var(--spacing-sm) 0;
  backdrop-filter: blur(10px);
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
  animation: dropdownSlide 0.3s ease;
}

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

.dropdown-content a {
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--text);
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
  border-radius: 10px;
  margin: 2px var(--spacing-xs);
}

.dropdown-content a:hover {
    background: var(--primary);
  color: white;
  transform: translateX(5px);
}

/* Ensure dropdown content works with both div and ul structures */
.dropdown-content li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Dropdown Arrow Indicator */
.dropdown > a::after {
  content: " ▼";
  font-size: 0.7rem;
  margin-left: var(--spacing-xs);
    transition: transform 0.3s ease;
}

.dropdown:hover > a::after {
  transform: rotate(180deg);
}

/* Donate Button Styles */
.donate-button {
  margin-left: var(--spacing-md);
}

.donate-link {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white !important;
  padding: var(--spacing-sm) var(--spacing-lg) !important;
  border-radius: 25px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.donate-link:hover {
  background: linear-gradient(135deg, #66BB6A 0%, #4CAF50 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 187, 106, 0.5);
  color: white !important;
}

.donate-link:focus {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
  color: white !important;
}

/* High contrast mode for donate button */
.high-contrast .donate-link {
  background: #ff0000 !important;
  color: white !important;
  border: 2px solid white;
}

.high-contrast .donate-link:hover {
  background: #cc0000 !important;
  color: white !important;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
  background: var(--primary);
    border: none;
  font-size: 1.5rem;
    cursor: pointer;
  padding: var(--spacing-sm);
  color: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.nav-toggle:hover {
  /* No movement */
}

.nav-toggle:focus {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 182, 193, 0.98) 100%);
    border-top: 3px solid var(--rainbow-gradient);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
  }

  nav.nav-open {
    display: block;
    animation: mobileNavSlide 0.4s ease;
  }

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

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: var(--spacing-md) 0;
  }

  nav li {
    width: 100%;
  }

  nav a {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 0;
    border-bottom: 1px solid rgba(233, 30, 99, 0.1);
  }

  /* Mobile Dropdown Styles */
  .dropdown-content {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background: linear-gradient(135deg, rgba(240, 255, 255, 0.8) 0%, rgba(255, 240, 245, 0.8) 100%);
    padding-left: var(--spacing-lg);
    border-radius: 0;
  }
  
  .dropdown-content li {
    margin: 0;
    padding: 0;
  }

  .dropdown.dropdown-open .dropdown-content {
    display: block;
  }

  /* Mobile donate button styling */
  .donate-button {
    display: block;
    width: 100%;
    margin: var(--spacing-sm) 0;
  }

  .donate-link {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white !important;
    padding: var(--spacing-md) var(--spacing-lg) !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    text-align: center;
    display: block;
    margin: 0 var(--spacing-lg);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
  }

  .donate-link:hover {
    background: linear-gradient(135deg, #66BB6A 0%, #4CAF50 100%);
    color: white !important;
  }

  .dropdown > a {
    cursor: pointer;
  }

  .dropdown > a::after {
    float: right;
  }
}

/* Enhanced Hero Section - SIMPLIFIED AND FIXED */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 60px 0;
    position: relative;
  color: #333333;
  min-height: 500px;
}

/* Remove ALL pseudo-elements that might interfere */
.hero::before {
  display: none !important;
}

.hero::after {
    content: '';
    position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #e40303, #ff8c00, #ffed00, #008018, #004cff, #732982);
  z-index: 2;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 3;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 24px;
  font-weight: 700;
  color: #333333;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.hero-content p {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 32px;
  color: #333333;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.6);
}

.hero-image {
  flex: 1;
  max-width: 500px;
  z-index: 10;
}

.hero-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 4px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.95);
  padding: 8px;
}

.hero-button {
  font-size: 1.25rem;
  padding: 16px 32px;
  background: #e91e63;
  color: white;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 8px 30px rgba(233, 30, 99, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.hero-button:hover {
  background: #c2185b;
  box-shadow: 0 12px 40px rgba(233, 30, 99, 0.4);
  text-decoration: none;
}

/* Responsive Design for Hero */
@media (max-width: 768px) {
  .hero {
    min-height: 400px;
    padding: 40px 0;
  }
  
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 0 20px;
  }
  
  .hero-content {
    text-align: center;
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .hero-image {
    max-width: 400px;
        width: 100%;
  }

  .hero-image img {
    max-width: 95%;
    max-height: 300px;
  }
  
  .hero-button {
    font-size: 1.1rem;
    padding: 12px 24px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
}

/* Vibrant Content Sections */
section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

/* Alternating Section Backgrounds */
section:nth-child(even) {
  background: var(--pastel-gradient);
  background-attachment: fixed;
}

section:nth-child(odd) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 255, 255, 0.9) 100%);
}

/* Enhanced CTA Section Styles */
.cta-section {
  padding: var(--spacing-xxl) 0;
  position: relative;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-section .button {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../Images/community_pattern.svg') repeat;
  opacity: 0.05;
  z-index: 1;
}

.cta-section h2 {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  color: var(--text);
  font-size: 2.5rem;
  position: relative;
  z-index: 2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-section h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  background: var(--rainbow-gradient);
  border-radius: 3px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
  position: relative;
  z-index: 2;
}

.cta-grid > div {
  text-align: center;
  padding: var(--spacing-xxl);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 240, 245, 0.95) 100%);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 3px solid transparent;
}

.cta-grid > div::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--rainbow-gradient);
  border-radius: 20px 20px 0 0;
}

.cta-grid > div::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 105, 180, 0.1) 0%, transparent 70%);
  transition: var(--transition);
  z-index: -1;
}

.cta-grid > div:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  border-color: var(--primary);
}

.cta-grid > div:hover::after {
  opacity: 0.3;
}

.cta-grid h3 {
  margin-bottom: var(--spacing-md);
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.cta-grid p {
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
  font-size: 1.1rem;
}

/* Enhanced Volunteer Board with Vibrant Colors */
.role-board {
  display: grid;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
  position: relative;
}

/* Volunteer Community Background - Removed for cleaner look */
.role-board::before {
  display: none;
}

@media (min-width: 768px) {
  .role-board {
    grid-template-columns: repeat(3, 1fr);
  }
}

.role-column {
  background: rgba(255, 255, 255, 0.95);
  padding: var(--spacing-lg);
  border-radius: 20px;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 3px solid transparent;
  transition: var(--transition);
}

.role-column::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--primary);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.role-column:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  border-color: var(--primary);
}

.role-column h3 {
  margin-bottom: var(--spacing-lg);
  text-align: center;
  color: var(--text);
  padding-top: var(--spacing-sm);
  font-size: 1.4rem;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.role-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 250, 250, 0.95) 100%);
  padding: var(--spacing-lg);
  border-radius: 15px;
  margin-bottom: var(--spacing-lg);
  transition: all 0.4s ease;
  border: 3px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.role-card::before {
  display: none;
}

.role-card:hover::before {
  display: none;
}

.role-card:hover {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.role-card:focus {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
}

.role-card.closed {
  opacity: 0.7;
  background: linear-gradient(135deg, rgba(200, 200, 200, 0.3) 0%, rgba(220, 220, 220, 0.3) 100%);
}

.role-card.closed:hover {
  box-shadow: none;
  border-color: transparent;
}

/* Enhanced Role Card Layout */
.role-card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.role-card-icon {
  width: 50px;
  height: 50px;
  color: var(--primary);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--primary);
}

.role-card-icon svg {
  width: 60%;
  height: 60%;
}

.role-card-meta {
  flex: 1;
}

.role-card h4 {
  margin: 0 0 var(--spacing-xs) 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

.role-department {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.role-card-actions {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

.role-card-actions .button {
  flex: 1;
  text-align: center;
  font-size: 0.9rem;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 20px;
}

/* Enhanced Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(115, 41, 130, 0.6) 100%);
  z-index: 1000;
  overflow-y: auto;
  padding: var(--spacing-md);
  backdrop-filter: blur(10px);
}

.modal-content {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 240, 245, 0.98) 100%);
  padding: var(--spacing-xxl);
  border-radius: 20px;
  max-width: 600px;
  margin: var(--spacing-xl) auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 3px solid var(--rainbow-gradient);
  backdrop-filter: blur(20px);
}

.modal-close {
  position: absolute;
  right: -15px;
  top: -15px;
  background: var(--primary);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--spacing-sm);
  line-height: 1;
  color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 3px solid white;
  z-index: 1001;
}

.modal-close:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.modal-close:focus {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

/* Enhanced Role Detail Modal Styles */
.role-detail-modal {
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
}

.role-header {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 3px solid var(--rainbow-gradient);
}

.role-icon {
  width: 80px;
  height: 80px;
  color: var(--primary);
  flex-shrink: 0;
  background: var(--soft-rainbow-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--primary);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.role-icon svg {
  width: 60%;
  height: 60%;
}

.role-title-section h2 {
  margin: 0 0 var(--spacing-sm) 0;
  font-size: 2rem;
  color: var(--text);
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.role-summary {
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  border-left: 6px solid var(--primary);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.role-details {
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  border-left: 6px solid var(--secondary);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.role-detail-item {
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
}

.role-detail-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.role-detail-item strong {
  color: var(--primary);
  font-weight: 700;
  min-width: 140px;
  flex-shrink: 0;
}

.role-detail-item span {
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
}

.role-summary p {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text);
  font-weight: 500;
}

.role-description,
.role-criteria {
  margin-bottom: var(--spacing-xl);
}

.role-description h3,
.role-criteria h3 {
  margin-bottom: var(--spacing-md);
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.role-description p {
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
  color: var(--text);
  font-size: 1.1rem;
}

.role-description p:last-child {
  margin-bottom: 0;
}

.criteria-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.criteria-list li {
  padding: var(--spacing-md) 0;
  border-bottom: 2px solid var(--rainbow-gradient);
  position: relative;
  padding-left: var(--spacing-xl);
  font-size: 1.1rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 240, 245, 0.5) 100%);
  margin-bottom: var(--spacing-sm);
  border-radius: 10px;
  padding-right: var(--spacing-md);
}

.criteria-list li:last-child {
  border-bottom: 2px solid var(--rainbow-gradient);
}

.criteria-list li:before {
  content: "✓";
  position: absolute;
  left: var(--spacing-md);
  top: var(--spacing-md);
  color: var(--primary);
  font-weight: bold;
  font-size: 1.3rem;
  background: var(--warm-gradient);
    color: white;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.role-actions {
  display: flex;
  gap: var(--spacing-lg);
  padding-top: var(--spacing-xl);
  border-top: 3px solid var(--rainbow-gradient);
  margin-top: var(--spacing-xl);
}

.role-actions .button {
  flex: 1;
  padding: var(--spacing-lg);
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 25px;
}

/* Optimized Footer Layout */
footer {
  background: var(--cosmic-gradient);
  background-attachment: fixed;
  color: var(--background);
  padding: var(--spacing-lg) 0;
  margin-top: var(--spacing-xl);
  position: relative;
  overflow: hidden;
}

footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--rainbow-gradient);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

/* Horizontal Layout for Desktop */
.footer-layout {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: var(--spacing-lg);
  align-items: start;
  position: relative;
  z-index: 3;
}

/* Left Section - Company Info */
.footer-info {
  text-align: left;
}

.footer-info h3 {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.contact-links a {
  color: var(--vibrant-pink);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.contact-links a:hover {
  color: white;
  text-decoration: underline;
}

.contact-links svg {
  opacity: 0.8;
}

/* Center Section - Pride Flags (Compact) */
.footer-flags {
  text-align: center;
}

.flag-section-title p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  margin-bottom: var(--spacing-sm);
}

.flags-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--spacing-xs);
  max-width: 330px;
  margin: 0 auto;
}

/* Right Section - Social Links (Compact) */
.footer-social {
  text-align: right;
}

/* ==================== RESPONSIVE FOOTER LAYOUT ==================== */

/* Tablet Layout */
@media (max-width: 768px) {
  .footer-layout {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    text-align: center;
  }
  
  .footer-info {
    text-align: center;
    order: 1;
  }
  
  .footer-info h3 {
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
  }
  
  .contact-links {
    flex-direction: row;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
  }
  
  .footer-flags {
    order: 2;
  }
  
  .flags-grid {
    grid-template-columns: repeat(5, 1fr);
    max-width: 220px;
    gap: var(--spacing-xs);
  }
  
  .pride-flag-icon {
    width: 28px;
    height: 18px;
  }
  
  .footer-social {
    order: 3;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

/* Mobile Layout */
@media (max-width: 480px) {
  footer {
    padding: var(--spacing-md) 0;
  }
  
  .footer-layout {
    gap: var(--spacing-sm);
  }
  
  .footer-info h3 {
    font-size: 0.9rem;
  }
  
  .contact-links {
    flex-direction: column;
    gap: var(--spacing-xs);
  }
  
  .contact-links a {
    font-size: 0.8rem;
    justify-content: center;
  }
  
  .flag-section-title p {
    font-size: 0.7rem;
  }
  
  .flags-grid {
    grid-template-columns: repeat(5, 1fr);
    max-width: 180px;
    gap: 4px;
  }
  
  .pride-flag-icon {
    width: 24px;
    height: 15px;
    border-radius: 3px;
  }
  
  .social-links a {
    width: 36px;
    height: 36px;
  }
  
  .social-links a svg {
    width: 18px;
    height: 18px;
  }
}

/* Compact Pride Flag Icons */
.pride-flag-icon {
    width: 32px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

.pride-flag-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

.pride-flag-icon:focus {
    outline: 3px solid var(--vibrant-blue);
    outline-offset: 3px;
}

.pride-flag-icon:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Theme Active State */
.pride-flag-icon.active-theme {
    border: 3px solid #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Default/Reset Theme Flag */
.default-theme {
    background: linear-gradient(45deg, 
        var(--primary) 0%, 
        var(--secondary) 50%, 
        var(--vibrant-purple) 100%
    );
}

/* Rainbow Pride Flag */
.rainbow-flag {
    background: var(--rainbow-gradient);
}

/* Progress Pride Flag */
.progress-flag {
    background: linear-gradient(to right,
        #ffffff 0%, #ffffff 10%,
        #f5a9b8 10%, #f5a9b8 20%,
        #5bcffa 20%, #5bcffa 30%,
        #784f17 30%, #784f17 35%,
        #000000 35%, #000000 40%,
        var(--pride-red) 40%,
        var(--pride-orange) 50%,
        var(--pride-yellow) 60%,
        var(--pride-green) 70%,
        var(--pride-blue) 80%,
        var(--pride-purple) 90%
    );
}

/* Transgender Flag */
.trans-flag {
    background: linear-gradient(to bottom,
        var(--pride-trans-blue) 0%,
        var(--pride-trans-blue) 20%,
        var(--pride-trans-pink) 20%,
        var(--pride-trans-pink) 40%,
        var(--pride-trans-white) 40%,
        var(--pride-trans-white) 60%,
        var(--pride-trans-pink) 60%,
        var(--pride-trans-pink) 80%,
        var(--pride-trans-blue) 80%,
        var(--pride-trans-blue) 100%
    );
}

/* Non-Binary Flag */
.nonbinary-flag {
    background: linear-gradient(to bottom,
        #fcf434 0%, #fcf434 25%,
        #ffffff 25%, #ffffff 50%,
        #9c59d1 50%, #9c59d1 75%,
        #2c2c2c 75%, #2c2c2c 100%
    );
}

/* Lesbian Flag */
.lesbian-flag {
    background: linear-gradient(to bottom,
        #d62d20 0%, #d62d20 16.66%,
        #ff9955 16.66%, #ff9955 33.33%,
        #ffffff 33.33%, #ffffff 50%,
        #d161a2 50%, #d161a2 66.66%,
        #a20160 66.66%, #a20160 100%
    );
}

/* Gay Flag */
.gay-flag {
    background: linear-gradient(to bottom,
        #078d70 0%, #078d70 16.66%,
        #26ceaa 16.66%, #26ceaa 33.33%,
        #98e8c1 33.33%, #98e8c1 50%,
        #ffffff 50%, #ffffff 66.66%,
        #7bade2 66.66%, #7bade2 83.33%,
        #5049cc 83.33%, #5049cc 100%
    );
}

/* Bisexual Flag */
.bisexual-flag {
    background: linear-gradient(to bottom,
        #d60270 0%, #d60270 40%,
        #9b59b6 40%, #9b59b6 60%,
        #0038a8 60%, #0038a8 100%
    );
}

/* Pansexual Flag */
.pansexual-flag {
    background: linear-gradient(to bottom,
        #ff218c 0%, #ff218c 33.33%,
        #ffd800 33.33%, #ffd800 66.66%,
        #21b1ff 66.66%, #21b1ff 100%
    );
}

/* Asexual Flag */
.asexual-flag {
    background: linear-gradient(to bottom,
        #000000 0%, #000000 25%,
        #a3a3a3 25%, #a3a3a3 50%,
        #ffffff 50%, #ffffff 75%,
        #800080 75%, #800080 100%
    );
}

/* Bear Pride Flag */
.bear-flag {
    background: linear-gradient(to bottom,
        #654321 0%, #654321 14.28%,
        #D2691E 14.28%, #D2691E 28.57%,
        #FFD700 28.57%, #FFD700 42.86%,
        #F5DEB3 42.86%, #F5DEB3 57.14%,
        #FFFFFF 57.14%, #FFFFFF 71.43%,
        #808080 71.43%, #808080 85.71%,
        #000000 85.71%, #000000 100%
    );
}

/* ==================== THEME SWITCHING FUNCTIONALITY ==================== */

/* Theme override styles - applied to body when theme is active */
body.theme-rainbow {
    --primary: var(--pride-red);
    --secondary: var(--pride-blue);
    --accent: var(--pride-purple);
    --vibrant-pink: var(--pride-red);
    --text: #2c2c2c;
    --text-light: #4a4a4a;
    --background: #ffffff;
}

body.theme-progress {
    --primary: #d62d20;
    --secondary: var(--pride-trans-blue);
    --accent: #784f17;
    --vibrant-pink: var(--pride-trans-pink);
    --text: #2c2c2c;
    --text-light: #4a4a4a;
    --background: #ffffff;
}

body.theme-trans {
    --primary: #f5a9b8;
    --secondary: #5bcffa;
    --accent: #f5a9b8;
    --vibrant-pink: #f5a9b8;
    --text: #2c2c2c;
    --text-light: #4a4a4a;
    --background: #ffffff;
}

body.theme-nonbinary {
    --primary: #9c59d1;
    --secondary: #2c2c2c;
    --accent: #9c59d1;
    --vibrant-pink: #d4b800; /* Darker yellow for better visibility */
    --text: #1a1a1a; /* Darker text for better contrast */
    --text-light: #3a3a3a;
    --background: #ffffff;
}

body.theme-lesbian {
    --primary: #d62d20;
    --secondary: #a20160;
    --accent: #ff9955;
    --vibrant-pink: #d161a2;
    --text: #2c2c2c;
    --text-light: #4a4a4a;
    --background: #ffffff;
}

body.theme-gay {
    --primary: #078d70;
    --secondary: #5049cc;
    --accent: #26ceaa;
    --vibrant-pink: #7bade2;
    --text: #2c2c2c;
    --text-light: #4a4a4a;
    --background: #ffffff;
}

body.theme-bisexual {
    --primary: #d60270;
    --secondary: #0038a8;
    --accent: #9b59b6;
    --vibrant-pink: #d60270;
    --text: #2c2c2c;
    --text-light: #4a4a4a;
    --background: #ffffff;
}

body.theme-pansexual {
    --primary: #ff218c;
    --secondary: #21b1ff;
    --accent: #cc9900; /* Darker yellow for better contrast */
    --vibrant-pink: #ff218c;
    --text: #1a1a1a; /* Darker text for better contrast */
    --text-light: #3a3a3a;
    --background: #ffffff;
}

body.theme-asexual {
    --primary: #800080;
    --secondary: #666666;
    --accent: #a3a3a3;
    --vibrant-pink: #800080;
    --text: #2c2c2c;
    --text-light: #4a4a4a;
    --background: #ffffff;
}

body.theme-bear {
    --primary: #654321;
    --secondary: #D2691E;
    --accent: #FFD700;
    --vibrant-pink: #D2691E;
    --text: #2c2c2c;
    --text-light: #4a4a4a;
    --background: #ffffff;
}

/* ==================== ENHANCED THEME VISUAL EFFECTS ==================== */

/* Footer theme gradients with dark overlay for better text contrast */
body.theme-rainbow footer {
    background: 
        linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
        linear-gradient(135deg, 
            var(--pride-red) 0%, 
            var(--pride-orange) 16.66%, 
            var(--pride-yellow) 33.33%, 
            var(--pride-green) 50%, 
            var(--pride-blue) 66.66%, 
            var(--pride-purple) 100%) !important;
}

body.theme-progress footer {
    background: 
        linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
        linear-gradient(135deg,
            #ffffff 0%, #f5a9b8 20%, #5bcffa 40%, 
            #784f17 60%, #000000 80%, var(--pride-red) 100%) !important;
}

body.theme-trans footer {
    background: 
        linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
        linear-gradient(135deg,
            #5bcffa 0%, #f5a9b8 25%, 
            #ffffff 50%, #f5a9b8 75%, #5bcffa 100%) !important;
}

body.theme-nonbinary footer {
    background: 
        linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
        linear-gradient(135deg,
            #fcf434 0%, #ffffff 25%, 
            #9c59d1 50%, #2c2c2c 100%) !important;
}

body.theme-lesbian footer {
    background: 
        linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
        linear-gradient(135deg,
            #d62d20 0%, #ff9955 25%, 
            #ffffff 50%, #d161a2 75%, #a20160 100%) !important;
}

body.theme-gay footer {
    background: 
        linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
        linear-gradient(135deg,
            #078d70 0%, #26ceaa 20%, #98e8c1 40%,
            #ffffff 60%, #7bade2 80%, #5049cc 100%) !important;
}

body.theme-bisexual footer {
    background: 
        linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
        linear-gradient(135deg,
            #d60270 0%, #d60270 40%, 
            #9b59b6 50%, #9b59b6 60%, #0038a8 100%) !important;
}

body.theme-pansexual footer {
    background: 
        linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
        linear-gradient(135deg,
            #ff218c 0%, #ff218c 33.33%, 
            #ffd800 33.33%, #ffd800 66.66%, 
            #21b1ff 66.66%, #21b1ff 100%) !important;
}

body.theme-asexual footer {
    background: 
        linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
        linear-gradient(135deg,
            #000000 0%, #a3a3a3 25%, 
            #ffffff 50%, #800080 100%) !important;
}

body.theme-bear footer {
    background: 
        linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
        linear-gradient(135deg,
            #654321 0%, #654321 14.28%,
            #D2691E 14.28%, #D2691E 28.57%,
            #FFD700 28.57%, #FFD700 42.86%,
            #F5DEB3 42.86%, #F5DEB3 57.14%,
            #FFFFFF 57.14%, #FFFFFF 71.43%,
            #808080 71.43%, #808080 85.71%,
            #000000 85.71%, #000000 100%) !important;
}

/* Header theme effects */
body[class*="theme-"] header {
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body[class*="theme-"] .pride-stripe {
    background: var(--primary);
    animation: prideGlow 2s ease-in-out infinite alternate;
}

@keyframes prideGlow {
    0% { box-shadow: 0 0 5px var(--primary); }
    100% { box-shadow: 0 0 20px var(--primary); }
}

/* Enhanced button theming */
body[class*="theme-"] .button,
body[class*="theme-"] .btn {
    background: var(--primary) !important;
    color: white !important;
    border: 2px solid var(--accent) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

body[class*="theme-"] .button:hover,
body[class*="theme-"] .btn:hover {
    background: var(--accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Link theming with better contrast */
body[class*="theme-"] a {
    color: var(--primary);
    font-weight: 500;
}

body[class*="theme-"] a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Mission section theme effects with improved readability */
body[class*="theme-"] .decorative-shapes {
    background: 
        linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)),
        linear-gradient(135deg, 
            var(--primary) 0%, 
            var(--secondary) 50%, 
            var(--accent) 100%) !important;
}

/* Navigation theme effects with enhanced contrast */
body[class*="theme-"] nav a {
    color: var(--text) !important;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
    font-weight: 500;
}

body[class*="theme-"] nav a:hover {
    background: var(--primary) !important;
    color: white !important;
    border-radius: 4px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* Section divider theming */
body[class*="theme-"] .section-divider {
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary) 50%, 
        transparent 100%);
    height: 3px;
}

/* Enhanced text readability for all themes */
body[class*="theme-"] h1,
body[class*="theme-"] h2,
body[class*="theme-"] h3,
body[class*="theme-"] h4,
body[class*="theme-"] h5,
body[class*="theme-"] h6 {
    color: var(--text) !important;
    text-shadow: 1px 1px 3px rgba(255,255,255,0.9);
    font-weight: 600;
}

body[class*="theme-"] p {
    color: var(--text) !important;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.7);
}

/* Ensure readability in mission section */
body[class*="theme-"] .decorative-shapes h1,
body[class*="theme-"] .decorative-shapes h2,
body[class*="theme-"] .decorative-shapes h3,
body[class*="theme-"] .decorative-shapes p {
    color: var(--text) !important;
    text-shadow: 1px 1px 3px rgba(255,255,255,0.9);
}

/* Enhanced button contrast */
body[class*="theme-"] .decorative-shapes .button {
    background: var(--primary) !important;
    color: white !important;
    border: 2px solid var(--text) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    font-weight: 600;
}

body[class*="theme-"] .decorative-shapes .button:hover {
    background: var(--text) !important;
    color: white !important;
    border-color: var(--primary) !important;
}

/* Enhanced contrast handling for all themed footers */
body[class*="theme-"] footer * {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    font-weight: 500;
}

body[class*="theme-"] footer a {
    color: rgba(255,255,255,0.9) !important;
    text-decoration: underline;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

body[class*="theme-"] footer a:hover {
    color: white !important;
    text-shadow: 2px 2px 6px rgba(0,0,0,1);
}

/* ==================== ENHANCED SOCIAL MEDIA THEMING ==================== */

/* Dynamic Social Media Button Theming Based on Pride Flags */
body[class*="theme-"] .social-links a {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

/* Default theme social buttons use primary colors with proper contrast */
body[class*="theme-"] .social-links a {
    background: var(--primary) !important;
    border: 2px solid var(--accent) !important;
}

/* Auto-detect and adjust text color for contrast */
body.theme-rainbow .social-links a,
body.theme-progress .social-links a,
body.theme-gay .social-links a,
body.theme-lesbian .social-links a,
body.theme-bisexual .social-links a,
body.theme-bear .social-links a {
    color: white !important;
}

body.theme-trans .social-links a,
body.theme-nonbinary .social-links a,
body.theme-pansexual .social-links a,
body.theme-asexual .social-links a {
    color: #2c2c2c !important;
}

/* Rainbow Theme */
body.theme-rainbow .social-links a {
    background: linear-gradient(135deg, var(--pride-red), var(--pride-orange)) !important;
    border-color: var(--pride-yellow) !important;
}

/* Progress Theme */
body.theme-progress .social-links a {
    background: linear-gradient(135deg, #5bcffa, #f5a9b8) !important;
    border-color: #784f17 !important;
}

/* Transgender Theme */
body.theme-trans .social-links a {
    background: linear-gradient(135deg, #5bcffa, #f5a9b8) !important;
    border-color: white !important;
}

/* Non-Binary Theme */
body.theme-nonbinary .social-links a {
    background: linear-gradient(135deg, #fcf434, #9c59d1) !important;
    border-color: white !important;
}

/* Lesbian Theme */
body.theme-lesbian .social-links a {
    background: linear-gradient(135deg, #d62d20, #ff9955) !important;
    border-color: #d161a2 !important;
}

/* Gay Theme */
body.theme-gay .social-links a {
    background: linear-gradient(135deg, #078d70, #26ceaa) !important;
    border-color: #7bade2 !important;
}

/* Bisexual Theme */
body.theme-bisexual .social-links a {
    background: linear-gradient(135deg, #d60270, #9b59b6) !important;
    border-color: #0038a8 !important;
}

/* Pansexual Theme */
body.theme-pansexual .social-links a {
    background: linear-gradient(135deg, #ff218c, #ffd800) !important;
    border-color: #21b1ff !important;
}

/* Asexual Theme */
body.theme-asexual .social-links a {
    background: linear-gradient(135deg, #000000, #a3a3a3) !important;
    border-color: #800080 !important;
    color: white !important;
}

/* Bear Theme */
body.theme-bear .social-links a {
    background: linear-gradient(135deg, #654321, #D2691E) !important;
    border-color: #FFD700 !important;
    color: white !important;
}

/* Enhanced hover states with theme colors */
body[class*="theme-"] .social-links a:hover {
    background: var(--accent) !important;
    border-color: var(--secondary) !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4) !important;
}

/* Platform-Specific Brand Colors on Hover - Override theme colors */
body[class*="theme-"] .social-links a[aria-label*="Facebook"]:hover {
    background: #1877f2 !important;
    color: white !important;
    border-color: #1877f2 !important;
}

body[class*="theme-"] .social-links a[aria-label*="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    color: white !important;
    border-color: #e6683c !important;
}

body[class*="theme-"] .social-links a[aria-label*="LinkedIn"]:hover {
    background: #0077b5 !important;
    color: white !important;
    border-color: #0077b5 !important;
}

body[class*="theme-"] .social-links a[aria-label*="Email"]:hover {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}

/* Icon Contrast Enhancement */
body[class*="theme-"] .social-links a svg {
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.3));
    transition: filter 0.3s ease;
}

body[class*="theme-"] .social-links a:hover svg {
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
}

body[class*="theme-"] .social-links a[aria-label*="Facebook"]:hover svg {
    fill: white !important;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.8));
}

body[class*="theme-"] .social-links a[aria-label*="LinkedIn"]:hover {
    background: #0077b5 !important;
    color: white !important;
    border-color: #0077b5 !important;
}

body[class*="theme-"] .social-links a[aria-label*="LinkedIn"]:hover svg {
    fill: white !important;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.8));
}

/* Email icon retains theme colors on hover */
body[class*="theme-"] .social-links a[aria-label*="Email"]:hover {
    background: var(--secondary) !important;
    border-color: var(--primary) !important;
}

body[class*="theme-"] .social-links a[aria-label*="Email"]:hover svg {
    fill: #000000 !important;
    filter: drop-shadow(1px 1px 2px rgba(255,255,255,0.8));
}

/* Email icon white on dark themes */
body.theme-asexual .social-links a[aria-label*="Email"]:hover svg,
body.theme-nonbinary .social-links a[aria-label*="Email"]:hover svg {
    fill: #ffffff !important;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.8));
}

/* Default SVG icons - black on light backgrounds */
body[class*="theme-"] .social-links a svg {
    fill: #000000 !important;
    filter: drop-shadow(1px 1px 2px rgba(255,255,255,0.8));
    width: 24px !important;
    height: 24px !important;
    opacity: 0.9;
}

/* Hover state for SVG icons */
body[class*="theme-"] .social-links a:hover svg {
    opacity: 1;
    fill: #000000 !important;
    filter: drop-shadow(1px 1px 2px rgba(255,255,255,0.6));
}

/* Special handling for dark background themes - white icons */
body.theme-asexual .social-links a svg,
body.theme-nonbinary .social-links a svg {
    fill: #ffffff !important;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.8));
}

body.theme-asexual .social-links a:hover svg,
body.theme-nonbinary .social-links a:hover svg {
    fill: #ffffff !important;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.9));
}

/* Add enhanced focus states for accessibility */
body[class*="theme-"] .social-links a:focus {
    outline: 3px solid rgba(255,255,255,0.8) !important;
    outline-offset: 3px !important;
    background: rgba(255,255,255,1) !important;
}

/* Additional contrast enhancement for social links container */
body[class*="theme-"] .social-links {
    padding: var(--spacing-sm);
    border-radius: 8px;
    background: rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

/* ==================== THEME TRANSITION EFFECTS ==================== */

/* Smooth transitions for theme changes */
body {
    transition: all 0.5s ease-in-out;
}

body.theme-transitioning {
    opacity: 0.9;
    transform: scale(0.995);
}

/* Sparkle animation for theme celebration */
@keyframes sparkleFloat {
    0% {
        opacity: 0;
        transform: scale(0) translateY(0px);
    }
    20% {
        opacity: 1;
        transform: scale(1) translateY(-10px);
    }
    80% {
        opacity: 0.8;
        transform: scale(0.8) translateY(-30px);
    }
    100% {
        opacity: 0;
        transform: scale(0) translateY(-50px);
    }
}

/* Enhanced glow effects for active elements */
body[class*="theme-"] .pride-flag-icon.active-theme {
    border: 3px solid #ffffff;
    box-shadow: 0 0 25px var(--primary), 0 0 50px var(--primary);
    transform: scale(1.1);
}

/* Pulsing effect for section dividers */
body[class*="theme-"] .section-divider {
    animation: dividerPulse 3s ease-in-out infinite;
}

@keyframes dividerPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Enhanced hover effects for themed elements */
body[class*="theme-"] .role-card:hover,
body[class*="theme-"] .event-card:hover,
body[class*="theme-"] .action-card:hover {
    border-left: 4px solid var(--primary);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    transform: translateY(-5px);
}

/* Theme-specific background patterns */
body.theme-rainbow::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(228, 3, 3, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 140, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 128, 24, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

body.theme-trans::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, rgba(91, 207, 250, 0.05) 0%, transparent 50%),
        linear-gradient(-45deg, rgba(245, 169, 184, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Responsive flag layout */
@media (max-width: 768px) {
    .pride-flags {
        gap: var(--spacing-sm);
    }
    
    .pride-flag-icon {
        width: 35px;
        height: 22px;
    }
    
    .flag-section-title p {
        font-size: 0.8rem !important;
    }
    
    /* Reduce animation intensity on mobile */
    body[class*="theme-"] .pride-flag-icon.active-theme {
        transform: scale(1.05);
        box-shadow: 0 0 15px var(--primary);
    }
}

/* ==================== HELP & SUPPORT STYLES ==================== */

/* Hero sections for support pages */
.help-support-hero {
    background: linear-gradient(135deg, 
        rgba(0, 128, 24, 0.9) 0%, 
        rgba(0, 76, 255, 0.9) 50%, 
        rgba(115, 41, 130, 0.9) 100%);
    color: white;
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

.quiz-hero {
    background: linear-gradient(135deg, 
        rgba(228, 3, 3, 0.9) 0%, 
        rgba(255, 140, 0, 0.9) 50%, 
        rgba(255, 237, 0, 0.9) 100%);
    color: white;
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

.breathing-hero {
    background: linear-gradient(135deg, 
        rgba(91, 207, 250, 0.9) 0%, 
        rgba(245, 169, 184, 0.9) 50%, 
        rgba(255, 255, 255, 0.9) 100%);
    color: #2c2c2c;
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

/* Emergency notice */
.emergency-notice {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    padding: var(--spacing-lg) 0;
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.emergency-content h2 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
}

/* Support sections */
.support-section {
    padding: var(--spacing-xxl) 0;
}

.support-section:nth-child(even) {
    background: var(--gray);
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
}

/* Support cards grid */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.support-card {
    background: white;
    border-radius: var(--border-radius);
    padding: var(--spacing-xl);
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.emergency-card {
    border-left-color: #f44336;
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.05), rgba(255, 255, 255, 1));
}

.support-card h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-md);
    font-size: 1.3rem;
}

.contact-info {
    margin-top: var(--spacing-lg);
}

.contact-item {
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.contact-item strong {
    min-width: 80px;
    color: var(--text);
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

.emergency-number {
    font-size: 1.2rem !important;
    font-weight: bold !important;
    color: #f44336 !important;
}

.highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    font-weight: 600;
}

.hours {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Tools grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.tool-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.9));
    border-radius: 15px;
    padding: var(--spacing-xxl);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: var(--transition);
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.tool-card h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-lg);
    font-size: 1.5rem;
}

.tool-card p {
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

/* Support message */
.support-message {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

.message-content h2 {
    margin-bottom: var(--spacing-lg);
    font-size: 2rem;
}

.message-content a {
    color: white;
    text-decoration: underline;
}

/* ==================== QUIZ STYLES ==================== */

.quiz-section {
    padding: var(--spacing-xxl) 0;
    background: var(--gray);
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    padding: var(--spacing-xxl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Quiz progress */
.quiz-progress {
    margin-bottom: var(--spacing-xl);
}

.progress-bar {
    background: #e0e0e0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

.progress-fill {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: var(--text-light);
    font-weight: 500;
}

/* Quiz content */
.quiz-content {
    margin-bottom: var(--spacing-xl);
}

.question {
    margin-bottom: var(--spacing-xl);
}

.question h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-lg);
    font-size: 1.3rem;
}

.answers {
    display: grid;
    gap: var(--spacing-md);
}

.answer-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.answer-btn:hover {
    border-color: var(--primary);
    background: rgba(233, 30, 99, 0.05);
}

.answer-btn.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.answer-btn.correct {
    border-color: var(--success);
    background: linear-gradient(135deg, var(--success), #66bb6a);
    color: white;
}

.answer-btn.incorrect {
    border-color: var(--error);
    background: linear-gradient(135deg, var(--error), #ef5350);
    color: white;
}

.explanation {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: rgba(0, 128, 24, 0.1);
    border-left: 4px solid var(--success);
    border-radius: var(--border-radius);
    display: none;
}

.explanation.show {
    display: block;
}

/* Quiz navigation */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

/* Quiz results */
.quiz-results {
    text-align: center;
    padding: var(--spacing-xxl);
}

.score-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    margin: var(--spacing-xl) 0;
    font-size: 2rem;
    font-weight: bold;
}

.score-number {
    font-size: 3rem;
}

.score-total {
    font-size: 1.5rem;
    opacity: 0.8;
}

.score-message {
    font-size: 1.2rem;
    margin: var(--spacing-xl) 0;
    color: var(--text);
}

.results-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    justify-content: center;
    margin-top: var(--spacing-xl);
}

/* Learning resources */
.learning-resources {
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.resource-card {
    background: white;
    border-radius: var(--border-radius);
    padding: var(--spacing-xl);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ==================== BREATHING EXERCISE STYLES ==================== */

.breathing-section {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, 
        rgba(91, 207, 250, 0.1) 0%, 
        rgba(245, 169, 184, 0.1) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
}

.breathing-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* Exercise selection */
.exercise-selection h2 {
    margin-bottom: var(--spacing-xl);
    color: var(--primary);
}

.duration-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.duration-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-xl);
    border-radius: 15px;
    transition: var(--transition);
}

.duration-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.duration-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.duration-time {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Audio toggle */
.audio-toggle {
    margin-bottom: var(--spacing-xl);
}

.toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    font-weight: 500;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    transition: var(--transition);
}

.toggle-slider:before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: var(--transition);
}

input[type="checkbox"]:checked + .toggle-slider {
    background: var(--primary);
}

input[type="checkbox"]:checked + .toggle-slider:before {
    transform: translateX(26px);
}

input[type="checkbox"] {
    display: none;
}

/* Breathing interface */
.breathing-instructions {
    margin-bottom: var(--spacing-xl);
}

.breathing-instructions h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

/* Breathing circle */
.breathing-circle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    margin: var(--spacing-xxl) 0;
}

.breathing-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(91, 207, 250, 0.3), rgba(245, 169, 184, 0.3));
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 4s ease-in-out;
}

.breathing-circle.inhale {
    transform: scale(1.3);
}

.breathing-circle.exhale {
    transform: scale(0.8);
}

.circle-inner {
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(91, 207, 250, 0.5), rgba(245, 169, 184, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
}

.breathing-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

/* Breathing controls */
.breathing-controls {
    margin-top: var(--spacing-xl);
}

.time-display {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: var(--spacing-lg);
}

.control-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
}

/* Completion message */
.completion-message {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(255, 255, 255, 0.9));
    border-radius: 15px;
    padding: var(--spacing-xxl);
    margin-top: var(--spacing-xl);
}

.completion-message h3 {
    color: var(--success);
    margin-bottom: var(--spacing-lg);
}

.completion-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    justify-content: center;
    margin-top: var(--spacing-xl);
}

/* Breathing support section */
.breathing-support {
    background: linear-gradient(135deg, 
        rgba(91, 207, 250, 0.1) 0%, 
        rgba(245, 169, 184, 0.1) 100%);
    color: var(--text);
}

.breathing-tips {
    background: white;
    border-radius: var(--border-radius);
    padding: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.breathing-tips h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.breathing-tips ul {
    list-style: none;
    padding: 0;
}

.breathing-tips li {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
    position: relative;
}

.breathing-tips li:before {
    content: '🌿';
    position: absolute;
    left: 0;
    top: 0;
}

/* Additional resources */
.additional-resources {
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

/* ==================== RESPONSIVE SUPPORT STYLES ==================== */

@media (max-width: 768px) {
    .support-grid,
    .tools-grid,
    .resources-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .quiz-container {
        margin: 0 var(--spacing-lg);
        padding: var(--spacing-lg);
    }
    
    .quiz-navigation {
        flex-direction: column;
    }
    
    .breathing-circle {
        width: 150px;
        height: 150px;
    }
    
    .duration-options {
        grid-template-columns: 1fr;
    }
    
    .results-actions,
    .completion-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .tool-card,
    .support-card {
        padding: var(--spacing-lg);
    }
}

.social-links {
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.social-links a {
  color: #333333;
  transition: var(--transition);
  padding: var(--spacing-sm);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.social-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Instagram Brand Colors on Hover */
.social-links a[aria-label*="Instagram"]:hover {
  background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  color: white;
  border-color: #e6683c;
}

/* Facebook Brand Colors on Hover */
.social-links a[aria-label*="Facebook"]:hover {
  background: #1877f2;
  color: white;
  border-color: #1877f2;
}

/* LinkedIn Brand Colors on Hover */
.social-links a[aria-label*="LinkedIn"]:hover {
  background: #0077b5;
  color: white;
  border-color: #0077b5;
}

.social-links a:focus {
  outline: 3px solid var(--vibrant-blue);
  outline-offset: 3px;
}

/* SIMPLE ACCESSIBILITY PANEL POSITIONING */
.accessibility-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.accessibility-toggle {
  background: var(--warm-gradient);
  color: white;
  border: none;
  border-radius: 50%;
  width: 65px;
  height: 65px;
  cursor: pointer;
  font-size: 1.6rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.accessibility-toggle:hover {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.6);
}

.accessibility-toggle:focus {
  outline: 4px solid var(--vibrant-blue);
  outline-offset: 3px;
}

.accessibility-menu {
  position: absolute;
  bottom: 80px;
  right: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 240, 245, 0.98) 100%);
  border: 3px solid var(--rainbow-gradient);
  border-radius: 20px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
  padding: var(--spacing-xl);
  min-width: 300px;
  display: none;
  backdrop-filter: blur(20px);
}

.accessibility-menu.open {
  display: block;
  animation: accessibilitySlideIn 0.4s ease;
}

@keyframes accessibilitySlideIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
  }
}

.accessibility-menu h3 {
  margin-bottom: var(--spacing-lg);
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 700;
        text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.accessibility-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) 0;
  border-bottom: 2px solid var(--rainbow-gradient);
  margin-bottom: var(--spacing-sm);
}

.accessibility-option:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.accessibility-option label {
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  flex: 1;
        font-size: 1.1rem;
    }

.accessibility-toggle-switch {
  position: relative;
  width: 55px;
  height: 28px;
  background: #ddd;
  border-radius: 28px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.accessibility-toggle-switch:hover {
  background: #ccc;
}

.accessibility-toggle-switch.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4), inset 0 1px 2px rgba(255,255,255,0.3);
}

.accessibility-toggle-switch::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0,0,0,0.1);
}

.accessibility-toggle-switch:hover::before {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.accessibility-toggle-switch.active::before {
  left: 29px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
  background: #ffffff;
}

.accessibility-toggle-switch:focus {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

.text-size-controls {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
}

.text-size-btn {
  background: var(--gray);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: var(--spacing-sm) var(--spacing-md);
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
  min-width: 35px;
  text-align: center;
  font-weight: 600;
}

.text-size-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.text-size-btn:focus {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

.text-size-btn.active {
  background: var(--warm-gradient);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.text-size-btn[data-size="small"] {
  font-size: 0.8rem;
}

.text-size-btn[data-size="large"] {
  font-size: 1.1rem;
}

.text-size-btn[data-size="extra-large"] {
  font-size: 1.3rem;
}

@media (max-width: 768px) {
  .accessibility-panel {
    bottom: 15px !important;
    right: 15px !important;
  }
  
  .accessibility-toggle {
    width: 55px;
    height: 55px;
    font-size: 1.3rem;
  }
  
  .accessibility-menu {
    min-width: 280px;
    bottom: 70px;
    padding: var(--spacing-lg);
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
  }

/* Apply Page Styles */
.apply-instructions {
  max-width: 800px;
  margin: 0 auto;
}

.step-cards {
  display: grid;
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

@media (min-width: 768px) {
  .step-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background: var(--gray);
  padding: var(--spacing-lg);
  border-radius: 8px;
  text-align: center;
  position: relative;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--rainbow-gradient);
  border-radius: 8px 8px 0 0;
}

.step-card:hover {
  border-color: var(--primary);
}

.step-number {
  background: var(--primary);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto var(--spacing-md) auto;
}

.step-card h3 {
  margin-bottom: var(--spacing-sm);
  color: var(--primary);
  font-size: 1.25rem;
}

.step-card p {
  margin: 0;
  line-height: 1.6;
}

.email-contact {
  background: var(--primary);
  color: white;
  padding: var(--spacing-xl);
  border-radius: 12px;
  text-align: center;
  margin: var(--spacing-xl) 0;
  position: relative;
}

.email-contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--rainbow-gradient);
  border-radius: 12px 12px 0 0;
}

.email-contact h2 {
  color: white;
  margin-bottom: var(--spacing-lg);
  font-size: 1.75rem;
}

.email-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  background: rgba(255, 255, 255, 0.1);
  padding: var(--spacing-lg);
  border-radius: 8px;
  margin: var(--spacing-lg) 0;
}

.email-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.email-details h3 {
  margin: 0 0 var(--spacing-xs) 0;
  font-size: 1.5rem;
}

.email-details h3 a {
  color: white;
  text-decoration: none;
  transition: opacity 0.2s;
}

.email-details h3 a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.email-details p {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.9;
}

.what-to-include {
  background: #f8f9fa;
  padding: var(--spacing-xl);
  border-radius: 8px;
  margin: var(--spacing-xl) 0;
  position: relative;
}

.what-to-include::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--rainbow-gradient);
  border-radius: 8px 8px 0 0;
}

.what-to-include h2 {
  margin-bottom: var(--spacing-lg);
  color: var(--primary);
  text-align: center;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  padding: var(--spacing-sm) 0;
  font-size: 1.125rem;
  line-height: 1.6;
  border-bottom: 1px solid #e9ecef;
}

.checklist li:last-child {
  border-bottom: none;
}

.next-steps {
  margin: var(--spacing-xl) 0;
  padding: var(--spacing-xl);
  border: 2px solid var(--primary);
  border-radius: 8px;
  position: relative;
}

.next-steps::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--rainbow-gradient);
  border-radius: 8px 8px 0 0;
}

.next-steps h2 {
  margin-bottom: var(--spacing-lg);
  color: var(--primary);
  text-align: center;
}

.next-steps ol {
  padding-left: var(--spacing-lg);
  margin: 0;
}

.next-steps li {
  margin-bottom: var(--spacing-md);
  font-size: 1.125rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  margin: var(--spacing-xl) 0;
}

.cta-buttons .button {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.cta-buttons .button:hover {
  text-decoration: none;
}

/* Mobile responsive for apply page */
@media (max-width: 768px) {
  .step-cards {
    grid-template-columns: 1fr;
  }
  
  .email-box {
    flex-direction: column;
    text-align: center;
  }
  
  .email-icon {
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .button {
    width: 100%;
    justify-content: center;
  }
  
  .apply-instructions {
    padding: 0 var(--spacing-md);
  }
} 

/* Form Enhancement Styles */
.form-group input.error,
.form-group textarea.error {
  border-color: #dc3545;
  background-color: #fff5f5;
}

.form-error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: var(--spacing-xs);
  display: block;
  min-height: 1.2em;
}

/* Button Loading State */
.button-loading {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.button-loading:after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button:disabled:hover {
  transform: none;
  background-color: var(--primary);
}

/* Success and Error Messages */
.success-message,
.error-message {
  text-align: center;
  padding: var(--spacing-xl);
}

.success-icon,
.error-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  display: block;
}

.success-icon {
  color: #28a745;
}

.error-icon {
  color: #dc3545;
}

.success-message h3 {
  color: #28a745;
  margin-bottom: var(--spacing-md);
}

.error-message h3 {
  color: #dc3545;
  margin-bottom: var(--spacing-md);
}

.success-message p,
.error-message p {
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

.success-message small {
  color: #6c757d;
  font-style: italic;
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
  .role-board {
    grid-template-columns: 1fr;
  }
  
  .role-card-header {
    flex-direction: row;
    align-items: center;
  }
  
  .role-card-icon {
    width: 32px;
    height: 32px;
  }
  
  .role-department {
    font-size: 0.625rem;
  }
}

/* Accessibility Improvements */
.button:focus,
.role-card:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.modal:focus-within {
  outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .role-card {
    border: 2px solid var(--text);
  }
  
  .role-card:hover {
    border-color: var(--primary);
  }
  
  .role-department {
    border: 1px solid white;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .role-card,
  .button {
    transition: none;
  }
  
  .role-card:hover {
    transform: none;
  }
  
  .event-rsvp-btn,
  .event-rsvp-btn:hover,
  .event-rsvp-btn:focus {
    transition: none !important;
    transform: none !important;
  }
  
  .event-rsvp-btn::before {
    display: none !important;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
} 

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    padding: var(--spacing-md);
}

.modal-content {
    background-color: var(--background);
    padding: var(--spacing-xl);
    border-radius: 8px;
    max-width: 600px;
    margin: var(--spacing-xl) auto;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-close {
    position: absolute;
    right: var(--spacing-md);
    top: var(--spacing-md);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--spacing-sm);
    line-height: 1;
    color: var(--text);
}

.modal-close:hover {
    color: var(--primary);
}

/* Form Styles */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input[type="file"] {
    width: 100%;
    padding: var(--spacing-sm) 0;
}

.form-group small {
    display: block;
    margin-top: var(--spacing-sm);
    color: #666;
    margin-top: var(--spacing-sm);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: var(--spacing-sm);
    font-weight: normal !important;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25em;
}

.form-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.form-buttons button {
    flex: 1;
}

/* Form Validation Styles */
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: #28a745;
}

/* Success Message Styles */
.success-message {
    text-align: center;
}

.success-message h3 {
    color: #28a745;
    margin-bottom: var(--spacing-md);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .modal-content {
        padding: var(--spacing-lg);
        margin: var(--spacing-md) auto;
    }

    .form-buttons {
        flex-direction: column;
    }

    .form-buttons button {
        width: 100%;
    }
} 

 

/* Application Instructions Modal Styles */
.application-instructions {
  text-align: left;
}

.instructions-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--gray);
}

.instructions-icon {
  font-size: 2rem;
  background: var(--primary);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.instructions-header h3 {
  margin: 0;
  color: var(--primary);
  font-size: 1.5rem;
}

.requirements-list {
  margin: var(--spacing-lg) 0;
}

.requirement-item {
  display: flex;
  align-items: flex-start;
    gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--gray);
  border-radius: 8px;
  margin-bottom: var(--spacing-md);
}

.requirement-icon {
    font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.requirement-item strong {
  display: block;
  color: var(--primary);
  margin-bottom: var(--spacing-xs);
  font-size: 1.125rem;
}

.requirement-item p {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.email-details {
  background: var(--primary);
  color: white;
    padding: var(--spacing-lg);
    border-radius: 8px;
  margin: var(--spacing-lg) 0;
  text-align: center;
}

.email-details h4 {
  margin: 0 0 var(--spacing-md) 0;
  font-size: 1.25rem;
}

.email-address {
  margin: var(--spacing-md) 0;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: white;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  transition: background-color 0.2s;
}

.email-link:hover {
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.email-icon {
  font-size: 1.5rem;
}

.email-subject {
  margin: var(--spacing-md) 0 0 0;
  font-size: 0.875rem;
  opacity: 0.9;
}

.next-steps {
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-lg);
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.next-steps h4 {
  margin: 0 0 var(--spacing-md) 0;
  color: var(--primary);
  font-size: 1.125rem;
}

.next-steps ol {
  margin: 0;
  padding-left: var(--spacing-lg);
}

.next-steps li {
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 2px solid var(--gray);
}

.email-button {
  flex: 2;
        text-align: center;
  padding: var(--spacing-md);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.email-button:hover {
  text-decoration: none;
}

.modal-actions .button {
  flex: 1;
        padding: var(--spacing-md);
  text-align: center;
}

/* Responsive adjustments for application modal */
@media (max-width: 768px) {
  .instructions-header {
    flex-direction: column;
    text-align: center;
  }
  
  .requirement-item {
    flex-direction: column;
    text-align: center;
  }
  
  .requirement-icon {
    align-self: center;
    margin-bottom: var(--spacing-sm);
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .email-button,
  .modal-actions .button {
    width: 100%;
  }
  
  .email-link {
    font-size: 1.125rem;
  }
} 

/* Static Hero Elements - No Movement */
.hero-content {
  opacity: 1;
}

.hero-image {
  opacity: 1;
}

.hero-image img:hover {
  /* No hover effects to prevent movement */
}

.hero-button:hover {
  /* Simple hover without transform */
  box-shadow: 0 12px 40px rgba(233, 30, 99, 0.4);
  text-decoration: none;
  border-color: rgba(255, 255, 255, 0.6);
  background: var(--primary-dark);
}

/* Focus States for Accessibility */
*:focus {
  outline: 3px solid var(--vibrant-blue);
  outline-offset: 2px;
}

.button:focus,
.hero-button:focus {
  outline: 4px solid var(--vibrant-blue);
  outline-offset: 4px;
}

.nav-toggle:focus {
  outline: 3px solid var(--vibrant-blue);
  outline-offset: 2px;
}

nav a:focus {
  outline: 2px solid var(--vibrant-blue);
  outline-offset: 2px;
  background-color: rgba(33, 150, 243, 0.1);
}

.accessibility-toggle:focus {
  outline: 3px solid var(--vibrant-blue);
  outline-offset: 2px;
}

.accessibility-toggle-switch:focus {
  outline: 2px solid var(--vibrant-blue);
  outline-offset: 1px;
}

.dropdown-menu a:focus {
  background-color: var(--vibrant-blue);
  color: white;
  outline: none;
}

/* Skip to Main Content */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
}

/* Simplified Role Board - Clean Single Column Layout - UPDATED 2024 */
.role-board-simple {
    display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  max-width: 800px;
  margin: 0 auto;
}

.simple-role-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 15px;
  padding: var(--spacing-xl);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.simple-role-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.simple-role-card:focus {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
}

.role-header {
    display: flex;
    align-items: flex-start;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.role-icon-simple {
  width: 50px;
  height: 50px;
  color: var(--primary);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.9) !important;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary);
}

.role-icon-simple svg {
  width: 60%;
  height: 60%;
}

.role-info {
  flex: 1;
}

.role-info h3 {
  margin: 0 0 var(--spacing-xs) 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.role-department-simple {
  display: inline-block;
  background: var(--primary) !important;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: var(--spacing-sm);
}

.draft-badge {
  display: inline-block;
  background: var(--gray);
  color: var(--text);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
}

.role-actions-simple {
  flex-shrink: 0;
}

.role-summary {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

.no-roles-message {
  text-align: center;
  padding: var(--spacing-xxl);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 255, 255, 0.95) 100%);
  border-radius: 20px;
  border: 2px solid var(--primary);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(233, 30, 99, 0.15);
}

.no-roles-message::before {
  content: '🌈';
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
  animation: rainbowFloat 3s ease-in-out infinite;
}

@keyframes rainbowFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

.no-roles-message h3 {
  margin-bottom: var(--spacing-lg);
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 700;
}

.no-roles-message p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0 0 1.5rem 0;
  color: var(--text-light);
}

.no-roles-message a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--primary);
  border-radius: var(--border-radius);
  transition: var(--transition);
  display: inline-block;
}

.no-roles-message a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

/* Fix Modal Bullet Point Overlap */
.criteria-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.criteria-list li {
  padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) var(--spacing-xxl);
  border-bottom: 1px solid var(--border);
  position: relative;
  font-size: 1.1rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 240, 245, 0.8) 100%);
  margin-bottom: var(--spacing-sm);
  border-radius: 8px;
  line-height: 1.5;
}

.criteria-list li:last-child {
  border-bottom: 1px solid var(--border);
}

.criteria-list li:before {
  content: "✓";
  position: absolute;
  left: var(--spacing-md);
  top: var(--spacing-md);
  color: white;
  font-weight: bold;
  font-size: 1rem;
  background: var(--primary);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Mobile Responsive for Simplified Layout */
@media (max-width: 768px) {
  .role-header {
        flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
    }

  .role-actions-simple {
        width: 100%;
    }

  .role-actions-simple .button {
    width: 100%;
    text-align: center;
  }
  
  .simple-role-card {
    padding: var(--spacing-lg);
  }
  
  .role-icon-simple {
    align-self: center;
    width: 60px;
    height: 60px;
    }
}

/* Dynamic Role Cards and Modal Styles */
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.role-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.role-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--rainbow-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.role-card:hover::before {
  transform: scaleX(1);
}

.role-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.role-card:focus {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.role-card.draft {
  opacity: 0.8;
  border-color: var(--warning);
}

.role-card.draft::before {
  background: var(--warning);
}

.role-card .role-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.role-card .role-icon {
  width: 56px;
  height: 56px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
  transition: var(--transition);
}

.role-card:hover .role-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(233, 30, 99, 0.4);
}

.role-card .role-icon svg {
  width: 28px;
  height: 28px;
}

.role-card .role-info {
  flex: 1;
}

.role-card .role-info h3 {
  margin: 0 0 0.75rem 0;
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
}

.role-card .role-department {
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: var(--primary);
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
  margin-top: 0.25rem;
}

.role-card .draft-badge {
  background: var(--warning);
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.role-card .role-summary {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 1rem;
  opacity: 0.9;
}

.role-card .role-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: auto;
}

/* Add subtle animation for role cards */
@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.role-card {
  animation: cardFadeIn 0.6s ease-out;
}

.role-card:nth-child(1) { animation-delay: 0.1s; }
.role-card:nth-child(2) { animation-delay: 0.2s; }
.role-card:nth-child(3) { animation-delay: 0.3s; }
.role-card:nth-child(4) { animation-delay: 0.4s; }
.role-card:nth-child(5) { animation-delay: 0.5s; }
.role-card:nth-child(6) { animation-delay: 0.6s; }

.role-card .view-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.875rem 1.75rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.role-card .view-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(233, 30, 99, 0.4);
}

.role-card .apply-direct {
  background: var(--secondary);
  color: white;
  text-decoration: none;
  padding: 0.875rem 1.75rem;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.role-card .apply-direct:hover {
  background: var(--secondary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(33, 150, 243, 0.4);
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal .modal-content {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 700px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(-20px) scale(0.95);
  transition: all 0.3s ease;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.modal.show .modal-content {
  transform: translateY(0) scale(1);
}

.modal.show .modal-content {
  transform: translateY(0);
}

.modal .close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.modal .close:hover {
  color: var(--text);
  background: var(--gray);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal h2 {
  margin: 0 0 0.75rem 0;
  color: var(--text);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
}

.modal .role-department {
  color: white;
  font-size: 1rem;
  margin-bottom: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

.modal .role-description {
  margin-bottom: 2.5rem;
  line-height: 1.7;
  color: var(--text);
  font-size: 1.05rem;
}

.modal .role-criteria {
  margin-bottom: 2.5rem;
}

.modal .role-criteria h3 {
  color: var(--text);
  font-size: 1.4rem;
  margin: 2rem 0 1.25rem 0;
  font-weight: 700;
  position: relative;
  padding-left: 1rem;
}

.modal .role-criteria h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1.5rem;
  background: var(--primary);
  border-radius: 2px;
}

.modal .role-criteria ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal .role-criteria li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--text);
  line-height: 1.6;
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modal .role-criteria li:last-child {
  border-bottom: none;
}

.modal .role-criteria li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.75rem;
  color: var(--success);
  font-weight: bold;
  font-size: 1.1rem;
  background: rgba(76, 175, 80, 0.1);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal .role-details {
  background: linear-gradient(135deg, var(--gray) 0%, #fafafa 100%);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.modal .role-details p {
  margin: 0.75rem 0;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.6;
}

.modal .role-details strong {
  color: var(--text);
  font-weight: 700;
  margin-right: 0.5rem;
}

.modal .apply-button {
  display: inline-block;
  background: var(--primary);
  color: white;
  text-decoration: none;
  padding: 1.25rem 2.5rem;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  text-align: center;
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
}

.modal .apply-button:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
}

/* Responsive Design for Dynamic Cards */
@media (max-width: 768px) {
  .role-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }
  
  .role-card {
    padding: 1.5rem;
  }
  
  .role-card .role-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .role-card .role-icon {
    width: 48px;
    height: 48px;
  }
  
  .role-card .role-icon svg {
    width: 24px;
    height: 24px;
  }
  
  .role-card .role-info h3 {
    font-size: 1.2rem;
  }
  
  .role-card .role-department {
    font-size: 0.85rem;
    padding: 0.35rem 0.7rem;
  }
  
  .role-card .role-summary {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  
  .modal .modal-content {
    padding: 1.5rem;
    width: 95%;
    border-radius: 12px;
  }
  
  .modal h2 {
    font-size: 1.8rem;
  }
  
  .modal .role-department {
    font-size: 0.95rem;
    padding: 0.4rem 0.8rem;
  }
  
  .modal .role-criteria h3 {
    font-size: 1.2rem;
  }
  
  .role-card .role-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .role-card .view-btn,
  .role-card .apply-direct {
    text-align: center;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .modal .close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .modal .apply-button {
    padding: 1rem 2rem;
    font-size: 1rem;
    width: 100%;
  }
}

/* Events Styles */
.events-container {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.loading-events {
  text-align: center;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 240, 245, 0.95) 100%);
  border-radius: 20px;
  border: 3px solid var(--rainbow-gradient);
  position: relative;
}

.loading-events::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--rainbow-gradient);
  border-radius: 20px 20px 0 0;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

.event-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.event-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
}

.event-logo {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  background: white;
}

.event-card-title h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.event-date,
.event-time,
.event-location {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.event-card-content {
  padding: 1.5rem;
}

.event-summary {
  margin: 0 0 1.5rem 0;
  line-height: 1.6;
  color: var(--text);
}

.event-card-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.event-rsvp-btn {
  flex: 1;
  min-width: 120px;
  background: linear-gradient(135deg, var(--vibrant-purple) 0%, var(--vibrant-blue) 100%) !important;
  color: white !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  padding: 12px 20px !important;
  border: none !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3) !important;
  position: relative !important;
  overflow: hidden !important;
}

.event-rsvp-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.event-rsvp-btn:hover {
  background: linear-gradient(135deg, var(--vibrant-blue) 0%, var(--vibrant-purple) 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 191, 255, 0.4) !important;
}

.event-rsvp-btn:hover::before {
  left: 100%;
}

.event-rsvp-btn:focus {
  outline: 3px solid var(--vibrant-purple) !important;
  outline-offset: 2px !important;
  background: linear-gradient(135deg, var(--vibrant-blue) 0%, var(--vibrant-purple) 100%) !important;
}

.event-rsvp-btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 10px rgba(138, 43, 226, 0.3) !important;
}

.event-details-btn {
  min-width: 120px;
}

.no-events-message {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 240, 245, 0.95) 100%);
  border-radius: 20px;
  border: 3px solid var(--rainbow-gradient);
  position: relative;
}

.no-events-message::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--rainbow-gradient);
  border-radius: 20px 20px 0 0;
}

.no-events-message h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.no-events-message p {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: var(--text);
}

.no-events-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Event Modal Styles */
.event-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.event-modal-content {
  background: white;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.event-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 2px solid var(--border);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-radius: 16px 16px 0 0;
}

.event-modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.event-modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.event-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.event-modal-body {
  padding: 1.5rem;
}

.event-modal-details {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--gray);
  border-radius: 8px;
}

.event-detail-item {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.event-detail-item strong {
  min-width: 80px;
  color: var(--primary);
  font-weight: 600;
}

.event-address {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.event-modal-description h3 {
  margin: 0 0 1rem 0;
  color: var(--primary);
  font-size: 1.2rem;
}

.event-description-content {
  line-height: 1.6;
  color: var(--text);
}

.event-modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border);
}

@media (max-width: 768px) {
  .event-card-header {
    flex-direction: column;
    text-align: center;
  }
  
  .event-logo {
    width: 80px;
    height: 80px;
  }
  
  .event-meta {
    justify-content: center;
  }
  
  .event-card-actions {
    flex-direction: column;
  }
  
  .event-rsvp-btn,
  .event-details-btn {
    width: 100%;
  }
  
  .event-modal-content {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
  }
  
  .event-modal-header {
    padding: 1rem;
  }
  
  .event-modal-header h2 {
    font-size: 1.3rem;
  }
  
  .event-modal-body {
    padding: 1rem;
  }
  
  .event-modal-actions {
    flex-direction: column;
  }
  
  .no-events-actions {
    flex-direction: column;
  }
}

/* Application Modal Styles */
.application-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.application-modal-content {
  background: var(--background);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.application-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--border);
  background: var(--soft-lavender);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.application-modal-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 600;
}

.application-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-light);
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.application-close:hover {
  background: var(--gray);
  color: var(--text);
}

.application-close:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.application-form {
  padding: var(--spacing-lg);
}

.application-form .form-group {
  margin-bottom: var(--spacing-lg);
}

.application-form label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  color: var(--text);
}

.application-form input[type="text"],
.application-form input[type="email"],
.application-form textarea {
  width: 100%;
  padding: var(--spacing-md);
  border: 2px solid var(--border);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  box-sizing: border-box;
}

.application-form input[type="text"]:focus,
.application-form input[type="email"]:focus,
.application-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.application-form input[type="file"] {
  width: 100%;
  padding: var(--spacing-sm);
  border: 2px dashed var(--border);
  border-radius: var(--border-radius);
  background: var(--gray);
  cursor: pointer;
  transition: var(--transition);
}

.application-form input[type="file"]:hover {
  border-color: var(--primary);
  background: var(--soft-lavender);
}

.application-form input[type="file"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.application-form small {
  display: block;
  margin-top: var(--spacing-xs);
  color: var(--text-light);
  font-size: 0.875rem;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.radio-label {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  cursor: pointer;
  padding: var(--spacing-sm);
  border: 2px solid var(--border);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.radio-label:hover {
  border-color: var(--primary);
  background: var(--soft-lavender);
}

.radio-label input[type="radio"] {
  margin: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.radio-label input[type="radio"]:checked + .radio-text {
  color: var(--primary);
  font-weight: 600;
}

.radio-text {
  flex: 1;
  font-size: 0.95rem;
}

.form-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-end;
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border);
}

.form-actions .button {
  min-width: 120px;
}

/* High contrast mode support */
.high-contrast .application-modal-content {
  border: 2px solid var(--text);
}

.high-contrast .application-modal-header {
  background: var(--text);
  color: var(--background);
}

.high-contrast .application-modal-header h2 {
  color: var(--background);
}

.high-contrast .application-close {
  color: var(--background);
}

.high-contrast .application-close:hover {
  background: var(--background);
  color: var(--text);
}

.high-contrast .radio-label {
  border-color: var(--text);
}

.high-contrast .radio-label:hover {
  background: var(--text);
  color: var(--background);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .application-modal-content {
    width: 95%;
    max-height: 95vh;
  }
  
  .application-modal-header {
    padding: var(--spacing-md);
  }
  
  .application-modal-header h2 {
    font-size: 1.25rem;
  }
  
  .application-form {
    padding: var(--spacing-md);
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions .button {
    width: 100%;
  }
  
  .radio-group {
    gap: var(--spacing-xs);
  }
  
  .radio-label {
    padding: var(--spacing-xs);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .application-modal-content {
    animation: none;
  }
} 

.event-timing-details {
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.event-timing-details h4 {
  color: var(--primary);
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.timing-grid {
  display: grid;
  gap: 0.75rem;
}

.timing-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.timing-item:last-child {
  border-bottom: none;
}

.timing-label {
  font-weight: 600;
  color: var(--text);
  min-width: 80px;
}

.timing-value {
  color: var(--text);
  text-align: right;
  flex: 1;
}

.timing-status {
  background: var(--success);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: capitalize;
}

.venue-fallback {
  margin: 1rem 0;
  padding: 0.75rem;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 6px;
}

.venue-fallback .event-location {
  margin: 0;
  color: #856404;
  font-style: italic;
}

/* Enhanced event description */