/* ==============================================
   INTEGRATE HOPE - BLOG PAGE
   ============================================== */

#ih-blog-page *, #ih-blog-page *::before, #ih-blog-page *::after { box-sizing: border-box; }
#ih-blog-page a:not(.ih-btn) { color: inherit; text-decoration: none; }
#ih-blog-page .ih-btn { text-decoration: none; }
#ih-blog-page img { max-width: 100%; display: block; }
#ih-blog-page p { margin: 0 0 20px; }
#ih-blog-page .ih-container { max-width: var(--ih-max-w); margin: 0 auto; padding: 0 24px; }
#ih-blog-page .ih-placeholder-img { background: linear-gradient(135deg, var(--ih-surface) 0%, #b8edce 100%); position: relative; }
#ih-blog-page .ih-placeholder-img::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(0,82,97,0.06) 20px, rgba(0,82,97,0.06) 21px); }
#ih-blog-page .ih-btn { display: inline-block; font-family: var(--ih-font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; border-radius: var(--ih-radius-sm); border: 2px solid transparent; cursor: pointer; transition: opacity 0.15s, background 0.15s; text-align: center; padding: 10px 22px; font-size: 0.95rem; }
#ih-blog-page .ih-btn--primary { background: #005261; color: #FFE65A; border-color: #005261; }
#ih-blog-page .ih-btn--primary:hover { background: #003d4a; color: #FFE65A; opacity: 1; }

/* HERO */
#ih-blog-page .ih-page-hero { position: relative; height: 55vh; min-height: 380px; max-height: 580px; overflow: hidden; display: flex; align-items: flex-end; background: var(--ih-deep); }
#ih-blog-page .ih-page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; z-index: 0; }
#ih-blog-page .ih-page-hero__content { position: relative; z-index: 2; width: 100%; padding-bottom: 40px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; height: 100%; }
#ih-blog-page .ih-page-hero__block { background: rgba(217,248,231,0.88); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); padding: 28px 36px; max-width: 560px; border-radius: 0; margin-bottom: 60px; }
#ih-blog-page .ih-page-hero__headline { font-family: var(--ih-font-head); font-weight: 800; font-size: 3.75rem; color: var(--ih-deep); text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.0; margin: 0 0 10px; }
#ih-blog-page .ih-page-hero__sub { font-family: var(--ih-font-body); font-size: 1.5rem; color: var(--ih-ink); margin: 0; font-weight: 600; line-height: 1.55; }

/* ARCHIVE SECTION */
.ih-blog-archive { background: #ffffff; padding: var(--ih-section-pad) 0; }

/* CATEGORY FILTER */
.ih-blog-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.ih-blog-filter__btn { font-family: var(--ih-font-head); font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 10px 20px; border-radius: var(--ih-radius-sm); border: 2px solid var(--ih-deep); color: var(--ih-deep); text-decoration: none; transition: background 0.15s, color 0.15s; }
.ih-blog-filter__btn:hover { background: var(--ih-deep); color: #FFE65A !important; }
.ih-blog-filter__btn.active { background: var(--ih-deep); color: #FFE65A !important; border-color: var(--ih-deep); }

/* POSTS GRID */
.ih-blog-archive__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 48px; }
.ih-blog-archive-card { background: var(--ih-surface); border-radius: var(--ih-radius-md); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 12px rgba(0,82,97,0.07); transition: transform 0.18s, box-shadow 0.18s; }
.ih-blog-archive-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,82,97,0.12); }
.ih-blog-archive-card__thumb-link { display: block; }
.ih-blog-archive-card__thumb { aspect-ratio: 16/9; overflow: hidden; }
.ih-blog-archive-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.ih-blog-archive-card:hover .ih-blog-archive-card__img { transform: scale(1.03); }
.ih-blog-archive-card__body { padding: 20px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.ih-blog-archive-card__cat { font-family: var(--ih-font-head); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #ffffff; background: var(--ih-deep); padding: 3px 10px; border-radius: 2px; display: inline-block; margin-bottom: 8px; align-self: flex-start; }
.ih-blog-archive-card__date { font-family: var(--ih-font-head); font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ih-deep); display: block; margin-bottom: 8px; opacity: 0.6; }
.ih-blog-archive-card__title { font-family: var(--ih-font-head); font-weight: 700; font-size: 1.6rem; line-height: 1.1; color: var(--ih-deep); margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.ih-blog-archive-card__title a { color: inherit; text-decoration: none; }
.ih-blog-archive-card__excerpt { font-family: var(--ih-font-body); font-size: 0.95rem; line-height: 1.6; color: var(--ih-ink); margin: 0 0 20px; flex: 1; }
.ih-blog-archive-card__cta { align-self: flex-start; margin-top: auto; }
.ih-blog-archive__empty { font-family: var(--ih-font-body); font-size: 1.25rem; color: var(--ih-ink); text-align: center; padding: 60px 0; }

/* PAGINATION */
.ih-blog-pagination { display: flex; justify-content: center; }
.ih-blog-pagination .page-numbers { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; flex-wrap: wrap; }
.ih-blog-pagination .page-numbers li a,
.ih-blog-pagination .page-numbers li span { font-family: var(--ih-font-head); font-size: 1rem; font-weight: 700; text-transform: uppercase; padding: 10px 18px; border: 2px solid var(--ih-deep); border-radius: var(--ih-radius-sm); color: var(--ih-deep); text-decoration: none; display: block; transition: background 0.15s, color 0.15s; }
.ih-blog-pagination .page-numbers li a:hover,
.ih-blog-pagination .page-numbers li span.current { background: var(--ih-deep) !important; color: #FFE65A !important; }
.ih-blog-pagination .page-numbers li a:hover * { color: #FFE65A !important; }

/* RESPONSIVE */
@media (max-width: 1024px) { .ih-blog-archive__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  #ih-blog-page .ih-page-hero__headline { font-size: 2.2rem; }
  .ih-blog-archive__grid { grid-template-columns: 1fr; }
  .ih-blog-filter { justify-content: center; }
}

.ih-blog-intro { background: #ffffff; padding: 60px 0 20px; text-align: center; }
.ih-blog-intro__desc { font-family: var(--ih-font-body); font-size: 1.25rem; line-height: 1.7; color: var(--ih-ink); text-align: center !important; max-width: 560px; margin: 0 auto !important; }

.ih-blog-band { background: var(--ih-bg); padding: 56px 0; border-bottom: 2px solid rgba(0,82,97,0.15); }
.ih-blog-band__text {
  font-family: var(--ih-font-body);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.7;
  color: var(--ih-deep);
  text-align: center !important;
  max-width: 600px;
  margin: 0 auto !important;
}


/* ============================================================
   BLOG HERO - MOBILE: image above, text block below
   ============================================================ */
@media (max-width: 768px) {
  #ih-blog-page .ih-page-hero {
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
    flex-direction: column !important;
    align-items: stretch !important;
    overflow: visible !important;
  }
  #ih-blog-page .ih-page-hero__bg {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 260px !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    z-index: 0 !important;
  }
  #ih-blog-page .ih-container.ih-page-hero__content,
  #ih-blog-page .ih-page-hero__content {
    position: relative !important;
    height: auto !important;
    padding: 0 !important;
    background: rgba(217, 248, 231, 0.97) !important;
    justify-content: flex-start !important;
    z-index: 2 !important;
  }
  #ih-blog-page .ih-page-hero__block {
    background: rgba(217, 248, 231, 0.97) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 24px 20px !important;
    max-width: 100% !important;
    margin-bottom: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    outline: none !important;
  }
  #ih-blog-page .ih-page-hero__headline {
    font-size: 2.4rem !important;
    color: var(--ih-deep) !important;
    margin-bottom: 10px !important;
  }
  #ih-blog-page .ih-page-hero__sub {
    color: var(--ih-ink) !important;
    margin-bottom: 0 !important;
  }
}