/* PAGE-SPECIFIC STYLES FOR SUNWIN SEMICONDUCTOR */

/* 1. HERO SECTIONS & BANNER LAYOUTS */
.hero-section {
  position: relative;
  background-color: var(--bg-darkest);
  background-image: linear-gradient(rgba(6, 9, 15, 0.55), rgba(6, 9, 15, 0.85)), url('../public/banner/sunwin%20banner1.png');
  background-size: cover;
  background-position: center 40%;
  height: 500px;
  min-height: 500px;
  padding: 0;
  color: var(--text-white);
  overflow: hidden;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.hero-section .container {
  width: 100%;
}

/* ── Homepage hero override ── */
/* Content (title + description + CTA + stats row) exceeds the default 500px
   fixed hero height and gets clipped by overflow:hidden — let it grow. */
.hero-section.hero-home {
  height: auto;
  min-height: 560px;
  padding: 90px 0 70px 0;
}

/* ── Per-page hero banner overrides ── */
.hero-section.hero-subpage.hero-quality {
  background-image: linear-gradient(rgba(6, 9, 15, 0.45), rgba(6, 9, 15, 0.82)), url('../public/banner/sunwin%20banner5.png');
  background-position: center 60%;
  /* Content (title + description + CTA + stats row) exceeds the default 500px
     fixed hero height and gets clipped by overflow:hidden — let it grow. */
  height: auto;
  min-height: 500px;
  padding: 70px 0 50px 0;
}

.hero-support {
  background-image: linear-gradient(rgba(6, 9, 15, 0.45), rgba(6, 9, 15, 0.82)), url('../public/banner/sunwin%20banner10.png');
  background-position: center 50%;
}

.hero-about {
  background-image: linear-gradient(rgba(6, 9, 15, 0.35), rgba(6, 9, 15, 0.80)), url('../public/banner/sunwin%20banner9.png');
  background-position: center 55%;
}

.hero-news {
  background-image: linear-gradient(rgba(6, 9, 15, 0.50), rgba(6, 9, 15, 0.85)), url('../public/banner/sunwin%20banner4.png');
  background-position: center 45%;
}

.hero-contact {
  background-image: linear-gradient(rgba(6, 9, 15, 0.45), rgba(6, 9, 15, 0.82)), url('../public/banner/sunwin%20banner7.png');
  background-position: center 55%;
}

.hero-careers {
  background-image: linear-gradient(rgba(6, 9, 15, 0.45), rgba(6, 9, 15, 0.82)), url('../public/banner/sunwin%20banner8.png');
  background-position: center 50%;
}

/* Page-specific subpages might have shorter heroes */
.hero-subpage {
  height: 500px;
  min-height: 500px;
  padding: 0;
}

@media (max-width: 768px) {
  .hero-section,
  .hero-subpage {
    height: auto !important;
    min-height: auto !important;
    padding: 100px 0 60px 0 !important;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  max-width: 650px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-title span.highlight {
  color: var(--color-primary);
}

.hero-desc {
  font-size: 18px;
  color: var(--text-light-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Hero Stats Row */
.stats-row {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  flex-wrap: nowrap;
}

.stat-item {
  border-left: 2px solid var(--color-primary);
  padding-left: 20px;
  flex: 1 0 auto;
}

.stat-number {
  font-family: var(--font-header);
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 991px) {
  .stats-row {
    gap: 24px;
  }
  .stat-number {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  .stats-row {
    flex-wrap: wrap;
    gap: 20px;
  }
  .stat-item {
    flex: 1 1 calc(50% - 10px);
  }
}

/* Ensure all text inside hero section is bright white/high contrast */
.hero-section,
.hero-section .hero-desc,
.hero-section .section-tag {
  color: #ffffff;
}

.hero-section .hero-desc {
  opacity: 0.9;
}

.hero-section .section-tag {
  color: #ffffff;
  opacity: 0.95;
}

.hero-section .hero-title {
  color: #ffffff;
}

/* Search input on Support Hero */
.search-bar-container {
  position: relative;
  max-width: 550px;
  margin: 30px 0 16px 0;
}

.search-bar-input {
  width: 100%;
  padding: 18px 24px;
  padding-right: 60px;
  background-color: rgba(21, 28, 44, 0.8);
  border: 1px solid var(--bg-dark-border);
  border-radius: var(--border-radius-pill);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: var(--transition-fast);
}

.search-bar-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(230, 62, 38, 0.25);
}

.search-bar-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.search-bar-btn svg {
  stroke: var(--text-white);
  width: 20px;
  height: 20px;
}

.search-bar-btn:hover {
  background-color: var(--color-primary-hover);
}

.popular-topics {
  font-size: 13px;
  color: var(--text-light-muted);
}

.popular-topics a {
  color: var(--text-light-secondary);
  margin-left: 10px;
}

.popular-topics a:hover {
  color: var(--text-white);
}

/* 2. GRID CARDS SYSTEMS (FEATURED PRODUCTS & WHY SUNWIN) */
.cards-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.product-card {
  background-color: var(--bg-lightest);
  border: 1.5px solid var(--bg-light-border);
  border-radius: var(--border-radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-slow);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border-color: rgba(230, 62, 38, 0.3);
}

.product-card-img-wrapper {
  aspect-ratio: 1;
  background-color: var(--bg-light-sec);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition-slow);
}

.product-card:hover .product-card-img {
  transform: scale(1.08);
}

.product-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark-primary);
}

.product-card-desc {
  font-size: 14px;
  color: var(--text-dark-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.product-card-arrow {
  color: var(--color-primary);
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
}

.product-card-arrow svg {
  stroke: var(--color-primary);
  width: 18px;
  height: 18px;
  transition: var(--transition-normal);
}

.product-card:hover .product-card-arrow svg {
  transform: translateX(5px);
}

.center-btn-row {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* Why Sunwin Grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
}

.why-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.why-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background-color: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.why-icon-wrapper svg {
  stroke: var(--color-primary);
  width: 28px;
  height: 28px;
}

.why-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-white);
}

.why-desc {
  font-size: 14px;
  color: var(--text-light-secondary);
  line-height: 1.5;
}

/* 3. APPLICATIONS GRID SECTION */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.app-card {
  position: relative;
  border-radius: var(--border-radius-card);
  overflow: hidden;
  aspect-ratio: 1.6;
  background-color: var(--bg-darkest);
}

.app-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: var(--transition-slow);
}

.app-card:hover .app-card-img {
  transform: scale(1.06);
  opacity: 0.8;
}

/* Icon badge on bottom left of image */
.app-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: var(--text-white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.app-badge svg {
  stroke: var(--color-primary);
  width: 20px;
  height: 20px;
}

.app-title-outer {
  margin-top: 14px;
  font-family: var(--font-header);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark-primary);
}

/* 4. PRODUCTS LIST PAGE (products.html) */
.products-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 60px 0;
}

.filters-sidebar {
  border-right: 1px solid var(--bg-light-border);
  padding-right: 24px;
}

.filter-group {
  margin-bottom: 40px;
}

.filter-title {
  font-family: var(--font-header);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dark-primary);
}

.category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-item-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-dark-secondary);
  transition: var(--transition-fast);
}

.category-item-link:hover {
  background-color: var(--bg-light-sec);
  color: var(--text-dark-primary);
}

.category-item-link.active {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 600;
}

.category-item-link svg {
  stroke: var(--color-primary);
  width: 14px;
  height: 14px;
  opacity: 0;
  transition: var(--transition-fast);
}

.category-item-link.active svg {
  opacity: 1;
}

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dark-secondary);
  cursor: pointer;
}

.checkbox-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
}

/* Clear filters button */
.btn-clear {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--bg-light-border);
  padding: 10px 20px;
  border-radius: var(--border-radius-pill);
  font-family: var(--font-header);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark-secondary);
  cursor: pointer;
  margin-top: 10px;
  transition: var(--transition-fast);
}

.btn-clear:hover {
  background-color: var(--bg-light-sec);
  color: var(--text-dark-primary);
  border-color: var(--text-dark-muted);
}

.btn-clear svg {
  stroke: var(--text-dark-muted);
  width: 14px;
  height: 14px;
}

/* Products grid main display */
.products-display {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.display-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--bg-light-border);
  padding-bottom: 16px;
  flex-wrap: wrap;
  gap: 16px;
}

.results-count {
  font-size: 14px;
  color: var(--text-dark-secondary);
}

.search-sort-group {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.inner-search {
  position: relative;
  width: 280px;
}

.inner-search-input {
  width: 100%;
  padding: 8px 16px 8px 36px;
  border: 1px solid var(--bg-light-border);
  border-radius: var(--border-radius-pill);
  font-size: 13px;
  outline: none;
}

.inner-search-input:focus {
  border-color: var(--color-primary);
}

.inner-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  stroke: var(--text-dark-muted);
  width: 14px;
  height: 14px;
}

.sort-select {
  padding: 8px 16px;
  border: 1px solid var(--bg-light-border);
  border-radius: var(--border-radius-pill);
  font-size: 13px;
  outline: none;
  background-color: #fff;
  color: var(--text-dark-secondary);
}

.categories-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Trust Bar */
.trust-bar {
  border: 1.5px solid var(--bg-light-border);
  border-radius: var(--border-radius-card);
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.trust-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.trust-icon-wrapper {
  background-color: var(--color-primary-light);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon-wrapper svg {
  stroke: var(--color-primary);
  width: 22px;
  height: 22px;
}

.trust-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.trust-desc {
  font-size: 13px;
  color: var(--text-dark-secondary);
  line-height: 1.4;
}

/* 5. PRODUCT DETAILS LAYOUT (product-detail.html) */
.breadcrumb-trail {
  font-family: var(--font-header);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.breadcrumb-trail svg {
  stroke: var(--text-light-muted);
  width: 12px;
  height: 12px;
}

.breadcrumb-trail a:hover {
  color: var(--text-white);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  padding-bottom: 80px;
}

.gallery-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-viewer {
  border: 1px solid var(--bg-dark-border);
  border-radius: var(--border-radius-card);
  background-color: var(--bg-dark-sec);
  aspect-ratio: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-viewer img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.thumb-btn {
  aspect-ratio: 1.2;
  border: 1.5px solid var(--bg-dark-border);
  border-radius: 8px;
  background-color: var(--bg-dark-sec);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: var(--transition-fast);
}

.thumb-btn img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.thumb-btn:hover, .thumb-btn.active {
  border-color: var(--color-primary);
  background-color: rgba(230, 62, 38, 0.05);
}

.detail-specs-group {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.badge-pill-light {
  align-self: flex-start;
  font-family: var(--font-header);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  background-color: var(--color-primary-light);
  padding: 6px 14px;
  border-radius: var(--border-radius-pill);
}

.product-detail-spec-line {
  font-family: var(--font-header);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-light-secondary);
}

.badges-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 10px 0;
}

.badge-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bg-dark-sec);
  border: 1px solid var(--bg-dark-border);
  border-radius: 10px;
  padding: 12px 16px;
}

.badge-feature-icon {
  width: 32px;
  height: 32px;
  background-color: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-feature-icon svg {
  stroke: var(--color-primary);
  width: 16px;
  height: 16px;
}

.badge-feature-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
}

.actions-row {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

/* Tabs switcher styling */
.tabs-navigation {
  border-bottom: 1.5px solid var(--bg-light-border);
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
}

.tab-trigger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 0;
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dark-secondary);
  position: relative;
  transition: var(--transition-fast);
}

.tab-trigger:hover, .tab-trigger.active {
  color: var(--color-primary);
}

.tab-trigger::after {
  content: '';
  position: absolute;
  bottom: -1.5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-fast);
}

.tab-trigger.active::after {
  width: 100%;
}

.tabs-content-container {
  margin-bottom: 80px;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.features-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.features-paragraph {
  font-size: 15px;
  color: var(--text-dark-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
}

.checkmark-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkmark-item {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  color: var(--text-dark-secondary);
  font-weight: 500;
}

.checkmark-item svg {
  stroke: var(--color-primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Spec Table formatting */
.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table tr {
  border-bottom: 1.5px solid var(--bg-light-border);
}

.spec-table td {
  padding: 12px 16px;
  font-size: 14px;
}

.spec-table td.spec-name {
  font-weight: 600;
  color: var(--text-dark-secondary);
  width: 45%;
}

.spec-table td.spec-value {
  color: var(--text-dark-primary);
  font-weight: 500;
}

/* Downloads document list */
.downloads-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.downloads-title {
  font-family: var(--font-header);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.doc-download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-light-sec);
  border: 1px solid var(--bg-light-border);
  border-radius: 10px;
  padding: 16px 20px;
  transition: var(--transition-fast);
}

.doc-download-card:hover {
  border-color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.doc-info-block {
  display: flex;
  gap: 14px;
  align-items: center;
}

.doc-icon {
  width: 38px;
  height: 38px;
  background-color: rgba(230, 62, 38, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doc-icon svg {
  stroke: var(--color-primary);
  width: 18px;
  height: 18px;
}

.doc-name {
  font-family: var(--font-header);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark-primary);
}

.doc-size {
  font-size: 11px;
  color: var(--text-dark-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.doc-action-btn {
  stroke: var(--color-primary);
  width: 18px;
  height: 18px;
}

/* Product slider carousel */
.slider-container-relative {
  position: relative;
  overflow: hidden;
  margin-bottom: 80px;
}

.slider-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.slider-item-card {
  flex: 0 0 calc((100% - 96px) / 5); /* Shows 5 items on desktop */
}

/* Help Engineer Support banner */
.engineer-help-banner {
  background-color: var(--bg-darkest);
  background-image: linear-gradient(90deg, var(--bg-darkest) 40%, rgba(230, 62, 38, 0.05)), url('../images/chip_hero.svg');
  background-size: cover;
  background-position: center;
  border-radius: var(--border-radius-card);
  border: 1px solid var(--bg-dark-border);
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  flex-wrap: wrap;
  gap: 30px;
}

.engineer-banner-content {
  max-width: 580px;
}

.engineer-banner-title {
  color: var(--text-white);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}

.engineer-banner-desc {
  color: var(--text-light-secondary);
  font-size: 15px;
}

.engineer-banner-actions {
  display: flex;
  gap: 16px;
}

/* 6. QUALITY PAGE & FLOWCHARTS (quality.html) */
.testing-table-container {
  border: 1px solid var(--bg-light-border);
  border-radius: var(--border-radius-card);
  overflow: hidden;
  margin-bottom: 80px;
}

.testing-table {
  width: 100%;
  border-collapse: collapse;
}

.testing-table th {
  background-color: var(--bg-light-sec);
  font-family: var(--font-header);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  padding: 16px 24px;
  border-bottom: 1.5px solid var(--bg-light-border);
}

.testing-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--bg-light-border);
  font-size: 14px;
}

.testing-table tr:last-child td {
  border-bottom: none;
}

.testing-icon-name {
  display: flex;
  gap: 14px;
  align-items: center;
  font-weight: 700;
  font-family: var(--font-header);
}

.testing-icon {
  width: 32px;
  height: 32px;
  background-color: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testing-icon svg {
  stroke: var(--color-primary);
  width: 16px;
  height: 16px;
}

/* Flowchart steps line */
.flowchart-wrapper {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 60px 0 80px 0;
  padding: 0 20px;
}

/* Dashed horizontal connecting line */
.flowchart-wrapper::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 60px;
  right: 60px;
  height: 2px;
  border-top: 2px dotted #E2E8F0;
  z-index: 1;
}

.flowchart-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 16%;
  z-index: 2;
}

.flowchart-node {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--bg-lightest);
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(230, 62, 38, 0.1);
  transition: var(--transition-fast);
}

.flowchart-node svg {
  stroke: var(--color-primary);
  width: 32px;
  height: 32px;
  transition: var(--transition-fast);
}

.flowchart-step:hover .flowchart-node {
  background-color: var(--color-primary);
  transform: scale(1.08);
}

.flowchart-step:hover .flowchart-node svg {
  stroke: var(--text-white);
}

.flowchart-step-title {
  font-family: var(--font-header);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.flowchart-step-desc {
  font-size: 13px;
  color: var(--text-dark-secondary);
  line-height: 1.4;
}

/* Dark stripe strip highlights */
.dark-strip-highlights {
  background-color: var(--bg-dark-sec);
  border-top: 1px solid var(--bg-dark-border);
  border-bottom: 1px solid var(--bg-dark-border);
  padding: 40px 0;
  margin: 60px 0;
}

.dark-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.strip-item {
  display: flex;
  gap: 16px;
  align-items: center;
  border-right: 1px solid var(--bg-dark-border);
  padding-right: 20px;
}

.strip-item:last-child {
  border-right: none;
}

.strip-icon {
  width: 48px;
  height: 48px;
  background-color: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.strip-icon svg {
  stroke: var(--color-primary);
  width: 22px;
  height: 22px;
}

.strip-title {
  font-family: var(--font-header);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 4px;
}

.strip-desc {
  font-size: 12px;
  color: var(--text-light-secondary);
  line-height: 1.3;
}

/* Bottom Call to Action block */
.bottom-cta-banner {
  background-color: var(--bg-light-sec);
  border: 1px solid var(--bg-light-border);
  border-radius: var(--border-radius-card);
  padding: 40px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
  flex-wrap: wrap;
  gap: 20px;
}

.bottom-cta-banner .cta-left {
  max-width: 60%;
}

.bottom-cta-banner h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
}

.bottom-cta-banner p {
  color: var(--text-dark-secondary);
  font-size: 15px;
}

/* 7. SUPPORT PAGE (support.html) */
.support-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.support-main-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.support-image-wrapper {
  border-radius: var(--border-radius-card);
  overflow: hidden;
  aspect-ratio: 1.5;
  border: 1px solid var(--bg-light-border);
}

.support-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-channels-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-channel-item {
  display: flex;
  gap: 20px;
  align-items: center;
  border: 1.5px solid var(--bg-light-border);
  border-radius: var(--border-radius-card);
  padding: 24px;
  background-color: var(--bg-lightest);
}

.contact-channel-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--bg-light-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-channel-icon svg {
  stroke: var(--color-primary);
  width: 22px;
  height: 22px;
}

.channel-label {
  font-size: 12px;
  color: var(--text-dark-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.channel-value {
  font-family: var(--font-header);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark-primary);
}

/* 8. ABOUT US PAGE (about.html) */
.about-split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 80px;
}

.about-split-text {
  max-width: 540px;
}

.about-split-image {
  border-radius: var(--border-radius-card);
  overflow: hidden;
  aspect-ratio: 1.6;
  border: 1px solid var(--bg-light-border);
}

.about-split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mission-vision-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 80px;
}

.mission-card {
  border: 1.5px solid var(--bg-light-border);
  border-radius: var(--border-radius-card);
  padding: 40px;
  display: flex;
  gap: 24px;
}

.mission-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1.5px solid var(--bg-light-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mission-icon svg {
  stroke: var(--color-primary);
  width: 28px;
  height: 28px;
}

.mission-title-tag {
  font-size: 12px;
  color: var(--text-dark-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.mission-heading {
  font-family: var(--font-header);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
}

.mission-desc {
  font-size: 14px;
  color: var(--text-dark-secondary);
  line-height: 1.6;
}

/* Timeline sliders */
.timeline-slider-outer {
  position: relative;
  margin-bottom: 80px;
}

.timeline-nav {
  position: absolute;
  top: -65px;
  right: 0;
  display: flex;
  gap: 12px;
}

.timeline-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--bg-light-border);
  background-color: var(--bg-lightest);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.timeline-nav-btn:hover {
  border-color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.timeline-nav-btn svg {
  stroke: var(--text-dark-secondary);
  width: 16px;
  height: 16px;
}

.timeline-nav-btn:hover svg {
  stroke: var(--color-primary);
}

.timeline-track-container {
  overflow-x: auto;
  scrollbar-width: none; /* Hide scrollbar Firefox */
  padding: 30px 0;
}

.timeline-track-container::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome */
}

.timeline-track {
  display: flex;
  position: relative;
  width: max-content;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-primary);
}

.timeline-node-card {
  width: 200px;
  margin-right: 48px;
  position: relative;
}

.timeline-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--bg-lightest);
  border: 4px solid var(--color-primary);
  position: absolute;
  top: 0px;
  left: 0;
  box-shadow: 0 0 10px rgba(230, 62, 38, 0.3);
}

.timeline-year {
  font-family: var(--font-header);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark-primary);
  margin-top: 32px;
  margin-bottom: 8px;
}

.timeline-node-desc {
  font-size: 13px;
  color: var(--text-dark-secondary);
  line-height: 1.5;
}

/* Our values grid */
.values-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.value-item {
  border-left: 1.5px solid var(--bg-light-border);
  padding-left: 20px;
}

.value-icon-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.value-icon-title svg {
  stroke: var(--color-primary);
  width: 20px;
  height: 20px;
}

.value-heading {
  font-family: var(--font-header);
  font-size: 15px;
  font-weight: 700;
}

.value-desc {
  font-size: 13px;
  color: var(--text-dark-secondary);
  line-height: 1.5;
}

/* 9. NEWS & EVENTS PAGE (news.html) */
.featured-news-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  background-color: var(--bg-lightest);
  border: 1.5px solid var(--bg-light-border);
  border-radius: var(--border-radius-card);
  padding: 40px;
  margin-bottom: 60px;
  align-items: center;
}

.featured-news-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.featured-news-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
}

.featured-news-title span.brand-italic {
  font-style: italic;
  font-weight: 900;
}

.featured-news-meta {
  font-size: 13px;
  color: var(--text-dark-muted);
}

.featured-news-desc {
  font-size: 15px;
  color: var(--text-dark-secondary);
  line-height: 1.6;
}

.featured-news-img-wrapper {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1.6;
  border: 1px solid var(--bg-light-border);
}

.featured-news-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* News Tags filters row */
.news-tags-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--bg-light-border);
  padding-bottom: 16px;
  flex-wrap: wrap;
  gap: 16px;
}

.news-tags-list {
  display: flex;
  gap: 12px;
  list-style: none;
  flex-wrap: wrap;
}

.news-tag-btn {
  background-color: transparent;
  border: 1px solid var(--bg-light-border);
  padding: 8px 18px;
  border-radius: var(--border-radius-pill);
  font-family: var(--font-header);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.news-tag-btn:hover {
  background-color: var(--bg-light-sec);
  color: var(--text-dark-primary);
}

.news-tag-btn.active {
  background-color: var(--color-primary);
  color: var(--text-white);
  border-color: var(--color-primary);
}

/* Event Cards Layout */
.events-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.events-section-header h3 {
  font-size: 24px;
  font-weight: 800;
}

.events-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.event-card {
  border: 1.5px solid var(--bg-light-border);
  border-radius: var(--border-radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-lightest);
  transition: var(--transition-fast);
}

.event-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.event-card-header {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.event-calendar-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.event-calendar-icon svg {
  stroke: var(--color-primary);
  width: 20px;
  height: 20px;
}

.event-card-title {
  font-family: var(--font-header);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark-primary);
}

.event-card-date-loc {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dark-muted);
  margin-bottom: 14px;
}

.event-card-desc {
  font-size: 13px;
  color: var(--text-dark-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Email newsletter strip */
.newsletter-strip {
  background-color: var(--bg-light-sec);
  border: 1px solid var(--bg-light-border);
  border-radius: var(--border-radius-card);
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 80px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.newsletter-intro {
  display: flex;
  gap: 16px;
  align-items: center;
  max-width: 550px;
}

.newsletter-mail-icon {
  width: 48px;
  height: 48px;
  background-color: var(--bg-darkest);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.newsletter-mail-icon svg {
  stroke: var(--text-white);
  width: 24px;
  height: 24px;
}

.newsletter-title {
  font-family: var(--font-header);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark-primary);
  margin-bottom: 4px;
}

.newsletter-desc {
  font-size: 13px;
  color: var(--text-dark-secondary);
}

.newsletter-form {
  display: flex;
  gap: 10px;
  width: 400px;
  max-width: 100%;
}

.newsletter-input {
  flex-grow: 1;
  padding: 10px 16px;
  border-radius: var(--border-radius-pill);
  border: 1px solid var(--bg-light-border);
  font-size: 14px;
  outline: none;
}

.newsletter-input:focus {
  border-color: var(--color-primary);
}

.newsletter-btn {
  padding: 10px 24px;
  border-radius: var(--border-radius-pill);
  background-color: var(--color-primary);
  color: var(--text-white);
  border: none;
  font-family: var(--font-header);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.newsletter-btn:hover {
  background-color: var(--color-primary-hover);
}

/* 10. CONTACT US PAGE & INTERACTIVE FORM (contact.html) */
.contact-layout-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  padding-bottom: 80px;
}

.contact-form-col h3, .contact-info-col h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
}

.contact-form-desc, .contact-location-desc {
  font-size: 14px;
  color: var(--text-dark-secondary);
  margin-bottom: 30px;
}

/* Custom form styles */
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group-full {
  grid-column: span 2;
}

.form-field-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--font-header);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark-secondary);
}

.form-label span.req {
  color: var(--color-primary);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--bg-light-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark-primary);
  outline: none;
  background-color: #FFFFFF;
  transition: var(--transition-fast);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(230, 62, 38, 0.08);
}

.form-secure-note {
  font-size: 12px;
  color: var(--text-dark-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

/* Success Modal */
.success-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(6, 9, 15, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.success-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.success-modal-card {
  background-color: var(--bg-lightest);
  border-radius: var(--border-radius-card);
  padding: 40px;
  width: 450px;
  max-width: 90%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-modal-overlay.active .success-modal-card {
  transform: scale(1);
}

.success-modal-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.success-modal-icon-circle svg {
  stroke: #10B981;
  width: 32px;
  height: 32px;
}

.success-modal-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}

.success-modal-message {
  font-size: 14px;
  color: var(--text-dark-secondary);
  line-height: 1.5;
  margin-bottom: 30px;
}

/* Map visual component */
.map-visual-placeholder {
  border-radius: var(--border-radius-card);
  border: 1.5px solid var(--bg-light-border);
  background-color: var(--bg-light-sec);
  height: 250px;
  margin-bottom: 24px;
  overflow: hidden;
  position: relative;
}

.map-visual-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Headquarters information card */
.hq-info-card {
  border: 1.5px solid var(--bg-light-border);
  border-radius: var(--border-radius-card);
  padding: 30px;
  background-color: var(--bg-lightest);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.hq-icon-pin {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background-color: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hq-icon-pin svg {
  stroke: var(--color-primary);
  width: 20px;
  height: 20px;
}

.hq-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hq-label {
  font-family: var(--font-header);
  font-size: 15px;
  font-weight: 700;
}

.hq-address {
  font-size: 14px;
  color: var(--text-dark-secondary);
  line-height: 1.6;
}

.hq-btn-row {
  margin-top: 10px;
}

/* 11. CAREERS PAGE (careers.html) */
.careers-collage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 60px;
}

.careers-collage-img {
  border-radius: var(--border-radius-card);
  overflow: hidden;
  aspect-ratio: 1.3;
  border: 1px solid var(--bg-light-border);
}

.careers-collage-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Job table styles */
.job-postings-table {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 80px;
}

.job-posting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-light-sec);
  border: 1.5px solid var(--bg-light-border);
  border-radius: var(--border-radius-card);
  padding: 24px 30px;
  transition: var(--transition-fast);
  cursor: pointer;
}

.job-posting-row:hover {
  border-color: var(--color-primary);
  background-color: var(--bg-lightest);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
}

.job-main-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.job-title {
  font-family: var(--font-header);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark-primary);
}

.job-meta-row {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--text-dark-secondary);
}

.job-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.job-meta-item svg {
  stroke: var(--text-dark-muted);
  width: 14px;
  height: 14px;
}

.job-arrow-link {
  stroke: var(--text-dark-muted);
  width: 18px;
  height: 18px;
  transition: var(--transition-fast);
}

.job-posting-row:hover .job-arrow-link {
  stroke: var(--color-primary);
  transform: translateX(4px);
}

/* RESPONSIVE LAYOUT RULES */
@media (max-width: 1024px) {
  .cards-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .products-layout {
    grid-template-columns: 1fr;
  }
  
  .filters-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--bg-light-border);
    padding-right: 0;
    padding-bottom: 30px;
  }
  
  .categories-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .tab-panel.active {
    grid-template-columns: 1fr 1fr;
  }
  
  .slider-item-card {
    flex: 0 0 calc((100% - 48px) / 3); /* Shows 3 items */
  }

  .flowchart-wrapper {
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
    padding-left: 40px;
  }
  
  .flowchart-wrapper::before {
    top: 0;
    bottom: 0;
    left: 76px;
    width: 2px;
    height: auto;
    border-left: 2px dotted #E2E8F0;
    border-top: none;
  }
  
  .flowchart-step {
    flex-direction: row;
    width: 100%;
    text-align: left;
    gap: 20px;
  }
  
  .flowchart-node {
    margin-bottom: 0;
  }
  
  .dark-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .strip-item {
    border-right: none;
    border-bottom: 1px solid var(--bg-dark-border);
    padding-bottom: 20px;
  }
  
  .strip-item:nth-child(even) {
    padding-left: 20px;
  }
  
  .support-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .support-main-layout {
    grid-template-columns: 1fr;
  }
  
  .about-split-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .mission-vision-row {
    grid-template-columns: 1fr;
  }
  
  .values-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .featured-news-card {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .events-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-layout-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .careers-collage-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .cards-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .why-grid {
    grid-template-columns: 1fr;
  }
  
  .apps-grid {
    grid-template-columns: 1fr;
  }
  
  .categories-grid-3 {
    grid-template-columns: 1fr;
  }
  
  .tab-panel.active {
    grid-template-columns: 1fr;
  }
  
  .slider-item-card {
    flex: 0 0 calc(100% - 10px); /* Shows 1 item */
  }
  
  .dark-strip-grid {
    grid-template-columns: 1fr;
  }
  
  .strip-item:nth-child(even) {
    padding-left: 0;
  }
  
  .support-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .values-grid-5 {
    grid-template-columns: 1fr;
  }
  
  .events-grid-4 {
    grid-template-columns: 1fr;
  }
  
  .contact-form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group-full {
    grid-column: span 1;
  }
  
  .job-posting-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .careers-collage-grid {
    grid-template-columns: 1fr;
  }
  
  .bottom-cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .bottom-cta-banner .cta-left {
    max-width: 100%;
  }
}

/* BRANDS CATALOG GRID */
.brands-catalog-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.brand-card-item {
  background-color: var(--bg-lightest);
  border: 1px solid var(--bg-light-border);
  border-radius: var(--border-radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-slow);
  text-decoration: none;
}

.brand-card-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--color-primary);
}

.brand-card-logo-wrapper {
  aspect-ratio: 2.2;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--bg-light-border);
}

.brand-card-logo-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: var(--transition-slow);
}

.brand-card-item:hover .brand-card-logo-wrapper img {
  transform: scale(1.04);
}

.brand-card-caption {
  background-color: #F8F9FA;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark-secondary);
  text-align: center;
  transition: var(--transition-fast);
}

.brand-card-item:hover .brand-card-caption {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* BRAND CATEGORIES BOARD */
.brand-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1.5px solid var(--border-light-color);
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.brand-cat-link::after {
  content: "→";
  font-size: 18px;
  transition: var(--transition-fast);
}

.brand-cat-link:hover {
  color: var(--color-primary-hover);
  padding-left: 26px;
  background-color: rgba(230, 62, 38, 0.03);
}

.brand-cat-link:hover::after {
  transform: translateX(4px);
}

/* RESPONSIVE BRANDS LAYOUT */
@media (max-width: 1200px) {
  .brands-catalog-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 992px) {
  .brands-catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .brands-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .brand-categories-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
}
@media (max-width: 480px) {
  .brands-catalog-grid {
    grid-template-columns: 1fr;
  }
}

/* BRAND RIBBON */
.brand-ribbon-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 10px;
}
.brand-ribbon-item {
  height: 120px;
  background-color: #ffffff;
  border: 1px solid var(--border-light-color);
  border-radius: var(--border-radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: var(--transition-slow);
}
.brand-ribbon-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: var(--transition-slow);
}
.brand-ribbon-item:hover {
  border-color: var(--color-primary);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}
.brand-ribbon-item:hover img {
  transform: scale(1.03);
}

@media (max-width: 992px) {
  .brand-ribbon-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 576px) {
  .brand-ribbon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* BRAND HOVER OVERLAY CATEGORY LISTS */
.brand-ribbon-item, .brand-card-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.08) !important; /* Subtle border */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.brand-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 10;
  box-sizing: border-box;
}

.brand-ribbon-item:hover .brand-hover-overlay,
.brand-card-item:hover .brand-hover-overlay {
  opacity: 1;
  visibility: visible;
}

.brand-hover-overlay .overlay-title {
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 13px;
  color: var(--color-primary);
  margin-bottom: 6px;
  text-align: center;
  border-bottom: 1.5px solid var(--border-light-color);
  padding-bottom: 4px;
}

.brand-hover-overlay .overlay-links {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
  flex-grow: 1;
}

/* Custom scrollbar for overlay list */
.brand-hover-overlay .overlay-links::-webkit-scrollbar {
  width: 4px;
}
.brand-hover-overlay .overlay-links::-webkit-scrollbar-thumb {
  background: var(--border-light-color);
  border-radius: 2px;
}

.brand-hover-overlay .overlay-link {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dark-secondary);
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 4px;
  display: block;
  transition: var(--transition-fast);
  text-align: center;
}

.brand-hover-overlay .overlay-link:hover {
  background-color: rgba(230, 62, 38, 0.05);
  color: var(--color-primary);
}

.brand-hover-overlay .overlay-view-all {
  font-family: var(--font-header);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dark-primary);
  text-decoration: none;
  display: block;
  text-align: center;
  padding-top: 6px;
  margin-top: 4px;
  border-top: 1.5px solid var(--border-light-color);
  transition: var(--transition-fast);
}

.brand-hover-overlay .overlay-view-all:hover {
  color: var(--color-primary);
}


/* ── HOMEPAGE FEATURED PRODUCTS · BRAND TABS ── */
.fp-tabs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: safe center;
  gap: 12px;
  margin: 34px 0 36px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 10px;
}

.fp-tabs::-webkit-scrollbar {
  display: none;
}

.fp-tab {
  flex-shrink: 0;
  background-color: #ffffff;
  border: 1.5px solid var(--bg-light-border, #e2e8f0);
  border-radius: 12px;
  padding: 12px 26px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-slow, all 0.3s ease);
}

.fp-tab img {
  height: 40px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
}

.fp-tab:hover {
  border-color: rgba(230, 62, 38, 0.4);
  transform: translateY(-2px);
}

.fp-tab.active {
  border-color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(230, 62, 38, 0.12);
}

/* 8-per-row product grid (16 cards = 2 rows by default) */
.fp-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
  margin-bottom: 40px;
  animation: fpFadeIn 0.35s ease;
}

.fp-mini-card {
  padding: 16px 14px;
}

.fp-mini-card .product-card-title {
  font-size: 13px;
  margin-bottom: 4px;
  word-break: break-all;
}

.fp-mini-card .product-card-desc {
  font-size: 11.5px;
  line-height: 1.45;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 33px;
}

.fp-stock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-top: auto;
}

.fp-stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.fp-stock-in {
  color: #16a34a;
}

.fp-stock-in .fp-stock-dot {
  background-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.fp-stock-out {
  color: #9ca3af;
}

.fp-stock-out .fp-stock-dot {
  background-color: #9ca3af;
  box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.15);
}

@keyframes fpFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1200px) {
  .fp-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 1024px) {
  .fp-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .fp-tabs {
    gap: 10px;
    margin: 26px 0 28px;
    justify-content: flex-start;
  }
  .fp-tab {
    padding: 10px 20px;
    height: 62px;
  }
  .fp-tab img {
    height: 34px;
    max-width: 120px;
  }
}

/* White background for featured-product card images (was light grey) */
.fp-mini-card .product-card-img-wrapper {
  background-color: #ffffff;
  border: 1px solid var(--border-light-color, #edf0f5);
}

@media (max-width: 600px) {
  .fp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ── LEGAL PAGES (Privacy Policy / Terms of Use) ── */
.hero-section.hero-subpage.hero-legal {
  height: auto;
  min-height: 0;
  padding: 100px 0 70px 0;
}

.legal-content {
  max-width: 860px;
  margin: 0 auto;
}

.legal-content p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dark-secondary, #4a5568);
  margin-bottom: 18px;
}

.legal-content h3 {
  font-family: var(--font-header);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark-primary, #1a202c);
  margin: 36px 0 14px;
}

.legal-content h3:first-of-type {
  margin-top: 8px;
}

.legal-content ul {
  margin: 0 0 18px 0;
  padding-left: 22px;
}

.legal-content li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dark-secondary, #4a5568);
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--color-primary);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* ── CONTACT PAGE · CONTACT INFO CARD ── */
.contact-info-card {
  background-color: var(--bg-light-sec, #f6f8fb);
  border: 1.5px solid var(--bg-light-border, #e2e8f0);
  border-radius: var(--border-radius-card, 16px);
  padding: 34px 30px;
  height: 100%;
  box-sizing: border-box;
}

.contact-info-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.contact-info-desc {
  font-size: 14px;
  color: var(--text-dark-secondary, #4a5568);
  margin-bottom: 28px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light-color, #edf0f5);
}

.contact-info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-info-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background-color: rgba(230, 62, 38, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-icon svg {
  width: 19px;
  height: 19px;
}

.contact-info-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-dark-secondary, #4a5568);
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark-primary, #1a202c);
  line-height: 1.5;
}

.contact-info-value a {
  color: var(--color-primary);
  text-decoration: none;
}

.contact-info-value a:hover {
  text-decoration: underline;
}

/* ── PRODUCTS PAGE · MOBILE OFF-CANVAS FILTERS ── */
.filter-fab,
.filter-close {
  display: none;
}

@media (max-width: 768px) {
  .filters-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 300px;
    max-width: 85vw;
    background-color: #ffffff;
    z-index: 1100;
    transform: translateX(-105%);
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow-y: auto;
    padding: 64px 22px 40px;
    border-right: none;
    border-bottom: none;
    box-shadow: 12px 0 40px rgba(6, 9, 15, 0.18);
    box-sizing: border-box;
  }

  .filters-sidebar.filter-open {
    transform: translateX(0);
  }

  .filter-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(6, 9, 15, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1090;
  }

  .filter-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .filter-fab {
    display: flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    background-color: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 13px 30px;
    font-family: var(--font-header);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(230, 62, 38, 0.38);
  }

  .filter-fab svg {
    width: 18px;
    height: 18px;
  }

  .filter-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--bg-light-border, #e2e8f0);
    background-color: #ffffff;
    color: var(--text-dark-primary, #1a202c);
    cursor: pointer;
  }

  .filter-close svg {
    width: 16px;
    height: 16px;
  }

  /* Two product cards per row on mobile */
  .dynamic-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .dynamic-products-grid .product-card {
    padding: 14px;
  }

  .dynamic-products-grid .product-card-img-wrapper {
    height: 110px !important;
    padding: 10px !important;
  }

  .dynamic-products-grid .product-card-title {
    font-size: 14px !important;
  }

  .dynamic-products-grid .product-card-desc {
    font-size: 11.5px !important;
    min-height: 32px !important;
  }

  /* Add bottom padding so the last row clears the floating button */
  .products-display {
    padding-bottom: 70px;
  }
}

/* ── PRODUCT DETAIL · MOBILE NEED-HELP BANNER & BREADCRUMB ── */
@media (max-width: 768px) {
  .engineer-help-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    padding: 32px 24px !important;
    margin-top: 40px !important;
  }

  .engineer-banner-content {
    max-width: 100%;
  }

  .engineer-banner-title {
    font-size: 21px;
    line-height: 1.35;
    margin-bottom: 8px;
  }

  .engineer-banner-desc {
    font-size: 13.5px;
    line-height: 1.6;
  }

  .engineer-banner-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .engineer-banner-actions .btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    font-size: 14px;
  }

  /* Breadcrumb: single line, swipe horizontally when it overflows */
  .breadcrumb-trail {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
    gap: 6px;
  }

  .breadcrumb-trail::-webkit-scrollbar {
    display: none;
  }

  .breadcrumb-trail > * {
    flex-shrink: 0;
  }

  .breadcrumb-trail a,
  .breadcrumb-trail span {
    white-space: nowrap;
  }
}
