/*
 * ============================================================
 * FISHMAN PR — BLOG CSS  (blog.css)
 * Shared by: blog-listing.html & blog-detail.html
 *
 * SAFETY CONTRACT:
 *   - NO bare element selectors outside .fpr-post-body scope
 *   - All rules prefixed .fpr-blog or .fpr-post
 *   - Font sizes in em
 *   - Font: Poppins (enqueue separately or via <link>)
 *   - Container max-width: 1440px (matches live site)
 *   - min-width: 0 on grid children prevents overflow blowout
 * ============================================================
 */

/* ============================================================
   CSS VARIABLES — scoped to both page roots
============================================================ */
.fpr-blog,
.fpr-post {
  --fpr-purple:     #93358D;
  --fpr-purple-dk:  #6e2669;
  --fpr-purple-lt:  #f5eaf4;
  --fpr-black:      #000000;
  --fpr-text:       #1a1a1a;
  --fpr-muted:      #666666;
  --fpr-border:     #e0e0e0;
  --fpr-bg:         #f2f2f2;
  --fpr-white:      #ffffff;
  --fpr-radius:     6px;
  --fpr-font:       'Poppins', sans-serif;

  font-family:      var(--fpr-font);
  color:            var(--fpr-text);
  background-color: var(--fpr-bg);
}

.fpr-blog *, .fpr-blog *::before, .fpr-blog *::after,
.fpr-post *, .fpr-post *::before, .fpr-post *::after {
  box-sizing: border-box;
}

/* ============================================================
   SHARED — PAGE INNER WRAPPER
============================================================ */
.fpr-page-inner {
  max-width: 1440px;
  margin-left:  auto;
  margin-right: auto;
  padding: 48px 40px 80px;
}

/* ============================================================
   SHARED — PAGE HEADER  (listing top / detail top)
============================================================ */
.fpr-page-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 3px solid var(--fpr-purple);
}

.fpr-page-header .fpr-eyebrow {
  display: block;
  font-size: 0.688em;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fpr-purple);
  margin-bottom: 8px;
}

/* H1 on listing page gets these styles via class */
.fpr-page-header .fpr-page-title {
  font-size: 2.25em;
  font-weight: 800;
  color: var(--fpr-black);
  line-height: 1.15;
  margin-top: 0;
  margin-bottom: 8px;
}

.fpr-page-header .fpr-page-desc {
  font-size: 1em;
  color: var(--fpr-muted);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   SHARED — CATEGORY TAB NAV
============================================================ */
.fpr-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
  list-style: none;
  padding: 0;
  margin-top: 0;
}

.fpr-cat-tabs a {
  display: inline-block;
  font-family: var(--fpr-font);
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 10px 22px;
  border: 2px solid var(--fpr-purple);
  border-radius: 3px;
  background: var(--fpr-white);
  color: var(--fpr-purple);
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}

.fpr-cat-tabs a:hover,
.fpr-cat-tabs a.is-active {
  background: var(--fpr-purple);
  color: var(--fpr-white);
  text-decoration: none;
}

/* ============================================================
   SHARED — TWO-COLUMN LAYOUT
============================================================ */
.fpr-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* Prevent grid children from overflowing their column */
.fpr-layout > * {
  min-width: 0;
}

/* ============================================================
   SHARED — SIDEBAR
============================================================ */
.fpr-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

/* Lead form */
.fpr-lead {
  background: var(--fpr-purple);
  color: var(--fpr-white);
  border-radius: var(--fpr-radius);
  padding: 28px 22px;
}

.fpr-lead .fpr-lead__eyebrow {
  display: block;
  font-size: 0.625em;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 6px;
}

.fpr-lead .fpr-lead__title {
  display: block;
  font-size: 1.2em;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 6px;
}

.fpr-lead .fpr-lead__desc {
  display: block;
  font-size: 0.8125em;
  opacity: 0.85;
  line-height: 1.55;
  margin-bottom: 18px;
}

.fpr-lead__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fpr-lead__form input[type="text"],
.fpr-lead__form input[type="email"] {
  font-family: var(--fpr-font);
  font-size: 0.8125em;
  padding: 10px 13px;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  color: var(--fpr-white);
  outline: none;
  width: 100%;
  transition: border-color 0.15s, background 0.15s;
}

.fpr-lead__form input[type="text"]::placeholder,
.fpr-lead__form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.55);
}

.fpr-lead__form input[type="text"]:focus,
.fpr-lead__form input[type="email"]:focus {
  border-color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.18);
}

.fpr-lead__form button {
  font-family: var(--fpr-font);
  font-size: 0.875em;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 12px 20px;
  background: var(--fpr-white);
  color: var(--fpr-purple);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s;
}

.fpr-lead__form button:hover {
  background: var(--fpr-purple-lt);
}

/* Sidebar widget box */
.fpr-widget {
  background: var(--fpr-white);
  border: 1px solid var(--fpr-border);
  border-radius: var(--fpr-radius);
  padding: 22px 20px;
}

.fpr-widget .fpr-widget__title {
  display: block;
  font-size: 0.9375em;
  font-weight: 700;
  color: var(--fpr-black);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--fpr-purple);
}

/*
  Sidebar dynamic lists (Popular Articles, Categories):
  Developer pulls these as plain ul > li > a — no classes needed.
  We style them via descendant selectors from .fpr-widget.
*/
.fpr-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fpr-widget ul li {
  border-bottom: 1px solid var(--fpr-border);
}

.fpr-widget ul li:last-child {
  border-bottom: none;
}

.fpr-widget ul li a {
  display: block;
  padding: 10px 0;
  font-size: 0.8125em;
  font-weight: 600;
  color: var(--fpr-text);
  text-decoration: none;
  line-height: 1.45;
  transition: color 0.15s;
}

.fpr-widget ul li a:hover {
  color: var(--fpr-purple);
  text-decoration: none;
}

/* ============================================================
   SHARED — CATEGORY BADGE (span)
============================================================ */
.fpr-badge {
  display: inline-block;
  font-size: 0.625em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
}

.fpr-badge--founder  { background: var(--fpr-purple-lt); color: var(--fpr-purple); }
.fpr-badge--industry { background: #e4f0f5;              color: #2c6e8a;            }
.fpr-badge--inhouse  { background: #e4f2eb;              color: #2e7d52;            }

/* ============================================================
   SHARED — READ MORE LINK
============================================================ */
.fpr-read-more {
  display: inline-block;
  font-size: 0.8125em;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--fpr-purple);
  text-decoration: none;
  border-bottom: 2px solid var(--fpr-purple);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

.fpr-read-more:hover {
  color: var(--fpr-purple-dk);
  border-color: var(--fpr-purple-dk);
  text-decoration: none;
}

/* ============================================================
   SHARED — PAGINATION
============================================================ */
.fpr-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.fpr-pagination a,
.fpr-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 3px;
  border: 1.5px solid var(--fpr-border);
  background: var(--fpr-white);
  font-size: 0.8125em;
  font-weight: 600;
  color: var(--fpr-text);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.fpr-pagination a:hover,
.fpr-pagination span.is-active {
  background: var(--fpr-purple);
  border-color: var(--fpr-purple);
  color: var(--fpr-white);
  text-decoration: none;
}

/* ============================================================
   BLOG LISTING — CARD GRID
============================================================ */
.fpr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Post card */
.fpr-card {
  background: var(--fpr-white);
  border-radius: var(--fpr-radius);
  border: 1px solid var(--fpr-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.fpr-card:hover {
  box-shadow: 0 8px 28px rgba(147,53,141,0.12);
  transform: translateY(-3px);
}

/* Card image — 3:2 ratio keeps images shorter than 16:9 */
.fpr-card__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.fpr-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.fpr-card__body h2 {
  font-size: 1.0625em;
  font-weight: 700;
  color: var(--fpr-black);
  line-height: 1.35;
  margin-top: 0;
  margin-bottom: 10px;
}

.fpr-card__body p {
  font-size: 0.875em;
  color: var(--fpr-muted);
  line-height: 1.65;
  margin-top: 0;
  margin-bottom: 16px;
  flex: 1;
}

.fpr-card__meta {
  font-size: 0.75em;
  color: #999;
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
}

.fpr-card__meta li {
  list-style: none;
}

.fpr-card__meta li + li::before {
  content: '·';
  margin: 0 7px;
  color: #ccc;
}

/* ============================================================
   BLOG DETAIL — ARTICLE COLUMN
============================================================ */

/* Hero image */
.fpr-post-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: var(--fpr-radius);
  margin-bottom: 24px;
}

/* Article title */
.fpr-post-title {
  font-size: 2em;
  font-weight: 800;
  color: var(--fpr-black);
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 16px;
}

/* Meta row */
.fpr-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 0.8125em;
  color: var(--fpr-muted);
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--fpr-border);
}

.fpr-post-meta__author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--fpr-text);
}

.fpr-post-meta__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--fpr-purple);
  color: var(--fpr-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75em;
  font-weight: 700;
  flex-shrink: 0;
}

.fpr-post-meta__divider {
  width: 1px;
  height: 14px;
  background: var(--fpr-border);
}

/* Article body
   Scoped to .fpr-post-body — safe to style elements here
   because they cannot match anything outside this wrapper */
.fpr-post-body {
  font-size: 1em;
  line-height: 1.8;
  color: var(--fpr-text);
}

.fpr-post-body h2 {
  font-size: 1.4em;
}

.fpr-post-body h3 {
  font-size: 1.15em;

}



.fpr-post-body a {
  color: var(--fpr-purple);
}

.fpr-post-body a:hover {
  color: var(--fpr-purple-dk);
}

.fpr-post-body strong {
  font-weight: 700;
  color: var(--fpr-black);
}



.fpr-post-body hr {
  border: none;
  border-top: 2px solid var(--fpr-border);
  margin: 2em 0;
}

/* Stat callout */
.fpr-stat {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--fpr-purple-lt);
  border-left: 4px solid var(--fpr-purple);
  border-radius: 0 var(--fpr-radius) var(--fpr-radius) 0;
  padding: 18px 22px;
  margin: 1.75em 0;
}

.fpr-stat__number {
  font-size: 2.75em;
  font-weight: 800;
  color: var(--fpr-purple);
  line-height: 1;
  flex-shrink: 0;
}

.fpr-stat__label {
  font-size: 0.9375em;
  color: var(--fpr-text);
  line-height: 1.5;
}

/* Post tags */
.fpr-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 2px solid var(--fpr-border);
}

.fpr-post-tags strong {
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fpr-muted);
}

.fpr-post-tags a {
  font-size: 0.75em;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid var(--fpr-border);
  color: var(--fpr-text);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.fpr-post-tags a:hover {
  border-color: var(--fpr-purple);
  color: var(--fpr-purple);
  text-decoration: none;
}

/* Author bio */
.fpr-author-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--fpr-white);
  border: 1px solid var(--fpr-border);
  border-radius: var(--fpr-radius);
  padding: 22px;
  margin-top: 36px;
}

.fpr-author-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--fpr-purple);
  color: var(--fpr-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15em;
  font-weight: 700;
  flex-shrink: 0;
}

.fpr-author-card__name {
  font-size: 1em;
  font-weight: 700;
  color: var(--fpr-black);
  margin-bottom: 2px;
}

.fpr-author-card__role {
  font-size: 0.6875em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fpr-purple);
  margin-bottom: 8px;
}

.fpr-author-card__bio {
  font-size: 0.875em;
  color: var(--fpr-muted);
  line-height: 1.6;
  margin: 0;
}

/* Related posts */
.fpr-related {
  margin-top: 44px;
}

.fpr-related__heading {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--fpr-black);
  margin-top: 0;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--fpr-purple);
}

.fpr-related__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.fpr-related__card {
  background: var(--fpr-white);
  border: 1px solid var(--fpr-border);
  border-radius: var(--fpr-radius);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s, transform 0.18s;
}

.fpr-related__card:hover {
  box-shadow: 0 6px 22px rgba(147,53,141,0.1);
  transform: translateY(-2px);
  text-decoration: none;
}

.fpr-related__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.fpr-related__body {
  padding: 14px 16px 18px;
}

.fpr-related__title {
  font-size: 0.9375em;
  font-weight: 700;
  color: var(--fpr-black);
  line-height: 1.35;
  margin-top: 6px;
  margin-bottom: 6px;
}

.fpr-related__meta {
  font-size: 0.75em;
  color: #aaa;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .fpr-layout {
    grid-template-columns: 1fr;
  }

  .fpr-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Lead form spans full width on tablet */
  .fpr-sidebar > .fpr-lead {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .fpr-page-inner {
    padding: 32px 20px 56px;
  }

  .fpr-page-header .fpr-page-title {
    font-size: 1.625em;
  }

  .fpr-grid {
    grid-template-columns: 1fr;
  }

  .fpr-sidebar {
    grid-template-columns: 1fr;
  }

  .fpr-related__grid {
    grid-template-columns: 1fr;
  }

  .fpr-post-title {
    font-size: 1.5em;
  }

  .fpr-stat {
    flex-direction: column;
    gap: 8px;
  }

  .fpr-stat__number {
    font-size: 2em;
  }

  .fpr-author-card {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .fpr-page-inner {
    padding: 24px 16px 48px;
  }

  .fpr-post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .fpr-post-meta__divider {
    display: none;
  }

  .fpr-cat-tabs a {
    font-size: 0.6875em;
    padding: 9px 14px;
  }
}
