/* Treatment Page Styles */

/* Fine-tune section spacing for treatment pages */
.treatment-info {
  padding-top: 3rem;
  padding-bottom: 1rem;
}

.treatment-description {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.treatment-contraindications {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Common treatment info section styling */
.treatment-info .about-content {
  max-width: 900px;
  margin: 0 auto;
}

/* Treatment highlights styling */
.treatment-highlights {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: .9rem;
}

.treatment-highlights li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  line-height: 1.35;
}

.treatment-highlights .icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f2f6f6;
}

.treatment-highlights .icon svg {
  width: 24px;
  height: 24px;
  stroke: #406463;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.treatment-highlights .icon svg.fill {
  fill: #406463;
  stroke: none;
}

.treatment-highlights .value {
  font-weight: 700;
  font-size: 1.15em;
  display: inline-block;
  margin: 0 .15em 0 .1em;
  color: #2c3d3d;
}

/* Common styling for treatment description and contraindications lists */
.treatment-description ul,
.treatment-contraindications ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: .9rem;
}

.treatment-description ul li,
.treatment-contraindications ul li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  line-height: 1.35;
}

/* Treatment description list icons (checkmarks) */
.treatment-description ul li::before {
  content: '';
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f2f6f6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23406463' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
}

/* Treatment contraindications list icons (warning signs) */
.treatment-contraindications ul li::before {
  content: '';
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff2e8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e67e22' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='m12 17 .01 0'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
}

/* Transparency note styling */
.transparency-note {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  background: #f8f9fa;
  border-left: 4px solid #406463;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #2c3d3d;
  line-height: 1.5;
}

/* Treatment protocols section styles */
.treatment-protocols {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.protocol-grid {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

@media (min-width: 768px) {
  .protocol-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.protocol-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e9ecef;
  transition: box-shadow 0.3s ease;
}

.protocol-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.protocol-card h3 {
  margin: 0 0 1rem;
  color: #2c3d3d;
  font-size: 1.25rem;
}

.protocol-details {
  margin: 1rem 0;
  display: grid;
  gap: 0.5rem;
}

.protocol-details > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.protocol-details strong {
  color: #406463;
  min-width: 80px;
  font-weight: 600;
}

.protocol-card p {
  margin: 1rem 0 0;
  color: #555;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Treatment approach styling */
.treatment-approach {
  margin: 2rem 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .treatment-approach {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.approach-item {
  background: #f2f6f6;
  padding: 1.25rem;
  border-radius: 8px;
  border-left: 4px solid #406463;
}

.approach-item h4 {
  margin: 0 0 0.75rem;
  color: #2c3d3d;
  font-size: 1.1rem;
}

.approach-item p {
  margin: 0;
  line-height: 1.5;
  color: #555;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .treatment-highlights .icon {
    background: #1f2727;
  }
  
  .treatment-description ul li::before {
    background-color: #1f2727;
  }
  
  .treatment-contraindications ul li::before {
    background-color: #2a1f1a;
  }
  
  .transparency-note {
    background: #1a1d1f;
    border-left-color: #406463;
    color: #e8eaed;
  }
  
  .protocol-card {
    background: #1a1d1f;
    border-color: #2d3748;
    color: #e8eaed;
  }
  
  .protocol-card h3 {
    color: #e8eaed;
  }
  
  .protocol-card p {
    color: #a0a0a0;
  }
  
  .approach-item {
    background: #1f2727;
    border-left-color: #406463;
  }
  
  .approach-item h4 {
    color: #e8eaed;
  }
  
  .approach-item p {
    color: #a0a0a0;
  }
}