.section-container {
  display: flex;
  flex-direction: column;
  margin: auto;
  padding: 10px 15px;
  max-width: 1140px;
}

.categories-section {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

.categories-section > div:first-child {
  flex: 0 0 70%;
}

.categories-section > div:last-child {
  flex: 0 0 30%;
}

.lifestyle-container {
  background-color: rgb(0, 0, 0);
  border-radius: 5px;
  padding: 45px 35px 25px 35px;
  margin-top: 30px;
}

.white-text {
  color: #fff !important;
}

.white-text:hover {
  color: rgb(252, 74, 0) !important;
}

.title-angle-shap.white-text:hover {
  color: rgb(255, 255, 255) !important;
}

.white-text::before,
.white-text::after {
  background: #fff !important;
}

.bg-dark {
  background-color: #000 !important;
}

.post-block-item {
  margin-top: 20px;
}

/* Swiper settings START */
.popular-posts-slider-container {
  position: relative;
  margin: 30px 0;
}

.popular-posts-swiper {
  width: 100%;
  padding: 20px 0;
  height: 350px;
  overflow: hidden;
}

.popular-posts-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.swiper-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.swiper-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  position: relative;
}

.swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.ts-overlay-style {
  height: 100%;
}

.item.item-before {
  height: 100%;
  background-size: cover;
  background-position: center;
}

.popular-posts-swiper .swiper-wrapper,
.popular-posts-swiper .swiper-slide {
  height: 100%;
}
/* Swiper settings END */

/* Modular posts card START */
.post-title.title-font-large {
  font-size: 36px;
  line-height: 42px;
  margin: 20px 0;
}

.post-title.title-font-medium {
  font-size: 24px;
  line-height: 28px;
  margin: 10px 0;
}

.post-content.post-content-large {
  margin: 25px;
}

.post-content.post-content-medium {
  margin: 20px;
}

/* Overlay */
.item.item-before.use-overlay {
  position: relative;
  overflow: hidden;
}

.item.item-before.use-overlay::before {
  position: absolute;
  content: '';
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background-color: transparent;
  transition: transform 0.4s ease;
  z-index: 1;
  transform: translateY(0);
}

.item.item-before.use-overlay::before {
  background-image: linear-gradient(180deg, rgba(209, 69, 129, 0.89) 0%, rgba(209, 69, 129, 0.89) 100%) !important;
}

.item.item-before:hover::before {
  transform: translateY(-100%);
}

.item .post-content,
.item .img-link {
  position: absolute;
  z-index: 100 !important;
}

.ts-overlay-style.show-overlay {
  position: relative;
}

.ts-overlay-style {
  width: inherit;
}

.ts-overlay-style:hover::before {
  background-color: rgba(0, 0, 0, 0) !important;
}

.post-meta-info > li > .ts-icon.ts-icon-fire {
  color: #fc4a00;
}
/* Modular posts card END */

/* New posts section START */
.new-posts-container {
  display: grid;
  grid-template-columns: 65% 35%;
  width: 100%;
  margin: 30px 0;
  height: 640px;
  position: relative;
}

.new-posts-slider {
  height: 100%;
  position: relative;
  overflow: hidden;
}

.new-posts-slider,
.new-posts-reccomender {
  height: 100%;
}

.new-posts-reccomender {
  display: grid;
  grid-template-rows: 63% 37%;
  padding-left: 10px;
}

.new-posts-swiper {
  position: relative;
  height: 100%;
  overflow: hidden;
  display: flex;
}

.new-posts-swiper .swiper-wrapper {
  flex: 1;
  height: 100%;
  display: flex;
}

.new-posts-swiper .swiper-slide {
  flex: 1 0 auto;
  height: 100%;
  display: flex;
}

/* pagination */
.main-pagination {
  position: absolute;
  top: 50%;
  left: 30px;
  height: fit-content !important;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
}

.main-pagination .swiper-pagination-bullet {
  width: 3px;
  height: 3px;
  border-radius: 3px;
  background-color: rgba(255, 255, 255);
  opacity: 0.7;
  transition: all 0.3s ease;
  cursor: pointer;
}

.main-pagination .swiper-pagination-bullet-active,
.main-pagination .swiper-pagination-bullet-active-main {
  background-color: #fc4a00;
  opacity: 1;
  width: 7px;
  height: 20px;
  border-radius: 7px;
}

.swiper-pagination-bullet.swiper-pagination-bullet-active-next,
.swiper-pagination-bullet.swiper-pagination-bullet-active-prev {
  width: 6px;
  height: 6px;
  border-radius: 6px;
}

.swiper-pagination-bullet.swiper-pagination-bullet-active-next-next,
.swiper-pagination-bullet.swiper-pagination-bullet-active-prev-prev {
  width: 4px;
  height: 4px;
  border-radius: 4px;
}

.new-posts-reccomender > div:last-child > div {
  min-height: auto;
}

.new-posts-reccomender > div:last-child {
  padding-top: 10px;
}
/* New posts section END */

@media (max-width: 1024px) {
  .categories-section {
    flex-direction: column-reverse;
  }

  /* New posts section START */
  .new-posts-container {
    grid-template-columns: none;
    grid-template-rows: 45% 55%;
    gap: 20px;

    height: 940px;
  }

  .new-posts-reccomender {
    padding-left: 0;
    grid-template-rows: 55% 45%;
  }

  .new-posts-reccomender > div:last-child {
    padding-top: 20px;
  }

  .post-content.post-content-large,
  .post-content.post-content-medium {
    margin: 10px;
  }

  .post-title.title-font-large,
  .post-title.title-font-medium {
    font-size: 24px;
    line-height: 26px;
  }

  .main-pagination {
    display: none;
  }
  /* New posts section END */
}
