.footer-section {
  background: linear-gradient(135deg, #003366 0%, #001a4d 100%);
  color: #ffffff;
  padding: 30px 0 0;
  position: relative;
  overflow: hidden;
}

.footer-container {
  padding-left: 2%;
}

.shape-bg {
  position: absolute;
  left: -3.6%;
  top: 20%;
  width: 300px;
  height: 300px;
  background: url("../images/footer/footer-arrow.png") no-repeat center center;
  background-size: cover;
  z-index: 1;
}

.footer-section .container {
  position: relative;
  z-index: 2;
}

.footer-content {
  margin-bottom: 60px;
}

.footer-logo img {
  max-width: 200px;
  height: auto;
}

.footer-section h5 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1rem;
  letter-spacing: 0.3px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-menu-group h5 {
  margin-top: 0;
}

.locations-wrapper .accordion {
  background: transparent;
}

.accordion-item {
  background: transparent;
  border: none;
  margin-bottom: 0.75rem;
}

.accordion-button {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border: none;
  border-radius: 4px !important;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
}

.accordion-button:not(.collapsed) {
  background: rgba(255, 255, 255, 0.15) !important;
  box-shadow: none;
}

.accordion-button::after {
  filter: brightness(0) invert(1);
}

.accordion-body {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 0 0 4px 4px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.accordion-body p {
  margin-bottom: 0.5rem;
}

.contact-section {
  margin-top: 3rem;
  margin-left: 17%;
}

.contact-info {
  display: flex;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.contact-info a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1rem;
}

.contact-info a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0;
  background-color: #124aab;
  padding-left: 2%;
  padding-bottom: 1%;
}

.companies-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.our-companies {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.our-companies h6 {
  margin: 0;
  font-size: 1.2rem;
  color: #ffffff;
  font-weight: 600;
}

.company-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.company-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.company-links a:hover {
  color: #ffffff;
}

.separator {
  color: rgba(255, 255, 255, 0.4);
}

.partner-logos {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 3%;
  margin-right: 1%;
}

.partner-logo {
  height: 30px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.partner-logo:last-child {
  height: 30px; /* Increase the height as needed */
}

.partner-logo:hover {
  opacity: 1;
}

.copyright {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.copyright strong {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.footer-section h5::after {
  content: "";
  display: block;
  width: 340px;
  height: 1px;
  background: #386fcc;
  margin-top: 15px;
}

.seperater-line {
  content: "";
  display: block;
  width: 3px;
  height: 55px;
  background: #013076;
  margin-top: 20px;
}

.footer-section .contact-line::after {
  content: "";
  display: block;
  width: 1120px;
  height: 1px;
  background: #386fcc;
  margin-top: 15px;
}

/* Responsive Styles */
@media (max-width: 1199px) {
  .footer-section {
    padding: 50px 0 25px;
  }

  .partner-logos {
    gap: 1.5rem;
  }

  .partner-logo {
    height: 30px;
  }
}

@media (max-width: 991px) {
  .contact-section {
    margin-left: 0;
  }
  .footer-content {
    margin-bottom: 40px;
  }

  .shape-bg {
    width: 200px;
    height: 200px;
  }

  .companies-section {
    flex-direction: column;
    gap: 2rem;
  }

  .our-companies {
    text-align: center;
  }

  .partner-logos {
    justify-content: center;
  }

  .seperater-line {
    display: none;
  }
}

@media (max-width: 767px) {
  .contact-section {
    margin-left: 0;
  }

  .footer-section .contact-line::after {
    width: 340px;
  }

  .footer-section {
    padding: 40px 0 20px;
  }

  .contact-info {
    flex-direction: column;
    gap: 1rem;
  }

  .company-links {
    flex-direction: row;
    gap: 0.5rem;
  }

  .separator {
    display: none;
  }

  .partner-logos {
    gap: 1.25rem;
  }

  .partner-logo {
    height: 25px;
  }

  .shape-bg {
    display: none;
  }

  .seperater-line {
    display: none;
  }

  .partner-logo {
    flex: 1 1 calc(40% - 30px); /* Each logo takes one-third of the row */
    max-width: 80px; /* Adjust size if needed */
    height: 30px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
  }
  .partner-logo:nth-child(5) {
    max-width: 100px; /* Increase width for the 5th logo */
  }

  .our-companies h6 {
    text-align: left;
    margin-bottom: 50px;
    margin-top: 10px;
  }
}

@media (max-width: 575px) {
  .locations-wrapper .accordion {
    background: transparent;
    padding-right: 7%;
  }

  .footer-section {
    padding: 30px 0 0;
  }

  .footer-logo img {
    max-width: 160px;
  }

  .footer-section h5 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
  }

  .partner-logos {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .seperater-line {
    display: none;
  }

  .company-links {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping to a new row */
    gap: 20px; /* Adjust spacing between logos */
  }

  .partner-logo {
    flex: 1 1 calc(40% - 30px); /* Each logo takes one-third of the row */
    max-width: 80px; /* Adjust size if needed */
    height: 30px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
  }
  .partner-logo:nth-child(5) {
    max-width: 100px; /* Increase width for the 5th logo */
  }

  .our-companies h6 {
    text-align: left;
    margin-bottom: 30px;
    margin-top: 10px;
  }
}
