/* ========================================
   PRODUCT HUB TEMPLATE MATCH (PH_template)
   ======================================== */

#product-hub-section .menu-content-area.product-hub-content-area {
  background: #ffffff;
  padding: var(--spacing-xl) var(--spacing-md) var(--spacing-2xl);
}

#product-hub-section {
  background: #ffffff !important;
  margin-bottom: 40px;
  padding-bottom: 10px;
}

#product-hub-section .menu-item-header {
  background: #ffffff !important;
  backdrop-filter: none;
}

#product-hub-section .menu-item-header .menu-label {
  color: #111111 !important;
}

.product-layout-box {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
  padding: var(--spacing-lg) var(--spacing-md) var(--spacing-xl);

}

.product-hub-hero,
.core-paradigms-section,
.product-lines-section {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.product-hub-hero {
  padding: 0;
}

.product-hub-header {
  margin-bottom: 26px;
}

.product-hub-hero-image {
  display: block;
  width: 100%;
  max-width: 930px;
  height: auto;
}

.product-hub-description {
  margin-top: 0;
  background: transparent;
  padding: 0;
}

.product-hub-description p {
  color: #111111;
  line-height: 1.48;
  margin: 0 0 22px;
  text-align: center;
}

.product-hub-description p strong {
  color: #111111;
  font-weight: 800;
}

.product-hub-highlight {
  background: #dcdcdc;
  border: 0;
  border-radius: 4px;
  padding: 16px 18px;
}

.core-paradigms-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: start;
  margin-top: 58px;
}

.paradigms-left h3 {
  margin: 0 0 14px;
  color: #111111;
  line-height: 1.08;
  font-weight: 800;
}

.paradigms-left p {
  color: #111111;
  line-height: 1.46;
  margin: 0 0 20px;
}

.paradigms-left p strong {
  color: #111111;
  font-weight: 800;
}

.paradigms-right {
  display: grid;
  gap: 16px;
}

.paradigm-card {
  background: #1f1f1f;
  border: 2px solid #5f5f5f;
  border-radius: 8px;
  padding: 16px 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.paradigm-card h4 {
  margin: 0 0 6px;
  color: #ffffff;
  line-height: 1.2;
  font-weight: 700;
}

.paradigm-card p {
  margin: 0;
  color: #f0f0f0;
  font-size: var(--font-size-base);
  line-height: 1.42;
}

.product-lines-section {
  margin-top: 26px;
}

.product-lines-section h3 {
  color: #111111;
  text-align: center;
  line-height: 1.1;
  margin: 0 0 24px;
  font-weight: 800;
}

.product-cards-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  background: #1f1f1f;
  border: 2px solid #5f5f5f;
  border-radius: 0;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.product-card:nth-child(-n + 3) {
  grid-column: span 2;
}

.product-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.product-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.product-card-header {
  margin-bottom: 8px;
  border: 0;
  padding: 0;
}

.product-card-header h4 {
  margin: 0;
  font-size: clamp(0.9rem, 0.95vw, 1.05rem);
  color: #ffffff;
  line-height: 1.26;
  font-weight: 700;
}

.product-card-content {
  flex: 1;
  margin-bottom: 10px;
}

.product-card-content p {
  margin: 0;
  color: #f1f1f1;
  font-size: var(--font-size-base);
  line-height: 1.34;
}

.product-card-link {
  align-self: flex-end;
  color: #ffffff;
  font-size: var(--font-size-base);
  font-weight: 500;
  text-decoration: none;
  border: 0;
  padding: 0;
  transition: color 0.2s ease;
}

.product-card-link::before {
  content: '\25B7\00A0';
  opacity: 1;
}

.product-card:hover,
.paradigm-card:hover,
.product-card-link:hover {
  color: #ffffff;
}

.paradigm-card:hover {
  transform: translateY(-4px);
  background: #141414;
  border-color: #2fb6ff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.product-card:hover {
  transform: translateY(-4px);
  background: #141414;
  border-color: #2fb6ff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.product-card-link:hover {
  color: #2fb6ff;
}

@media (max-width: 1024px) {
  .product-layout-box {
    width: 100%;
    max-width: none;
    padding: var(--spacing-md);
  }

  .core-paradigms-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card,
  .product-card:nth-child(-n + 3),
  .product-card:nth-child(4),
  .product-card:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  #product-hub-section .menu-content-area.product-hub-content-area {
    padding: 0 10px !important;
  }

  .product-layout-box {
    width: 100% !important;
    padding: 0 20px !important;
  }

  #product-hub-section {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

@media (max-width: 640px) {
  #product-hub-section .menu-content-area.product-hub-content-area {
    padding: var(--spacing-md) var(--spacing-sm) var(--spacing-lg);
  }

  .product-layout-box {
    padding: var(--spacing-sm);
  }

  .product-hub-description p {
    text-align: left;
  }

  .product-hub-highlight {
    padding: 12px;
  }

  .product-cards-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 0;
  }
}
