.single-post-page {
  width: 100%;
  min-height: 100vh;
  background: #f8fafc;
  color: #0f172a;
}

.single-post-page *,
.single-post-page *::before,
.single-post-page *::after {
  box-sizing: border-box;
}

.single-post-hero {
  position: relative;
  width: 100%;
  height: clamp(380px, 58vw, 620px);
  overflow: hidden;
  background: #111827;
}

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

.single-post-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.18) 10%,
    rgba(0, 0, 0, 0.72) 100%
  );
}

.single-post-hero__content {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 44px;
  z-index: 2;
}

.single-post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-family: "PeydaFaNumWeb", sans-serif;
  font-size: 13px;
  margin: 0 0 20px;
}

.single-post-breadcrumb a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.single-post-breadcrumb a:hover {
  color: #fff;
}

.single-post-hero__badge {
  display: inline-block;
  margin-bottom: 12px;
  background: #B8860B;
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: "PeydaFaNumWeb", sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.single-post-hero__title {
  margin: 0 0 20px;
  color: #fff;
  font-family: "PeydaFaNumWeb", sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.35;
}

.single-post-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-family: "PeydaFaNumWeb", sans-serif;
  font-size: 14px;
}

.single-post-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.single-post-content-wrap {
  background: #fff;
  padding: 42px 0 54px;
}

.single-post-content-wrap__container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.single-post-excerpt-box {
  border-right: 4px solid #B8860B;
  background: #f8fafc;
  border-radius: 10px;
  padding: 18px 18px;
  margin-bottom: 30px;
}

.single-post-excerpt-box p {
  margin: 0;
  font-family: "PeydaFaNumWeb", sans-serif;
  font-size: 18px;
  color: #334155;
  line-height: 1.95;
}

.single-post-content {
  font-family: "PeydaFaNumWeb", sans-serif;
  color: #334155;
  line-height: 2;
  font-size: 17px;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
  color: #0f172a;
  line-height: 1.55;
  margin-top: 30px;
  margin-bottom: 12px;
}

.single-post-content h2 {
  font-size: clamp(25px, 3.1vw, 32px);
}

.single-post-content h3 {
  font-size: clamp(21px, 2.4vw, 27px);
}

.single-post-content p,
.single-post-content ul,
.single-post-content ol,
.single-post-content blockquote {
  margin-top: 0;
  margin-bottom: 14px;
}

.single-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.single-post-content img[loading="lazy"] {
  opacity: 1 !important;
}

.single-post-content a {
  color: #B8860B;
}

.single-post-tags {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
}

.single-post-tags__label {
  margin-left: 4px;
  font-family: "PeydaFaNumWeb", sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.single-post-tags__item {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #475569;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 6px 12px;
  font-family: "PeydaFaNumWeb", sans-serif;
  font-size: 13px;
  transition: all 0.22s ease;
}

.single-post-tags__item:hover {
  color: #fff;
  background: #B8860B;
}

.single-post-share {
  margin-top: 24px;
  padding: 18px;
  border-radius: 14px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: "PeydaFaNumWeb", sans-serif;
  color: #334155;
}

.single-post-share span {
  font-size: 15px;
}

.single-post-share button {
  border: 0;
  background: #B8860B;
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "PeydaFaNumWeb", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.single-post-related {
  padding: 44px 0 66px;
}

.single-post-related__container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

.single-post-related h3 {
  margin: 0 0 24px;
  font-family: "PeydaFaNumWeb", sans-serif;
  font-size: clamp(24px, 2.2vw, 31px);
  color: #0f172a;
}

.single-post-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.single-post-related__card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.28s ease;
}

.single-post-related__card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 134, 11, 0.22);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.single-post-related__media {
  height: 210px;
  background: #cbd5e1;
  overflow: hidden;
}

.single-post-related__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.single-post-related__card:hover .single-post-related__media img {
  transform: scale(1.06);
}

.single-post-related__body {
  padding: 16px;
}

.single-post-related__body h4 {
  margin: 0 0 8px;
  font-family: "PeydaFaNumWeb", sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.single-post-related__body p {
  margin: 0;
  font-family: "PeydaFaNumWeb", sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.single-post-related__footer {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.single-post-related__back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 2px solid #B8860B;
  color: #B8860B;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 24px;
  font-family: "PeydaFaNumWeb", sans-serif;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.single-post-related__back-link:hover {
  background: #B8860B;
  color: #fff;
}

@media (max-width: 1024px) {
  .single-post-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .single-post-hero {
    height: 430px;
  }

  .single-post-hero__content {
    padding-bottom: 26px;
  }

  .single-post-content-wrap {
    padding-top: 30px;
  }

  .single-post-share {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

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