.title-name {
  color: #FFF;
}
.flying-menu a:hover {
  background-color: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
}
.flying-menu a.active {
  background-color: rgba(76, 175, 80, 0.3);
  color: #4CAF50;
  font-weight: 700;
  transform: translateX(0);
}
.hub-content{
  background-color: unset;
  max-width: 90ch;
}
/* Fallback for .footer-content gap in 800px media query */
.articles-list > *:not(:last-child) {
  margin-bottom: 2rem;
}
.articles-list {
  display: flex;
  flex-direction: column;
  margin: 2rem auto;
}
.article-item {
    display: block;
    cursor: pointer;
    border-radius: 10px;
    padding: 2rem;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.25); /* Slightly more visible but soft border */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), /* Balanced main shadow for depth */
                0 0 0 1.5px rgba(255, 255, 255, 0.2); /* Gentle, subtle outer light outline */
}
.article-item:hover {
    transform: translateY(-2px) scale(1.005); /* Slight lift and very minor scale up */
    border-color: rgba(255, 255, 255, 0.5); /* Crisp, semi-transparent white border on hover */
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.08), /* Inner white glow instead of green */
                0 2px 4px rgba(0, 0, 0, 0.15); /* Soft outer shadow */
}
.article-item .response{
  display:flex;
}
.article-item h3 {
    color: #FFF;
    margin-top: 0; /* Removes default top margin */
    margin-bottom: 15px; /* Space below the question */
    font-size: 1.6em; /* Larger font size for the question */
    line-height: 1.3;
    font-weight: 600; /* Slightly bolder */
}
.article-item p {
    color: #ccc; /* Light gray text for good contrast on dark background */
    margin-bottom: 1.5rem; /* Space below the answer before the button */
    font-size: 1.2em;
    line-height: 1.7rem;
}
.article-item .read-article-btn {
    display: block;
    margin-top: 1rem;
    color: #4CAF50;
    margin-left: 0.5rem;
    font-size: 0.9em;
    padding: 0;
    text-decoration: none;
}
.article-item .read-article-btn:hover {
    text-decoration: underline;
}
.hub-content h2 {
    color: #4CAF50;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-size: 2.2em;
}
.hub-content .greeting-message {
    text-align: center;
    font-style: italic;
    color: #b0b0b0; /* Lighter gray for introductory text */
    margin-bottom: 50px; /* More space before the articles list starts */
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1em;
}
.article-content {
  max-width: 90ch;
  margin: 2.5rem auto 2rem auto;
  padding: 2.2rem 1.5rem;
  background: #181a1b;
  border-radius: 14px;
  box-shadow: 0 4px 32px rgba(20,20,30,0.15);
  color: #dedede;
  line-height: 1.7;
  text-align: start;
  font-family: 'Segoe UI', Arial, sans-serif;
}
.article-content h1 {
    color: #4CAF50;
    text-align: center;
    margin-top: 0.2em;
    margin-bottom: 2rem;
    font-size: 2.2em;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(30,70,40,0.08);
}
.article-content .response h2 {
  color: #43a047;
  text-align: center;
  margin-top: 2.6rem;
  margin-bottom: 1.1rem;
  font-size: 1.5em;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(70,255,170,0.1);
  padding-bottom: .4em;
}
.article-content .response h3 {
  color: #b2e6c5;
  background: rgba(55, 85, 61, 0.18);
  border-radius: 6px;
  margin: 2.2em 0 1.1em 0;
  padding: 0.42em 0.4em 0.3em 0.4em;
  text-align: center;
  font-size: 1.07em;
  font-weight: 600;
  font-style: italic;
  opacity: 1;
  letter-spacing: 0.04em;
  border-left: 3px solid #4CAF50;
  box-shadow: 0 1px 8px 0 rgba(44, 86, 60, 0.08);
}
.article-content p {
  margin: 1.1em 0;
  font-size: 1.1em;
}
.article-content ul,
.article-content ol {
  margin: 1.2em 0 1.5em 2.5em;
  padding: 0;
  text-align: start;
  list-style-type: disc;
}

.article-content li {
  margin-bottom: 0.6em;
  font-size: 1.06em;
  line-height: 1.6;
  color: #e1e1e1;
  letter-spacing: 0.02em;
}
.article-content em {
  display: block;
  width: fit-content;
  max-width: 95%;
  margin: 1em auto;
  padding: 0.25em 0.7em;
  background: rgba(140,160,140,0.10);
  border-left: 3px solid #8bc8a0;
  color: #b6c4b2;
  font-size: 0.96em;
  font-style: italic;
  border-radius: 0 5px 5px 0;
  box-shadow: none;
  letter-spacing: 0.01em;
}
.article-content code {
  background: #262b2e;
  color: #73dea7;
  padding: 0.18em 0.38em;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'Fira Mono', monospace;
  text-decoration: none;
}
.article-content code a {
  text-decoration: none;
}
.article-content pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 1em;
  border-radius: 8px;
  overflow-x: auto; /* Keep this for horizontal scrolling of *blocks* of code */
  font-size: 0.95em;
  line-height: 1.5;
  margin: 1.5em 0;
  font-family: 'Fira Mono', monospace;
  border: 1px solid #333;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Ensure it doesn't try to be wider than its parent */
  box-sizing: border-box; /* Include padding and border in the width */
  /* The white-space rule on pre itself is important for basic pre-formatting */
  white-space: pre-wrap; /* Allows the pre block to wrap long lines */
  word-wrap: break-word; /* Ensures extremely long words break */
}
.article-content pre code {
  display: block; /* Code inside pre should take up its own line */
  background: none; /* Remove background from inner code, pre has it */
  color: inherit; /* Inherit color from pre */
  padding: 0; /* Remove padding from inner code, pre has it */
  border-radius: 0; /* Remove border-radius from inner code */
  font-size: inherit; /* Inherit font-size from pre */
  /* These two properties are key to preventing overflow without scrollbar for *single long lines/words* */
  white-space: pre-wrap; /* This tells the browser to break lines when necessary */
  word-wrap: break-word; /* This is a fallback for older browsers and ensures very long unbroken strings break */
  overflow: visible; /* Ensure content is visible */
}
.article-content hr {
  border: none;
  border-top: 1px solid #37454c;
  margin: 2.5em auto;
  width: 80%;
  opacity: 0.34;
}
.article-content a {
  color: #53c691;
  text-decoration: underline;
}
.article-content a:hover {
  color: #8df4a3;
}

@media (max-width: 1200px) {
    .article-content h1 {
        margin-bottom: 1.5rem;
        font-size: 1.8em;
    }
    .article-content .response h2 {
      margin-top: 2.3rem;
      margin-bottom: 0.9rem;
      font-size: 1.3em;
      font-weight: 600;
    }
    .article-content .response h3 {
      margin: 2em 0 1em 0;
      font-size: 1em;
      font-weight: 600;
    }
    .article-content p {
      margin: 1em 0;
      font-size: 1em;
    }
    .article-content ul,
    .article-content ol {
      margin: 1em 0 1em 2em;
    }
    .article-content li {
      margin-bottom: 0.4em;
      font-size: 1em;
    }
    .article-content code {
      font-size: 0.8em;
    }
    .article-content pre {
      font-size: 0.8em;
    }
}

@media (max-width: 800px) {
    .article-item {
        padding: 2rem;
    }

    .article-item h3 {
        font-size: 1.4em;
    }

    .article-item p {
        font-size: 1em;
    }

    .section-content h2 {
        font-size: 1.8em;
    }

    .section-content .greeting-message {
        font-size: 1em;
        padding: 0 1rem;
    }

    .scroll-snap-section {
      padding-left: 5vw;
      padding-right: 5vw;
    }
}

@media (max-width: 600px) {
    .article-content {
        max-width: 70vw;
    }
    .article-content h1 {
        margin-bottom: 1.5rem;
        font-size: 1.5em;
    }
    .article-content .response h2 {
      margin-top: 1.5rem;
      font-size: 1.2em;
    }
    .article-content .response h3 {
      margin: 1.5em 0 1em 0;
      font-size: 1em;
    }
    .article-content p {
      font-size: 0.9em;
    }
    .article-content li {
      font-size: 0.9em;
    }
    .article-content code {
      font-size: 0.7em;
    }
    .article-content pre {
      font-size: 0.7em;
    }
}

@media (max-width: 400px) {
    .article-item {
        padding: 1.5rem;
    }
@media (max-width: 350px) {
  .scroll-snap-section {
    padding-left: 5vw;
    padding-right: 5vw;
  }
}