.footer {
  padding: 40px 20px;
  text-align: center;
  font-family: 'Open Sans', sans-serif;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo img {
  height: 60px;
  border-radius: 5px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 22px;
}

.switch input {
    display: none;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #14384E;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.footer-contact {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6c757d;
  font-size: 16px;
}

.contact-item i {
  color: #4caf50;
}

hr {
  margin: 30px auto;
  width: 100%;
  border: 0.5px solid #ddd;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 16px;
  transition: 0.3s;
  background: #fff;
  text-decoration: none;
}

.social-icons a:hover {
  background: #14384E;
  color: #fff;
  border-color: #14384E;
}

.footer-bottom p {
  margin: 5px 0;
  font-size: 14px;
  color: #6c757d;
}
.logo-div{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.theme-toggle{
  display: none;
}

.dark-mode {
    background: #121212;
    color: #ffffff;
}

.dark-mode .footer {
    background: #1e1e1e;
}

@media (max-width: 576px) {
  .footer-contact {
    flex-wrap: nowrap;
    gap: 20px;
  }
  .logo-div{
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}
}

@media (max-width: 576px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
  } 
  .footer-logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .footer-logo img {
    height: 45px;
  }
  .footer-contact {
    display: flex;
    flex-wrap: nowrap !important; 
    justify-content: flex-start;
    gap: 25px;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
  }

  .footer-contact::-webkit-scrollbar {
    height: 4px; 
  }

  .contact-item {
    flex: 0 0 auto;
  }
}
