

body.blog-page {
  background: var(--bg, #fafbfd);
}

.blog-preview-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #92400e, #b45309);
  color: #fffbeb;
  box-shadow: 0 4px 16px rgba(180, 83, 9, 0.25);
}

.blog-preview-banner__inner {
  padding: 0.65rem 1rem;
  text-align: center;
  font-size: 0.88rem;
}

.blog-preview-banner strong {
  font-weight: 800;
}

.header--blog {
  z-index: 40;
}

.nav__link.is-active {
  color: var(--brand, #af1a15);
  font-weight: 800;
}

.blog-page {
  overflow-x: clip;
}

.blog-hero {
  position: relative;
  padding: clamp(72px, 10vw, 120px) 0 clamp(40px, 6vw, 64px);
}

.blog-hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.blog-hero__inner {
  position: relative;
  z-index: 1;
}

.blog-hero__title {
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin: 12px 0 16px;
  max-width: 16ch;
}

.blog-hero__desc {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-muted, #5a6578);
  max-width: 52ch;
}

.blog-featured {
  padding-top: 0;
}

.blog-featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(18px, 2.5vw, 28px);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 252, 0.92));
  border: 1px solid rgba(26, 122, 140, 0.12);
  box-shadow:
    0 24px 60px rgba(14, 74, 86, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.blog-featured-card__media {
  display: block;
  min-height: 260px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}

.blog-featured-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #af1a15, #c62828);
  box-shadow: 0 8px 20px rgba(175, 26, 21, 0.28);
}

.blog-featured-card__body h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.45;
  margin: 10px 0 12px;
}

.blog-featured-card__body h2 a {
  color: inherit;
  text-decoration: none;
}

.blog-featured-card__body h2 a:hover {
  color: var(--primary, #1a7a8c);
}

.blog-featured-card__body p {
  color: var(--text-muted, #5a6578);
  line-height: 1.85;
  margin-bottom: 18px;
}

.blog-featured-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(26, 122, 140, 0.1);
  box-shadow: 0 12px 32px rgba(14, 74, 86, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(14, 74, 86, 0.12);
}

.blog-card__media {
  display: block;
  min-height: 168px;
}

.blog-card__cover {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.35), transparent 45%),
    linear-gradient(135deg, var(--blog-cover-a, #1a7a8c), var(--blog-cover-b, #0e4a56));
}

.blog-card__cover--mint {
  --blog-cover-a: #4db8c9;
  --blog-cover-b: #1a7a8c;
}

.blog-card__cover--violet {
  --blog-cover-a: #ab47bc;
  --blog-cover-b: #6a1b9a;
}

.blog-card__cover--coral {
  --blog-cover-a: #ff8a65;
  --blog-cover-b: #c62828;
}

.blog-card__cover--gold {
  --blog-cover-a: #ffd54f;
  --blog-cover-b: #f57c00;
}

.blog-card__cover--teal {
  --blog-cover-a: #26a69a;
  --blog-cover-b: #00695c;
}

.blog-card__cover--image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 16px;
  flex: 1;
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted, #5a6578);
}

.blog-card__category {
  color: var(--primary, #1a7a8c);
}

.blog-card__category--hero {
  display: inline-block;
  margin-bottom: 8px;
}

.blog-card__body h3 {
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0;
}

.blog-card__body h3 a {
  color: inherit;
  text-decoration: none;
}

.blog-card__body h3 a:hover {
  color: var(--primary, #1a7a8c);
}

.blog-card__body p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-muted, #5a6578);
  margin: 0;
  flex: 1;
}

.blog-card__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(26, 122, 140, 0.08);
}

.blog-card__author {
  font-size: 0.78rem;
  font-weight: 800;
}

.blog-card__time {
  font-size: 0.72rem;
  color: var(--text-muted, #5a6578);
}

.blog-card__foot .link-arrow {
  margin-inline-start: auto;
}

.blog-empty {
  text-align: center;
  padding: 48px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px dashed rgba(26, 122, 140, 0.2);
}

.blog-empty p {
  margin-bottom: 16px;
  color: var(--text-muted, #5a6578);
}

.blog-single-hero {
  position: relative;
  padding: clamp(48px, 7vw, 88px) 0 24px;
}

.blog-single-hero__inner {
  position: relative;
  z-index: 1;
}

.blog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted, #5a6578);
  margin-bottom: 18px;
}

.blog-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.blog-breadcrumb a:hover {
  color: var(--primary, #1a7a8c);
}

.blog-single-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  max-width: 22ch;
}

.blog-single-hero__excerpt {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-muted, #5a6578);
  max-width: 62ch;
  margin-bottom: 16px;
}

.blog-single-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted, #5a6578);
}

.blog-single__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}

.blog-article {
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(26, 122, 140, 0.1);
  box-shadow: 0 16px 40px rgba(14, 74, 86, 0.06);
  overflow: hidden;
}

.blog-article__cover {
  min-height: 220px;
}

.blog-prose {
  padding: clamp(22px, 3vw, 36px);
  direction: rtl;
  text-align: right;
  line-height: 1.95;
  color: var(--text, #1a2332);
}

.blog-prose h2 {
  font-size: 1.35rem;
  margin: 1.6em 0 0.65em;
  line-height: 1.45;
}

.blog-prose h3 {
  font-size: 1.12rem;
  margin: 1.4em 0 0.5em;
}

.blog-prose p {
  margin: 0 0 1em;
  color: var(--text-muted, #4a5568);
}

.blog-prose ul,
.blog-prose ol {
  margin: 0 0 1.2em;
  padding-inline-start: 1.25em;
}

.blog-prose li {
  margin-bottom: 0.45em;
}

.blog-prose blockquote {
  margin: 1.2em 0;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(26, 122, 140, 0.06);
  border-inline-start: 4px solid var(--primary, #1a7a8c);
  color: var(--text, #1a2332);
  font-weight: 600;
}

.blog-prose strong {
  color: var(--text, #1a2332);
}

.blog-article__foot {
  padding: 0 clamp(22px, 3vw, 36px) clamp(22px, 3vw, 36px);
}

.blog-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 96px;
}

.blog-aside__card,
.blog-aside__cta {
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(26, 122, 140, 0.1);
  box-shadow: 0 10px 28px rgba(14, 74, 86, 0.05);
}

.blog-aside__card h2,
.blog-aside__cta h3 {
  font-size: 0.95rem;
  margin: 0 0 10px;
}

.blog-aside__card p {
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--text-muted, #5a6578);
  margin: 0;
}

.blog-related {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-related a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: inherit;
}

.blog-related strong {
  font-size: 0.88rem;
  line-height: 1.55;
}

.blog-related small {
  font-size: 0.72rem;
  color: var(--text-muted, #5a6578);
}

.blog-related a:hover strong {
  color: var(--primary, #1a7a8c);
}

.blog-aside__cta p {
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--text-muted, #5a6578);
  margin-bottom: 12px;
}

.btn--block {
  width: 100%;
  justify-content: center;
}

.blog-comments {
  padding-top: 0;
  padding-bottom: clamp(56px, 8vw, 96px);
}

.blog-comments__inner {
  max-width: 820px;
}

.blog-comments__head {
  margin-bottom: 24px;
}

.blog-comments__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  padding: 0.1rem 0.45rem;
  margin-right: 0.35rem;
  border-radius: 999px;
  background: rgba(26, 122, 140, 0.1);
  color: var(--primary, #1a7a8c);
  font-size: 0.82em;
  font-weight: 800;
  vertical-align: middle;
}

.blog-comments__form {
  display: grid;
  gap: 14px;
  padding: 20px;
  margin-bottom: 28px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 252, 0.94));
  border: 1px solid rgba(26, 122, 140, 0.12);
  box-shadow: 0 16px 40px rgba(14, 74, 86, 0.06);
}

.blog-comments__reply-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(26, 122, 140, 0.08);
  border: 1px solid rgba(26, 122, 140, 0.14);
  font-size: 0.86rem;
}

.blog-comments__cancel-reply {
  border: none;
  background: transparent;
  color: var(--primary, #1a7a8c);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.blog-comments__signed-as {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted, #5a6578);
}

.blog-comments__field {
  display: grid;
  gap: 6px;
}

.blog-comments__field span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted, #5a6578);
}

.blog-comments__field input,
.blog-comments__field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(26, 122, 140, 0.15);
  border-radius: 14px;
  background: #fff;
  font: inherit;
  color: inherit;
  resize: vertical;
  min-height: 48px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-comments__field input:focus,
.blog-comments__field textarea:focus {
  outline: none;
  border-color: var(--primary, #1a7a8c);
  box-shadow: 0 0 0 3px rgba(26, 122, 140, 0.12);
}

.blog-comments__form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-comments__hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted, #5a6578);
}

.blog-comments__hint.is-success {
  color: #0d7a55;
}

.blog-comments__hint.is-error {
  color: #c62828;
}

.blog-comments__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.blog-comments__empty {
  padding: 28px 20px;
  border-radius: 16px;
  text-align: center;
  color: var(--text-muted, #5a6578);
  background: rgba(26, 122, 140, 0.04);
  border: 1px dashed rgba(26, 122, 140, 0.18);
}

.blog-comment {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.blog-comment__avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary, #1a7a8c), #2a9db2);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}

.blog-comment__main {
  flex: 1;
  min-width: 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(26, 122, 140, 0.1);
  box-shadow: 0 8px 24px rgba(14, 74, 86, 0.05);
}

.blog-comment__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.blog-comment__author {
  font-size: 0.92rem;
}

.blog-comment__badge {
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(26, 122, 140, 0.1);
  color: var(--primary, #1a7a8c);
  font-size: 0.68rem;
  font-weight: 800;
}

.blog-comment__head time {
  margin-right: auto;
  font-size: 0.74rem;
  color: var(--text-muted, #5a6578);
}

.blog-comment__body {
  margin: 0 0 10px;
  line-height: 1.85;
  font-size: 0.92rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.blog-comment__reply-btn {
  border: none;
  background: transparent;
  padding: 0;
  color: var(--primary, #1a7a8c);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.blog-comment__reply-btn:hover {
  text-decoration: underline;
}

.blog-comment__replies {
  list-style: none;
  margin: 14px 0 0;
  padding: 0 14px 0 0;
  border-right: 2px solid rgba(26, 122, 140, 0.14);
  display: grid;
  gap: 12px;
}

.blog-comment--reply .blog-comment__main {
  padding: 12px 14px;
  background: rgba(26, 122, 140, 0.03);
}

.blog-comment--reply .blog-comment__avatar {
  width: 34px;
  height: 34px;
  font-size: 0.82rem;
}

html[data-theme="dark"] .blog-comments__form,
html[data-theme="dark"] .blog-comment__main {
  background: var(--bg-elevated, #1a2332);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .blog-comments__field input,
html[data-theme="dark"] .blog-comments__field textarea {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

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

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

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

  .blog-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-hero__title,
  .blog-single-hero__title {
    max-width: none;
  }

  .blog-single__body {
    overflow-wrap: anywhere;
  }

  .blog-single__body img,
  .blog-single__body iframe,
  .blog-single__body video {
    max-width: 100%;
    height: auto;
  }

  .blog-single__body table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
