.events-hero {
  padding: 4rem 1rem 2rem 1rem;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  margin-top: 70px;
}
.events-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.events-hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.events-filters {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.events-filters select {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 1rem;
}
.events-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  gap: 2rem;
}
.event-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(30,58,138,0.08);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}
.event-card.past {
  opacity: 0.7;
  background: #f5f5f5;
}
.event-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #3d55b4;
}
.event-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 1rem;
  color: #555;
}
.event-meta span {
  display: flex;
  align-items: center;
  gap: 0.4em;
}
.event-description {
  margin: 0.5rem 0 1rem 0;
  color: #444;
}
.event-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.event-register-btn {
  background: linear-gradient(135deg, #3d55b4, #5bb8ff);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.event-register-btn:hover {
  background: linear-gradient(135deg, #5bb8ff, #3d55b4);
}
.event-recording-link {
  color: #2563eb;
  text-decoration: underline;
  font-size: 0.98rem;
}
@media (max-width: 600px) {
  .events-list { padding: 1rem 0.2rem; }
  .event-card { padding: 1rem; }
  .events-filters { flex-direction: column; gap: 0.5rem; }
}

body.dark {
    background: #121212;
    color: #e0e0e0;
}

body.dark .navbar {
    background: #1f1f1f;
}

body.dark .nav-link {
    color: #e0e0e0;
}

body.dark .nav-link.active {
    color: #90caf9;
}

body.dark .events-hero {
    background: linear-gradient(135deg, #333, #555);
    color: #e0e0e0;
}

body.dark .events-filters select {
    background: #333;
    color: #e0e0e0;
    border: 1px solid #555;
}

body.dark .event-card {
    background: #1f1f1f;
    color: #e0e0e0;
}

body.dark .event-register-btn {
    background: linear-gradient(135deg, #90caf9, #42a5f5);
    color: #121212;
}

body.dark #backToTopBtn {
    background: #90caf9;
    color: #121212;
}
body.dark .event-description {
    color: #d1d5db; /* Softer, more readable light grey */
}
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: #fff;
}

.nav-brand .logo {
    max-height: 50px;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #333;
}
body.dark .theme-toggle {
    color: #f3f3f1; /* White icon color in dark mode */
    background:rgb(78, 79, 79);
}

.nav-brand .logo {
    height: 100px !important; /* Force exact height */
    width: auto;
    object-fit: contain;
    display: block; /* Prevent inline spacing issues */
}

