/* General Reset & Fonts */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
}

/* Footer Main Layout */
footer {
  background-color: #f4f4f4; /* Slightly softer grey than lightgrey */
  color: #333;
  padding: 60px 50px 20px;
  font-size: 15px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

/* Headings */
h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 600;
  color: #1b1b1b;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}

/* Add a small underline accent to headings */
h4::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: #0073e6;
  margin-top: 5px;
  border-radius: 2px;
}

/* --- Left Column: Brand & Contact --- */
.footer-logo {
  margin-bottom: 25px;
}

.footer-logo img {
  max-width: 150px;
  height: auto;
  margin-bottom: 15px;
}

.tagline {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  max-width: 300px;
}

.footer-contact {
  list-style: none;
}

.footer-contact li {
  margin-bottom: 12px;
}

.footer-contact a {
  text-decoration: none;
  color: #555;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s ease;
}

.footer-contact a i {
  color: #0073e6;
}

.footer-contact a:hover {
  color: #0073e6;
}

/* --- Center Column: Quick Links --- */
/* Centering the content relative to the column */
.links-col {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers items horizontally */
}

/* If you want the text left aligned but column centered, use padding-left instead */
@media(min-width: 769px) {
    .links-col {
        align-items: flex-start;
        padding-left: 50px; 
    }
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  text-decoration: none;
  color: #555;
  position: relative;
  transition: color 0.3s ease;
}

/* Classy Hover Effect: Link underline expansion */
.footer-links a::before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #0073e6;
  transition: width 0.3s ease-in-out;
}

.footer-links a:hover {
  color: #0073e6;
}

.footer-links a:hover::before {
  width: 100%;
}

/* --- Right Column: Newsletter & Social --- */
.newsletter-text {
  margin-bottom: 15px;
  color: #555;
}

.input-group {
  display: flex;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #ccc;
}

.input-group input {
  flex: 1;
  padding: 12px;
  border: none;
  outline: none;
}

.input-group button {
  background-color: #0073e6;
  color: white;
  border: none;
  padding: 0 20px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.input-group button:hover {
  background-color: #005bb5;
}

/* Privacy Checkbox Styling */
.privacy-options {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #666;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 5px;
}

.privacy-link {
  color: #0073e6;
  text-decoration: none;
}

/* Social Media Section */
.social-section {
  margin-top: 30px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%; /* Circle shape */
  background-color: #fff;
  color: #0073e6;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
}

/* Classy Social Hover Effect: Pop up and fill color */
.social-icons a:hover {
  background-color: #0073e6;
  color: #fff;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 15px rgba(0, 115, 230, 0.3);
}

/* --- Footer Bottom --- */
.footer-bottom {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: #666;
  font-size: 0.9rem;
}

.legal-links {
  list-style: none;
  display: flex;
  gap: 10px;
}

.legal-links a {
  text-decoration: none;
  color: #666;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.legal-links a:hover {
  color: #0073e6;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  .footer {
    padding: 40px 20px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  /* Reset alignments for mobile */
  .links-col {
    align-items: center; 
    padding-left: 0;
  }

  h4::after {
    margin: 5px auto 0; /* Center the underline */
  }

  .footer-contact a {
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }

  .bottom-content {
    flex-direction: column;
    text-align: center;
  }
}