/* =====================================================================
   JFC Treatment Pages CSS - Premium 2-Column Redesign Layout
   Colors: Magenta (Primary) + Deep Navy (Trust) + Warm Accents
   ===================================================================== */

.treatment-page-container {
  padding: 5rem 0;
  background-color: var(--background);
}

.treatment-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .treatment-layout-grid {
    grid-template-columns: 320px 1fr;
    gap: 4rem;
  }
}

/* ======================= LEFT SIDEBAR ======================= */
.treatment-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Departments Sidebar List */
.dept-list-card {
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dept-list-card:hover {
  box-shadow: var(--shadow-card);
}

.dept-list-title {
  background: var(--navy);
  color: #fff;
  padding: 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
}

.dept-list-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.dept-list-items {
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
}

.dept-list-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  color: var(--navy-light);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid var(--warm-gray);
  text-decoration: none;
}

.dept-list-item:last-child a {
  border-bottom: none;
}

.dept-list-item a:hover {
  background: var(--secondary);
  color: var(--primary);
  padding-left: 1.75rem;
}

.dept-list-item.active a {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 15px -3px hsla(336, 70%, 47%, 0.3);
}

.dept-list-item a .chevron-icon {
  width: 16px;
  height: 16px;
  opacity: 0.5;
  transition: transform 0.3s ease, opacity 0.3s ease, color 0.3s ease;
  color: var(--navy-light);
}

.dept-list-item a:hover .chevron-icon {
  transform: translateX(4px);
  opacity: 1;
  color: var(--primary);
}

.dept-list-item.active a .chevron-icon {
  opacity: 1;
  color: #fff;
  transform: translateX(2px);
}

/* Sidebar Make An Appointment Card */
.sidebar-appointment-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.sidebar-appointment-card:hover {
  box-shadow: var(--shadow-card);
}

.sidebar-appointment-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
}

.sidebar-appointment-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  text-align: center;
  font-weight: 700;
}

.sidebar-appointment-desc {
  color: var(--muted-foreground);
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.sidebar-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-input,
.sidebar-select,
.sidebar-textarea {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--warm-gray);
  font-size: 0.9rem;
  color: var(--navy);
  transition: all 0.3s ease;
  font-family: var(--font-body);
}

.sidebar-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(45, 60, 80)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.sidebar-input:focus,
.sidebar-select:focus,
.sidebar-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(336, 70%, 47%, 0.12);
  background: #fff;
}

.sidebar-textarea {
  resize: vertical;
  min-height: 80px;
}

.sidebar-submit-btn {
  background-color: var(--primary);
  color: #fff;
  padding: 0.9rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px -2px hsla(336, 70%, 47%, 0.35);
  text-align: center;
  cursor: pointer;
  border: none;
}

.sidebar-submit-btn:hover {
  background-color: var(--coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -2px hsla(336, 70%, 47%, 0.45);
}

.sidebar-submit-btn:active {
  transform: translateY(0);
}

/* ======================= MAIN CONTENT ======================= */
.treatment-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.treatment-main-header {
  border-bottom: 2px solid var(--warm-gray);
  padding-bottom: 1.5rem;
  position: relative;
}

.treatment-main-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--primary);
}

.treatment-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
}

.treatment-image-container {
  height:25%;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  /*aspect-ratio: 16 / 9;*/
  
  position: relative;
}

.treatment-image {
  width: 100%;
  height: 100%;
  /*object-fit: cover;*/
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.treatment-image-container:hover .treatment-image {
  transform: scale(1.04);
}

.treatment-text-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.treatment-description {
  font-size: 1.1rem;
  color: var(--foreground);
  line-height: 1.85;
}

.treatment-subtext {
  font-size: 1rem;
  color: var(--muted-foreground);
  line-height: 1.75;
}

/* Advantages Block */
.advantages-section {
  background: var(--warm-white);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  margin-top: 0.5rem;
}

.advantages-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 1.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.advantages-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 24px;
  background: var(--primary);
  border-radius: 3px;
}

.advantages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .advantages-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.advantage-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.advantage-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: var(--primary-foreground) or var(--accent);
}

.advantage-icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 6px;
  transition: all 0.3s ease;
}

.advantage-card:hover .advantage-icon {
  background: var(--primary);
  color: #fff;
}

.advantage-info h4 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 0.35rem;
  line-height: 1.4;
}

.advantage-info p {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

/* Call to Action Banner */
.treatment-cta {
  background: linear-gradient(135deg, var(--navy), hsl(210, 29%, 18%));
  border-radius: 1.5rem;
  padding: 3rem 2.5rem;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-top: 1rem;
}

.treatment-cta::before {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, hsla(336, 70%, 47%, 0.15) 0%, transparent 70%);
  bottom: -100px;
  right: -50px;
  pointer-events: none;
}

.treatment-cta::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, hsla(174, 50%, 45%, 0.12) 0%, transparent 70%);
  top: -80px;
  left: -50px;
  pointer-events: none;
}

.treatment-cta-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  margin-bottom: 0.75rem;
  color: #fff;
  font-weight: 700;
}

.treatment-cta-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.75rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.treatment-cta .btn-white {
  padding: 0.85rem 2rem;
  transition: all 0.3s ease;
}

.treatment-cta .btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.3);
}

/* Mobile Adjustments */
@media (max-width: 767px) {
  .treatment-page-container {
    padding: 3rem 0;
  }
  .treatment-title {
    font-size: 2rem;
  }
  .advantages-section {
    padding: 1.75rem 1.25rem;
  }
  .treatment-cta {
    padding: 2.25rem 1.5rem;
  }
  .treatment-cta-title {
    font-size: 1.5rem;
  }
}
