html, body {
    height: 100%;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: 'Inter', sans-serif;
    color: #333;
    background: #fafafa; /* Set global background color */
  }
  
  .page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  
  main {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  header, footer {
    background: linear-gradient(to right, #f7f7f7, #ffffff);
    border-bottom: 1px solid #eee;
    text-align: center;
  }
  
  footer {
    border-top: 1px solid #eee;
    border-bottom: none;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
  }
  
  .header-container .logo {
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    color: #333;
    margin-right: 2rem;
  }
  
  .header-container .logo:hover {
    color: #000;
  }
  
  .header-container nav {
    margin-left: auto;
  }
  
  .header-container nav a {
    text-decoration: none;
    color: #333;
    margin-left: 1.5rem;
    position: relative;
    padding-bottom: 2px;
  }
  
  .header-container nav a:hover {
    color: #000;
  }
  
  .header-container nav a.active {
    font-weight: 700;
    color: #000;
    border-bottom: 2px solid #000;
  }
  
  /* Content container for pages */
  .content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    text-align: center;
  }
  
  /* Since the global background is #fafafa, 
     we don't need a separate background for these sections */
  .full-screen-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .topic-hero {
    padding: 5rem 1rem;
  }
  
  /* Lists */
  .post-list, .topic-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: center;
  }
  
  .post-item {
    margin-bottom: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff; /* Optionally set post items background to white for contrast */
  }
  
  .post-item a {
    display: block;
    text-decoration: none;
    color: #333;
    padding: 1rem;
  }
  
  .post-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transform: translateY(-2px);
  }
  
  .post-list time {
    font-size: 0.9rem;
    color: #666;
  }
  
  .topic-list li {
    margin-bottom: 1rem;
  }
  
  .topic-list li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    border-bottom: 1px dotted #aaa;
  }
  
  .topic-list li a:hover {
    color: #000;
  }
  
  .post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
  }
  
  .post-content {
    line-height: 1.6;
    text-align: center;
    background: #fff; /* If needed for better readability against #fafafa */
    display: inline-block; /* This can help text look centered within the container */
    padding: 1rem; /* Some padding around the post text */
    border-radius: 8px;
    max-width: 100%;
  }
  
  .back-link {
    display: inline-block;
    margin-top: 2rem;
    text-decoration: none;
    color: #333;
    border-bottom: 1px dotted #999;
    font-size: 0.9rem;
  }
  
  .back-link:hover {
    color: #000;
    border-bottom-color: #000;
  }

  .topic-list {
    display: flex;
    justify-content: center; /* Center the topics */
    gap: 2rem; /* Space between the cards */
    padding: 0;
    margin: 3rem 0;
  }
  
  .topic-list li {
    list-style: none;
  }
  
  .topic-list li a {
    display: block;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.2rem;
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-bottom: none; /* Remove dotted underline */
  }
  
  .topic-list li a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    color: #000;
  }