/* ============================================
/* ==========================================================================
   QSTECH-STYLE CASE STUDIES HUB & SINGLE CASE STUDY ARCHITECTURE
   ========================================================================== */

/* 1. Hub Top Hero Banner (Cinematic LED Backdrop & Centered Typography) */
.qs-cases-hero-section {
  position: relative;
  width: 100%;
  min-height: 30rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020617;
  overflow: hidden;
}
.qs-cases-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.qs-cases-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  filter: brightness(0.7) contrast(1.1);
}
.qs-cases-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(2, 6, 23, 0.4) 0%, rgba(2, 6, 23, 0.85) 100%);
}
.qs-cases-hero-container {
  position: relative;
  z-index: 2;
  padding: 5rem 1.25rem;
}
.qs-cases-hero-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: clamp(2.8rem, 4.5vw, 4.2rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.qs-cases-hero-sub {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.qs-cases-hero-desc {
  font-size: 1.1rem;
  color: #b8b8b8;
  max-width: 42.5rem;
  margin: 0 auto;
}

/* 2. Main Section & "All Customer Cases" Filter (1:1 Checkbox Controls) */
.qs-cases-main-section {
  padding: 4rem 0 6.25rem;
  background: var(--home-dark-bg, #515151);
}
.qs-cases-section-title-wrap {
  margin-bottom: 2.25rem;
}
.qs-cases-section-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Cases Hub Full-Width Auto-Height Banner (1920x950 Native Aspect Ratio) */
.clt-cases-banner-wrap {
  width: 100%;
  line-height: 0;
  overflow: hidden;
  background: #000000;
}
.clt-cases-banner-img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  aspect-ratio: 1920 / 950;
  object-fit: contain;
}

/* Single Case Detail Hero Banner (1-Screen Height container with top-aligned static image & bottom overflow hidden) */
.clt-case-detail-banner-wrap {
  width: 100%;
  height: calc(100vh - var(--header-h, 5.625rem));
  max-height: calc(100vh - var(--header-h, 5.625rem));
  overflow: hidden;
  background: #000000;
  position: relative;
}
.clt-case-detail-banner-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

/* Checkbox Filter Rows - Hidden per user directive */
.qs-filter-container {
  display: none !important;
}
.qs-filter-row {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}
.qs-filter-label {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  min-width: 7.5rem;
  padding-top: 0.125rem;
  flex-shrink: 0;
}
.qs-filter-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem 1.75rem;
  align-items: center;
}
.qs-checkbox-item {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.96rem;
  font-weight: 500;
  color: #e2e8f0;
  transition: color 0.2s ease;
}
.qs-checkbox-item input[type="checkbox"] {
  display: none;
}
.qs-custom-box {
  width: 1.125rem;
  height: 1.125rem;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 0.2rem;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.qs-checkbox-item:hover .qs-custom-box {
  border-color: var(--accent, #d61618) !important;
}
.qs-checkbox-item.active .qs-custom-box,
.qs-checkbox-item input:checked + .qs-custom-box {
  background: var(--accent, #d61618) !important;
  border-color: var(--accent, #d61618) !important;
}
.qs-checkbox-item.active .qs-custom-box::after,
.qs-checkbox-item input:checked + .qs-custom-box::after {
  content: '';
  width: 0.3125rem;
  height: 0.5625rem;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-0.03rem, -0.06rem);
}
.qs-checkbox-item.active .qs-box-text {
  color: #ffffff;
  font-weight: 700;
}

/* 3. 3-Column Case Cards Grid (1:1 Layout) */
.qs-cases-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}
.qs-case-card {
  background: transparent;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}
.qs-case-card:hover {
  transform: translateY(-0.25rem);
}
.qs-case-card-thumb-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 0.625rem;
  overflow: hidden;
  background: #090d16;
  margin-bottom: 1.25rem;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.qs-case-card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}
.qs-case-card:hover .qs-case-card-thumb-wrap img {
  transform: scale(1.04);
}
.qs-case-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.qs-case-card-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.qs-case-card-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}
.qs-case-card-title a:hover {
  color: var(--accent, #d61618) !important;
}

/* Bulleted Specs List */
.qs-case-specs-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.qs-case-specs-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #b8b8b8;
  line-height: 1.4;
}
.qs-spec-dot {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #9ca3af;
  flex-shrink: 0;
}
.qs-spec-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qs-spec-text strong {
  color: #ffffff;
  font-weight: 600;
}

/* Bottom Card Meta Row: Date & Learn More */
.qs-case-card-bottom {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.qs-case-date {
  display: none !important;
}
.qs-case-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #b8b8b8;
  text-decoration: none;
  transition: all 0.2s ease;
}
.qs-case-card:hover .qs-case-learn-more,
.qs-case-learn-more:hover {
  color: var(--accent, #d61618) !important;
  transform: translateX(0.125rem);
}

/* Empty State */
.qs-cases-empty {
  text-align: center;
  padding: 4.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  margin-top: 2rem;
}
.qs-cases-empty p {
  font-size: 1.15rem;
  color: #b8b8b8;
  margin-bottom: 1.5rem;
}
.qs-cases-empty button,
#resetFiltersBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  background: var(--accent, #d61618) !important;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--accent, #d61618) !important;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.qs-cases-empty button:hover,
#resetFiltersBtn:hover {
  background: #b71315 !important;
  border-color: #b71315 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(214, 22, 24, 0.35);
}

/* ==========================================================================
   4. SINGLE CASE STUDY DETAIL PAGE (Streamlined & Image-Focused Architecture)
   ========================================================================== */
.qs-single-case-page {
  background: var(--home-dark-bg, #515151);
}

/* Main Layout Section */
.qs-case-main-body-section {
  padding: 3rem 0 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--home-dark-bg, #515151);
}
.qs-case-focused-container {
  width: 100%;
  max-width: var(--container-max-width, 100rem);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Left Title Header */
.qs-case-header-intro {
  margin-bottom: 2rem;
  text-align: left;
}
.qs-case-detail-h1 {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
}
.qs-case-meta-tags {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin: 0 0 1rem 0;
}
.qs-case-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-heading, inherit);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent, #d61618) !important;
  background: rgba(214, 22, 24, 0.15);
  border: 1px solid rgba(214, 22, 24, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 0.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* 2. Main In-Article Carousel (Base styles handled in refined section) */
.qs-case-incontent-carousel {
  position: relative;
  width: 100%;
  user-select: none;
  background: transparent;
}

/* Navigation Side Wings */
.qs-case-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
}
.qs-case-arrow:hover {
  background: var(--accent, #d61618) !important;
  border-color: var(--accent, #d61618) !important;
  transform: translateY(-50%) scale(1.08);
}
.qs-case-arrow.prev {
  left: 1.25rem;
}
.qs-case-arrow.next {
  right: 1.25rem;
}
.qs-case-arrow-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: #ffffff;
}

/* Pagination Dots - Positioned cleanly below image without any dark container */
.qs-case-dots {
  position: static;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin-top: 1.25rem;
  background: transparent !important;
  z-index: 10;
}
.qs-case-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}
.qs-case-dot.active,
.qs-case-dot:hover {
  width: 1.5rem;
  border-radius: 0.25rem;
  background: var(--accent, #d61618) !important;
}

/* 3. 4-Card Engineering Specifications Grid */
.qs-case-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}
.qs-case-spec-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.qs-case-spec-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent, #d61618) !important;
}
.qs-case-spec-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #b8b8b8;
}
.qs-case-spec-value {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

/* 4. Story Prose */
.qs-case-story-prose {
  font-size: 1.12rem;
  line-height: 1.85;
  color: #e2e8f0;
  margin-bottom: 3.5rem;
  text-align: left;
}
.qs-case-story-prose h2,
.qs-case-story-prose h3 {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 700;
  color: #ffffff;
  margin: 2.2rem 0 1rem;
  letter-spacing: -0.015em;
}
.qs-case-story-prose p {
  margin-bottom: 1.35rem;
}

/* 5. Pager Bar */
.qs-case-pager-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  gap: 1rem;
}
.qs-pager-nav-item {
  flex: 1;
}
.qs-pager-nav-item.next {
  text-align: right;
}
.qs-pager-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff !important;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.qs-pager-link:hover {
  color: #ffffff !important;
  opacity: 0.85;
}
.qs-pager-link.disabled {
  color: #ffffff !important;
  opacity: 0.5;
  cursor: not-allowed;
}
.qs-pager-hub-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1.125rem;
  border-radius: 0.25rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.qs-pager-hub-btn:hover {
  background: var(--accent, #d61618) !important;
  border-color: var(--accent, #d61618) !important;
  color: #ffffff;
}

/* Right Sidebar Column (.right_box) - Modern Adaptive Width */
.qs-case-right-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.qs-sidebar-title {
  padding-bottom: 0.625rem;
  border-bottom: 2px solid #0f172a;
  margin-bottom: 1rem;
}
.qs-sidebar-title h3 {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}
.qs-sidebar-products-list {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}
.qs-sidebar-prod-item {
  display: flex;
  gap: 1.125rem;
  align-items: center;
  padding: 0.875rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.qs-sidebar-prod-item:hover {
  border-color: var(--accent, #d71a18);
  transform: translateX(0.25rem);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.qs-sidebar-prod-img-wrap {
  width: 6.5rem;
  height: 4.8rem;
  border-radius: 0.35rem;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.qs-sidebar-prod-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.qs-sidebar-prod-name {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin: 0 0 0.25rem;
}
.qs-sidebar-prod-desc {
  font-size: 0.82rem;
  color: #b8b8b8;
  line-height: 1.4;
  margin: 0;
}
.qs-sidebar-prod-item {
  display: flex;
  gap: 1.125rem;
  align-items: center;
  padding: 0.875rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.qs-sidebar-prod-item:hover {
  border-color: var(--accent, #d61618) !important;
  transform: translateX(0.25rem);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.qs-sidebar-title {
  padding-bottom: 0.625rem;
  border-bottom: 2px solid #ffffff;
  margin-bottom: 1rem;
}
.qs-sidebar-title h3 {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

/* Sidebar Consultation Box */
.qs-sidebar-cta-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  padding: 1.375rem 1.125rem;
  text-align: center;
}
.qs-sidebar-cta-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(214, 22, 24, 0.15);
  border: 1px solid rgba(214, 22, 24, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  color: var(--accent, #d61618) !important;
}
.qs-sidebar-cta-icon svg {
  width: 1.375rem;
  height: 1.375rem;
}
.qs-sidebar-cta-card h4 {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem;
}
.qs-sidebar-cta-card p {
  font-size: 0.82rem;
  color: #b8b8b8;
  line-height: 1.5;
  margin: 0 0 1rem;
}
.qs-sidebar-cta-card .btn {
  width: 100%;
  justify-content: center;
  font-size: 0.85rem;
  padding: 0.55rem 0.875rem;
}

/* 5. More Case Studies Section */
.qs-case-more-section {
  padding: 4.5rem 0 6rem;
  background: var(--home-dark-bg, #515151);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.qs-case-more-header {
  margin-bottom: 2.5rem;
  text-align: center;
}
.qs-case-more-header h2 {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Responsive Rules for QSTECH Cases */
@media (max-width: 1024px) {
  .qs-cases-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .qs-case-layout-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .qs-case-right-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .qs-filter-row {
    flex-direction: column;
    gap: 0.75rem;
  }
  .qs-cases-cards-grid {
    grid-template-columns: 1fr;
  }
  .qs-case-right-sidebar {
    grid-template-columns: 1fr;
  }
  .qs-case-gallery-grid {
    grid-template-columns: 1fr;
  }
  .qs-spec-key {
    width: 8.75rem;
    padding: 0.75rem 1rem;
  }
  .qs-spec-val {
    padding: 0.75rem 1rem;
  }
}

/* ==========================================================================
   Refined Single Case Detail Architecture (1:1 with User Reference)
   ========================================================================== */

.qs-case-header-intro {
  width: 100%;
  margin: 2rem 0 1.75rem;
}
.qs-case-detail-h1 {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: clamp(1.65rem, 2.3vw, 2.25rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 0;
  width: 100%;
}

/* 2-Column Top Layout: Left Carousel + Right Featured Hardware */
.qs-case-top-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.75rem;
  align-items: start;
  margin-bottom: 3.5rem;
  width: 100%;
}
.qs-case-top-grid.no-sidebar {
  grid-template-columns: 1fr;
}
.qs-case-top-left {
  width: 100%;
  min-width: 0;
}
.qs-case-top-right {
  width: 100%;
  min-width: 0;
}

/* Main In-Article Carousel (Container-based 16:9 mainstream crop, single-screen fit) */
.qs-case-incontent-carousel {
  position: relative;
  width: 100%;
  border-radius: 1rem;
  overflow: visible;
  background: transparent;
}
.qs-case-carousel-viewport {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  height: clamp(440px, 35vw, 620px);
  aspect-ratio: 16 / 10.5;
  background: #2b2b2b;
}
.qs-case-carousel-track {
  width: 100%;
  height: 100%;
  position: relative;
}
.qs-case-carousel-slide {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.qs-case-carousel-slide.active {
  display: block;
}
.qs-case-carousel-img {
  width: 100%;
  height: 100%;
  display: block;
  max-width: 100%;
  border-radius: 1rem;
  object-fit: cover; /* Container-level crop, zero alteration to original image */
  object-position: center;
}

/* Featured Hardware Systems Sidebar */
.qs-case-sidebar-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1.25rem;
}
.qs-hardware-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.qs-hardware-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #5a5a5a;
  border-radius: 0.875rem;
  padding: 1rem 1.25rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
.qs-hardware-card:hover {
  background: #686868;
  transform: translateX(4px);
}
.qs-hardware-thumb {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
}
.qs-hardware-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.qs-hardware-info {
  flex: 1;
  min-width: 0;
}
.qs-hardware-name {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.35rem;
}
.qs-hardware-sub {
  color: #a8a8a8;
  font-size: 0.8rem;
  display: block;
}

/* Project Engineering Overview Section & Table */
.qs-case-overview-section {
  margin: 3.5rem auto 2rem;
  width: 100%;
  max-width: min(100%, 58rem);
}
.qs-case-section-heading {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1.5rem;
}
.qs-case-overview-table-wrap,
.qs-case-comparison-table-wrap {
  width: 100%;
  max-width: min(100%, 58rem);
  margin-left: auto;
  margin-right: auto;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow-x: auto;
  background: var(--home-dark-bg, #515151);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 2rem;
  -webkit-overflow-scrolling: touch;
}
.qs-case-overview-table {
  width: 100%;
  border-collapse: collapse;
}
.qs-case-overview-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.qs-case-overview-table tr:last-child {
  border-bottom: none;
}
.qs-case-overview-table th {
  width: 1%;
  white-space: nowrap;
  padding: 1.15rem 1.75rem;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: #d1d5db;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
}
.qs-case-overview-table td {
  padding: 1.15rem 1.75rem;
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 500;
}

/* Rich Story Prose (Matching User Screenshot 2) */
.qs-case-story-prose {
  color: #b8b8b8;
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 3.5rem;
}
.qs-case-story-prose p {
  margin-bottom: 1.5rem;
}
.qs-case-story-prose h3 {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 2.75rem 0 1.15rem;
}

/* Before and After Comparison Table */
.qs-case-comparison-section {
  margin: 3.5rem auto;
  width: 100%;
  max-width: min(100%, 58rem);
}
.qs-case-comparison-table {
  width: 100%;
  border-collapse: collapse;
}
.qs-case-comparison-table th,
.qs-case-comparison-table td {
  padding: 1.15rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}
.qs-case-comparison-table th:last-child,
.qs-case-comparison-table td:last-child {
  border-right: none;
}
.qs-case-comparison-table tr:last-child td {
  border-bottom: none;
}
.qs-case-comparison-table thead th {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-weight: 700;
  text-align: left;
}
.qs-case-comparison-table thead th:first-child {
  width: 1%;
  white-space: nowrap;
}
.qs-case-comparison-table tbody td {
  color: #d1d5db;
}
.qs-case-comparison-table tbody td:first-child {
  font-weight: 600;
  color: #ffffff;
  width: 1%;
  white-space: nowrap;
}

/* Clean Prev / Next Case Pager Bar (Matching Screenshot 3) */
.qs-case-pager-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 0;
  margin-top: 2rem;
  margin-bottom: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.qs-pager-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.qs-pager-link:hover {
  color: var(--primary-color, #e53e3e);
}
.qs-pager-link.disabled {
  color: #6b7280;
  cursor: not-allowed;
}

/* 3 Related Cases Section & Card Badge */
.qs-case-related-section {
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 4rem;
}
.qs-case-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 2;
}
.qs-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff2a2a;
  display: inline-block;
}

@media (max-width: 1024px) {
  .qs-case-top-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
@media (max-width: 768px) {
  .qs-case-overview-table th {
    width: 1%;
    white-space: nowrap;
    padding: 0.875rem 1rem;
  }
  .qs-case-overview-table td {
    padding: 0.875rem 1rem;
  }
  .qs-case-comparison-table th,
  .qs-case-comparison-table td {
    padding: 0.875rem 1rem;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   Case Gallery Lightbox Modal (Uncropped Full Image, Responsive Width & Height)
   ========================================================================== */
.qs-case-carousel-viewport,
.qs-case-carousel-track,
.qs-case-carousel-slide,
.qs-case-carousel-img {
  cursor: pointer !important;
}
.qs-case-carousel-zoom-hint {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 6;
}
.qs-case-carousel-viewport:hover .qs-case-carousel-zoom-hint {
  opacity: 1;
  transform: scale(1.08);
}
.qs-case-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}
.qs-case-lightbox-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.qs-case-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.qs-case-lightbox-content {
  position: relative;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
}
.qs-case-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease, transform 0.2s ease;
}
.qs-case-lightbox-close:hover {
  background: var(--accent, #d61618) !important;
  border-color: var(--accent, #d61618) !important;
  transform: rotate(90deg) scale(1.05);
}
.qs-case-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease, transform 0.2s ease;
}
.qs-case-lightbox-nav:hover {
  background: var(--accent, #d61618) !important;
  border-color: var(--accent, #d61618) !important;
  transform: translateY(-50%) scale(1.1);
}
.qs-case-lightbox-nav.prev {
  left: 2rem;
}
.qs-case-lightbox-nav.next {
  right: 2rem;
}
@media (max-width: 768px) {
  .qs-case-lightbox-nav.prev { left: 0.75rem; }
  .qs-case-lightbox-nav.next { right: 0.75rem; }
}
.qs-case-lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 90vh;
  user-select: none;
}
.qs-case-lightbox-img {
  max-width: 90vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transition: opacity 0.2s ease;
}
.qs-case-lightbox-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  color: #e0e0e0;
  font-size: 0.95rem;
}
.qs-case-lightbox-counter {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 600;
  color: #ffffff;
  font-size: 0.85rem;
}
.qs-case-lightbox-caption {
  color: #cbd5e1;
  max-width: 600px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
