:root {
   --accent: #007bff;
  --accent-dark: #0056b3;
  --text-primary: #1a1a1a;
  --text-muted: #6b7280;
  --bg: #f9fafb;
  --white: #ffffff;
  --border: #e5e7eb;
  --radius: 8px;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
  color: var(--accent);
  
}

/* Header */
.header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
}
.search-form {
  display: flex;
  flex-wrap: wrap;              /* Allow wrapping on small screens */
  gap: 0.5rem;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}



.search-form input[type="search"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  box-sizing: border-box;
}


.search-form button {
  background: var(--accent);
  border: none;
  color: white;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
}

.search-form button:hover {
  background: var(--accent-dark);

}

/* Categories */
.tools-section h2,
.blog-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.3rem;
}

.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* .category {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
} */

.category h3 {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tools-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tools-list li + li {
  margin-top: 0.4rem;
}

.tools-list a {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  gap: 0.5rem;
  color: var(--text-primary);
 
}

.tools-list a i {
  color: var(--accent);
}

/* Blog Section */
.blog-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
 
} 

/* .blog-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  transition: box-shadow 0.2s ease;
} */

.blog-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  
}

.blog-title {
  font-size: 1.1rem;    
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.blog-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  display: block;
}

.blog-summary {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.blog-footer {
  text-align: right;
  margin-top: 1rem;
}

.blog-footer a {
  font-weight: 600;
  color: var(--accent);
}

/* No posts */
.no-posts {
  color: var(--text-muted);
  font-style: italic;
  padding: 1rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 640px) {
  .search-form {
    flex-direction: column;
  }

  .search-form input,
  .search-form button {
    width: 100%;
  }

  .header {
    align-items: center;
  }
}
