/* ── Hero ───────────────────────────────────────────────────── */
.loans-hero {
  background:
    linear-gradient(135deg, rgba(10,20,34,0.92) 0%, rgba(13,27,42,0.85) 100%),
    url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1800&q=80') center/cover no-repeat;
  padding: 100px 0 36px !important;
}

.loans-hero h1 {
  font-size: clamp(32px, 4vw, 50px);
  margin-bottom: 12px;
  line-height: 1.1;
}

.loans-hero p {
  font-size: 16px;
  max-width: 480px;
}

/* ── Loan-type quick nav ────────────────────────────────────── */
.loan-jump {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 72px;
  z-index: 90;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.lj-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.lj-inner::-webkit-scrollbar { display: none; }

.lj-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 16px 24px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.lj-link svg { transition: color .2s; }
.lj-link:hover,
.lj-link.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}
.lj-link.active svg { color: var(--gold); }

/* ── Loan cards ─────────────────────────────────────────────── */
.loans-sec { padding: 52px 0 var(--pad-section); }

.loan-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .2s, border-color .25s;
}
.loan-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--gold-border);
}

.loan-aside {
  background: var(--navy);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.loan-icon-box {
  width: 52px;
  height: 52px;
  background: rgba(196,151,58,0.14);
  border: 1px solid rgba(196,151,58,0.28);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.loan-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold-light);
}

.loan-for {
  font-size: 11.5px;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
}

.loan-body { padding: 32px 36px; }

.loan-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.loan-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 22px;
}

.loan-hl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.hl {
  background: var(--fog);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
}

.hl-val {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold);
  line-height: 1;
}

.hl-lbl {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 4px;
}

.loan-pros {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
}

.loan-pro {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  background: var(--fog);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 5px;
}
.loan-pro::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  font-size: 11px;
}

/* ── Compare table ──────────────────────────────────────────── */
.compare-sec {
  padding: var(--pad-section);
  background: var(--fog);
  border-top: 1px solid var(--border);
}

.cmp {
  width: 100%;
  border-collapse: collapse;
  margin-top: 44px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.cmp th {
  background: var(--navy);
  color: var(--white);
  padding: 15px 20px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.cmp td {
  padding: 12px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
}

.cmp tr:last-child td { border-bottom: none; }
.cmp tr:nth-child(even) td { background: var(--fog); }
.cmp td:first-child { font-weight: 700; color: var(--text); font-size: 13px; }

.yes   { color: #16a34a; font-weight: 700; }
.no    { color: #94a3b8; }
.maybe { color: var(--gold); font-weight: 600; }

/* ── Calculator ─────────────────────────────────────────────── */
.calc-sec { padding: var(--pad-section); }

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.calc-box {
  background: var(--fog);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
}

.calc-field { margin-bottom: 18px; }

.calc-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin-bottom: 7px;
}

.calc-field input,
.calc-field select {
  width: 100%;
  padding: 11px 15px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}

.calc-field input:focus,
.calc-field select:focus {
  border-color: var(--gold-border);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.calc-result {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.calc-r-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
}

.calc-r-val {
  font-family: var(--font-display);
  font-size: 44px;
  color: var(--white);
  margin: 8px 0 4px;
  line-height: 1;
}

.calc-r-note { font-size: 11px; color: rgba(255,255,255,0.4); }

/* ── Responsive ─────────────────────────────────────────────── */
@media(max-width: 960px) {
  .loan-card { grid-template-columns: 1fr; }
  .loan-aside {
    flex-direction: row;
    justify-content: flex-start;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 18px 24px;
    gap: 16px;
  }
  .loan-icon-box { flex-shrink: 0; }
  .loan-hl { grid-template-columns: 1fr 1fr 1fr; }
  .calc-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media(max-width: 640px) {
  .loan-body { padding: 24px; }
  .loan-hl { grid-template-columns: 1fr 1fr; }
  .lj-link { padding: 14px 16px; font-size: 12px; }
}
