/* Ortopedija pages - natural image sizing */
/* Image decides its own dimensions, not the adjacent text column */

.content-image.full {
  width: 100%;
  height: auto;
  min-height: unset;
  align-self: start;
}

.content-image.full picture {
  position: static;
  inset: unset;
  height: auto;
  display: block;
}

.content-image.full img {
  position: static;
  width: 100%;
  height: auto;
  object-fit: unset;
  top: unset;
  left: unset;
  border-radius: 12px;
  box-shadow: none;
}

/* =============================================
   Gallery section — wraps the ImageSlider
   ============================================= */

.gallery-section {
  max-width: 100%;
  margin: 0 0 2.5rem;
  width: 100%;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-primary-alpha-20);
  box-shadow:
    0 0 0 0px transparent,
    0 4px 8px var(--shadow-black-08),
    0 16px 48px rgba(0, 0, 0, 0.09);
}

/* Single gold stripe on the whole card — not repeated inside */
.gallery-section-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 28px 22px 28px;
  background: linear-gradient(135deg, var(--bg-primary-alpha-08), var(--bg-green-alpha-12));
  border-bottom: 1px solid var(--border-primary-alpha);
  position: relative;
}

/* Gold stripe is on .gallery-section itself — suppress the duplicate on header */
.gallery-section-header::before {
  display: none;
}

.gallery-section-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px var(--shadow-primary-md);
  margin-top: 2px;
}

.gallery-section-icon svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
}

.gallery-section-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gallery-section-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  align-self: flex-start;
  box-shadow: 0 2px 8px var(--shadow-primary-md);
}

.gallery-section-title {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.3px;
  line-height: 1.25;
  margin: 0;
}

.gallery-section-subtitle {
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--font-four);
  margin: 0;
  max-width: 680px;
}

.gallery-section-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.gallery-stat {
  font-size: var(--fs-xs);
  color: var(--primary-teal);
  font-weight: 500;
}

.gallery-stat strong {
  font-weight: 800;
  color: var(--primary-dark);
}

.gallery-stat-sep {
  color: var(--border-primary-alpha-20);
  font-size: var(--fs-sm);
  line-height: 1;
}

/* The image-slider directly inside gallery-section: no own borders — the section is the container */
.gallery-section > .image-slider {
  margin: 0;
  max-width: none;
  border-radius: 0;
  box-shadow: none;
}

/* Slider header inside gallery: remove its own left stripe (section provides one) and merge visually */
.gallery-section > .image-slider .image-slider-header {
  border-top: none;
  border-bottom: 1px solid var(--border-primary-alpha);
  padding-left: 20px;
  min-height: 44px;
  background: linear-gradient(135deg, var(--bg-primary-alpha-03), var(--bg-green-alpha-05));
}
.gallery-section > .image-slider .image-slider-header::before {
  display: none;
}

@media (max-width: 768px) {
  .gallery-section {
    border-radius: 8px;
    margin: 0 0 1.5rem;
  }
  .gallery-section-header {
    padding: 16px 16px 14px 20px;
    gap: 12px;
  }
  .gallery-section-icon {
    width: 38px;
    height: 38px;
  }
  .gallery-section-icon svg {
    width: 18px;
    height: 18px;
  }
  .gallery-section-title {
    font-size: var(--fs-lg);
  }
  .gallery-section-subtitle {
    font-size: var(--fs-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .gallery-section > .image-slider .image-slider-main {
    height: 300px !important;
  }
}

@media (max-width: 480px) {
  .gallery-section-header {
    padding: 12px 12px 10px 16px;
    gap: 10px;
  }
  .gallery-section-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }
  .gallery-section-icon svg {
    width: 16px;
    height: 16px;
  }
  .gallery-section-header {
    flex-direction: column;
    gap: 10px;
  }
  .gallery-section-title {
    font-size: var(--fs-md);
  }
  .gallery-section-subtitle {
    display: none;
  }
  .gallery-section-stats {
    display: none;
  }
  .gallery-section > .image-slider .image-slider-main {
    height: 240px !important;
  }
}

/* Korekcija X / O - dodate sa migracije scoped stilova */
.page-header .lead {
  font-size: var(--fs-subtitle, 1.2rem);
  color: var(--font);
  opacity: 0.9;
  margin-top: 1rem;
}
.hero-image {
  max-width: 1200px;
  margin: 2rem auto;
}
.varus-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 1rem 0;
}
.varus-list li {
  margin: 0.5rem 0;
  line-height: 1.6;
}
.varus-list a {
  color: var(--primary-teal, #009688);
  text-decoration: underline;
}
.video-title {
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.video-embed {
  margin: 1rem 0 2rem;
}
.content-image figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--font);
  opacity: 0.75;
  text-align: center;
}
.content-text > p.lead {
  font-weight: 600;
  font-size: var(--fs-xl, 1.15rem);
  border-left: 3px solid var(--primary-teal, #009688);
  padding-left: 1rem;
  margin: 1.25rem 0;
}
.cta-block {
  text-align: center;
  align-items: center;
}
.cta-block .visit-page-link {
  display: inline-flex;
  margin-top: 1rem;
}
