/* Past Services Display Page */

/* Ensure proper spacing from fixed navigation */
body {
  padding-top: 80px;
}

#past-services-display {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  background-color: #f5f5f5;
}

/* Override navigation styling for this page */
#navigation .background-color-div {
  background-color: #fff !important;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px !important;
}

#navigation .logo .dark {
  display: block !important;
}

#navigation .logo .light {
  display: none !important;
}

/* Fix navigation text color - make it dark for visibility */
#navigation #navbar-menu ul li a {
  color: #1a1a1a !important;
}

#navigation .hamburger-menu span,
#navigation .hamburger-menu span:before,
#navigation .hamburger-menu span:after {
  background: #1a1a1a !important;
}

.past-services-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Page Header */
.page-header {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 0.75rem 0;
}

.page-description {
  font-size: 1.125rem;
  color: #5a6c7d;
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .page-header {
    padding: 2rem 1.5rem;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .page-description {
    font-size: 1rem;
  }
}

/* Loading, Error, and No Services States */
.loading-state,
.error-state,
.no-services-state {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 3rem 2rem;
  text-align: center;
}

.loading-state h2,
.error-state h2,
.no-services-state h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}

.loading-state h2 {
  color: #3498db;
}

.error-state h2 {
  color: #e74c3c;
}

.no-services-state h2 {
  color: #95a5a6;
}

.loading-state p,
.error-state p,
.no-services-state p {
  font-size: 1rem;
  color: #5a6c7d;
  margin: 0 0 1.5rem 0;
  line-height: 1.6;
}

.contact-button {
  padding: 0.875rem 1.75rem;
  background: #3498db;
  color: white;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.contact-button:hover {
  background: #2980b9;
  transform: translateY(-1px);
}

/* Services List */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 3rem;
}

@media (max-width: 768px) {
  .services-list {
    grid-template-columns: 1fr;
  }
}

/* Individual Service Item */
.past-service-item {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  border-top: 4px solid #3498db;
  margin-bottom: 2rem;
}

.past-service-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.past-service-content {
  padding: 1.75rem;
}

.past-service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

.past-service-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.past-service-date,
.past-service-time {
  font-size: 0.875rem;
  font-weight: 500;
  color: #5a6c7d;
  padding: 0.5rem 0.75rem;
  background: #f8f9fa;
  border-radius: 6px;
  display: inline-block;
}

.past-service-date:before {
  content: "📅 ";
  margin-right: 0.375rem;
}

.past-service-time:before {
  content: "🕐 ";
  margin-right: 0.375rem;
}

.past-service-description {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #5a6c7d;
  margin: 0 0 1.25rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.past-service-actions {
  margin-top: 1.25rem;
}

.watch-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.watch-button.primary {
  background: #3498db;
  color: white;
}

.watch-button.primary:hover {
  background: #2980b9;
  transform: translateY(-1px);
}
