@font-face {
  font-family: "Iranian Sans";
  src: url("../fonts/iranian-sans.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --jam-bg: #fcfcfc;
  --jam-surface: #ffffff;
  --jam-text: #212121;
  --jam-muted: #666666;
  --jam-line: #e6e6e6;
  --jam-teal: #309c8d;
  --jam-teal-strong: #167f71;
  --jam-teal-dark: #184d45;
  --jam-mint: #add4ae;
  --jam-mint-soft: #e7f3e7;
  --jam-orange: #e77e21;
  --jam-pink: #d82d7e;
  --jam-radius-sm: 10px;
  --jam-radius: 16px;
  --jam-radius-lg: 20px;
  --jam-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  --jam-shadow-hover: 0 14px 38px rgba(24, 77, 69, 0.12);
  --jam-container: 1240px;
  --jam-font: "Iranian Sans", Tahoma, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  direction: rtl;
  background: var(--jam-bg);
  color: var(--jam-text);
  font-family: var(--jam-font);
  font-size: 16px;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a:hover {
  color: var(--jam-teal-strong);
}

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

button,
input[type="submit"] {
  cursor: pointer;
}

.container {
  width: min(calc(100% - 48px), var(--jam-container));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 12px;
  right: 12px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 16px;
  color: #fff;
  background: var(--jam-teal-dark);
  border-radius: 8px;
}

.section-pad {
  padding-block: 64px;
}

.section-pad-sm {
  padding-block: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--jam-orange);
  box-shadow: 0 8px 20px rgba(231, 126, 33, 0.2);
}

.button-primary:hover {
  color: #fff;
  background: #cf6c15;
}

.button-secondary {
  color: #fff;
  background: var(--jam-teal);
}

.button-secondary:hover {
  color: #fff;
  background: var(--jam-teal-strong);
}

.button-light {
  color: var(--jam-orange);
  background: #fff;
}

/* Header — adapted from the 1440px Figma frame. */
.site-header {
  position: relative;
  z-index: 50;
  background: #fff;
  box-shadow: var(--jam-shadow);
}

.header-main {
  display: grid;
  grid-template-columns: 245px minmax(280px, 645px) 245px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 136px;
}

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

.custom-logo {
  width: auto;
  max-width: 225px;
  max-height: 58px;
  object-fit: contain;
}

.text-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--jam-text);
}

.text-logo:hover {
  color: var(--jam-text);
}

.logo-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background: var(--jam-teal);
  border-radius: 14px 5px 14px 5px;
  font-size: 25px;
  font-weight: 900;
}

.text-logo strong,
.text-logo small {
  display: block;
}

.text-logo strong {
  font-size: 21px;
  line-height: 1.4;
}

.text-logo small {
  max-width: 175px;
  overflow: hidden;
  color: var(--jam-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-form label {
  width: 100%;
}

.search-field {
  width: 100%;
  height: 52px;
  padding: 0 22px 0 58px;
  color: var(--jam-text);
  background: #fff;
  border: 2px solid var(--jam-mint);
  border-radius: 72px;
  outline: 0;
}

.header-search .search-field {
  height: 60px;
  border-width: 3px;
  font-size: 17px;
}

.search-field::placeholder {
  color: #898b98;
}

.search-field:focus {
  border-color: var(--jam-teal);
  box-shadow: 0 0 0 4px rgba(48, 156, 141, 0.12);
}

.search-submit {
  position: absolute;
  left: 10px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  color: var(--jam-teal);
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 27px;
  line-height: 1;
}

.search-submit:hover {
  background: var(--jam-mint-soft);
}

.header-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
}

.header-links a {
  padding: 8px 10px;
  color: var(--jam-muted);
}

.header-links .header-contact {
  color: var(--jam-teal-strong);
  border: 1px solid var(--jam-mint);
  border-radius: 10px;
}

.nav-shell {
  min-height: 52px;
  border-top: 1px solid #f2f2f2;
}

.nav-inner {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--jam-line);
}

.menu-toggle {
  display: inline-grid;
  grid-template-columns: 22px auto;
  grid-template-rows: repeat(3, 2px);
  align-items: center;
  gap: 5px 10px;
  min-width: 190px;
  padding: 8px 0 8px 18px;
  color: var(--jam-text);
  background: transparent;
  border: 0;
  font-weight: 800;
}

.menu-toggle > span:not(.menu-toggle-label) {
  grid-column: 1;
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 3px;
}

.menu-toggle-label {
  grid-column: 2;
  grid-row: 1 / 4;
}

.primary-navigation {
  flex: 1;
}

.primary-navigation ul {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-navigation li {
  position: relative;
}

.primary-navigation a {
  display: block;
  padding: 12px 14px;
  color: var(--jam-muted);
  font-size: 15px;
  font-weight: 650;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a {
  color: var(--jam-teal-strong);
}

.primary-navigation .sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  display: none;
  min-width: 220px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--jam-line);
  border-radius: 12px;
  box-shadow: var(--jam-shadow-hover);
}

.primary-navigation li:hover > .sub-menu,
.primary-navigation li:focus-within > .sub-menu {
  display: block;
}

/* Home hero. */
.home-hero {
  padding-top: 58px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(280px, 0.85fr);
  gap: 20px;
}

.hero-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 1.05fr);
  min-height: 410px;
  overflow: hidden;
  background: #fff;
  border: 2px solid #b3b3b3;
  border-radius: var(--jam-radius-lg);
  box-shadow: var(--jam-shadow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 44px 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  color: var(--jam-teal-strong);
  background: var(--jam-mint-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 18px 0 12px;
  font-size: clamp(28px, 2.7vw, 42px);
  line-height: 1.55;
}

.hero-copy h1 a:hover {
  color: var(--jam-teal-strong);
}

.hero-copy > p {
  margin: 0 0 14px;
  color: var(--jam-muted);
  font-size: 16px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 20px;
  color: #898b98;
  font-size: 13px;
}

.hero-media {
  position: relative;
  display: block;
  min-height: 410px;
  overflow: hidden;
  background: var(--jam-mint-soft);
}

.hero-media::after {
  position: absolute;
  inset: auto -15% -32% auto;
  width: 90%;
  aspect-ratio: 1;
  content: "";
  background: rgba(48, 156, 141, 0.16);
  border-radius: 31% 69% 58% 42% / 39% 40% 60% 61%;
}

.hero-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 220px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--jam-mint), var(--jam-teal));
}

.image-placeholder b {
  font-size: 72px;
  opacity: 0.75;
}

.image-placeholder--hero {
  min-height: 410px;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-side-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 4px;
}

.hero-side-heading strong {
  font-size: 18px;
}

.hero-side-heading span {
  color: var(--jam-muted);
  font-size: 12px;
}

.hero-mini {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  min-height: 106px;
  padding: 10px;
  background: #fff;
  border: 1px solid #b3b3b3;
  border-radius: var(--jam-radius);
  box-shadow: var(--jam-shadow);
}

.hero-mini-media,
.hero-mini-media img,
.mini-placeholder {
  width: 108px;
  height: 84px;
  border-radius: 10px;
}

.hero-mini-media {
  overflow: hidden;
  background: var(--jam-mint-soft);
}

.hero-mini-media img {
  object-fit: cover;
}

.mini-placeholder {
  display: block;
  background: linear-gradient(135deg, var(--jam-mint-soft), var(--jam-mint));
}

.hero-mini h2 {
  display: -webkit-box;
  margin: 2px 0 8px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero-mini time {
  color: #898b98;
  font-size: 11px;
}

/* Reusable headings, topics and cards. */
.section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.section-heading--center {
  justify-content: center;
}

.section-heading h2 {
  margin: 0;
  font-size: 22px;
}

.section-heading > span {
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--jam-mint));
}

.section-heading > span:last-child {
  transform: rotate(180deg);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 14px;
}

.topic-card {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  text-align: center;
  background: linear-gradient(180deg, #fff, var(--jam-mint-soft));
  border: 2px solid var(--jam-mint);
  border-radius: var(--jam-radius);
  box-shadow: 0 5px 0 rgba(173, 212, 174, 0.24);
}

.topic-card:hover {
  color: var(--jam-text);
  border-color: var(--jam-teal);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(48, 156, 141, 0.12);
}

.topic-card b {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 7px;
  place-items: center;
  color: #fff;
  background: var(--jam-teal);
  border-radius: 12px 4px 12px 4px;
  font-size: 19px;
}

.topic-card strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.topic-card small {
  margin-top: 3px;
  color: var(--jam-muted);
  font-size: 10px;
}

.posts-grid {
  display: grid;
  gap: 22px;
}

.posts-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.posts-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.post-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--jam-line);
  border-radius: var(--jam-radius);
  box-shadow: var(--jam-shadow);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--jam-shadow-hover);
}

.post-card-media {
  display: block;
  height: 210px;
  overflow: hidden;
  background: var(--jam-mint-soft);
}

.posts-grid--four .post-card-media {
  height: 175px;
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-media img {
  transform: scale(1.04);
}

.post-card-body {
  padding: 18px;
}

.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #898b98;
  font-size: 11px;
}

.category-pill {
  display: inline-flex;
  padding: 3px 9px;
  color: var(--jam-teal-strong);
  background: var(--jam-mint-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}

.post-card h3 {
  display: -webkit-box;
  min-height: 58px;
  margin: 13px 0 8px;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-card-body > p {
  display: -webkit-box;
  min-height: 55px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--jam-muted);
  font-size: 13px;
  line-height: 1.85;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.text-link {
  color: var(--jam-teal-strong);
  font-size: 13px;
  font-weight: 800;
}

.section-action {
  margin-top: 30px;
  text-align: center;
}

/* Colored feature bands. */
.feature-band {
  margin-block: 34px;
}

.feature-band > .container {
  padding: 34px;
  border-radius: 22px;
}

.feature-band--pink > .container {
  background: linear-gradient(135deg, #d82d7e, #ec5ba0);
}

.feature-band--green > .container {
  background: linear-gradient(135deg, var(--jam-teal-strong), var(--jam-teal));
}

.band-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  color: #fff;
}

.band-heading span {
  font-size: 12px;
  opacity: 0.85;
}

.band-heading h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.band-heading > a {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.feature-band .post-card {
  border-color: rgba(255, 255, 255, 0.38);
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 38px 54px;
  background: linear-gradient(110deg, #ffbc80, #fac596);
  border-radius: var(--jam-radius-lg);
}

.newsletter-inner span {
  color: var(--jam-pink);
  font-size: 13px;
  font-weight: 800;
}

.newsletter-inner h2 {
  margin: 6px 0 0;
  color: var(--jam-pink);
  font-size: 24px;
}

/* Breadcrumb and shared content layout. */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-block: 24px;
  overflow: hidden;
  color: var(--jam-muted);
  font-size: 12px;
  white-space: nowrap;
}

.breadcrumb > span:last-child {
  overflow: hidden;
  color: var(--jam-text);
  text-overflow: ellipsis;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  gap: 28px;
  padding-bottom: 70px;
}

.single-article {
  min-width: 0;
  padding: 40px;
  background: #fff;
  border: 1px solid var(--jam-line);
  border-radius: var(--jam-radius-lg);
  box-shadow: var(--jam-shadow);
}

.article-header h1 {
  margin: 14px 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.55;
}

.article-lead {
  margin: 0 0 18px;
  color: var(--jam-muted);
  font-size: 17px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  color: var(--jam-muted);
  font-size: 13px;
}

.article-meta > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--jam-text);
  font-weight: 700;
}

.article-meta img {
  border-radius: 50%;
}

.article-cover {
  margin: 30px 0;
  overflow: hidden;
  border-radius: var(--jam-radius);
}

.article-cover img {
  width: 100%;
}

.article-toc {
  margin: 28px 0;
  padding: 18px 22px;
  background: var(--jam-mint-soft);
  border-right: 4px solid var(--jam-teal);
  border-radius: 12px;
}

.article-toc button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  color: var(--jam-text);
  background: transparent;
  border: 0;
}

.article-toc button span {
  color: var(--jam-teal-strong);
  transition: transform 0.2s ease;
}

.article-toc.is-collapsed button span {
  transform: rotate(180deg);
}

.article-toc ol {
  padding-right: 22px;
  margin: 14px 0 0;
}

.article-toc.is-collapsed ol {
  display: none;
}

.article-toc li {
  margin: 5px 0;
}

.article-toc li.toc-h3 {
  margin-right: 20px;
  color: var(--jam-muted);
  font-size: 13px;
}

.entry-content {
  color: #303030;
  font-size: 17px;
  line-height: 2.05;
}

.entry-content > * {
  max-width: 100%;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  scroll-margin-top: 24px;
  color: var(--jam-text);
  line-height: 1.65;
}

.entry-content h2 {
  margin: 44px 0 18px;
  font-size: 27px;
}

.entry-content h3 {
  margin: 34px 0 14px;
  font-size: 22px;
}

.entry-content a {
  color: var(--jam-teal-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.entry-content blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  color: var(--jam-teal-dark);
  background: var(--jam-mint-soft);
  border-right: 4px solid var(--jam-teal);
  border-radius: 12px;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: 12px;
  border: 1px solid var(--jam-line);
}

.entry-content th {
  background: var(--jam-mint-soft);
}

.entry-content pre {
  direction: ltr;
  overflow-x: auto;
  padding: 18px;
  color: #f6f6f6;
  background: #202725;
  border-radius: 12px;
  text-align: left;
}

.article-footer {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--jam-line);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

.article-tags a {
  padding: 4px 10px;
  color: var(--jam-muted);
  background: #f4f4f4;
  border-radius: 999px;
}

.article-author {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  padding: 22px;
  background: var(--jam-mint-soft);
  border-radius: 14px;
}

.article-author img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
}

.article-author small,
.article-author p {
  color: var(--jam-muted);
}

.article-author h2,
.article-author p {
  margin: 0;
}

.article-author h2 {
  font-size: 17px;
}

.article-author p {
  margin-top: 4px;
  font-size: 13px;
}

.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.post-navigation > div {
  min-width: 0;
  padding: 14px;
  background: #fafafa;
  border: 1px solid var(--jam-line);
  border-radius: 12px;
}

.post-navigation small,
.post-navigation a {
  display: block;
}

.post-navigation small {
  color: var(--jam-muted);
  font-size: 10px;
}

.post-navigation a {
  margin-top: 3px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Sidebar. */
.blog-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--jam-line);
  border-radius: var(--jam-radius);
  box-shadow: var(--jam-shadow);
}

.sidebar-title {
  position: relative;
  margin: 0 0 16px;
  padding-right: 14px;
  font-size: 17px;
}

.sidebar-title::before {
  position: absolute;
  top: 6px;
  right: 0;
  width: 4px;
  height: 20px;
  content: "";
  background: var(--jam-teal);
  border-radius: 5px;
}

.sidebar-list,
.sidebar-posts,
.sidebar-card ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-list li,
.sidebar-card.widget li {
  padding: 9px 0;
  color: var(--jam-muted);
  border-bottom: 1px dashed var(--jam-line);
  font-size: 13px;
}

.sidebar-list li:last-child,
.sidebar-card.widget li:last-child {
  border-bottom: 0;
}

.sidebar-posts li + li {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px dashed var(--jam-line);
}

.sidebar-posts a,
.sidebar-posts span,
.sidebar-posts small {
  display: block;
}

.sidebar-posts span {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
}

.sidebar-posts small {
  margin-top: 3px;
  color: #898b98;
  font-size: 10px;
}

/* Archive. */
.archive-hero {
  margin-bottom: 42px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--jam-mint-soft), #fff);
  border-bottom: 1px solid var(--jam-mint);
}

.archive-hero > .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 250px;
  padding-block: 42px;
}

.archive-hero h1 {
  margin: 12px 0 6px;
  font-size: clamp(30px, 4vw, 48px);
}

.archive-hero h1 .page-title-prefix {
  display: none;
}

.archive-description {
  max-width: 680px;
  color: var(--jam-muted);
}

.archive-description p {
  margin: 0;
}

.archive-shape {
  position: relative;
  width: 190px;
  height: 140px;
}

.archive-shape span {
  position: absolute;
  display: block;
  background: var(--jam-teal);
  border-radius: 18px 5px 18px 5px;
  transform: rotate(12deg);
}

.archive-shape span:nth-child(1) {
  top: 15px;
  right: 42px;
  width: 105px;
  height: 105px;
  opacity: 0.9;
}

.archive-shape span:nth-child(2) {
  top: 2px;
  right: 10px;
  width: 52px;
  height: 52px;
  background: var(--jam-orange);
}

.archive-shape span:nth-child(3) {
  right: 122px;
  bottom: 0;
  width: 48px;
  height: 48px;
  background: var(--jam-mint);
}

.archive-toolbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  color: var(--jam-muted);
  font-size: 12px;
}

.archive-toolbar strong {
  color: var(--jam-text);
  font-size: 14px;
}

.navigation.pagination {
  margin-top: 32px;
}

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

.page-numbers {
  display: grid;
  min-width: 40px;
  height: 40px;
  place-items: center;
  padding: 0 10px;
  background: #fff;
  border: 1px solid var(--jam-line);
  border-radius: 10px;
}

.page-numbers.current,
.page-numbers:hover {
  color: #fff;
  background: var(--jam-teal);
  border-color: var(--jam-teal);
}

.page-main {
  min-height: 60vh;
}

.page-container {
  max-width: 940px;
}

.empty-state {
  padding: 50px 28px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--jam-line);
  border-radius: var(--jam-radius-lg);
}

.empty-state .search-form {
  max-width: 520px;
  margin: 22px auto;
}

.empty-state--large {
  max-width: 720px;
  min-height: 440px;
  margin-inline: auto;
}

.empty-state--large > span {
  display: block;
  color: var(--jam-mint);
  font-size: 92px;
  font-weight: 900;
  line-height: 1.2;
}

/* Comments. */
.comments-area {
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid var(--jam-line);
}

.comments-title,
.comment-reply-title {
  font-size: 20px;
}

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

.comment-list .comment-body {
  margin: 18px 0;
  padding: 18px;
  background: #fafafa;
  border-radius: 12px;
}

.comment-form label {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 700;
}

.comment-form input:not([type="checkbox"]),
.comment-form textarea {
  width: 100%;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid #d5d5d5;
  border-radius: 10px;
  outline: 0;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--jam-teal);
}

.comment-form .submit {
  min-height: 44px;
  padding: 8px 20px;
  color: #fff;
  background: var(--jam-teal);
  border: 0;
  border-radius: 10px;
  font-weight: 700;
}

/* Footer. */
.site-footer {
  padding-top: 48px;
  color: rgba(255, 255, 255, 0.92);
  background: var(--jam-teal-dark);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 64px;
  min-height: 180px;
  padding: 10px 0 34px;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 18px;
  line-height: 1.8;
}

.footer-brand {
  text-align: right;
}

.footer-logo,
.footer-logo .custom-logo-link {
  display: inline-flex;
}

.footer-logo {
  min-height: 48px;
  margin-bottom: 12px;
}

.footer-logo .custom-logo {
  max-width: 155px;
  max-height: 48px;
  padding: 0;
  background: transparent;
  object-fit: contain;
}

.footer-logo strong {
  color: #fff;
  font-size: 24px;
}

.footer-brand h2 {
  margin-bottom: 8px;
}

.footer-brand p {
  margin: 0 0 5px;
  font-size: 16px;
}

.footer-phone {
  display: inline-block;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.footer-social {
  text-align: center;
}

.footer-social h2 {
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 500;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  direction: ltr;
}

.social-link {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  border-radius: 11px;
  font-family: Arial, sans-serif;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
}

.social-link:hover {
  color: #fff;
  transform: translateY(-3px);
}

.social-telegram {
  background: #2ca5e0;
  border-radius: 50%;
  transform: rotate(-35deg);
}

.social-telegram:hover {
  transform: translateY(-3px) rotate(-35deg);
}

.social-instagram {
  background: linear-gradient(135deg, #8c3aaa, #d82d7e 48%, #fa8f21);
  font-size: 29px;
  font-weight: 400;
}

.social-linkedin {
  background: #0b86ca;
  font-size: 17px;
}

.footer-trust {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  direction: ltr;
}

.trust-badge {
  display: flex;
  width: 105px;
  height: 112px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--jam-teal-dark);
  text-align: center;
  background: #fff;
  border: 3px solid var(--jam-teal);
  border-radius: 12px;
}

.trust-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.trust-badge span {
  color: #225c9c;
  font-family: Georgia, serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
}

.trust-badge small {
  margin-top: 6px;
  font-family: var(--jam-font);
  font-size: 10px;
  font-weight: 700;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.62);
}

.footer-quick-links {
  width: 32%;
  min-height: 220px;
  padding: 28px 0 24px;
}

.footer-quick-links h2,
.footer-categories h2 {
  font-size: 17px;
  font-weight: 800;
}

.site-footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-quick-links li + li,
.footer-category-column li + li {
  margin-top: 8px;
}

.footer-quick-links a,
.footer-category-column a {
  font-size: 16px;
}

.site-footer a:hover {
  color: #fff;
}

.footer-categories {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  min-height: 235px;
  padding: 24px 0 26px;
}

.footer-category-column--second {
  padding-top: 42px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 16px;
  font-weight: 700;
}

.footer-bottom p {
  margin: 0;
}

/* WordPress content helpers. */
.alignwide {
  width: min(1120px, calc(100vw - 48px));
  max-width: none;
  margin-right: 50%;
  transform: translateX(50%);
}

.alignfull {
  width: 100vw;
  max-width: none;
  margin-right: 50%;
  transform: translateX(50%);
}

.wp-caption,
.gallery-caption {
  color: var(--jam-muted);
  font-size: 12px;
}

.sticky,
.bypostauthor {
  outline: 0;
}

@media (max-width: 1100px) {
  .header-main {
    grid-template-columns: 220px minmax(250px, 1fr) auto;
    gap: 20px;
  }

  .header-links a:first-child {
    display: none;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-side {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-side-heading {
    grid-column: 1 / -1;
  }

  .hero-mini {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .hero-mini-media,
  .hero-mini-media img,
  .mini-placeholder {
    width: 86px;
  }

  .topic-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .posts-grid--four {
    grid-template-columns: repeat(2, 1fr);
  }

  .posts-grid--four .post-card-media {
    height: 210px;
  }
}

@media (max-width: 900px) {
  .header-main {
    grid-template-columns: 1fr auto;
    min-height: 98px;
  }

  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-bottom: 18px;
  }

  .header-links {
    grid-column: 2;
    grid-row: 1;
  }

  .nav-inner {
    display: block;
  }

  .menu-toggle {
    display: grid;
    min-height: 52px;
  }

  .primary-navigation {
    display: none;
    padding-bottom: 14px;
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-navigation ul {
    display: block;
  }

  .primary-navigation .sub-menu {
    position: static;
    display: block;
    margin-right: 18px;
    border: 0;
    box-shadow: none;
  }

  .hero-feature {
    grid-template-columns: 1fr 0.9fr;
  }

  .posts-grid--three {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  .footer-trust {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .footer-quick-links {
    width: 50%;
  }

  .footer-categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(calc(100% - 28px), var(--jam-container));
  }

  .section-pad {
    padding-block: 42px;
  }

  .header-main {
    gap: 12px;
  }

  .custom-logo {
    max-width: 165px;
    max-height: 48px;
  }

  .text-logo small,
  .header-links a:first-child {
    display: none;
  }

  .header-links .header-contact {
    padding: 7px 9px;
    font-size: 12px;
  }

  .header-search .search-field {
    height: 50px;
    border-width: 2px;
  }

  .hero-feature {
    display: flex;
    min-height: 0;
    flex-direction: column-reverse;
  }

  .hero-media,
  .image-placeholder--hero {
    min-height: 260px;
    height: 260px;
  }

  .hero-copy {
    padding: 28px 22px;
  }

  .hero-copy h1 {
    font-size: 27px;
  }

  .hero-side {
    display: flex;
  }

  .hero-mini {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .hero-mini-media,
  .hero-mini-media img,
  .mini-placeholder {
    width: 96px;
  }

  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .posts-grid--four,
  .posts-grid--three,
  .posts-grid--two {
    grid-template-columns: 1fr;
  }

  .post-card-media,
  .posts-grid--four .post-card-media {
    height: 220px;
  }

  .feature-band > .container {
    width: 100%;
    padding: 30px 14px;
    border-radius: 0;
  }

  .band-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .newsletter-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 30px 24px;
  }

  .newsletter-inner h2 {
    font-size: 20px;
  }

  .single-article {
    padding: 24px 18px;
  }

  .article-header h1 {
    font-size: 29px;
  }

  .entry-content {
    font-size: 16px;
  }

  .post-navigation,
  .blog-sidebar {
    grid-template-columns: 1fr;
  }

  .archive-hero > .container {
    min-height: 210px;
  }

  .archive-shape {
    display: none;
  }

  .archive-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 30px;
  }

  .footer-brand,
  .footer-social {
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-trust {
    grid-column: auto;
  }

  .footer-quick-links {
    width: 100%;
    min-height: auto;
    padding-block: 26px;
    text-align: center;
  }

  .footer-categories {
    grid-template-columns: 1fr 1fr;
    min-height: auto;
    gap: 22px;
    padding-block: 26px;
    text-align: center;
  }

  .footer-category-column--second {
    padding-top: 42px;
  }

  .footer-bottom {
    justify-content: center;
    padding-block: 18px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
