.tobor-blog-section {
  --tobor-blog-bg: #f8fafc;
  --tobor-blog-text: #171717;
  --tobor-blog-inverse: #ffffff;
  --tobor-blog-muted: #525252;
  --tobor-blog-border: #e8e8e8;
  --tobor-blog-accent: #506ccd;
  box-sizing: border-box;
  width: 100%;
  padding: 64px 32px;
  background: var(--tobor-blog-bg);
  color: var(--tobor-blog-text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.tobor-blog-section *,
.tobor-blog-section *::before,
.tobor-blog-section *::after {
  box-sizing: border-box;
}

.tobor-blog-section__grid {
  display: grid;
  grid-template-columns: minmax(360px, 570px) minmax(240px, 313px) minmax(340px, 462px);
  gap: 16px;
  width: 100%;
  max-width: 1360px;
  min-height: 416px;
  margin: 0 auto;
}

.tobor-blog-section__card {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  color: var(--tobor-blog-inverse);
  text-decoration: none;
  background: #d4d4d4;
}

.tobor-blog-section__card:hover,
.tobor-blog-section__card:focus {
  color: var(--tobor-blog-inverse);
  text-decoration: none;
}

.tobor-blog-section__card--featured {
  min-height: 416px;
}

.tobor-blog-section__stack {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-height: 416px;
}

.tobor-blog-section__card--stack {
  min-height: 200px;
}

.tobor-blog-section__image,
.tobor-blog-section__overlay {
  position: absolute;
  inset: 0;
}

.tobor-blog-section__img,
.tobor-blog-section__thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tobor-blog-section__img.is-placeholder,
.tobor-blog-section__thumb-img.is-placeholder {
  background:
    linear-gradient(135deg, rgba(80, 108, 205, 0.26), rgba(153, 195, 0, 0.22)),
    linear-gradient(180deg, #f0f3f7, #d8dee8);
}

.tobor-blog-section__overlay {
  background: linear-gradient(0deg, #000000 22%, rgba(0, 0, 0, 0) 69%);
}

.tobor-blog-section__card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  min-height: 100%;
  padding: 24px;
}

.tobor-blog-section__card--stack .tobor-blog-section__card-content {
  padding: 16px;
}

.tobor-blog-section__label,
.tobor-blog-section__rail-label {
  width: 100%;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.tobor-blog-section__label {
  color: var(--tobor-blog-inverse);
}

.tobor-blog-section__card h2,
.tobor-blog-section__card h3 {
  width: 100%;
  margin: 0;
  color: var(--tobor-blog-inverse);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

.tobor-blog-section__card h2 {
  max-width: 471px;
  font-size: 24px;
  line-height: 28px;
}

.tobor-blog-section__card h3 {
  font-size: 20px;
  line-height: 28px;
}

.tobor-blog-section__excerpt {
  width: 100%;
  margin: 0;
  color: var(--tobor-blog-inverse);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.tobor-blog-section__card time {
  margin: 0;
  color: var(--tobor-blog-inverse);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.tobor-blog-section__rail {
  display: flex;
  flex-direction: column;
  align-self: start;
  min-width: 0;
  
}

.tobor-blog-section__rail::after {
  display: none;
}

.tobor-blog-section__rail-list {
  min-width: 0;
  max-height: 528px;
  overflow-y: auto;
  scrollbar-color: #d4d4d4 var(--tobor-blog-bg);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.tobor-blog-section__rail-list::-webkit-scrollbar {
  width: 15px;
}

.tobor-blog-section__rail-list::-webkit-scrollbar-track {
  border-left: 1px solid #e8e8e8;
  border-right: 1px solid #f0f0f0;
  background: var(--tobor-blog-bg);
}

.tobor-blog-section__rail-list::-webkit-scrollbar-thumb {
  border: 3px solid var(--tobor-blog-bg);
  border-radius: 8px;
  background: #d4d4d4;
}

.tobor-blog-section__rail-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 104px;
  width: 100%;
  padding: 16px;
  border-bottom: 1px solid var(--tobor-blog-border);
  color: var(--tobor-blog-text);
  text-decoration: none;
}

.tobor-blog-section__rail-item:hover,
.tobor-blog-section__rail-item:focus {
  color: var(--tobor-blog-text);
  text-decoration: none;
}

.tobor-blog-section__thumb {
  position: relative;
  width: 100px;
  height: 100px;
  flex: 0 0 100px;
  overflow: hidden;
  border-radius: 8px;
  background: #f0f0f0;
}

.tobor-blog-section__rail-content {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.tobor-blog-section__rail-label {
  color: var(--tobor-blog-accent);
}

.tobor-blog-section__rail-content h3 {
  display: -webkit-box;
  width: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--tobor-blog-text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tobor-blog-section__rail-content time {
  color: var(--tobor-blog-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.tobor-blog-section__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 16px;
  padding: 12px 20px;
  border: 2px solid var(--tobor-blog-text);
  border-radius: 128px;
  color: var(--tobor-blog-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.tobor-blog-section__button:hover{
   border: 2px solid #dddddd;
  background: #f7f7f7;
  color: var(--tobor-faq-text) !important;
}
.tobor-blog-section__button:focus {
  color: var(--tobor-blog-text);
  text-decoration: none;
}

.tobor-blog-section__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  max-width: 1360px;
  margin: 0 auto;
  border: 1px solid var(--tobor-blog-border);
  border-radius: 16px;
  background: #ffffff;
}

.tobor-blog-section .tobor-blog-section__empty p {
  margin: 0;
  color: var(--tobor-blog-muted);
  font-size: 16px;
  line-height: 24px;
}

@media (max-width: 1199px) {
  .tobor-blog-section__grid {
    grid-template-columns: minmax(320px, 1fr) minmax(260px, 0.7fr);
    grid-template-areas:
      "featured stack"
      "rail rail";
  }

  .tobor-blog-section__card--featured {
    grid-area: featured;
  }

  .tobor-blog-section__stack {
    grid-area: stack;
  }

  .tobor-blog-section__rail {
    grid-area: rail;
  }
}

@media (max-width: 767px) {
  .tobor-blog-section {
    padding: 48px 20px;
  }

  .tobor-blog-section__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "featured"
      "stack"
      "rail";
  }

  .tobor-blog-section__card--featured,
  .tobor-blog-section__stack {
    min-height: auto;
  }

  .tobor-blog-section__card--featured {
    aspect-ratio: 1 / 1.08;
  }

  .tobor-blog-section__card--stack {
    aspect-ratio: 1.4 / 1;
  }

  .tobor-blog-section__rail {
    grid-area: rail;
  }

  .tobor-blog-section__rail-item {
    align-items: flex-start;
  }

  .tobor-blog-section__thumb {
    width: 84px;
    height: 84px;
    flex-basis: 84px;
  }

  .tobor-blog-section__card h2 {
    font-size: 22px;
    line-height: 28px;
  }
}
