html, body {
  margin: 0;
  padding: 0;
  height: auto;  /* good to avoid 100% height issues */
  overflow-x: hidden;
  background-color: #121212; /* add background color here to avoid white flashes */
}

.site-footer {
  background-color: #121212;
  color: #eee;
  font-family: Arial, sans-serif;
  padding: 1rem 2rem;
  border-top: 1px solid #333;
}

.footer-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: nowrap;
}

/* Social icons aligned left */
.footer-socials a {
  margin-right: 1rem;
  display: inline-block;
  transition: filter 0.3s ease;
}

.footer-socials a:last-child {
  margin-right: 0;
}

.footer-socials a img {
  width: 24px;
  height: 24px;
  filter: brightness(0.8);
}

.footer-socials a:hover img,
.footer-socials a:focus img {
  filter: brightness(1);
  outline: none;
}

/* Center group: flex container with items close together */
.footer-center-group {
  display: flex;
  align-items: center;
  gap: 2rem; /* spacing between items */
  justify-content: center;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
}

/* Individual center items */
.footer-copy,
.footer-privacy{
  white-space: nowrap;
  font-size: 0.9rem;
  color: #eee;
  margin: 0;
  text-align: center;
}

/* Privacy policy link styling */
.footer-privacy {
  color: #66ccff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-privacy:hover,
.footer-privacy:focus {
  color: #99ddff;
  outline: none;
}

.copy-email {
  cursor: pointer;
  color: #66ccff;
  text-decoration: underline;
  user-select: text;
}

.copy-email:hover,
.copy-email:focus {
  color: #99ddff;
  outline: none;
}

.copy-feedback {
  margin-left: 0.5rem;
  font-size: 0.9rem;
  color: #4caf50;
  font-weight: 600;
}

/* Right section empty but keeps spacing */
.footer-right {
  flex: 0 0 100px; /* reserve space or set to 0 if not needed */
}

@media (max-width: 1160px) {
  .footer-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    text-align: center;
  }

  .footer-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    order: 1;
  }

  .footer-copy {
    order: 2;
    font-size: 0.75rem;
    white-space: normal;
    margin: 0;
  }

  .footer-center-group {
    order: 3;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    width: 100%;
  }

  .footer-privacy {
    font-size: 0.75rem;
    white-space: nowrap;
    color: #66ccff;
  }

  .footer-contact {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    white-space: normal;
    font-size: 0.75rem;
  }

  .copy-email {
    font-size: 0.75rem;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .footer-right {
    display: none;
  }
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #121212, #2c2c2c);
  color: #eee;
  padding: 1rem 2rem;
  font-family: Arial, sans-serif;
  z-index: 1001;
  transition: transform 0.3s ease;
}

header.hidden {
  transform: translateY(-100%);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-toggle {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #eee;
  cursor: pointer;
  flex-shrink: 0;
}

.site-title {
  flex-grow: 1;
  text-align: center;
  font-weight: bold;
  font-size: 1.25rem;
  letter-spacing: 2px;
  transition: margin-left 0.3s ease;
}

.logo img {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.side-nav {
  position: fixed;
  top: 0;
  left: -220px;
  width: 220px;
  height: 100%;
  background-color: #1a1a1a;
  box-shadow: 2px 0 5px rgba(0,0,0,0.5);
  transition: left 0.3s ease;
  padding-top: 60px;
  padding-bottom: 20px;
  z-index: 1100;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  background: none;
  border: none;
  color: #eee;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.side-nav.open {
  left: 0;
}

.navbar.side-nav-open .menu-toggle {
  visibility: hidden;
}

.side-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  flex-grow: 1;
}

.side-nav ul li {
  border-bottom: 1px solid #333;
}

.side-nav ul li a {
  display: block;
  padding: 15px 20px;
  color: #eee;
  text-decoration: none;
  font-size: 1.1rem;
  transition: background-color 0.2s ease;
}

.side-nav ul li a:hover {
  background-color: #333;
}

.side-nav.open {
  left: 0;
}

.side-nav.open + header .navbar .site-title {
  margin-left: 220px;
  transition: margin-left 0.3s ease;
}

.side-nav-socials {
  border-top: 1px solid #333;
  padding-top: 10px;
  padding-bottom: 80px;
  text-align: center;
  color: #eee;
  font-weight: bold;
  font-size: 1rem;
  flex-shrink: 0;
}

.side-nav-socials span {
  display: block;
  margin-bottom: 8px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icons a img {
  width: 28px;
  height: 28px;
  transition: filter 0.3s ease;
  display: block;
}

.social-icons a:hover img {
  filter: none;
}

.side-nav-socials span {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  font-size: 1rem;
  color: #eee;
}

@media (max-width: 460px) {
  
  .side-nav {
    width: 160px;
    padding-top: 50px;
    padding-bottom: 40px;
  }

  .navbar.side-nav-open .site-title {
    margin-left: 160px;
  }

  .side-nav ul li a {
    padding: 12px 15px;
    font-size: 1rem;
  }

  .side-nav-socials {
    padding-top: 8px;
    padding-bottom: 60px;
    font-size: 0.9rem;
  }

  .social-icons a img {
    width: 24px;
    height: 24px;
  }
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lang-toggle {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 50px;
  transition: width 0.4s ease;
  gap: 8px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  z-index: 1200;
  cursor: pointer;
  background: transparent;
  border-radius: 4px;
}

.lang-toggle.expanded {
  width: 110px;
}

#langBtn {
  background: #222;
  color: #eee;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  position: relative;
}

.lang-toggle.expanded #langBtn {
  opacity: 0;
  pointer-events: none;
}

.lang-options {
  display: flex;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease 0.2s;
  flex-shrink: 0;
  z-index: 1;
}

.lang-toggle.expanded .lang-options {
  opacity: 1;
  pointer-events: auto;
}

.lang-options button {
  background: #222;
  color: #eee;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.lang-options button:hover {
  background: #444;
}

.lang-switch {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1200;
}

.lang-btn {
  display: flex;
  align-items: center;
  background: #222;
  color: #eee;
  border-radius: 4px;
  padding: 0;
  overflow: hidden;
  width: 50px;
  transition: width 0.35s cubic-bezier(.4,1.3,.5,1), background 0.3s;
  cursor: pointer;
  border: none;
  outline: none;
  min-height: 36px;
  min-width: 50px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 1rem;
}

.lang-btn.expanded {
  width: 110px;
}

.selected-lang {
  display: inline-block;
  padding: 6px 12px;
  background: #222;
  color: #eee;
  border-radius: 4px;
  transition: background 0.3s;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
}

.lang-options {
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s 0.12s;
}

.lang-btn.expanded .lang-options {
  opacity: 1;
  pointer-events: auto;
}

.lang-options button {
  background: #222;
  color: #eee;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  margin-left: 4px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  transition: background 0.3s;
}

.lang-options button:hover {
  background: #444;
}

/* Container for events */
.events-container {
  max-width: 900px;
  margin: 3rem auto 4rem;
  padding: 0 1rem;
  padding-top: 2rem;
  font-family: Arial, sans-serif;
  color: #eee;
}

/* Section header */
.events-header {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  border-bottom: 2px solid #66ccff;
  padding-bottom: 0.5rem;
  color: #66ccff;
}

.pastevents-header {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #66ccff;
}

/* Events list layout */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Base event item */
.event-item {
  display: flex;
  background-color: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  transition: background-color 0.3s ease;
}

.event-item:hover {
  background-color: #2a2a2a;
}

/* Highlighted event item (brighter) */
.event-item.highlighted {
  background-color: #2f2f2f;
  box-shadow: 0 0 15px rgba(230, 57, 70, 0.7); /* softer red glow */
  position: relative;
}

/* "Latest Event" red label on highlighted event */
.event-item.highlighted::before {
  content: "Latest Event";
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #e63946; /* red */
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 10;
}

/* Event image */
.event-image {
  width: 180px;
  height: 120px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Event content */
.event-content {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

/* Date styling */
.event-date {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 0.25rem;
  font-style: normal;
}

/* Title styling */
.event-title {
  font-size: 1.3rem;
  margin: 0 0 0.5rem 0;
  color: #66ccff;
}

/* Description styling */
.event-description {
  font-size: 1rem;
  line-height: 1.4;
  color: #ccc;
  margin: 0 0 1rem 0;
  flex-grow: 1;
}

/* Read More link styled as button */
.event-read-more {
  align-self: flex-start;
  background-color: #66ccff;
  color: #121212;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1rem;
  user-select: none;
}

.event-read-more:hover,
.event-read-more:focus {
  background-color: #99ddff;
  outline: none;
}

/* Responsive for smaller screens */
@media (max-width: 700px) {
  .event-item {
    flex-direction: column;
  }

  .event-image {
    width: 100%;
    height: 180px;
  }

  .event-content {
    padding: 1rem;
  }
}
