/* 
 * Microchip Distributor Website - Main Styles
 * Based on design guidelines with B2B industrial electronics aesthetic
 */

/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Variables */
:root {
  --primary-blue: #0066CC;
  --secondary-blue: #00A0E3;
  --light-blue: #E6F2FA;
  --dark-gray: #333333;
  --medium-gray: #666666;
  --light-gray: #F5F5F5;
  --white: #FFFFFF;
  --success-green: #00A651;
  --warning-orange: #FF8C00;
  --error-red: #DC3545;
  
  --font-primary: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-size-xs: 0.75rem; /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem; /* 16px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.25rem; /* 20px */
  --font-size-2xl: 1.5rem; /* 24px */
  --font-size-3xl: 1.75rem; /* 28px */
  --font-size-4xl: 2rem; /* 32px */
  --font-size-5xl: 2.5rem; /* 40px */
  
  --border-radius: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-2xl: 64px;
  
  --container-max-width: 1200px;
  --grid-gutter: 30px;
}

/* Base Styles */
body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
  font-weight: 600;
}

h1 {
  font-size: var(--font-size-5xl);
}

h2 {
  font-size: var(--font-size-4xl);
}

h3 {
  font-size: var(--font-size-3xl);
}

h4 {
  font-size: var(--font-size-2xl);
}

p {
  margin-bottom: var(--spacing-sm);
}

a {
  text-decoration: none;
  color: var(--primary-blue);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-blue);
}

img {
  max-width: 100%;
  height: auto;
}

/* Header Styles */
.main-header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm);
}

.logo h1 {
  font-size: var(--font-size-xl);
  color: var(--primary-blue);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--dark-gray);
  margin: 3px 0;
  transition: 0.3s;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: var(--spacing-lg);
}

.nav-menu a {
  color: var(--dark-gray);
  font-weight: 500;
  position: relative;
  padding: var(--spacing-xs) 0;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-blue);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-blue);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) calc(var(--spacing-md) * 1.5);
  border-radius: var(--border-radius-md);
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: var(--font-size-base);
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #0055AA;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-blue);
  border: 1px solid var(--primary-blue);
}

.btn-secondary:hover {
  background-color: var(--light-blue);
  transform: translateY(-2px);
}

.btn-text {
  color: var(--primary-blue);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font-weight: 600;
}

.btn-text:hover {
  text-decoration: underline;
}

/* Main Content Sections */
.main-content {
  min-height: calc(100vh - 200px);
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: var(--white);
  padding: var(--spacing-2xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 20%);
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.hero-banner h1 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
}

.hero-banner p {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-lg);
  color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

/* Why Choose Us Section */
.why-choose-us {
  padding: var(--spacing-2xl) 0;
  background-color: var(--light-gray);
}

.why-choose-us h2 {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.feature-card {
  background-color: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.feature-card .icon {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--spacing-md);
}

.feature-card h3 {
  margin-bottom: var(--spacing-sm);
}

/* Core Products Section */
.core-products {
  padding: var(--spacing-2xl) 0;
}

.core-products h2 {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.product-category {
  background-color: var(--white);
  border: 1px solid #eee;
  border-radius: var(--border-radius-md);
  padding: var(--spacing-lg);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.product-category .icon {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--spacing-md);
}

.product-category h3 {
  margin-bottom: var(--spacing-sm);
}

/* Solutions & Applications */
.solutions-applications {
  padding: var(--spacing-2xl) 0;
  background-color: var(--light-gray);
}

.solutions-applications h2 {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-md);
}

.solution-card {
  background-color: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.solution-card h3 {
  margin-bottom: var(--spacing-sm);
}

/* Latest News */
.latest-news {
  padding: var(--spacing-2xl) 0;
}

.latest-news h2 {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.news-item {
  background-color: var(--white);
  border: 1px solid #eee;
  border-radius: var(--border-radius-md);
  padding: var(--spacing-lg);
}

.news-item h3 {
  margin-bottom: var(--spacing-sm);
}

.news-item .date {
  color: var(--medium-gray);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-sm);
}

/* Final CTA */
.final-cta {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: var(--white);
  padding: var(--spacing-2xl) 0;
  text-align: center;
}

.final-cta h2 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
}

.final-cta p {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-lg);
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.main-footer {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: var(--spacing-2xl) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
  color: var(--secondary-blue);
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-lg);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--spacing-xs);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-section a:hover {
  color: var(--secondary-blue);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--font-size-sm);
}

/* Fixed Contact Panel */
.fixed-contact {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background-color: var(--primary-blue);
  color: white;
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.fixed-contact .contact-item {
  font-size: var(--font-size-sm);
}

/* Breadcrumb */
.breadcrumb {
  padding: var(--spacing-sm) 0;
  color: var(--medium-gray);
  font-size: var(--font-size-sm);
}

.breadcrumb a {
  color: var(--primary-blue);
}

.breadcrumb span {
  margin: 0 var(--spacing-xs);
  color: var(--medium-gray);
}

/* Table Styles */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-md) 0;
  background-color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: var(--spacing-sm);
  text-align: left;
  border-bottom: 1px solid #eee;
}

.data-table th {
  background-color: var(--primary-blue);
  color: white;
  font-weight: 600;
}

.data-table tr:nth-child(even) {
  background-color: var(--light-gray);
}

.data-table tr:hover {
  background-color: rgba(0, 102, 204, 0.05);
}

/* Utilities */
.text-center {
  text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

/* Responsive Adjustments */
@media (max-width: 1023px) {
  :root {
    --font-size-5xl: 2rem; /* 32px */
    --font-size-4xl: 1.75rem; /* 28px */
  }
  
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: var(--spacing-md) 0;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu li {
    margin: var(--spacing-sm) 0;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .features-grid,
  .products-grid,
  .solutions-grid,
  .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-5xl: 1.75rem; /* 28px */
    --font-size-4xl: 1.5rem; /* 24px */
    --font-size-3xl: 1.25rem; /* 20px */
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero-banner {
    padding: var(--spacing-xl) 0;
  }
  
  .hero-banner h1 {
    font-size: var(--font-size-4xl);
  }
  
  .features-grid,
  .products-grid,
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  
  .final-cta h2 {
    font-size: var(--font-size-3xl);
  }
  
  .fixed-contact {
    bottom: 10px;
    right: 10px;
    padding: var(--spacing-sm);
    font-size: var(--font-size-xs);
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-5xl: 1.5rem; /* 24px */
    --font-size-4xl: 1.25rem; /* 20px */
  }

  .hero-cta .btn {
    width: 100%;
    margin-bottom: var(--spacing-sm);
  }

  .breadcrumb {
    font-size: var(--font-size-xs);
  }

  .data-table {
    display: block;
    overflow-x: auto;
  }
}

/* ================================
   Modern List Pages Styling
   ================================ */

/* 1. Page Header Enhancement */
.page-header {
  background: linear-gradient(135deg, #E6F2FA 0%, #fff 100%);
  padding: 3rem 0;
  text-align: center;
  border-bottom: 3px solid var(--primary-blue);
}

.page-header h1 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.125rem;
  color: var(--medium-gray);
  max-width: 800px;
  margin: 0 auto;
}

/* 2. Overview Sections */
.products-overview,
.solutions-overview,
.mcus-overview,
.support-overview {
  padding: 3rem 0;
  background-color: #fff;
}

.overview-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* 3. Modern Card Grids */
.categories-grid,
.families-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.category-card,
.family-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #f0f0f0;
  position: relative;
  overflow: hidden;
}

.category-card::before,
.family-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-blue), var(--secondary-blue));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card:hover,
.family-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 102, 204, 0.15);
  border-color: var(--primary-blue);
}

.category-card:hover::before,
.family-card:hover::before {
  opacity: 1;
}

.category-card h3,
.family-card h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.category-card p,
.family-card p {
  color: var(--medium-gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.category-card ul,
.family-card ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.category-card ul li,
.family-card ul li {
  padding: 0.5rem 0;
  color: var(--dark-gray);
  position: relative;
  padding-left: 1.5rem;
}

.category-card ul li::before,
.family-card ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-weight: bold;
}

/* 4. Enhanced Feature Grids */
.product-features,
.solution-benefits,
.mcu-features {
  padding: 3rem 0;
  background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.features-grid .feature-item {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.features-grid .feature-item:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.features-grid .feature-item h3 {
  color: var(--primary-blue);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.features-grid .feature-item p {
  color: var(--medium-gray);
  line-height: 1.6;
}

/* 5. CTA Section Enhancement */
.cta-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  padding: 4rem 0;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 40%;
  height: 200%;
  background: rgba(255, 255, 255, 0.05);
  transform: rotate(15deg);
}

.cta-section h2 {
  color: white;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cta-section p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

.cta-section .btn {
  margin: 0 0.5rem;
  position: relative;
  z-index: 1;
}

.cta-section .btn-secondary {
  background: white;
  color: var(--primary-blue);
  border: none;
}

.cta-section .btn-secondary:hover {
  background: var(--light-blue);
}

/* 6. Selection Guide Styling */
.selection-guide {
  padding: 3rem 0;
  background-color: #f8f9fa;
}

.selection-content {
  max-width: 1000px;
  margin: 0 auto;
}

.selection-criteria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.criteria-item {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.criteria-item h4 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.criteria-item ul {
  list-style: none;
}

.criteria-item ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.criteria-item ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success-green);
  font-weight: bold;
}

/* 7. News and Insights Sections */
.news-categories,
.industry-insights,
.press-releases,
.events-webinars {
  padding: 3rem 0;
}

.news-categories {
  background-color: #f8f9fa;
}

.insights-grid,
.press-grid,
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.insight-card,
.press-item,
.event-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.insight-card:hover,
.press-item:hover,
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.news-date,
.press-date,
.event-date {
  color: var(--medium-gray);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--light-blue);
  border-radius: 4px;
}

.insight-card h3,
.press-item h3,
.event-card h3 {
  color: var(--primary-blue);
  margin-bottom: 0.75rem;
}

.insight-card .date {
  color: var(--medium-gray);
  font-size: var(--font-size-sm);
  margin-bottom: 1rem;
  display: block;
}

/* 8. Newsletter Section */
.newsletter {
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--light-blue) 0%, #fff 100%);
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  margin: 2rem 0 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 250px;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-base);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.newsletter .disclaimer {
  font-size: var(--font-size-sm);
  color: var(--medium-gray);
  margin-top: 1rem;
}

/* 9. Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding: 2rem 0;
}

.pagination span {
  color: var(--medium-gray);
  font-weight: 600;
}

/* 10. Support Resource Sections */
.support-resources,
.documentation-library,
.development-tools,
.training-resources {
  padding: 3rem 0;
}

.support-resources {
  background-color: #f8f9fa;
}

.development-tools {
  background-color: #f8f9fa;
}

.resources-grid,
.docs-grid,
.tools-grid,
.training-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.resource-card,
.doc-card,
.tool-card,
.training-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.resource-card:hover,
.doc-card:hover,
.tool-card:hover,
.training-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  border-left-color: var(--primary-blue);
}

.resource-card h3,
.doc-card h3,
.tool-card h3,
.training-card h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* 11. Responsive Optimizations for Modern List Pages */
@media (max-width: 768px) {
  .categories-grid,
  .families-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .page-header {
    padding: 2rem 0;
  }

  .category-card,
  .family-card {
    padding: 1.5rem;
  }

  .selection-criteria {
    grid-template-columns: 1fr;
  }

  .insights-grid,
  .press-grid,
  .events-grid,
  .resources-grid,
  .docs-grid,
  .tools-grid,
  .training-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    width: 100%;
  }

  .cta-section {
    padding: 3rem 0;
  }

  .cta-section .btn {
    display: block;
    margin: 0.5rem auto;
  }
}

/* ================================
   Detail Pages Modern Styling
   ================================ */

/* 1. Enhanced Page Header for Detail Pages */
.detail-page-header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  padding: 4rem 0 3rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.detail-page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  transform: rotate(15deg);
}

.detail-page-header .container {
  position: relative;
  z-index: 1;
}

.detail-page-header h1 {
  color: white;
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.detail-page-header p {
  font-size: 1.125rem;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.header-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 2. Quick Navigation Sticky Bar */
.quick-nav {
  position: sticky;
  top: 70px;
  background: white;
  border-bottom: 2px solid var(--light-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 999;
  transition: all 0.3s ease;
}

.quick-nav.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quick-nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.quick-nav li {
  margin: 0;
}

.quick-nav a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--dark-gray);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.quick-nav a:hover,
.quick-nav a.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
  background: var(--light-blue);
}

/* 3. Modular Section Cards */
.detail-section {
  padding: 3rem 0;
  background: white;
}

.detail-section:nth-child(even) {
  background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.section-card {
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
}

.section-card:hover {
  box-shadow: 0 8px 24px rgba(0, 102, 204, 0.15);
  transform: translateY(-4px);
}

.section-card h2 {
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  padding-top: 0.5rem;
}

.section-card h3 {
  color: var(--dark-gray);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.375rem;
}

.section-card p {
  line-height: 1.8;
  color: var(--medium-gray);
}

/* 4. Modern Table Styling with Enhanced UI */
.table-container {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin: 2rem 0;
}

.table-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--light-blue) 0%, #fff 100%);
  border-bottom: 2px solid var(--primary-blue);
}

.table-header h3 {
  color: var(--primary-blue);
  margin: 0 0 0.5rem 0;
  font-size: 1.375rem;
}

.table-header p {
  color: var(--medium-gray);
  margin: 0;
  font-size: 0.9rem;
}

.table-controls {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  flex-wrap: wrap;
  align-items: center;
}

.search-box {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 0.625rem 1rem 0.625rem 2.5rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.search-box::before {
  content: '🔍';
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
}

.filter-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.filter-btn.active {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}

.specs-table,
.bom-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table thead,
.bom-table thead {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
}

.specs-table th,
.bom-table th {
  padding: 1rem;
  text-align: left;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.specs-table td,
.bom-table td {
  padding: 1rem;
  border-bottom: 1px solid #e9ecef;
  color: var(--dark-gray);
  font-size: 0.9rem;
}

.specs-table tbody tr,
.bom-table tbody tr {
  transition: background-color 0.2s ease;
}

.specs-table tbody tr:hover,
.bom-table tbody tr:hover {
  background: rgba(0, 102, 204, 0.03);
}

.specs-table tbody tr:nth-child(even),
.bom-table tbody tr:nth-child(even) {
  background: #f8f9fa;
}

.specs-table tbody tr:nth-child(even):hover,
.bom-table tbody tr:nth-child(even):hover {
  background: rgba(0, 102, 204, 0.05);
}

/* Table badges for highlighting */
.table-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.table-badge.featured {
  background: #e7f5ff;
  color: var(--primary-blue);
}

.table-badge.new {
  background: #d3f9d8;
  color: var(--success-green);
}

.table-badge.popular {
  background: #fff3e0;
  color: var(--warning-orange);
}

/* 5. Feature and Benefit Card Grids with Top Accent Bars */
.features-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.feature-benefit-card {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border-top: 4px solid transparent;
}

.feature-benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
  border-radius: 8px 8px 0 0;
}

.feature-benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 102, 204, 0.15);
}

.feature-benefit-card h4 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
  font-size: 1.125rem;
  margin-top: 0.5rem;
}

.feature-benefit-card p {
  color: var(--medium-gray);
  line-height: 1.7;
  margin: 0;
}

.feature-benefit-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}

.feature-benefit-card ul li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
  color: var(--dark-gray);
  line-height: 1.6;
}

.feature-benefit-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success-green);
  font-weight: bold;
  font-size: 1.125rem;
}

/* 6. FAQ Accordion Styling */
.faq-section {
  margin: 2rem 0;
}

.faq-item {
  background: white;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
  padding: 1.25rem 3rem 1.25rem 1.5rem;
  background: white;
  cursor: pointer;
  font-weight: 600;
  color: var(--dark-gray);
  position: relative;
  transition: all 0.3s ease;
  user-select: none;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary-blue);
  transition: transform 0.3s ease;
}

.faq-question:hover {
  background: var(--light-blue);
  color: var(--primary-blue);
}

.faq-item.active .faq-question {
  color: var(--primary-blue);
  background: var(--light-blue);
  border-bottom: 1px solid rgba(0, 102, 204, 0.2);
}

.faq-item.active .faq-question::after {
  content: '−';
  transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 1.25rem 1.5rem;
}

.faq-answer p {
  color: var(--medium-gray);
  line-height: 1.7;
  margin: 0;
}

.faq-answer ul {
  margin: 0.75rem 0 0 0;
  padding-left: 1.5rem;
}

.faq-answer ul li {
  color: var(--dark-gray);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* 7. Product Card Grid with Spec Lists */
.products-showcase {
  margin: 2rem 0;
}

.product-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-showcase-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #f0f0f0;
}

.product-showcase-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0, 102, 204, 0.2);
  border-color: var(--primary-blue);
}

.product-card-header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  padding: 1.5rem;
  color: white;
}

.product-card-header h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  color: white;
}

.product-card-header p {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.9;
  color: white;
}

.product-card-body {
  padding: 1.5rem;
}

.product-specs-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.product-specs-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.product-specs-list li:last-child {
  border-bottom: none;
}

.spec-label {
  color: var(--medium-gray);
  font-weight: 500;
}

.spec-value {
  color: var(--dark-gray);
  font-weight: 600;
}

.product-card-footer {
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  display: flex;
  gap: 0.75rem;
  border-top: 1px solid #e9ecef;
}

.product-card-footer .btn {
  flex: 1;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  text-align: center;
}

/* 8. Selection Guide Criteria Cards */
.selection-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.criteria-card {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--primary-blue);
  transition: all 0.3s ease;
}

.criteria-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  transform: translateX(4px);
}

.criteria-card h4 {
  color: var(--primary-blue);
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.criteria-card h4::before {
  content: '▶';
  color: var(--secondary-blue);
  font-size: 0.875rem;
}

.criteria-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.criteria-card ul li {
  padding: 0.625rem 0 0.625rem 1.75rem;
  position: relative;
  color: var(--dark-gray);
  line-height: 1.6;
  font-size: 0.95rem;
}

.criteria-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success-green);
  font-weight: bold;
  font-size: 1.125rem;
}

/* 9. Technical Resource Download Cards */
.resources-download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.resource-download-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.resource-download-card:hover {
  border-left-color: var(--primary-blue);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.resource-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.resource-content {
  flex: 1;
}

.resource-content h5 {
  margin: 0 0 0.5rem 0;
  color: var(--primary-blue);
  font-size: 1rem;
}

.resource-content p {
  margin: 0 0 0.75rem 0;
  color: var(--medium-gray);
  font-size: 0.875rem;
  line-height: 1.5;
}

.resource-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--medium-gray);
}

.resource-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* 10. Expert Insights Quote-Style Blocks */
.expert-insights {
  margin: 3rem 0;
}

.insight-quote {
  background: linear-gradient(135deg, var(--light-blue) 0%, #fff 100%);
  border-left: 6px solid var(--primary-blue);
  border-radius: 8px;
  padding: 2rem;
  margin: 1.5rem 0;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
}

.insight-quote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--primary-blue);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.insight-quote-text {
  font-size: 1.125rem;
  color: var(--dark-gray);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.insight-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.125rem;
}

.author-info h6 {
  margin: 0;
  color: var(--primary-blue);
  font-size: 0.95rem;
  font-weight: 600;
}

.author-info p {
  margin: 0;
  color: var(--medium-gray);
  font-size: 0.875rem;
}

/* 11. Mobile Responsive Optimizations for Detail Pages */
@media (max-width: 1024px) {
  .quick-nav ul {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .quick-nav li {
    flex-shrink: 0;
  }

  .features-benefits-grid,
  .product-cards-grid,
  .selection-guide-grid,
  .resources-download-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 768px) {
  .detail-page-header {
    padding: 3rem 0 2rem;
  }

  .detail-page-header h1 {
    font-size: 1.75rem;
  }

  .quick-nav {
    top: 60px;
  }

  .quick-nav a {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .section-card {
    padding: 1.5rem;
  }

  .section-card h2 {
    font-size: 1.5rem;
  }

  .table-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    width: 100%;
  }

  .filter-group {
    width: 100%;
  }

  /* Mobile table card-ification */
  .specs-table thead,
  .bom-table thead {
    display: none;
  }

  .specs-table tbody tr,
  .bom-table tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  }

  .specs-table td,
  .bom-table td {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
  }

  .specs-table td:last-child,
  .bom-table td:last-child {
    border-bottom: none;
  }

  .specs-table td::before,
  .bom-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--primary-blue);
    flex-shrink: 0;
    width: 45%;
  }

  .features-benefits-grid,
  .product-cards-grid,
  .selection-guide-grid,
  .resources-download-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-card-footer {
    flex-direction: column;
  }

  .product-card-footer .btn {
    width: 100%;
  }

  .insight-quote {
    padding: 1.5rem;
  }

  .insight-quote-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .header-badges {
    flex-direction: column;
    align-items: center;
  }

  .badge {
    width: 100%;
    text-align: center;
  }

  .section-card {
    padding: 1.25rem;
  }

  .feature-benefit-card {
    padding: 1.5rem;
  }

  .product-showcase-card {
    margin-bottom: 1rem;
  }
}