/* ============================================================
   Industries Served Page — Premium Layout
   ============================================================ */

/* ── Page Container ── */
.industries-served-page {
  padding: 70px 0 80px;
  background: #ffffff;
}

/* ── Page-level breadcrumb overrides (only for Industries Served pages) ── */
.industries-served-pagewrap .breadcrumb:not(.industries-breadcrumb) {
  display: none !important;
}

/* Hide Drupal system breadcrumb block if present */
.industries-served-pagewrap .block-system-breadcrumb-block,
.industries-served-pagewrap .region-breadcrumb,
.industries-served-pagewrap .breadcrumb__wrapper {
  display: none !important;
}

.industries-served-pagewrap .industries-breadcrumb {
  margin: 10px 0 18px;
  font-size: 0.92rem;
  color: #6b7280;
}
.industries-served-pagewrap .industries-breadcrumb,
.industries-served-pagewrap .industries-breadcrumb * {
  display: inline;
}
/* .industries-served-pagewrap .industries-breadcrumb a,
.industries-served-pagewrap .industries-breadcrumb span {
  margin-right: 6px;
} */
.industries-served-pagewrap .industries-breadcrumb span:last-child {
  margin-right: 0;
}

/* Explicit separator styling */
.industries-served-pagewrap .industries-breadcrumb .sep {
  /* margin: 0 8px 0 4px; */
  color: #9ca3af;
}

.industries-served-pagewrap .industries-breadcrumb a {
  color: #15656c;
  text-decoration: none;
}
.industries-served-pagewrap .industries-breadcrumb a:hover {
  text-decoration: underline;
}

/* ── Page Header ── */
.industries-served-page .page-header {
  text-align: center;
  margin-bottom: 50px;
}

.industries-served-page .page-header__title {
  font-size: 36px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.25;
}

.industries-served-page .page-header__accent {
  display: block;
  width: 60px;
  height: 4px;
  margin: 0 auto;
  background: linear-gradient(90deg, #0079C0, #00b4d8);
  border-radius: 2px;
}

/* ── Section Header (Gallery / Products) ── */
.industries-served-page .section-header {
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.industries-served-page .section-header__title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  white-space: nowrap;
  letter-spacing: -0.01em;
  position: relative;
}

.industries-served-page .section-header__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #d1d5db, transparent);
}

/* ── Intro Section ── */
.industries-served-page .intro-section {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 60px;
  padding: 32px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #ffffff00;
}

.industries-served-page .intro-section__media img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.industries-served-page .intro-section__media img:hover {
  transform: scale(1.015);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

.industries-served-page .intro-section__text {
  font-size: 17px;
  line-height: 1.8;
  color: #4b5563;
}

.industries-served-page .intro-section__text p:last-child {
  margin-bottom: 0;
}

/* ── Details Section ── */
.industries-served-page .details-section {
  margin-bottom: 60px;
}

.industries-served-page .details-section__body {
  display: flex;
  gap: 24px;
  padding: 32px;
  background: #f9fafb;
  border-radius: 16px;
  border: 1px solid #f0f0f0;
  border-left: 4px solid #0079C0;
  position: relative;
  overflow: hidden;
}

.industries-served-page .details-section__body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 121, 192, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.industries-served-page .details-section__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #0079C0, #00b4d8);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 121, 192, 0.2);
}

.industries-served-page .details-section__icon svg {
  width: 24px;
  height: 24px;
  color: #ffffff;
}

.industries-served-page .details-section__content {
  flex: 1;
  min-width: 0;
}

.industries-served-page .details-section__content .field__item,
.industries-served-page .details-section__content p {
  font-size: 16px;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 12px;
}

.industries-served-page .details-section__content p:last-child {
  margin-bottom: 0;
}

.industries-served-page .details-section__content ul,
.industries-served-page .details-section__content ol {
  padding-left: 20px;
  margin-bottom: 12px;
  color: #4b5563;
}

.industries-served-page .details-section__content li {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 4px;
}

.industries-served-page .details-section__content strong,
.industries-served-page .details-section__content b {
  color: #111827;
  font-weight: 600;
}

.industries-served-page .details-section__content a {
  color: #0079C0;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.industries-served-page .details-section__content a:hover {
  border-bottom-color: #0079C0;
}

/* ── Gallery Section ── */
.industries-served-page .gallery-section {
  margin-bottom: 60px;
}

.industries-served-page .gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ── Gallery Scroller — infinite marquee (>4 images) ── */
.industries-served-page .gallery-scroller {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.industries-served-page .gallery-scroller__track {
  display: flex;
  width: max-content;
  animation: gallery-marquee 30s linear infinite;
}

.industries-served-page .gallery-scroller:hover .gallery-scroller__track {
  animation-play-state: paused;
}

.industries-served-page .gallery-scroller__list {
  display: inline-flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.industries-served-page .gallery-scroller .gallery-card {
  flex: 0 0 280px;
  max-width: 280px;
  min-width: 280px;
}

.industries-served-page .gallery-scroller .gallery-card__inner img {
  height: 200px;
}

@keyframes gallery-marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.industries-served-page .gallery-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.industries-served-page .gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.industries-served-page .gallery-card__inner {
  position: relative;
  overflow: hidden;
}

.industries-served-page .gallery-card__inner img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.industries-served-page .gallery-card:hover .gallery-card__inner img {
  transform: scale(1.06);
}

/* Caption overlay */
.industries-served-page .gallery-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), transparent);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.industries-served-page .gallery-card:hover .gallery-card__overlay {
  transform: translateY(0);
}

.industries-served-page .gallery-card__caption {
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Zoom icon on hover */
.industries-served-page .gallery-card__zoom {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  margin: 0 auto 8px;
  color: #ffffff;
  transition: background 0.25s ease, transform 0.25s ease;
}

.industries-served-page .gallery-card:hover .gallery-card__zoom {
  background: rgba(0, 121, 192, 0.75);
  transform: scale(1.08);
}

/* ── Lightbox / Popup ── */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.gallery-lightbox--open {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
}

/* Close button */
.gallery-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}

.gallery-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Nav arrows */
.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}

.gallery-lightbox__nav:hover {
  background: rgba(0, 121, 192, 0.6);
  transform: translateY(-50%) scale(1.08);
}

.gallery-lightbox__prev {
  left: 24px;
}

.gallery-lightbox__next {
  right: 24px;
}

/* Image */
.gallery-lightbox__content {
  position: relative;
  z-index: 5;
  max-width: 85vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-lightbox__img--active {
  opacity: 1;
  transform: scale(1);
}

/* Footer */
.gallery-lightbox__footer {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  border-radius: 30px;
}

.gallery-lightbox__caption {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  max-width: 400px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-lightbox__counter {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

/* ── Products Section ── */
.industries-served-page .products-section {
  margin-bottom: 20px;
  padding: 40px;
  background: #f9fafb;
  border-radius: 16px;
  border: 1px solid #f0f0f0;
}

/* ── Products Slider ── */
.industries-served-page .products-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.industries-served-page .products-slider__track {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  min-width: 0;
}

.industries-served-page .products-slider__track::-webkit-scrollbar {
  display: none;
}

/* ── Override product-scroller marquee when inside products-slider ── */
.industries-served-page .products-slider .product-scroller {
  overflow: visible;
}

.industries-served-page .products-slider .product-scroller__track {
  animation: none !important;
  display: flex;
  width: auto;
  flex-wrap: nowrap;
  gap: 20px;
}

.industries-served-page .products-slider .product-scroller__list {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 20px;
}

/* Hide the cloned list used for infinite marquee loop */
.industries-served-page .products-slider .product-scroller__list--clone {
  display: none !important;
}

/* The view wrapper that contains .product-slide-card items */
.industries-served-page .products-slider__track>.view {
  display: contents;
}

.industries-served-page .products-slider__track .view-content {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
}

/* ── Individual Product Card ── */
.industries-served-page .product-slide-card {
  flex: 0 0 280px;
  max-width: 280px;
  min-width: 280px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.industries-served-page .product-slide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.industries-served-page .product-slide-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.industries-served-page .product-slide-card a {
  text-decoration: none;
  color: inherit;
}

.industries-served-page .product-slide-card h2,
.industries-served-page .product-slide-card h3,
.industries-served-page .product-slide-card .node__title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin: 12px 14px 4px;
  line-height: 1.35;
}

.industries-served-page .product-slide-card .field--name-field-description,
.industries-served-page .product-slide-card p {
  font-size: 13px;
  color: #6b7280;
  margin: 0 14px 12px;
  line-height: 1.5;
}

/* View Product link inside card */
.industries-served-page .product-slide-card .node__content a,
.industries-served-page .product-slide-card a[href] {
  font-size: 13px;
  font-weight: 600;
  color: #0079C0;
}

.industries-served-page .product-slide-card .node__content a:hover {
  color: #005283;
}

/* ── Slider Navigation Arrows ── */
.industries-served-page .products-slider__btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 2;
}

.industries-served-page .products-slider__btn:hover {
  background: #0079C0;
  border-color: #0079C0;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 121, 192, 0.3);
}

.industries-served-page .products-slider__btn--hidden {
  opacity: 0.35;
  pointer-events: none;
}

.industries-served-page .products-slider__btn svg {
  width: 20px;
  height: 20px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1200px) {
  .industries-served-page .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .industries-served-page .gallery-scroller .gallery-card {
    flex: 0 0 260px;
    max-width: 260px;
    min-width: 260px;
  }

  .industries-served-page .product-slide-card {
    flex: 0 0 250px;
    max-width: 250px;
    min-width: 250px;
  }
}

@media (max-width: 992px) {
  .industries-served-page .intro-section {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px;
  }

  .industries-served-page .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .industries-served-page .gallery-card__inner img {
    height: 200px;
  }

  .industries-served-page .details-section__body {
    padding: 24px;
  }

  .industries-served-page .products-section {
    padding: 28px;
  }

  .industries-served-page .gallery-scroller .gallery-card {
    flex: 0 0 240px;
    max-width: 240px;
    min-width: 240px;
  }

  .industries-served-page .product-slide-card {
    flex: 0 0 240px;
    max-width: 240px;
    min-width: 240px;
  }
}

@media (max-width: 576px) {
  .industries-served-page {
    padding: 40px 0 50px;
  }

  .industries-served-page .page-header__title {
    font-size: 28px;
  }

  .industries-served-page .intro-section {
    padding: 18px;
    gap: 20px;
    border-radius: 12px;
  }

  .industries-served-page .intro-section__text {
    font-size: 15px;
  }

  .industries-served-page .gallery-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .industries-served-page .gallery-card__inner img {
    height: 180px;
  }

  .industries-served-page .section-header__title {
    font-size: 20px;
  }

  .industries-served-page .details-section__body {
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-radius: 12px;
  }

  .industries-served-page .details-section__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .industries-served-page .details-section__icon svg {
    width: 20px;
    height: 20px;
  }

  .industries-served-page .details-section__content .field__item,
  .industries-served-page .details-section__content p,
  .industries-served-page .details-section__content li {
    font-size: 15px;
  }

  .industries-served-page .products-section {
    padding: 20px;
    border-radius: 12px;
  }

  /* Lightbox mobile */
  .gallery-lightbox__nav {
    width: 40px;
    height: 40px;
  }

  .gallery-lightbox__prev {
    left: 10px;
  }

  .gallery-lightbox__next {
    right: 10px;
  }

  .gallery-lightbox__close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .gallery-lightbox__content {
    max-width: 95vw;
  }

  .gallery-lightbox__footer {
    bottom: 16px;
    padding: 8px 14px;
    gap: 10px;
  }

  .gallery-lightbox__caption {
    font-size: 12px;
    max-width: 200px;
  }

  .industries-served-page .product-slide-card {
    flex: 0 0 220px;
    max-width: 220px;
    min-width: 220px;
  }

  .industries-served-page .gallery-scroller .gallery-card {
    flex: 0 0 220px;
    max-width: 220px;
    min-width: 220px;
  }

  .industries-served-page .products-slider__btn {
    width: 36px;
    height: 36px;
  }

  .industries-served-page .products-slider__btn svg {
    width: 16px;
    height: 16px;
  }
}