.social_container {
  background-color: white;
  padding: 30px 60px;
}
.social-wall-container-body {
  padding: 30px 60px;
}
img {
  max-width: 100%;
}

pre {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.dm-social_wall-widget .d-flex {
  margin-bottom: 45px;
}

/* --- Social Wall Styling --- */
#DM_SOCIAL_WALL_DIV {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin: 30px auto;
  padding: 10px;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.list {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.list:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.list img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.list .flex-shrink-0 {
  padding: 15px 15px 0px 15px;
}
.list .flex-grow-1 {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.list .platformIcon {
  color: #1877f2;
  font-size: 20px;
  margin-right: 8px;
}

.list .meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 8px;
}

.list p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 5; /* show max 5 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
}

.list .read-more {
  color: #1877f2;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: none;
}

.list.expanded p {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.list .btn {
  background-color: #cd291e;
  border-color: #af271d;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: white;
  text-align: center;
  transition: background 0.2s;
  width: 100%;
  margin-top: auto !important;
}

.list .btn:hover {
  background-color: #145db2;
}

#loadMoreBTN {
  background-color: #af271d;
  border-color: #af271d;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: white;
  text-align: center;
  transition: background 0.2s;
  width: 50%;
  margin: auto;
}
@media (max-width: 767.98px) {
  .flex-shrink-0 img {
    max-width: 100% !important;
    margin-bottom: 15px;
  }

  .dm-social_wall-widget .d-flex {
    display: block !important;
  }
  .social_container {
    padding: 20px;
  }
  #DM_SOCIAL_WALL_DIV {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}
