/* ═══════════════════════════════════════════════════════════════
   insights.css — WestFinanceBank Insights Hub
   Loaded on insights.html only (after base.css + inner-pages.css).
   Covers: featured card, article grid, market ticker, spotlights,
   newsletter strip, advisor quotes, pagination, search, no-results.
═══════════════════════════════════════════════════════════════ */


/* ───────────────────────────────────────────────────────────────
   FEATURED ARTICLE CARD
─────────────────────────────────────────────────────────────── */

.ins-featured {
  background: var(--white);
  padding: clamp(40px, 5vw, 72px) 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
}

.ins-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.07);
  text-decoration: none;
  box-shadow: 0 20px 64px rgba(0,0,0,.08);
  transition: box-shadow .35s cubic-bezier(.23,1,.32,1), transform .35s cubic-bezier(.23,1,.32,1);
  cursor: none;
}
.ins-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 96px rgba(0,0,0,.13);
}

/* Left: image / gradient panel */
.ifc-img {
  position: relative;
  min-height: clamp(260px, 32vw, 440px);
  display: flex;
  align-items: flex-end;
  padding: clamp(20px, 3vw, 32px);
  overflow: hidden;
}
/* Subtle scale on hover */
.ins-featured-card:hover .ifc-img::before {
  transform: scale(1.04);
}
.ifc-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  transition: transform .6s cubic-bezier(.23,1,.32,1);
}

.ifc-tag-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ifc-badge {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(201,168,76,.22);
  color: var(--gold-light);
  border: 1px solid rgba(201,168,76,.3);
  padding: 3px 10px;
  border-radius: 20px;
}

/* Right: text panel */
.ifc-body {
  background: var(--white);
  padding: clamp(28px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.ifc-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(0,0,0,.35);
  font-weight: 300;
  flex-wrap: wrap;
}
.ifc-meta strong { color: var(--navy); font-weight: 500; }
.ifc-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 300;
  color: var(--navy);
  line-height: 1.18;
  transition: color .2s;
}
.ins-featured-card:hover .ifc-title { color: var(--gold); }
.ifc-excerpt {
  font-size: clamp(13.5px, 1.3vw, 15.5px);
  color: var(--text);
  font-weight: 300;
  line-height: 1.75;
  flex: 1;
}
.ifc-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gold);
  margin-top: 8px;
  transition: gap .2s;
}
.ins-featured-card:hover .ifc-cta { gap: 10px; }


/* ───────────────────────────────────────────────────────────────
   ARTICLE GRID
─────────────────────────────────────────────────────────────── */

.ins-grid-section {
  background: var(--cloud);
  padding: clamp(48px, 6vw, 96px) 0;
}

/* Grid header row: title left, search right */
.ins-grid-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 52px);
  flex-wrap: wrap;
}

/* Search box */
.ins-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,.09);
  border-radius: 8px;
  padding: 10px 16px;
  min-width: clamp(200px, 28vw, 320px);
  transition: border-color .25s, box-shadow .25s;
}
.ins-search-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.12);
}
.ins-search-wrap svg { flex-shrink: 0; color: rgba(0,0,0,.28); }
.ins-search-input {
  border: none;
  outline: none;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--navy);
  background: transparent;
  width: 100%;
  font-weight: 300;
}
.ins-search-input::placeholder { color: rgba(0,0,0,.28); }

/* 3-column card grid */
.ins-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

/* Individual article card */
.ins-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  transition: all .35s cubic-bezier(.23,1,.32,1);
  cursor: none;
}
.ins-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 72px rgba(0,0,0,.1);
  border-color: rgba(201,168,76,.22);
}
.ins-card-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Card image panel */
.ins-card-img {
  height: clamp(140px, 16vw, 200px);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  overflow: hidden;
  transition: height .3s;
}
/* Subtle zoom on hover */
.ins-card:hover .ins-card-img { height: clamp(150px, 17vw, 210px); }

/* Premium label badge */
.ins-premium-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--navy);
  padding: 3px 9px;
  border-radius: 20px;
}

/* Card body */
.ins-card-body {
  padding: clamp(16px, 2vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.ins-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(0,0,0,.3);
  font-weight: 300;
}
.ins-card-title {
  font-family: var(--serif);
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.3;
  transition: color .2s;
  flex: 1;
}
.ins-card:hover .ins-card-title { color: var(--gold); }
.ins-card-excerpt {
  font-size: clamp(12.5px, 1.1vw, 13.5px);
  color: var(--text);
  font-weight: 300;
  line-height: 1.65;
}

/* Card footer: author left, read more right */
.ins-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,.05);
}
.ins-author {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ins-author-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-light), var(--slate));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 600;
  color: var(--gold-light);
  flex-shrink: 0;
}
.ins-author-name {
  font-size: 12px;
  color: var(--text);
  font-weight: 300;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ins-read-more {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gold);
  flex-shrink: 0;
  transition: opacity .2s;
}
.ins-card:hover .ins-read-more { opacity: .75; }

/* No results state */
.ins-no-results {
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 64px 24px;
  text-align: center;
}
.ins-no-results-icon { font-size: 40px; }
.ins-no-results-msg {
  font-size: 15px;
  color: var(--text);
  font-weight: 300;
  max-width: 360px;
  line-height: 1.65;
}

/* Pagination */
.ins-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(40px, 5vw, 64px);
  flex-wrap: wrap;
}
.ins-page-btn {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.1);
  background: var(--white);
  cursor: none;
  transition: all .25s;
}
.ins-page-btn:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-pale); }
.ins-page-btn--disabled { opacity: .35; pointer-events: none; }
.ins-page-nums { display: flex; align-items: center; gap: 4px; }
.ins-page-num {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.08);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--navy);
  text-decoration: none;
  cursor: none;
  transition: all .25s;
}
.ins-page-num:hover { border-color: var(--gold); color: var(--gold); }
.ins-page-num.active { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 500; }


/* ───────────────────────────────────────────────────────────────
   MARKET DATA TICKER BAR
─────────────────────────────────────────────────────────────── */

.ins-market-bar {
  background: var(--navy);
  padding: clamp(20px, 2.5vw, 28px) 0;
  border-top: 1px solid rgba(201,168,76,.1);
  border-bottom: 1px solid rgba(201,168,76,.1);
  overflow: hidden;
}
.ins-market-bar .section-wrap {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
}
.ins-mb-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
  border-right: 1px solid rgba(201,168,76,.2);
  padding-right: clamp(16px, 3vw, 32px);
}

/* Scrolling ticker container */
.ins-ticker {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;         /* Firefox */
  -ms-overflow-style: none;      /* IE/Edge */
  flex: 1;
}
.ins-ticker::-webkit-scrollbar { display: none; }

.ins-tick {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 clamp(16px, 2.5vw, 28px);
  flex-shrink: 0;
}
.it-name {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,.45);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.it-val {
  font-family: var(--serif);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 300;
  color: #fff;
  white-space: nowrap;
}
.it-chg {
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}
.ins-tick--up   .it-chg { color: #5BD48C; }
.ins-tick--down .it-chg { color: #fc8181; }

.ins-tick-div {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,.08);
  flex-shrink: 0;
}
.ins-tick-div--disclaimer { height: 0; width: 0; margin: 0; }

.it-disclaimer {
  font-size: 10px;
  color: rgba(255,255,255,.2);
  font-weight: 300;
  white-space: nowrap;
  padding-left: 16px;
  flex-shrink: 0;
}


/* ───────────────────────────────────────────────────────────────
   TOPIC SPOTLIGHTS
─────────────────────────────────────────────────────────────── */

.ins-spotlights {
  background: var(--white);
  padding: clamp(56px, 7vw, 96px) 0;
}

.ins-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.ins-spotlight {
  background: var(--cloud);
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 16px;
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all .3s;
  cursor: none;
}
.ins-spotlight:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
  border-color: rgba(201,168,76,.25);
  background: var(--gold-pale);
}

.isl-icon  { font-size: 34px; }
.isl-title { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px); font-weight: 400; color: var(--navy); }
.isl-desc  { font-size: 13.5px; color: var(--text); font-weight: 300; line-height: 1.7; }

.isl-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.isl-links li a {
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  font-weight: 300;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  transition: color .2s;
}
.isl-links li a::before {
  content: '→';
  color: var(--gold);
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 2px;
}
.isl-links li a:hover { color: var(--navy); }


/* ───────────────────────────────────────────────────────────────
   NEWSLETTER STRIP
─────────────────────────────────────────────────────────────── */

.ins-newsletter {
  background: var(--cloud);
  padding: clamp(32px, 4vw, 56px) 0;
  border-top: 1px solid rgba(0,0,0,.05);
  border-bottom: 1px solid rgba(0,0,0,.05);
}

.ins-nl-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 18px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(201,168,76,.18);
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.ins-nl-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.08) 0%, transparent 70%);
  pointer-events: none;
}

.ins-nl-left {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex: 1;
  min-width: 200px;
  position: relative;
  z-index: 1;
}
.ins-nl-icon   { font-size: 36px; flex-shrink: 0; }
.ins-nl-title  { font-family: var(--serif); font-size: clamp(18px, 2.2vw, 26px); font-weight: 300; color: #fff; margin-bottom: 6px; line-height: 1.2; }
.ins-nl-sub    { font-size: 13px; color: rgba(255,255,255,.45); font-weight: 300; line-height: 1.6; }

.ins-nl-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  min-width: min(280px, 100%);
}
.ins-nl-input {
  min-width: 220px;
  flex: 1;
  background: rgba(255,255,255,.07) !important;
  border-color: rgba(255,255,255,.15) !important;
  color: #fff !important;
}
.ins-nl-input::placeholder { color: rgba(255,255,255,.3) !important; }
.ins-nl-input:focus { border-color: var(--gold) !important; }
.ins-nl-btn { white-space: nowrap; flex-shrink: 0; }


/* ───────────────────────────────────────────────────────────────
   ADVISOR QUOTES STRIP
─────────────────────────────────────────────────────────────── */

.ins-advisors {
  background: var(--white);
  padding: clamp(56px, 7vw, 96px) 0;
}

.ins-advisor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.ins-advisor-card {
  background: var(--cloud);
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 16px;
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: all .3s;
  cursor: none;
}
.ins-advisor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 56px rgba(0,0,0,.08);
  border-color: rgba(201,168,76,.25);
}

.iac-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.iac-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-light), var(--slate));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-light);
  flex-shrink: 0;
}
.iac-name { font-size: 14px; font-weight: 500; color: var(--navy); }
.iac-role { font-size: 11.5px; color: var(--text); font-weight: 300; margin-top: 2px; }

.iac-quote {
  font-family: var(--serif);
  font-size: clamp(15px, 1.5vw, 18px);
  font-style: italic;
  font-weight: 300;
  color: var(--navy);
  line-height: 1.65;
  flex: 1;
  position: relative;
  padding-left: 18px;
  border-left: 2px solid var(--gold);
  margin: 0;
}

.iac-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  text-decoration: none;
  transition: opacity .2s;
}
.iac-link:hover { opacity: .7; text-decoration: underline; }


/* ───────────────────────────────────────────────────────────────
   UTILITY ADDITIONS
─────────────────────────────────────────────────────────────── */

/* Clear search button */
.ins-clear-search { margin-top: 4px; }

/* Article tag pills (also defined in index.css for the home page;
   duplicated here so insights.html works without loading index.css) */
.ntag {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 20px;
  position: relative;
  z-index: 1;
}
.tm  { background: rgba(201,168,76,.9);  color: var(--navy); }
.tt2 { background: rgba(30,47,85,.85);   color: #fff; border: 1px solid rgba(255,255,255,.18); }
.tw  { background: rgba(91,212,140,.85); color: #0a2e1a; }


/* ───────────────────────────────────────────────────────────────
   RESPONSIVE BREAKPOINTS
─────────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .ins-featured-card  { grid-template-columns: 1fr; }
  .ifc-img            { min-height: clamp(200px, 30vw, 320px); }
  .ins-grid           { grid-template-columns: repeat(2, 1fr); }
  .ins-spotlight-grid { grid-template-columns: repeat(2, 1fr); }
  .ins-advisor-grid   { grid-template-columns: repeat(2, 1fr); }
  .ins-nl-card        { flex-direction: column; gap: 28px; }
  .ins-nl-form        { width: 100%; }
  .ins-nl-input       { min-width: unset; }
}

@media (max-width: 860px) {
  .ins-grid-header    { flex-direction: column; align-items: flex-start; }
  .ins-search-wrap    { width: 100%; min-width: unset; }
  .ins-spotlight-grid { grid-template-columns: 1fr; }
  .ins-market-bar .section-wrap { flex-wrap: wrap; gap: 12px; }
  .ins-mb-label       { border-right: none; padding-right: 0; }
  .ins-ticker         { width: 100%; }
}

@media (max-width: 640px) {
  .ins-featured-card  { border-radius: 14px; }
  .ifc-body           { padding: 22px 20px; }
  .ins-grid           { grid-template-columns: 1fr; }
  .ins-advisor-grid   { grid-template-columns: 1fr; }
  .ins-pagination     { gap: 6px; }
  .ins-page-btn       { padding: 9px 14px; font-size: 12.5px; }
  .ins-page-num       { width: 34px; height: 34px; }
  .ins-nl-card        { padding: 22px 20px; }
  .ins-nl-left        { flex-direction: column; gap: 10px; }
  .ins-nl-form        { flex-direction: column; }
  .ins-nl-btn         { width: 100%; text-align: center; }
  .ins-spotlight-grid { grid-template-columns: 1fr; }
  .it-disclaimer      { display: none; }
}