html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  background-color: #f9f9ff;
  font-size: 16px;
}

.hero {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.8), rgba(46, 125, 50, 0.8)), url('/assets/hero-image.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.hero h1 {
  margin: 0;
  font-size: 2.8em;
}

.hero .tagline {
  font-size: 1.6em;
  font-weight: normal;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.4em;
  font-weight: bold;
}

.hero .demo-btn {
  margin-top: 20px;
  padding: 15px 30px;
  background-color: #1976D2;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2em;
}

.hero .demo-btn:hover {
  background-color: rgb(75, 133, 181);
}

#nav-placeholder nav {
  margin-top: 0px;
}

#nav-placeholder nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-size: 1.2em;
}

#nav-placeholder nav a:hover {
  text-decoration: underline;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  padding-bottom: 100px;
}

main a:not(article a) {
  color: inherit;
  text-decoration: none;
}

h1 {
  font-size: 2em;
}

h2 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #2c3e50;
}

p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #666;
}

article {
  margin-bottom: 20px;
  padding: 20px;
  background-color: #f9f9ff;
  border-radius: 8px;
  border: 1.5px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

article:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

article h2 {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #2c3e50;
}

article h2 a {
  color: #2c3e50;
  text-decoration: none;
}

article h2 a:hover {
  text-decoration: underline;
}

article p {
  font-size: 1.1em;
  color: #666;
}

#footer-container {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.8), rgba(46, 125, 50, 0.8));
  color: white !important;
  text-align: center;
  padding: 10px 0;
  scroll-padding-bottom: 60px;
  position: relative;
  bottom: 0;
  width: 100%;
}

#footer-container p {
  color: white !important;
}

.menu-items li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 8px;
    transition: color 0.3s;
    white-space: nowrap;
    display: inline-block;
    transition: background-color 0.3s;
}

nav.menu-bar .menu-items li a {
    font-size: 14px !important;
}

nav.menu-bar .menu-items li a {
    font-size: 14px !important;
    line-height: 1.5;
}

#nav-placeholder .menu-items li a {
    font-size: 14px !important;
}

.menu-bar {
    background-color: #333;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    top: 0;
    width: 100%;
    max-width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    overflow-x: hidden;
    white-space: nowrap;
    padding-right: 20px;
    overflow: visible;
    position: fixed; /* Move position: fixed to .menu-bar */
    transition: transform 0.3s ease; /* Smooth transition for hiding/showing */
}

.menu-bar.hidden {
    transform: translateY(-100%); /* Move the menu off-screen (upwards) */
}

.menu-logo {
    display: block;
    flex: 0 0 auto;
    padding: 10px;
}

.menu-toggle {
    display: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.menu-items {
    list-style-type: none;
    margin: 0;
    padding: 10px 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    background-color: #333;
    border-bottom: 1px solid #444;
    overflow: visible;
    justify-content: flex-end; /* Align <li> elements to the right */
    margin-right: 0;
    flex: 1; /* Allow .menu-items to take remaining space */
    max-width: none; /* Remove max-width constraint */
}

.menu-items li {
    margin: 0 !important;
    padding: 0 !important;
}

.menu-items li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 8px;
    transition: color 0.3s;
    white-space: nowrap;
    display: inline-block;
    transition: background-color 0.3s;
    margin: 0 !important;
}

nav.menu-bar .menu-items {
    gap: 8px !important;
}

#nav-placeholder nav.menu-bar .menu-items {
    gap: 8px !important;
}

.article-image {
  max-width: 100%;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin: 1em 0;
}

figure {
  text-align: center;
}
figcaption {
  font-style: italic;
  color: #666;
  margin-top: 0.5em;
}

.article-thumbnail {
  max-width: 50%;
  width: 100%;
  height: auto;
  margin: 1rem auto;
  border-radius: 8px;
  object-fit: contain;
  display: block;
}

article img {
  max-width: 200px; /* Smaller fixed width */
  width: 100%; /* Scales within max-width */
  height: auto; /* Maintains aspect ratio */
  margin: 0.5rem 0; /* Reduced margin for compact layout */
  border-radius: 8px; /* Consistent with .article-thumbnail */
  object-fit: contain; /* Shows full image */
  display: block; /* Ensures proper spacing */
}

@media (max-width: 768px) {
  .article-thumbnail {
    max-width: 300px;
  }

  article img {
    max-width: 100px; /* Even smaller on mobile */
  }

  .hero {
    padding: 40px 10px;
  }

  .hero h1 {
    font-size: 2em;
  }

  .hero p {
    font-size: 1.1em;
  }

  #nav-placeholder nav a {
    margin: 0 10px;
    font-size: 1em;
  }

  main {
    padding: 20px 10px;
    padding-bottom: 80px;
  }

  article {
    padding: 15px;
  }

  article h2 {
    font-size: 1.4em;
  }

  article p {
    font-size: 1em;
  }
  .menu-toggle {
      display: block;
      color: #fff;
      font-size: 24px;
      cursor: pointer;
      padding: 10px;
  }

  .menu-items {
      display: none;
  }

  .menu-items.active {
      display: flex;
      flex-direction: column;
      position: absolute;
      top: 60px;
      left: 0;
      right: 0;
      background-color: #333;
      padding: 10px;
      gap: 8px;
      z-index: 1002;
     /* max-height: calc(100vh - 60px); /* Limit height to viewport minus menu bar height */
      overflow-y: auto; /* Enable scrolling if content overflows */
      box-sizing: border-box;
  }

  .menu-items li {
      width: 100%;
      text-align: center;
  }
}