/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "poppins", sans-serif;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header {
  background: #1e88e5;
  color: white;
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .logo {
  font-family: "poppins", sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  cursor: pointer;
}

header nav {
  font-family: "poppins", sans-serif;
  display: flex;
  gap: 20px;
}

header .nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

header .nav-links li a {
  font-weight: 600;
  color: white;
  transition: color 0.3s ease;
}

header .nav-links li a:hover {
  color: #ffca28;
}

header .menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}

/* Hero Section */
.tools-header {
  background-color: #1e88e5;
  color: white;
  text-align: center;
  padding: 20px;
  position: relative;
}

.tools-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.tools-header p {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  margin-bottom: 20px;
}

/* Search Filter */
.search-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.search-filter select,
.search-filter input,
.search-filter button {
  font-family: "Poppins", sans-serif;
  padding: 10px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.search-filter select,
.search-filter input {
  font-family: "jost", sans-serif;
  width: 180px;
}

.search-filter button {
  background-color: #1e88e5;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.search-filter button:hover {
  background-color: #1565c0;
}

.tool-icon {
  background-color: #ebebeb; /* Green background color (you can change it) */
  width: 75px; /* Set width */
  height: 75px; /* Set height (equal to width to make it circular) */
  border-radius: 50%; /* Makes the background circular */
  color: #fff; /* White color for the icon */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px; /* Adjust icon size */
}

/* Tools Container */
.tools-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  background-color: #f9f9f9;
}

.tool-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 300px;
  text-align: center;
  padding: 20px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.tool-icon {
  font-size: 2.5rem;
  color: #1e88e5;
  margin-bottom: 10px;
  display: block;
}

.tool-card h3 {
  font-family: "outfit", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.tool-card p {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
}

.cta {
  font-family: "jost", sans-serif;
  text-decoration: none;
  color: white;
  background-color: #1e88e5;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.cta:hover {
  background-color: #1565c0;
}

header .nav-links li a {
  font-weight: 600;
  color: white;
  transition:
    color 0.3s ease,
    text-decoration 0.3s ease;
  position: relative;
}

header .nav-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px; /* Adjust to your preference */
  width: 0;
  height: 2px;
  background-color: #ffca28; /* Underline color */
  transition: width 0.3s ease;
}

header .nav-links li a:hover {
  color: #ffca28;
}

header .nav-links li a:hover::after {
  width: 100%; /* Full width underline */
}

/* Footer */
.tools-footer {
  text-align: center;
  padding: 10px;
  background-color: #1e88e5;
  color: white;
  margin-top: 20px;
}
/* Popup Message Styles */
.popup-message {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background-color: white;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 400px;
}

.popup-content p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #333;
}

.popup-content .close-popup {
  background-color: #1e88e5;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.popup-content .close-popup:hover {
  background-color: #1565c0;
}

/* Footer Bottom Section */
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 0.9rem;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .footer-row {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
  }
}

@media (max-width: 768px) {
  .footer-row {
    grid-template-columns: 1fr; /* 1 column on mobile */
  }

  .footer-column h4 {
    font-size: 1.1rem;
  }

  .footer-column p,
  .footer-column ul {
    font-family: "Poppins", sans-serif;
    font-size: 0.9rem;
  }
}
/* End Footer Section */
