.link-note {
    font-size: 16px;
    color: #333;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    line-height: 1.5;
}

.link-note .internal-link {
    color: #0F7075;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed #0F7075;
    transition: color 0.3s, border-color 0.3s;
}

.link-note .internal-link:hover {
    color: #0b5458;
    border-color: #0b5458;
}

/* Mobile Friendly Tweaks */
@media screen and (max-width: 480px) {
    .link-note {
        font-size: 15px;
        padding: 10px 14px;
        border-left-width: 3px;
        margin: 16px 0;
    }

    .link-note .internal-link {
        font-size: 15px;
    }
}


.also-read {
  background-color: #f0f8ff;
  border-left: 2px solid #0F7075; 
  padding: 12px 16px;
  margin: 30px 0;
  font-size: 16px;
  font-family: inherit;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.also-read span {
  font-weight: 600;
  color: #083c71;
  margin-right: 6px;
}

.also-read a {
  color: #333;
  text-decoration: none;
  border-bottom: 1px dashed #3498db;
  transition: all 0.2s;
}

.also-read a:hover {
  color: #3498db;
  border-bottom-style: solid;
}

.sip-input input[type=text]::-webkit-outer-spin-button,
.sip-input input[type=text]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e0e0e0;             
  border-top: 4px solid #0F7075;          
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: block;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.calculator-section {
  display: flex;
  gap: 20px;
}

@media (max-width: 768px) {
  .calculator-section {
    display: flex;
    flex-direction: column;
  }

  .calculator-section > * {
    width: 100%;
    margin-bottom: 15px; /* optional spacing between rows */
  }
}

.sip-calculator-section.goal-calc {
  background: linear-gradient(145deg, #f0fbff, #e9f3ff);
  padding: 10px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid #dceeff;
  transition: all 0.3s ease;
  position: sticky;
  height: fit-content;
}

.sip-calculator-section {
  background: linear-gradient(135deg, #f7fafc, #eef6f9); 
  padding: 12px 12px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid #e0e8f0;
  transition: all 0.3s ease;
  position: sticky;
  height: fit-content;
}

/* Section title */
.sip-calculator-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #072E33;
}

#goalCalcSection,
#stepupCalcSection {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  padding: 20px;
}

/* Output center alignment */
.calculated-returns {
  text-align: center;
}

/* Row layout for label + control */
.sip-field-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-top: 30px;
}

/* Labels */
.sip-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  color: #072E33;
  font-size: 0.90rem;
  margin-bottom: 6px;
}

/* Also target vendor-specific pseudo elements */
input[type="range"]::-webkit-slider-runnable-track {
  box-shadow: none;
}

/* Text inputs */
.sip-input[type="text"] {
  width: 120px; 
  font-size: 16px;
  color: #072E33;
  background-color: #f9fefe;
  border: 2px solid #0F7075;
  border-radius: 6px;
  outline: none;
  text-align: right;
  font-weight: 600;
  padding: 6px 8px;
  transition: all 0.25s ease;
}
.sip-input[type="text"]:focus {
  border-color: #1FAB89;
  box-shadow: 0 0 6px rgba(15, 112, 117, 0.3);
}

.goal-calc input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(to right, #1FAB89, #083c71);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
  margin-bottom: 16px;
}

/* WebKit track */
.goal-calc input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 4px;
  background: transparent;
}

/* WebKit thumb */
.goal-calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #1FAB89;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  margin-top: -6px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.goal-calc input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Firefox track */
.goal-calc input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 4px;
  background: transparent;
}
.goal-calc input[type="range"]::-moz-range-thumb {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #1FAB89;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.goal-calc input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.15);
}

/* Checkbox group */
.sip-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 20px;
  font-size: 14px;
  font-weight: 500;
  color: #444;
}
.sip-checkbox input {
  accent-color: #1FAB89;
}

/* Result box */
#goalResult {
  border-left: 4px solid #1FAB89;
  padding: 14px;
  margin-top: 10px;
  border-radius: 8px;
  font-size: 15px;
  color: #072E33;
  background: #f4fbfa;
  line-height: 1.6;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

/* Button */
#findMatchingBtn {
  margin-top: 24px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #072E33;
  background: #e3f6f5;
  border: 2px solid #1FAB89;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}
#findMatchingBtn:hover {
  background-color: #0F7075;
  color: #fff;
}

/* Error message */
.error-message {
  font-size: 12px;
  color: #e74c3c;
  margin-bottom: 12px;
  margin-top: -8px;
}

@media (max-width: 600px) {
  .sip-input {
    width: 100px;
    font-size: 13px;
  }
}

#returnHeading {
  font-size: 1.125rem; /* 18px → 18–20px range is more readable */
  font-weight: 600;
  color: #072E33;
  background-color: #f4fbfa; /* very soft tint for contrast */
  padding: 12px 24px;
  border: 1.5px solid #1FAB89;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.4;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* subtle depth */
}

/* Optional hover effect */
#returnHeading:hover {
  background: linear-gradient(135deg, #d2f2ee, #aee4db);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(31, 171, 137, 0.2);
}

.chart-summary {
  display: flex;
  justify-content: space-evenly;
  margin-bottom: 20px;
  align-items: flex-start;
  gap: 20px;
}

.pie-chart {
  display: flex;
  direction: column;
  align-items: center;
}

@media (max-width: 600px) {
  .chart-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .chart-summary canvas,
  .sip-chart-labels {
    display: block;
    margin: 0 auto;
    text-align: center;
  }
}

#sipChart {
  width: 100%;
  max-width: 200px;
  height: 200px;
}
.sip-chart-labels {
  margin-top: 10px;
  font-size: 14px;
  color: #072E33;
  text-align: center;
  display: flex;
  justify-content: space-around;
  gap: 16px;
  flex-wrap: wrap;
}

.sip-chart-labels .label-box {
  font-family: 'Roboto', Sans-Serif;    
  display: flex;
  align-items: center;
  gap: 8px;
}

.sip-chart-labels .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.summary-box {
  font-family: 'Roboto', Sans-Serif;     
  background-color: #fdfcfb; 
  border-left: 4px solid #1FAB89; 
  padding: 16px 20px;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  font-size: 15px;
  color: #072E33;
  line-height: 2.2;
  letter-spacing: 0.8px;
  align-self: center; 
}

.growth-chart-box {
  background: #fdfefe;
  padding: 20px;
  border-radius: 12px;
  margin-top: 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.growth-chart-box h2 {
  font-size: 20px;
  color: #072E33;
  margin-bottom: 16px;
  font-weight: 600;
}

#growthChart {
  max-height: 240px;
  width: 100%;
}

.fund-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  padding: 20px 24px;
  font-family: 'Roboto', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px 0px;
}

.fund-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.fund-name {
  font-size: 28px;
  font-weight: 600;
  color: #072E33;
}

.fund-category {
  font-size: 14px;
  color: #666;
}

.fund-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 12px 20px;
}

.metric-label {
  font-size: 13px;
  color: #666;
}

.metric-value {
  font-size: 15px;
  color: #072E33;
  font-weight: 500;
}

/* Optional: tweak spacing for very small screens */
@media (max-width: 400px) {
  .fund-name {
    font-size: 22px;
  }

  .fund-metrics {
    column-gap: 12px;
    row-gap: 10px;
  }
}

.schemes-head {
  border-bottom: 1.5px solid #d4dce5; /* light grey-blue */
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.similar-funds-heading {
  font-size: 20px;
  color: #072E33;
  margin-bottom: 12px;
  font-weight: 600;
}

.similar-funds-disclaimer {
  font-size: 13px;
  color: #666;
  margin-top: 8px;
  font-style: italic;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .sip-input[type="number"] {
    width: 100px;
    font-size: 14px;
  }

  .fund-name {
    font-size: 24px;
  }

  .sip-section,
  .goal-calc,
  .growth-chart-box,
  .fund-card {
    padding: 16px;
  }

  .fund-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
  }

  #growthChart {
    max-height: 220px;
  }

  .similar-funds-heading {
    font-size: 18px;
  }

  #returnHeading {
    font-size: 16px;
    padding: 10px 14px;
  }
}

@media (max-width: 600px) {
  .sip-field-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .sip-input[type="text"] {
    width: 100%;
    font-size: 14px;
    padding: 6px 10px;
  }

  .sip-label {
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.9rem;
  }
/*
  .fund-metrics {
    grid-template-columns: 1fr; 
  }*/

  .fund-name {
    font-size: 20px;
  }

  .fund-card {
    padding: 16px;
  }

  .growth-chart-box {
    padding: 16px;
  }

  #goalResult,
  .summary-box {
    font-size: 14px;
    padding: 14px;
  }

  .similar-funds-heading {
    font-size: 17px;
  }

  #returnHeading {
    font-size: 15px;
    padding: 8px 12px;
  }

  #findMatchingBtn {
    width: 100%;
    text-align: center;
  }

  .sip-chart-labels {
    font-size: 13px;
    flex-direction: column;
    gap: 8px;
  }
}

.default-notice {
  background-color: #e6f4f1;
  border-left: 4px solid #1FAB89;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
  color: #072E33;
  display: block;
}


.table-wrapper {
  width: 100%;
  overflow-x: auto;
  background: #fff;
  border-radius: 6px;
  margin: 16px 0;
  max-height: 400px;
}

.sip-table {
  width: 100%;
  border-collapse: collapse;
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 14px; /* reduced from 16px */
  line-height: 1.3;
  border: none;
  table-layout: auto; /* allow columns to size based on content */
}

/* Header Styles */
.sip-table thead th {
  position: sticky;
  top: 0;
  background-color: #ffffff;
  color: #3a3a3a;
  text-align: center;
  padding: 8px 10px; /* tighter padding */
  font-weight: 500;
  border: none;
  border-bottom: 1.5px solid #083c71;
  white-space: nowrap;
}

/* Table body cells */
.sip-table tbody td {
  padding: 8px 10px;
  text-align: center;
  color: #444;
  border: none;
  border-bottom: 1px solid #f0f0f0;
}

/* First column (row header style) */
.sip-table th:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
}

.sip-table td:first-child {
  width: auto;
  min-width: 80px;
  text-align: left;
  padding-left: 12px;
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 1;
  font-weight: 500;
  color: #222;
  border-right: 1px solid rgba(8, 61, 113, 0.1);
}

/* Hover effect */
.sip-table tbody tr:hover {
  background-color: #f9fbfe;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .sip-table {
    font-size: 12.5px;
  }

  .sip-table th, 
  .sip-table td {
    padding: 6px 8px;
  }

  .sip-table td:first-child {
    padding-left: 10px;
  }
}

.article-box {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  max-width: 800px;
}

.article-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.article-box h2 {
  font-size: 24px;
  color: #072E33; /* Your brand color */
  margin: 20px 0 5px;
  line-height: 1.3;
  font-weight: 600;
}

.article-box p {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

#findBtnNote {
  font-size: 14px; 
  color: #555; 
  padding-top: 15px;
}
