table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid black; /* Outer border */
}

th, td {
    border: 2px solid black; /* Horizontal and vertical lines */
    padding: 8px;
    text-align: left;
}

.section-header td {
    background-color: #ccc;
    font-weight: bold;
    text-align: center;
    font-size: 1.1em;
}

th {
    background-color: #f2f2f2;
}

tr:nth-child(odd) {
    background-color: #d0eaff; /* Light blue */
}

tr:nth-child(even) {
    background-color: #e0f9d8; /* Light green */
}

h1 {
    text-align: center;
    color: #333;
}

/* Basic grid layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Responsive columns */
    gap: 16px; /* Space between grid items */
    padding: 16px;
}

/* Style for the grid items */
.grid-item {
    background: #f0f0f0; /* Background color for items */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Shadow for a nicer look */
}

/* Optional: Adjust grid items when the screen size is smaller */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }
}

/* Social sharing button custom color */
.resp-sharing-button--x {
  background-color: #000000;
  border-color: #000000;
}
.resp-sharing-button--x:hover,
.resp-sharing-button--x:active {
  background-color: #222222;
  border-color: #222222;
}

/* === Previous/Next Post Navigation (Unified for All Posts) === */
.post-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3em;
  padding-top: 1.5em;
  border-top: 1px solid #ccc;
  font-size: 1em;
  flex-wrap: wrap;
  gap: 1em;
}

.prev-post,
.next-post {
  flex-basis: 48%;
  max-width: 48%;
  box-sizing: border-box;
  word-break: break-word;
}

.prev-post {
  text-align: left;
}

.next-post {
  text-align: right;
}

.post-nav a {
  color: red;
  text-decoration: none;
  font-weight: bold;
}

.post-nav a:hover {
  text-decoration: underline;
}

.prev-post::before {
  content: "Previous: ";
  font-weight: bold;
}

.next-post::before {
  content: "Next: ";
  font-weight: bold;
}

/* Mobile responsiveness: stack vertically */
@media (max-width: 600px) {
  .post-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .prev-post,
  .next-post {
    max-width: 100%;
    flex-basis: 100%;
    text-align: left;
  }

  .next-post {
    margin-top: 0.5em;
  }
}

