*,
*::before,
*::after {
    box-sizing: border-box;
}

.footer {
    background-color: #f8f8f8;
    padding: 40px 20px 20px;
    font-family: 'Segoe UI', sans-serif;
    color: #333;
  }
  
  .footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
  }
  
  .footer-left {
    flex: 1 1 300px;
  }
  
  .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .footer-logo img {
    width: 40px;
    height: auto;
  }
  
  .brand-highlight {
    color: #2f6e65;
  }
  
  /* Align newsletter items in a single line and center them */
.newsletter {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between elements */
    justify-content: center; /* Center the newsletter content horizontally */
    text-align: center; /* Ensure text is centered */
    width: 100%; /* Ensure the newsletter spans the full width */
}

/* Newsletter form styling */
.newsletter-form {
    display: flex;
    align-items: center;
    margin: 0; /* Remove extra margin */
    gap: 10px; /* Add space between input and button */
}

/* Input field styling */
.newsletter-form input[type="email"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    flex: 2; /* Allow the input to take up more space */
    box-sizing: border-box; /* Include padding and border in the width */
    width: 400px; /* Set a fixed width for the input field */
}

/* Button styling */
.newsletter-form button {
    background-color: #2f6e65;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap; /* Prevent button text from wrapping */
}
  
  .footer-columns {
    display: flex;
    gap: 40px;
    flex: 2 1 600px;
    justify-content: space-between;
  }
  
  .footer-columns h4 {
    margin-bottom: 10px;
  }
  
  .footer-columns ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-columns li {
    margin-bottom: 8px;
    color: #555;
  }
  
  .footer-bottom {
    border-top: 1px solid #ddd;
    margin-top: 30px;
    padding-top: 20px;
    display: flex;
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    width: 100%; /* Ensure the container spans the full width */
    max-width: 1200px; /* Optional: Set a maximum width for the footer */
    margin-left: auto;
    margin-right: auto; /* Center the footer content */
  }
  
  .social-icons a {
    margin-left: 15px;
    color: #2f6e65;
    text-decoration: none;
  }
  
  .social-icons i {
    font-size: 18px;
  }

@media (max-width: 768px) {
    .newsletter {
        flex-direction: column; /* Stack items vertically on smaller screens */
        gap: 20px; /* Add space between items */
    }

    .newsletter-form {
        flex-direction: column; /* Stack input and button vertically */
        width: 100%; /* Ensure the form spans the full width */
    }

    .newsletter-form input[type="email"],
    .newsletter-form button {
        width: 100%; /* Make input and button full width */
        border-radius: 4px; /* Adjust border radius for stacked layout */
    }
}
@media (max-width: 768px) {
  .footer-columns li,
  .footer-columns a {
    font-size: 14px;     /* Smaller text for mobile */
    word-break: break-word;
    white-space: normal;
  }

  .footer-columns {
    flex-direction: column;
    gap: 20px;            /* Adds spacing between column sections */
  }

  .footer-left {
    text-align: center;   /* Optional: center text on small screens */
  }

  .footer-logo {
    justify-content: center;  /* Center logo and title */
  }
}
