/* LED Resources — case-studies */

/* --- case-studies/archive --- */
/**
 * Styles for the case studies archive page
 */

.case-studies-banner-text .led-crumbs {
  margin-bottom: 0.75rem;
  padding-top: 0;
}

/* Archive banner – left: title / description / CTA, right: featured case study */
.case-studies-archive-banner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2.5rem;
  padding: 0;
  background: transparent;
  max-width: 100%;
  min-width: 0;
}

@media (min-width: 769px) {
  .case-studies-archive-banner {
    margin-top: 20px;
  }
}

.case-studies-banner-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex: 1 1 calc(50% - 1.25rem);
  min-width: 0;
  max-width: 100%;
}

.case-studies-banner-heading {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #111;
}

.case-studies-banner-description {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  max-width: 36rem;
}

.case-studies-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: #45b449;
  color: #fff !important;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.case-studies-banner-cta:hover {
  background: #3a9a3e;
  color: #fff !important;
}

.case-studies-banner-cta-arrow {
  font-size: 1.15em;
  line-height: 1;
}

.case-studies-featured {
  flex: 1 1 calc(50% - 1.25rem);
  min-width: 0;
  max-width: 100%;
}

.case-studies-featured-link {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  min-height: 240px;
  text-decoration: none;
}

.case-studies-featured-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-studies-featured-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.case-studies-featured-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
  pointer-events: none;
}

.case-studies-featured-title {
  margin: 0;
  color: #fff;
  font-size: clamp(1rem, 2vw, 1.375rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.case-studies-featured-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #1c86ff;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.case-studies-featured-btn-arrow {
  font-size: 1.1em;
  line-height: 1;
}

@media (hover: hover) {
  .case-studies-featured-link:hover .case-studies-featured-overlay,
  .case-studies-featured-link:focus-visible .case-studies-featured-overlay,
  .case-studies-featured-link:hover .case-studies-featured-title,
  .case-studies-featured-link:focus-visible .case-studies-featured-title,
  .case-studies-featured-link:hover .case-studies-featured-btn,
  .case-studies-featured-link:focus-visible .case-studies-featured-btn {
    opacity: 1;
  }
}

/* Archive bottom banner */
.case-studies-archive-bottom-banner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2.5rem;
  margin-top: 3rem;
  padding: 2rem;
  background: #F9F8F8;
  border-radius: 12px;
  max-width: 100%;
  min-width: 0;
}

.case-studies-bottom-banner-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex: 1 1 calc(50% - 1.25rem);
  min-width: 0;
  max-width: 100%;
}

.case-studies-bottom-banner-heading {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: #111;
}

.case-studies-bottom-banner-subheading {
  font-size: 1rem;
  line-height: 1.4;
  color: #111;
}

.case-studies-bottom-banner-subheading strong {
  font-weight: 700;
}

.case-studies-bottom-banner-description {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #333;
}

.case-studies-bottom-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #F9F8F8;
  color: #45b449 !important;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid #45b449;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.case-studies-bottom-banner-cta:hover {
  background: #45b449;
  color: #fff !important;
}

.case-studies-bottom-banner-cta-arrow {
  font-size: 1.1em;
  line-height: 1;
}

.case-studies-bottom-banner-image {
  display: flex;
  flex: 1 1 calc(50% - 1.25rem);
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

.case-studies-bottom-banner-image-frame {
  width: 100%;
  max-width: 412px;
  height: 292px;
  max-height: 292px;
  background: #fff;
  border-radius: 12px;
  padding: 0.75rem;
  overflow: hidden;
}

.case-studies-bottom-banner-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 412px;
  max-height: 292px;
  border-radius: 8px;
  object-fit: cover;
}

/* Directory search & filters */
.case-studies-directory {
  margin-bottom: 2rem;
}

.case-studies-directory-heading {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #111;
}

.case-studies-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.case-studies-filter-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

.case-studies-lighting-type-select,
.case-studies-project-type-select {
  min-width: 180px;
  padding: 0.625rem 2.75rem 0.625rem 0.875rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333333' d='M2.5 4.5 6 8 9.5 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 12px;
  font-size: 0.9375rem;
  color: #333;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.case-studies-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.case-studies-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  pointer-events: none;
  display: flex;
}

.case-studies-search-input {
  width: 100%;
  padding: 0.625rem 0.75rem 0.625rem 2.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.9375rem;
  background: #fff;
}

.case-studies-search-input:focus {
  outline: none;
  border-color: #45b449;
  box-shadow: 0 0 0 2px rgba(69, 180, 73, 0.15);
}

/* AJAX results */
.case-studies-archive-results {
  position: relative;
  min-height: 120px;
  transition: opacity 0.2s ease;
}

.case-studies-archive-results.is-loading {
  opacity: 0.55;
  pointer-events: none;
  min-height: 200px;
}

.case-studies-archive-results.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  border: 3px solid #45b449;
  border-top-color: transparent;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: case-studies-spin 0.7s linear infinite;
  z-index: 2;
}

@keyframes case-studies-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Case studies grid */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.case-studies-archive-item {
  background: transparent;
}

.case-studies-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.case-studies-thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.case-studies-thumbnail-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.case-studies-view-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #1c86ff;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  border-radius: 10px;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.case-studies-view-btn-arrow {
  font-size: 1.1em;
  line-height: 1;
}

@media (hover: hover) {
  .case-studies-link:hover .case-studies-thumbnail-overlay,
  .case-studies-link:focus-visible .case-studies-thumbnail-overlay {
    opacity: 1;
  }

  .case-studies-link:hover .case-studies-view-btn,
  .case-studies-link:focus-visible .case-studies-view-btn {
    opacity: 1;
  }
}

.case-studies-thumbnail img,
.case-studies-thumbnail .category-fallback-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-thumbnail-placeholder {
  width: 100%;
  height: 100%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-studies-content {
  padding: 0;
}

.case-studies-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.case-studies-tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
}

.case-studies-tag-project {
  background: #A5A5A5;
  color: #fff;
}

.case-studies-tag-lighting {
  background: #fff;
  color: #A5A5A5;
  border: 1px solid #A5A5A5;
}

.case-studies-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  color: #111;
}

.case-studies-link:hover .case-studies-title {
  color: #111;
}

/* Pagination */
.case-studies-archive-content-area .navigation.pagination {
  margin: 2rem 0;
  text-align: center;
}

.case-studies-archive-content-area .nav-links {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* No results */
.case-studies-archive-content-area .no-results {
  padding: 2rem;
  text-align: center;
  background: #f9f9f9;
  border-radius: 8px;
}

.case-studies-archive-content-area .no-results h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

@media (max-width: 1024px) {
  .case-studies-archive-bottom-banner {
    display: none;
  }
}

@media (max-width: 768px) {
  .case-studies-archive-banner,
  .case-studies-archive-bottom-banner {
    flex-direction: column;
    align-items: stretch;
    max-width: 100%;
    gap: 1.5rem;
  }

  .case-studies-archive-bottom-banner {
    padding: 1.5rem;
  }

  .case-studies-banner-text,
  .case-studies-featured,
  .case-studies-bottom-banner-text,
  .case-studies-bottom-banner-image {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }

  .case-studies-featured-link {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .case-studies-featured-image {
    max-width: 100%;
  }

  .case-studies-featured,
  .case-studies-bottom-banner-image {
    order: 2;
    justify-content: center;
  }

  .case-studies-filter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .case-studies-lighting-type-select,
  .case-studies-project-type-select,
  .case-studies-search-wrap {
    width: 100%;
    min-width: 0;
  }

  .case-studies-banner-cta {
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 600px) {
  .case-studies-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* --- case-studies/single --- */
/**
 * Single case study – hero + 2 columns (20% / 80%), right side in rows.
 */

.led-resources__hero {
	background-color: lightgray;
	/* Overlay on hero image — 80% stops per design */
	background-image:
		linear-gradient(287deg, rgba(99, 179, 216, 0.8) 4.91%, rgba(8, 77, 4, 0.8) 44.21%, rgba(14, 38, 0, 0.8) 83.5%),
		var(--case-study-hero-image, none);
	background-position:
		0 0,
		center;
	background-size: cover, cover;
	background-repeat: no-repeat;
	position: relative;
	padding: 110px 0 155px;
	margin-bottom: 0;
}

.led-resources__hero-inner {
	position: relative;
	z-index: 1;
	max-width: 1368px;
	width: 95%;
	margin: 0 auto;
	padding: 0 20px;
}

html body.led-resources-page .led-resources__hero .led-crumbs {
	margin-bottom: 1rem;
	padding-top: 0;
}

html body.led-resources-page .led-resources__hero .led-crumbs,
html body.led-resources-page .led-resources__hero .led-crumbs a,
html body.led-resources-page .led-resources__hero .led-crumbs__link,
html body.led-resources-page .led-resources__hero .led-crumbs__plugin a,
html body.led-resources-page .led-resources__hero .led-crumbs__item--current,
html body.led-resources-page .led-resources__hero .led-crumbs__item--current span,
html body.led-resources-page .led-resources__hero .led-crumbs__item:not(:last-child)::after,
html body.led-resources-page .led-resources__hero .led-crumbs__plugin span.breadcrumb_last,
html body.led-resources-page .led-resources__hero .led-crumbs__plugin span {
	color: var(--color-neutral-0, #fff);
}

html body.led-resources-page .led-resources__hero .led-crumbs a:hover,
html body.led-resources-page .led-resources__hero .led-crumbs a:focus,
html body.led-resources-page .led-resources__hero .led-crumbs__link:hover,
html body.led-resources-page .led-resources__hero .led-crumbs__link:focus,
html body.led-resources-page .led-resources__hero .led-crumbs__plugin a:hover,
html body.led-resources-page .led-resources__hero .led-crumbs__plugin a:focus {
	color: var(--color-neutral-0, #fff);
	text-decoration: underline;
}

.led-resources__title {
	margin: 0;
	max-width: 954px;
	color: #fff;
}

.led-resources__hero .led-resources__subtitle {
	margin-top: 1rem;
	max-width: 954px;
	color: #fff;
}

.led-resources__hero .led-resources__subtitle,
.led-resources__hero .led-resources__subtitle p,
.led-resources__hero .led-resources__subtitle a,
.led-resources__hero .led-resources__subtitle li {
	color: #fff;
}

.led-resources__hero .led-resources__subtitle a:hover {
	opacity: 0.9;
}

/* Main: 2 columns 20% / 80% */
.case-study-main {
	background: #fff;
	padding: 2rem 0 3rem;
}

.case-study-main-inner {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 27% 73%;
	gap: 48px;
	align-items: start;
}

/* Left column 20% */
.led-resources__col {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	position: sticky;
	top: 4rem;
}

/* Right column 80% – rows */
.led-resources__col--aside {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-width: 0;
}

/* Boxes */
.led-resources__box {
	border: 2px dashed #088c43;
	border-radius: 6px;
	padding: 1.25rem;
	background: #fff;
}

/* Let global typography handle heading styles */
.led-resources__box-title {
	margin: 0 0 1rem 0;
}

h2.led-resources__box--about {
	margin-top: 0 !important;
}

h3.led-resources__box--help {
	margin-top: 0 !important;
}

h2.case-study-stat-label {
	margin-top: 0 !important;
}

.led-resources__box-content {
	font-size: 0.9375rem;
	line-height: 1.6;
}

.led-resources__box-content p:last-child {
	margin-bottom: 0;
}

/* CTAs */
.led-resources__ctas {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.led-resources__cta {
	display: inline-block;
	padding: 12px 20px;
	text-align: center;
	text-decoration: none;
	border-radius: 8px;
	transition: opacity 0.2s;
}

.led-resources__cta:hover {
	opacity: 0.9;
}

.led-resources__cta--primary {
	background: #45b449;
	color: #fff;
}

.led-resources__cta--secondary {
	background: #1c86ff;
	color: #fff;
}

/* Row 1: Stats + CTA 50/50 */
.case-study-row-stats-trustpilot {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: flex-start;
}

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

.case-study-row-stats-trustpilot .case-study-trustpilot-placeholder {
	flex: 0 0 calc(40% - 0.67rem);
}

.case-study-stat-box {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
	gap: 24px;
	border: 1px dashed #d1d1d1;
	border-radius: 6px;
	padding: 1rem;
	background: #fbfbfb;
}

/* Stats title: h2, no applied typography (global handles it) */
.case-study-stat-label {
	display: block;
	margin: 0 0 8px 0;
}

/* Stats value: green, Oswald SemiBold uppercase */
.case-study-stat-value {
	display: block;
	font-family: 'Oswald', sans-serif;
	font-weight: 600;
	font-size: 67.14px;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: uppercase;
	color: #088c43;
}

/* Trustpilot widget placeholder (third column in stats row) */
.case-study-trustpilot-placeholder {
	min-height: 120px;
	padding: 0;
	margin-top: -10px;
}

/* Live help */
.case-study-live-help {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	border-radius: 8px;
	border: 2px dashed #d1d1d1;
	background: #fbfbfb;
}

.case-study-live-help .live-help-content {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.case-study-live-help .led-resources__box--help {
	margin: 0;
}

.case-study-live-help .live-help-phone {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	text-decoration: none;
	font-size: 0.9375rem;
	font-weight: 600;
}

.case-study-live-help .phone-label {
	display: inline;
	color: #088c43;
	text-transform: uppercase;
	margin: 0;
}

.case-study-live-help .live-help-phone:hover .phone-number,
.case-study-live-help .live-help-phone:hover .phone-label {
	text-decoration: underline;
}

.case-study-live-help .live-help-icon img {
	width: 48px;
	height: 48px;
	display: block;
}

/* About: label above value, labels black uppercase */
.led-resources__about-field {
	margin-bottom: 1rem;
}

.led-resources__about-field:last-child {
	margin-bottom: 0;
}

.led-resources__about-label {
	color: #000;
	text-transform: uppercase;
	margin-bottom: 0.35rem;
}

.led-resources__about-value {
	color: #000;
	font-weight: 400;
}

.led-resources__about-value .led-resources__customer-name {
	cursor: help;
	display: block;
}

.led-resources__about-value .case-study-project-type-tag {
	display: inline-block;
}

.led-resources__about-value .case-study-project-type-tag:not(:last-child)::after {
	content: ',';
}

.led-resources__about .led-resources__customer-logo {
	display: block;
	max-width: 50%;
	height: auto;
	object-fit: contain;
	vertical-align: middle;
}

/* Solution: products list with SKUs */
.case-study-solution-products {
	margin: 0.5rem 0 0 0;
	padding-left: 1.25rem;
	list-style: disc;
}

.case-study-solution-products li {
	margin-bottom: 0.25rem;
}

.case-study-solution-products li a {
	color: #1c86ff;
	text-decoration: underline;
}

/* Additional Info – same as other categories (uses .section-content-wrapper from core) */
.led-resources__sections {
	width: 100%;
	margin-top: 0;
}

.led-resources__sections .led-resources__section {
	margin-bottom: 2rem;
}

.led-resources__sections .led-resources__section:last-child {
	margin-bottom: 0;
}

.led-resources__sections .section-content-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	width: 100%;
}

.led-resources__sections .section-content-wrapper.single-column {
	flex-direction: column;
}

.led-resources__sections .section-content-wrapper.single-column .resource-column {
	flex: 1 1 100%;
}

.led-resources__sections .section-content-wrapper.two-columns {
	flex-direction: row;
	flex-wrap: wrap;
}

.led-resources__sections .section-content-wrapper.two-columns .resource-column {
	flex: 1 1 calc(50% - 15px);
	min-width: 0;
}

@media (max-width: 768px) {
	.led-resources__sections .section-content-wrapper.two-columns .resource-column {
		flex: 1 1 100%;
	}
}

/* Lightbox */
#cs-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	box-sizing: border-box;
}

#cs-lightbox-img {
	max-width: 100%;
	max-height: 90vh;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}

#cs-lightbox-close {
	position: fixed;
	top: 1rem;
	right: 1rem;
	background: rgba(255, 255, 255, 0.15);
	border: none;
	color: #fff;
	font-size: 1.5rem;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	cursor: pointer;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

#cs-lightbox-close:hover {
	background: rgba(255, 255, 255, 0.3);
}

.cs-lightbox-trigger {
	cursor: zoom-in;
	display: block;
}

.led-resources__before-after.single-image .cs-lightbox-trigger {
	align-self: flex-start;
}

/* ===== Before & After: Grid Layout (dual-image) ===== */

.led-resources__before-after {
	display: grid;
	grid-template-columns: 1fr 1fr;
	row-gap: 8px;
	column-gap: 24px;
	grid-template-areas:
		'label-before  label-after'
		'image-before  image-after'
		'caption-before caption-after';
	grid-template-rows: auto 1fr auto;
	width: 100%;
}

.cs-ba__label-wrap,
.cs-ba__label-before,
.cs-ba__label-after {
	margin-bottom: 8px;
}

.led-resources__before-after.no-labels {
	grid-template-areas:
		'image-before  image-after'
		'caption-before caption-after';
	grid-template-rows: 1fr auto;
	margin-bottom: 0;
}

.led-resources__before-after.no-captions {
	grid-template-areas:
		'label-before  label-after'
		'image-before  image-after';
	grid-template-rows: auto 1fr;
}

.led-resources__before-after.no-labels.no-captions {
	grid-template-areas: 'image-before image-after';
	grid-template-rows: 1fr;
}

/* ----- Grid cell assignments ----- */
.cs-ba__label-before {
	grid-area: label-before;
}
.cs-ba__label-after {
	grid-area: label-after;
}
.cs-ba__image-before {
	grid-area: image-before;
}
.cs-ba__image-after {
	grid-area: image-after;
}
.cs-ba__caption-before {
	grid-area: caption-before;
}
.cs-ba__caption-after {
	grid-area: caption-after;
}

.no-labels .cs-ba__label-before,
.no-labels .cs-ba__label-after,
.no-captions .cs-ba__caption-before,
.no-captions .cs-ba__caption-after {
	display: none;
}

/* ----- Images fill the 1fr row ----- */
.cs-ba__image-before,
.cs-ba__image-after {
	display: flex;
	min-width: 0;
}

.cs-ba__image-before .cs-lightbox-trigger,
.cs-ba__image-after .cs-lightbox-trigger {
	flex: 1;
	display: block;
	cursor: zoom-in;
}

.cs-ba__image-before .cs-lightbox-trigger img,
.cs-ba__image-after .cs-lightbox-trigger img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 4px;
}

/* ----- Labels: truncated text, title attr for tooltip ----- */
.cs-ba__label {
	margin: 0;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.9375rem;
	line-height: 1.4;
}

/* ----- Caption: truncated text, title attr for tooltip ----- */
.cs-ba__caption {
	font-size: 0.875rem;
	color: #666;
}

.cs-ba__caption p {
	margin: 0;
}

/* ===== Single-image mode (flex, not grid) ===== */

.led-resources__before-after.single-image {
	display: flex;
	flex-direction: column;
	max-width: 100%;
}

.led-resources__before-after.single-image .led-resources__before-after-item {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}

.led-resources__before-after.single-image .led-resources__before-after-item .cs-lightbox-trigger img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: top;
}

.led-resources__before-after.single-image .cs-ba__label-wrap.empty-label,
.led-resources__before-after.single-image .cs-ba__caption-wrap.empty-caption {
	display: none;
}

.led-resources__before-after.single-image .cs-ba__label-wrap {
	flex-shrink: 0;
}

.led-resources__before-after.single-image .cs-ba__caption-wrap {
	flex-shrink: 0;
}

/* ===== Placeholder (for missing image in grid) ===== */
.led-resources__before-after-ph {
	flex: 1;
	min-height: 200px;
	background: #f5f5f5;
	border-radius: 4px;
}

/* ===== Responsive: Mobile (<=768px) ===== */
@media (max-width: 768px) {
	.led-resources__before-after,
	.led-resources__before-after.no-labels,
	.led-resources__before-after.no-captions,
	.led-resources__before-after.no-labels.no-captions {
		grid-template-columns: 1fr;
		grid-template-areas: none;
		grid-template-rows: none;
	}

	.cs-ba__label-before {
		grid-area: auto;
		order: 1;
	}
	.cs-ba__image-before {
		grid-area: auto;
		order: 2;
	}
	.cs-ba__caption-before {
		grid-area: auto;
		order: 3;
	}
	.cs-ba__label-after {
		grid-area: auto;
		order: 4;
	}
	.cs-ba__image-after {
		grid-area: auto;
		order: 5;
	}
	.cs-ba__caption-after {
		grid-area: auto;
		order: 6;
	}

	.no-left-label .cs-ba__label-before,
	.no-right-label .cs-ba__label-after,
	.no-left-caption .cs-ba__caption-before,
	.no-right-caption .cs-ba__caption-after {
		display: none;
	}

	.cs-ba__image-before .cs-lightbox-trigger img,
	.cs-ba__image-after .cs-lightbox-trigger img {
		height: auto;
		aspect-ratio: 16 / 9;
	}

	.led-resources__before-after.single-image {
		flex-direction: column;
	}
}

/* Backstory & Challenge section */
.led-resources__story {
	width: 100%;
}

.led-resources__story .section-content-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 56px;
	width: 100%;
}

.led-resources__story .section-content-wrapper.single-column {
	flex-direction: column;
}

.led-resources__story .section-content-wrapper.single-column .resource-column {
	flex: 1 1 100%;
}

.led-resources__story .section-content-wrapper.two-columns {
	flex-direction: row;
}

.led-resources__story .section-content-wrapper.two-columns .resource-column {
	flex: 1 1 calc(50% - 28px);
	min-width: 0;
}

@media (max-width: 768px) {
	.led-resources__story .section-content-wrapper {
		gap: 0;
	}

	.led-resources__story .section-content-wrapper.two-columns .resource-column {
		flex: 1 1 100%;
	}
}

/* Lighting Plan metrics list */
.case-study-plan-metrics h3 {
	margin: 0 0 0.75rem 0;
}

.case-study-plan-metrics ul {
	list-style: disc;
	padding-left: 1.25rem;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.case-study-plan-metrics ul li strong {
	display: block;
}

.case-study-plan-metrics ul li span {
	display: block;
}

.case-study-plan-metrics ul li a {
	color: #1c86ff;
	text-decoration: underline;
}

/* Lighting Plan section */
.case-study-plan {
	border: 2px dashed #d1d1d1;
	border-radius: 8px;
	background: #fbfbfb;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 2rem;
	gap: 1.25rem;
}

.case-study-plan h2 {
	color: #088c43;
	text-align: center;
	margin: 0;
}

.case-study-plan-content-image {
	width: 100%;
	min-height: 0;
	display: flex;
	align-items: center;
	gap: 3rem;
	padding: 0 2rem;
	box-sizing: border-box;
}

.case-study-plan-content-image > div:first-child {
	flex: 1;
	min-width: 0;
}

.case-study-plan-images {
	display: flex;
	flex-direction: row;
	gap: 12px;
	width: 100%;
}

.case-study-plan-images .cs-lightbox-trigger {
	flex: 1;
	min-width: 0;
	display: block;
}

.case-study-plan-images .cs-lightbox-trigger img {
	width: 100%;
	height: auto;
	object-fit: contain;
	display: block;
}

.case-study-plan-content-image > div:nth-child(2) {
	flex: 2;
	min-width: 0;
}

/* Responsive */
@media (max-width: 1024px) {
	.case-study-main-inner {
		grid-template-columns: 1fr;
	}

	.led-resources__col {
		position: static;
	}

	/* Stats + Trustpilot: column, full width on mobile/tablet */
	.case-study-row-stats-trustpilot {
		flex-direction: column;
	}

	.case-study-row-stats-trustpilot .case-study-stat-box,
	.case-study-row-stats-trustpilot .case-study-trustpilot-placeholder {
		flex: 1 1 100%;
		width: 100%;
	}

	/* Inside each stat box: label and value in a row on mobile */
	.case-study-stat-box {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
	}
}

@media (max-width: 768px) {
	.led-resources__hero {
		padding: 3rem 0 5rem;
		background-size: cover, cover;
		background-position:
			0 0,
			center;
	}

	.case-study-main-inner {
		gap: 1.5rem;
	}

	.case-study-plan-content-image {
		flex-direction: column-reverse;
		padding: 0;
	}

	.case-study-plan-content-image > div:first-child,
	.case-study-plan-content-image > div:nth-child(2) {
		flex: 1 1 100%;
		width: 100%;
	}
}

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

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

.led-resources__shortcode {
  background: #f8f9fa;
  border-left: 4px solid #1C86FF;
  border-radius: 6px;
  padding: 1.25rem 1.25rem 1.5rem;
}

.led-resources__shortcode h2 {
  margin-top: 0 !important;
}

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

.led-resources__shortcode .lcs-title {
  margin: 0 0 1rem;
}

.led-resources__shortcode .lcs-about-title {
  margin: 0 0 1rem 0;
}

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

.led-resources__shortcode .lcs-field {
  flex: 0 1 auto;
  min-width: 0;
}

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

.led-resources__shortcode .lcs-value {
  color: #000;
  font-weight: 400;
}

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

.led-resources__shortcode .lcs-customer-name {
  display: block;
}

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

.led-resources__shortcode .lcs-solution-list li {
  margin-bottom: 0.25rem;
}

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

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

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

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

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

.led-resources__shortcode .lcs-stat-label {
  margin: 0;
  display: block;
}

.led-resources__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-resources__shortcode .lcs-about-fields {
    flex-direction: column;
    gap: 1rem;
  }

  .led-resources__shortcode .lcs-stats-row {
    flex-direction: column;
  }

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

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

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

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

.led-resources__shortcode .lcs-before-after.lcs-cols-1 .lcs-before-after__media img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
}

.led-resources__shortcode .lcs-before-after.lcs-cols-2 .lcs-before-after__media img {
  aspect-ratio: 16 / 13;
  object-fit: cover;
  object-position: top;
}

/* Dual-image: shared label / image / caption rows so uneven titles stay aligned */
.led-resources__shortcode .lcs-before-after.lcs-cols-2 {
  grid-template-columns: 1fr 1fr;
  gap: unset;
  row-gap: 0.5rem;
  column-gap: 1rem;
  grid-template-areas:
    "label-before  label-after"
    "image-before  image-after"
    "caption-before caption-after";
  grid-template-rows: auto auto auto;
}

.led-resources__shortcode .lcs-before-after.lcs-cols-2.no-labels {
  grid-template-areas:
    "image-before  image-after"
    "caption-before caption-after";
  grid-template-rows: auto auto;
}

.led-resources__shortcode .lcs-before-after.lcs-cols-2.no-captions {
  grid-template-areas:
    "label-before  label-after"
    "image-before  image-after";
  grid-template-rows: auto auto;
}

.led-resources__shortcode .lcs-before-after.lcs-cols-2.no-labels.no-captions {
  grid-template-areas: "image-before image-after";
  grid-template-rows: auto;
}

.led-resources__shortcode .lcs-before-after__label-before { grid-area: label-before; }
.led-resources__shortcode .lcs-before-after__label-after  { grid-area: label-after; }
.led-resources__shortcode .lcs-before-after__image-before { grid-area: image-before; }
.led-resources__shortcode .lcs-before-after__image-after  { grid-area: image-after; }
.led-resources__shortcode .lcs-before-after__caption-before { grid-area: caption-before; }
.led-resources__shortcode .lcs-before-after__caption-after  { grid-area: caption-after; }

.led-resources__shortcode .lcs-before-after.lcs-cols-2.no-labels .lcs-before-after__label-before,
.led-resources__shortcode .lcs-before-after.lcs-cols-2.no-labels .lcs-before-after__label-after,
.led-resources__shortcode .lcs-before-after.lcs-cols-2.no-captions .lcs-before-after__caption-before,
.led-resources__shortcode .lcs-before-after.lcs-cols-2.no-captions .lcs-before-after__caption-after {
  display: none;
}

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

.led-resources__shortcode .lcs-before-after__label {
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
  font-size: 0.9375rem;
  line-height: 1.4;
}

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

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

.led-resources__shortcode .lcs-before-after__caption {
  font-size: 0.875rem;
  color: #666;
}

.led-resources__shortcode .lcs-before-after__caption p {
  margin: 0;
}

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

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

.led-resources__shortcode .lcs-plan__images.lcs-cols-1 {
  grid-template-columns: 1fr;
}

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

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

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

.led-resources__shortcode .lcs-plan__metrics-heading {
  margin: 0 0 0.5rem;
}

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

.led-resources__shortcode .lcs-plan__metrics-list li {
  margin-bottom: 0.25rem;
}

.led-resources__shortcode .lcs-plan__metrics-list strong {
  margin-right: 0.25rem;
}

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

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

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

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

.led-resources__shortcode .lcs-story.lcs-cols-1 {
  grid-template-columns: 1fr;
}

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

@media (max-width: 768px) {
  .led-resources__shortcode .lcs-before-after.lcs-cols-2,
  .led-resources__shortcode .lcs-before-after.lcs-cols-2.no-labels,
  .led-resources__shortcode .lcs-before-after.lcs-cols-2.no-captions,
  .led-resources__shortcode .lcs-before-after.lcs-cols-2.no-labels.no-captions {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: none;
    grid-template-rows: none;
  }

  .led-resources__shortcode .lcs-before-after__label-before   { grid-area: auto; order: 1; }
  .led-resources__shortcode .lcs-before-after__image-before   { grid-area: auto; order: 2; }
  .led-resources__shortcode .lcs-before-after__caption-before { grid-area: auto; order: 3; }
  .led-resources__shortcode .lcs-before-after__label-after    { grid-area: auto; order: 4; }
  .led-resources__shortcode .lcs-before-after__image-after    { grid-area: auto; order: 5; }
  .led-resources__shortcode .lcs-before-after__caption-after  { grid-area: auto; order: 6; }

  .led-resources__shortcode .lcs-plan__images.lcs-cols-2,
  .led-resources__shortcode .lcs-story.lcs-cols-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

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