/* Footer Styles for Tek Index Website */

.footer {
  background-color: #212529;
  color: #fff;
  padding: 60px 0 20px;
}

.footer-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  margin-bottom: 30px;
  padding-right: 20px;
}

.footer-title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
}

.footer-title:after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  margin-top: 10px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #adb5bd;
  transition: color 0.3s ease;
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-contact-info {
  list-style: none;
  padding: 0;
}

.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  color: #adb5bd;
  font-size: 14px;
}

.footer-contact-info i {
  margin-right: 10px;
  color: var(--primary-color);
  font-size: 16px;
}

.social-links {
  display: flex;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 10px;
  color: #fff;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #adb5bd;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 15px;
}

.footer-about {
  color: #adb5bd;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-subscribe {
  margin-top: 20px;
}

.footer-subscribe form {
  display: flex;
}

.footer-subscribe input {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
}

.footer-subscribe button {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 0 15px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.footer-subscribe button:hover {
  background-color: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .footer-section {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 768px) {
  .footer-section {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}
