/* ===== CNC Machining Specific Styles ===== */

/* Hero Section */
.cnc-machining-page .services-hero {
  background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
}

/* Table Styles */
.cnc-machining-page .materials-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.cnc-machining-page .materials-table th {
  background: var(--jm-color-primary);
  color: #fff;
  padding: 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cnc-machining-page .materials-table td {
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 15px;
}

.cnc-machining-page .materials-table tr:last-child td {
  border-bottom: none;
}

.cnc-machining-page .materials-table tr:hover {
  background: #f8fafc;
}

/* Advantages Section */
.cnc-machining-page .services-advantages {
  background: #f8fafc;
}

.cnc-machining-page .services-advantages .services-decision {
  background: transparent;
  border: none;
  padding: 0;
}

.cnc-machining-page .services-advantages ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.cnc-machining-page .services-advantages li {
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.cnc-machining-page .services-advantages li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.1);
}

.cnc-machining-page .services-advantages li::before {
  content: "✓";
  color: var(--jm-color-accent);
  font-weight: bold;
  margin-right: 10px;
  font-size: 18px;
}

/* Applications Section */
.cnc-machining-page .services-applications {
  background: white;
}

/* FAQ Section */
.cnc-machining-page .services-faq article {
  cursor: pointer;
}

.cnc-machining-page .services-faq article p {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin-bottom 0.3s ease;
}

.cnc-machining-page .services-faq article.active p {
  max-height: 200px;
  margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cnc-machining-page .materials-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .cnc-machining-page .services-advantages ul {
    grid-template-columns: 1fr;
  }
}
