/* Projects and Blog pages. Cards are white with a red base so they
   look right on both light and dark page backgrounds. */

.pb-wrap { text-align: left; padding: 10px 0 50px; }

.pb-intro { max-width: 720px; margin: 0 auto 35px; text-align: center; color: #555555; font-size: 16px; line-height: 1.7; }

.pb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px; }

.pb-card { background: #ffffff; border: 1px solid #e3e3e3; border-bottom: 4px solid #ed1e24; display: flex; flex-direction: column; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: box-shadow .2s; }
.pb-card:hover { box-shadow: 0 8px 22px rgba(0,0,0,0.15); }

.pb-img { position: relative; aspect-ratio: 4 / 3; background: #262626; overflow: hidden; }
.pb-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-noimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #ed1e24; font-size: 44px; }
.pb-tag { position: absolute; left: 0; top: 14px; background: #ed1e24; color: #ffffff; padding: 4px 12px; font-size: 13px; line-height: 1.4; }

.pb-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.pb-meta { color: #777777; font-size: 13px; margin: 0 0 8px; }
.pb-meta span { margin-right: 14px; }
.pb-meta i { color: #ed1e24; margin-right: 5px; }
.pb-card .pb-title { font-size: 20px; line-height: 1.3; margin: 0 0 10px; color: #1d1d1d !important; text-transform: none; }
.pb-card .pb-title a { color: #1d1d1d; }
.pb-card .pb-title a:hover { color: #ed1e24; }
.pb-text { color: #555555; font-size: 15px; line-height: 1.7; margin: 0 0 16px; }
.pb-more { margin-top: auto; font-weight: 700; color: #ed1e24; }
.pb-more i { margin-left: 6px; }

.pb-cta { margin: 45px auto 0; text-align: center; }
.pb-cta p { color: #555555; font-size: 16px; margin: 0 0 16px; }
.pb-btn { display: inline-block; background: #ed1e24; color: #ffffff !important; padding: 12px 28px; font-weight: 700; border: 0; }
.pb-btn:hover { background: #c4161b; color: #ffffff; }

.pb-empty { text-align: center; color: #555555; padding: 40px 0; }

/* Single blog post */
.pb-article { max-width: 860px; margin: 0 auto; background: #ffffff; border: 1px solid #e3e3e3; border-bottom: 4px solid #ed1e24; text-align: left; padding-bottom: 32px; }
.pb-article .pb-hero { aspect-ratio: 16 / 8; background: #262626; overflow: hidden; }
.pb-article .pb-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-article-head { padding: 28px 34px 0; }
.pb-article-head h2 { font-size: 30px; line-height: 1.25; color: #1d1d1d; margin: 0 0 10px; text-transform: none; }
.pb-article-body { padding: 14px 34px 0; color: #333333; font-size: 16px; line-height: 1.8; }
.pb-article-body h2 { font-size: 22px; color: #1d1d1d; margin: 26px 0 8px; text-transform: none; }
.pb-article-body p { margin: 0 0 14px; }
.pb-article-body ul { margin: 0 0 14px 22px; list-style: disc; }
.pb-article-body li { margin: 0 0 6px; }
.pb-article-body a { color: #ed1e24; }
.pb-article-foot { padding: 20px 34px 0; }
.pb-article-foot a { font-weight: 700; color: #ed1e24; }

@media (max-width: 575px) {
  .pb-article-head, .pb-article-body, .pb-article-foot { padding-left: 20px; padding-right: 20px; }
  .pb-article-head h2 { font-size: 24px; }
}
