/* ==========================================================================
   Hardware & Dual-Entity Portal Styles (Sygna Solutions)
   Aligned with Material Design 3 Design Tokens
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero Dual-Entity Selector Gateway
   -------------------------------------------------------------------------- */
.hero-portal {
  position: relative;
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #071e3d 0%, #003380 50%, #0047ab 100%);
  color: #ffffff;
  overflow: hidden;
}

.hero-portal::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(25, 118, 210, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-portal::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 108, 76, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-portal-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
}

.hero-portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-portal-title {
  color: #ffffff !important;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-portal-title .highlight,
.hero-portal-title .highlight-it {
  background: linear-gradient(90deg, #77eab8, #c4efe0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-portal-title .highlight-hardware {
  background: linear-gradient(90deg, #f5dc70, #eda265);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-portal-subtitle {
  font-size: 1.2rem;
  color: #e0e7ff;
  line-height: 1.6;
  max-width: 750px;
  margin: 0 auto;
}

/* Dual-Entity Cards Grid */
.entity-gateway-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.entity-card {
  background: #ffffff;
  color: #1a1c1e;
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.entity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
}

.entity-card.entity-it::before {
  background: linear-gradient(90deg, #0047ab, #0284c7);
}

.entity-card.entity-hardware::before {
  background: linear-gradient(90deg, #006c4c, #0ea5e9);
}

.entity-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 50px rgba(0, 0, 0, 0.22);
}

.entity-card.entity-it:hover {
  border-color: rgba(0, 71, 171, 0.35);
}

.entity-card.entity-hardware:hover {
  border-color: rgba(0, 108, 76, 0.35);
}

.entity-card-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.entity-icon-box {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.entity-it .entity-icon-box {
  background: #e6f0ff;
  color: #0047ab;
}

.entity-hardware .entity-icon-box {
  background: #e6f7f0;
  color: #006c4c;
}

.entity-meta {
  flex: 1;
}

.entity-division-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.entity-it .entity-division-tag {
  background: #dbeafe;
  color: #1e40af;
}

.entity-hardware .entity-division-tag {
  background: #ccfbf1;
  color: #115e59;
}

.entity-card-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.entity-card-desc {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 24px;
}

.entity-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.entity-feature-pill {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  background: #f1f5f9;
  color: #334155;
  border-radius: 30px;
  border: 1px solid #e2e8f0;
}

.entity-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.btn-entity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-entity-it {
  background: #0047ab;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 71, 171, 0.3);
}

.btn-entity-it:hover {
  background: #003380;
  box-shadow: 0 6px 18px rgba(0, 71, 171, 0.4);
  color: #ffffff;
}

.btn-entity-hardware {
  background: #006c4c;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 108, 76, 0.3);
}

.btn-entity-hardware:hover {
  background: #004d36;
  box-shadow: 0 6px 18px rgba(0, 108, 76, 0.4);
  color: #ffffff;
}

.btn-entity-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  color: #475569;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}

.btn-entity-secondary:hover {
  background: #f8fafc;
  color: #0f172a;
}

/* --------------------------------------------------------------------------
   2. Sticky Business Entity Switcher / Tab Bar
   -------------------------------------------------------------------------- */
.entity-switcher-bar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 990;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}


/* Scroll clearance for anchor navigation */
.division-section,
#it-solutions,
#hardware-electronics {
  scroll-margin-top: 120px;
}

.entity-switcher-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.entity-switcher-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.entity-switcher-nav {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
}

.entity-switch-btn {
  padding: 10px 20px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.entity-switch-btn:hover {
  color: #0f172a;
}

.entity-switch-btn.active {
  background: #ffffff;
  color: #0047ab;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------------------------------
   3. Hardware Electronics Section Styles
   -------------------------------------------------------------------------- */
.hardware-section {
  padding: 80px 0;
  background-color: #f8fafc;
}

/* Filter Container Wrapper */
.hardware-filters-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin: 28px auto 44px;
}

.hardware-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  padding: 4px;
}

.hardware-filter-btn {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  padding: 8px 14px;
  border-radius: 30px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.hardware-filter-btn i {
  font-size: 0.85rem;
  color: #64748b;
  transition: color 0.2s ease;
}

.hardware-filter-btn .filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  min-width: 20px;
  transition: all 0.2s ease;
}

.hardware-filter-btn:hover {
  background: #f8fafc;
  color: #0047ab;
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 71, 171, 0.12);
}

.hardware-filter-btn:hover i {
  color: #0047ab;
}

.hardware-filter-btn.active {
  background: #0047ab;
  color: #ffffff;
  border-color: #0047ab;
  box-shadow: 0 4px 14px rgba(0, 71, 171, 0.3);
  transform: translateY(-1px);
}

.hardware-filter-btn.active i {
  color: #ffffff;
}

.hardware-filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Hardware Products Grid */
.hardware-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 50px;
}

.hardware-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.25s ease;
  display: flex;
  flex-direction: column;
}

.hardware-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.hardware-img-wrap {
  position: relative;
  height: 220px;
  width: 100%;
  overflow: hidden;
  background: #e2e8f0;
  display: block;
  cursor: pointer;
  text-decoration: none;
}

.hardware-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hardware-card:hover .hardware-img-wrap img {
  transform: scale(1.08);
}

.hardware-img-action {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(0, 71, 171, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
  z-index: 2;
  letter-spacing: 0.3px;
}

.hardware-card:hover .hardware-img-action {
  opacity: 1;
  transform: translateY(0);
}

.hardware-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hardware-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hardware-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
  line-height: 1.35;
}

.hardware-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.hardware-card:hover .hardware-card-title a,
.hardware-card-title a:hover {
  color: #0047ab;
}

.hardware-card-desc {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.hardware-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.hardware-inquire-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0047ab;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.2s;
  font-family: inherit;
}

.hardware-inquire-btn:hover {
  color: #003380;
  text-decoration: underline;
}

.hardware-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: #0284c7;
  background: #f0f9ff;
  padding: 4px 8px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   4. Hardware Value Pillars ("Why Choose Us")
   -------------------------------------------------------------------------- */
.hardware-why-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 45px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  margin-bottom: 50px;
}

.hardware-why-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 35px;
}

.hardware-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.hardware-pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.hardware-pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e6f0ff;
  color: #0047ab;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.hardware-pillar-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.hardware-pillar-content p {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   5. Hardware Contact & Sales Support Banner
   -------------------------------------------------------------------------- */
.hardware-contact-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 20px;
  padding: 45px 40px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.hardware-contact-info h3 {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff !important;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hardware-contact-info p {
  color: #e2e8f0 !important;
  font-size: 1.05rem;
  margin-bottom: 18px;
  line-height: 1.6;
}


.hardware-contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.hardware-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}

.hardware-contact-link i {
  color: #60a5fa;
}

.hardware-contact-link:hover {
  color: #60a5fa;
}

.hardware-contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   6. Request a Quote Modal
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.quote-modal {
  background: #ffffff;
  border-radius: 20px;
  max-width: 580px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 24px 28px;
  background: linear-gradient(135deg, #003380, #0047ab);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-header h3 {
  color: #ffffff !important;
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-form-group {
  margin-bottom: 18px;
}

.modal-form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.modal-form-group input,
.modal-form-group select,
.modal-form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.modal-form-group input:focus,
.modal-form-group select:focus,
.modal-form-group textarea:focus {
  outline: none;
  border-color: #0047ab;
  box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.15);
}

.modal-form-group input.is-invalid,
.modal-form-group select.is-invalid,
.modal-form-group textarea.is-invalid {
  border-color: #dc2626 !important;
  background-color: #fff8f8;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

.modal-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.modal-submit-btn {
  width: 100%;
  padding: 14px;
  background: #0047ab;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.modal-submit-btn:hover {
  background: #003380;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   7. Dedicated Hardware Page Hero
   -------------------------------------------------------------------------- */
.hardware-hero-page {
  background: linear-gradient(135deg, #091e3a 0%, #0d47a1 60%, #1976d2 100%);
  color: #ffffff;
  padding: 70px 0;
  text-align: center;
}

.hardware-hero-page h1 {
  color: #ffffff !important;
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hardware-hero-page p {
  font-size: 1.2rem;
  color: #e0e7ff;
  max-width: 750px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.hardware-hero-page .btn-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   8. Electronics Brand Partner Banner
   -------------------------------------------------------------------------- */
.brand-partner-section {
  padding: 60px 0 70px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
  position: relative;
}

.brand-partner-section .section-header {
  margin-bottom: 35px;
}

.brand-slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 15px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.brand-slider-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: brandScroll 70s linear infinite;
}

.brand-slider-track:hover {
  animation-play-state: paused;
}

@keyframes brandScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.brand-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 24px;
  min-width: 150px;
  height: 82px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.brand-logo-card:hover {
  transform: translateY(-4px) scale(1.04);
  border-color: #0047ab;
  box-shadow: 0 10px 24px rgba(0, 71, 171, 0.12);
}

.brand-logo-card img {
  max-height: 38px;
  max-width: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand-logo-card span {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   9. Main Category Cards Enhancement
   -------------------------------------------------------------------------- */
.hardware-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.hardware-chip {
  font-size: 0.78rem;
  font-weight: 500;
  background: #f1f5f9;
  color: #334155;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

.hardware-card-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0047ab;
  background: #e6f0ff;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-view-subcategories {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0047ab;
  color: #ffffff !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-view-subcategories:hover {
  background: #003380;
  color: #ffffff !important;
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(0, 71, 171, 0.3);
}

/* --------------------------------------------------------------------------
   10. Dedicated Sub-Categories Page Styles (Base)
   -------------------------------------------------------------------------- */
.subcat-hero-page {
  background: linear-gradient(135deg, #091e3a 0%, #0d47a1 60%, #1976d2 100%);
  color: #ffffff;
  padding: 65px 0 50px;
  text-align: center;
  position: relative;
}

.subcat-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #bfdbfe;
  margin-bottom: 16px;
}

.subcat-breadcrumb a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.subcat-breadcrumb a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.subcat-breadcrumb span {
  color: #93c5fd;
}

.subcat-hero-page h1 {
  font-size: 2.7rem;
  font-weight: 800;
  color: #ffffff !important;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.subcat-hero-page p {
  font-size: 1.15rem;
  color: #e0e7ff;
  max-width: 820px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.subcat-hero-btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Category Quick Nav Bar - Sticky at Top */
.subcat-sticky-nav {
  position: sticky;
  top: 0;
  z-index: 950;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  margin-bottom: 8px;
  transition: all 0.25s ease;
}

.subcat-nav-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.subcat-nav-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  flex: 1;
}

.subcat-nav-scroll::-webkit-scrollbar {
  height: 4px;
}

.subcat-nav-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.subcat-nav-pill {
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 30px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.subcat-nav-pill:hover,
.subcat-nav-pill.active {
  background: #0047ab;
  color: #ffffff;
  border-color: #0047ab;
  box-shadow: 0 2px 8px rgba(0, 71, 171, 0.2);
}

.subcat-search-wrap {
  position: relative;
  min-width: 270px;
}

.subcat-search-wrap input {
  width: 100%;
  padding: 10px 16px 10px 38px;
  border: 1px solid #cbd5e1;
  border-radius: 30px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #f8fafc;
  transition: all 0.2s;
}

.subcat-search-wrap input:focus {
  outline: none;
  background: #ffffff;
  border-color: #0047ab;
  box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.15);
}

.subcat-search-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Sub-Category Groups */
.subcategory-group-section {
  padding: 35px 0 20px;
  scroll-margin-top: 80px;
  animation: fadeInGroup 0.25s ease-out;
}

@keyframes fadeInGroup {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subcategory-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e2e8f0;
}

.subcat-group-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.subcat-group-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #e6f0ff;
  color: #0047ab;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
}

.subcat-group-info h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.subcat-group-info p {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0;
}

.subcat-group-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.subcat-group-badge {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 30px;
}

/* Sub-Category Grid & Cards */
.subcat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 35px;
}

.subcat-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.subcat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.1);
  border-color: #93c5fd;
}

.subcat-card-img-wrap {
  position: relative;
  height: 185px;
  width: 100%;
  overflow: hidden;
  background: #e2e8f0;
}

.subcat-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.subcat-card:hover .subcat-card-img-wrap img {
  transform: scale(1.07);
}

.subcat-badge-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.subcat-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.subcat-card-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.subcat-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.35;
}

.subcat-card-specs {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 18px;
  flex: 1;
}

.subcat-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.subcat-avail-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.subcat-quote-btn {
  background: #0047ab;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.subcat-quote-btn:hover {
  background: #003380;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 71, 171, 0.25);
}

/* --------------------------------------------------------------------------
   11. Responsive Media Queries (Cascades over all base rules above)
   -------------------------------------------------------------------------- */
@media (min-width: 993px) and (max-width: 1240px) {
  .hardware-filters {
    gap: 8px;
  }

  .hardware-filter-btn {
    padding: 8px 14px;
    font-size: 0.84rem;
    gap: 6px;
  }
}

@media (max-width: 992px) {
  .hero-portal {
    padding: 60px 0 40px;
  }

  .hero-portal-title {
    font-size: 2.4rem;
  }

  .entity-gateway-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .entity-card {
    padding: 30px 24px;
  }

  .hardware-contact-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .entity-switcher-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Mobile & Tablet Responsive Filter Bar on Hardware Page */
  .hardware-filters-wrapper {
    position: relative;
    margin: 20px 0 32px 0;
    width: 100%;
    overflow: hidden;
  }

  .hardware-filters {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 6px 4px 14px 4px;
    gap: 10px;
    scroll-snap-type: x proximity;
  }

  .hardware-filters::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .hardware-filter-btn {
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 9px 16px;
    font-size: 0.86rem;
    min-height: 42px;
  }

  /* Comprehensive Catalog Page Sticky Nav & Subcat */
  .subcat-sticky-nav {
    padding: 10px 0;
  }

  .subcat-nav-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .subcat-search-wrap {
    width: 100%;
    min-width: 0;
  }

  .subcat-nav-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 2px 6px 2px;
    gap: 8px;
    scroll-snap-type: x proximity;
  }

  .subcat-nav-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .subcat-nav-pill {
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 7px 14px;
    font-size: 0.82rem;
    min-height: 36px;
    gap: 6px;
  }
}

@media (max-width: 768px) {
  .hero-portal-title {
    font-size: 2rem;
  }

  .hero-portal-subtitle {
    font-size: 1rem;
  }

  .entity-card-title {
    font-size: 1.5rem;
  }

  .entity-card-header {
    flex-direction: column;
    gap: 12px;
  }

  .entity-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-entity {
    width: 100%;
  }

  .modal-form-row {
    grid-template-columns: 1fr;
  }

  .hardware-hero-page h1 {
    font-size: 2rem;
  }

  .hardware-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
  }

  /* Subcat Hero on Tablet */
  .subcat-hero-page {
    padding: 50px 0 38px;
  }

  .subcat-hero-page h1 {
    font-size: 2.1rem;
  }

  .subcat-hero-page .btn-group,
  .subcat-hero-btns {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 360px !important;
    margin: 0 auto !important;
    gap: 12px !important;
  }

  .subcat-hero-page .btn-group .btn-entity,
  .subcat-hero-btns .btn-entity {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 12px 18px !important;
    font-size: 0.92rem !important;
  }

  /* Subcategory Group Headers on Tablet & Mobile */
  .subcategory-group-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .subcat-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 600px) {
  /* Hardware Electronics Section */
  .hardware-section {
    padding: 45px 0;
  }

  .hardware-filters-wrapper {
    margin: 14px -16px 24px -16px;
    width: calc(100% + 32px);
  }

  .hardware-filters {
    padding: 6px 16px 14px 16px;
    gap: 8px;
  }

  .hardware-filter-btn {
    padding: 8px 14px;
    font-size: 0.82rem;
    min-height: 40px;
    gap: 6px;
  }

  .hardware-filter-btn i {
    font-size: 0.8rem;
  }

  .hardware-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hardware-img-wrap {
    height: 190px;
  }

  .hardware-card-body {
    padding: 18px 16px;
  }

  .hardware-card-chips {
    gap: 6px;
  }

  .hardware-chip {
    font-size: 0.72rem;
    padding: 3px 8px;
  }

  /* Comprehensive Catalog Page Styles for Mobile */
  .subcat-hero-page {
    padding: 40px 16px 32px;
  }

  .subcat-hero-page h1 {
    font-size: 1.75rem !important;
    line-height: 1.25;
    margin-bottom: 12px;
  }

  .subcat-hero-page p {
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 22px;
  }

  .subcat-breadcrumb {
    font-size: 0.78rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 14px;
  }

  .subcat-sticky-nav {
    padding: 8px 0 10px;
    margin-bottom: 4px;
  }

  .subcat-nav-controls {
    gap: 8px;
    width: 100%;
  }

  .subcat-search-wrap {
    width: 100%;
    min-width: 0;
  }

  .subcat-search-wrap input {
    height: 42px;
    font-size: 0.88rem;
    padding: 8px 14px 8px 38px;
    border-radius: 24px;
  }

  .subcat-nav-scroll {
    padding: 2px 0 6px 0;
    gap: 6px;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .subcat-nav-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .subcat-nav-pill {
    padding: 6px 12px;
    font-size: 0.78rem;
    min-height: 34px;
    gap: 5px;
    border-radius: 20px;
  }

  .subcategory-group-section {
    padding: 24px 0 16px;
    scroll-margin-top: 110px;
  }

  .subcategory-group-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .subcat-group-title-wrap {
    gap: 12px;
    align-items: flex-start;
  }

  .subcat-group-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    font-size: 1.15rem;
    border-radius: 12px;
    margin-top: 2px;
  }

  .subcat-group-info h2 {
    font-size: 1.35rem;
    line-height: 1.25;
    margin-bottom: 4px;
  }

  .subcat-group-info p {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .subcat-group-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
  }

  .subcat-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 26px;
  }

  .subcat-card {
    border-radius: 14px;
  }

  .subcat-card-img-wrap {
    height: 185px;
  }

  .subcat-card-body {
    padding: 16px 14px;
  }

  .subcat-card-title {
    font-size: 1.05rem;
    margin-bottom: 6px;
  }

  .subcat-card-specs {
    font-size: 0.84rem;
    line-height: 1.45;
    margin-bottom: 14px;
  }

  .subcat-card-footer {
    padding-top: 12px;
    gap: 8px;
  }

  .subcat-avail-tag {
    font-size: 0.72rem;
    padding: 4px 8px;
    white-space: nowrap;
  }

  .subcat-quote-btn {
    padding: 8px 14px;
    font-size: 0.82rem;
    min-height: 38px;
    white-space: nowrap;
  }

  /* Brands Partner Banner on Mobile */
  .brand-partner-section {
    padding: 40px 0;
  }

  .brand-slider-track {
    gap: 16px;
  }

  .brand-logo-card {
    min-width: 125px;
    height: 72px;
    padding: 10px 16px;
    border-radius: 10px;
  }

  .brand-logo-card img {
    max-height: 30px;
    max-width: 90px;
  }

  .brand-logo-card span {
    font-size: 0.65rem;
  }

  /* Quote Modal on Mobile */
  .modal-overlay {
    padding: 12px;
  }

  .quote-modal {
    border-radius: 16px;
    max-height: 92vh;
  }

  .modal-header {
    padding: 16px 18px;
  }

  .modal-header h3 {
    color: #ffffff !important;
    font-size: 1.15rem;
  }

  .modal-body {
    padding: 16px 14px 20px;
  }

  .modal-form-group {
    margin-bottom: 12px;
  }

  .modal-form-group input,
  .modal-form-group select,
  .modal-form-group textarea {
    font-size: 16px;
    padding: 10px 12px;
  }

  .modal-form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .modal-submit-btn {
    min-height: 46px;
    font-size: 0.95rem;
    margin-top: 6px;
  }
}

@media (max-width: 380px) {
  .subcat-hero-page h1 {
    font-size: 1.55rem !important;
  }

  .subcat-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .subcat-avail-tag {
    align-self: flex-start;
  }

  .subcat-quote-btn {
    width: 100%;
    justify-content: center;
  }
}

