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 the article */
.article-container {
  max-width: 800px;
  margin: 4rem auto 5rem;
  padding: 0 1rem;
  padding-top: 2rem;
  font-family: Arial, sans-serif;
  color: #eee;
  background-color: #1e1e1e;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.7);
}

/* Article image */
.article-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  display: block;
}

/* Article content */
.article-content {
  padding: 2rem 0.5rem 3rem;
}

/* Title */
.article-title {
  text-align: left;
  font-size: 2.2rem;
  color: #66ccff;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

/* Paragraphs */
.article-content p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #ccc;
  margin-bottom: 1.5rem;
}

/* Back to News button */
.back-button {
  display: inline-block;
  background-color: #66ccff;
  color: #121212;
  font-weight: 700;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  user-select: none;
  margin-top: 1rem;
}

.back-button:hover,
.back-button:focus {
  background-color: #99ddff;
  outline: none;
}

/* Responsive adjustments */
@media (max-width: 700px) {
  .article-container {
    margin: 3rem 1rem 4rem;
  }

  .article-title {
    font-size: 1.8rem;
  }

  .article-content p {
    font-size: 1rem;
  }
}

.event-article-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  margin-bottom: 16px;
}

.back-to-events-btn {
  font-family: sans-serif;
  font-size: 14px;
  text-decoration: none;
  color: #333;
}

.share-wrapper {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto; /* pushes share buttons to the right side */
}

.share-label {
  font-weight: bold;
  margin-right: 8px;
  white-space: nowrap;
}

.share-facebook-button,
.share-twitter-button {
  padding: 6px 14px;
  border-radius: 4px;
  color: white;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}

.share-facebook-button {
  background-color: #1877f2; /* Facebook Blue */
}

.share-facebook-button:hover,
.share-facebook-button:focus {
  background-color: #145dbf;
}

.share-twitter-button {
  background-color: #000000; /* black */
  color: white;
}

.share-twitter-button:hover,
.share-twitter-button:focus {
  background-color: #222222; /* dark gray on hover */
}

@media (max-width: 630px) {
  .event-article-toolbar {
    flex-direction: column;
    align-items: flex-start; /* left align everything */
    gap: 10px; /* add some vertical spacing */
  }
  
  .share-wrapper {
    margin-left: 0;
    margin-bottom: 0;
    width: 100%;
  }

  .back-to-events-btn {
    width: auto; /* remove full width */
    text-align: left;
  }
}

@media (max-width: 375px) {
  .share-wrapper {
    font-size: 0.9rem; /* shrink text a bit */
  }
  
  .share-label {
    font-size: 0.9rem; /* also shrink the label text */
  }
  
  .share-facebook-button,
  .share-twitter-button {
    font-size: 0.9rem; /* shrink button text */
    padding: 6px 10px; /* optional: adjust padding so buttons don’t get too big */
  }
}
