/**
 * Case Study shortcode [led-case-study] – standalone styles, 100% width where placed.
 * No shared classes with single case study template to avoid conflicts.
 */

.led-case-study-shortcode {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 24px;
}

.led-case-study-shortcode:not(.lcs-has-override) {
  background: #f8f9fa;
  border-left: 4px solid #1C86FF;
  border-radius: 6px;
  padding: 1.25rem 1.25rem 1.5rem;
}

.led-case-study-shortcode h2 {
  margin-top: 0 !important;
}

/* About row */
.led-case-study-shortcode .lcs-about {
  padding: 0;
  background: transparent;
  border: 0;
}

.led-case-study-shortcode .lcs-title {
  margin: 0 0 1rem;
}

.led-case-study-shortcode .lcs-about-title {
  margin: 0 0 1rem 0;
}

.led-case-study-shortcode .lcs-about-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: flex-start;
}

.led-case-study-shortcode .lcs-field {
  flex: 0 1 auto;
  min-width: 0;
}

.led-case-study-shortcode .lcs-label {
  display: block;
  color: #000;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.led-case-study-shortcode .lcs-value {
  color: #000;
  font-weight: 400;
}

.led-case-study-shortcode .lcs-logo {
  display: block;
  max-height: 100px;
  width: auto;
  vertical-align: middle;
}

.led-case-study-shortcode .lcs-customer-name {
  display: block;
}

.led-case-study-shortcode .lcs-solution-list {
  margin: 0.5rem 0 0 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.led-case-study-shortcode .lcs-solution-list li {
  margin-bottom: 0.25rem;
}

.led-case-study-shortcode .lcs-solution-list a {
  color: #1C86FF;
  text-decoration: underline;
}

/* Stats row */
.led-case-study-shortcode .lcs-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

.led-case-study-shortcode .lcs-stats-row .lcs-stat {
  flex: 0 0 calc(30% - 0.67rem);
}

.led-case-study-shortcode .lcs-stats-row .lcs-trustpilot {
  flex: 0 0 calc(40% - 0.67rem);
  min-height: 120px;
}

.led-case-study-shortcode .lcs-stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 1px dashed #D1D1D1;
  border-radius: 6px;
  padding: 1rem;
  background: #FBFBFB;
}

.led-case-study-shortcode .lcs-stat-label {
  margin: 0;
  display: block;
}

.led-case-study-shortcode .lcs-stat-value {
  display: block;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 2.5rem;
  line-height: 1.2;
  text-transform: uppercase;
  color: #088C43;
}

@media (max-width: 768px) {
  .led-case-study-shortcode .lcs-about-fields {
    flex-direction: column;
    gap: 1rem;
  }

  .led-case-study-shortcode .lcs-stats-row {
    flex-direction: column;
  }

  .led-case-study-shortcode .lcs-stats-row .lcs-stat,
  .led-case-study-shortcode .lcs-stats-row .lcs-trustpilot {
    flex: 1 1 100%;
    width: 100%;
  }

  .led-case-study-shortcode .lcs-stat {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Adaptive before/after */
.led-case-study-shortcode .lcs-before-after {
  display: grid;
  gap: 1rem;
  width: 100%;
  margin: 0 0 1.5rem;
}

.led-case-study-shortcode .lcs-before-after.lcs-cols-1 {
  grid-template-columns: 1fr;
}

.led-case-study-shortcode .lcs-before-after.lcs-cols-1 .lcs-before-after__media img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.led-case-study-shortcode .lcs-before-after.lcs-cols-2 .lcs-before-after__media img {
  aspect-ratio: 16 / 13;
  object-fit: cover;
}

.led-case-study-shortcode .lcs-before-after.lcs-cols-2 {
  grid-template-columns: 1fr 1fr;
}

.led-case-study-shortcode .lcs-before-after__item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.led-case-study-shortcode .lcs-before-after__label {
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
  font-size: 0.9375rem;
  line-height: 1.4;
  min-height: calc(1em * 1.4);
}

.led-case-study-shortcode .lcs-before-after__media img,
.led-case-study-shortcode .lcs-plan__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.led-case-study-shortcode .lcs-before-after__placeholder {
  min-height: 200px;
  background: #f5f5f5;
  border-radius: 4px;
}

.led-case-study-shortcode .lcs-before-after__caption {
  min-height: 1.5rem;
  font-size: 0.875rem;
  color: #666;
}

.led-case-study-shortcode .lcs-before-after__caption p {
  margin: 0;
}

/* Adaptive plan block */
.led-case-study-shortcode .lcs-plan__title {
  margin: 0 0 1rem;
}

.led-case-study-shortcode .lcs-plan__images {
  display: grid;
  gap: 1rem;
  margin: 0 0 1rem;
}

.led-case-study-shortcode .lcs-plan__images.lcs-cols-1 {
  grid-template-columns: 1fr;
}

.led-case-study-shortcode .lcs-plan__images.lcs-cols-2 {
  grid-template-columns: 1fr 1fr;
}

.led-case-study-shortcode .lcs-plan__image {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.led-case-study-shortcode .lcs-plan__image-label {
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
}

.led-case-study-shortcode .lcs-plan__metrics-heading {
  margin: 0 0 0.5rem;
}

.led-case-study-shortcode .lcs-plan__metrics-list {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.led-case-study-shortcode .lcs-plan__metrics-list li {
  margin-bottom: 0.25rem;
}

.led-case-study-shortcode .lcs-plan__metrics-list strong {
  margin-right: 0.25rem;
}

.led-case-study-shortcode .lcs-plan__metrics-products a {
  display: inline-block;
  margin-right: 0.5rem;
  color: #1C86FF;
  text-decoration: underline;
}

/* Read more CTA */
.led-case-study-shortcode .lcs-read-more-wrap {
  margin: 1.25rem 0 0;
}

.led-case-study-shortcode .lcs-read-more {
  display: inline-block;
  text-decoration: underline;
}

/* Backstory / Challenge */
.led-case-study-shortcode .lcs-story {
  display: grid;
  gap: 1.25rem;
}

.led-case-study-shortcode .lcs-story.lcs-cols-1 {
  grid-template-columns: 1fr;
}

.led-case-study-shortcode .lcs-story.lcs-cols-2 {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
  .led-case-study-shortcode .lcs-before-after.lcs-cols-2,
  .led-case-study-shortcode .lcs-plan__images.lcs-cols-2,
  .led-case-study-shortcode .lcs-story.lcs-cols-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 1024px) {
  .led-case-study-shortcode .lcs-before-after, .lcs-plan__images {
    padding-right: 30%;
  }
}