.related-articles {
  margin: 0 0 136px 0;
  padding: 0;
  background: none;
  border-radius: 0;
  font-family: "Merriweather", serif;
}
.related-articles h3 {
  margin: 0 0 24px 0;
  font-family: "Merriweather", serif;
  font-weight: 400;
  font-size: 28px;
  color: #1a1a1a;
  line-height: 1.3;
  text-align: center;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 48px;
  margin-left: 80px;
  margin-right: 80px;
}
.related-item {
  grid-column: span 3;
  background-color: #f6f6f6;
  border-radius: 15px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.related-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.related-link {
  text-decoration: none;
  color: black;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.related-link:hover {
  color: #000;
}
.related-image {
  aspect-ratio: 16 / 9;
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  position: relative;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}
.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.related-item:hover .related-image img {
  transform: scale(1.05);
}
.related-content {
  display: flex;
  justify-content: center;
  flex-grow: 1;
  padding: 22px 0;
  overflow-wrap: break-word;
}
.related-content-inner {
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80%;
  padding: 10px 0;
}
.related-title {
  font-family: "Merriweather", serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 28px;
  text-align: center;
  margin: 0;
  padding: 0 10px;
  width: 100%;
  word-break: break-word;
  color: #000;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-link:hover .related-title {
  color: #000;
}
.related-date {
  display: none;
}
.related-text {
  display: none;
}

@media (max-width: 1400px) {
  .related-articles {
    margin: 0 0 100px 0;
  }
}

@media (max-width: 1200px) {
  .related-grid {
    gap: 30px;
  }
  .related-title {
    font-size: 20px;
  }
  .related-content {
    padding: 17px 0;
  }
}

@media (max-width: 1023.99px) {
  .related-title {
    font-size: 18px;
    margin: 0;
    padding: 0 13px;
  }
}

@media (max-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }
  .related-item {
    grid-column: span 3 !important;
  }
  .related-title {
    font-size: 18px;
  }
  .related-image {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
  }
  .related-item {
    border-radius: 8px;
  }
  .related-content {
    padding: 16px 0;
  }
  .related-content-inner {
    width: 100%;
    padding: 10px 0;
  }
  .related-title {
    font-size: 16px;
    line-height: 20px;
    padding: 0 13px;
    width: 100%;
    text-align: start;
  }
}

@media (max-width: 480px) {
  .related-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
  }
  .related-item {
    grid-column: span 1 !important;
  }
}

.related-articles .no-items {
  background: #f9f9f9;
  border-radius: 10px;
  border: 1px dashed #ddd;
  padding: 40px;
  text-align: center;
  grid-column: 1 / -1;
}
.related-articles .no-items p {
  font-size: 18px;
  color: #777;
  font-family: "Merriweather", serif;
  margin: 0;
}
