/* 🌐 Global Navbar Styling */
header {
  background-color: #071029; /* deep navy */
  color: white;
  text-align: center;
  padding: 1.2rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

header h1 {
  font-size: 2rem;
  margin-bottom: 0.3rem;
  letter-spacing: 1px;
}

header p {
  font-size: 0.95rem;
  color: #a8b2d1;
  margin-bottom: 1rem;
}

nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

/* Hover underline animation */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: #00b4d8;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: #00b4d8;
}

/* Highlight the current page */
nav a.active {
  color: #00b4d8;
}

/* Responsive for small screens */
@media (max-width: 600px) {
  nav {
    flex-direction: column;
    gap: 1rem;
  }

  header h1 {
    font-size: 1.5rem;
  }
}





/* ====== Timeline Progress Line ====== */
.process-wrapper {
  position: relative;
}

.progress-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: #d6d9e6;
  transform: translateY(-50%);
  z-index: 1;
  border-radius: 4px;
}

.process-steps {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  z-index: 2;
}

.step {
  flex: 1;
  min-width: 250px;
  background: #fff;
  border-radius: 12px;
  padding: 40px 25px 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
}

/* Connect icons to the timeline */
.step .icon {
  position: relative;
  z-index: 3;
}

.step::after {
  content: "";
  position: absolute;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: #1a3fa7;
  border-radius: 50%;
  z-index: 3;
  box-shadow: 0 0 0 4px #f9fafc;
}

/* Animate steps when visible */
.step {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.step.show {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive Timeline === */
@media (max-width: 900px) {
  .progress-line {
    display: none;
  }

  .process-steps {
    flex-direction: column;
  }

  .step::after {
    left: 20px;
    transform: none;
  }

  .step {
    padding-left: 60px;
  }

  .step .icon {
    position: absolute;
    left: 0;
    top: 35px;
  }
}

/* ====== HOW IT WORKS SECTION ====== */
.loan-process {
  background: #f9fafc;
  padding: 80px 20px;
  font-family: "Poppins", sans-serif;
  color: #071029;
}

.loan-process .container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.loan-process .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0d1b42;
  margin-bottom: 10px;
}

.loan-process .section-intro {
  font-size: 1.1rem;
  color: #4f5b73;
  margin-bottom: 50px;
}

/* === Steps Layout === */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.step {
  background: #fff;
  border-radius: 12px;
  padding: 40px 25px 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
  position: relative;
  transition: all 0.3s ease;
}

.step::before {
  content: attr(data-step);
  position: absolute;
  top: -15px;
  left: 25px;
  background: #1a3fa7;
  color: #fff;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 3px 6px rgba(26, 63, 167, 0.3);
}

.step .icon {
  font-size: 2rem;
  color: #1a3fa7;
  margin-bottom: 15px;
  background: #e9eefb;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(26, 63, 167, 0.15);
}

.step:hover .icon {
  background: #1a3fa7;
  color: #fff;
  transform: scale(1.1);
}

.step h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #0d1b42;
}

.step p {
  font-size: 1rem;
  color: #5b6787;
  line-height: 1.6;
}

/* === Apply Button === */
.apply-btn {
  margin-top: 50px;
}

.btn-primary {
  background: #1a3fa7;
  color: #fff;
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  background: #0d2e85;
  transform: translateY(-3px);
}

form .btn-primary:active {
  transform: translateY(0);
} 

/* === Responsive Design === */
@media (max-width: 768px) {
  .loan-process .section-title {
    font-size: 2rem;
  }

  .loan-process .section-intro {
    font-size: 1rem;
  }

  .step {
    padding: 25px 20px;
  }

  .step .icon {
    margin-bottom: 10px;
  }
}

/* 🌙 Footer Styling */
footer {
  background-color: #071029; /* Deep navy blue, same as header */
  color: #cfd5ec; /* Light gray-blue text */
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
  margin-top: 3rem;
  border-top: 2px solid rgba(0, 180, 216, 0.2); /* soft cyan border */
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-content p {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

/* 🌐 Social Icons */
.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-links a {
  color: #cfd5ec;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  color: #00b4d8; /* Cyan hover */
  transform: translateY(-3px);
}

/* 📱 Responsive Footer */
@media (max-width: 600px) {
  .footer-content {
    text-align: center;
  }

  .social-links {
    gap: 0.8rem;
  }

  .social-links a {
    font-size: 1rem;
  }
}



/* ===== Scroll Animation Setup ===== */
.step {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

/* When in view */
.step.show {
  opacity: 1;
  transform: translateY(0);
}

/* Delay for staggered effect */
.step:nth-child(1) { transition-delay: 0.1s; }
.step:nth-child(2) { transition-delay: 0.2s; }
.step:nth-child(3) { transition-delay: 0.3s; }
.step:nth-child(4) { transition-delay: 0.4s; }
.step:nth-child(5) { transition-delay: 0.5s; }
.step:nth-child(6) { transition-delay: 0.6s; }