/* Homepage-only Lertchai Community latest topics. Isolated from /forum/ styles. */
#home .lm-community-section {
  padding: 42px 0 48px;
  background: linear-gradient(180deg, #f2f6fc 0%, #f6f9fd 100%);
}
#home .lm-community-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
#home .lm-community-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
  color: #092d61;
  font-size: clamp(1.55rem, 2.8vw, 2.28rem);
  line-height: 1.42;
  font-weight: 700;
  max-width: 100%;
}
#home .lm-community-heading svg {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: #1762b3;
}
#home .lm-community-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 15px;
  border-radius: 9px;
  background: #13569d;
  border: 1px solid #13569d;
  color: #fff;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(19, 86, 157, .12);
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
#home .lm-community-enter:hover {
  background: #073a7b;
  border-color: #073a7b;
  color: #fff;
  box-shadow: 0 6px 16px rgba(19, 86, 157, .2);
  transform: translateY(-1px);
}
#home .lm-community-enter:focus-visible,
#home .lm-community-row:focus-visible {
  outline: 3px solid #e5aa24;
  outline-offset: 3px;
}
#home .lm-community-list {
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #d9e4f2;
  box-shadow: 0 12px 26px rgba(13, 51, 98, .065);
}
#home .lm-community-row {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  min-height: 75px;
  padding: 11px 20px;
  color: #0b3c78;
  border-bottom: 1px solid #e3ebf6;
  transition: background-color .18s ease;
}
#home .lm-community-row:nth-child(even) { background: #f8faff; }
#home .lm-community-row:last-child { border-bottom: 0; }
#home .lm-community-row:hover { background: #edf5ff; }
#home .lm-community-icon {
  display: grid;
  place-items: center;
  flex: 0 0 39px;
  width: 39px;
  height: 39px;
  border: 1px solid #dce9fa;
  border-radius: 10px;
  background: #f0f6ff;
  color: #1765b7;
}
#home .lm-community-icon svg { width: 19px; height: 19px; }
#home .lm-community-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
}
#home .lm-community-topic-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: #0a3d80;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.5;
}
#home .lm-community-meta {
  display: block;
  overflow: hidden;
  color: #687e9f;
  font-size: .75rem;
  line-height: 1.5;
  white-space: nowrap;
  text-overflow: ellipsis;
}
#home .lm-community-new {
  flex: 0 0 auto;
  padding: 5px 9px;
  background: #fee8e8;
  border: 1px solid #ffcccc;
  border-radius: 7px;
  color: #af202a;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.2;
}
#home .lm-community-arrow {
  flex: 0 0 auto;
  margin-left: 2px;
  color: #7499c7;
  font-size: 1.65rem;
  line-height: 1;
}
#home .lm-community-empty {
  padding: 24px 20px;
  color: #62799a;
  text-align: center;
  font-size: .91rem;
  line-height: 1.6;
}
@media (max-width: 700px) {
  #home .lm-community-section { padding: 32px 0 38px; }
  #home .lm-community-header { gap: 12px; }
  #home .lm-community-heading svg { width: 25px; height: 25px; flex-basis: 25px; }
  #home .lm-community-row { padding: 12px; gap: 10px; min-height: 78px; }
  #home .lm-community-topic-title { font-size: .87rem; }
  #home .lm-community-icon { width: 35px; height: 35px; flex-basis: 35px; }
  #home .lm-community-new { padding: 4px 6px; font-size: .65rem; }
}
@media (max-width: 540px) {
  #home .lm-community-enter { margin-left: 0; }
  #home .lm-community-heading { flex-basis: 100%; }
  #home .lm-community-meta { font-size: .72rem; }
  #home .lm-community-row { gap: 8px; }
  #home .lm-community-arrow { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  #home .lm-community-enter,
  #home .lm-community-row { transition: none; }
  #home .lm-community-enter:hover { transform: none; }
}
