.blog-single {
  --blog-ink: #10131b;
  --blog-muted: #606673;
  --blog-line: #e7e5e1;
  --blog-accent: #ff3d0a;
  background: #fff;
}

#header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 99999;
  width: 100%;
  background: transparent;
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

#header.blog-header-hidden {
  transform: translateY(-100%);
}

#header .navbar-expand {
  position: relative;
  top: auto;
  z-index: 1;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#header .navbar-expand .navbar-nav .nav-item .nav-link {
  color: var(--blog-ink);
}

@media (min-width: 768px) and (max-width: 1199px) {
  #header .navbar-expand .navbar-nav.items {
    display: flex !important;
    align-items: center;
  }

  #header .navbar-expand .navbar-nav .nav-item .nav-link {
    padding-right: 0.65rem;
    padding-left: 0.65rem;
    font-size: 0.88rem;
  }
}

.blog-single-hero {
  padding: 150px 0 88px;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 61, 10, 0.12), transparent 26%),
    linear-gradient(180deg, #f6f3ee 0%, #fbfaf8 100%);
  border-bottom: 1px solid rgba(16, 19, 27, 0.06);
}

.blog-single-hero-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.blog-single-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
  color: var(--blog-muted);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.blog-single-breadcrumb a {
  color: inherit;
}

.blog-single-breadcrumb a:hover {
  color: var(--blog-accent);
}

.blog-single-title {
  max-width: 1000px;
  margin: 0;
  color: var(--blog-ink);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.blog-single-excerpt {
  max-width: 780px;
  margin: 34px 0 0;
  color: var(--blog-muted);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.7;
}

.blog-single-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 42px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(16, 19, 27, 0.12);
}

.blog-single-author {
  display: flex;
  align-items: center;
  gap: 13px;
}

.blog-single-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.blog-single-author div,
.blog-single-meta-item {
  display: grid;
  gap: 3px;
}

.blog-single-meta strong,
.blog-single-meta time,
.blog-single-meta-item > span:last-child {
  color: var(--blog-ink);
  font-size: 0.98rem;
}

.blog-single .meta-label {
  color: var(--blog-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-single-cover {
  max-width: 1180px;
  margin: -34px auto 0;
  position: relative;
  z-index: 2;
}

.blog-single-cover img {
  display: block;
  width: 100%;
  max-height: 680px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 26px 70px rgba(16, 19, 27, 0.14);
}

.blog-single-body {
  padding: 94px 0 80px;
}

.blog-single-content,
.blog-single-footer {
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
}

.blog-single-content {
  color: #303540;
  font-size: 1.12rem;
  line-height: 1.86;
}

.blog-single-content > p:first-child {
  color: var(--blog-ink);
  font-size: clamp(1.22rem, 1.7vw, 1.45rem);
  line-height: 1.65;
}

.blog-single-content p {
  margin: 0 0 1.55em;
}

.blog-single-content h2 {
  margin: 2.15em 0 0.65em;
  color: var(--blog-ink);
  font-size: clamp(2rem, 3.2vw, 3.05rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.12;
  text-wrap: balance;
}

.blog-single-content h3 {
  margin: 1.9em 0 0.55em;
  color: var(--blog-ink);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.blog-single-content h2 + h3 {
  margin-top: 1.1em;
}

.blog-single-content a {
  color: var(--blog-accent);
  background-image: linear-gradient(var(--blog-accent), var(--blog-accent));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
}

.blog-single-content a:hover {
  color: #c82d05;
  background-size: 0 1px;
}

.blog-single-content ul,
.blog-single-content ol {
  margin: 1.4em 0 1.9em;
  padding: 24px 30px 24px 52px;
  border: 1px solid var(--blog-line);
  border-radius: 18px;
  background: #faf9f7;
}

.blog-single-content li {
  padding-left: 5px;
}

.blog-single-content li + li {
  margin-top: 9px;
}

.blog-single-content blockquote {
  margin: 2.2em 0;
  padding: 28px 30px;
  border-left: 4px solid var(--blog-accent);
  border-radius: 0 18px 18px 0;
  background: #f7f3ee;
  color: var(--blog-ink);
  font-size: 1.24rem;
  line-height: 1.65;
}

.blog-single-content img {
  width: 100%;
  height: auto;
  margin: 1.2em 0 2em;
  border-radius: 20px;
}

.blog-single-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--blog-line);
}

.blog-single-share-label {
  color: var(--blog-muted);
}

.blog-single-back {
  flex: none;
  color: var(--blog-ink);
  font-weight: 600;
}

.blog-single-back:hover {
  color: var(--blog-accent);
}

.blog-related {
  padding: 84px 0 110px;
  background: #11131a;
}

.blog-related-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 40px;
}

.blog-related-kicker {
  color: #ff7854;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-related-heading h2 {
  margin: 7px 0 0;
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.blog-related-heading > a {
  color: rgba(255, 255, 255, 0.76);
}

.blog-related-heading > a:hover {
  color: #fff;
}

.blog-related-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: #191c24;
}

.blog-related-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #ff4b1f, #1c1f29);
}

.blog-related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-related-card:hover .blog-related-image img {
  transform: scale(1.04);
}

.blog-related-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 4rem;
  font-weight: 700;
}

.blog-related-content {
  padding: 25px;
}

.blog-related-content time {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.86rem;
}

.blog-related-content h3 {
  margin: 12px 0 22px;
  font-size: 1.35rem;
  line-height: 1.35;
}

.blog-related-content h3 a {
  color: #fff;
}

.blog-related-link {
  color: #ff8c6d;
  font-size: 0.92rem;
  font-weight: 600;
}

@media (max-width: 767px) {
  .blog-single-hero {
    padding: 110px 0 62px;
  }

  .blog-single-title {
    font-size: clamp(2.65rem, 13vw, 4rem);
    line-height: 1.02;
  }

  .blog-single-meta {
    align-items: flex-start;
    gap: 22px 30px;
    margin-top: 36px;
  }

  .blog-single-author {
    width: 100%;
  }

  .blog-single-body {
    padding: 62px 0;
  }

  .blog-single-content {
    font-size: 1.04rem;
    line-height: 1.78;
  }

  .blog-single-content h2 {
    margin-top: 1.8em;
  }

  .blog-single-footer,
  .blog-related-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .blog-related {
    padding: 64px 0 80px;
  }
}
