* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "BuenosAires"; }

:root {
  --charcoal: #424242;
  --green: #195057;
  --teal: #287781;
  --gold: #F2C230;
  --card-bg: #FAFAFA;
}

/* ===================== HERO — navbar spacing fix ===================== */
.calcHero {
  max-width: 1440px;
  margin: 0 auto 0;
  padding: 140px 4% 0; /* pushes content below fixed navbar */
}

.breadcrumb {
  font-size: 13px;
  font-weight: 500;
  color: #6b6b6b;
  margin-bottom: 30px;
}

.breadcrumb a { color: #6b6b6b; text-decoration: none; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span { color: var(--green); font-weight: 600; }

.calcHeroContent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.calcHeroLeft { flex: 1 1 55%; }

.calcHeroTitle {
  font-size: 54px;
  font-weight: 800;
  line-height: 1.1;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.calcHeroTitle .highlight { color: var(--green); }

.calcHeroSubtext {
  font-size: 18px;
  font-weight: 400;
  color: #6b6b6b;
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 30px;
}

.trustRow { display: flex; flex-wrap: wrap; gap: 26px; }

.trustItem {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.trustIcon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.calcHeroRight { flex: 1 1 40%; display: flex; justify-content: center; }
.calcHeroImg { width: 100%; max-width: 480px; height: auto; }

@media (max-width: 992px) {
  .calcHero { padding-top: 110px; }
  .calcHeroContent { flex-direction: column; text-align: center; }
  .calcHeroSubtext { margin: 0 auto 30px; }
  .trustRow { justify-content: center; }
  .calcHeroTitle { font-size: 40px; }
}

/* ===================== CALCULATOR ===================== */
#interest-calculator { padding: 40px 4% 0; color: var(--charcoal); }
.calculator-wrapper { max-width: 1440px; margin: 0 auto; }

.cards-row { display: flex; gap: 24px; align-items: stretch; }

.card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 4px 4px 17.5px 0px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.card-left { flex: 0 0 62%; }
.card-right {
  flex: 0 0 36%;
  background: linear-gradient(180deg, #F5FBF8 0%, #EFF9F4 100%);
  align-items: center;
  text-align: center;
}

.cardHeaderRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.card-title { font-weight: 700; font-size: 24px; color: var(--charcoal); }

.currency-label-inline { font-size: 12px; font-weight: 600; color: #8a8a8a; margin-bottom: 4px; }

.dropdown-wrapper { position: relative; display: inline-block; }
.dropdown-wrapper.full-width { display: block; width: 100%; }

.currency-select {
  width: 190px;
  height: 42px;
  border-radius: 10px;
  padding: 7px 40px 7px 16px;
  border: 1px solid #d8d8d8;
  font-size: 14px;
  font-weight: 600;
  background-color: #fff;
  color: var(--charcoal);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.currency-select.full-width { width: 100%; }

.dropdown-wrapper::after {
  content: "▼";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--charcoal);
  pointer-events: none;
}

.currency-select:hover, .currency-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 4px rgba(40, 119, 129, 0.3);
}

.inputGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; }

.slider-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.slider-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--charcoal);
}

.slider-label i { color: var(--teal); font-size: 15px; width: 16px; text-align: center; }

.slider-value { font-weight: 700; font-size: 18px; color: var(--teal); }


.calcBtn {
  margin-top: 28px;
  align-self: center;
  background: var(--green);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s ease;
}

.calcBtn:hover { background: #123a3f; }

/* ---- SLIDER: slimmer, cleaner — hardened against overrides ---- */
input[type="range"].styled-range {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  width: 100% !important;
  height: 8px !important;
  border-radius: 30px !important;
  background: linear-gradient(90deg, #195057 0%, #E2E2E2 0%);
  outline: none;
  margin-bottom: 8px;
  cursor: pointer;
  padding: 0 !important;
  border: none !important;
}

input[type="range"].styled-range::-webkit-slider-runnable-track {
  -webkit-appearance: none !important;
  height: 8px !important;
  border-radius: 30px;
  background: transparent;
}

input[type="range"].styled-range::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 14px !important;
  height: 14px !important;
  border-radius: 50% !important;
  background: var(--green);
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  margin-top: -5px !important;
  cursor: pointer;
}

input[type="range"].styled-range::-moz-range-track {
  height: 8px !important;
  border-radius: 30px;
  background: #E2E2E2;
  border: none !important;
}

input[type="range"].styled-range::-moz-range-progress {
  background: var(--green);
  height: 8px !important;
  border-radius: 30px;
}

input[type="range"].styled-range::-moz-range-thumb {
  width: 14px !important;
  height: 14px !important;
  border-radius: 50% !important;
  background: var(--green);
  border: 2px solid #fff !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  cursor: pointer;
}

/* ---- RIGHT CARD: chart left, stats right (desktop) ---- */
.card-right {
  flex: 0 0 36%;
  background: linear-gradient(180deg, #F5FBF8 0%, #EFF9F4 100%);
  align-items: stretch;
  text-align: left;
}

.summary-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 22px;
  color: var(--charcoal);
}

.summary-title i { color: var(--teal); }

.summaryBody {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 18px;
}

.summaryLeft {
  flex: 0 0 auto;
}

.summaryRight {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.chart-box {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0;
}

.chart-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  text-align: center;
  pointer-events: none;
}

.chart-center h3 { margin: 0; font-size: 11.5px; color: #777; font-weight: 500; }
.chart-center p { margin: 3px 0 0; font-size: 17px; font-weight: 800; color: var(--green); }

.legend-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}

.legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #444;
}

.legend-label { flex: 1; text-align: left; font-weight: 500; }
.legend strong { font-size: 13.5px; color: var(--charcoal); font-weight: 700; }
.legend-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.legend-dot.principal { background: var(--green); }
.legend-dot.interest { background: var(--gold); }

.payableBox {
  width: 100%;
  background: #E8F5F0;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
}

.payableBox span { font-size: 12px; color: #4a7a6f; font-weight: 600; }
.payableBox p { font-size: 20px; font-weight: 800; color: var(--green); margin-top: 2px; }

.results-row {
  width: 100%;
  display: flex;
  gap: 10px;
}

.result-card {
  background: #fff;
  padding: 10px 8px;
  border-radius: 10px;
  flex: 1;
  text-align: center;
}

.result-card h4 { margin: 0; font-size: 11px; color: #666; font-weight: 600; line-height: 1.3; }
.result-card p { margin: 5px 0 0; font-size: 15px; color: var(--gold); font-weight: 700; }

.disclaimer { font-size: 11px; color: #999; line-height: 1.5; }

/* Responsive: stack chart above content on smaller card widths */
@media (max-width: 1150px) {
  .summaryBody { flex-direction: column; align-items: center; text-align: center; }
  .summaryLeft { margin-bottom: 6px; }
  .legend { justify-content: center; }
  .legend-label { text-align: left; }
}

@media (max-width: 1000px) {
  .cards-row { flex-direction: column; }
  .card-left, .card-right { flex: 1 1 100%; }
  .inputGrid { grid-template-columns: 1fr; }
  .summaryBody { flex-direction: row; text-align: left; }
  .legend { justify-content: flex-start; }
}

/* ===================== FEATURE STRIP ===================== */
.calcFeatureStrip {
  display: flex;
  justify-content: space-between;
  background: #fff;
  border-radius: 16px;
  box-shadow: 4px 4px 17.5px 0px rgba(0,0,0,0.06);
  padding: 26px;
  margin-top: 24px;
  gap: 20px;
  flex-wrap: wrap;
}

.calcFeatureItem { display: flex; align-items: flex-start; gap: 12px; flex: 1; min-width: 190px; }

.calcFeatureIcon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.icon-green { background: #E4F7FA; color: var(--teal); }
.icon-gold { background: #FFF6E1; color: #C7A926; }
.icon-pink { background: #FDF0F4; color: #D6558C; }
.icon-blue { background: #E9F1FF; color: #3E7BFA; }
.icon-teal { background: #E4F7F0; color: #1D8BA1; }

.calcFeatureItem h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; color: var(--charcoal); }
.calcFeatureItem p { font-size: 12.5px; color: #6b6b6b; line-height: 1.5; margin: 0; }

@media (max-width: 900px) {
  .calcFeatureStrip { flex-direction: column; }
}

/* ===================== BOTTOM CTA BANNER ===================== */
.calcCtaBanner {
  margin: 24px 0 50px;
  background: linear-gradient(120deg, #0e383d 0%, #195057 60%, #287781 100%);
  border-radius: 18px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  flex-wrap: wrap;
}

.calcCtaText h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.calcCtaText p { font-size: 14px; color: #d8ecec; max-width: 480px; }

.calcCtaBtn {
  background: var(--gold);
  color: #123a3f;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 30px;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s ease;
}

.calcCtaBtn:hover { transform: translateY(-2px); }

@media (max-width: 768px) {
  .calcCtaBanner { flex-direction: column; text-align: center; }
}

/* ===================== SCHOLARSHIP SECTION ===================== */
.scholarship-section { margin: 50px 4%; }
.scholarship-title { font-weight: 700; font-size: 34px; text-align: center; color: #424242; margin-bottom: 16px; }
.scholarship-subtitle { font-weight: 400; font-size: 20px; text-align: center; color: #424242; margin-bottom: 40px; line-height: 1.6; }

.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  max-width: 1320px;
  margin: 0 auto;
}

.scholarship-card {
  width: 380px;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0px 4px 4px 0px #00000040;
  display: flex;
  flex-direction: column;
}

.card-icon { width: 35px; height: 35px; margin-bottom: 10px; }
.scholarshipcard-title { font-weight: 700; font-size: 22px; color: #424242; margin-bottom: 10px; }
.scholarshipcard-description { font-weight: 400; font-size: 15px; line-height: 24px; color: #424242; }


.heroButtons {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.primaryBtn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #195057 0%, #4ED0E1 100%);
  border: none;
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.3s ease;
  width: fit-content;
  width: 200px;
  height: 40px;
  font-size: 15px;
}

.primaryBtn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  animation: whiteLightSweep 2s linear infinite; 
}

.primaryBtn:hover::before {
  animation: shimmer 0.5s linear infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes whiteLightSweep {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.secondaryBtn {
  background: transparent;
  color: #287781;
  border: 2px solid #287781;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: 40px;
  width: 200px;
}

.secondaryBtn:hover {
 background-color: #2f98a4;
  color: white;
}
