[hidden] {
  display: none !important;
}
.cms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.cms-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e9f2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 20px #163b6110;
}
.cms-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #edf3fa;
}
.cms-card__placeholder {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ecf4ff, #dceafa);
  color: #4273a7;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.cms-card__body {
  padding: 23px;
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
}
.cms-card__meta {
  color: #6c829b;
  font-size: 0.8rem;
  margin: 0 0 12px;
}
.cms-card h3 {
  font-size: 1.1rem;
  line-height: 1.65;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.cms-card h3 a {
  color: #183e66;
}
.cms-card__summary {
  color: #6a7d93;
  font-size: 0.9rem;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cms-card__link {
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 600;
  padding-top: 8px;
}
.cms-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 35px 15px;
  color: #708298;
  margin: 0;
  list-style: none;
  font-size: 0.9rem;
}
.cms-more,
.cms-retry {
  display: block;
  margin: 25px auto 0;
  border: 1px solid #cbdcf0;
  border-radius: 6px;
  color: #1765ba;
  background: #fff;
  padding: 10px 24px;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}
.cms-more:disabled {
  opacity: 0.6;
  cursor: wait;
}
.cms-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.cms-section-heading h2 {
  margin: 0;
}
.cms-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
}
.cms-filter select {
  font: inherit;
  background: #fff;
  color: #415e7d;
  border: 1px solid #d9e4f1;
  border-radius: 5px;
  padding: 9px 12px;
  max-width: 210px;
}
.cms-detail {
  width: min(100% - 2rem, 850px);
  margin: 0 auto;
  padding: 48px 0 70px;
  min-height: 50vh;
}
.cms-breadcrumb {
  font-size: 0.875rem;
  margin-bottom: 25px;
  color: #7c8ca0;
}
.cms-detail h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.6;
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}
.cms-detail__meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: #7c8fa4;
  font-size: 0.875rem;
  border-bottom: 1px solid #e0e7f0;
  padding-bottom: 25px;
}
.cms-detail__cover {
  width: 100%;
  max-height: 540px;
  object-fit: contain;
  border-radius: 7px;
  margin: 30px 0 10px;
  background: #f2f6fb;
}
.cms-detail__summary {
  font-size: 1rem;
  line-height: 1.9;
  background: #edf4fc;
  border-left: 3px solid #3283da;
  padding: 18px 22px;
  margin: 28px 0;
  color: #526e8e;
  white-space: pre-wrap;
}
.cms-detail__body {
  white-space: pre-wrap;
  line-height: 2;
  font-size: 1rem;
  color: #344c68;
  margin: 30px 0;
  overflow-wrap: anywhere;
}
.cms-detail__contact {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 25px;
  border-top: 1px solid #dfe7f1;
  margin-top: 35px;
}
.hl-product-grid:has(.cms-card) {
  align-items: stretch;
}
@media (max-width: 950px) {
  .cms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .cms-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .cms-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .cms-filter {
    width: 100%;
  }
  .cms-filter select {
    flex: 1;
    max-width: none;
  }
  .cms-detail {
    padding-top: 30px;
  }
  .cms-card__body {
    padding: 20px;
  }
}
