/* Full-area pillar carousels + product-style slides (projects-education / projects-healthcare) */

.page-pillar-carousel {
  --pc-bg: #141810;
  --pc-surface: #1e2418;
  --pc-border: rgba(122, 140, 82, 0.35);
  --pc-text: #e8e6dc;
  --pc-muted: rgba(232, 230, 220, 0.7);
  --pc-accent: #dcecab;
  --pc-tag-bg: rgba(45, 212, 191, 0.12);
  --pc-tag-border: rgba(45, 212, 191, 0.35);
  --pc-tag-text: #9ee5d6;
}

html[data-theme="ngo"] body.page-pillar-carousel,
body.page-pillar-carousel {
  background: var(--pc-bg) !important;
  color: var(--pc-text) !important;
}

.pillar-carousel-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0.75rem;
  border-bottom: 1px solid var(--pc-border);
}

.pillar-carousel-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pc-accent);
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.pillar-carousel-back:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.pillar-carousel-page-title {
  margin: 0;
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--pc-text);
}

.pillar-carousel-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  position: relative;
}

.pillar-carousel {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--pc-border);
  background: var(--pc-surface);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.pillar-carousel__viewport {
  overflow: hidden;
}

.pillar-carousel__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .pillar-carousel__track {
    transition: none;
  }
}

.pillar-carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Deep links: scroll past sticky header when jumping to #phonescope etc. */
.pillar-carousel__slide[id],
section.pillar-carousel--single .pillar-carousel__slide[id] {
  scroll-margin-top: 5.5rem;
}

.pillar-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--pc-border);
  background: rgba(30, 36, 24, 0.92);
  color: var(--pc-accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.pillar-carousel__nav:hover:not(:disabled) {
  background: rgba(45, 212, 191, 0.15);
  border-color: rgba(45, 212, 191, 0.45);
}

.pillar-carousel__nav:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.pillar-carousel__nav--prev {
  left: 0.65rem;
}

.pillar-carousel__nav--next {
  right: 0.65rem;
}

.pillar-carousel__nav svg {
  display: block;
}

.pillar-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1rem 1.25rem;
  border-top: 1px solid rgba(122, 140, 82, 0.2);
  background: rgba(0, 0, 0, 0.12);
}

.pillar-carousel__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  padding: 0;
  border: 1px solid var(--pc-border);
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.pillar-carousel__dot[aria-current="true"] {
  background: var(--pc-accent);
  border-color: var(--pc-accent);
  transform: scale(1.15);
}

.pillar-carousel--single .pillar-carousel__nav,
.pillar-carousel--single .pillar-carousel__dots {
  display: none;
}

/* Product listing row: image left, copy right */
.product-listing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 0;
  min-height: min(72vh, 560px);
  align-items: stretch;
}

@media (max-width: 900px) {
  .product-listing {
    grid-template-columns: 1fr;
    min-height: unset;
  }
}

.product-listing__media {
  background: #12160f;
  position: relative;
  min-height: 260px;
}

.product-listing__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 901px) {
  .product-listing__media {
    min-height: 100%;
  }
}

.product-listing__body {
  padding: clamp(1.5rem, 3vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.product-listing__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(220, 236, 171, 0.75);
}

.product-listing__title {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--pc-text);
}

.product-listing__blurb {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--pc-muted);
  max-width: 52ch;
}

.product-listing__tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.product-listing__tags li {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  border-radius: 999px;
  background: var(--pc-tag-bg);
  border: 1px solid var(--pc-tag-border);
  color: var(--pc-tag-text);
}

.product-listing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.product-listing__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.72rem 1.35rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  background: linear-gradient(135deg, #2dd4bf 0%, #059669 100%);
  color: #0f1a14;
  border: none;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-listing__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(5, 150, 105, 0.35);
}

.product-listing__cta--secondary {
  background: transparent;
  color: var(--pc-accent);
  border: 1px solid var(--pc-border);
  box-shadow: none;
}

.product-listing__cta--secondary:hover {
  border-color: rgba(45, 212, 191, 0.45);
  background: rgba(45, 212, 191, 0.08);
}

.product-listing__credit {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(232, 230, 220, 0.45);
}

.product-listing__credit a {
  color: rgba(220, 236, 171, 0.75);
}
