/* ==========================================================================
   GMH Luxury — Blog hub / archive / search (loaded on is_home/archive/search)
   Scope: .gmh-blog
   ========================================================================== */

.gmh-blog { font-family: var(--gmh-font-sans); color: var(--gmh-text-main); background: var(--gmh-white); }
.gmh-blog *, .gmh-blog *::before, .gmh-blog *::after { box-sizing: border-box; }

/* ---- HERO ---- */
.gmh-blog-hero {
  position: relative;
  padding: 150px 25px 64px;
  text-align: center;
  background:
    radial-gradient(900px 360px at 50% -10%, rgba(197,160,89,0.18), transparent 70%),
    linear-gradient(180deg, #111 0%, #0b0b0b 100%);
  overflow: hidden;
}
.gmh-blog-hero-sm { padding: 116px 25px 36px; }
.gmh-blog-hero-sm .gmh-blog-title { margin-bottom: 16px; }
.gmh-blog-hero-inner { max-width: 820px; margin: 0 auto; }
.gmh-blog-crumbs { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 18px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.gmh-blog-crumbs a { color: rgba(255,255,255,0.8); text-decoration: none; transition: color .2s; }
.gmh-blog-crumbs a:hover { color: var(--gmh-gold); }
.gmh-blog-crumbs span { color: rgba(255,255,255,0.35); }
.gmh-blog-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gmh-gold); margin-bottom: 14px; }
.gmh-blog-title { font-family: var(--gmh-font-serif); color: #fff; font-weight: 600; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.15; margin: 0 0 18px; }
.gmh-blog-sub { color: rgba(255,255,255,0.72); font-size: 1.05rem; line-height: 1.7; max-width: 640px; margin: 0 auto 30px; }

/* ---- SEARCH (strong overrides so Blocksy's input[type=search] styles don't win) ---- */
.gmh-blog .gmh-search { display: flex; align-items: center; max-width: 600px; margin: 0 auto; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.18); border-radius: 50px; padding: 7px 7px 7px 22px; transition: border-color .25s, background .25s, box-shadow .25s; }
.gmh-blog .gmh-search:focus-within { border-color: rgba(197,160,89,0.7); background: rgba(255,255,255,0.1); box-shadow: 0 0 0 4px rgba(197,160,89,0.12); }
.gmh-blog .gmh-search-icon { width: 19px; height: 19px; color: rgba(255,255,255,0.6); flex-shrink: 0; }
.gmh-blog .gmh-search-input,
.gmh-blog input.gmh-search-input[type="search"] {
  flex: 1 !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  color: #ffffff !important;
  font-family: var(--gmh-font-sans) !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  padding: 13px 16px !important;
  margin: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  border-radius: 0 !important;
}
.gmh-blog .gmh-search-input::placeholder { color: rgba(255,255,255,0.6) !important; opacity: 1 !important; }
.gmh-search-input::-webkit-search-cancel-button,
.gmh-search-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.gmh-search-input:focus { color: #fff !important; }
.gmh-blog .gmh-search-submit { background: var(--gmh-gold-gradient); color: #111; border: 0; border-radius: 50px; padding: 13px 30px; font-family: var(--gmh-font-sans); font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: filter .2s, transform .2s; flex-shrink: 0; }
.gmh-blog .gmh-search-submit:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* ---- FILTER PILLS ---- */
.gmh-blog-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 44px; }
.gmh-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--gmh-text-muted); background: #fff; border: 1px solid var(--gmh-border-light); padding: 9px 18px; border-radius: 50px; text-decoration: none; transition: all .22s; }
.gmh-pill span { font-size: 11px; font-weight: 700; color: #aa8e54; background: rgba(197,160,89,0.14); border-radius: 50px; padding: 1px 8px; transition: all .22s; }
.gmh-pill:hover { border-color: var(--gmh-gold); color: var(--gmh-dark); transform: translateY(-2px); }
.gmh-pill.is-active { background: var(--gmh-dark); border-color: var(--gmh-dark); color: #fff; }
.gmh-pill.is-active span { background: rgba(197,160,89,0.3); color: var(--gmh-gold); }

/* ---- FEATURED CARD ---- */
.gmh-blog-featured-wrap { margin-bottom: 44px; }
.gmh-bcard-feat { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; border: 1px solid var(--gmh-border-light); border-radius: 20px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.06); }
.gmh-bcard-feat .gmh-bcard-img { aspect-ratio: auto; height: 100%; min-height: 340px; }
.gmh-bcard-feat .gmh-bcard-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.gmh-bcard-feat .gmh-bcard-title { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.gmh-bcard-excerpt { color: var(--gmh-text-muted); line-height: 1.7; margin: 0 0 22px; font-size: 1.02rem; }

/* ---- GRID + CARD ---- */
.gmh-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.gmh-bcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gmh-border-light); border-radius: 18px; overflow: hidden; transition: transform .35s var(--gmh-ease), box-shadow .35s var(--gmh-ease); }
.gmh-bcard:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(0,0,0,0.1); }
.gmh-bcard-img { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; }
.gmh-bcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gmh-bcard-cat { position: absolute; top: 14px; left: 14px; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #111; background: var(--gmh-gold-gradient); padding: 6px 12px; border-radius: 50px; }
.gmh-bcard-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.gmh-bcard-meta { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--gmh-text-muted); margin-bottom: 12px; }
.gmh-bcard-meta span:not(.gmh-bcard-cat) { color: var(--gmh-gold); }
.gmh-bcard-title { font-family: var(--gmh-font-serif); font-weight: 500; color: var(--gmh-dark); font-size: 1.22rem; line-height: 1.34; margin: 0 0 14px; }
.gmh-bcard-title a { color: inherit; text-decoration: none; transition: color .2s; }
.gmh-bcard-title a:hover { color: #a98a45; }
.gmh-bcard-more { margin-top: auto; font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--gmh-dark); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.gmh-bcard-more span { transition: transform .25s; }
.gmh-bcard:hover .gmh-bcard-more span { transform: translateX(5px); }

/* ---- PAGINATION ---- */
.gmh-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin: 56px 0 10px; }
.gmh-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--gmh-border-light); color: var(--gmh-text-main); text-decoration: none; font-weight: 600; font-size: 14px; transition: all .2s; }
.gmh-pagination .page-numbers:hover { border-color: var(--gmh-gold); color: var(--gmh-dark); }
.gmh-pagination .page-numbers.current { background: var(--gmh-dark); border-color: var(--gmh-dark); color: var(--gmh-gold); }
.gmh-pagination .page-numbers.dots { border: 0; }

/* ---- EMPTY ---- */
.gmh-blog-empty { text-align: center; padding: 70px 20px; color: var(--gmh-text-muted); }
.gmh-blog-empty svg { width: 46px; height: 46px; color: var(--gmh-gold); opacity: .6; margin-bottom: 18px; }
.gmh-blog-empty p { font-size: 1.1rem; margin: 0 0 24px; }

/* breathing room below the hero + before the footer (fixes "congested") */
.gmh-blog .gmh-container { padding-top: 56px; padding-bottom: 88px; }
/* AJAX states */
.gmh-blog-grid.is-loading { opacity: .45; pointer-events: none; transition: opacity .2s; }
.gmh-loadmore-wrap { display: flex; justify-content: center; margin-top: 48px; }
.gmh-loadmore { display: inline-flex; align-items: center; gap: 10px; background: var(--gmh-dark); color: #fff; border: 1px solid var(--gmh-border-gold); border-radius: 50px; padding: 14px 34px; font-family: var(--gmh-font-sans); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; transition: all .25s; }
.gmh-loadmore:hover { background: var(--gmh-gold); color: var(--gmh-dark); transform: translateY(-2px); }
.gmh-loadmore[hidden] { display: none; }
.gmh-loadmore.is-busy { opacity: .6; pointer-events: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .gmh-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .gmh-blog-hero { padding: 120px 20px 48px; }
  .gmh-blog-hero-sm { padding: 116px 20px 40px; }
  .gmh-bcard-feat { grid-template-columns: 1fr; }
  .gmh-bcard-feat .gmh-bcard-img { min-height: 220px; aspect-ratio: 16/10; }
  .gmh-bcard-feat .gmh-bcard-body { padding: 28px; }
  .gmh-search-submit { padding: 11px 18px; }
}
@media (max-width: 560px) {
  .gmh-blog-grid { grid-template-columns: 1fr; }
}
