/* Base styles for large screens */
.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap; /* Ensure items wrap if needed */
}

.footer-container div {
  margin: 0 20px;
  flex: 1;
}

.footer-logo img {
  width: 11rem;
}

.footer-logo {
  text-align: center;
}

.footer-categories h4,
.footer-info h4,
.footer-contact h4 {
  margin-bottom: 10px;
  font-size: 18px;
  border-bottom: 1px solid white;
  color: white;
  text-align: left;
  display: inline-block;
  font-family: 'comic sans ms',  sans-serif!important;
}

.footer-categories ul,
.footer-info ul,
.footer-contact ul {
  list-style-type: none;
  padding-left: 0;
  margin-left: 0;
  text-align: left;
}

.footer-contact .social-icons {
  margin-left: 0;
  display: flex; /* Make sure social icons are laid out horizontally */
  justify-content: flex-start; /* Center align the social icons */
}

.footer-contact .social-icons a {
  font-size: 28px;
  margin-right: 1rem!important;
}

.footer-contact .social-icons a:hover {
  color: #ccc;
}

/* Features Section */
.features-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px 20px;
  background-color: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  font-family: 'comic sans ms',  sans-serif!important;
  flex-wrap: wrap; /* Ensure feature boxes stack properly on small screens */
}

.feature-box {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  text-align: left;
  padding-left: 6rem;
  min-width: 250px; /* Prevent shrinking too much */
  margin: 10px 0; /* Add vertical spacing between feature boxes */
}

.feature-icon img {
   width: 4rem;
   min-width: 4rem;
}

.feature-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.feature-text h4 {
  font-family: 'comic sans ms',  sans-serif!important;
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  color: #000;
}

.feature-text p {
  margin: 5px 0 0;
  font-size: 14px;
  color: #555;
}

.footer-text h1 , p , .footer-form label, .footer-form input, .footer-form button {
  font-family: 'comic sans ms',  sans-serif!important;
}

/* Responsive Styles */
@media (max-width: 768px) {
  /* Stack items vertically for screens smaller than 768px */
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-container div {
    margin: 10px 0; /* Add vertical margin for separation */
    width: 100%; /* Make each section take full width */
    text-align: left; /* Adjust text alignment */
  }

  .footer-logo {
    text-align: center!important;
  }

  .footer-logo img {
    width: 8rem; /* Slightly smaller logo on mobile */
  }

  .footer-categories h4,
  .footer-info h4,
  .footer-contact h4 {
    font-size: 16px; /* Adjust font size for headings */
    display: inline-block;
  }

  .footer-contact .social-icons a {
    font-size: 20px; /* Adjust icon size for mobile */
    margin: 0px;
  }
  
  .footer-contact .social-icons {
    justify-content: flex-start;
  }

  /* Center-align the contact info */
  .footer-contact ul {
    text-align: center; /* Ensure text inside the contact list is centered */
    padding: 0; /* Remove any extra padding */
  }

  .footer-contact ul li {
    margin-bottom: 10px; /* Add space between items */
  }

  /* Adjust Feature Box Alignment */
  .features-section {
    padding: 20px; /* Reduce padding on mobile */
  }

  .feature-box {
    padding-left: 0; /* Remove large padding from the left */
    text-align: center; /* Center-align text on small screens */
    flex-basis: 100%; /* Ensure each box takes full width on small screens */
    margin: 10px 0; /* Space between each feature box */
  }

  .feature-text h4 {
    font-size: 14px; /* Slightly smaller font for titles */
  }

  .feature-text p {
    font-size: 12px; /* Smaller font size for description */
  }

	form button[type="submit"] {
		padding: 17px 4px!important;
	}
	
	form input[type="email"] {
		width: 200px!important;
	}
}

@media (max-width: 480px) {
  /* Adjust further for very small screens (e.g., phones in portrait mode) */
  .footer-container {
    padding: 10px; /* Add padding for mobile devices */
  }

  .footer-logo img {
    width: 6rem; /* Make logo smaller on very small screens */
  }

  .footer-categories h4,
  .footer-info h4,
  .footer-contact h4 {
    font-size: 14px; /* Further reduce font size on small devices */
  }

  .footer-contact .social-icons a {
    font-size: 18px; /* Smaller social icon size for very small screens */
  }
}
