/* Rehabilitation Page Styles */

/* Services Grid */
.rehab-service-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease-out);
  height: 100%;
  border: 1px solid rgba(74, 144, 226, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.rehab-service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.rehab-icon {
  width: 56px;
  height: 56px;
  color: var(--accent);
  margin-bottom: var(--space-lg);
  padding: 12px;
  background-color: #f0f7ff;
  border-radius: var(--radius-md);
  transition: transform 0.3s var(--ease-out);
}

.rehab-service-card:hover .rehab-icon {
  transform: scale(1.1) rotate(5deg);
  background-color: var(--accent);
  color: var(--white);
}

.rehab-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.rehab-service-card h3 {
  margin-bottom: var(--space-sm);
  color: var(--primary-dark);
}

.rehab-service-card p {
  color: var(--neutral-600);
  margin-bottom: 0;
}

/* Process Section */
.process-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.process-step:last-child {
  margin-bottom: 0;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-color: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.step-content h3 {
  margin-bottom: var(--space-xs);
}

.step-content p {
  color: var(--neutral-600);
  margin-bottom: 0;
}

/* Facilities Info */
.facility-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background-color: var(--neutral-50);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.facility-feature svg {
  width: 24px;
  height: 24px;
  fill: var(--success);
  flex-shrink: 0;
}

/* Conditions List (Cards) */
.conditions-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 576px) {
  .conditions-list {
    grid-template-columns: 1fr 1fr;
  }
}

.condition-item {
  padding: var(--space-sm) var(--space-md);
  background-color: #f8fafc;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.95rem;
  box-shadow: var(--shadow-xs);
  transition: background-color 0.2s ease;
}

.condition-item:hover {
  background-color: var(--white);
}

/* Conditions Grid Layout (Categorized) */
.conditions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

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

.list-bullet-small {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-bullet-small li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--neutral-700);
  line-height: 1.4;
}

.list-bullet-small li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Rebuilt Stable Layout for Rehabilitation */
.rehab-intro-block {
    padding: 0 15px;
}

.rehab-directions-block {
    margin-top: 40px;
}

.rehab-cta-box {
    align-self: flex-start;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-100);
    padding: 30px !important; /* Balanced internal spacing */
}

.rehab-cta-box p {
    margin-top: 0;
    line-height: 1.6;
}

.rehab-gallery-section {
    padding-top: 60px;
}

/* Slider Image Presentation - NO CROPPING */
.rehab-slider-wrapper {
    max-width: 1000px !important;
    margin: 0 auto !important;
    background: #fdfdfd; /* Light neutral background for gaps */
    padding: 10px;
    position: relative !important;
    overflow: hidden !important;
    border: 1px solid var(--neutral-100);
}

/* Force Smart Slider 3 to NOT crop images */
.rehab-slider-wrapper [data-ss-img],
.rehab-slider-wrapper .n2-ss-item-image img,
.rehab-slider-wrapper .n2-ss-slide-background img {
    object-fit: contain !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* Carousel fallback items */
.rehab-slider-wrapper .carousel-item {
    background: #fdfdfd;
}

.rehab-slider-wrapper .carousel-item img {
    height: 500px;
    object-fit: contain; /* Shows full photo */
    width: 100%;
}

@media (max-width: 768px) {
    .rehab-intro-block {
        text-align: left;
    }
}

/* Condition Items Styling - Matches reference photo */
.condition-item {
    background: #f8fafc;
    padding: 18px 20px;
    border-left: 4px solid var(--accent);
    border-radius: 4px;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 1.05rem;
    line-height: 1.3;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    height: 100%; /* Ensures uniform height in grid */
}

.condition-item:hover {
    background: white;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
