.yatbt-blog-page {
  background: #fff;
  color: #1f2f27;
}

.yatbt-blog-section {
  padding: clamp(44px, 5vw, 78px) 0 clamp(72px, 7vw, 112px);
}

.yatbt-blog-heading {
  margin: 0 0 clamp(28px, 3vw, 46px);
}

.yatbt-blog-heading h1 {
  margin: 0;
  color: #163f2a;
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1.1;
}

.yatbt-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(36px, 4vw, 62px);
  align-items: start;
}

.yatbt-blog-main {
  min-width: 0;
}

.yatbt-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(34px, 3.5vw, 54px) 30px;
}

.yatbt-blog-card {
  min-width: 0;
}

.yatbt-blog-card__image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 450 / 310;
  background: #f3f5f1;
}

.yatbt-blog-card__image::after {
  position: absolute;
  inset: 0;
  background: rgba(17, 66, 42, 0.08);
  content: "";
  opacity: 0;
  transition: opacity 240ms ease;
}

.yatbt-blog-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.yatbt-blog-card__image:hover::after,
.yatbt-blog-card__image:focus-visible::after {
  opacity: 1;
}

.yatbt-blog-card__image:hover .yatbt-blog-card__photo,
.yatbt-blog-card__image:focus-visible .yatbt-blog-card__photo {
  transform: scale(1.045);
}

.yatbt-blog-card__content {
  padding-top: 20px;
}

.yatbt-blog-card time,
.yatbt-blog-article__header time,
.yatbt-blog-recent time {
  display: block;
  color: #8d968f;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.yatbt-blog-card h2 {
  margin: 10px 0 0;
  font-size: clamp(21px, 1.75vw, 27px);
  line-height: 1.32;
}

.yatbt-blog-card h2 a,
.yatbt-blog-recent h3 a {
  color: #183c29;
  text-decoration: none;
  transition: color 180ms ease;
}

.yatbt-blog-card h2 a:hover,
.yatbt-blog-card h2 a:focus-visible,
.yatbt-blog-recent h3 a:hover,
.yatbt-blog-recent h3 a:focus-visible {
  color: #e31e25;
}

.yatbt-blog-sidebar {
  min-width: 0;
}

.yatbt-blog-widget {
  border-bottom: 1px solid #e7ebe7;
  padding: 0 0 34px;
  margin: 0 0 34px;
}

.yatbt-blog-widget:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.yatbt-blog-widget h2 {
  margin: 0 0 23px;
  color: #183c29;
  font-size: 21px;
  line-height: 1.25;
}

.yatbt-blog-widget--search {
  padding: 0;
  border: 0;
}

.yatbt-blog-search {
  position: relative;
  display: flex;
  min-height: 54px;
  border: 1px solid #e2e6e2;
  background: #fff;
}

.yatbt-blog-search input[type="search"] {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #34453b;
  font: inherit;
  font-size: 15px;
  padding: 0 58px 0 18px;
}

.yatbt-blog-search input[type="search"]::placeholder {
  color: #8f9892;
}

.yatbt-blog-search button {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #183c29;
  cursor: pointer;
}

.yatbt-blog-search button:hover,
.yatbt-blog-search button:focus-visible {
  color: #e31e25;
}

.yatbt-blog-search svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.yatbt-blog-categories,
.yatbt-blog-recent {
  margin: 0;
  padding: 0;
  list-style: none;
}

.yatbt-blog-categories li + li {
  border-top: 1px solid #edf0ed;
}

.yatbt-blog-categories a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  color: #59665e;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.yatbt-blog-categories a:hover,
.yatbt-blog-categories a:focus-visible {
  color: #e31e25;
}

.yatbt-blog-categories small {
  color: #9ca59f;
  font-size: 13px;
}

.yatbt-blog-recent {
  display: grid;
  gap: 18px;
}

.yatbt-blog-recent li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
}

.yatbt-blog-recent__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  background: #f2f4f1;
}

.yatbt-blog-recent__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yatbt-blog-recent h3 {
  margin: 0 0 7px;
  font-size: 15px;
  line-height: 1.4;
}

.yatbt-blog-recent time {
  font-size: 11px;
}

.yatbt-blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.yatbt-blog-tags a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid #e2e6e2;
  padding: 6px 13px;
  color: #667169;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.yatbt-blog-tags a:hover,
.yatbt-blog-tags a:focus-visible {
  border-color: #e31e25;
  background: #e31e25;
  color: #fff;
}

.yatbt-blog-pagination {
  margin-top: 54px;
}

.yatbt-blog-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yatbt-blog-pagination a,
.yatbt-blog-pagination span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #e1e6e2;
  color: #183c29;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.yatbt-blog-pagination .current,
.yatbt-blog-pagination a:hover,
.yatbt-blog-pagination a:focus-visible {
  border-color: #e31e25;
  background: #e31e25;
  color: #fff;
}

.yatbt-blog-empty {
  border: 1px solid #e6ebe6;
  padding: 38px;
}

.yatbt-blog-empty h2,
.yatbt-blog-empty p {
  margin-top: 0;
}

.yatbt-blog-article {
  min-width: 0;
}

.yatbt-blog-article__image {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f2f4f1;
}

.yatbt-blog-article__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yatbt-blog-article__header {
  padding: clamp(26px, 3vw, 42px) 0 22px;
  border-bottom: 1px solid #e7ebe7;
}

.yatbt-blog-article__header h1 {
  margin: 10px 0 0;
  color: #163f2a;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
}

.yatbt-blog-article__content {
  padding-top: 30px;
  color: #5d6961;
  font-size: 18px;
  line-height: 1.85;
}

.yatbt-blog-article__content > :first-child {
  margin-top: 0;
}

.yatbt-blog-article__content h2,
.yatbt-blog-article__content h3 {
  margin: 1.6em 0 0.6em;
  color: #183c29;
  line-height: 1.25;
}

.yatbt-blog-article__content blockquote {
  margin: 32px 0;
  border-left: 4px solid #8ecb68;
  background: #f4f8f1;
  padding: 22px 26px;
  color: #254b35;
  font-size: 20px;
  font-weight: 600;
}

@media (max-width: 980px) {
  .yatbt-blog-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 32px;
  }

  .yatbt-blog-grid {
    gap: 34px 22px;
  }
}

@media (max-width: 760px) {
  .yatbt-blog-section {
    padding: 34px 0 72px;
  }

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

  .yatbt-blog-sidebar {
    border-top: 1px solid #e7ebe7;
    padding-top: 38px;
  }
}

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

  .yatbt-blog-card h2 {
    font-size: 23px;
  }

  .yatbt-blog-article__content {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yatbt-blog-card__image::after,
  .yatbt-blog-card__photo {
    transition: none;
  }
}
