:root {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: white;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

#app {
  width: 100%;
  min-height: 100vh;
  padding: 0;
}

.events-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.events-header {
  text-align: center;
  margin-bottom: 3rem;
}

.events-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  background: black;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.events-header p {
  font-size: 1.1rem;
  color: #71717a;
  margin: 0;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.event-card {
  height:15em;
  background: linear-gradient(145deg, #1a1a1a 0%, #141414 100%);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #262626;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  background-image: url("resources/docximage.jpg"); background-repeat: no-repeat; background-position: center;
}
a.fill-div {
	color:#000000;
    display: block;
    height: 100%;
    width: 100%;
    text-decoration: none;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: #3f3f46;
}

.event-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.event-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
}

.event-category {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
  z-index: 1;
}

.event-content {
  
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
	
}

.event-date-badge {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
}

.event-date-day {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.event-date-month {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  opacity: 0.9;
}

.event-details {
  flex: 1;
  min-width: 0;
}

.event-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: #fafafa;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-description {
  font-size: 0.875rem;
  color: #a1a1aa;
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: #71717a;
}

.event-time,
.event-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.event-time svg,
.event-location svg {
  color: #52525b;
}

.events-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(145deg, #1a1a1a 0%, #141414 100%);
  border-radius: 16px;
  border: 1px solid #262626;
}

.events-empty p {
  margin: 0;
  color: #a1a1aa;
}

.events-empty-subtitle {
  font-size: 0.875rem;
  color: #71717a !important;
  margin-top: 0.5rem !important;
}

.events-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.events-loading p {
  color: #71717a;
  margin: 1rem 0 0 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #262626;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .events-section {
    padding: 2rem 1rem;
  }

  .events-header h2 {
    font-size: 1.75rem;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .event-image {
    height: 160px;
  }
}
