/* BTools Immigration — rotating editorial cards. Scoped to avoid Kadence Blog changes. */
.bti-post-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:stretch;margin-top:24px}
.bti-post-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid rgba(26,39,52,.10);border-radius:14px;background:#fff;box-shadow:0 5px 20px rgba(27,35,45,.04);transition:transform .18s ease,box-shadow .18s ease}
.bti-post-card:hover{transform:translateY(-3px);box-shadow:0 10px 26px rgba(27,35,45,.10)}
.bti-post-card__media{display:flex;align-items:center;justify-content:center;overflow:hidden;aspect-ratio:16/9;background:#f3f4f5}
.bti-post-card__image{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain;object-position:center;transition:transform .25s ease}
.bti-post-card:hover .bti-post-card__image{transform:scale(1.025)}
.bti-post-card__body{display:flex;flex-direction:column;flex:1;gap:10px;padding:20px}
.bti-post-card__category{margin:0!important;color:var(--global-palette1,#d97726);font:700 12px/1.5 Sarabun,sans-serif;letter-spacing:.03em}
.bti-post-card__title{margin:0!important;font-family:"Taviraj",serif;font-size:clamp(17px,1.65vw,20px);font-weight:500;line-height:1.55;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:3.1em;max-height:3.1em}
.bti-post-card__title a{color:var(--global-palette3,#263442);text-decoration:none}
.bti-post-card__title a:hover{color:var(--global-palette1,#dd7c32)}
.bti-post-card__excerpt{margin:0!important;color:var(--global-palette4,#545e67);font-family:"Sarabun",sans-serif;font-size:14px;font-weight:400;line-height:1.75;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;min-height:5.25em;max-height:5.25em}
.bti-post-card__read-more{display:inline-flex;align-items:center;gap:6px;margin-top:auto;color:var(--global-palette1,#d97726);font:700 14px/1.6 Sarabun,sans-serif;text-decoration:none}
.bti-post-card__read-more:hover{text-decoration:underline}
.bti-post-cards__empty{margin:0;color:var(--global-palette4,#545e67)}
@media (max-width:1024px){.bti-post-cards{gap:16px}.bti-post-card__body{padding:16px}}
@media (max-width:767px){.bti-post-cards{grid-template-columns:1fr;gap:18px}.bti-post-card__title{font-size:19px}.bti-post-card__media{aspect-ratio:16/9}}
@media (prefers-reduced-motion:reduce){.bti-post-card,.bti-post-card__image{transition:none}.bti-post-card:hover,.bti-post-card:hover .bti-post-card__image{transform:none}}

/* Home resource header: archive link in upper right. */
.bti-home-resources__header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:8px}
.bti-home-resources__intro{flex:1;min-width:0}
.bti-home-resources__all{flex:0 0 auto;white-space:nowrap;margin-left:auto;margin-top:7px}
@media (max-width:767px){.bti-home-resources__header{flex-direction:column;gap:10px}.bti-home-resources__all{margin-top:0;align-self:flex-end}}
