footer {
  background-color: #000000;
  padding: 10px 200px; /* Add horizontal padding for left and right spacing */
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: auto auto;
  box-sizing: border-box;
  position: relative;
  width: 100%;
  gap: 30px;
  color: #fff;
  column-gap: 100px; /* Increase gap between columns for better spacing */
 /* text-align: center; */
}

footer div {
  padding: 0px;
  display: flex;
  flex-direction: column;
  /* align-items: center;
  justify-content: center; */
}

h3 {
  margin-bottom: 0px;
}

.footer-link {
  color: #4693FF; 
  text-decoration: none;
}

footer p{
  margin-top: 3px;
}

.footer-link:hover {
  text-decoration: underline; 
}

.social-links a,
.broker-links a{
  margin-right: 5px; /* Adjust the value as needed */
}

.social-links img{
  margin-top: 3px;
  transition: transform 0.3s ease-in-out;
}

.social-links img:hover {
  transform: scale(1.3);
}

.broker-account {
  grid-column: 1 / -1; /* Span all columns */
  text-align: center;
  margin-top: 0px; 
  font-size: 1.3em;
}

.broker-account img {
  height: 40px;
  width: 200px; 
  margin: 0 10px;
  margin-top: 10px;
}

.broker-account .broker-links a:nth-child(2) img {
  height: 35px;
  width: 180px; 
}

.broker-links img {
  transition: transform 0.3s ease-in-out;
}

.broker-links img:hover {
  transform: scale(0.9);
}

.footer-link i.fa-solid {
  font-size: 14px;
  color: #4693FF;
}

.legal {
  grid-column: 1 / -1; /* Span all columns */
  text-align: center;
  margin-top: -10px; /* Add some top margin to separate from content above */
}



@media (max-width: 1200px) {
  footer {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto auto auto; 
    gap: 10px; /* Reduce gap between grid items */
    padding: 20px;
    text-align: center; 
  }
}

@media (max-width: 480px) {
  footer {
    grid-template-columns: repeat(2, 1fr);
    /* grid-template-rows: auto;  */ /* currently not need */
    gap: 0px; /* Reduce gap between grid items */
    padding: 0px;
    text-align: center; 
  }

  .broker-account {
    margin-top: 0px;
    margin-bottom: 15px;
  }

    /* Ordering the columns */
    .col-1 {
      grid-column: 1 / 2;
      grid-row: 1 / 2;
    }
  
    .col-2 {
      grid-column: 2 / 3;
      grid-row: 1 / 2;
    }
  
    .col-3 {
      grid-column: 1 / 2;
      grid-row: 2 / 3;
    }
  
    .col-4 {
      grid-column: 2 / 3;
      grid-row: 2 / 3;
    }
  
     .col-5 {
      grid-column: 1 / 3; /* Span across both columns */
      grid-row: 3 / 4;
    } 
}
