/* =========================================================
   GeoHome Blog - Custom stylesheet
   Scoped entirely under .geohome-blog to avoid affecting
   any other page / theme element on the site.
   Colors: Primary #0F4C81, White #FFFFFF, BG #F8F9FA, Accent #E9B949
   ========================================================= */

.geohome-blog {
  --gh-primary: #0F4C81;
  --gh-primary-dark: #0A3A63;
  --gh-white: #FFFFFF;
  --gh-bg: #F8F9FA;
  --gh-accent: #E9B949;
  --gh-text: #202733;
  --gh-text-light: #5B6472;
  --gh-radius: 14px;
  --gh-shadow: 0 6px 24px rgba(15,76,129,0.10);
  --gh-shadow-hover: 0 14px 34px rgba(15,76,129,0.18);
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gh-text);
  background: var(--gh-bg);
}

.geohome-blog *, .geohome-blog *::before, .geohome-blog *::after { box-sizing: border-box; }
.geohome-blog img { max-width: 100%; height: auto; display: block; }
.geohome-blog a { text-decoration: none; color: inherit; }
.geohome-blog ul { list-style: none; margin: 0; padding: 0; }

.geohome-blog .screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

.geohome-blog .gh-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Focus states for accessibility (WCAG AA) */
.geohome-blog a:focus-visible,
.geohome-blog button:focus-visible,
.geohome-blog input:focus-visible {
  outline: 3px solid var(--gh-accent);
  outline-offset: 2px;
}

/* Buttons */
.geohome-blog .gh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.geohome-blog .gh-btn--accent { background: var(--gh-accent); color: #2b2205; }
.geohome-blog .gh-btn--accent:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(233,185,73,.4); }
.geohome-blog .gh-btn--primary { background: var(--gh-primary); color: #fff; }
.geohome-blog .gh-btn--primary:hover { background: var(--gh-primary-dark); }
.geohome-blog .gh-btn--white { background: #fff; color: var(--gh-primary); }
.geohome-blog .gh-btn--white:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,255,255,.3); }

/* ============ 1. HERO ============ */
.geohome-blog .gh-hero {
  position: relative; min-height: 380px; display: flex; align-items: center; justify-content: center;
  text-align: center; background-size: cover; background-position: center; overflow: hidden;
}
.geohome-blog .gh-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,30,55,.82) 0%, rgba(15,76,129,.78) 60%, rgba(10,30,55,.9) 100%);
}
.geohome-blog .gh-hero__inner { position: relative; z-index: 1; max-width: 780px; padding: 40px 20px; color: #fff; }
.geohome-blog .gh-hero__title { font-size: clamp(28px, 5vw, 44px); font-weight: 800; letter-spacing: 1px; margin: 0 0 12px; }
.geohome-blog .gh-hero__subtitle { font-size: clamp(16px, 2.4vw, 20px); font-weight: 600; color: var(--gh-accent); margin: 0 0 14px; }
.geohome-blog .gh-hero__desc { font-size: 15px; line-height: 1.6; opacity: .92; margin: 0 0 26px; }

/* ============ 2. SEARCH BAR ============ */
.geohome-blog .gh-search-bar {
  position: sticky; top: 0; z-index: 50; background: var(--gh-white);
  box-shadow: 0 2px 10px rgba(0,0,0,.06); transition: box-shadow .25s ease;
  padding: 14px 24px;
}
.geohome-blog .gh-search-bar.is-stuck { box-shadow: 0 6px 20px rgba(15,76,129,.15); }
.geohome-blog .gh-search-form { max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 10px; background: var(--gh-bg); border-radius: 999px; padding: 6px 8px 6px 18px; }
.geohome-blog .gh-search-icon { color: var(--gh-text-light); flex-shrink: 0; }
.geohome-blog .gh-search-form input[type="text"] { flex: 1; border: none; background: transparent; padding: 10px 4px; font-size: 15px; font-family: inherit; color: var(--gh-text); }
.geohome-blog .gh-search-form input[type="text"]:focus { outline: none; }
.geohome-blog .gh-search-form .gh-btn { padding: 10px 22px; }
.geohome-blog .gh-search-form--sidebar { padding: 6px 6px 6px 14px; }

/* ============ LAYOUT ============ */
.geohome-blog .gh-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding: 48px 24px; align-items: start; }
.geohome-blog .gh-main { min-width: 0; }
.geohome-blog .gh-section-title { font-size: 24px; font-weight: 700; color: var(--gh-primary); margin: 0 0 20px; position: relative; padding-bottom: 10px; }
.geohome-blog .gh-section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; background: var(--gh-accent); border-radius: 4px; }

/* ============ 3. CATEGORIES ============ */
.geohome-blog .gh-categories { margin-bottom: 48px; }
.geohome-blog .gh-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.geohome-blog .gh-cat-card {
  background: var(--gh-white); border-radius: var(--gh-radius); padding: 22px 16px; text-align: center;
  box-shadow: var(--gh-shadow); transition: transform .25s ease, box-shadow .25s ease;
  opacity: 0; transform: translateY(16px);
}
.geohome-blog .gh-cat-card.gh-in-view { opacity: 1; transform: translateY(0); transition: opacity .5s ease, transform .5s ease, box-shadow .25s ease; }
.geohome-blog .gh-cat-card:hover { transform: translateY(-6px); box-shadow: var(--gh-shadow-hover); }
.geohome-blog .gh-cat-icon { display: block; font-size: 30px; margin-bottom: 10px; }
.geohome-blog .gh-cat-name { display: block; font-weight: 600; color: var(--gh-text); margin-bottom: 4px; }
.geohome-blog .gh-cat-count { display: block; font-size: 13px; color: var(--gh-text-light); }

/* ============ 4. FEATURED POSTS ============ */
.geohome-blog .gh-featured { margin-bottom: 48px; }
.geohome-blog .gh-featured-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.geohome-blog .gh-featured-big, .geohome-blog .gh-featured-small {
  background: var(--gh-white); border-radius: var(--gh-radius); overflow: hidden; box-shadow: var(--gh-shadow);
  display: block; transition: transform .25s ease, box-shadow .25s ease;
  opacity: 0; transform: translateY(16px);
}
.geohome-blog .gh-featured-big.gh-in-view, .geohome-blog .gh-featured-small.gh-in-view { opacity: 1; transform: translateY(0); transition: opacity .5s ease, transform .5s ease, box-shadow .25s ease; }
.geohome-blog .gh-featured-big:hover, .geohome-blog .gh-featured-small:hover { transform: translateY(-4px); box-shadow: var(--gh-shadow-hover); }
.geohome-blog .gh-featured-small-list { display: flex; flex-direction: column; gap: 14px; }
.geohome-blog .gh-featured-small { display: flex; flex-direction: row; align-items: stretch; }
.geohome-blog .gh-featured-small .gh-card-img-wrap { width: 120px; flex-shrink: 0; }
.geohome-blog .gh-card-body--sm { padding: 10px 14px !important; }
.geohome-blog .gh-card-title--sm { font-size: 14px !important; -webkit-line-clamp: 2; }

.geohome-blog .gh-ratio-16-9 { position: relative; width: 100%; padding-top: 56.25%; overflow: hidden; background: #e7ecf1; }
.geohome-blog .gh-ratio-16-9 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.geohome-blog .gh-card-img-wrap { display: block; }

.geohome-blog .gh-card-body { padding: 18px 20px; }
.geohome-blog .gh-card-cat { display: inline-block; background: rgba(15,76,129,.08); color: var(--gh-primary); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.geohome-blog .gh-card-meta { display: block; font-size: 13px; color: var(--gh-text-light); margin: 6px 0 10px; }
.geohome-blog .gh-card-title { font-size: 18px; font-weight: 700; line-height: 1.35; margin: 0 0 8px; color: var(--gh-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.geohome-blog .gh-card-title a { color: inherit; }
.geohome-blog .gh-card-title a:hover { color: var(--gh-primary); }
.geohome-blog .gh-card-desc { font-size: 14px; color: var(--gh-text-light); line-height: 1.6; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.geohome-blog .gh-readmore { font-weight: 700; color: var(--gh-primary); font-size: 14px; display: inline-flex; align-items: center; gap: 4px; transition: gap .2s ease; }
.geohome-blog .gh-readmore:hover { gap: 8px; }

/* ============ 5. GRID BLOG ============ */
.geohome-blog .gh-grid-section { margin-bottom: 20px; }
.geohome-blog .gh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.geohome-blog .gh-post-card {
  background: var(--gh-white); border-radius: var(--gh-radius); overflow: hidden; box-shadow: var(--gh-shadow);
  transition: transform .25s ease, box-shadow .25s ease; opacity: 0; transform: translateY(18px);
}
.geohome-blog .gh-post-card.gh-in-view { opacity: 1; transform: translateY(0); transition: opacity .5s ease, transform .5s ease, box-shadow .25s ease; }
.geohome-blog .gh-post-card:hover { transform: translateY(-6px); box-shadow: var(--gh-shadow-hover); }

.geohome-blog .gh-no-results { background: #fff; padding: 30px; border-radius: var(--gh-radius); text-align: center; color: var(--gh-text-light); }

/* CTA block inserted every 6 posts - spans full grid width */
.geohome-blog .gh-cta-block {
  grid-column: 1 / -1; background: linear-gradient(135deg, var(--gh-primary), var(--gh-primary-dark));
  border-radius: var(--gh-radius); padding: 34px 30px; text-align: center; color: #fff;
  opacity: 0; transform: translateY(18px);
}
.geohome-blog .gh-cta-block.gh-in-view { opacity: 1; transform: translateY(0); transition: opacity .5s ease, transform .5s ease; }
.geohome-blog .gh-cta-block h3 { margin: 0 0 16px; font-size: 22px; }
.geohome-blog .gh-cta-checklist { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; font-size: 14px; opacity: .95; }

/* ============ 7. PAGINATION ============ */
.geohome-blog .gh-pagination { margin-top: 36px; display: flex; justify-content: center; }
.geohome-blog .gh-pagination ul { display: flex; gap: 8px; flex-wrap: wrap; }
.geohome-blog .gh-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 10px; background: #fff; color: var(--gh-primary); font-weight: 600; box-shadow: var(--gh-shadow); transition: all .2s ease;
}
.geohome-blog .gh-pagination .page-numbers.current { background: var(--gh-primary); color: #fff; }
.geohome-blog .gh-pagination .page-numbers:hover { background: var(--gh-accent); color: #2b2205; }

/* ============ 6. SIDEBAR ============ */
.geohome-blog .gh-sidebar__sticky { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 26px; }
.geohome-blog .gh-widget { background: var(--gh-white); border-radius: var(--gh-radius); padding: 22px; box-shadow: var(--gh-shadow); }
.geohome-blog .gh-widget-title { font-size: 16px; font-weight: 700; color: var(--gh-primary); margin: 0 0 16px; }
.geohome-blog .gh-widget-list li { margin-bottom: 10px; }
.geohome-blog .gh-widget-list a { display: flex; justify-content: space-between; font-size: 14px; color: var(--gh-text); transition: color .2s ease; }
.geohome-blog .gh-widget-list a:hover { color: var(--gh-primary); }
.geohome-blog .gh-widget-list a span { color: var(--gh-text-light); }

.geohome-blog .gh-widget-post-list li { margin-bottom: 14px; }
.geohome-blog .gh-widget-post-list li:last-child { margin-bottom: 0; }
.geohome-blog .gh-widget-post { display: flex; gap: 12px; align-items: flex-start; }
.geohome-blog .gh-widget-post-thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: #e7ecf1; }
.geohome-blog .gh-widget-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.geohome-blog .gh-widget-post-info { display: flex; flex-direction: column; gap: 4px; }
.geohome-blog .gh-widget-post-title { font-size: 13.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.geohome-blog .gh-widget-post-date { font-size: 12px; color: var(--gh-text-light); }

.geohome-blog .gh-video-embed { border-radius: 10px; overflow: hidden; background: #000; }
.geohome-blog .gh-video-embed.gh-ratio-16-9 { position: relative; padding-top: 56.25%; }
.geohome-blog .gh-video-embed.gh-ratio-16-9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.geohome-blog .gh-fanpage-embed { border-radius: 10px; overflow: hidden; }

/* ============ 8. FOOTER CTA ============ */
.geohome-blog .gh-footer-cta { background: linear-gradient(135deg, var(--gh-primary), var(--gh-primary-dark)); color: #fff; padding: 60px 24px; text-align: center; margin-top: 20px; }
.geohome-blog .gh-footer-cta h2 { font-size: clamp(22px, 3.4vw, 32px); margin: 0 0 28px; font-weight: 800; }
.geohome-blog .gh-footer-cta__buttons { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .geohome-blog .gh-layout { grid-template-columns: 1fr; }
  .geohome-blog .gh-sidebar__sticky { position: static; }
  .geohome-blog .gh-grid { grid-template-columns: repeat(2, 1fr); }
  .geohome-blog .gh-featured-grid { grid-template-columns: 1fr; }
  .geohome-blog .gh-cat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .geohome-blog .gh-hero { min-height: 320px; }
  .geohome-blog .gh-layout { padding: 32px 16px; gap: 30px; }
  .geohome-blog .gh-grid { grid-template-columns: 1fr; }
  .geohome-blog .gh-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .geohome-blog .gh-featured-small { flex-direction: row; }
  .geohome-blog .gh-cta-checklist { flex-direction: column; gap: 10px; }
  .geohome-blog .gh-search-bar { padding: 10px 14px; }
  .geohome-blog .gh-footer-cta { padding: 44px 18px; }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .geohome-blog * { transition: none !important; animation: none !important; }
  .geohome-blog .gh-cat-card, .geohome-blog .gh-post-card, .geohome-blog .gh-featured-big, .geohome-blog .gh-featured-small, .geohome-blog .gh-cta-block {
    opacity: 1 !important; transform: none !important;
  }
}


/* -----------------------------------------------------------
   Fix: force white heading color on dark-background sections
   (Astra theme's global h1/h2 color rule was overriding these)
   ----------------------------------------------------------- */
.geohome-blog .gh-hero__title,
.geohome-blog .gh-footer-cta h2 {
  color: #ffffff !important;
}
