/* ==========================================================================
   Calculator page template (page-calculator.php)
   ========================================================================== */

.bc-calcs { padding: 60px 0 100px; }
.bc-calcs h4 { color: #0c3697; margin-bottom: 20px; }

/* Pill menu: matches the existing calculator buttons */
.bc-calc-nav-list { list-style: none; margin: 0; padding: 0; }
.bc-calc-nav-list li { margin: 0 0 9px; padding: 0; }
.bc-calc-nav-list a {
  display: block;
  max-width: 360px;
  padding: 12.5px 18px;
  border-radius: 52px;
  background: #ebebeb;
  color: #0362d1;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: background .5s ease;
}
.bc-calc-nav-list a:hover { background: #d2d2d2; color: #0362d1; }
.bc-calc-nav-list .current-menu-item > a {
  color: #ffffff;
  background: linear-gradient(90deg, #FF3818 0%, #3A319A 47%, #0352D1 100%);
}

/* Right column */
.bc-calc-content { padding-top: 46px; }
.bc-calc-content p { font-size: 18px; font-weight: 500; color: #0a2050; }
.bc-calc-content p.bc-calc-note { font-size: 13px; font-weight: 400; margin-top: 24px; }

/* Cards (optional, for the main Calculators page) */
.bc-calc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bc-calc-card {
  display: flex; flex-direction: column; gap: 10px; padding: 24px;
  border: 1px solid #d9d9d9; border-radius: 16px; text-decoration: none;
}
.bc-calc-card:hover { border-color: #0362d1; }
.bc-calc-card h3 { margin: 0; font-size: 20px; font-weight: 700; color: #0c3697; }
.bc-calc-content .bc-calc-card p { margin: 0; font-size: 15px; flex-grow: 1; }
.bc-calc-card span {
  align-self: flex-start; background: #FF3818; color: #ffffff;
  font-size: 14px; font-weight: 700; padding: 9px 20px; border-radius: 40px;
}

/* Vision Abacus calculators (heights from the Vision Abacus guide) */
.VisiCalcClass { display: block; width: 100%; min-height: 800px; border: 0; }
#Loan_Repayment_Calculator,
#Borrowing_Power_Calculator { min-height: 750px !important; }

@media (max-width: 991px) {
  .bc-calcs { padding: 40px 0 60px; }
  .bc-calc-content { padding-top: 24px; }
  .bc-calc-nav-list a { max-width: none; }
}

@media (max-width: 767px) {
  .bc-calc-cards { grid-template-columns: 1fr; }
  /* Calculator runs to the screen edges on mobile */
  .bc-calc-content iframe.VisiCalcClass { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
  #Loan_Repayment_Calculator,
  #Stamp_Duty_Calculator { min-height: 1250px !important; }
  #Borrowing_Power_Calculator { min-height: 1800px !important; }
  #Extra_Repayment_Calculator,
  #Lump_Sum_Repayment_Calculator { min-height: 1450px !important; }
  #Split_Loan_Calculator { min-height: 1550px !important; }
}
