.post-cover {
  position: relative;
  height: 200px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  display: block;
}

.post-cover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  box-sizing: border-box;
}

/* Title inside image */
.post-cover-overlay h1 {
  margin: 0 0 0.15rem 0;
  font-size: 1.65rem;
  color: #D3D3D3;
  -webkit-text-stroke: 1px #000000;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}

/* Tags inside image */
.post-cover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-cover-tags a {
  background: rgba(0, 0, 0, 0.6);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  color: white;
  text-decoration: none;
}
/* Posts page header */
.posts-info-box {
  max-width: 960px;
  margin: 0 auto 2.5rem;
  padding: 2rem 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.posts-info-box h1 {
  margin: 0;
  font-size: 2.2rem;
  letter-spacing: 0.02em;
}

/* Blog list cards */
.section-main-box {
  max-width: 960px;
  margin: 0 auto 1.75rem;
  padding: 1.5rem 1.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
              border-color 0.15s ease, background 0.15s ease;
}

.section-main-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.12);
}

/* Dark mode card */
body.dark-mode .section-main-box {
  background: #202020;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
}

body.dark-mode .section-main-box:hover {
  border-color: rgba(255, 255, 255, 0.18);
}
/* Post title in list */
#section-post-title {
  margin: 0 0 0.4rem 0;
  font-size: 1.5rem;
  line-height: 1.5rem;
}

#section-post-title a {
  text-decoration: none;
  color: #111111;
}

#section-post-title a:hover {
  text-decoration: underline;
}

/* Dark mode title */
body.dark-mode #section-post-title a {
  color: #f7f7f7;
}

/* Meta row (date + categories + etc.) */
.section-meta-data-div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  font-size: 0.9rem;
  color: #666666;
  margin-bottom: 0.75rem;
}

.section-meta-data-div time {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

/* Dark mode meta text */
body.dark-mode .section-meta-data-div {
  color: #d0d0d0;
}

/* Excerpt paragraph inside card */
.section-main-box > p {
  margin: 0 0 0.75rem 0;
  line-height: 1.6;
}

/* Make markdown bold in excerpt look nice */
.section-main-box > p strong {
  font-weight: 600;
}
.section-taxonomies {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Wrapper with label + list */
.page-tags-div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

/* "Categories:" / "Tags:" label */
#page-tags-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Tag list inline */
.page-tags-div ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.page-tags-div li a {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-tags-div li a:hover {
  background: rgba(0, 0, 0, 0.12);
}

/* Dark mode chips */
body.dark-mode .page-tags-div li a {
  background: rgba(255, 255, 255, 0.06);
  color: #f0f0f0;
}

body.dark-mode .page-tags-div li a:hover {
  background: rgba(255, 255, 255, 0.14);
}
.section-main-box > p:last-of-type a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.18);
  color: #333333;
  background: #f9f9f9;
  transition: background 0.15s ease, border-color 0.15s ease,
              transform 0.1s ease;
}

.section-main-box > p:last-of-type a::after {
  content: "→";
  font-size: 0.9em;
}

.section-main-box > p:last-of-type a:hover {
  background: #efefef;
  border-color: rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

/* Dark mode read-more button */
body.dark-mode .section-main-box > p:last-of-type a {
  background: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.2);
  color: #f3f3f3;
}

body.dark-mode .section-main-box > p:last-of-type a:hover {
  background: #333333;
  border-color: rgba(255, 255, 255, 0.35);
}
@media (max-width: 640px) {
  .section-main-box {
    padding: 1.25rem 1.1rem;
    margin: 0 0 1.25rem 0;
    border-radius: 0.85rem;
  }

  #section-post-title {
    font-size: 1.3rem;
  }

  .section-meta-data-div {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
}
