.post-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

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

.post-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 25, 38, 0.2), rgba(8, 25, 38, 0.85));
}

.post-hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 4.5rem 2rem 3rem;
}

.post-back-link {
  display: inline-flex;
  margin-bottom: 1rem;
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}

.post-category-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.post-hero h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  line-height: 1.15;
  font-family: 'Montserrat', sans-serif;
}

.post-meta-line {
  margin-top: 1rem;
  opacity: 0.92;
}

.post-main {
  display: grid;
  grid-template-columns: 1.7fr minmax(260px, 1fr);
  gap: 2rem;
  padding: 3rem 2rem 5rem;
}

.post-article {
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  border: 1px solid rgba(9, 26, 42, 0.08);
}

.post-article h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

.post-article p {
  margin: 0;
  line-height: 1.9;
  white-space: pre-line;
  color: var(--text-dark);
}

.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-share-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(9, 26, 42, 0.08);
  padding: 1.2rem;
}

.post-share-card h3 {
  margin: 0 0 0.5rem;
}

.post-share-card p {
  color: var(--text-mid);
  margin-bottom: 1rem;
}

.post-share-card .btn-outline {
  display: inline-flex;
}

.post-share-card .btn-primary,
.post-share-card .btn-outline {
  width: 100%;
  justify-content: center;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.post-share-card .btn-primary {
  background: linear-gradient(135deg, var(--teal), #15b8aa);
  border: 1px solid transparent;
  box-shadow: 0 8px 22px rgba(20, 184, 166, 0.28);
}

.post-share-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(20, 184, 166, 0.35);
}

.post-share-card .btn-outline {
  color: var(--dark-blue);
  border: 1.5px solid rgba(11, 31, 49, 0.2);
  background: rgba(11, 31, 49, 0.03);
}

.post-share-card .btn-outline:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 31, 49, 0.4);
  background: rgba(11, 31, 49, 0.07);
}

@media (max-width: 900px) {
  .post-main {
    grid-template-columns: 1fr;
    padding-inline: 1rem;
  }

  .post-hero__content {
    padding-inline: 1rem;
  }
}
