/* Fade-in-up keyframes (portfolio.css may already include this) */
@keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Utility class for fade-in-up */
  .fadeInUp {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
  }
  
  /* Shift the entire post right */
.post {
  max-width: 800px;
  margin: 2em auto;
  padding: 0 2em;
  color: #fff;
}
  
  /* Title block */
  .post-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1em; /* tightened since date moved */
  }

  .header-p {
    width: 70%;          /* same width as the image */
    margin: 1.5em auto;  /* vertically space + auto‐center */
    color: #eee;
    line-height: 1.6;
    font-size: 1rem;
    text-align: left;    /* keeps text left‐aligned inside that block */
  }

  
  .post-header h1 {
    width: 50%;       /* match the image width */
    margin: 0 auto;   /* center horizontally */
    font-size: 2rem;
    text-align: left; /* keep the text itself left-aligned */
  }
  
  
  /* Image + date */
  .post-image {
    margin-bottom: 1.5em;
  }
  
  .post-image img {
    width: 70%;          /* same width as before */
    display: block;      /* so margin auto works */
    margin: 0 auto 0.5em;/* horizontally center + bottom gap */
    border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  }
  
  .post-date {
    display: block;        /* so width & margin auto work */
    width: 70%;            /* same as .post-image img */
    margin: 0.75em auto;   /* top/bottom gap + center horizontally */
    color: #ccc;
    font-size: 0.9rem;
  }
  
  /* Center the content to the same width */
  .post-content {
    width: 70%;            /* match image & date */
    margin: 4em auto;    /* vertical gap + center */
    line-height: 1.6;
    font-size: 1rem;
    color: #eee;
  }
  
  .post-content h2 {
    margin-top: 2em;
    font-size: 1.5rem;
    color: #f0e68c;
  }

  .buttons2 {
    margin-top: 6em; /* or whatever feels right */
  }
  

  .button.primary2 {
    background-color: #f0e68c; /* Light color for primary button */
    color: #101010; /* Dark text color */
    text-decoration: none;
    padding: 0.75em 1.5em;
    border-radius: 25px;
    font-weight: bold;
    margin-left: 35%;
    transition: background-color 0.3s, color 0.3s;
}

#backToTop {
  position: fixed;
  right: 24px;
  bottom: 90px;                 /* clears your sticky footer */
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  cursor: pointer;

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
  z-index: 950;                 /* below your menu/lightbox overlays */
}

#backToTop:hover {
  background: rgba(255,255,255,0.15);
}

#backToTop.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
  
  /* Responsive */
  @media (max-width: 768px) {
    .post {
      left: 1em;
      padding: 0 1em;
      margin: 1em auto;
    }
    .post-header h1 {
      font-size: 2.25rem;
    }
    .post-image img {
      width: 100%;
    }
    .post-content h2 {
      font-size: 1.25rem;
    }
    .header-p {
      width: 100%;
      margin: 1em auto;
    }
  }
  
  
  