/* ============================================================
   Unique East Art — BLOGS list & post pages
   Layout measured from the original at a 1440px viewport
   ============================================================ */

/* ============ PAGE TITLE (header 207 → title 237 → grid 319) ============ */
.blog-hero {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 30px var(--pad-x) 24px;
}
.blog-hero-title {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  line-height: 57.6px;
  width: 258px;
  margin: 0;
}
.blog-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 57px;
  height: 57px;
  padding: 0;
  border: 0;
  background: none;
  color: #000;
  cursor: pointer;
}
.blog-search-toggle svg { width: 24px; height: 24px; }
.blog-search-toggle:hover { opacity: .6; }

/* Inline search field, revealed by the magnifier button */
.blog-search {
  display: none;
  padding: 0 var(--pad-x) 24px;
}
.blog-search.is-open { display: block; }
.blog-search input {
  width: 100%;
  max-width: 420px;
  padding: 10px 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  color: #000;
  border: 0;
  border-bottom: 1px solid #000;
  border-radius: 0;
  outline: none;
  background: transparent;
}
.blog-empty {
  display: none;
  padding: 0 20px 60px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
}
.blog-empty.is-visible { display: block; }

/* ============ CARD GRID (4 × 326, 32/33 gutters, 20px side padding) ============ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 32px;
  padding: 0 20px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  text-decoration: none;
  color: #000;
}
.blog-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 326 / 245;
  object-fit: cover;
  object-position: 50% 50%;
  transition: transform .4s ease;
}
.blog-card:hover .blog-card-img { transform: scale(1.02); }
.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 320px;
  padding: 27px 24px 24px;
  border: 1px solid rgba(191, 187, 183, .75);
  background: #fff;
}
.blog-card-meta {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 46px;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 18px;
}
.blog-card-avatar {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.blog-card-meta-text { min-width: 0; }
.blog-card-author { display: block; }
.blog-card-date { display: block; }
.blog-card-kebab {
  margin-left: auto;
  flex: 0 0 auto;
  padding: 7px 0 0;
  border: 0;
  background: none;
  color: #000;
  line-height: 0;
  cursor: pointer;
}
.blog-card-kebab svg { width: 19px; height: 19px; }
.blog-card-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 30.8px;
  margin: 1px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card:hover .blog-card-title { text-decoration: underline; text-underline-offset: 3px; }
.blog-card-excerpt {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  margin: 12px 0 26px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 18px;
}
.blog-card-views { display: flex; align-items: center; gap: 6px; }
.blog-card-views svg { width: 19px; height: 19px; }
.blog-card-like { color: #cf4a4a; line-height: 0; }
.blog-card-like svg { width: 19px; height: 19px; }

/* ============ POST PAGE ============ */
.post-wrap {
  width: 940px;
  max-width: calc(100% - 40px);
  margin: 40px auto 0;
}
.post-card {
  padding: 60px 99px 61px;
  background: #fff;
  border: 1px solid rgba(191, 187, 183, .75);
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 21px;
}
.post-avatar {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 2px;
}
.post-kebab {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: #000;
  line-height: 0;
  cursor: pointer;
}
.post-kebab svg { width: 19px; height: 19px; }
.post-title {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
  line-height: 56px;
  margin: 18px 0 0;
}
.post-updated {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 21px;
  margin: 18px 0 0;
}
.post-subtitle {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 27px;
  font-weight: 700;
  margin: 20px 0 0;
}
.post-body { margin-top: 27px; }
.post-body p {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 27px;
  margin: 0 0 27px;
}
.post-body p:last-child { margin-bottom: 0; }
.post-share {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 20px;
  padding: 24px 0 23px;
  border-top: 1px solid rgba(0, 0, 0, .2);
}
.post-share a,
.post-share button {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: none;
  color: #000;
  line-height: 0;
  cursor: pointer;
}
.post-share svg { width: 19px; height: 19px; }
.post-share a:hover,
.post-share button:hover { opacity: .55; }
.post-share .is-copied { color: #2e7d32; }
.post-views {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  box-sizing: border-box;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, .2);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 21px;
}
.post-views-like {
  padding: 0;
  border: 0;
  background: none;
  color: #cf4a4a;
  line-height: 0;
  cursor: pointer;
  display: flex;
}
.post-views-like svg { width: 19px; height: 19px; }

/* ============ RECENT POSTS (card 4360 → title 4390 → cards 4437) ============ */
.recent-posts { margin-top: 30px; }
.recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 27px;
}
.recent-head h2 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 27px;
  margin: 0;
}
.recent-head a {
  font-size: 14px;
  line-height: 21px;
  color: #000;
  text-decoration: none;
}
.recent-head a:hover { text-decoration: underline; }
.recent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 20px;
}
.recent-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(191, 187, 183, .75);
  color: #000;
  text-decoration: none;
}
.recent-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 289 / 162;
  object-fit: cover;
  object-position: 50% 50%;
}
.recent-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 24px 25px;
}
.recent-card-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 22px;
  margin: 0;
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recent-card:hover .recent-card-title { text-decoration: underline; text-underline-offset: 3px; }
.recent-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 23px;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 0, 0, .2);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 18px;
}
.recent-card-views { display: flex; align-items: center; gap: 6px; }
.recent-card-views svg { width: 19px; height: 19px; }
.recent-card-like { color: #cf4a4a; line-height: 0; }
.recent-card-like svg { width: 19px; height: 19px; }

/* ============ FOOTER GAP ============
   Unified site-wide: .site-footer has margin-top 40px in style2.css. */

/* ============ RESPONSIVE ============ */
@media (max-width: 1199px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .post-card { padding: 48px 60px; }
}

@media (max-width: 991px) {
  .blog-hero { padding: 18px 10px 18px; gap: 2px; }
  .blog-hero-title { font-size: 28px; line-height: 34px; width: auto; }
  .blog-search-toggle { width: 44px; height: 44px; }
  .blog-search-toggle svg { width: 20px; height: 20px; }
  .blog-search { padding: 0 10px 16px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 0 10px; }
  .blog-card-body { padding: 18px 16px 16px; }
  .blog-card-title { font-size: 18px; line-height: 25px; }
  .blog-card-excerpt { font-size: 14px; line-height: 21px; margin-top: 10px; }
  .blog-card-meta { font-size: 11px; line-height: 16px; min-height: 40px; }
  .blog-card-avatar { flex-basis: 28px; width: 28px; height: 28px; }

  .post-wrap { max-width: calc(100% - 20px); margin-top: 20px; }
  .post-card { padding: 28px 24px; }
  .post-title { font-size: 30px; line-height: 40px; margin-top: 14px; }
  .post-body p { font-size: 17px; line-height: 26px; margin-bottom: 22px; }
  .recent-grid { gap: 16px; }
  .recent-card-body { padding: 16px 16px 18px; }
  .recent-card-title { font-size: 16px; line-height: 20px; min-height: 40px; }
  .recent-card-foot { margin-top: 16px; padding-top: 12px; }
}

@media (max-width: 767.98px) {
  .blog-grid { grid-template-columns: 1fr; gap: 24px; }
  .recent-grid { grid-template-columns: 1fr; gap: 24px; }
  .post-card { padding: 24px 18px; }
  .post-title { font-size: 26px; line-height: 34px; }
  .post-subtitle { font-size: 16px; line-height: 24px; }
  .post-body p { font-size: 16px; line-height: 25px; }
  .post-meta { font-size: 13px; }
}
