.footer-section {
  font-family: 'Poppins', sans-serif;
  color: #fff;
}

.footer-bg {
  background: linear-gradient(rgba(0,0,0,0.9), rgba(0,0,0,0.5)), url('../images/footer.png');
  background-size: cover;
  background-position: center;
  padding: 60px 20px 20px 20px;
}

/* Main Layout */
.footer-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Brand */
.footer-brand .brand-logo {
  font-size: 2rem;
  font-weight: bold;
  display: flex;
  gap: 5px;
}
.footer-brand .brand-logo .blue { color: #0000ff; }
.footer-brand .brand-logo .red { color: #fe6a00; }
.footer-brand .brand-logo .white { color: #ffffff; }

.footer-brand .brand-text {
  margin-top: 15px;
  color: #d1d5db; /* gray-300 */
  line-height: 1.6;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.social-icons a img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.social-icons a:hover img {
  transform: scale(1.2);
  filter: brightness(1.5);
}

/* Footer Links */
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 30px;
}

/* Individual column */
.links-column h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 15px;
}
.links-column ul {
  list-style: none;
  padding: 0;
}
.links-column ul li {
  margin-bottom: 8px;
}
.links-column ul li a {
  text-decoration: none;
  color: #d1d5db;
  transition: color 0.3s;
}
.links-column ul li a:hover {
  color: #0000ff;
}

/* Newsletter */
.newsletter-form {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}
.newsletter-form input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px 0 0 8px;
  border: 1px solid #ccc;
  outline: none;
  min-width: 0;
}
.newsletter-form button {
  background-color: #fe6a00; /* orange */
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}
.newsletter-form button:hover {
  background-color: #fe6a00;
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 15px;
  color: #d1d5db;
}
.footer-bottom .blue-link {
  color: #0000ff;
  text-decoration: none;
}
.footer-bottom .blue-link:hover {
  text-decoration: underline;
}

/* =================
      Responsive
   ================= */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-container,
  .footer-links {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  /* Ensure columns, logos, text, and icons stay visually readable */
  .footer-brand .brand-logo {
    justify-content: center;
  }
  .social-icons {
    justify-content: center;
    margin-bottom: 15px;
  }
  /* Newsletter stacks vertically */
  .newsletter-form {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  .newsletter-form input, .newsletter-form button {
    width: 90%;
    border-radius: 8px;
    min-width: 0;
  }
  .footer-bottom {
    font-size: 0.95rem;
    padding-top: 12px;
  }
}

/* Tiny screens */
@media (max-width: 480px) {
  .footer-bg { padding: 30px 5px 8px 5px; }
  .footer-container,
  .footer-links {
    gap: 12px;
  }
  .footer-brand .brand-logo {
    font-size: 1.3rem;
  }
  .links-column h3 {
    font-size: 1rem;
  }
  .footer-brand .brand-text {
    font-size: 0.95rem;
  }
}
