/* Footer Styles */
footer {
  position: relative;
  bottom: 0;
  width: 100%;
  height: 250px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: #ef4444;
}

.footer-section p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.footer-section.links ul {
  list-style: none;
}

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

.footer-section.links a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section.links a:hover {
  color: var(--primary-color);
}

.footer-section.contact p {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-section.contact i {
  color: var(--primary-color);
}

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

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #444;
  color: #fff;
  transition: all 0.3s;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid #ffffff;
}

/* Main Footer (alternative style for some pages) */
.main-footer {
  background-color: #ffffff;
  color: #494949;
  padding: 60px 0 20px;
  margin-top: 60px;
}

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

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer-col h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 40px;
  height: 2px;
  background-color: #ef4444;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #434343;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
}

.footer-col ul li a:hover {
  color: #666666;
  padding-left: 5px;
}

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

.footer-social-links a {
  display: inline-block;
  width: 36px;
  height: 36px;
  background: #333;
  border-radius: 50%;
  text-align: center;
  line-height: 36px;
  margin-right: 10px;
  color: #fff;
  transition: all 0.3s ease;
}

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

.footer-newsletter input {
  width: 100%;
  padding: 10px;
  border: 1px solid #444;
  background: #ffffff;
  color: #fff;
  border-radius: 4px;
  margin-bottom: 10px;
}

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

.footer-newsletter button:hover {
  background: #ef4444;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    flex-direction: column;
    gap: 30px;
  }

  .footer-col {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}
