/* 3D Printing Service Page CSS */

/* Base styles for printing page */
.printing-page {
  font-family: Inter, Arial, sans-serif;
  line-height: 1.65;
  color: var(--jm-color-text);
}

/* Common inner container - now using container-wide */
.printing-inner {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* Section spacing */
.printing-page section {
  padding: 60px 0;
  border-bottom: 1px solid var(--jm-color-border);
}

.printing-page section:last-child {
  border-bottom: none;
}

/* Header styles */
.printing-header {
  text-align: center;
  margin-bottom: 40px;
}

.printing-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--jm-color-primary);
  margin-bottom: 12px;
}

.printing-subtitle {
  font-size: 18px;
  color: var(--jm-color-text-light);
  margin: 0;
}

/* Hero section */
.printing-hero {
  background: linear-gradient(135deg, var(--jm-color-primary) 0%, var(--jm-color-accent) 100%);
  color: #fff;
  padding: 60px 0;
  border-radius: 8px;
  margin-bottom: 60px;
}

.printing-hero-content {
  text-align: center;
}

.printing-hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid var(--jm-color-primary);
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 15px;
}

.btn-primary {
  background-color: var(--jm-color-primary);
  color: #fff;
  border-color: var(--jm-color-primary);
}

.btn-primary:hover {
  background-color: var(--jm-color-accent);
  color: #fff;
  border-color: var(--jm-color-accent);
}

/* Section headings */
.printing-page h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--jm-color-primary);
  margin-bottom: 24px;
  text-align: center;
}

.printing-page h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--jm-color-primary);
  margin-bottom: 12px;
}

/* Description section */
.printing-description p {
  font-size: 16px;
  color: var(--jm-color-text);
  margin-bottom: 16px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  line-height: 1.7;
}

/* Technologies grid */
.technologies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.technology-item {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  border-top: 3px solid var(--jm-color-accent);
}

.technology-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.technology-item p {
  margin: 0;
  color: var(--jm-color-text-light);
  line-height: 1.6;
}

/* Applications grid */
.applications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.application-item {
  background: var(--jm-color-bg-light);
  padding: 30px;
  border-radius: 8px;
  transition: all 0.3s ease;
  border-left: 3px solid var(--jm-color-accent);
}

.application-item:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateX(5px);
}

.application-item p {
  margin: 0;
  color: var(--jm-color-text-light);
  line-height: 1.6;
}

/* Tables */
.materials-table,
.capabilities-table {
  overflow-x: auto;
  margin-top: 40px;
}

.materials-table table,
.capabilities-table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  overflow: hidden;
}

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

.materials-table td,
.capabilities-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--jm-color-border);
  font-size: 14px;
  color: var(--jm-color-text);
}

.materials-table tr:last-child td,
.capabilities-table tr:last-child td {
  border-bottom: none;
}

.materials-table tr:nth-child(even),
.capabilities-table tr:nth-child(even) {
  background: var(--jm-color-bg-light);
}

.materials-table tr:hover,
.capabilities-table tr:hover {
  background: #f0f4f8;
}

/* FAQ styles */
.faq-items {
  max-width: 800px;
  margin: 0 auto;
  margin-top: 40px;
}

.faq-item {
  background: #fff;
  margin-bottom: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--jm-color-bg-light);
  border: 2px solid transparent;
}

.faq-question:hover {
  background: #eef2f7;
  border-color: var(--jm-color-accent);
}

.faq-question h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--jm-color-primary);
}

.faq-toggle {
  font-size: 20px;
  font-weight: bold;
  color: var(--jm-color-accent);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 20px 20px;
}

.faq-answer p {
  margin: 0;
  color: var(--jm-color-text-light);
  line-height: 1.6;
}

/* CTA section */
.printing-cta {
  background: linear-gradient(135deg, var(--jm-color-primary) 0%, var(--jm-color-accent) 100%);
  color: #fff;
  text-align: center;
  border-radius: 8px;
  margin-top: 60px;
}

.printing-cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.printing-cta h3 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 32px;
}

.printing-cta p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
  line-height: 1.7;
}

/* Responsive styles */
@media (max-width: 768px) {
  /* Header adjustments */
  .printing-header h2 {
    font-size: 28px;
  }
  
  .printing-subtitle {
    font-size: 16px;
  }
  
  /* Hero section */
  .printing-hero {
    padding: 40px 0;
  }
  
  .printing-hero-content p {
    font-size: 18px;
  }
  
  /* Section spacing */
  .printing-page section {
    padding: 40px 0;
  }
  
  /* Section headings */
  .printing-page h3 {
    font-size: 24px;
  }
  
  /* Technology and application grids */
  .technologies-grid,
  .applications-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Cards */
  .technology-item,
  .application-item {
    padding: 20px;
  }
  
  /* Tables */
  .materials-table th,
  .capabilities-table th,
  .materials-table td,
  .capabilities-table td {
    padding: 12px 16px;
    font-size: 13px;
  }
  
  /* FAQ */
  .faq-question {
    padding: 16px;
  }
  
  .faq-question h4 {
    font-size: 15px;
  }
  
  /* CTA */
  .printing-cta h3 {
    font-size: 24px;
  }
  
  .printing-cta p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  /* Header */
  .printing-header h2 {
    font-size: 24px;
  }
  
  /* Section headings */
  .printing-page h3 {
    font-size: 20px;
  }
  
  /* Button */
  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  /* Inner container padding */
  .printing-inner {
    padding: 0 15px;
  }
}