section.tabs-block {
  padding-top: 80px;
  background: #fff;
}

.tabs-block__title {
  font-weight: 700;
  margin-bottom: 48px;
  font-size: 56px;
  line-height: 110%;
  letter-spacing: -0.01em;
}

.tab_nav_item {
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 14px 20px 15px;
  box-sizing: border-box;
  border: 1px solid #222;
  background-color: transparent;
  outline: none;
  font-weight: 500;
  font-size: 18px;
  line-height: 1;
  color: #222;
  transition: all 0.3s ease;
}

.tab_nav_item.active {
  border-color: #231f20;
  background-color: #231f20;
  color: #fff;
}

.tab_nav {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media screen and (min-width: 1201px) {
  .tab_nav_item:not(.active):hover,
  .tab_nav_item:not(.active):focus {
    border-color: #231f20;
    background-color: #231f20;
    color: #fff;
  }
}

.tabContainer {
  position: relative;
  overflow: hidden;
}

.post__header-btn {
  min-width: 123px;
}

.Tabcondent.active {
  transform: none !important;
  opacity: 1 !important;
  border-radius: 0px;
  z-index: 3;
  transition: all ease-in-out 0.6s;
  margin: 0 auto;
}

.Tabcondent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: fit-content;
  transform-origin: 0 0;
  transition: opacity 0.4s, transform 0.4s;
  opacity: 0;
  transform: translateY(50px);
}

.post__container {
  box-sizing: border-box;
  border-radius: 24px;
}

.post__wrapper {
  display: flex;
}

.post__item {
  display: flex;
  flex-direction: column;
  max-width: 636px;
  overflow: hidden;
  transition: all 0.3s;
}

.post__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  box-sizing: border-box;
}

.post__header {
  margin-bottom: 40px;
  flex-direction: column;
  display: flex;
  justify-content: space-between;
}

.post__header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.latest-post__title {
  color: #000;
}

.category-description p {
  font-weight: 500;
  font-size: 25px;
  line-height: 150%;
  letter-spacing: -0.01em;
  color: #222;
}

.post__image img {
  border-radius: 8px;
  height: auto;
}

.post__category {
  display: inline-block;
  margin-bottom: 13px;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 13px;
  line-height: 150%;
  letter-spacing: 0.02em;
  color: #000;
}

.post__name {
  color: #000;
}

.post__excerpt {
  color: #000;
}

.latest-post__wrapper {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.latest-post__item {
  display: grid;
  grid-template-columns: minmax(auto, 316px) minmax(auto, 1fr);
  transition: all 0.3s;
}

.latest-post__content {
  padding: 9px 18px 9px 25px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
}

.post__title {
  font-size: 48px !important;
}

@media screen and (min-width: 1201px) and (max-width: 1400px) {
  body .post__item {
    max-width: 100%;
  }

  body .post__image img {
    max-height: 100%;
  }
}

@media screen and (min-width: 1201px) and (max-width: 1600px) {
  body .tabs-block__title {
    font-size: 48px;
  }

  .post__image img {
    max-height: 300px;
  }
}

@media screen and (min-width: 1401px) and (max-width: 1600px) {
  body .post__item,
  body .latest-post__wrapper {
    flex-basis: 50%;
  }
}

.latest-post__image {
  border-radius: 8px;
}

@media screen and (max-width: 1600px) {
  .post__item {
    max-width: 50%;
  }
}

@media screen and (min-width: 1431px) {
  .post__wrapper {
    gap: 79px;
  }

  .latest-post__image {
    height: 160px;
    width: 100%;
  }

  .latest-post__content {
    height: 100%;
  }
}

@media screen and (min-width: 1401px) {
  .post__container {
    padding: 66px;
  }
}

@media screen and (max-width: 1430px) {
  .post__wrapper {
    gap: 40px;
  }

  .latest-post__image {
    min-width: 260px;
  }
}

@media screen and (min-width: 801px) and (max-width: 1400px) {
  .post__container {
    padding: 50px 40px;
  }
}

@media screen and (min-width: 1201px) and (max-width: 1400px) {
  .latest-post__image {
    min-width: 220px;
  }
}

@media screen and (min-width: 1201px) {
  .Tabcondent .post__container:not(:last-child) {
    margin-bottom: 80px;
  }

  .post__title {
    margin-bottom: 20px;
  }

  .top_tabs_bar {
    margin-bottom: 78px;
  }

  .post__content {
    padding: 32px 35px 0 0;
  }

  .latest-post__btn.post__btn {
    margin-top: 35px;
  }

  .post__content .post__btn {
    margin-top: 48px;
  }

  .post__name {
    margin-bottom: 25px;
  }
}

@media screen and (max-width: 1400px) {
  .post__wrapper {
    flex-direction: column;
  }
}

@media screen and (max-width: 1200px) {
  .post__item {
    max-width: unset;
  }

  .latest-post__wrapper {
    gap: 24px;
  }
}

@media screen and (min-width: 801px) and (max-width: 1200px) {
  section.tabs-block {
    padding-top: 60px;
  }

  .Tabcondent .post__container:not(:last-child) {
    margin-bottom: 64px;
  }

  .post__content {
    padding: 24px 0 0 0;
  }

  .post__title {
    margin-bottom: 16px;
  }

  .tabs-block__title {
    font-size: 36px;
    margin-bottom: 32px;
  }

  .top_tabs_bar {
    margin-bottom: 64px;
  }

  .post__name {
    margin-bottom: 20px;
  }

  .post__content .post__btn {
    margin-top: 40px;
  }

  .latest-post__btn.post__btn {
    margin-top: 24px;
  }

  .latest-post__image {
    min-width: 300px;
    min-height: 150px;
  }
}

@media screen and (max-width: 601px) and (max-width: 1200px) {
  .latest-post__content {
    padding: 9px 32px;
  }
}

@media screen and (min-width: 801px) and (max-width: 1400px) {
  .latest-post__item {
    align-items: center;
  }
}

@media screen and (min-width: 801px) {
  .post__header-btn.btn-desktop-hide {
    display: none;
  }
}

@media screen and (max-width: 800px) {
  .post__content {
    padding: 12px 0 0 0;
  }

  .latest-post__btn.post__btn {
    margin-top: 20px;
  }

  .post__content .post__btn {
    margin-top: 32px;
  }

  .post__header-btn.btn-mobile-hide {
    display: none;
  }

  .post__header-btn.btn-desktop-hide {
    margin-top: 20px;
  }

  .tabs-block__title {
    font-size: 22px;
    margin-bottom: 24px;
  }

  .post__title {
    margin-bottom: 12px;
  }

  section.tabs-block {
    padding-top: 40px;
  }

  .top_tabs_bar {
    margin-bottom: 48px;
  }

  .latest-post__wrapper {
    gap: 30px;
  }

  .Tabcondent .post__container:not(:last-child) {
    margin-bottom: 48px;
  }

  .post__container {
    padding: 40px 20px;
  }

  .post__header-btn {
    justify-content: flex-end;
    align-items: center;
    margin-top: 0;
    font-size: 16px;
    min-width: 90px;
  }

  .post__name {
    margin-bottom: 18px;
  }

  .latest-post__category {
    margin-top: 20px;
    margin-bottom: 4px;
  }

  .latest-post__image {
    width: 100%;
  }
}

@media screen and (max-width: 600px) {
  .latest-post__item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .latest-post__content {
    padding: 20px 0 0 0;
  }
}
