/* Flex Container */
.tool-flex-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  padding: 20px;
  border-radius: 16px;
  background: #f9f9f9; /* Slightly lighter background */
  border-radius: 16px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}

/* Hover effect for grid */
.tool-flex-grid:hover {
  background: #f1f1f1;
}

/* Individual Card */
.tool-card {
  flex: 1 1 calc(33.333% - 20px); /* 3 per row */
  min-width: 260px;
  max-width: 100%;
  background: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

/* Hover effect for individual card */
.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  background: #f0f0f0; /* Subtle background change */
}

/* Title */
.tool-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #007bff;
  font-weight: 600;
  transition: color 0.3s;
}

.tool-card h3 a {
  text-decoration: none;
  color: inherit;
}

.tool-card h3 a:hover {
  color: #0056b3;
  text-decoration: underline; /* Add underline effect on hover */
}

/* Description */
.tool-card p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  margin: 0;
  font-family: "Arial", sans-serif;
}

/* Pagination */
.pagination {
  text-align: center;
  margin-top: 40px;
  animation: fadeInUp 0.5s ease-in-out;
}

.page-btn {
  background: #e9e9e9;
  color: #333;
  border: none;
  margin: 4px;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s ease;
}

.page-btn:hover,
.page-btn.active {
  background: #007bff;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .tool-card {
    flex: 1 1 calc(50% - 20px); /* 2 per row */
  }
}

@media (max-width: 500px) {
  .tool-card {
    flex: 1 1 100%; /* 1 per row */
  }
}

/* Optional animation for pagination */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px; /* Slightly more space between items */
  margin-top: 30px;
  text-decoration: none;
}

.tool-item {
  border: 1px solid #e2e2e2;
  padding: 15px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tool-item p {
  font-size: 1rem;
  line-height: 1.4;
  color: #7f8c8d;
  margin: 0 0 15px 0;
  font-weight: 400;
}

.tool-item:hover {
  transform: translateY(-8px); /* Slight hover lift */
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15); /* Deep shadow on hover */
}

.tool-item h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  background: linear-gradient(90deg, #1d65a6, #2a89bf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.2);
  padding: 10px 0;
  border-bottom: 3px solid #1d65a6;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
  
  /* Ensure all headings take equal space */
  height: 80px; /* Adjust this value to ensure equal spacing */
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
}

.tool-item h3:hover {
  color: #1d65a6;
  transform: scale(1.06);
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.25);
}


.tool-link {
    text-decoration: none; /* Removes the underline */
}

.check-it-out {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(45deg, #ff6b6b, #f94d6a);
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.check-it-out:hover {
    background: linear-gradient(45deg, #f94d6a, #ff6b6b);
    color: #fff;
}




.toolitem {
  padding: 5px;
  border-radius: 12px;
  background: #ffffff;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

  .toolscrip-wrapper {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f8fb;
    color: #333;
  }

  .tool-listing-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 30px 20px;
  }

  .tool-listing-container h1 {
    color: #1a237e;
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .tool-listing-container p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 30px;
  }

  .tool-block {
    background: #fff;
    padding: 20px 24px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
  }

  .tool-block:hover {
    transform: translateY(-3px);
  }

  .tool-block h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
  }

  .tool-block a {
    color: #0066cc;
    text-decoration: none;
  }

  .tool-block a:hover {
    text-decoration: underline;
  }

  .tool-block p {
    margin: 0;
    color: #444;
    line-height: 1.5;
  }

  @media (max-width: 600px) {
    .tool-block {
      padding: 16px;
    }
    .tool-listing-container h1 {
      font-size: 1.5rem;
    }
    .tool-block h3 {
      font-size: 1.1rem;
    }
  }
  
  
