/*!****************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!./node_modules/sass-resources-loader/lib/loader.js??ruleSet[1].rules[0].use[3]!./src/scss/blocks/related-posts.scss ***!
  \****************************************************************************************************************************************************************************************************************************************/
.section-related-posts {
  padding: 100px 0;
  background-color: #f8fafc;
  margin: 0;
}
@media (max-width: 1024px) {
  .section-related-posts {
    padding: 80px 0;
  }
}
@media (max-width: 768px) {
  .section-related-posts {
    padding: 60px 0;
  }
}
@media (max-width: 480px) {
  .section-related-posts {
    padding: 40px 0;
  }
}

.related-posts__header {
  text-align: center;
  margin-bottom: 60px;
}
@media (max-width: 768px) {
  .related-posts__header {
    margin-bottom: 50px;
  }
}
@media (max-width: 480px) {
  .related-posts__header {
    margin-bottom: 40px;
  }
}

.related-posts__title {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 12px 0;
  line-height: 1.2;
}
@media (max-width: 1024px) {
  .related-posts__title {
    font-size: 32px;
  }
}
@media (max-width: 768px) {
  .related-posts__title {
    font-size: 28px;
    margin-bottom: 10px;
  }
}
@media (max-width: 480px) {
  .related-posts__title {
    font-size: 22px;
  }
}

.related-posts__subtitle {
  font-size: 16px;
  color: var(--color-grey);
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .related-posts__subtitle {
    font-size: 14px;
  }
}
@media (max-width: 480px) {
  .related-posts__subtitle {
    font-size: 13px;
  }
}

.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}
@media (max-width: 1024px) {
  .related-posts__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
}
@media (max-width: 768px) {
  .related-posts__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (max-width: 480px) {
  .related-posts__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.related-post {
  background-color: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
@media (max-width: 768px) {
  .related-post {
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  }
}
.related-post:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}
.related-post:hover .related-post__image-wrapper {
  transform: scale(1.05);
}
.related-post:hover .related-post__link {
  color: var(--background-blue);
}
.related-post:hover .related-post__link svg {
  transform: translateX(4px);
}
@media (max-width: 480px) {
  .related-post:hover {
    transform: translateY(-3px);
  }
}

.related-post__image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  background-color: #e8e8e8;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
@media (max-width: 768px) {
  .related-post__image-wrapper {
    height: 180px;
  }
}
@media (max-width: 480px) {
  .related-post__image-wrapper {
    height: 160px;
  }
}

.related-post__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-post__image-placeholder {
  width: 60px;
  height: 60px;
  color: #b0b0b0;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 768px) {
  .related-post__image-placeholder {
    width: 50px;
    height: 50px;
  }
}
.related-post__image-placeholder svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
}

.related-post__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
@media (max-width: 768px) {
  .related-post__content {
    padding: 20px;
  }
}
@media (max-width: 480px) {
  .related-post__content {
    padding: 16px;
  }
}

.related-post__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.related-post__date {
  font-size: 13px;
  color: var(--color-light-grey);
  font-weight: 500;
}
@media (max-width: 768px) {
  .related-post__date {
    font-size: 12px;
  }
}
@media (max-width: 480px) {
  .related-post__date {
    font-size: 11px;
  }
}

.related-post__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0 0 12px 0;
  line-height: 1.4;
  flex: 1;
}
@media (max-width: 768px) {
  .related-post__title {
    font-size: 16px;
    margin-bottom: 10px;
  }
}
@media (max-width: 480px) {
  .related-post__title {
    font-size: 15px;
  }
}
.related-post__title a {
  text-decoration: none;
  color: inherit;
}
.related-post__title a:hover {
  color: var(--background-blue);
}

.related-post__excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-grey);
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 768px) {
  .related-post__excerpt {
    font-size: 13px;
    margin-bottom: 14px;
  }
}
@media (max-width: 480px) {
  .related-post__excerpt {
    font-size: 12px;
    margin-bottom: 12px;
  }
}

.related-post__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-grey);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  margin-top: auto;
}
@media (max-width: 768px) {
  .related-post__link {
    font-size: 13px;
    gap: 6px;
  }
}
@media (max-width: 480px) {
  .related-post__link {
    font-size: 12px;
  }
}
.related-post__link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  stroke-width: 2;
}
@media (max-width: 768px) {
  .related-post__link svg {
    width: 14px;
    height: 14px;
  }
}
@media (max-width: 480px) {
  .related-post__link svg {
    width: 12px;
    height: 12px;
  }
}
.related-post__link:hover {
  color: var(--background-blue);
}

.related-posts__footer {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid #e8e8e8;
}
@media (max-width: 768px) {
  .related-posts__footer {
    padding-top: 30px;
  }
}
@media (max-width: 480px) {
  .related-posts__footer {
    padding-top: 24px;
  }
}

.related-posts__view-all {
  display: inline-block;
  background-color: var(--background-blue);
  color: var(--color-white);
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}
@media (max-width: 768px) {
  .related-posts__view-all {
    padding: 12px 28px;
    font-size: 14px;
  }
}
@media (max-width: 480px) {
  .related-posts__view-all {
    padding: 10px 24px;
    font-size: 13px;
    width: 100%;
  }
}
.related-posts__view-all:hover {
  background-color: #1565c0;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(33, 150, 243, 0.3);
}
.related-posts__view-all:active {
  transform: translateY(0);
}

.related-posts__empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-grey);
  font-size: 16px;
}
@media (max-width: 768px) {
  .related-posts__empty {
    padding: 50px 20px;
    font-size: 14px;
  }
}
@media (max-width: 480px) {
  .related-posts__empty {
    padding: 40px 20px;
    font-size: 13px;
  }
}
.related-posts__empty p {
  margin: 0;
}

@media (max-width: 768px) {
  .section-related-posts {
    background-color: var(--color-white);
  }
}
@media (max-width: 480px) {
  .related-posts__grid {
    margin-bottom: 30px;
  }
  .related-post {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }
  .related-post:hover {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }
}
