/* ================================
   BLOG POST PAGE STYLES
   ================================ */

/* Override layout grid for posts: full width */
.layout {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: block; /* no sidebar grid */
}

/* Post container */
.post {
  background: rgba(28, 34, 34, 0.85); /* semi-transparent style */
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 0 12px rgba(255,255,255,0.25);
  max-width: 100%;   /* span full width */
  margin: 0 auto;
}

/* Post title */
.post-title {
  position: relative;
  font-size: 2rem;
  font-weight: 600;
  color: #e6efe9;
  text-align: center;
  font-style: italic;
  animation: glow 4s ease-in-out infinite;
  margin-bottom: 1rem;
}

.post-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -8px;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, #ffd700, #fff176, #ffecb3);
  background-size: 200% 100%;
  border-radius: 2px;
  animation: underlineShift 6s linear infinite;
}

/* Tag + date row */
.post-meta {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  font-size: 0.9rem;
  color: #9fc5b5;
  text-transform: lowercase;
  margin-bottom: 1.6rem;
  align-items: baseline;   /* align text baselines */
}

.post-meta span,
.post-meta time {
  line-height: 1;          /* normalize line height */
  display: inline-block;   /* consistent box model */
}

/* Post image */
.post-image {
  max-width: 220px;        /* smaller cap */
  margin: 0 auto 1.6rem;   /* center horizontally, add bottom spacing */
  border: 3px solid #ffffff;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: auto;            /* keep natural aspect ratio */
  object-fit: cover;
  display: block;
}

/* Star icon */
.post-icon {
  font-size: 1.6rem;
  color: gold;
  text-align: center;
  margin-bottom: 1.6rem;
  animation: glow 4s ease-in-out infinite;
}

/* Blog content */
.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #e6efe9;
  text-align: center; /* center all text */
}

.post-content p {
  margin-bottom: 1.4rem;
}
