/* Navbar Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #044572;
  z-index: 1000;
  padding: 10px 0;
}

.new_investment .center-top-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0 1rem;
}

.new_investment .headerImage {
  height: 60px;
  width: 60px;
}

.new_investment .main-heading {
  font-family: Lato;
  font-weight: 700;
  font-size: 48px;
  line-height: 118%;
  letter-spacing: 0%;
  color: #FFFD70;
}

.new_investment .main-heading-sec {
  font-family: Lato;
  font-weight: 700;
  font-size: 28px;
  line-height: 144%;
  letter-spacing: 0%;
}

.new_investment .text-white-para {
  font-family: Lato;
  font-weight: 400;
  font-size: 28px;
  line-height: 144%;
  letter-spacing: 0%;

}

.new_investment .navbar-nav .nav-link {
  color: white;
  margin-right: 25px;
  font-weight: 400;
}

/* Brand styling */
.new_investment .navbar-brand {
  color: #ffd700 !important;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Register/Login link on right */
.new_investment .navbar .nav-link.text-white {
  font-weight: 500;
  margin-left: 20px;
}

.new_investment .navbar-nav .nav-link:hover,
.new_investment .navbar .nav-link.text-white:hover {
  color: #ffd700;
  text-decoration: underline;
}

/* Responsive tweaks for smaller screens */
@media (max-width: 991.98px) {

  .new_investment .navbar-nav .nav-link {
    margin-right: 15px;
  }

  .new_investment .navbar .nav-link.text-white {
    margin-left: 0;
    padding: 10px 0;
  }

  .new_investment .navbar .d-none.d-lg-block {
    display: block !important;
  }

  .new_investment .investmenthero {
    aspect-ratio: 16 / 9;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    padding: 50px 20px 20px 10px;

    /* Optional: remove top padding to prevent stretching */
    /* background-image:
      linear-gradient(269.89deg, rgba(7, 36, 51, 0) 0.08%, rgba(19, 96, 135, 0.3) 38.03%, rgba(21, 102, 143, 0.906) 60.08%, #166D99 99.89%),
      url('dash_new/home_img/investment.png'); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

}

.new_investment .investmenthero {
  aspect-ratio: 16 / 9;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 50px 20px 20px 20px;
  color: white;

  background-image:
    linear-gradient(269.89deg, rgba(7, 36, 51, 0) 0.08%, rgba(19, 96, 135, 0.3) 38.03%, rgba(21, 102, 143, 0.906) 60.08%, #166D99 99.89%),
    url('dash_new/home_img/investment.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}


.new_investment .investment-card {
  display: flex;
  align-items: center;
  background-color: #1BB1D0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  max-width: 800px;
  margin: auto;
  height: 285px;
  border-radius: 35px;
  border-width: 1px;

}

.new_investment .left-image img {
  width: 180px;
  border-radius: 15px;
  object-fit: cover;
}

.new_investment .center-icon {
  position: absolute;
  left: 180px;
  z-index: 2;
  transform: translateX(-50%);
}

.new_investment .display-flex-of-investment {
  display: flex;
  gap: 50px;
  padding: 30px;
}

.new_investment .center-icon img {
  width: 80px;
  height: 80px;
}

.new_investment .right-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 80px;
  color: #fff;
  background-color: #044572;
  height: 285px;
  clip-path: polygon(100% 0, 100% 50%, 100% 100%, 0% 100%, 15% 50%, 0% 0%);
}

.new_investment .right-content h4 {
  font-size: 20px;
  margin-bottom: 10px;
  text-align: left;
}

.new_investment .right-content p {
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}

/* Desktop > Medium screen adjustments */
@media (max-width: 1342px) {

  .new_investment .display-flex-of-investment {
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding: 30px;
  }

  .new_investment .right-content {
    padding-left: 50px;
    height: 190px;
  }

  .new_investment .left-image img {
    width: 150px;
  }

  .new_investment .center-icon {
    left: 150px;
  }

  .new_investment .center-icon img {
    width: 80px;
    height: 80px;
  }

  .new_investment .investmenthero {
    aspect-ratio: 16 / 9;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    padding: 60px 20px 20px 10px;
    background-image:
      linear-gradient(269.89deg, rgba(7, 36, 51, 0) 0.08%, rgba(19, 96, 135, 0.3) 38.03%, rgba(21, 102, 143, 0.906) 60.08%, #166D99 99.89%),
      url('dash_new/home_img/investment.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

}

/* Tablet View: Keep horizontal layout like desktop */
@media (min-width: 769px) and (max-width: 991.98px) {
  .d-flex.p-3.gap-5 {
    flex-direction: row;
    gap: 2rem;
    padding: 1.5rem;
  }

  .investmenthero {
    background-position: right center;
  }

  .investment-card {
    flex-direction: row;
    max-width: 800px;
  }

  .left-image img {
    width: 150px;
    border-radius: 15px;
  }

  .center-icon {
    position: absolute;
    left: 150px;
    transform: translateX(-50%);
    z-index: 2;
  }

  .center-icon img {
    width: 70px;
    height: 70px;
  }

  .right-content {
    clip-path: polygon(100% 0, 100% 50%, 100% 100%, 0% 100%, 10% 50%, 0% 0%);
    padding-left: 80px;
    text-align: left;
    align-items: flex-start;
  }

  .right-content h4,
  .right-content p {
    text-align: left;
  }
}

/* Mobile View: Stack cards vertically */
@media (max-width: 768px) {
  .new_investment .d-flex.p-3.gap-5 {
    flex-direction: column;
    padding: 1rem !important;
  }

  .new_investment .investmenthero {
    background-position: right center;
  }

  .new_investment .investment-card {
    flex-direction: column;
    max-width: 100%;
    background-color: #5B7FD6;
  }

  .new_investment .left-image img {
    width: 100%;
    height: auto;
    border-radius: 0;
  }

  .new_investment .center-icon {
    position: static;
    margin: -40px auto 0;
    transform: none;
    z-index: 2;
  }

  .new_investment .right-content {
    clip-path: none;
    padding: 1rem;
    text-align: center;
    align-items: center;
  }

  .new_investment .right-content h4,
  .new_investment .right-content p {
    text-align: center;
  }

  .new_investment .navbar .d-none.d-lg-block {
    display: none !important;
  }

  .new_investment .navbar-brand img.headerImage {
    height: 50px;
    width: 50px;
  }
}