#post-title {
  font-family: var(--theme-heading-font);
}

.post-paragraph,
#post-date {
  font-family: var(--theme-content-font);
}

#blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.loading-placeholder {
  text-align: center;
  padding: 2rem;
  font-size: var(--text-base);
  color: var(--shadowColor);
  opacity: 0.7;
}

.dot {
  opacity: 0;
  animation: dotPulse 1.4s infinite;
}

.dot1 { animation-delay: 0s; }
.dot2 { animation-delay: 0.2s; }
.dot3 { animation-delay: 0.4s; }

@keyframes dotPulse {
  0%, 20% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

.fade-out {
  animation: fadeOut 0.4s ease forwards;
}

@keyframes fadeOut {
  to { opacity: 0; }
}

.blog-section {
  min-width: 0;
}

.latest-post-banner {
  width: 100%;
  max-height: 300px;
  border: 0.15rem solid var(--borderColor);
  border-radius: 0.3rem;
  margin-bottom: 1rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.post-card {
  cursor: pointer;
  animation: fadeIn ease 0.8s;
  animation-fill-mode: both;
  display: flex;
  flex-direction: column;
}

.post-card .card-link {
  margin-top: auto;
}

.post-card:nth-child(1) { animation-delay: 0.05s; }
.post-card:nth-child(2) { animation-delay: 0.15s; }
.post-card:nth-child(3) { animation-delay: 0.25s; }
.post-card:nth-child(4) { animation-delay: 0.35s; }
.post-card:nth-child(5) { animation-delay: 0.45s; }

.card-title {
  font-size: var(--text-2xl);
  line-height: 1.3;
}

#post-view {
  display: block;
}

#back-btn {
  background-color: var(--shadowColor);
  color: var(--backgroundColor);
  border: 0.2rem solid var(--borderColor);
  border-radius: 0.3rem;
  padding: 0.6rem 1.2rem;
  font-family: var(--poppins);
  font-size: var(--text-base);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0.15rem 0.15rem var(--shadowColor);
  margin-bottom: 1.5rem;
}

#back-btn:hover {
  transform: translateY(-0.1rem) translateX(0.1rem);
  box-shadow: 0.3rem 0.3rem var(--shadowColor);
  background-color: var(--backgroundColor);
  color: var(--borderColor);
}

#post-banner {
  display: block;
  width: 100%;
  max-height: 400px;
  border: 0.2rem solid var(--borderColor);
  border-radius: 0.4rem;
  box-shadow: 0.3rem 0.3rem var(--shadowColor);
  margin-bottom: 2rem;
  padding: 2%;
}

#post-title {
  color: var(--shadowColor);
  font-size: var(--text-3xl);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

#post-date {
  color: var(--shadowColor);
  font-size: var(--text-base);
  margin: 0 0 2rem 0;
  font-weight: normal;
  opacity: 0.85;
}

#post-content {
  display: flex;
  flex-direction: column;
}

.post-paragraph {
  color: var(--borderColor);
  font-size: var(--text-base);
  line-height: 1.7;
  text-align: justify;
}

@media (max-width: 720px) {
  .section-heading {
    font-size: var(--text-2xl);
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .post-card {
    padding: 1rem;
  }

  .card-title {
    font-size: var(--text-lg);
  }

  .card-excerpt {
    font-size: var(--text-sm);
  }

  #post-title {
    font-size: var(--text-2xl);
  }

  .post-paragraph {
    font-size: var(--text-sm);
  }

  #back-btn {
    font-size: var(--text-sm);
    padding: 0.5rem 1rem;
  }

  /* Touch-tap replacement for :hover on the back button. */
  #back-btn:hover {
    transform: none;
    box-shadow: 0.15rem 0.15rem var(--shadowColor);
    background-color: var(--shadowColor);
    color: var(--backgroundColor);
  }

  #back-btn.tapped {
    transform: translateY(-0.1rem) translateX(0.1rem);
    box-shadow: 0.3rem 0.3rem var(--shadowColor);
    background-color: var(--backgroundColor);
    color: var(--borderColor);
  }
}
