/* Global Styles */
.services {
  margin-top: 100px; /* Added space for navbar */
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.container{
  max-width: 1800px;
}
.section-title {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 15px;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #27ae60;
  border-radius: 2px;
}

.section-subtitle {
  color: #7f8c8d;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Services Layout */
.services-layout {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}

/* Filter Sidebar */
.filter-sidebar {
  flex: 0 0 320px;
}

.filter-card {
  background: white;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 100px; /* Account for navbar */
  margin-bottom: 25px;
}

.filter-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
  color: #2c3e50;
}

.filter-title svg {
  color: #27ae60; /* Green color */
}

.filter-group {
  margin-bottom: 25px;
}

.filter-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #34495e;
  font-size: 0.95rem;
}

.input-with-icon {
  position: relative;
}

.input-with-icon svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #7f8c8d;
  z-index: 1;
}

.filter-input, .filter-select {
  width: 100%;
  padding: 14px 15px 14px 45px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s;
  background: #fafafa;
  position: relative;
  appearance: none;
}

.filter-input:focus, .filter-select:focus {
  outline: none;
  border-color: #27ae60; /* Green color */
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.15);
  background: white;
}

.filter-select {
  padding-right: 40px;
}

.select-arrow {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #7f8c8d;
  display: none;
}

/* Custom Checkbox Styling */
.checkbox-container {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 16px;
  user-select: none;
  padding: 10px 12px 10px 35px;
  border-radius: 8px;
  transition: all 0.2s;
}

.checkbox-container:hover {
  background: #f0f9f0; /* Light green hover */
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  height: 20px;
  width: 20px;
  background-color: #f8f9fa;
  border: 2px solid #ddd;
  border-radius: 5px;
  transition: all 0.2s;
}

.checkbox-container input:checked ~ .checkmark {
  background-color: #27ae60;
  border-color: #27ae60;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

/* Category Filter */
.category-filter, .region-filter {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 5px;
}

.category-item, .region-item {
  margin-bottom: 8px;
}

.subtypes-container {
  margin-left: 20px;
  margin-top: 8px;
  padding-left: 15px;
  border-left: 2px solid #eaeaea;
  display: none;
}

.subtype-item {
  margin-bottom: 8px;
}

.subtype-item .checkbox-container {
  font-size: 0.9em;
  color: #5a6c7d;
  padding: 8px 12px 8px 30px;
}

.subtype-item .checkmark {
  height: 18px;
  width: 18px;
  left: 8px;
}

.subtype-item .checkmark:after {
  left: 5px;
  top: 1px;
  width: 4px;
  height: 8px;
}

/* Filter Actions */
.filter-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.filter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.filter-btn.secondary {
  background: #f8f9fa;
  color: #5a6c7d;
  border: 1px solid #e0e0e0;
}

.filter-btn.secondary:hover {
  background: #e9ecef;
  transform: translateY(-2px);
}

/* Become Supplier Section */
.become-supplier {
  background: linear-gradient(135deg, #27ae60 0%, #219653 100%); /* Green gradient */
  border-radius: 16px;
  padding: 25px;
  color: white;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.become-supplier h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.become-supplier p {
  margin-bottom: 20px;
  opacity: 0.9;
  font-size: 0.95rem;
}

.supplier-btn {
  display: inline-block;
  background: white;
  color: #27ae60; /* Green color */
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.supplier-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Services Main Content */
.services-main {
  flex: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); /* Increased max-width */
  gap: 25px;
}

/* Service Card Enhancements */
.service-card {
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card-inner {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover .service-card-inner {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.service-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.service-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4CAF50;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.service-image:hover .service-overlay {
  opacity: 1;
}

.service-view-btn {
  background: white;
  color: #27ae60; /* Green color */
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.service-view-btn:hover {
  background: #27ae60;
  color: white;
  transform: translateY(-2px);
}

.service-card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #2c3e50;
  font-weight: 700;
}

.service-provider {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.provider-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #27ae60; /* Green color */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 12px;
  flex-shrink: 0;
}

.provider-info {
  display: flex;
  flex-direction: column;
}

.provider-name {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 3px;
}

.provider-phone {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: #7f8c8d;
}

.service-meta {
  margin-bottom: 15px;
}

.meta-item {
  margin-bottom: 15px;
}

.meta-label {
  display: block;
  font-size: 0.85rem;
  color: #7f8c8d;
  margin-bottom: 8px;
  font-weight: 500;
}

.categories-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-with-types {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.category-with-types:last-child {
  border-bottom: none;
}

.category-name {
  font-weight: 600;
  color: #27ae60; /* Green color */
  font-size: 0.9rem;
  min-width: 100px;
  padding-right: 10px;
  border-right: 1px solid #e0e0e0;
}

.types-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.type-tag {
  background: #e8f5e9; /* Light green */
  color: #2e7d32; /* Dark green */
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.service-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.update-date {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  color: #95a5a6;
}

.date-icon {
  margin-right: 5px;
}

.service-link {
  display: flex;
  align-items: center;
  color: #27ae60; /* Green color */
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.service-link:hover {
  color: #219653; /* Darker green */
}

.link-arrow {
  margin-left: 5px;
}

/* View All Button */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 2.5rem !important;
}





.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1.25rem;
  border-radius: 0.6rem;
}

/* No Results Message */
.no-results-message {
  text-align: center;
  padding: 60px 20px;
  background: #f9f9f9;
  border-radius: 16px;
  margin: 30px 0;
  display: none;
}

.no-results-icon {
  margin-bottom: 20px;
}

.no-results-message h3 {
  margin-bottom: 10px;
  color: #2c3e50;
  font-size: 1.5rem;
}

.no-results-message p {
  color: #7f8c8d;
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  }
}

@media (max-width: 992px) {
  .services-layout {
    flex-direction: column;
  }
  
  .filter-sidebar {
    flex: 0 0 auto;
    margin-bottom: 30px;
  }
  
  .filter-card {
    position: static;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

@media (max-width: 768px) {
  .services {
    margin-top: 80px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .filter-actions {
    flex-direction: column;
  }
  
  .filter-card, .become-supplier {
    padding: 20px;
  }
  
  .category-with-types {
    flex-direction: column;
    gap: 8px;
  }
  
  .category-name {
    min-width: auto;
    border-right: none;
    padding-right: 0;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e0e0e0;
  }
}

@media (max-width: 576px) {
  .service-provider {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .provider-avatar {
    margin-bottom: 10px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
}

/* Custom scrollbar for filter areas */
.category-filter::-webkit-scrollbar,
.region-filter::-webkit-scrollbar {
  width: 6px;
}

.category-filter::-webkit-scrollbar-track,
.region-filter::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.category-filter::-webkit-scrollbar-thumb,
.region-filter::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

.category-filter::-webkit-scrollbar-thumb:hover,
.region-filter::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}