/*
Theme Name: Kadence Child
Theme URI: https://www.electromechhub.com
Description: Child theme for Kadence
Author: ElectroMech Hub
Template: kadence
Version: 1.0.0
*/

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 20px 0;
}

/* Project Card */
.project-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Card Image */
.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Card Body */
.project-card-body {
  padding: 20px;
}

/* Category + Difficulty row */
.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.project-category {
  background: #f0f0f0;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}
.project-difficulty {
  font-size: 13px;
  font-weight: 600;
}

/* Title */
.project-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

/* Description */
.project-card p {
  font-size: 14px;
  color: #666;
  margin: 0 0 14px 0;
  line-height: 1.5;
}

/* Tools */
.project-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.tool-tag {
  background: #f5f5f5;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: #444;
}

/* View Project Button */
.view-project-btn {
  display: block;
  background: #111;
  color: #fff !important;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s ease;
}
.view-project-btn:hover {
  background: #333;
}

/* Search Bar */
.projects-controls {
  margin-bottom: 20px;
}
.projects-controls input {
  width: 100%;
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 15px;
  outline: none;
  transition: border 0.2s;
}
.projects-controls input:focus {
  border-color: #111;
}

/* Filter Buttons */
.projects-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 25px;
  border: 2px solid #ddd;
  cursor: pointer;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  min-width: 100px;
  text-align: center;
  transition: all 0.2s ease;
  display: inline-block;
  line-height: 1.4;
}
.filter-btn:hover {
  background: #FFF3CC;
  border-color: #FFBF00;
  color: #111;
}
.filter-btn.active {
  background: #111;
  color: #fff !important;
  border-color: #111;
}

/* Responsive */
@media (max-width: 900px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr; }
}