/* ==========================================================================
   Protectors International Limited — Insights / Blog page styles
   Loads AFTER css/style.css and uses its variables. The hero uses the
   shared .page-hero component; only list, card and modal styles live here.
   ========================================================================== */

/* Listing section ----------------------------------------------------------- */
.blog-section { padding: 72px 0 96px; background: var(--light-bg); }

/* Filter bar --------------------------------------------------------------- */
.blog-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.blog-filter {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--primary-blue);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: .9rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: all .18s var(--ease);
}
.blog-filter:hover { border-color: var(--primary-blue); }
.blog-filter.active { background: var(--deep-navy); border-color: var(--deep-navy); color: #fff; }

/* Card grid ---------------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--line); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.blog-card-body h3 { font-size: 1.35rem; line-height: 1.3; margin: 0; }
.blog-card-body p { margin: 0; color: var(--text-body); font-size: .95rem; line-height: 1.65; }

.blog-meta { display: flex; align-items: center; gap: 12px; font-size: .78rem; color: var(--text-muted); }
.blog-tag {
  background: var(--red-soft);
  color: var(--primary-red);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .7rem;
}

.blog-card .link-arrow {
  margin-top: auto;
  background: none; border: 0; padding: 0;
  color: var(--primary-red); font-weight: 700; font-size: .92rem;
  font-family: var(--font-body);
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
}
.blog-card .link-arrow i { transition: transform .3s var(--ease); }
.blog-card .link-arrow:hover { color: var(--red-deep); }
.blog-card .link-arrow:hover i { transform: translateX(5px); }

/* Article modal -------------------------------------------------------------- */
.blog-modal {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(7, 26, 51, .78);
  display: none; align-items: flex-start; justify-content: center;
  padding: 40px 16px; overflow-y: auto;
}
.blog-modal.open { display: flex; }
.blog-modal-dialog {
  background: #fff; border-radius: var(--radius); max-width: 780px; width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden; position: relative;
}
.blog-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(7, 26, 51, .8); color: #fff; font-size: 1.1rem; cursor: pointer;
}
.blog-modal-close:hover { background: var(--primary-red); }
.blog-modal-img img { width: 100%; max-height: 380px; object-fit: cover; display: block; }
.blog-modal-text { padding: 30px 34px 40px; }
.blog-modal-text h2 { font-size: 1.9rem; margin: 12px 0 18px; line-height: 1.25; }
.blog-modal-text p { color: var(--text-body); line-height: 1.75; margin-bottom: 14px; }

.blog-sources { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.blog-sources h4 {
  font-family: var(--font-body);
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 700; margin-bottom: 10px;
}
.blog-sources ul { padding-left: 18px; margin: 0; }
.blog-sources li { margin-bottom: 8px; font-size: .92rem; }
.blog-sources a { color: var(--primary-blue); text-decoration: underline; }
.blog-sources a:hover { color: var(--primary-red); }

.blog-disclaimer {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: .85rem; color: var(--text-muted); max-width: 52rem;
}

@media (max-width: 575.98px) {
  .blog-modal-text { padding: 24px 20px 32px; }
}

/* ==========================================================================
   Article pages (insights/<slug>.html)
   ========================================================================== */
.article-hero .lead-text { margin-top: 1.25rem; }
.article-hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin-top: 22px; font-size: .85rem; color: rgba(255,255,255,.66);
}
.article-hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: #ff6b74; display: inline-block; }
.article-hero-meta .blog-tag { background: rgba(255,107,116,.16); color: #ff8a93; }

.article-wrap { padding: 72px 0 40px; background: #fff; }
.article-body { max-width: 780px; margin: 0 auto; }
.article-figure { margin: 0 0 42px; }
.article-figure img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.article-body p { color: var(--text-body); font-size: 1.04rem; line-height: 1.85; margin-bottom: 20px; }
.article-body h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  margin: 44px 0 18px; letter-spacing: -.01em;
}
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 22px; color: var(--text-body); font-size: 1.02rem; line-height: 1.8; }
.article-body li { margin-bottom: 10px; }
.article-body li::marker { color: var(--primary-red); font-weight: 700; }
.article-body strong { color: var(--text-dark); }

.pull-quote {
  border-left: 3px solid var(--primary-red);
  background: var(--red-soft);
  padding: 22px 28px; margin: 34px 0; border-radius: 0 var(--radius) var(--radius) 0;
}
.pull-quote p {
  font-family: var(--font-display); font-style: italic;
  color: var(--deep-navy); font-size: 1.15rem; line-height: 1.6; margin: 0 0 8px;
}
.pull-quote cite { font-style: normal; font-size: .85rem; color: var(--text-muted); font-family: var(--font-body); }

.view-box {
  background: var(--light-bg); border: 1px solid var(--line);
  border-left: 3px solid var(--primary-blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 28px; margin: 36px 0;
}
.view-box h3 { font-size: .82rem; font-family: var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--primary-blue); margin-bottom: 10px; }
.view-box p { margin: 0; color: var(--text-dark); font-weight: 500; }

.article-sources { max-width: 780px; margin: 48px auto 0; padding: 28px 32px; background: var(--light-bg); border: 1px solid var(--line); border-radius: var(--radius); }
.article-sources h2 { font-size: .82rem; font-family: var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.article-sources ul { list-style: none; padding: 0; margin: 0; }
.article-sources li { margin-bottom: 10px; font-size: .95rem; padding-left: 24px; position: relative; }
.article-sources li i { position: absolute; left: 0; top: 5px; color: var(--primary-red); font-size: .8rem; }
.article-note { max-width: 780px; margin: 18px auto 0; font-size: .84rem; color: var(--text-muted); }

.article-nav { padding: 30px 0 80px; background: #fff; }
.article-nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin: 0 auto; }
.article-nav-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; display: block; transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.article-nav-card:hover { border-color: var(--primary-red); transform: translateY(-3px); }
.article-nav-card span { display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; font-weight: 700; }
.article-nav-card.next { text-align: right; }
.article-nav-card h3 { font-size: 1.05rem; margin: 0; line-height: 1.35; }
.article-back-row { max-width: 980px; margin: 26px auto 0; text-align: center; }

@media (max-width: 767.98px) {
  .article-nav-grid { grid-template-columns: 1fr; }
  .article-nav-card.next { text-align: left; }
  .article-sources { padding: 22px 20px; }
}

/* Card titles and images are links on the listing page */
.blog-card-img { display: block; }
.blog-card-body h3 a { color: inherit; text-decoration: none; }
.blog-card-body h3 a:hover { color: var(--primary-red); }
