:root  > * {
    --md-primary-fg-color:        #f2e037;
    --md-primary-fg-color--light: #ECB7B7;
    --md-primary-fg-color--dark:  #90030C;
  }

/* Announcements page styling */
.announcement-subtitle {
  font-size: 0.7rem;
  color: #666;
  margin-bottom: 2rem;
  font-style: italic;
}

.announcement-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
}

.announcement-card {
  background: #fff;
  border: 1px solid #e1e4e8;
  
  padding: 0.6rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.announcement-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-color: #d1d5da;
}

/* Card type styling */
.announcement-card.urgent {
  border-left: 4px solid #dc3545;
}

.announcement-card.event {
  border-left: 4px solid #28a745;
}

.announcement-card.competition {
  border-left: 4px solid #ffc107;
}

.announcement-card.workshop {
  border-left: 4px solid #17a2b8;
}

.announcement-card.info {
  border-left: 4px solid #6f42c1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.card-type {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.25rem 0.2rem;
  border-radius: 4px;
  background: #f6f8fa;
  color: #586069;
}

.card-date {
  font-size: 0.65rem;
  color: #8b949e;
}

.card-title {
  font-size: 0.75rem;
  font-weight: 500;
  margin: 0 0 0.5rem 0;
  color: #24292f;
  line-height: 1.3;
}

.card-content {
  font-size: 0.65rem;
  line-height: 1.5;
  color: #57606a;
  margin: 0 0 1rem 0;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.card-link {
  color: #0969da;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.75rem;
}

.card-link:hover {
  color: #0550ae;
  text-decoration: underline;
}

.card-venue {
  color: #8b949e;
  font-size: 0.75rem;
}

/* Dynamic Events Styling */
.events-container {
  margin-top: 2rem;
}

.events-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e1e4e8;
}

.events-header h2 {
  margin: 0 0 0.5rem 0;
  color: #24292f;
  font-size: 1.5rem;
}

.last-updated {
  font-size: 0.8rem;
  color: #8b949e;
  margin: 0;
  font-style: italic;
}


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

.event-card {
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

.event-card.past {
  opacity: 0.7;
  background: #f8f9fa;
}

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

.event-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #24292f;
  margin: 0;
  line-height: 1.3;
  flex: 1;
  margin-right: 1rem;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.status-badge.open {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-badge.full {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.status-badge.closed {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.event-details {
  margin-bottom: 1rem;
}

.event-details > div {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #586069;
}

.event-details .date-icon,
.event-details .time-icon,
.event-details .location-icon {
  margin-right: 0.5rem;
  font-size: 1rem;
}

.event-description {
  margin-bottom: 1rem;
}

.event-description p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #57606a;
  margin: 0;
}

.registration-info {
  background: #f6f8fa;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 1rem;
  margin-top: 1rem;
}

.registration-status {
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  font-size: 0.85rem;
}

.registration-status.open {
  color: #155724;
}

.registration-status.closed {
  color: #721c24;
}

.registration-deadline {
  font-size: 0.8rem;
  color: #586069;
  margin: 0 0 0.5rem 0;
}

.participant-count {
  font-size: 0.8rem;
  color: #586069;
  margin: 0;
  font-weight: 500;
}


.error-message {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  padding: 1rem;
  margin-top: 2rem;
  text-align: center;
}

.error-message p {
  margin: 0;
  color: #721c24;
  font-weight: 500;
}

/* Event type specific styling */
.event-card.competition {
  border-left: 4px solid #ffc107;
}

.event-card.workshop {
  border-left: 4px solid #17a2b8;
}

.event-card.meeting {
  border-left: 4px solid #6f42c1;
}

.event-card.masterclass {
  border-left: 4px solid #dc3545;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .announcement-cards {
    max-width: 100%;
  }
  
  .card-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .events-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .event-card {
    padding: 1rem;
  }
  
  .event-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .event-title {
    margin-right: 0;
  }
  
  .social-links a {
    display: block;
    margin: 0 0 0.5rem 0;
    text-align: center;
  }
}
