.tad-single-test,
.tad-single-device {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.tad-single-test .entry-header,
.tad-single-device .entry-header {
  margin-bottom: 2rem;
}

.tad-single-test .entry-title,
.tad-single-device .entry-title {
  font-size: 2.5rem;
  margin: 0;
  color: #333;
}

.test-content-wrapper,
.device-content-wrapper {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.test-content-wrapper .test-image,
.device-content-wrapper .device-image {
  flex: 0 0 40%;
}

.test-content-wrapper .test-image img,
.device-content-wrapper .device-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.test-content-wrapper .test-description,
.device-content-wrapper .device-description {
  flex: 1;
  line-height: 1.6;
}

.device-detailed-description {
  margin-top: 3rem;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.device-detailed-description h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.device-detailed-description .detailed-content {
  line-height: 1.8;
  color: #444;
}

.device-detailed-description .detailed-content p {
  margin-bottom: 1rem;
}

.device-detailed-description .detailed-content img {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: 4px;
}

.device-detailed-description .detailed-content h3,
.device-detailed-description .detailed-content h4 {
  margin: 1.5rem 0 1rem;
  color: #333;
}

.device-detailed-description .detailed-content ul,
.device-detailed-description .detailed-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.device-detailed-description .detailed-content li {
  margin-bottom: 0.5rem;
}

.device-detailed-description .detailed-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid #007bff;
  background: #fff;
  font-style: italic;
}

.device-detailed-description .detailed-content table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
}

.device-detailed-description .detailed-content th,
.device-detailed-description .detailed-content td {
  padding: 0.75rem;
  border: 1px solid #ddd;
}

.device-detailed-description .detailed-content th {
  background: #f1f1f1;
  font-weight: 600;
}

.device-detailed-description .detailed-content code {
  background: #f1f1f1;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: monospace;
}

.device-detailed-description .detailed-content pre {
  background: #f1f1f1;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1rem 0;
}

.device-detailed-description .detailed-content a {
  color: #007bff;
  text-decoration: none;
}

.device-detailed-description .detailed-content a:hover {
  text-decoration: underline;
}

.tad-single-test .related-devices {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.tad-single-test h2,
.tad-single-device h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #333;
}

.tad-single-test .related-devices ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tad-single-test .related-devices li {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tad-single-test .related-devices h3 {
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
  color: #444;
}

.tad-single-test .contact-form-section {
  margin-top: 3rem;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.contact-form-section {
  margin-top: 3rem;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.contact-form-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #333;
}

.contact-form-description {
  margin-bottom: 2rem;
  color: #666;
  line-height: 1.6;
}

.tad-contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.tad-contact-form .form-group {
  margin-bottom: 1.5rem;
}

.tad-contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.tad-contact-form input[type="text"],
.tad-contact-form input[type="email"],
.tad-contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.tad-contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.tad-contact-form .submit-button {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.tad-contact-form .submit-button:hover {
  background: #0056b3;
}

.tad-contact-form .form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 4px;
  display: none;
}

.tad-contact-form .form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.tad-contact-form .form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
  .test-content-wrapper,
  .device-content-wrapper {
    flex-direction: column;
  }

  .test-content-wrapper .test-image,
  .device-content-wrapper .device-image {
    flex: 0 0 100%;
  }
}

.test-details-section {
  margin-top: 3rem;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.test-details-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.test-details-content {
  line-height: 1.8;
  color: #444;
}

.test-details-content p {
  margin-bottom: 1rem;
}

.test-details-content img {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: 4px;
}

.test-details-content h3,
.test-details-content h4 {
  margin: 1.5rem 0 1rem;
  color: #333;
}

.test-details-content ul,
.test-details-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.test-details-content li {
  margin-bottom: 0.5rem;
}

.test-details-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid #007bff;
  background: #fff;
  font-style: italic;
}

.test-details-content table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
}

.test-details-content th,
.test-details-content td {
  padding: 0.75rem;
  border: 1px solid #ddd;
}

.test-details-content th {
  background: #f1f1f1;
  font-weight: 600;
}

.test-details-content code {
  background: #f1f1f1;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: monospace;
}

.test-details-content pre {
  background: #f1f1f1;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1rem 0;
}

.test-details-content a {
  color: #007bff;
  text-decoration: none;
}

.test-details-content a:hover {
  text-decoration: underline;
}

.related-devices {
  margin-top: 3rem;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.related-devices h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.related-devices ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.related-devices li {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.related-devices li:hover {
  transform: translateY(-5px);
}

.related-devices h3 {
  font-size: 1.4rem;
  margin: 0;
  padding: 1rem;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.related-devices h3 a {
  color: #333;
  text-decoration: none;
}

.related-devices h3 a:hover {
  color: #007bff;
}

.device-thumbnail {
  padding: 1rem;
  text-align: center;
}

.device-thumbnail img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.device-excerpt {
  padding: 1rem;
  color: #666;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .related-devices ul {
    grid-template-columns: 1fr;
  }
}
