/* Stories Section Styles */
.stories-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 2rem;
  padding-left: 0;
}

.stories-inner {
  max-width: 1200px;
  width: 100%;
}

.posts-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.post-card {
  flex: 1 1 calc(33.333% - 1.5rem);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  background: #fff;
  border: 1px solid #ddd;
  max-width: 300px;
  text-align: left;
  max-height: 460px;
}

.post-thumb-link {
  display: block;
  overflow: hidden;
}

.post-thumb {
  width: 100%;
  height: auto;
  display: block;
}

.post-content {
  padding: 1rem;
}

.post-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0.5rem 0;
}

.post-title a {
  text-decoration: none;
  color: #333;
}

.post-title a:hover {
  color: #555;
}

.post-excerpt {
  max-height: 4.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

@media (max-width: 800px) {
  .stories-section {
    padding: 0;
  }
  .posts-grid {
    flex-direction: column;
    gap: 1.2rem;
  }
  .post-card {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
    border-radius: 18px;
    margin: 0;
  }
  .stories-section .post-excerpt {
    display: none;
  }
}