@font-face {
  font-family: "IRANYekanX";
  src: url("../fonts/IRANYekanX-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekanX";
  src: url("../fonts/IRANYekanX-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekanX";
  src: url("../fonts/IRANYekanX-DemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekanX";
  src: url("../fonts/IRANYekanX-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --donseh-black: #171717;
  --donseh-neutral-50: #fafafa;
  --donseh-neutral-100: #f5f5f5;
  --donseh-neutral-200: #e5e5e5;
  --donseh-neutral-300: #d4d4d4;
  --donseh-neutral-500: #737373;
  --donseh-neutral-700: #404040;
  --donseh-neutral-900: #171717;
  --donseh-gray-100: #f6f7f6;
  --donseh-secondary-500: #c0a97d;
  --donseh-secondary-600: #9c8a65;
  --donseh-container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--donseh-gray-100);
  color: var(--donseh-neutral-900);
  font-family: "IRANYekanX", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--donseh-container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.site-header::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--donseh-neutral-300), transparent);
}

.header-inner {
  width: min(100% - 32px, var(--donseh-container));
  min-height: 64px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 44px;
}

.header-brand {
  display: flex;
  align-items: center;
}

.site-logo,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.site-logo img,
.custom-logo {
  width: 52px;
  height: auto;
}

.primary-nav {
  justify-self: start;
}

.primary-nav ul,
.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.primary-menu-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--donseh-neutral-700);
  font-size: 14px;
  font-weight: 500;
  transition: color 160ms ease;
}

.primary-menu-list a:hover,
.primary-menu-list .current-menu-item > a,
.primary-menu-list .current-menu-ancestor > a {
  color: var(--donseh-black);
}

.primary-menu-list .menu-item-has-children {
  position: relative;
}

.primary-menu-list .menu-item-has-children > a::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-inline-start: 8px;
  border-inline-end: 1.5px solid currentColor;
  border-block-end: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.primary-menu-list .sub-menu {
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  width: 240px;
  padding: 10px;
  border: 1px solid var(--donseh-neutral-200);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(23, 23, 23, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.primary-menu-list .menu-item-has-children:hover > .sub-menu,
.primary-menu-list .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-menu-list .sub-menu a {
  width: 100%;
  min-height: 38px;
  padding: 6px 10px;
  border-radius: 6px;
}

.primary-menu-list .sub-menu a:hover {
  background: var(--donseh-neutral-100);
}

.header-login {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--donseh-black);
  border-radius: 6px;
  background: var(--donseh-black);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.icon-sign-in::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  border: 1.6px solid currentColor;
  border-radius: 50%;
  box-shadow: inset -5px 0 0 transparent;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--donseh-black);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-main {
  min-height: 55vh;
}

.blog-archive-hero {
  background: var(--donseh-gray-100);
  padding: 52px 0 30px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.section-heading p {
  margin: 0;
  color: var(--donseh-secondary-500);
  font-size: 24px;
  font-weight: 600;
}

.section-heading h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.5;
  font-weight: 700;
}

.blog-list-section {
  padding: 16px 0 70px;
  background: var(--donseh-gray-100);
}

.post-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.post-card {
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
}

.post-card-image {
  position: relative;
  display: block;
  aspect-ratio: 1 / 0.99;
  overflow: hidden;
  background: var(--donseh-neutral-200);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.post-card:hover .post-card-image img {
  transform: scale(1.035);
}

.date-badge {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  width: 64px;
  min-height: 74px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: rgba(23, 23, 23, 0.34);
  color: #fff;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.date-badge span {
  font-size: 28px;
  line-height: 1;
}

.date-badge small {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.2;
}

.post-card-body {
  min-height: 168px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-card-body h2 {
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 700;
}

.post-card-author {
  color: var(--donseh-neutral-700);
  font-size: 14px;
  font-weight: 500;
}

.post-card-body p {
  height: 68px;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  color: var(--donseh-neutral-700);
  font-size: 14px;
  line-height: 1.65;
  text-align: justify;
}

.pagination-wrap {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.page-numbers {
  min-width: 38px;
  min-height: 38px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--donseh-neutral-200);
  border-radius: 6px;
  background: #fff;
  color: var(--donseh-neutral-700);
  font-size: 14px;
}

.page-numbers.current {
  border-color: var(--donseh-black);
  background: var(--donseh-black);
  color: #fff;
}

.empty-state {
  max-width: 560px;
  margin: 30px auto;
  padding: 36px;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.empty-state h2,
.empty-state p {
  margin: 0;
}

.empty-state p {
  margin-top: 8px;
  color: var(--donseh-neutral-700);
}

.single-hero {
  position: relative;
  height: min(46vw, 500px);
  min-height: 320px;
  overflow: hidden;
  background: var(--donseh-neutral-200);
}

.single-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-hero-label {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(23, 23, 23, 0.32);
  color: #fff;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.single-container {
  padding-top: 42px;
  padding-bottom: 72px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--donseh-neutral-500);
  font-size: 13px;
}

.breadcrumbs a:hover {
  color: var(--donseh-black);
}

.post-heading {
  max-width: 920px;
  margin: 28px auto 24px;
  text-align: center;
}

.post-heading h1 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.55;
  font-weight: 700;
}

.post-meta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
  color: var(--donseh-neutral-500);
  font-size: 14px;
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.post-meta span::before,
.icon-pin::before,
.icon-mail::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 1.6px solid currentColor;
  border-radius: 50%;
}

.meta-date::before {
  border-radius: 3px;
}

.meta-reading::before {
  border-radius: 999px;
  box-shadow: inset 0 0 0 4px #fff;
}

.post-content {
  max-width: 920px;
  margin-inline: auto;
  color: var(--donseh-neutral-900);
  font-size: 17px;
  line-height: 2.15;
}

.post-content > *:first-child {
  margin-top: 0;
}

.post-content > *:last-child {
  margin-bottom: 0;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  margin: 52px 0 18px;
  line-height: 1.55;
  font-weight: 700;
}

.post-content h2 {
  font-size: clamp(24px, 2.5vw, 32px);
}

.post-content h3 {
  font-size: clamp(21px, 2vw, 26px);
}

.post-content p {
  margin: 0 0 22px;
  text-align: justify;
}

.post-content img {
  border-radius: 2px;
  margin: 36px auto;
}

.post-content figure {
  margin: 42px auto;
}

.post-content figcaption {
  margin-top: 10px;
  color: var(--donseh-neutral-500);
  font-size: 13px;
  text-align: center;
}

.post-content blockquote {
  margin: 34px 0;
  padding: 18px 24px;
  border-inline-start: 4px solid var(--donseh-secondary-500);
  background: #fff;
  color: var(--donseh-neutral-700);
}

.post-content ul,
.post-content ol {
  padding-inline-start: 24px;
}

.post-tags {
  max-width: 920px;
  margin: 38px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-tags a {
  padding: 5px 12px;
  border: 1px solid var(--donseh-neutral-200);
  border-radius: 999px;
  background: #fff;
  color: var(--donseh-neutral-700);
  font-size: 13px;
}

.site-footer {
  padding: 64px 16px 38px;
  background: var(--donseh-neutral-900);
  color: #fff;
}

.footer-grid {
  width: min(100%, var(--donseh-container));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 4fr 5fr 3fr;
  gap: 40px;
}

.footer-top {
  align-items: center;
}

.footer-bottom {
  align-items: end;
  margin-top: 48px;
}

.footer-logo {
  width: 208px;
  color: #fff;
}

.footer-menus {
  display: flex;
  align-items: center;
  gap: 90px;
}

.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.footer-menu a,
.footer-email {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.footer-menu a:hover,
.footer-email:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-social p,
.footer-contact p,
.footer-contact h2 {
  margin: 0;
}

.footer-social p {
  font-size: 14px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transition: background 160ms ease;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.icon-instagram::before,
.icon-linkedin::before {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.icon-instagram::before {
  content: "IG";
}

.icon-linkedin::before {
  content: "in";
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-contact h2 {
  font-size: 20px;
  font-weight: 600;
}

.footer-contact p,
.footer-email {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.icon-pin::before,
.icon-mail::before {
  color: #fff;
  border-radius: 3px;
}

.footer-email {
  align-items: center;
  justify-self: center;
}

.enamad-link {
  width: 96px;
  height: 96px;
  padding: 12px;
  display: block;
  justify-self: start;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.enamad-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .header-inner {
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
  }

  .menu-toggle {
    display: block;
  }

  .header-brand {
    justify-content: center;
  }

  .primary-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    max-height: calc(100vh - 64px);
    overflow: auto;
    padding: 18px 16px 24px;
    border-bottom: 1px solid var(--donseh-neutral-200);
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .primary-menu-list {
    width: min(100%, var(--donseh-container));
    margin-inline: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .primary-menu-list a {
    width: 100%;
    min-height: 44px;
    padding: 6px 0;
  }

  .primary-menu-list .sub-menu {
    position: static;
    width: 100%;
    margin: 0 0 8px;
    padding: 0 14px;
    border: 0;
    border-inline-start: 1px solid var(--donseh-neutral-200);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .post-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-logo-wrap {
    display: flex;
    justify-content: center;
  }

  .footer-logo {
    width: 119px;
  }

  .footer-menus {
    align-items: flex-start;
    gap: 56px;
  }

  .footer-email,
  .enamad-link {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .container,
  .header-inner {
    width: min(100% - 24px, var(--donseh-container));
  }

  .header-login {
    width: 40px;
    min-width: 40px;
    padding: 0;
    overflow: hidden;
    color: transparent;
  }

  .header-login .icon-sign-in {
    color: #fff;
  }

  .blog-archive-hero {
    padding-top: 34px;
  }

  .section-heading p {
    font-size: 20px;
  }

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

  .single-hero {
    min-height: 260px;
    height: 56vw;
  }

  .single-container {
    padding-top: 28px;
  }

  .post-heading {
    margin-top: 20px;
  }

  .post-content {
    font-size: 16px;
    line-height: 2;
  }

  .footer-menus {
    flex-direction: column;
    gap: 26px;
  }

  .site-footer {
    padding-top: 42px;
  }
}

.donseh-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-block;
  vertical-align: middle;
}

.header-login .donseh-icon,
.social-links .donseh-icon,
.footer-contact .donseh-icon,
.footer-email .donseh-icon {
  color: currentColor;
}

.post-meta span::before,
.meta-date::before,
.meta-reading::before,
.icon-pin::before,
.icon-mail::before {
  content: none;
  display: none;
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.post-meta .donseh-icon {
  color: var(--donseh-neutral-500);
}

.featured-posts-section {
  padding: 18px 0 34px;
  background: var(--donseh-gray-100);
}

.donseh-carousel {
  position: relative;
}

.donseh-carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.donseh-carousel-track::-webkit-scrollbar {
  display: none;
}

.donseh-carousel-slide {
  scroll-snap-align: start;
  flex: 0 0 100%;
}

.featured-slide {
  min-height: 370px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.featured-slide-image {
  min-height: 370px;
  background: var(--donseh-neutral-200);
}

.featured-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-slide-content {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.featured-slide-content > p:first-child {
  margin: 0;
  color: var(--donseh-secondary-500);
  font-weight: 700;
}

.featured-slide-content h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.55;
  font-weight: 700;
}

.compact-meta {
  justify-content: flex-start;
  margin-top: 0;
}

.featured-excerpt {
  margin: 0;
  color: var(--donseh-neutral-700);
  line-height: 1.95;
  text-align: justify;
}

.carousel-controls {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.carousel-button {
  width: 48px;
  height: 48px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--donseh-neutral-300);
  border-radius: 50%;
  background: #fff;
  color: var(--donseh-black);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.carousel-button:hover {
  border-color: var(--donseh-black);
  background: var(--donseh-neutral-100);
}

.related-posts-section {
  padding: 62px 0 70px;
  background: var(--donseh-neutral-100);
}

.related-heading {
  margin-bottom: 32px;
}

.related-heading h2 {
  margin: 0;
  font-size: clamp(24px, 2.7vw, 34px);
}

.related-slide {
  flex-basis: calc((100% - 72px) / 4);
}

.comments-section {
  padding: 64px 0 82px;
  background: var(--donseh-gray-100);
}

.comments-container {
  max-width: 920px;
}

.comments-area {
  padding: 32px;
  border-radius: 8px;
  background: #fff;
}

.comments-header {
  margin-bottom: 26px;
}

.comments-header h2,
.comment-reply-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.6;
  font-weight: 700;
}

.comments-header p {
  margin: 6px 0 0;
  color: var(--donseh-neutral-500);
  font-size: 14px;
}

.comment-list {
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}

.comment-list .comment {
  padding: 20px 0;
  border-bottom: 1px solid var(--donseh-neutral-200);
}

.comment-body {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
}

.comment-author .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.comment-author .fn,
.comment-author .says {
  font-style: normal;
  font-weight: 700;
}

.comment-metadata,
.reply {
  color: var(--donseh-neutral-500);
  font-size: 13px;
}

.comment-content,
.comment-body p {
  color: var(--donseh-neutral-700);
}

.donseh-comment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.donseh-comment-form p {
  margin: 0;
}

.comment-form-comment,
.comment-notes,
.comment-form-cookies-consent,
.form-submit,
.logged-in-as {
  grid-column: 1 / -1;
}

.donseh-comment-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--donseh-neutral-700);
  font-size: 14px;
  font-weight: 500;
}

.donseh-comment-form input:not([type="checkbox"]),
.donseh-comment-form textarea {
  width: 100%;
  border: 1px solid var(--donseh-neutral-300);
  border-radius: 6px;
  background: #fff;
  padding: 10px 12px;
  color: var(--donseh-black);
}

.donseh-comment-form textarea {
  resize: vertical;
}

.donseh-comment-form .submit {
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 6px;
  background: var(--donseh-black);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.comment-navigation {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.no-comments {
  color: var(--donseh-neutral-500);
}

@media (max-width: 1024px) {
  .featured-slide {
    grid-template-columns: 1fr;
  }

  .featured-slide-content {
    padding: 28px;
  }

  .related-slide {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media (max-width: 640px) {
  .featured-slide-image {
    min-height: 250px;
  }

  .featured-slide-content {
    padding: 22px;
  }

  .related-slide {
    flex-basis: 100%;
  }

  .comments-area {
    padding: 22px;
  }

  .donseh-comment-form {
    grid-template-columns: 1fr;
  }
}

.header-login .donseh-icon {
  color: #fff;
}

/* Single page alignment and redesigned comments */
.single-container,
.related-container,
.comments-container {
  max-width: 920px;
}

.single-container {
  width: min(100% - 32px, 920px);
}

.post-heading,
.post-content,
.post-tags {
  max-width: 100%;
}

.related-posts-section {
  padding: 64px 0 74px;
  background: var(--donseh-gray-100);
}

.related-container {
  width: min(100% - 32px, 920px);
}

.related-heading {
  margin-bottom: 34px;
}

.related-carousel-track {
  align-items: stretch;
}

.related-slide {
  flex-basis: calc((100% - 48px) / 3);
}

.comments-section {
  padding: 58px 0 82px;
  background: var(--donseh-gray-100);
}

.comments-container {
  width: min(100% - 32px, 920px);
}

.comments-area {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.comments-header {
  margin-bottom: 26px;
  text-align: center;
}

.comments-header h2 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 700;
}

.review-panel,
.review-empty,
.comment-form-card {
  border: 1px solid var(--donseh-neutral-200);
  border-radius: 3px;
  background: #fff;
}

.review-panel {
  padding: 0 28px;
}

.review-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.review-item {
  padding: 30px 0;
  border-bottom: 1px solid var(--donseh-neutral-200);
}

.review-item:last-child {
  border-bottom: 0;
}

.review-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.review-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  border: 1px solid var(--donseh-neutral-300);
  background: var(--donseh-neutral-100);
}

.review-author strong {
  display: block;
  color: var(--donseh-black);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

.review-author time {
  display: block;
  color: var(--donseh-neutral-500);
  font-size: 13px;
  line-height: 1.6;
}

.review-stars {
  color: var(--donseh-secondary-500);
  direction: ltr;
  font-size: 16px;
  letter-spacing: 2px;
  line-height: 1.8;
  white-space: nowrap;
}

.review-content {
  margin-top: 20px;
  color: var(--donseh-black);
  font-size: 15px;
  line-height: 2;
  text-align: right;
}

.review-content p {
  margin: 0 0 12px;
}

.review-content p:last-child {
  margin-bottom: 0;
}

.support-reply {
  margin-top: 18px;
  color: var(--donseh-black);
  font-size: 15px;
  line-height: 2;
}

.support-reply strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}

.support-reply p {
  margin: 0;
}

.review-actions {
  margin-top: 14px;
}

.review-actions a,
.comment-navigation a {
  color: var(--donseh-neutral-500);
  font-size: 13px;
  font-weight: 500;
}

.review-actions a:hover,
.comment-navigation a:hover {
  color: var(--donseh-black);
}

.review-empty {
  padding: 34px 28px;
  color: var(--donseh-black);
  font-size: 16px;
  line-height: 2;
  text-align: center;
}

.comment-form-card {
  margin-top: 38px;
  padding: 32px;
}

.comment-reply-title {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.6;
  text-align: right;
}

.comment-notes,
.logged-in-as {
  color: var(--donseh-neutral-500);
  font-size: 13px;
  line-height: 1.8;
}

.comment-list,
.comment-list .comment,
.comment-body,
.comment-author,
.comment-metadata,
.comment-content,
.reply {
  all: unset;
}

.donseh-comment-form {
  margin-top: 18px;
}

.donseh-comment-form input:not([type="checkbox"]),
.donseh-comment-form textarea {
  min-height: 44px;
  border-color: var(--donseh-neutral-200);
  border-radius: 3px;
}

.donseh-comment-form textarea {
  min-height: 150px;
}

.donseh-comment-form .submit {
  width: 100%;
  border-radius: 3px;
  background: #fff;
  color: var(--donseh-black);
  border: 1px solid var(--donseh-neutral-300);
}

.donseh-comment-form .submit:hover {
  border-color: var(--donseh-black);
}

.comment-navigation {
  margin-top: 18px;
  margin-bottom: 0;
}

.no-comments {
  margin: 20px 0 0;
  color: var(--donseh-neutral-500);
  text-align: center;
}

@media (max-width: 1024px) {
  .related-slide {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media (max-width: 640px) {
  .single-container,
  .related-container,
  .comments-container {
    width: min(100% - 24px, 920px);
  }

  .related-slide {
    flex-basis: 100%;
  }

  .review-panel,
  .comment-form-card {
    padding-inline: 20px;
  }

  .review-item-head {
    flex-direction: column;
  }
}

.comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--donseh-neutral-500);
  font-size: 13px;
}

.comment-form-cookies-consent label {
  margin: 0;
  font-weight: 400;
}

/* Header/footer parity with current Nuxt app */
.header-inner--no-menu {
  grid-template-columns: auto 1fr;
}

.header-inner--no-menu .header-login {
  justify-self: end;
}

.site-footer {
  padding: 48px 16px;
}

.footer-grid {
  gap: 40px;
}

.footer-bottom {
  margin-top: 48px;
  gap: 56px;
}

.footer-logo {
  width: 144px;
}

.footer-menus {
  gap: 96px;
}

.footer-menu {
  gap: 16px;
}

.footer-social {
  gap: 12px;
}

.enamad-link {
  width: 88px;
  height: 93px;
  padding: 0;
}

@media (max-width: 1024px) {
  .header-inner--no-menu {
    grid-template-columns: 1fr auto;
  }

  .header-inner--no-menu .header-brand {
    justify-content: start;
  }

  .footer-logo {
    width: 119px;
  }

  .footer-menus {
    gap: 56px;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding-top: 42px;
    padding-bottom: 42px;
  }
}
