/* lvbah.com — Skincare tips / News article listing hotfix (scoped).
   Loaded after custom.css; does not modify GA4, Schema or article content. */

/* Replace the sample 1920x1279 banner image on /blog with an existing
   local brand photograph. This also works when the legacy background JS fails. */
.lvbah-blog-hero {
  position: relative;
  min-height: 350px;
  padding: 118px 0 86px;
  background-image:
    linear-gradient(90deg, rgba(28, 23, 22, .70) 0%, rgba(36, 30, 29, .53) 60%, rgba(40, 32, 28, .60) 100%),
    url('/assets/images/3.webp');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 43%;
  color: #fff;
}
.lvbah-blog-hero:before { background: none !important; }
.lvbah-blog-hero .container { position: relative; z-index: 1; }
.lvbah-blog-hero .module-title {
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.35;
  letter-spacing: .14em;
  margin: 0 0 16px;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .24);
}
.lvbah-blog-hero .module-subtitle {
  color: #fff;
  font-size: 15px;
  line-height: 1.85;
  max-width: 740px;
  margin: 0 auto;
}
.lvbah-blog-topic-intro { padding: 45px 0 37px !important; }
.lvbah-blog-topic-intro h2 { line-height: 1.45; }
.lvbah-blog-topic-intro p { max-width: 920px; margin: 0 auto; line-height: 1.95; }
.lvbah-blog-topic-intro p a { margin: 0 3px; text-decoration: underline; text-underline-offset: 3px; }

/* Real CSS Grid instead of Bootstrap floats / multi-columns-row.
   Equal-height cards, consistent 16:10 photos, no awkward empty columns. */
.blog-list-section { padding: 58px 0 84px !important; }
.blog-list-section .lvbah-post-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 26px;
  margin: 0 !important;
  align-items: stretch;
}
.blog-list-section .lvbah-post-grid::before,
.blog-list-section .lvbah-post-grid::after { display: none !important; content: none !important; }
.blog-list-section .lvbah-post-grid > .lvbah-post-grid__item {
  min-width: 0;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
}
.blog-list-section .lvbah-post-grid .blog-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0 !important;
  padding: 0 0 22px;
  border: 1px solid #eae3db;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(59, 43, 32, .045);
  transition: box-shadow .2s ease, transform .2s ease;
}
.blog-list-section .lvbah-post-grid .blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(59, 43, 32, .09);
}
.blog-list-section .blog-card .post-thumbnail {
  margin: 0 0 17px;
  background: #f4efeb;
  overflow: hidden;
}
.blog-list-section .blog-card .post-thumbnail a { display: block; width: 100%; }
.blog-list-section .blog-card .news_img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}
.blog-list-section .blog-card .post-header,
.blog-list-section .blog-card .post-entry,
.blog-list-section .blog-card .post-more { padding: 0 20px; }
.blog-list-section .blog-card .post-header { margin: 0 0 12px; }
.blog-list-section .blog-card .post-title {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: .02em;
  line-height: 1.55;
  min-height: 3.1em;
  max-height: 3.1em;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.blog-list-section .blog-card .post-meta { margin: 0; font-size: 12px; color: #827c76; }
.blog-list-section .blog-card .post-entry {
  border-top: 1px solid #f0eae4;
  padding-top: 14px;
  margin: 0 20px;
  padding-left: 0;
  padding-right: 0;
}
.blog-list-section .blog-card .post-entry .blog-card-excerpt {
  font-size: 14px;
  line-height: 1.85;
  color: #5a5754;
  margin: 0 0 16px;
  min-height: 5.55em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-list-section .blog-card .post-more { margin-top: auto; padding-top: 2px; }
.blog-list-section .blog-card .post-more a { font-size: 14px; font-weight: 600; }
.lvbah-blog-empty { text-align: center; padding: 50px 0; color: #777; }
@media (max-width: 991px) {
  .blog-list-section .lvbah-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .lvbah-blog-hero { min-height: 310px; padding: 100px 0 65px; }
}
@media (max-width: 620px) {
  .blog-list-section .lvbah-post-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .blog-list-section { padding: 34px 0 60px !important; }
  .lvbah-blog-topic-intro { padding: 34px 0 28px !important; }
  .lvbah-blog-hero { min-height: 275px; padding: 84px 0 54px; background-position: 42% center; }
  .lvbah-blog-hero .module-title { letter-spacing: .08em; }
  .blog-list-section .blog-card .post-title,
  .blog-list-section .blog-card .post-entry .blog-card-excerpt { min-height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .blog-list-section .lvbah-post-grid .blog-card,
  .blog-list-section .lvbah-post-grid .news_img { transition: none !important; }
}
