/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  z-index: 1000;
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  /* background-color: white; */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease;
}
.navbar.scrolled {
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}
.logo a {
  text-decoration: none;
  color: #333;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #333;
}

.sign-in-btn {
  padding: 0.5rem 1rem;
  background-color: #007bff;
  color: white !important;
  border-radius: 4px;
}

/* Dropdown styles */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  z-index: 1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Hero section */
.hero {
  position: relative;
  padding: 6rem 5%;
  background-color: #ffffff;
  overflow: hidden;
  min-height: 600px;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.hero-text {
  flex: 1;
  text-align: left;
  max-width: 600px;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #333;
}

.hero p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
}

.cta-button {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #2980b9;
}

/* Wave background effect */
.wave-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23f1f8ff" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
  z-index: 1;
  opacity: 0.5;
}

/* Partners section */
.partners {
  padding: 4rem 5%;
  text-align: center;
}

.partner-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.partner {
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 4px;
}

/* Services section */
.services {
  padding: 4rem 2rem;
  background: #f8f9fa;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-content {
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.service-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-card-img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
}

/* Categories section */
.categories,
.lending-categories {
  padding: 4rem 5%;
}

.category-grid {
  display: flex;
  justify-content: space-between;
}

.category-description-text {
  margin-bottom: 7rem;
}

.category-card {
  width: 30%
}

.category-card>img {
  width: 100%;
  display: block;
}

.title-text {
  font-size: 3rem;
}

.comment {
  padding: 4rem 5%;
  text-align: center;
  background-color: #f8f9fa;
}
.comment-img {
  width: 100px;
  display: block;
  margin: 0 auto;
}
.comment-text {
  width: 60%;
  margin: 0 auto;
  font-size: 1.5rem;
  margin-top: 2rem;
  color: #a09e9e;
}

footer {
  padding: 4rem 2rem;
  background: #1e2022;
  color: white;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.footer-l {
  display: flex;
  align-items: center;
}
.footer-logo-img {
  width: 50px;
  display: block;
  margin-right: .2rem;
}



/* Responsive design */
@media (max-width: 968px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-image {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .services {
    padding: 3rem 1rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .service-card h3 {
    font-size: 1.25rem;
  }
}

/* Lending page specific styles */
.lend-main {
  padding: 0;
  min-width: calc(500px + 5%);
}
.lend-bg {
  background-image: url(../imgs/lend_header.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  min-height: 600px;
  color: white;
}
.lend-bg h1,
.lend-bg p {
  color: white;
}
.calculator {
  padding: 4rem 5%;
  background-color: #ffffff;
}

.calculator-form {
  max-width: 600px;
  margin: 2rem auto;
  display: grid;
  gap: 1.5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  font-weight: bold;
  color: #333;
}

.input-group input,
.input-group select {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.calculate-btn {
  padding: 1rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.calculate-btn:hover {
  background-color: #0056b3;
}

.lending-features {
  padding: 4rem 5%;
  background-color: #f8f9fa;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature {
  padding: 2rem;
  text-align: center;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature h3 {
  margin-bottom: 1rem;
  color: #333;
}

.feature p {
  color: #666;
  line-height: 1.6;
}

.learn-more {
  display: inline-block;
  margin-top: 1rem;
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.learn-more:hover {
  text-decoration: underline;
}
.categories-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2rem;
}
.category {
  height: 40vh;
  padding: 5rem;
  color: white;
  border-radius: .5rem;
}
.category>h3 {
  font-size: 2rem;
}
.category-1 {
  background-image: url(../imgs/agriculture.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.category-2 {
  background-image: url(../imgs/asset_backed.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.category-3 {
  background-image: url(../imgs/emp_gradient.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.category-4 {
  background-image: url(../imgs/real_estate.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.category-5 {
  background-image: url(../imgs/government.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.category-6 {
  background-image: url(../imgs/mas_gradient.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.features {
  padding: 4rem 5%;
  background: #f8f9fa;
}
.feature-description {
  margin-bottom: 4rem;
}
.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}
.feature-box {
  padding: 3rem;
  box-sizing: border-box;
  border-radius: .3rem;
  background-color: white;
}
.feature-image {
  width: 5rem;
  height: 5rem;
  margin: 0 auto;
  margin-bottom: 3rem;
}
.feature-image > img {
  display: block;
  width: 100%;
}
.feature-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}
.feature-introduce {
  text-align: center;
  font-size: 1rem;
}



/* Responsive adjustments for lending page */
@media (max-width: 768px) {
  .calculator-form {
    padding: 0 1rem;
  }
  
  .feature {
    padding: 1.5rem;
  }
}

/* Header scroll effect styles */
.lend-header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  transition: background-color 0.3s ease;
}

.lend-header.transparent {
  background-color: transparent;
  color: white;
}
.lend-header.transparent .logo a {
  color: white;
}
.lend-header.transparent .nav-links a {
  color: white;
}

.lend-header.solid {
  background-color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Adjust main content to account for fixed header */
main {
  padding-top: 70px; /* Adjust this value based on your header height */
}