/* =========================================================
   Interest rates page
   ========================================================= */

.interest-page {
  --rate-plum: #6d1f52;
  --rate-purple: #7a50c2;
  --rate-gold: #c9a227;
  --rate-gold-light: #f1d37c;
  --rate-ink: #211824;
  --rate-muted: #766b78;
  --rate-line: rgba(109, 31, 82, 0.11);
  background: #fbf9fc;
}

.interest-hero {
  position: relative;
  padding: 92px 0 108px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgba(201, 162, 39, 0.22), transparent 24%),
    linear-gradient(125deg, #170d1c, #44183e 52%, #702257);
}

.interest-hero .container {
  position: relative;
  z-index: 2;
}

.interest-hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}

.interest-hero-shape-one {
  width: 340px;
  height: 340px;
  top: -180px;
  right: 8%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 45px rgba(255, 255, 255, 0.025);
}

.interest-hero-shape-two {
  width: 180px;
  height: 180px;
  left: -70px;
  bottom: -85px;
  background: rgba(201, 162, 39, 0.08);
}

.interest-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  margin-bottom: 20px;
  border: 1px solid rgba(241, 211, 124, 0.34);
  border-radius: 999px;
  color: var(--rate-gold-light);
  background: rgba(201, 162, 39, 0.1);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.interest-hero h1 {
  max-width: 720px;
  margin: 0 0 17px;
  color: #fff;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.interest-hero p {
  max-width: 650px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.75;
}

.interest-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.interest-primary-btn,
.interest-secondary-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.interest-primary-btn {
  color: #352707;
  background: linear-gradient(135deg, #c2911d, #e1bd52);
  box-shadow: 0 13px 28px rgba(201, 162, 39, 0.27);
}

.interest-primary-btn:hover {
  color: #2b2006;
  transform: translateY(-2px);
  box-shadow: 0 17px 34px rgba(201, 162, 39, 0.37);
}

.interest-secondary-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
}

.interest-secondary-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
}

.interest-summary {
  position: relative;
  max-width: 420px;
  margin-left: auto;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 55px rgba(10, 4, 12, 0.2);
  backdrop-filter: blur(14px);
}

.interest-summary::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -60px;
  top: -60px;
  border-radius: 50%;
  background: rgba(241, 211, 124, 0.1);
}

.interest-summary-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 15px;
  color: var(--rate-gold-light);
  background: rgba(201, 162, 39, 0.14);
  font-size: 21px;
}

.interest-summary > span {
  display: block;
  color: rgba(255, 255, 255, 0.63);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.interest-summary > strong {
  display: block;
  margin: 4px 0 10px;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.1;
}

.interest-summary > strong small {
  color: var(--rate-gold-light);
  font-family: var(--pr-font);
  font-size: 14px;
}

.interest-summary p {
  margin-bottom: 17px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  line-height: 1.6;
}

.interest-summary a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rate-gold-light);
  font-size: 12px;
  font-weight: 800;
}

/* Highlight strip */

.interest-highlights {
  position: relative;
  z-index: 3;
  padding: 0;
  margin-top: -38px;
  background: transparent;
}

.interest-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--rate-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(38, 20, 39, 0.1);
}

.interest-highlight-item {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 28px;
  border-right: 1px solid var(--rate-line);
}

.interest-highlight-item:last-child {
  border-right: 0;
}

.interest-highlight-icon,
.rate-card-icon,
.other-rate-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--rate-plum);
  background: linear-gradient(145deg, rgba(109, 31, 82, 0.1), rgba(122, 80, 194, 0.08));
}

.interest-highlight-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  font-size: 20px;
}

.interest-highlight-item div {
  display: flex;
  flex-direction: column;
}

.interest-highlight-item strong {
  color: var(--rate-ink);
  font-size: 18px;
}

.interest-highlight-item span:last-child {
  margin-top: 2px;
  color: var(--rate-muted);
  font-size: 11px;
}

/* Sections and cards */

.interest-rates-section {
  padding: 95px 0;
  background:
    radial-gradient(circle at 8% 0, rgba(201, 162, 39, 0.07), transparent 22%),
    #fbf9fc;
}

.loan-rates-section {
  background:
    radial-gradient(circle at 90% 10%, rgba(109, 31, 82, 0.07), transparent 24%),
    #f5eff6;
}

.interest-section-heading {
  max-width: 700px;
  margin: 0 auto 45px;
  text-align: center;
}

.interest-section-heading > span {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--rate-plum);
  background: rgba(109, 31, 82, 0.08);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.interest-section-heading h2 {
  margin: 13px 0 10px;
  color: var(--rate-ink);
  font-size: clamp(29px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.interest-section-heading p {
  margin: 0;
  color: var(--rate-muted);
  font-size: 15px;
}

.rate-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--rate-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(41, 22, 42, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rate-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 52px rgba(41, 22, 42, 0.12);
}

.rate-card-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--rate-line);
  background: linear-gradient(135deg, #fff, #fbf6fa);
}

.rate-card-icon {
  width: 47px;
  height: 47px;
  border-radius: 15px;
  font-size: 20px;
}

.rate-card-header > div {
  min-width: 0;
  flex: 1;
}

.rate-card-header > div > span {
  display: block;
  margin-bottom: 2px;
  color: var(--rate-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rate-card-header h3 {
  margin: 0;
  color: var(--rate-ink);
  font-size: 17px;
  line-height: 1.3;
}

.rate-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(201, 162, 39, 0.22);
  border-radius: 999px;
  color: #856812;
  background: rgba(201, 162, 39, 0.1);
  font-size: 10px;
  font-weight: 800;
}

/* Responsive tables */

.rate-table-wrap {
  width: 100%;
  overflow: hidden;
}

.rate-table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: #fff;
}

.rate-table-wide {
  min-width: 0;
}

.recurring-rate-wrap {
  overflow: hidden;
}

.interest-page .rate-table-wide th {
  white-space: normal;
}

.rate-table-wide th:first-child,
.rate-table-wide td:first-child {
  width: 18%;
}

.interest-page .rate-table th {
  padding: 14px 12px;
  border: 0 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  background: linear-gradient(135deg, #53163f, #842665) !important;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  white-space: normal;
  word-break: break-word;
}

.interest-page .rate-table th small {
  display: inline-block;
  margin-top: 4px;
  color: var(--rate-gold-light);
  font-size: 10px;
}

.interest-page .rate-table td {
  padding: 13px 12px;
  border: 0;
  border-right: 1px solid #f0eaf1;
  border-bottom: 1px solid #f0eaf1;
  color: #554b57;
  background: #fff;
  font-size: 12.5px;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  transition: background 0.2s ease;
}

.interest-page .rate-table td:first-child {
  color: var(--rate-ink);
  font-weight: 700;
  text-align: left;
}

.interest-page .rate-table tr:last-child td {
  border-bottom: 0;
}

.interest-page .rate-table tr:hover td {
  background: #fbf5f9;
}

.interest-page .rate-table .rate-featured-row td {
  color: #684f0c;
  background: rgba(201, 162, 39, 0.08);
  font-weight: 800;
}


/* Other products */

.other-rate-list {
  padding: 9px 18px 16px;
}

.other-rate-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 5px;
  border-bottom: 1px solid var(--rate-line);
}

.other-rate-item:last-child {
  border-bottom: 0;
}

.other-rate-icon {
  width: 39px;
  height: 39px;
  border-radius: 12px;
  font-size: 16px;
}

.other-rate-item > div {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.other-rate-item strong {
  color: var(--rate-ink);
  font-size: 13px;
}

.other-rate-item div span {
  margin-top: 2px;
  color: var(--rate-muted);
  font-size: 10.5px;
  line-height: 1.4;
}

.other-rate-item > b {
  flex: 0 0 auto;
  color: var(--rate-plum);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
}

.other-rate-item > b small {
  font-family: var(--pr-font);
  font-size: 9px;
}

/* Loan table and note */

.loan-rate-card {
  max-width: 980px;
  height: auto;
  margin: 0 auto;
}

.rate-card-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--rate-plum);
  background: rgba(109, 31, 82, 0.08);
  font-size: 10px;
  font-weight: 800;
}

.rate-card-action:hover {
  color: #fff;
  background: var(--rate-plum);
}

.loan-rate-table {
  min-width: 0;
}

.loan-rate-table td:nth-child(1),
.loan-rate-table th:nth-child(1) {
  width: 90px;
  text-align: center !important;
}

.loan-rate-table td:nth-child(2) {
  color: var(--rate-ink);
  font-weight: 650;
  text-align: left;
}

.loan-rate-table td:nth-child(2) i {
  width: 31px;
  height: 31px;
  display: inline-grid;
  place-items: center;
  margin-right: 9px;
  border-radius: 9px;
  color: var(--rate-plum);
  background: rgba(109, 31, 82, 0.08);
}

.loan-rate-table td:last-child strong {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  color: #765b0e;
  background: rgba(201, 162, 39, 0.1);
}

.interest-note {
  max-width: 980px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px auto 0;
  padding: 16px 18px;
  border: 1px solid rgba(109, 31, 82, 0.1);
  border-radius: 15px;
  color: var(--rate-muted);
  background: rgba(255, 255, 255, 0.65);
}

.interest-note > i {
  color: var(--rate-plum);
  font-size: 20px;
}

.interest-note p {
  flex: 1;
  margin: 0;
  color: inherit;
  font-size: 11.5px;
  line-height: 1.55;
}

.interest-note a {
  flex: 0 0 auto;
  color: var(--rate-plum);
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 991px) {
  .interest-hero {
    padding: 75px 0 92px;
  }

  .interest-summary {
    max-width: none;
    margin: 10px 0 0;
  }

  .interest-highlight-grid {
    grid-template-columns: 1fr;
  }

  .interest-highlight-item {
    min-height: 78px;
    border-right: 0;
    border-bottom: 1px solid var(--rate-line);
  }

  .interest-highlight-item:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 767px) {
  .interest-hero {
    padding: 64px 0 82px;
  }

  .interest-hero h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .interest-hero p {
    font-size: 14px;
  }

  .interest-rates-section {
    padding: 72px 0;
  }

  .rate-card-header {
    flex-wrap: wrap;
    padding: 14px 12px;
  }

  .rate-card-header h3 {
    font-size: 15px;
  }

  .interest-page .rate-table th {
    padding: 7px 3px;
    font-size: clamp(7px, 2.15vw, 9px);
    line-height: 1.25;
  }

  .interest-page .rate-table th small {
    margin-top: 1px;
    font-size: clamp(6px, 1.8vw, 8px);
  }

  .interest-page .rate-table td {
    padding: 7px 3px;
    font-size: clamp(8px, 2.4vw, 11px);
    line-height: 1.25;
  }

  .rate-table-wide th:first-child,
  .rate-table-wide td:first-child {
    width: 16%;
  }

  .loan-rate-table td:nth-child(1),
  .loan-rate-table th:nth-child(1) {
    width: 48px;
  }

  .loan-rate-table td:nth-child(2) i {
    width: 22px;
    height: 22px;
    margin-right: 5px;
    font-size: 11px;
  }

  .loan-rate-table td:last-child strong {
    padding: 4px 6px;
    font-size: 10px;
  }

  .other-rate-item {
    gap: 9px;
    padding: 10px 2px;
  }

  .other-rate-icon {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .other-rate-item strong {
    font-size: 12px;
  }

  .other-rate-item > b {
    font-size: 14px;
  }

  .rate-badge,
  .rate-card-action {
    margin-left: 0;
    font-size: 9px;
  }

  .interest-note {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .interest-note p {
    min-width: calc(100% - 40px);
  }

  .interest-note a {
    margin-left: 34px;
  }
}

@media (max-width: 480px) {
  .interest-eyebrow {
    font-size: 8.5px;
  }

  .interest-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .interest-primary-btn,
  .interest-secondary-btn {
    width: 100%;
  }

  .interest-summary {
    padding: 26px 22px;
    border-radius: 20px;
  }

  .interest-highlight-item {
    padding: 16px 18px;
  }

  .rate-card {
    border-radius: 17px;
  }

  .rate-card-header {
    padding: 12px 10px;
  }

  .rate-card-header h3 {
    font-size: 14px;
  }

  .interest-page .rate-table th {
    padding: 6px 2px;
    font-size: clamp(6.5px, 2vw, 8px);
  }

  .interest-page .rate-table td {
    padding: 6px 2px;
    font-size: clamp(7.5px, 2.2vw, 10px);
  }

  .rate-badge,
  .rate-card-action {
    margin-left: 0;
  }

  .other-rate-list {
    padding-right: 13px;
    padding-left: 13px;
  }
}
