.repayment-amount-outside {
    font-size: 1.2rem;
    font-weight: bold;
    color: #000000;
    margin-top: 10px;
}

#mobile-table {display: none;
}

div#loan-repayments {
    display: contents;
}
/* Overall container styling for filter */
#loan-filter {
   /* display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 20px;
    /*max-width: 800px;*/
   /* margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#loan-filter label {
    font-weight: bold;
    font-size: 1.3rem;
    color: #000000;
    /*margin-top: 28px;*/
   /* margin-bottom: -10px;
}

#loan-filter .slider-container {
    display: flex;
    align-items: center;
    width: 50%;
    padding: 0px;
    gap: 10px;
}

#loan-filter .slider-container button {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
	touch-action: manipulation; /* Prevents zooming on touch */
}

#loan-filter input[type="range"] {
    flex: 1;
    height: 8px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    margin: 0 10px;
}

#loan_amount_display,
#repayment_display {
   /* font-size: 1.6rem;
    font-weight: 700;
    color: white;
    padding-top: 8px;
    border-radius: 10px;
    border: 1px solid;
    padding: 12px 6px;
    background: black;*/

}

/* Loan company layout */
.loan-company {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e6e6e6;
    padding: 20px;
    margin: 15px auto;
    border-radius: 8px;
    /*max-width: 800px;*/
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#loan-header {
    display: block;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.loan-logo {
    max-width: 60px;
    max-height: 60px;
}

.loan-company h3 {
    font-size: 1.5rem;
    color: #000;
    font-weight: bold;
}

#loan-repayments {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    font-size: 1.1rem;
}

.repayment-total-outside,
.repayment-monthly-outside {
    color: #000;
    font-weight: bold;
}

#mobile-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.95rem;
}

#mobile-table th, 
#mobile-table td {
    padding: 8px;
    border-bottom: 1px solid #e6e6e6;
}

#mobile-table th {
    color: #666;
    font-weight: bold;
}

#buttons-loan {
    display: inline-block;
    gap: 10px;
    margin-top: 15px;
}

.more-info-button, .apply-button {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    flex: 1;
}

.more-info-button:hover,
.apply-button:hover {
    background-color: #0056b3;
}

/* Representative example styling */
.rep-ex {
    display: block;
    font-size: 0.6rem;
    color: #000;
    margin-top: 10px;
    padding: 5px 0;
    text-align: left;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .loan-company {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    #loan-header, 
    #loan-repayments,
    #buttons-loan {
        flex: 1;
    }

    #loan-repayments {
        text-align: center;
    }
    
    .rep-ex {
        padding-top: 0;
    }
}
/* Main loan-company container styling */
.loan-company {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e6e6e6;
    padding: 20px;
    margin: 15px auto;
    border-radius: 8px;
    max-width: 800px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#loan-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.loan-logo {
    max-width: 60px;
    max-height: 60px;
}

.loan-company h3 {
    font-size: 1.5rem;
    color: #000;
    font-weight: bold;
}

#loan-repayments {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    font-size: 1.1rem;
    flex-wrap: wrap;
}

.repayment-total-outside,
.repayment-monthly-outside {
    color: #000;
    font-weight: bold;
}

#buttons-loan {
    display: block;
    gap: 10px;
    margin-top: 15px;
}

.more-info-button, .apply-button {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    flex: 1;
}

.more-info-button:hover,
.apply-button:hover {
    background-color: #0056b3;
}

/* Representative example styling */
.rep-ex {
    font-size: 0.6rem;
    color: #000;
    margin-top: 10px;
    padding: 5px 0;
    text-align: left;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .loan-company {
        display: flex;
        flex-direction: column; /* Flex column layout for alignment */
    }

    #loan-repayments {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .rep-ex {
        order: 1;
	}
}

/* General styling for loan cards */
#loan-offers {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding: 20px 0px;
}

/* Loan card styling */
.loan-company {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 20px;
    max-width: 350px; /* Define a max width for each card */
    width: 100%; /* Full width on smaller screens */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    text-align: center;
}

/* Header layout inside each card */
#loan-header {
    display: block;
    align-items: center;
    justify-content: space-between;
	border-bottom: 1px solid #979797;
}

/* Adjust the logo */
.loan-logo {
    /*max-width: 50px;*/
    max-height: 80px;
    /*margin-right: 10px;*/
}

/* Responsive styles for different screen sizes */
@media (min-width: 768px) {
    #loan-offers {
        justify-content: flex-start;
    }

    .loan-company {
        flex: 1 1 calc(30% - 20px); /* Three cards per row on medium+ screens */
        max-width: calc(33% - 20px); /* Ensures three cards fit */
        margin: 0;
    }
}

@media (min-width: 1200px) {
    .loan-company {
        flex: 1 1 calc(30.3333% - 20px); /* Four cards per row on larger screens */
        max-width: calc(33.3333% - 20px);
    }
}

/* Repayment info styling */
.repayment-total-outside,
.repayment-monthly-outside {
    font-size: 1.2rem;

}


.rep-ex {
    font-size: 0.6rem;
    color: #000;
    margin: 10px 0;
}

/* Button layout */
#buttons-loan {
    display: block;
    justify-content: space-between;
    margin-top: 30px;
    margin-bottom: 30px;
}

.apply-button,
.more-info-button {
    width: 45%;
    padding: 20px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 18px;
    color: #fff;
	margin-left: 10px;
    margin-right: 10px;
}

.apply-button {
    background-color: #007bff;
}

.more-info-button {
    background-color: #6c757d;
}

/* Adjusted Loan Filter Styling for Desktop and Mobile */

/* General Styling for Loan Filter */
#loan-filter {
  /*  display: flex;
    flex-direction: column; /* Stack filter controls vertically on mobile */
 /*   align-items: start;
    gap: 20px;
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 98%; /* Constrains filter width for a balanced look */
   /* margin: 0 auto; /* Center filter on the page */
}

/* Styling for Labels and Slider Containers */
#loan-filter label {
  /*  font-weight: bold;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;*/
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
}



/* Style the range input slider thumb */
#loan-filter input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    margin: 0 2px;
    width: 150px;
}

/* Style the slider thumb for better usability */
#loan-filter input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px; /* Increased thumb width */
    height: 25px; /* Increased thumb height */
    background-color: #007bff;
    border-radius: 50%;
    cursor: pointer;
}

#loan-filter input[type="range"]::-moz-range-thumb {
    width: 25px;
    height: 25px;
    background-color: #007bff;
    border-radius: 50%;
    cursor: pointer;
}

#loan_amount_display, #repayment_display {
    /*font-size: 1.2rem;
    font-weight: bold;
    color: #fff;*/
}

/* Desktop Specific Adjustments */
@media (min-width: 768px) {
    #loan-filter {
      /*  flex-direction: row; /* Aligns filter controls horizontally on desktop */
      /*  align-items: center;
        width: 100%;
    }
	
	 #loan-filter {
        padding: 15px;
        gap: 15px;*/
    }

    .slider-container {
        flex: 1;
        max-width: 200px;
    }
	
	.slider-container {
        padding: 10px; /* Adds space around the slider on mobile */
    }
	
	   
	.slider-container button {
        width: 40px; /* Increase button size */
        height: 40px;
        font-size: 20px; /* Increase font size */
    }

    #loan-filter label {
      /*  margin-bottom: 0; /* Adjusts spacing for inline layout */
		/*display: none;*/
    }
}

/* Center the logo above the company name */
.loan-logo-container {
    text-align: center;
    margin-bottom: 10px;
}

.loan-logo {
    max-width: 80px;
    margin: 0 auto;
    display: block;
}

/* Center-align the company name below the logo */
.loan-company h3 {
    text-align: center;
    font-size: 1.5rem;
    color: #333;
    font-weight: bold;
    margin-top: 0; /* Removes extra margin above the company name */
    margin-bottom: 10px; /* Space between name and repayment details */
}

/* Container for the logo, ensuring it's centered and has space */
.loan-logo-container {
    text-align: center;
    margin-bottom: 10px;
    width: 100%;
    display: block;
	
}

/* Styling for loan range and repayment period range */
.loan-range,
.repayment-range {
    font-size: 1rem;
    color: #333;
    margin: 8px 0;
    font-weight: normal;
}

#loan-details {
    margin-top: 0px;
    margin-bottom: 15px;
   
}

.loan-range {
    font-weight: bold;
   
}

.repayment-range {
    font-weight: bold;
  
}
.first-loan-free {
    font-size: 0.8rem;
    color: #000; /* Example color */
    font-weight: bold;
    margin-top: 10px;
}

@media (max-width: 1980px) {

#buttons-loan {
    display: flex;
	max-height: 100px;
	flex: 0;
}
}

#no-results-message {
    display: none; /* Hidden by default */
    text-align: center;
    font-size: 1.2rem;
    color: #333;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    border: 2px solid #007bff;
}

#no-results-message p {
    margin: 10px 0;
}	

.user-search-details {
    font-size: 1rem;
    color: #333;
    margin: 10px 0;
    padding: 10px;
    background-color: #f7f7f7;
    border-radius: 8px;
}

.user-search-details p {
    margin: 5px 0;
    /*font-weight: bold;*/
}

/* Initial hidden state for loan cards */
.loan-company {
    opacity: 0;
    transform: translateY(20px); /* Adjust for a slide-up effect */
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Fade-in effect when shown */
.loan-company.show {
    opacity: 1;
    transform: translateY(0); /* Reset slide */
}

@media (max-width: 768px) {
    .slider-container button {
        font-size: 24px; /* Increase font size to avoid zoom on tap */
    }
	
	#loan-filter .slider-container {

    width: 100%;

}
	

	
	button#show-all-loans {
    width: auto;
    border-radius: 10px;
    font-weight: 700;
    color: white;
    background: #7a7a7a;
    margin: 10px auto 0px auto;
    padding: 20px;
    text-align: center;
}
}

/* General loan company card styling */
.loan-company {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    padding: 20px;
    margin: 0px;
    border-radius: 8px;
    /*max-width: 400px;*/
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: inline-block;
    text-align: center;
}

/* Styling for the loan header section */
#loan-header {
    margin-bottom: 20px;
}

.loan-logo-container {
    text-align: center;
    margin-bottom: 10px;
}

.company-title h3 {
    font-size: 1.5rem;
    color: #333;
    font-weight: bold;
}

/* Styling for loan details */
#loan-details p {
    font-size: 1rem;
    color: #555;
    margin: 5px 0;
}

/* User search details */
.user-search-details {
    font-size: 1.2rem;
    color: #333;
    background-color: #f7f7f7;
    padding: 10px;
    margin-top: 15px;
    border-radius: 8px;
}

/* Repayment details styling */
#loan-repayments {
    margin-top: 20px;
}

.repayment-total-outside, 
.repayment-monthly-outside {
    font-size: 1.2rem;
    color: #333;
    font-weight: bold;
    margin: 5px;
}

/* Button styling */
#buttons-loan {
    margin-top: 20px;
}

.more-info-button, .apply-button {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
}

.more-info-button {
    background-color: #6c757d;
}

.apply-button:hover {
    background-color: #0056b3;
}

.more-info-button:hover {
    background-color: #5a6268;
}

/* Representative example styling */
.rep-ex {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
    text-align: left;
}

span.selected-amount, span.selected-term {
    font-weight: bold;
}

/* Toggle button styling */
.toggle-rep-button {
    background-color: #007bff;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 15px;
}

.toggle-rep-button:hover {
    background-color: #0056b3;
}

/* Dropdown content styling */
.rep-ex-content {
    display: none; /* Hide by default */
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
    background-color: #f7f7f7;
    padding: 10px;
    border-radius: 5px;
}


/* Filter Section Styling */
#loan-filter {
  /*  display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#loan-filter label {
    font-weight: bold;
    font-size: 1.3rem;
    color: #000;
    margin-bottom: 5px;*/
}

.slider-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 10px 0;
}

.slider-track {
    position: relative;
    flex: 1;
    height: 8px;
    background: #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.slider-track .slider-min,
.slider-track .slider-max {
    font-size: 1rem;
    color: #000;
    position: absolute;
	top: 20px;
}

.slider-track .slider-min {
    left: 0;
}

.slider-track .slider-max {
    right: 0;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, #ffcd00, #408080);
    border-radius: 5px;
    outline: none;
    margin: 0 10px;
}

input[type="range"]::-webkit-slider-thumb,
input[type="range"]::-moz-range-thumb {
    width: 30px;
    height: 30px;
    background-color: #ffffff;
    border-radius: 50%;
    border: 3px solid #007bff;
    cursor: pointer;
    position: relative;
}

.slider-button {
    background-color: #000000;
    color: #fff;
    border: none;
    border-radius: 5px;
    width: 35px;
    height: 35px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    /*margin: 0 20px;*/
}

/* Toggle Button for Representative Example */
.toggle-rep-button {
    background-color: #007bff;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: center;
    margin-top: 15px;
    width: 100%;
}

.toggle-rep-button:hover {
    background-color: #0056b3;
}

.rep-ex-content {
    display: none; /* Initially hidden */
    padding: 15px;
    background-color: #f7f7f7;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}
/* General Slider Container */
.slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

/* Custom Range Input */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, #ffcd00, #408080); /* Customize colors */
    border-radius: 5px;
    outline: none;
    margin: 0 15px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border-radius: 50%;
    border: 3px solid #ffcd00; /* Border color */
    cursor: pointer;
    position: relative;
    z-index: 1;
}

input[type="range"]::-moz-range-thumb {
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border-radius: 50%;
    border: 3px solid #ffcd00;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

/* Arrow indicators inside slider thumb */
input[type="range"]::-webkit-slider-thumb::before,
input[type="range"]::-moz-range-thumb::before {
    content: "«»"; /* Add arrows */
    color: #ffcd00; /* Inner arrow color */
    font-size: 16px;
    font-weight: bold;
    position: absolute;
    top: 7px;
    left: 6px;
    width: 100%;
    text-align: center;
}

/* Styling for min and max labels */
.slider-min, .slider-max {
    font-size: 0.9rem;
    color: #666;
    opacity: 0.8;
}

.slider-min {
    text-align: left;
}

.slider-max {
    text-align: right;
}

/* Single-row layout on desktop screens */
@media (min-width: 992px) { /* Adjust this breakpoint as needed */
    .slider-wrapper {
        flex-direction: row; /* Horizontal layout for desktop */
        justify-content: space-between;
    }

    /* Adjust individual slider container styles for desktop */
    .slider-wrapper > div {
        flex: 1 1 45%; /* Each slider takes up half of the container */
        max-width: 45%; /* Optional: limit width to prevent overflow */
        margin: 0 10px; /* Space between the sliders */
    }
	
	#loan-filter {
   /* display: flex;
    flex-direction: row;
	max-width: 100%;*/
	}
}

/* Style the loan filter */
#loan-filter {
  width: 100%;
  /*max-width: 600px;*/
  margin: 0 auto;
}

/* Stack elements vertically in the slider-wrapper */
.slider-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px; /* Add spacing between each slider-wrapper */
}

/* Style the label */
.slider-label {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px; /* Add spacing below the label */
  text-align: center;
}

/* Style the slider controls (slider + buttons) */
.slider-controls {
  display: flex;
  align-items: center;
  width: 100%;
}

.slider-track {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 10px;
}

.slider-button {
  width: 40px;
  height: 40px;
  background-color: #000000;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.slider-min, .slider-max {
  font-size: 14px;
  color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .slider-label {
    font-size: 18px;
	color:#000000;
  }

  .slider-button {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }
}


/* Base layout for the loan filter */
#loan-filter {
  width: 100%;
  max-width: 800px; /* Adjust width to fit your design */
  margin: 0 auto;
}

/* Default (mobile-first) layout: stack vertically */
.slider-wrapper {
  display: flex;
  flex-direction: column; /* Stack vertically on mobile */
  align-items: center;
  margin-bottom: 20px;
}

/* Adjust layout for larger screens (desktop) */
@media (min-width: 768px) {
  #loan-filter {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns for sliders */
    gap: 20px; /* Add spacing between columns */
  }

  .slider-wrapper {
    flex-direction: column; /* Align sliders and labels horizontally */
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0; /* Remove extra spacing */
  }

  .slider-label {
    margin-bottom: 0; /* Remove vertical spacing for label */
    margin-right: 20px; /* Add space between label and slider */
    text-align: right; /* Align label to the right */
    flex-shrink: 0; /* Prevent label from shrinking */
  }

  .slider-controls {
    flex-grow: 1; /* Make slider controls take up remaining space */
    display: flex;
    align-items: center;
  }
}

