/* page frame */
.archive .site-content{ padding-top:0 !important; margin-top:0 !important; }
.archive #primary{ margin-top:0 !important; padding-top:0 !important; }
.archive .ast-container,
.archive #content .ast-container{ max-width:1240px !important; padding-left:20px !important; padding-right:20px !important; }

.archive .ast-archive-description,
.archive .ast-archive-entry-banner,
.archive .page-header{
  background:transparent !important; padding:28px 0 0 !important;
  margin:0 !important; min-height:0 !important;
}
.archive .page-title,
.archive .ast-archive-title{
  display:block; width:100%; font-size:38px; font-weight:400; line-height:1.2; color:#444;
  margin:0 0 30px !important; padding:0 0 4px !important; border-bottom:2px solid #d9d9d9;
}

/* grid */
.archive .ast-row{
  display:grid; grid-template-columns:repeat(3,1fr); gap:24px;
  align-items:stretch; margin:0 !important; padding:0 !important;
}

/* card (rounded-lg, border-gray-100, bg-white, tiny shadow) */
.archive .ast-article-post{
  width:100% !important; max-width:none !important; float:none !important;
  padding:0 !important; margin:0 !important; background:transparent !important; box-shadow:none !important;
}
.archive .ast-article-inner{
  position:relative; display:flex; flex-direction:column; height:100%;
  background:#fff !important; border-radius:8px !important; overflow:hidden;
  border:1px solid #f3f4f6 !important; padding:0 !important; margin:0 !important;
  box-shadow:0 1px 2px rgba(0,0,0,.05) !important;
  transition:box-shadow .2s ease;
}
.archive .ast-article-inner:hover{ box-shadow:0 8px 24px rgba(0,0,0,.10) !important; }
.archive .post-content{ display:flex; flex-direction:column; flex:1; padding:0 !important; margin:0 !important; }

/* picture (h-56, w-full, object-cover) */
.archive .ast-blog-featured-section{ margin:0 !important; padding:0 !important; }
.archive .post-thumb-img-content{ display:block; overflow:hidden; margin:0 !important; }
.archive .post-thumb-img-content img{
  width:100% !important; height:auto !important; aspect-ratio:3 / 2 !important;
  object-fit:contain !important; object-position:center !important; background:#f3f4f6;
  border-radius:0 !important; display:block;
}
.archive .ast-taxonomy-container,
.archive .cat-links{ display:none !important; }

/* text blocks share the same padding (p-6) */
.archive .post-content > .entry-title,
.archive .post-content > .entry-header,
.archive .post-content > .ast-excerpt-container,
.archive .post-content > .entry-content{
  padding-left:24px !important; padding-right:24px !important; margin-left:0 !important; margin-right:0 !important;
}

/* title (text-lg font-medium text-gray-900) */
.archive .post-content > .entry-title{ margin:24px 0 6px !important; }
.archive .entry-title a{ font-size:18px; font-weight:500; line-height:1.4; color:#111827 !important; text-decoration:none; }
.archive .entry-title a:hover{ color:#2563eb !important; }
.archive .entry-title a::after{ content:""; position:absolute; inset:0; z-index:2; }

/* date */
.archive .post-content > .entry-header{ padding-top:0 !important; padding-bottom:0 !important; margin:0 0 8px !important; }
.archive .entry-meta{ position:static !important; margin:0 !important; padding:0 !important; }
.archive .entry-meta,
.archive .entry-meta *{ color:#9ca3af !important; font-size:13px !important; font-weight:400 !important; text-indent:0 !important; padding:0 !important; }
.archive .entry-meta .posted-on::before,
.archive .entry-meta .ast-icon{ display:none !important; }

/* short text (mt-2 line-clamp-3 text-sm text-gray-500) */
.archive .post-content > .ast-excerpt-container{ margin:0 !important; padding-bottom:0 !important; }
.archive .ast-excerpt-container p{
  color:#6b7280; font-size:14px; line-height:1.7; margin:0;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}

/* link (mt-4 text-sm font-medium text-blue-600), pinned to the bottom */
.archive .post-content > .entry-content{
  flex:1; display:flex; flex-direction:column; justify-content:flex-end;
  padding-top:16px !important; padding-bottom:24px !important; margin:0 !important;
}
.archive .post-content > .entry-content::after{
  content:"Find out more \2192"; color:#2563eb; font-weight:500; font-size:14px;
  transition:padding-left .2s ease;
}
.archive .ast-article-inner:hover .post-content > .entry-content::after{ padding-left:4px; }

/* pagination */
.archive .ast-pagination{ text-align:center; margin:50px 0 30px; padding:0; }
.archive .ast-pagination .nav-links{ display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:8px; }
.archive .ast-pagination .page-numbers{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:48px; height:48px; padding:0 16px; margin:0 !important;
  background:#111 !important; color:#fff !important; border-radius:0 !important;
  font-size:15px; line-height:1; text-decoration:none; transition:background .2s ease;
}
.archive .ast-pagination .page-numbers:hover,
.archive .ast-pagination .page-numbers.current{ background:var(--navy) !important; }
.archive .ast-pagination .page-numbers.dots{ background:transparent !important; color:#555 !important; min-width:0; padding:0 4px; }
.archive .ast-pagination .next.page-numbers,
.archive .ast-pagination .prev.page-numbers{ font-size:0; padding:0 22px; }
.archive .ast-pagination .next.page-numbers::after{ content:"Older News"; font-size:15px; }
.archive .ast-pagination .prev.page-numbers::after{ content:"Newer News"; font-size:15px; }
.archive .ast-pagination .page-numbers svg,
.archive .ast-pagination .page-numbers .ast-icon{ display:none !important; }

@media (max-width:921px){
  .archive .ast-row{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:600px){
  .archive .ast-row{ grid-template-columns:1fr; }
  .archive .page-title, .archive .ast-archive-title{ font-size:28px; }
  .archive .post-content > .entry-title,
  .archive .post-content > .entry-header,
  .archive .post-content > .ast-excerpt-container,
  .archive .post-content > .entry-content{ padding-left:16px !important; padding-right:16px !important; }
  .archive .post-content > .entry-title{ margin-top:16px !important; }
  .archive .post-content > .entry-content{ padding-bottom:16px !important; }
}

/* ---- EMPTY SECTION (no posts yet): friendly message instead of the default "can't find" + search box ---- */
.archive .no-results.not-found .page-content{
  max-width:640px; margin:26px auto 40px; padding:150px 30px 44px; text-align:center;
  background:#f7f9fc url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 24 24' fill='none' stroke='%231a3c6e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M6 3h9l4 4v14H6z'/><path d='M15 3v4h4'/><path d='M9 12h7M9 16h7'/></svg>") no-repeat center 44px;
  border:1px solid #e1e7f0; border-radius:14px; position:relative;
}
.archive .no-results.not-found .page-content::before{
  content:"Nothing here yet"; position:absolute; left:0; right:0; top:126px;
  font-size:26px; font-weight:700; color:var(--navy); line-height:1.3;
}
.archive .no-results.not-found .page-content{ padding-top:176px; }
.archive .no-results.not-found .page-content p{ margin:0; font-size:18px; line-height:1.7; color:#555; }
.archive .no-results.not-found .search-form{ display:none; }
@media (max-width:600px){
  .archive .no-results.not-found .page-content{ margin:14px 0 30px; padding:170px 18px 34px; }
  .archive .no-results.not-found .page-content::before{ font-size:22px; }
}
