/*
  Footer Styles
*/

.footer-container {
  width: 90%;
  margin: 0 auto;
  border-top: thin solid rgba(192, 207, 198, 0.5);
  margin-bottom: 6rem;
  display: flex;
  gap: 3rem;
  box-sizing: border-box;
  align-items: stretch;
}

.footer-column {
  display: flex;
  flex-direction: column;
  flex: 1 1 0; 
  min-width: 0;
  margin: 0;
  padding-top: 3rem; 
}

.market-card {
  flex: 1 1 0; 
  min-width: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}

.footer-section {
  margin-bottom: 4rem;
}

.footer-logo img.small-logo {
  max-height: 5rem;
  height: auto;
  width: auto;
  display: block;
}

.footer h6 {
  font-size: var(--font-sm);
  color: var(--grey-mid);
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.footer-links {
  font-size: var(--font-sm);
  color: var(--grey-dark);
}

.footer-contacts {
  font-size: var(--font-sm);
  color: var(--grey-dark);
}

.footer-contacts a {
  font-size: var(--font-sm);
  color: var(--grey-dark);
}

.footer-icons {
  max-width: max-content;
}

h6.text-uppercase.fw-bold + hr {
  display: block;
}

.footer-text {
  font-size: var(--font-sm);
  color: var(--grey-dark);
  max-width: 90%;
}

.links-container {
  max-width: max-content;
  margin: 0 auto;
}

.footer-banner {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  z-index: 1;
  padding-top: clamp(0.5rem, 20vw, 0.8rem);
  padding-bottom: clamp(0.5rem, 20vw, 0.8rem);
}

.footer-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--crisal-green-light);
  z-index: 1;
}

.footer-banner > * {
  position: relative;
  z-index: 2;
}

.banner-text {
  font-size: var(--font-sm)  !important;;
  position: relative; 
  top: -4px;
}


.copy-container {
  display: flex;
  gap: 3rem;
  width: 90%;
  margin: 0 auto;
}

.copy-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.img-fluid {
  width: auto;
  height: 3.5rem;
  object-fit: contain;
  transform: translateX(-0.8rem);
}

.img-fluid-2 {
  transform: translateX(-1.6rem);
}

/* Mobile Styles */
@media (max-width: 576px) {

  .footer-container {
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    text-align: center;
    margin-bottom: 0 !important;
    gap: 0rem;
  }

    .copy-container {
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    text-align: center;
    margin-bottom: 0 !important;
    gap: 0rem;
  }

.footer-section {
  margin-bottom: 0 !important;
}

  h6.text-center.text-md-start {
    text-align: left !important;
  }

  h6.text-uppercase.fw-bold + hr {
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  .footer-text {
    font-size: var(--font-xs);
    color: var(--grey-dark);
    max-width: 100%;
    text-align: left !important;
    padding-right: 0;
  }

  .footer-links {
    font-size: var(--font-xs);
    color: var(--grey-dark) !important;
    text-align: left !important;
  }

   .footer-contacts, .footer-contacts a {
    text-align: left !important;
  }

  .d-flex.flex-column.align-items-center .w-100 {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .d-flex.flex-column.align-items-center .text-start {
    text-align: center !important;
  }
  .footer-icons {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    max-width: max-content !important;
    width: auto !important;
  }

  .footer-banner {
    padding: 1rem 0;
  }

  .footer-column {
  padding-top: 1rem; 
}
}



/* Medium and Large Screens Styles */
@media (min-width: 768px) {
  .col-md-4:first-child h6 {
    text-align: left !important;
  }

  .col-md-4:first-child h6 + hr {
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  .d-flex.flex-column.align-items-center h6 {
    text-align: center !important;
  }

  .d-flex.flex-column.align-items-center h6 + hr {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .footer-text {
    padding-right: 2rem;
  }

  .footer-container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
  }
}

@media (min-width: 576px) and (max-width: 768px) {

  .footer-col-3 {
    padding-inline-start: 0rem !important;
  }

  .img-fluid {
    transform: translateX(-0.4rem);
  }

  .img-fluid-2 {
    transform: translateX(-0.8rem);
  }

}

  @media (min-width: 769px) and (max-width: 1024px) {

    .img-fluid {
    transform: translateX(-0.6rem);
  }

  .img-fluid-2 {
    transform: translateX(-0.8rem);
  }
}
  