/* GHI blog home: custom CSS for the GHL Blog Home page.
   Paste into the page's Custom CSS (Settings > Custom CSS) in the GHL builder.
   Targets GHL's own blog classes (pinned post, post list, pagination); no new elements needed.
   Fonts: upload Miller Display + Proxima Nova as custom fonts in GHL; Playfair Display / Inter are fallbacks. */

:root {
  --ghi-navy: #1A2433;
  --ghi-gold: #CCA72D;
  --ghi-gold-ink: #75601A;
  --ghi-sand: #E8DED0;
  --ghi-charcoal: #545454;
  --ghi-gray: #767676;
  --ghi-line: #D5D9DE;
  --ghi-display: 'Miller Display', 'Playfair Display', Georgia, serif;
  --ghi-body: 'Proxima Nova', 'Inter', Arial, sans-serif;
}

/* ---------- Pinned (featured) post ---------- */
.hl-blog-pined-post .blog-pined-wrapper {
  display: grid !important;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 0 !important;
  background: transparent !important;
}
.hl-blog-pined-post { display: block !important; padding: 0 !important; background: transparent !important; }
.hl-blog-pined-post .blog-pined-wrapper > a,
.hl-blog-pined-post .blog-content { display: block; width: 100% !important; }
.hl-blog-pined-post .pinned-blog-image {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 10px;
}
.hl-blog-pined-post .blog-content { padding: 0 !important; display: flex !important; flex-direction: column; align-items: flex-start; }
.hl-blog-pined-post .blog-title-pined-post {
  font-family: var(--ghi-display) !important;
  font-weight: 600 !important;
  font-size: 40px !important;
  line-height: 1.12 !important;
  letter-spacing: -0.01em;
  text-transform: none !important;
  color: var(--ghi-navy) !important;
  margin: 0 0 20px !important;
}
.hl-blog-pined-post .blog-description {
  font-family: var(--ghi-body) !important;
  font-size: 18px !important;
  line-height: 1.65 !important;
  color: var(--ghi-charcoal) !important;
  margin: 20px 0 28px !important;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hl-blog-pined-post .pined-blog-button {
  display: inline-flex !important;
  align-items: center;
  background: var(--ghi-navy) !important;
  color: #fff !important;
  font-family: var(--ghi-body) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  padding: 15px 30px !important;
  border-radius: 9px;
}
.hl-blog-pined-post .pined-blog-button:hover { background: #2A3850 !important; }

/* ---------- Post list (3-column grid) ---------- */
.hl-blog-post-home .blog-post-wrapper {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px 36px;
  width: 100% !important;
  flex-direction: unset !important;
}
.hl-blog-post-home .blog-post-wrapper-list,
.hl-blog-post-home .blog-post-wrapper-wrapper,
.hl-blog-post-home .blog-box {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
.hl-blog-post-home .blog-image-standard-wrapper,
.hl-blog-post-home .blog-image-dap {
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 10px;
}
.hl-blog-post-home .blog-image-dap img,
.hl-blog-post-home .blog-image-corner {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}
.hl-blog-post-home .standard-blog-content { padding: 22px 0 0 !important; }
.hl-blog-post-home .blog-title,
.hl-blog-post-home .blog-title a {
  font-family: var(--ghi-display) !important;
  font-weight: 600 !important;
  font-size: 23px !important;
  line-height: 1.25 !important;
  text-transform: none !important;
  color: var(--ghi-navy) !important;
  text-decoration: none !important;
}
.hl-blog-post-home .blog-title { margin: 0 0 12px !important; }
.hl-blog-post-home .blog-title a:hover { text-decoration: underline !important; text-decoration-color: var(--ghi-gold) !important; text-underline-offset: 4px; }
.hl-blog-post-home .blog-description {
  font-family: var(--ghi-body) !important;
  font-size: 15.5px !important;
  line-height: 1.6 !important;
  color: var(--ghi-charcoal) !important;
  margin: 12px 0 16px !important;
  text-transform: none !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hl-blog-post-home .blog-button {
  font-family: var(--ghi-body) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--ghi-navy) !important;
  text-decoration: underline !important;
  text-decoration-color: var(--ghi-gold) !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 5px;
}

/* ---------- Shared: author + date line, tags, icons ---------- */
.hl-blog-pined-post .blog-author,
.hl-blog-post-home .blog-author,
.hl-blog-pined-post .blog-publish-date,
.hl-blog-post-home .blog-publish-date {
  font-family: var(--ghi-body) !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}
.hl-blog-pined-post .blog-author,
.hl-blog-post-home .blog-author { color: var(--ghi-navy) !important; font-weight: 600 !important; margin-right: 14px !important; }
.hl-blog-pined-post .blog-publish-date,
.hl-blog-post-home .blog-publish-date { color: var(--ghi-gray) !important; }
.hl-blog-pined-post .blog-author-image,
.hl-blog-post-home .blog-author-image {
  width: 26px !important;
  height: 26px !important;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ghi-sand) !important;
  color: var(--ghi-navy);
}
.hl-blog-pined-post .blog-author-image img,
.hl-blog-post-home .blog-author-image img { width: 100%; height: 100%; object-fit: cover; }
.hl-blog-pined-post .blog-tag,
.hl-blog-post-home .blog-tag,
.hl-blog-pined-post .blog-button-icon,
.hl-blog-post-home .blog-button-icon { display: none !important; }

/* ---------- Pagination ---------- */
.pagination-container {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.pagination-container .pagination-button {
  min-width: 44px;
  height: 44px;
  padding: 0 14px !important;
  border: 1px solid var(--ghi-line) !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: var(--ghi-navy) !important;
  font-family: var(--ghi-body) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}
.pagination-container .pagination-button:hover:not([disabled]):not(.active) { border-color: var(--ghi-navy) !important; }
.pagination-container .pagination-button.active {
  background: var(--ghi-navy) !important;
  border-color: var(--ghi-navy) !important;
  color: #fff !important;
}
.pagination-container .pagination-button[disabled] { opacity: 0.45; cursor: default; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .hl-blog-post-home .blog-post-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 28px; }
  .hl-blog-pined-post .blog-pined-wrapper { gap: 36px; }
  .hl-blog-pined-post .blog-title-pined-post { font-size: 32px !important; }
}
@media (max-width: 719px) {
  .hl-blog-pined-post .blog-pined-wrapper { grid-template-columns: 1fr; gap: 24px; }
  .hl-blog-pined-post .blog-title-pined-post { font-size: 28px !important; }
  .hl-blog-pined-post .blog-description { font-size: 16px !important; -webkit-line-clamp: 5; }
  .hl-blog-post-home .blog-post-wrapper { grid-template-columns: 1fr; gap: 44px; }
  .hl-blog-post-home .blog-title,
  .hl-blog-post-home .blog-title a { font-size: 21px !important; }
}
