/* Default table style */
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 */
}

/* Small table: centered and responsive */
table.small-table {
    width: 40%;               /* Default width */
    max-width: 90%;           /* Ensure it doesn’t overflow on small screens */
    border-collapse: collapse;
    border: 2px solid red;    /* Outer border */
    margin: 20px auto;        /* Center horizontally with some vertical spacing */
}

/* Table cells for small table */
table.small-table th,
table.small-table td {
    border: 2px solid red;    /* Horizontal and vertical lines */
    padding: 8px;
    text-align: left;
}

/* Optional: alternate row colors for readability */
table.small-table tr:nth-child(odd) {
    background-color: #ffe6e6; /* Light pink */
}

table.small-table tr:nth-child(even) {
    background-color: #fff0f0; /* Slightly lighter pink */
}

/* Responsive text: adjust font size on very small screens */
@media (max-width: 480px) {
    table.small-table {
        width: 100%;           /* Use full width on mobile */
    }

    table.small-table th,
    table.small-table td {
        font-size: 0.9em;      /* Slightly smaller text */
        padding: 6px;
    }
}

/* Small table: centered and responsive */
table.small-table {
    width: 40%;               /* Default width */
    max-width: 90%;           /* Ensure it doesn’t overflow on small screens */
    border-collapse: collapse;
    border: 2px solid red;    /* Outer border */
    margin: 20px auto;        /* Center horizontally with some vertical spacing */
}

/* Table cells for quiz table */
table.quiz-table th,
table.quiz-table td {
    border: 2px solid green;    /* Horizontal and vertical lines */
    padding: 8px;
    text-align: left;
}

/* Optional: alternate row colors for readability */
table.quiz-table tr:nth-child(odd) {
    background-color: #f2fef2; /* Light green */
}

table.quiz-table tr:nth-child(even) {
    background-color: #ffffff; /* White */
}

/* Responsive text: adjust font size on very small screens */
@media (max-width: 480px) {
    table.small-table {
        width: 100%;           /* Use full width on mobile */
    }

    table.small-table th,
    table.small-table td {
        font-size: 0.9em;      /* Slightly smaller text */
        padding: 6px;
    }
}

/* 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;
  }
}

.slideshow-container {
  max-width: 678px;
  margin: 0 auto;
  position: relative;
}

.slide {
  display: none;
}

.slideshow-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}




