/* =========================================
   Home page layout (cleaned)
   ========================================= */

/* HERO */
.hero {
  padding: 48px 16px 60px;
  background: transparent; /* continuous background handled by body.home */
}

.hero-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  margin: 0 auto 10px;
  max-width: 640px;            /* keeps headline no wider than the search bar */
  font-size: 24px;             /* smaller than 38px */
  line-height: 1.12;           /* calmer spacing */
  letter-spacing: -0.02em;
  font-weight: 750;            /* strong but less “shouty” */
  color: rgba(15, 23, 42, 0.90);
  text-wrap: balance;
}

.hero-subtitle {
  margin: 0 auto 14px;
  max-width: 680px;
  font-size: 18px;
  color: var(--muted);
}

/* Search bar (shape is forced by main.css radius override) */
.hero-search {
  display: flex;
  gap: 8px;

  /* slightly narrower (optional, you said you're ok with it) */
  max-width: 640px;

  margin: 0 auto;
  padding: 6px;

  /* one clean container */
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(59, 130, 246, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* remove the inner "box" */
.hero-search input {
  flex: 1;
  padding: 10px 12px;

  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
}

.icon-btn {
  width: 52px;
  height: 40px;
  display: inline-grid;
  place-items: center;

  background: rgba(46, 120, 196, 0.92);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.30);
  cursor: pointer;
}
.icon-btn svg { color: #fff; }

/* CTA */
.cta-row { padding: 18px 16px 36px; }

.cta-card {
  max-width: 780px;
  margin: 0 auto;
  padding: 22px;
  text-align: center;
}

.btn-primary {
  display: inline-block;
  padding: 12px 18px;
  background: rgba(46, 120, 196, 0.90);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.10);
  font-weight: 600;
}



.cta-actions{
  margin-top: 10px;
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}

.btn-secondary{
  display:inline-block;
  padding: 12px 18px;
  text-decoration:none;
  font-weight:600;
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(0,0,0,0.14);
  color: var(--ink);
}

.btn-primary,
.btn-secondary{
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.btn-primary:hover{
  background: rgba(46, 120, 196, 1.0);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

.btn-secondary:hover{
  background: rgba(255,255,255,0.35);
  border-color: rgba(0,0,0,0.22);
  transform: translateY(-1px);
}


#activity { scroll-margin-top: 90px; }



.cta-icon { margin-bottom: 6px; }
.cta-icon svg,
.tile-icon svg {
  color: rgba(46, 120, 196, 0.92);
}

/* CONTENT GRID */
.content { padding: 12px 16px 22px; }

.grid-70-30 {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 18px;
  align-items: start;
}

/* Right column becomes a stacked rail (companies + motivation) */
.home-rail {
  display: flex;
  flex-direction: column;
  margin-top: 16px; /* matches .card default spacing */
}

.home-rail .card { margin-top: 0; }
.home-rail .card + .card { margin-top: 16px; }

.rail-motivation h3 { margin: 0 0 8px; }
.rail-motivation p { margin: 0; }

.rail-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}


/* Section headers */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.section-head h3 { margin-bottom: 0; }

/* Companies rail rows */
.company-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

/* Stories stream */
.story-list {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0;
}

.story-item {
  padding: 12px 0 14px;
  border-bottom: 1px solid var(--line);
}
.story-item:last-child { border-bottom: 0; }

.story-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.story-company {
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
}

.story-date {
  font-size: 12px;
  color: rgba(0,0,0,0.55);
}

.story-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.story-meta .badge {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.40);
  padding: 3px 8px;
}

.story-excerpt {
  margin-top: 8px;
  color: rgba(0,0,0,0.78);
  line-height: 1.45;
}

.story-link { margin-top: 8px; }
.rail-link { margin-top: 10px; text-align: right; }

/* =========================================
   Ribbon tiles (continuous horizontal strip)
   ========================================= */

.band-ribbon {
  position: relative;
  padding: 0;
  background: transparent;
}

.band-ribbon::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(255,255,255,0.35);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ribbon-inner {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 16px 16px 18px;
}

.ribbon .value-tiles {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: transparent;
  border: 0;
}

.ribbon .value-tiles .tile {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 16px 18px;
}

.ribbon .value-tiles .tile + .tile {
  border-left: 1px solid var(--line);
}

.tile h4 { margin: 6px 0 6px; }
.tile p { margin: 0; }

@media (max-width: 900px) {
  .grid-70-30 { grid-template-columns: 1fr; }

  .ribbon .value-tiles {
    grid-template-columns: 1fr;
  }
  .ribbon .value-tiles .tile + .tile {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .hero h1 { font-size: 30px; }
}

/* =========================================================
   Step 28: continuous background + floating panels (LOCKED)
   ========================================================= */

body.home {
  background:
    radial-gradient(1200px 520px at 50% 0%, rgba(59, 130, 246, 0.18), rgba(255,255,255,0)),
    radial-gradient(900px 420px at 15% 40%, rgba(99, 102, 241, 0.14), rgba(255,255,255,0)),
    radial-gradient(900px 420px at 85% 55%, rgba(147, 51, 234, 0.10), rgba(255,255,255,0)),
    linear-gradient(180deg, rgba(245, 247, 255, 1) 0%, rgba(255,255,255,1) 60%, rgba(255,255,255,1) 100%);
}

/* Full-bleed home so everything shares one atmosphere */
body.home main.container {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Keep key blocks aligned */
body.home .hero-inner,
body.home .cta-card,
body.home .grid-70-30,
body.home .ribbon-inner,
body.home .footer-inner {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

/* Floating panels (less segmented) */
/* Floating panels: less "popup white", more "blended glass" */
body.home .card,
body.home .cta-card {
  border: 1px solid rgba(59, 130, 246, 0.14); /* faint bluish edge */
  background: linear-gradient(
    180deg,
    rgba(248, 251, 255, 0.62),
    rgba(245, 248, 255, 0.38)
  ); /* slightly blue-tinted, not pure white */
  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.06); /* softer, smaller shadow */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}


body.home .grid-70-30 {
  padding: 0 16px 10px;
}

/* softer dividers */
body.home .section-head {
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}
body.home .list li,
body.home .story-item {
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}

/* hero spacing under nav */
body.home .hero {
  padding-top: 34px;
}

/* =========================
   Company page (layout + rail)
   ========================= */

.company-page .company-kv{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin-top:10px;
}

.company-page .ratings-row{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  align-items:flex-end;
}

.company-page .rating-kv{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.company-page .company-grid{
  margin-top: 16px;
  display:grid;
  grid-template-columns: 1.7fr 1fr;
  gap:18px;
  align-items:start;
}

.company-page .company-rail{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.company-page .people-list{
  list-style:none;
  padding-left:0;
  margin: 10px 0 0;
}

.company-page .people-list li{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-bottom: 1px solid var(--line);
}

.company-page .people-list li:last-child{
  border-bottom: 0;
}

.company-page .people-count a{
  font-weight:700;
  text-decoration: underline;   /* not capsule/box */
}

.company-page .company-links{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  align-items:center;
}

/* Mobile */
@media (max-width: 900px){
  .company-page .company-grid{
    grid-template-columns: 1fr;
  }
}

/* =========================
   Companies index page polish
   ========================= */

.companies-page .companies-head{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:12px;
  flex-wrap:wrap;
}

.companies-page .companies-head h2{ margin:0; }

.companies-page .company-search{
  margin-top: 12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:end;
}

/* Search bar "glass" style like homepage (but smaller) */
.companies-page .searchbar{
  display:flex;
  gap:8px;
  align-items:center;
  padding: 6px;
  background: rgba(255, 255, 255, 0.30);
  border: 1px solid rgba(59, 130, 246, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.companies-page .searchbar input{
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
  padding: 10px 12px;
  min-width: 260px;
}

.companies-page .company-search .btn-primary{
  padding: 10px 14px;
}

/* Company list rows (remove capsule count vibe) */
.companies-page .company-list{
  list-style:none;
  padding-left:0;
  margin: 10px 0 0;
}

.companies-page .company-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.companies-page .company-row:last-child{
  border-bottom: 0;
}

.companies-page .company-left{
  display:flex;
  align-items:baseline;
  gap:12px;
  flex-wrap:wrap;
}

.companies-page .company-name{
  font-weight: 800;
  text-decoration: none;
}

.companies-page .company-meta{
  color: var(--muted);
  font-size: 12px;
}

/* “View stories” as a plain link (not a boxed button) */
.companies-page .company-actions a{
  text-decoration: underline;
  font-weight: 600;
}

/* Companies: ensure the label is NOT a capsule/badge */
.companies-page .companies-label{
  display: inline;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Make Reset look like a proper secondary button */
.companies-page .btn-secondary{
  padding: 10px 14px;
}

/* ============================
   Companies page: 3-line rows
   ============================ */

/* Force each company row to be vertical (3 lines) */
.companies-page .company-row{
  display: block !important;
  padding: 18px 0;
}

/* Line 1: company name only, far-left */
.companies-page .company-name-line{
  margin-bottom: 10px;
}

.companies-page .company-name{
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

/* Line 2: stats in the middle + CTA far right */
.companies-page .company-stats-row{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

/* Keep stats from drifting based on name length */
.companies-page .stats-left{
  min-width: 220px;
}

.companies-page .stats-mid{
  flex: 1;
  display: flex;
  justify-content: center; /* keeps ratings in the middle area */
}

/* Right side CTA stays far right */
.companies-page .stats-cta{
  min-width: 170px;
  display: flex;
  justify-content: flex-end;
}

/* Key/value tighten (reduce big gaps) */
.companies-page .stat-line{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0;
}

.companies-page .stat-label{
  color: var(--muted);
  font-size: 13px;
}

.companies-page .stat-value{
  font-weight: 700;
}

/* Subratings grid: 2 columns (clarity/prep, comm/fairness) */
.companies-page .subratings{
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 10px 18px;
}

.companies-page .subrating{
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.companies-page .subrating-label{
  color: var(--muted);
  font-size: 13px;
}

.companies-page .subrating-value{
  font-weight: 700;
}

/* Line 3: centered Details */
.companies-page .company-details-row{
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

/* Make Details look like a button */
.companies-page .btn-details{
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,0.14);
  background: rgba(255,255,255,0.25);
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
}
.companies-page .btn-details:hover{
  background: rgba(255,255,255,0.35);
  border-color: rgba(0,0,0,0.22);
}

/* Home rail: remove outer card feel */
body.home .panel-companies{
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

/* Center the heading relative to the company boxes area */
body.home .panel-companies .rail-title{
  text-align: center;
  margin-bottom: 12px;
}

/* Make companies appear as individual light boxes */
body.home .panel-companies .rail-grid{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

body.home .panel-companies .rail-item{
  margin: 0;
  padding: 0;
}

body.home .panel-companies .rail-item-link{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;

  border: 1px solid rgba(20, 35, 60, 0.12);
  border-radius: 10px;

  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 20px rgba(10, 20, 40, 0.06);

  text-decoration: none;
  color: inherit;

  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

body.home .panel-companies .rail-item-link:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(10, 20, 40, 0.10);
  border-color: rgba(20, 35, 60, 0.18);
}

body.home .panel-companies .rail-item-name{
  font-weight: 650;
}

body.home .panel-companies .rail-item-count{
  font-size: 12px;
  color: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 2px 8px;
}

/* Home left: Recent interview stories — remove outer box */
body.home .panel-stories{
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

/* Center heading relative to the story boxes */
body.home .panel-stories .rail-title{
  text-align: center;
  margin-bottom: 12px;
}

/* Make story list spacing match the “chip” style */
body.home .panel-stories .story-list{
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Each story becomes its own subtle “chip card” */
body.home .panel-stories .story-chip{
  padding: 14px 14px;
  margin: 0 0 12px 0;

  border: 1px solid rgba(20, 35, 60, 0.12);
  border-radius: 10px;

  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 20px rgba(10, 20, 40, 0.06);

  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

/* Pop on hover */
body.home .panel-stories .story-chip:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(10, 20, 40, 0.10);
  border-color: rgba(20, 35, 60, 0.18);
}

/* Remove any old divider lines if they exist */
body.home .panel-stories .story-item{
  border: 0;
}

/* Center the left heading like the right column */
body.home .panel-stories .rail-title{
  text-align: center !important;
}

/* Make the stage badge less like a capsule/pill */
body.home .panel-stories .badge{
  border-radius: 6px; /* more square */
  padding: 3px 8px;
  border: 1px solid rgba(20, 35, 60, 0.10);
  background: rgba(255, 255, 255, 0.35);
  color: rgba(15, 23, 42, 0.72);
}

/* Align the top of the two columns (left stories panel + right companies panel) */
body.home .panel-stories,
body.home .panel-companies{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Make both headings start at the same baseline */
body.home .panel-stories .section-head,
body.home .panel-companies .section-head{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Home grid: force both columns to start at the same top line */
body.home .home-grid{
  align-items: start;
}

/* Remove extra top spacing on the right rail column */
body.home .home-rail{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Ensure both headings have no top margin */
body.home .panel-stories .rail-title,
body.home .panel-companies .rail-title{
  margin-top: 5 !important;
}

/* Home rail “Browse all companies” as a clean button-link */
body.home .rail-link{
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

body.home .rail-link-btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 8px 10px;
  border-radius: 8px; /* not a pill */
  border: 1px solid rgba(20, 35, 60, 0.12);
  background: rgba(255, 255, 255, 0.35);

  text-decoration: none;
  font-weight: 650;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.78);

  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

body.home .rail-link-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(10, 20, 40, 0.10);
  border-color: rgba(20, 35, 60, 0.18);
}

/* Home stories: “Read more” as a subtle link-button */
body.home .panel-stories .story-link{
  margin-top: 10px;
}

body.home .panel-stories .story-link-btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(20, 35, 60, 0.12);
  background: rgba(255, 255, 255, 0.30);

  text-decoration: none;
  font-weight: 650;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.78);

  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

body.home .panel-stories .story-link-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(10, 20, 40, 0.10);
  border-color: rgba(20, 35, 60, 0.18);
}

/* Home search: pop more (no height change) */
body.home .hero-search{
  max-width: 720px;
  margin: 14px auto 0;
}

/* Make the whole search bar look “active” */
body.home .hero-search{
  border-radius: 12px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(20, 35, 60, 0.18);
  box-shadow: 0 18px 36px rgba(10, 20, 40, 0.12);
  transition: box-shadow 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

/* Ensure input itself stays clean */
body.home .hero-search input{
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(20, 35, 60, 0.22);
  border-radius: 10px;
}

/* Icon button matches */
body.home .hero-search .icon-btn{
  border-radius: 10px;
}

/* Subtle “pop” on hover (engagement) */
body.home .hero-search:hover{
  transform: translateY(-1px);
  box-shadow: 0 22px 44px rgba(10, 20, 40, 0.16);
  border-color: rgba(20, 35, 60, 0.24);
  background: rgba(255, 255, 255, 0.42);
}

/* Stronger focus ring when typing */
body.home .hero-search:focus-within{
  box-shadow: 0 26px 54px rgba(10, 20, 40, 0.18);
  border-color: rgba(25, 90, 255, 0.32);
  background: rgba(255, 255, 255, 0.50);
}

body.home .hero-search:focus-within input{
  border-color: rgba(25, 90, 255, 0.32);
}


/* Move the TOP border of the "You're not alone" box downward (content stays put) */
body.home .cta-row{
  padding-top: 54px;   /* increase this until it matches your screenshot vibe */
}

body.home .cta-icon{
  margin-top: -36px; /* makes the icon overlap the top edge */
}
