/* ================================================================
   PANTHEION — Featured Insights CSS (pantheion-insights.css)
   Covers: featured-insights.html (index) + insights-post.html (single)
   ================================================================ */

/* ================================================================
   INSIGHTS INDEX — HERO
   ================================================================ */
.fi-hero {
  position: relative;
  height: auto;
  min-height: 56vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: calc(var(--nav-h) + 40px);
}
.fi-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 20% 50%, rgba(112,71,58,0.25) 0%, transparent 65%),
    linear-gradient(135deg, #1e1e30 0%, #30304a 55%, #1c1814 100%);
}
.fi-hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.5) 100%);
}
.fi-hero-content {
  position: relative; z-index: 2;
  padding: 0 6vw; max-width: 680px;
  opacity: 0; transform: translateY(16px);
  animation: fiFadeUp 0.8s 0.3s ease forwards;
}
@keyframes fiFadeUp { to { opacity:1; transform:none; } }
.fi-hero-eyebrow {
  font-size: 10px; font-weight: 600; letter-spacing: 4px;
  text-transform: uppercase; color: white;
  margin-bottom: 10px; display: block;
}
.fi-hero-title {
  font-family: var(--ff-display);
  font-size: clamp(46px, 4.2vw, 82px);
  font-weight: 300; color: white;
  line-height: 1.05; letter-spacing: -1px; margin-bottom: 14px;
}
.fi-hero-title em { font-style: italic; color: rgba(255,255,255,0.7); }
.fi-hero-sub {
  font-size: 15px; font-weight: 300;
  color: rgba(255,255,255,0.6); line-height: 1.7; max-width: 520px;
}

/* ================================================================
   FILTER BAR
   ================================================================ */
.fi-filter-bar {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 76px; z-index: 400;
}
.fi-filter-inner {
  display: flex; gap: 0;
  padding: 0 5vw;
  overflow-x: auto;
  scrollbar-width: none;
}
.fi-filter-inner::-webkit-scrollbar { display: none; }
.fi-filter-btn {
  flex-shrink: 0;
  padding: 0 20px; height: 48px;
  background: none; border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--ff-body); font-size: 12px;
  font-weight: 500; letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer; transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.fi-filter-btn:hover { color: var(--primary); }
.fi-filter-btn.active { color: var(--primary); border-bottom-color: var(--terra); }

/* ================================================================
   POSTS GRID — INDEX PAGE
   ================================================================ */
.fi-main {
  background: var(--bg);
  padding: 72px 5vw 80px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Featured large card */
.fi-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: white;
  border: 1px solid var(--border);
  margin-bottom: 40px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.fi-featured:hover {
  box-shadow: 0 8px 40px rgba(48,48,74,0.10);
  transform: translateY(-2px);
}
.fi-featured-img {
  display: block; overflow: hidden;
  aspect-ratio: 16/10;
}
.fi-featured-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.6s ease;
}
.fi-featured:hover .fi-featured-img img { transform: scale(1.04); }

.fi-featured-content {
  padding: 48px 44px;
  display: flex; flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--border);
}
.fi-featured-meta {
  display: flex; align-items: center;
  gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.fi-post-cat {
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--terra);
  border: 1px solid var(--terra);
  padding: 3px 10px;
}
.fi-post-date { font-size: 12px; color: var(--text-muted); }
.fi-post-read { font-size: 12px; color: var(--stone); }
.fi-featured-title {
  font-family: var(--ff-display);
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 400; color: var(--primary);
  line-height: 1.2; margin-bottom: 16px; letter-spacing: -0.3px;
}
.fi-featured-title a { color: inherit; text-decoration: none; transition: color 0.2s; }
.fi-featured-title a:hover { color: var(--terra); }
.fi-featured-excerpt {
  font-size: 14.5px; color: var(--text-muted);
  line-height: 1.8; margin-bottom: 24px; flex: 1;
}
.fi-featured-footer {
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.fi-post-author {
  font-size: 12px; font-weight: 500;
  color: var(--stone); letter-spacing: 0.3px;
}

/* Post grid — remaining articles */
.fi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.fi-card {
  background: white;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow 0.3s, transform 0.3s;
}
.fi-card:hover {
  box-shadow: 0 6px 28px rgba(48,48,74,0.09);
  transform: translateY(-2px);
}
.fi-card-img {
  display: block; overflow: hidden;
  aspect-ratio: 16/10; position: relative;
}
.fi-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.fi-card:hover .fi-card-img img { transform: scale(1.05); }
.fi-card-cat {
  position: absolute; bottom: 12px; left: 12px;
  font-size: 9px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: white; background: var(--terra);
  padding: 4px 10px;
}
.fi-card-body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.fi-card-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fi-card-title {
  font-family: var(--ff-display);
  font-size: 21px; font-weight: 500;
  color: var(--primary); line-height: 1.3; flex: 1;
}
.fi-card-title a { color: inherit; text-decoration: none; transition: color 0.2s; }
.fi-card-title a:hover { color: var(--terra); }
.fi-card-excerpt { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; }

.fi-read-more {
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--terra); text-decoration: none;
  transition: color 0.2s; margin-top: auto;
  display: inline-block; padding-top: 4px;
}
.fi-read-more:hover { color: var(--brown); }

.fi-empty {
  grid-column: 1 / -1;
  text-align: center; padding: 60px;
  color: var(--text-muted); font-size: 15px;
}
.fi-empty a { color: var(--terra); text-decoration: none; }

.fi-load-more { text-align: center; padding-top: 40px; }
.fi-load-note { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.fi-load-note a { color: var(--terra); text-decoration: none; }

/* CTA band */
.fi-cta {
  background: var(--primary);
  padding: 72px 5vw;
  border-top: 3px solid var(--terra);
}
.fi-cta-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 48px; max-width: 1100px; margin: 0 auto; flex-wrap: wrap;
}
.fi-cta-actions { display: flex; gap: 14px; flex-wrap: wrap; flex-shrink: 0; }

/* ================================================================
   ARTICLE POST PAGE — HERO
   ================================================================ */
.ap-hero {
  background: var(--bg-warm);
  padding-top: calc(76px + 64px);
  padding-bottom: 0;
  border-bottom: 1px solid var(--border);
}
.ap-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 5vw 48px;
}
.ap-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-muted);
  margin-bottom: 20px;
}
.ap-breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.ap-breadcrumb a:hover { color: var(--primary); }
.ap-breadcrumb span { color: var(--stone-light); }

.ap-hero-label {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--terra);
  border: 1px solid var(--terra);
  padding: 4px 12px;
  margin-bottom: 16px;
}
.ap-hero-title {
  font-family: var(--ff-display);
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 400; color: var(--primary);
  line-height: 1.08; letter-spacing: -0.5px;
  margin-bottom: 28px;
}

/* Meta row */
.ap-meta {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.ap-meta-author { display: flex; align-items: center; gap: 12px; }
.ap-author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-size: 14px; font-weight: 600;
  flex-shrink: 0;
}
.ap-author-name { display: block; font-size: 14px; font-weight: 600; color: var(--primary); }
.ap-author-role { display: block; font-size: 12px; color: var(--stone); }
.ap-meta-right { display: flex; align-items: center; gap: 8px; }
.ap-meta-date, .ap-meta-read { font-size: 13px; color: var(--text-muted); }
.ap-meta-dot { color: var(--stone-light); }

/* Share row */
.ap-share {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.ap-share-label { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--stone); }
.ap-share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text-muted);
  font-family: var(--ff-body); font-size: 12px; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: all 0.2s;
}
.ap-share-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ================================================================
   ARTICLE LAYOUT — content + sidebar
   ================================================================ */
.ap-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 5vw 80px;
  align-items: start;
}

/* ── ARTICLE COLUMN ── */
.ap-featured-img {
  margin: 0 0 40px;
}
.ap-featured-img img {
  width: 100%; display: block;
  max-height: 480px; object-fit: cover;
}
.ap-featured-img figcaption {
  font-size: 12px; color: var(--text-muted);
  font-style: italic; margin-top: 10px; line-height: 1.5;
  padding-top: 10px; border-top: 1px solid var(--border);
}

/* Body typography */
.ap-body { max-width: 680px; }
.ap-lede {
  font-size: 18px; font-weight: 400;
  color: var(--primary); line-height: 1.75;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  font-family: var(--ff-display);
}
.ap-body h2 {
  font-family: var(--ff-display);
  font-size: 28px; font-weight: 500;
  color: var(--primary); line-height: 1.2;
  margin: 40px 0 16px;
  letter-spacing: -0.3px;
}
.ap-body h2:first-child { margin-top: 0; }
.ap-body p {
  font-size: 16px; color: var(--text);
  line-height: 1.85; margin-bottom: 20px;
}
.ap-body strong { font-weight: 700; color: var(--primary); }
.ap-body em { font-style: italic; }
.ap-body a { color: var(--terra); text-decoration: none; border-bottom: 1px solid rgba(112,71,58,0.3); transition: border-color 0.2s; }
.ap-body a:hover { border-bottom-color: var(--terra); }

.ap-blockquote {
  margin: 36px 0;
  padding: 28px 32px;
  border-left: 3px solid var(--terra);
  background: var(--bg-warm);
}
.ap-blockquote p {
  font-family: var(--ff-display);
  font-size: 20px; font-weight: 400;
  font-style: italic; color: var(--primary);
  line-height: 1.6; margin-bottom: 0;
}

/* Author bio */
.ap-author-bio {
  display: flex; gap: 20px;
  align-items: flex-start;
  margin: 48px 0;
  padding: 28px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  max-width: 680px;
}
.ap-author-bio-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-size: 18px; font-weight: 600;
  flex-shrink: 0;
}
.ap-author-bio-text strong {
  display: block; font-size: 15px; font-weight: 700;
  color: var(--primary); margin-bottom: 6px;
}
.ap-author-bio-text p {
  font-size: 13.5px; color: var(--text-muted);
  line-height: 1.65; margin-bottom: 0;
}
.ap-author-bio-text a { color: var(--terra); text-decoration: none; }

/* Post nav */
.ap-post-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--border);
  margin: 48px 0; max-width: 680px;
}
.ap-post-nav-prev, .ap-post-nav-next {
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px 24px;
  background: var(--bg-warm);
  text-decoration: none;
  transition: background 0.2s;
}
.ap-post-nav-prev:hover, .ap-post-nav-next:hover { background: white; }
.ap-post-nav-next { text-align: right; }
.ap-nav-label {
  font-size: 10px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--stone);
}
.ap-nav-title { font-size: 14px; font-weight: 500; color: var(--primary); line-height: 1.4; }

/* Related posts */
.ap-related { max-width: 680px; margin-top: 48px; }
.ap-related-title {
  font-family: var(--ff-display); font-size: 26px;
  font-weight: 400; color: var(--primary);
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.ap-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ap-related-card {
  text-decoration: none;
  display: flex; flex-direction: column; gap: 10px;
  transition: opacity 0.2s;
}
.ap-related-card:hover { opacity: 0.85; }
.ap-related-img { overflow: hidden; aspect-ratio: 16/10; }
.ap-related-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.ap-related-card:hover .ap-related-img img { transform: scale(1.05); }
.ap-related-body { display: flex; flex-direction: column; gap: 6px; }
.ap-related-body h4 { font-family: var(--ff-display); font-size: 16px; font-weight: 500; color: var(--primary); line-height: 1.35; }

/* ── SIDEBAR ── */
.ap-sidebar { display: flex; flex-direction: column; gap: 32px; }
.ap-sidebar-sticky {
  position: sticky;
  top: calc(76px + 24px);
}
.ap-sidebar-enquiry {
  background: var(--primary);
  padding: 32px 28px;
}
.ap-sidebar-label {
  font-size: 9px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--terra);
  margin-bottom: 8px; display: block;
}
.ap-sidebar-heading {
  font-family: var(--ff-display); font-size: 24px;
  font-weight: 400; color: white; margin-bottom: 10px;
}
.ap-sidebar-body { font-size: 13.5px; color: rgba(255,255,255,0.55); line-height: 1.65; }
.ap-sidebar-projects {
  margin-top: 20px;
  display: flex; flex-direction: column; gap: 1px;
  background: rgba(255,255,255,0.08);
}
.ap-sidebar-project-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  text-decoration: none; transition: background 0.2s;
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.7);
}
.ap-sidebar-project-link:hover { background: rgba(255,255,255,0.1); color: white; }
.ap-sidebar-project-loc { font-size: 11px; color: rgba(255,255,255,0.35); font-weight: 400; }

.ap-sidebar-recent { background: var(--bg-warm); border: 1px solid var(--border); padding: 28px; }
.ap-sidebar-section-title {
  font-family: var(--ff-display); font-size: 20px;
  font-weight: 400; color: var(--primary);
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.ap-recent-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.ap-recent-list li { border-bottom: 1px solid var(--border); }
.ap-recent-list li:last-child { border-bottom: none; }
.ap-recent-list a {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 0; text-decoration: none; transition: opacity 0.2s;
}
.ap-recent-list a:hover { opacity: 0.75; }
.ap-recent-cat {
  font-size: 9px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--terra);
}
.ap-recent-title { font-size: 13px; font-weight: 500; color: var(--primary); line-height: 1.4; }
.ap-recent-date { font-size: 11px; color: var(--stone); }

.ap-sidebar-blueprint {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-top: 3px solid var(--terra);
  padding: 28px;
}
.ap-sidebar-blueprint h4 {
  font-family: var(--ff-display); font-size: 22px;
  font-weight: 400; color: var(--primary);
  margin-bottom: 8px;
}
.ap-sidebar-blueprint p { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; 
}
.page-post .site-nav {
  background: rgba(48, 48, 74, 0.96) !important;
}
/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1060px) {
  .fi-grid { grid-template-columns: 1fr 1fr; }
  .ap-layout { grid-template-columns: 1fr; max-width: 720px; }
  .ap-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .ap-sidebar-sticky { position: static; grid-column: 1 / -1; }
  .ap-related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .fi-featured { grid-template-columns: 1fr; }
  .fi-featured-img { aspect-ratio: 16/9; }
  .fi-featured-content { border-left: none; border-top: 1px solid var(--border); padding: 32px 28px; }
  .ap-sidebar { grid-template-columns: 1fr; }
  .ap-post-nav { grid-template-columns: 1fr; }
  .ap-post-nav-next { text-align: left; }
}

@media (max-width: 640px) {
  .fi-hero { height: auto; min-height: 0; align-items: center; padding-top: calc(var(--nav-h) + 24px); padding-bottom: calc(var(--nav-h) + 24px); }
  .fi-grid { grid-template-columns: 1fr; }
  .fi-main { padding: 48px 5vw 64px; }
  .fi-cta-actions { flex-direction: column; width: 100%; }
  .ap-hero-inner { padding: 0 5vw 36px; }
  .ap-layout { padding: 40px 5vw 60px; }
  .ap-related-grid { grid-template-columns: 1fr; }
  .ap-share { gap: 6px; }
  .ap-share-btn { padding: 6px 10px; font-size: 11px; }
}
