/* Polaroid Stack Transition */
.polaroid-card {
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.8s ease, z-index 0.8s step-end;
}

/* Left Polaroid Stack States */
.left-stack-front {
  transform: scale(1) rotate(-2deg) translate3d(0, 0, 0);
  opacity: 1;
  z-index: 30;
  pointer-events: auto;
}
.left-stack-back {
  transform: scale(0.85) rotate(12deg) translate3d(60px, -30px, 0);
  opacity: 1;
  z-index: 20;
  pointer-events: none;
}
.left-stack-hidden {
  transform: scale(0.8) rotate(0deg) translate3d(0, 0, 0);
  opacity: 0;
  z-index: 10;
  pointer-events: none;
}

/* Right Polaroid Stack States */
.right-stack-front {
  transform: scale(1) rotate(3deg) translate3d(0, 0, 0);
  opacity: 1;
  z-index: 30;
  pointer-events: auto;
}
.right-stack-back {
  transform: scale(0.85) rotate(-10deg) translate3d(-50px, -25px, 0);
  opacity: 1;
  z-index: 20;
  pointer-events: none;
}
.right-stack-hidden {
  transform: scale(0.8) rotate(0deg) translate3d(0, 0, 0);
  opacity: 0;
  z-index: 10;
  pointer-events: none;
}

/* Smooth Scrolling Custom Offset for target sections */
.scroll-mt-32 {
  scroll-margin-top: 8rem; /* 128px equivalent to pt-32 / header spacing */
}

/* ===========================
   BLOG STYLES
   =========================== */

/* Blog Single Hero */
.blog-hero {
  position: relative;
  width: 100%;
  min-height: 65vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.blog-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.6) 40%,
    rgba(0, 0, 0, 0.25) 100%
  );
}

.blog-hero__content {
  position: relative;
  z-index: 10;
  padding: 3rem 1.5rem;
  max-width: 80rem;
  margin: 0 auto;
  width: 100%;
}

/* Category Badges */
.blog-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: #992f74;
  color: #fff;
  border-radius: 4px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: background 0.3s ease;
}

.blog-badge:hover {
  background: #b8397f;
}

/* Blog Content Area */
.blog-content-area {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
}

/* Metadata Sidebar */
.blog-meta-sidebar {
  position: sticky;
  top: 7rem;
  align-self: start;
  border-left: 2px solid rgba(153, 47, 116, 0.3);
  padding-left: 1.5rem;
}

.blog-meta-sidebar .meta-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.35rem;
}

.blog-meta-sidebar .meta-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.5rem;
}

/* Share Links */
.blog-share-links {
  display: flex;
  gap: 0.75rem;
}

.blog-share-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-share-links a:hover {
  border-color: #992f74;
  color: #992f74;
  background: rgba(153, 47, 116, 0.1);
}

/* Blog Body Content */
.blog-body {
  font-family: 'Montserrat', sans-serif;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 300;
  line-height: 1.85;
  font-size: 1rem;
}

.blog-body p {
  margin-bottom: 1.5rem;
}

.blog-body h2,
.blog-body h3,
.blog-body h4 {
  color: #fff;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.blog-body h2 {
  font-size: 1.5rem;
}

.blog-body h3 {
  font-size: 1.2rem;
}

.blog-body ul,
.blog-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.blog-body li {
  margin-bottom: 0.5rem;
}

.blog-body blockquote {
  border-left: 3px solid #992f74;
  padding-left: 1.25rem;
  margin: 2rem 0;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

.blog-body img {
  border-radius: 0.75rem;
  margin: 2rem 0;
  max-width: 100%;
  height: auto;
}

.blog-body a {
  color: #992f74;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.blog-body a:hover {
  color: #b8397f;
}

/* Back Link */
.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #992f74;
  text-decoration: none;
  padding: 3rem 0;
  transition: color 0.3s ease, gap 0.3s ease;
}

.blog-back-link:hover {
  color: #b8397f;
  gap: 0.75rem;
}

/* Related Posts Section */
.blog-related {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 1.5rem 5rem;
}

.blog-related__heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.blog-related__heading span {
  color: #992f74;
}

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

.blog-related-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.blog-related-card:hover {
  transform: translateY(-4px);
}

.blog-related-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  transition: opacity 0.3s ease;
}

.blog-related-card:hover .blog-related-card__image {
  opacity: 0.85;
}

.blog-related-card__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}

/* Archive Featured Card Link */
.blog-featured-link {
  text-decoration: none;
  color: inherit;
}

.blog-featured-link:hover h2 {
  color: #992f74;
}

/* Archive Card Link */
.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 3rem 0 1rem;
  font-family: 'Montserrat', sans-serif;
}

.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-pagination a {
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-pagination a:hover {
  color: #fff;
  border-color: #992f74;
  background: rgba(153, 47, 116, 0.15);
}

.blog-pagination span.current {
  background: #992f74;
  color: #fff;
  border: 1px solid #992f74;
}

/* ===========================
   BLOG RESPONSIVE
   =========================== */

@media (max-width: 1024px) {
  .blog-content-area {
    grid-template-columns: 180px 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .blog-hero {
    min-height: 50vh;
  }

  .blog-hero__content {
    padding: 2rem 1.25rem;
  }

  .blog-hero__content h1 {
    font-size: 1.75rem !important;
  }

  .blog-content-area {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 2rem 1.25rem 1.5rem;
  }

  .blog-meta-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 0;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
  }

  .blog-meta-sidebar .meta-group {
    flex: 0 0 auto;
  }

  .blog-meta-sidebar .meta-value {
    margin-bottom: 0;
  }

  .blog-related-grid {
    grid-template-columns: 1fr;
  }

  .blog-back-link {
    padding: 2rem 0;
  }
}
