/* Service Page WORKS Section - Horizontal Compact Design */
.works-grid-detailed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 50px;
}

.work-detail-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 25px 20px;
  overflow: hidden;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-detail-card::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: "";
  background: linear-gradient(135deg, rgba(179, 27, 27, 0.02) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.work-detail-card.featured-card {
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
  border-color: var(--accent-color);
  box-shadow: 0 12px 40px rgba(179, 27, 27, 0.2);
}

.featured-badge {
  position: absolute;
  top: 8px;
  left: 15px;
  z-index: 2;
  padding: 5px 12px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  background: var(--accent-color);
  border-radius: 14px;
}

.work-detail-header {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 15px;
  align-items: center;
}

.industry-icon-large {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(179, 27, 27, 0.1) 0%, rgba(179, 27, 27, 0.05) 100%);
  border: 3px solid rgba(179, 27, 27, 0.2);
  border-radius: 50%;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.industry-icon-large svg {
  width: 36px;
  height: 36px;
  color: var(--accent-color);
  transition: all 0.4s ease;
}

.work-detail-header-text {
  flex: 1;
}

.work-detail-category {
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.work-detail-title {
  margin-bottom: 0;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.3;
  color: #1a1a1a;
  letter-spacing: 0.02em;
}

.work-detail-description {
  position: relative;
  z-index: 1;
  font-size: 12px;
  line-height: 1.7;
  color: #555;
  letter-spacing: 0.01em;
}

.work-detail-results {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.result-metric {
  flex: 1;
  padding: 12px 8px;
  text-align: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border: 2px solid #f0f0f0;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.result-metric:hover {
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(179, 27, 27, 0.1);
  transform: translateY(-2px);
}

.metric-label {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-value {
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--accent-color);
  word-break: keep-all;
  white-space: normal;
}

.work-detail-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-tag {
  display: inline-block;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-color);
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, rgba(179, 27, 27, 0.08) 0%, rgba(179, 27, 27, 0.05) 100%);
  border: 1px solid rgba(179, 27, 27, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.detail-tag:hover {
  color: #fff;
  background: var(--accent-color);
  box-shadow: 0 3px 10px rgba(179, 27, 27, 0.3);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .works-grid-detailed {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .work-detail-card {
    padding: 25px 20px;
  }
}
/* Visual Chart Styles */
.work-detail-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  padding: 20px;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border-radius: 12px;
}

.work-chart-bars {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100px;
}

.work-bar {
  position: relative;
  display: flex;
  flex: 1;
  align-items: flex-end;
  justify-content: center;
  max-width: 80px;
  padding-bottom: 8px;
  background: linear-gradient(180deg, rgba(179, 27, 27, 0.2) 0%, rgba(179, 27, 27, 0.1) 100%);
  border-radius: 8px 8px 0 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-bar span {
  font-size: 11px;
  font-weight: 700;
  color: #666;
  letter-spacing: 0.05em;
}

.work-bar-success {
  background: linear-gradient(180deg, var(--accent-color) 0%, #E63946 100%);
  box-shadow: 0 6px 20px rgba(179, 27, 27, 0.3);
}

.work-bar-success span {
  color: #fff;
}

.work-detail-card:hover .work-bar-success {
  box-shadow: 0 10px 30px rgba(179, 27, 27, 0.4);
  transform: translateY(-5px);
}

.work-metric-display {
  display: flex;
  gap: 15px;
  justify-content: center;
  width: 100%;
}

.metric-box {
  flex: 1;
  max-width: 120px;
  padding: 15px 10px;
  text-align: center;
  background: #fff;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.metric-box.metric-up {
  border-color: rgba(34, 197, 94, 0.3);
}

.metric-box.metric-down {
  border-color: rgba(239, 68, 68, 0.3);
}

.metric-box:hover {
  box-shadow: 0 8px 25px rgba(179, 27, 27, 0.15);
  transform: translateY(-3px);
}

.metric-number {
  margin-bottom: 4px;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--accent-color);
}

.metric-arrow {
  margin-bottom: 4px;
  font-size: 20px;
  line-height: 1;
}

.metric-box.metric-up .metric-arrow {
  color: #22C55E;
}

.metric-box.metric-down .metric-arrow {
  color: #EF4444;
}

.metric-text {
  font-size: 10px;
  font-weight: 600;
  color: #888;
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .work-detail-card {
    gap: 12px;
    padding: 20px 18px;
  }
  .work-detail-header {
    gap: 12px;
  }
  .work-detail-visual {
    min-height: 100px;
    padding: 15px;
  }
  .work-chart-bars {
    gap: 15px;
    height: 80px;
  }
  .metric-box {
    padding: 12px 8px;
  }
  .metric-number {
    font-size: 20px;
  }
  .industry-icon-large {
    width: 50px;
    height: 50px;
  }
  .industry-icon-large svg {
    width: 30px;
    height: 30px;
  }
  .work-detail-title {
    font-size: 14px;
  }
  .work-detail-description {
    font-size: 11px;
  }
  .result-metric {
    padding: 10px 6px;
  }
  .metric-value {
    font-size: 16px;
  }
  .detail-tag {
    padding: 4px 8px;
    font-size: 9px;
  }
}