/* ========================================
   WEBSITE FIXES - Unified Alignment & Clean Structure
   Date: 2026-03-26
   ======================================== */

/* ========================================
   1. UNIFIED IMAGE ALIGNMENT
   ======================================== */

/* All product images unified height */
.product-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 30px auto;
  max-width: 1000px;
  padding: 0 20px;
}

.product-gallery-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  aspect-ratio: auto;
}

.product-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Responsive product gallery */
@media (max-width: 1024px) {
  .product-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .product-gallery {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   2. PRODUCT SHOWCASE CLEANUP
   ======================================== */

.product-showcase {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.product-main-category {
  background: var(--glass-30);
  backdrop-filter: var(--blur-sm);
  border: 1px solid var(--border-30);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.category-header {
  text-align: center;
  margin-bottom: var(--space-md);
}

.category-header h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.product-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

@media (max-width: 768px) {
  .product-sub-grid {
    grid-template-columns: 1fr;
  }
}

.product-type-card {
  background: var(--glass-50);
  backdrop-filter: var(--blur-sm);
  border: 1px solid var(--border-40);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: all 0.3s ease;
}

.product-type-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-50);
}

.type-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-20);
}

.type-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.type-header h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.product-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.product-list.horizontal {
  justify-content: center;
}

.product-list li {
  background: var(--glass-70);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-secondary);
  border: 1px solid var(--border-30);
  white-space: nowrap;
}

/* ========================================
   3. CAPABILITY CARDS UNIFIED
   ======================================== */

.capabilities {
  margin-top: var(--space-2xl);
}

.capabilities h3 {
  text-align: center;
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.capability-card {
  text-align: center;
}

.capability-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  background: linear-gradient(135deg, var(--glow-blue) 0%, var(--glow-purple) 100%);
  backdrop-filter: var(--blur-sm);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  border: 1px solid var(--border-30);
}

.capability-icon svg {
  width: 28px;
  height: 28px;
}

.capability-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.capability-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   4. STATS UNIFIED ALIGNMENT
   ======================================== */

.stats-container {
  background: var(--glass-20);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  border: 1px solid var(--border-20);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin: var(--space-2xl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.stat-item {
  text-align: center;
  padding: var(--space-md);
}

.stat-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-sm);
  background: linear-gradient(135deg, var(--glow-blue) 0%, var(--glow-purple) 100%);
  backdrop-filter: var(--blur-sm);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

.stat-icon svg {
  width: 28px;
  height: 28px;
}

.stat-value {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-value {
    font-size: 2rem;
  }
}

/* ========================================
   5. RD & PRODUCTION STATS UNIFIED
   ======================================== */

.rd-stats,
.production-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1280px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.rd-stats > div,
.production-stats > div {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.rd-stats > div:hover,
.production-stats > div:hover {
  transform: translateY(-3px);
  border-color: #3b82f6;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.rd-stat-number,
.prod-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1d4ed8;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.rd-stat-label,
.prod-stat-label {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .rd-stats,
  .production-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .rd-stats,
  .production-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ========================================
   6. SEO ARTICLES SECTION CLEANUP
   ======================================== */

.seo-articles {
  background: var(--glass-20);
  backdrop-filter: var(--blur-md);
  border-top: 1px solid var(--border-20);
  border-bottom: 1px solid var(--border-20);
  padding: 3rem 0;
}

.seo-articles h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.seo-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.seo-article-card {
  background: var(--glass-50);
  backdrop-filter: var(--blur-sm);
  border: 1px solid var(--border-30);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.seo-article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-50);
}

.seo-article-card h3 {
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.seo-article-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ========================================
   7. NAVIGATION MOBILE FIX
   ======================================== */

@media (max-width: 1024px) {
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: var(--nav-blur);
    -webkit-backdrop-filter: var(--nav-blur);
    border-bottom: 1px solid var(--border-40);
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    display: none;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-link {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
  }
  
  .nav-toggle {
    display: flex;
  }
}

@media (min-width: 1025px) {
  .nav-toggle {
    display: none;
  }
  
  .nav-menu {
    display: flex !important;
  }
}

/* ========================================
   8. HERO SECTION ALIGNMENT
   ======================================== */

.hero {
  min-height: auto;
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    min-height: 80vh;
    padding: 6rem 0;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 90%;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

.hero-highlight {
  font-size: 2.5rem;
  background: var(--gradient-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .hero-highlight {
    font-size: 3rem;
  }
}

/* ========================================
   9. SECTION HEADER UNIFIED
   ======================================== */

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-2xl);
}

.section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: var(--glass-50);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   10. GRID SYSTEM CONSOLIDATION
   ======================================== */

.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

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

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ========================================
   11. CARD COMPONENT UNIFIED
   ======================================== */

.card {
  background: var(--glass-30);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  border: 1px solid var(--border-30);
  border-radius: var(--radius-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-50);
}

/* ========================================
   12. NEWS CARDS UNIFIED
   ======================================== */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

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

@media (max-width: 640px) {
  .news-grid { grid-template-columns: 1fr; }
}

.news-card {
  background: var(--glass-30);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  border: 1px solid var(--border-30);
  border-radius: var(--radius-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.news-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
  overflow: hidden;
}

.news-content {
  padding: var(--space-md);
  background: var(--glass-70);
}

/* ========================================
   13. PRODUCT CARDS UNIFIED
   ======================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.product-card {
  background: var(--glass-30);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  border: 1px solid var(--border-30);
  border-radius: var(--radius-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  padding: 0;
}

.product-image {
  aspect-ratio: auto;
  background: linear-gradient(135deg, #e0e7ff, #ddd6fe);
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

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

.product-info {
  padding: var(--space-md);
  background: var(--glass-60);
}

/* ========================================
   14. CONTACT LAYOUT UNIFIED
   ======================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-xl);
}

@media (max-width: 968px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* ========================================
   15. FOOTER UNIFIED
   ======================================== */

.footer {
  background: var(--footer-bg);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  border-top: 1px solid var(--footer-border);
  padding: var(--space-2xl) 0 var(--space-xl);
  margin-top: var(--space-3xl);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (max-width: 968px) {
  .footer-content { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .footer-content { grid-template-columns: 1fr; }
}
/* ========================================
   UNIFIED NEWS & ARTICLES SECTION
   ======================================== */

/* News Header - Centered */
.news-header {
  text-align: center !important;
  align-items: center !important;
  margin-bottom: 2rem !important;
}

/* Remove large colored placeholders */
.news-image {
  aspect-ratio: auto !important;
  height: auto !important;
  display: none !important;
}

.news-placeholder,
.news-placeholder-2,
.news-placeholder-3 {
  display: none !important;
}

/* Unified News Card Style */
.news-card {
  background: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  transition: all 0.3s ease !important;
}

.news-card:hover {
  background: rgba(255, 255, 255, 0.7) !important;
  transform: translateY(-2px) !important;
}

.news-content {
  padding: 1.5rem !important;
}

.news-title {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.5rem !important;
  color: var(--primary) !important;
}

.news-excerpt {
  font-size: 0.9rem !important;
  color: var(--neutral-600) !important;
  line-height: 1.5 !important;
  margin-bottom: 1rem !important;
}

.news-link {
  color: var(--primary) !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}

/* Unified Grid - 5 columns for 3 news + 2 articles */
.news-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 1rem !important;
}

/* SEO Articles Card - Same Style */
.seo-article-card {
  background: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 16px !important;
  padding: 1.5rem !important;
  box-shadow: none !important;
  transition: all 0.3s ease !important;
}

.seo-article-card:hover {
  background: rgba(255, 255, 255, 0.7) !important;
  transform: translateY(-2px) !important;
}

.seo-articles {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* Responsive */
@media (max-width: 1200px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .news-grid {
    grid-template-columns: 1fr !important;
  }
}
