/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Cabin";
  color: #333;
  background: #fff;
  overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #fff;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
}

.logo img {
  height: 50px;
  margin-right: 8px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-circle {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid #d62460;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-circle img {
  width: 16px;
  height: 16px;
}

.social-circle:hover {
  background: #d62460;
}

.social-circle:hover img {
  filter: brightness(0) invert(1);
}

.btn-apply {
  background: #00b0f0;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-apply img {
  width: 20px;
  height: 20px;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background: #e6f8ff;
  min-height: 450px;
  padding: 40px;
  padding-left: 50px;
  border-radius: 12px;
  /* margin: 20px; */
}

.hero-text {
  max-width: 50%;
}

.hero-text h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero-text .sub-text {
  font-weight: 600;
  color: #00C0EE;
  font-size: 24px;
  margin-bottom: 8px;
}

.desc {
  font-size: 16px;
  font-style: italic;
  font-weight: 700;
  color: #6A6A6A;
  margin-bottom: 20px;
}

/* Loan options list */
.loan-options {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.loan-options li {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 12px;
  color: #6A6A6A;
}

.loan-options li img {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  filter: invert(44%) sepia(98%) saturate(1622%) hue-rotate(163deg) brightness(94%) contrast(91%);
}

.btn-start {
  display: inline-block;
  background: #d62460;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.btn-start img {
  width: 22px;
  height: 18px;
}

/* Hero Image + Loan Card */
.hero-container {
  position: relative;
  display: inline-block;
  max-width: 50%;
  margin-right: 40px;
}

.bg-rectangle {
  position: absolute;
  inset: -30px -30px -30px 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 1;
}

.hero-image {
  position: relative;
  z-index: 2;
}

.hero-image img {
  display: block;
  border-radius: 12px;
  max-width: 100%;
  height: auto;
}

.loan-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.loan-list li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
}

.loan-list li img {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

.loan-widget {
  position: absolute;
  bottom: -20px;
  right: -70px;
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
  width: 170px;
}

.loan-widget .small-text {
  font-size: 11px;
  color: #888;
  margin: 0 0 5px 0;
  font-weight: 400;
  font-style: italic;
}

.loan-widget h2 {
  font-size: 20px;
  font-weight: bold;
  margin: 5px 0 8px 0;
}

.loan-widget input[type="range"] {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  background: linear-gradient(to right, #e94057 0%, #e94057 40%, #e5e5e5 40%, #e5e5e5 100%);
  border-radius: 3px;
  margin: 8px 0 12px 0;
}

.loan-widget input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background-color: #e94057;
  border-radius: 50%;
  cursor: pointer;
}

.loan-widget-details {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 11px;
  color: #888;
}

.loan-widget-details li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  align-items: center;
}

.loan-widget-details li::after {
  content: "";
  width: 50px;
  height: 6px;
  background-color: #e5e5e5;
  border-radius: 3px;
  display: inline-block;
}

.center-img {
  text-align: center;
  margin: 30px 0;
}

.center-img img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

/* Loan options */
.loans {
  text-align: center;
  padding: 40px 20px;
}

.loan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Exactly 3 cards per row */
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

.loan-card {
  background: #fff;
  border-radius: 15px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.15),
    0 10px 20px rgba(0, 0, 0, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.loan-card:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 6px 10px rgba(0, 0, 0, 0.18),
    0 15px 25px rgba(0, 0, 0, 0.12);
}

.loans h2 {
  font-size: 26px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 30px;
  margin-top: -40px;
}
.loan-card img {
  width: 50px;
  height: 50px;
  object-fit: contain; /* fits the image inside */
  display: block;
  margin: 0 auto;
  padding-bottom: 12px;
}

.loan-card h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #000;
}

.loan-card p {
  font-size: 15px;
  color: #6A6A6A;
  font-weight: 400;
  line-height: 1.5;
}

.apply-box {
  background: linear-gradient(to right, #f9fdff, #e9f7ff);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  grid-column: span 2; /* Covers exactly two card spaces */
}

.apply-box h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #000;
}

.apply-box p {
  font-size: 15px;
  color: #555;
  margin-bottom: 20px;
}

.btn-apply {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #d62d53;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 18px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.btn-apply:hover {
  background-color: #b51f42;
}

.btn-apply img {
  width: 16px;
  height: 16px;
}

/* Testimonials */
.testimonials {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
  text-align: center;
  position: relative;
}

.title-container {
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.title-accent {
  width: 50px;
  height: 4px;
  background-color: #e94a6e;
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.testimonials h2 {
  font-size: 28px;
  font-weight: 700;
  color: #333;
}

.carousel-container {
  overflow: visible;
  position: relative;
  padding-top: 20px;
}

.testimonial-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
  width: max-content;
  overflow-x: auto;
  padding-bottom: 10px; /* Space for scrollbar */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.testimonial-card {
  width: 300px;
  min-width: 280px; /* Ensure minimum width on small screens */
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  flex-shrink: 0; /* Prevent cards from shrinking */
}

.quote-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e94a6e;
  color: white;
  border-radius: 50%;
  font-size: 22px;
  position: absolute;
  top: -18px;
  left: 20px;
  z-index: 2;
}

.card-content {
  padding: 25px 18px 18px;
  flex-grow: 1;
}

.stars {
  margin-top: 10px;
  margin-bottom: 12px;
  color: #ff9f43;
  font-size: 16px;
  text-align: left;
}

.testimonial-card p {
  color: #666;
  line-height: 1.5;
  text-align: left;
  font-size: 14px;
}

.user {
  display: flex;
  justify-content: space-between; /* left group vs right time */
  align-items: center;
  padding: 12px 18px;
  border-top: 1px solid #eaeaea;
  background-color: #f9f9f9;
}

/* Left section: image + name */
.user-left {
  display: flex;
  align-items: center;
  gap: 12px; /* spacing between image and name */
}

.user-image {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
}

.user-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-name strong {
  font-size: 14px;
  color: #333;
}

/* Right section: time */
.user-time span {
  font-size: 13px;
  color: #999;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 25px;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active {
  background: #3498db;
}

/* Footer */
.footer {
  background-color: #f0f9fc;
  padding: 25px 20px;
  font-family: 'Arial', sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 15px;
}

.logo-area {
  display: flex;
  align-items: center;
}

.lendio-logo {
  height: 50px;
}

.divider {
  height: 28px;
  width: 1px;
  background-color: #666;
  margin: 0 12px;
}

.texas {
  font-size: 28px;
  color: #333;
  font-weight: 400;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}

.contact-info a {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
  color: #333;
  font-size: 15px;
}

.contact-info a:hover {
  color: #0077cc;
}

.contact-info .icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
}

.footer-divider {
  height: 1px;
  width: 100%;
  background-color: #00c2ff;
  margin: 15px 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-circle2 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid #00C0EE;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.legal-links {
  font-size: 14px;
  color: #666;
}

.legal-links a {
  color: #666;
  text-decoration: none;
  transition: all 0.2s ease;
}

.legal-links a:hover {
  text-decoration: underline;
}

.separator {
  margin: 0 6px;
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
  .hero {
    padding: 30px;
  }
   
  .bg-rectangle {
    inset: -20px -20px -20px 20px;
  }

  .loan-widget {
    right: -30px;
    width: 160px;
  }
}

@media (max-width: 900px) {
  .loan-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
  }

  .apply-box {
    grid-column: span 2; /* Still span 2 columns */
  }
}


/* Media Queries for very large screens */
@media (min-width: 1600px) {
  .hero {
    padding: 60px 80px;
    min-height: 550px;
  }

  .hero-text {
    max-width: 45%;
  }
  .hero-text h1 {
  font-size: 60px;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero-text .sub-text {
  font-weight: 600;
  color: #00C0EE;
  font-size: 40px;
  margin-bottom: 8px;
}

.desc {
  font-size: 34px;
  font-style: italic;
  font-weight: 700;
  color: #6A6A6A;
  margin-bottom: 20px;
}
/* Loan options list */
.loan-options {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.loan-options li {
  display: flex;
  align-items: center;
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 12px;
  color: #6A6A6A;
}

.loan-options li img {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  filter: invert(44%) sepia(98%) saturate(1622%) hue-rotate(163deg) brightness(94%) contrast(91%);
}

  .hero-container {
    max-width: 45%;
  }

  .bg-rectangle {
    inset: -40px -40px -40px 40px;
  }

  .loan-widget {
    width: 200px;
    right: -80px;
    bottom: -30px;
    padding: 20px;
  }

  .loan-widget h2 {
    font-size: 24px;
  }

  .loan-widget .small-text {
    font-size: 13px;
  }

  .loan-widget-details {
    font-size: 13px;
  }
}

@media (min-width: 1200px) and (max-width: 1599px) {
  .hero {
    padding: 50px 60px;
    min-height: 500px;
  }

  .hero-text h1 {
    font-size: 38px;
  }

  .hero-text .sub-text {
    font-size: 26px;
  }

  .desc {
    font-size: 17px;
  }

  .loan-widget {
    width: 180px;
    right: -75px;
  }
}

/* Mobile-specific styles with centered hero text - Add to the end of your CSS */

/* Improve mobile scrolling for testimonials */
.testimonial-track {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.testimonial-track::-webkit-scrollbar {
  display: none;
}

/* Medium devices (tablets) */
@media (max-width: 768px) {
  /* Header/Navbar */
  .navbar {
    padding: 12px 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .logo {
    margin-right: 0;
    flex: 1 1 100%;
    justify-content: center;
  }

  .nav-actions {
    flex: 1 1 100%;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
  }

  .contact-info {
    order: 1;
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 15px;
    margin-top: 5px;
  }

  .social-icons {
    order: 0;
    justify-content: center;
  }

  .btn-apply {
    order: 2;
    margin-top: 5px;
  }

  /* Hero Section */
  .hero {
    flex-direction: column;
    padding: 30px 20px;
    margin: 15px;
    align-items: center; /* Center align content */
    text-align: center;
  }

  .hero-text, .hero-container {
    max-width: 100%;
    margin-right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-text {
    margin-bottom: 40px;
  }

  .hero-text h1 {
    font-size: 26px;
    margin-bottom: 10px;
    text-align: center;
  }

  .hero-text .sub-text {
    font-size: 18px;
    margin-bottom: 6px;
    text-align: center;
  }

  .desc {
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
  }

  .loan-options {
    display: inline-block;
    margin: 0 auto;
  }

  .loan-options li {
    margin-bottom: 10px;
    justify-content: flex-start;
    text-align: left;
  }

  .btn-start {
    display: inline-flex;
    align-items: center;
    margin-top: 5px;
  }

  .hero-container {
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
    position: relative;
  }

  .bg-rectangle {
    inset: -20px -20px -20px 20px;
  }

  .loan-widget {
    right: -20px;
    bottom: -15px;
    width: 140px;
    padding: 12px;
  }

  /* Loan Grid */
  .loan-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 10px;
  }

  .loan-card {
    padding: 20px 15px;
  }

  .loan-card h3 {
    font-size: 16px;
  }

  .loan-card p {
    font-size: 14px;
  }

  /* Testimonials */
  .testimonials {
    margin: 40px auto;
    padding: 0 15px;
  }

  .testimonials h2 {
    font-size: 24px;
  }

  /* Footer */
  .footer-top {
    text-align: center;
    justify-content: center;
  }

  .logo-area {
    justify-content: center;
    width: 100%;
    margin-bottom: 15px;
  }

  .footer-bottom {
    text-align: center;
    justify-content: center;
  }

  .footer .social-icons {
    justify-content: center;
    width: 100%;
    margin-bottom: 15px;
  }

  .legal-links {
    text-align: center;
    width: 100%;
  }

  .texas {
    font-size: 22px;
  }
}

/* Small devices (landscape phones) */
@media (max-width: 576px) {
  /* Header adjustments */
  .navbar {
    padding: 10px 12px;
  }

  .logo img {
    height: 35px;
  }

  .contact-info {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .contact-info a {
    font-size: 13px;
  }

  .social-icons {
    gap: 8px;
  }

  .social-circle, .social-circle2 {
    width: 30px;
    height: 30px;
  }

  .btn-apply {
    padding: 8px 14px;
    font-size: 13px;
  }

  /* Hero section */
  .hero {
    padding: 25px 15px;
    margin: 10px;
  }

  .hero-text h1 {
    font-size: 24px;
  }

  .hero-text .sub-text {
    font-size: 16px;
  }

  .hero-container {
    max-width: 320px;
  }

  .loan-widget {
    right: -10px;
    width: 130px;
    padding: 10px;
  }

  /* Loan grid */
  .loan-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin: 0 auto;
  }

  .apply-box {
    grid-column: span 1;
  }

  /* Testimonials */
  .testimonial-card {
    width: 280px;
    min-width: 280px;
  }

  .testimonials h2 {
    font-size: 22px;
  }

  /* Footer */
  .texas {
    font-size: 20px;
  }

  .legal-links {
    font-size: 11px;
  }
}

/* Extra small devices */
@media (max-width: 400px) {
  /* Header refinements */
  .navbar {
    padding: 8px 10px;
  }

  .logo img {
    height: 30px;
  }

  .contact-info a {
    font-size: 12px;
  }

  .contact-info .icon {
    width: 14px;
    height: 14px;
    margin-right: 4px;
  }

  .social-icons {
    gap: 6px;
  }

  .social-circle, .social-circle2 {
    width: 28px;
    height: 28px;
  }

  .social-circle img, .social-circle2 img {
    width: 12px;
    height: 12px;
  }

  .btn-apply {
    padding: 6px 12px;
    font-size: 12px;
  }

  /* Hero section */
  .hero {
    padding: 20px 12px;
  }

  .hero-text h1 {
    font-size: 22px;
  }

  .hero-text .sub-text {
    font-size: 15px;
  }

  .desc {
    font-size: 13px;
  }

  .loan-options li {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .loan-options li img {
    width: 16px;
    height: 16px;
  }

  .hero-container {
    max-width: 280px;
  }

  .loan-widget {
    right: -5px;
    bottom: -10px;
    width: 120px;
    padding: 8px;
  }

  .loan-widget h2 {
    font-size: 16px;
    margin: 3px 0 5px 0;
  }

  .loan-widget .small-text {
    font-size: 10px;
  }

  .loan-widget-details {
    font-size: 10px;
  }

  /* Testimonials */
  .testimonial-card {
    width: 260px;
    min-width: 260px;
  }

  /* Footer */
  .texas {
    font-size: 18px;
  }

  .divider {
    height: 24px;
  }
}

/* Very small devices */
@media (max-width: 350px) {
  /* Header */
  .navbar {
    padding: 6px 8px;
  }

  .logo img {
    height: 28px;
  }

  .social-circle, .social-circle2 {
    width: 26px;
    height: 26px;
  }

  .social-circle img, .social-circle2 img {
    width: 11px;
    height: 11px;
  }

  .btn-apply {
    padding: 5px 10px;
  }

  /* Hero section */
  .hero {
    padding: 15px 10px;
  }

  .hero-text h1 {
    font-size: 20px;
  }

  .hero-text .sub-text {
    font-size: 14px;
  }

  .desc {
    font-size: 12px;
  }

  .loan-options li {
    font-size: 12px;
  }

  .loan-options li img {
    width: 14px;
    height: 14px;
  }

  .hero-container {
    max-width: 240px;
  }

  .loan-widget {
    width: 110px;
    padding: 6px;
  }

  .loan-widget h2 {
    font-size: 14px;
  }

  /* Testimonials */
  .testimonial-card {
    width: 240px;
    min-width: 240px;
  }

  /* Loan cards */
  .loan-card {
    padding: 15px 10px;
  }

  .loan-card h3 {
    font-size: 15px;
  }

  .loan-card p {
    font-size: 13px;
  }
}