/* service-projects.css – complete file with responsive card design */

.projects-page {
  padding: 4rem 0;
  background-color: #f6f8fa;
  font-family: 'Barlow', sans-serif;
}

/* Header */
.projects-header {
  text-align: left;
  margin-bottom: 2.5rem;
}

.projects-small-title {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #d41367;
  margin-bottom: 0.5rem;
}

.projects-large-title {
  font-size: 3rem;
  font-weight: 300;
  color: #17458f;
  line-height: 1.2;
  margin: 0;
}

/* Controls bar */
.projects-controls {
  background: white;
  border-radius: 20px;
  padding: 1.5rem 2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.02);
  border: 1px solid #e9ecf0;
  margin-bottom: 1.5rem;
}

.filter-wrapper {
  margin-bottom: 1.5rem;
}

.filter-heading {
  font-size: 1rem;
  font-weight: 600;
  color: #17458f;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: #0067c8;
  font-size: 1.2rem;
}

.search-input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 3rem;
  border: 1px solid #e9ecf0;
  border-radius: 40px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.search-input:focus {
  outline: none;
  border-color: #17458f;
  box-shadow: 0 0 0 3px rgba(23,69,143,0.1);
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-end;
}

.filter-group {
  flex: 1 1 160px;
  min-width: 140px;
}

.filter-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #17458f;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-select {
  width: 100%;
  padding: 0.6rem 2rem 0.6rem 1rem;
  border: 1px solid #e9ecf0;
  border-radius: 40px;
  background-color: white;
  font-size: 1rem;
  color: #17458f;
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
  line-height: 1.3;
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.btn-reset {
  background: none;
  border: 1px solid #e9ecf0;
  padding: 0.5rem 1.5rem;
  border-radius: 40px;
  color: #17458f;
  font-weight: 500;
  transition: all 0.3s;
  cursor: pointer;
  font-size: 1rem;
}

.btn-reset:hover {
  background: #17458f;
  color: white;
  border-color: #17458f;
}

/* Total projects count */
.projects-count {
  font-size: 1.2rem;
  font-weight: 500;
  color: #17458f;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f7a81b;
  display: inline-block;
}

.projects-count span {
  font-weight: 700;
  color: #d41367;
}

/* Projects grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e9ecf0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: #17458f;
  box-shadow: 0 12px 24px rgba(23,69,143,0.1);
}

.project-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #f0f2f5;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  color: #17458f;
  font-size: 3rem;
}

.project-info {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #17458f;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.project-club {
  font-weight: 500;
  color: #4a5568;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.project-club i {
  color: #d41367;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.project-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
  word-break: break-word;
}

.project-meta i {
  color: #d41367;
  flex-shrink: 0;
}

.project-category {
  font-size: 0.9rem;
  color: #17458f;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px dashed #e9ecf0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.project-category i {
  color: #f7a81b;
}

/* No results */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: 20px;
  border: 1px dashed #e9ecf0;
  color: #999;
  font-style: italic;
}

/* Pagination wrapper */
.pagination-wrapper {
  margin-top: 2.5rem;
}

/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 768px) {
  .projects-page {
    padding: 2rem 0;
  }
  .projects-large-title {
    font-size: 2.2rem;
  }
  .projects-controls {
    padding: 1.2rem;
  }
  .filters-row {
    flex-direction: column;
    gap: 1rem;
  }
  .filter-group {
    flex: 1 1 auto !important;
    min-width: 100% !important;
    width: 100%;
  }
  .filter-group label {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
  }
  .form-select {
    padding: 0.7rem 2rem 0.7rem 1rem;
    font-size: 1rem;
  }
  .filter-actions {
    justify-content: stretch;
    margin-top: 1rem;
  }
  .btn-reset {
    width: 100%;
    padding: 0.7rem 1.5rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .project-image-wrapper {
    height: 180px;
  }
}

@media (max-width: 576px) {
  .projects-large-title {
    font-size: 1.8rem;
  }
  .filter-group label {
    font-size: 0.85rem;
  }
  .project-image-wrapper {
    height: 160px;
  }
}
