.lc-community-list,
.lc-community-list * {
  box-sizing: border-box;
}

.lc-community-list {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lccl-section {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
  padding: 12px 10px 14px;
  box-shadow: 0 2px 12px rgba(42, 31, 23, 0.1);
  border: 1px solid rgba(201, 146, 75, 0.14);
}

.lccl-section-title {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(31, 77, 108, 0.16);
  color: #174263;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
}

.lccl-section-title__link {
  color: inherit;
  text-decoration: none;
}

.lccl-section-title__link:hover {
  color: #c97935;
  text-decoration: underline;
}

/* Horizontal track — same pattern as lankconnectCatPills .lccp-track */
.lccl-track {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  touch-action: pan-x;
  padding: 0 0 4px;
  margin: 0;
  align-items: stretch;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.lccl-track::-webkit-scrollbar {
  display: none;
}

.lccl-card {
  flex: 0 0 169px;
  width: 169px;
  max-width: 169px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  scroll-snap-align: start;
  background: var(--lccl-card-bg, #fff);
  border: 1px solid rgba(30, 30, 30, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.11);
}

.lccl-image-link {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 1.58 / 1;
  background: #efe8df;
  overflow: hidden;
}

.lccl-image {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

.lccl-image--placeholder {
  background: linear-gradient(135deg, #eadbc8, #faf4eb);
  min-height: 106px;
}

.lccl-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 8px 8px 10px;
}

.lccl-card-title {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
  color: #174263;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;
}

.lccl-card-title a {
  color: inherit;
  text-decoration: none;
}

.lccl-excerpt {
  display: none !important;
}

.lccl-button {
  align-self: stretch;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 5px;
  background: var(--lccl-btn-bg, #d98216);
  color: var(--lccl-btn-color, #fff) !important;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
}

/* View all — end card (lankconnectCatPills style) */
.lccl-card--view-all {
  flex: 0 0 120px;
  width: 120px;
  border: none;
  box-shadow: none;
  background: transparent;
}

.lccl-view-all {
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: var(--lccl-view-all-bg, #efe6dd);
  border: 1px solid #efe6dd;
  border-radius: 10px;
  text-decoration: none !important;
  color: #3b241d;
  font-family: Poppins, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  box-sizing: border-box;
}

.lccl-view-all:hover {
  color: #3b241d;
  text-decoration: none !important;
}

@media (max-width: 768px) {
  .lccl-track {
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
    touch-action: pan-x pan-y !important;
    -webkit-overflow-scrolling: auto !important;
    overscroll-behavior-x: contain !important;
  }

  .lccl-card {
    flex: 0 0 min(72vw, 260px);
    width: min(72vw, 260px);
    max-width: 260px;
    scroll-snap-align: none !important;
  }

  .lccl-card--view-all {
    flex: 0 0 min(42vw, 140px);
    width: min(42vw, 140px);
    max-width: 140px;
  }
}

@media (min-width: 769px) {
  .lccl-section {
    padding: 18px;
    border-radius: 12px;
  }

  .lccl-section-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .lccl-card-title {
    font-size: 14px;
  }

  .lccl-button {
    min-height: 34px;
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* Community page layout — same flex constraints as homepage Vehicles row */
body:has(.lc-community-list) {
  overflow-x: clip;
}

@media (max-width: 768px) {
  body:has(.lc-community-list) {
    overflow-x: hidden !important;
  }
}

body:has(.lc-community-list) .page__text {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body:has(.lc-community-list) .page__text > * {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body:has(.lc-community-list) .lc-community-list {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
