/* ===== Kuangda Heavy Industry - Website Styles ===== */
:root {
  --navy: #003366;
  --navy-dark: #001a33;
  --navy-light: #1a4a80;
  --dark: #003366;
  --dark-2: #00264d;
  --dark-3: #1a4a80;
  --gold: #D4AF70;
  --gold-dark: #B89556;
  --gold-light: #E5C590;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.15);
  --transition: .3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-800);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
#header.scrolled { box-shadow: var(--shadow-md); }
.header-container {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  height: 110px; display: flex; align-items: center; justify-content: space-between;
}
.header-logo { height: 100px; width: auto; }
#nav-menu { display: flex; gap: 35px; }
.nav-link {
  font-size: 14px; font-weight: 500; color: var(--gray-700);
  text-transform: uppercase; letter-spacing: 1px;
  transition: var(--transition); position: relative; padding: 5px 0;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--gold); transform: scaleX(0);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--dark); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
#mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 5px;
}
#mobile-toggle span {
  width: 25px; height: 3px; background: var(--dark);
  transition: var(--transition); border-radius: 2px;
}

/* ===== Pages ===== */
.page { display: none; min-height: 100vh; padding-top: 110px; }
.page.active { display: block; }

/* ===== Hero Carousel ===== */
.hero-carousel {
  position: relative; height: 100vh; min-height: 600px; overflow: hidden;
}
.hero-slides {
  display: flex; height: 100%;
  transition: transform .7s cubic-bezier(.4,0,.2,1);
}
.hero-slide {
  min-width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
}
.hero-slide-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-slide-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,30,60,.65) 0%, rgba(0,30,60,.5) 50%, rgba(0,30,60,.7) 100%);
}

/* Geometric mesh overlay */
.hero-mesh { display: none; }
.hero-slide-content {
  position: relative; z-index: 3; max-width: 820px; padding: 0 24px;
  opacity: 0; transform: translateY(40px);
  transition: opacity .8s ease .2s, transform .8s ease .2s;
}
.hero-slide.active .hero-slide-content {
  opacity: 1; transform: translateY(0);
}
.hero-eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 3px;
  color: var(--gold); margin-bottom: 20px;
  padding: 6px 18px; border: 1px solid rgba(212,175,112,.35);
  border-radius: 30px;
}
.hero-title {
  font-size: 4.2rem; font-weight: 800; color: var(--white);
  line-height: 1.1; letter-spacing: 2px; margin-bottom: 24px;
}
.hero-title .gold { color: var(--gold); }
.hero-subtitle {
  font-size: 1.25rem; color: rgba(255,255,255,.8);
  margin-bottom: 40px; font-weight: 300; line-height: 1.6;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Hero Arrows */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--white); cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.hero-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); }
.hero-arrow svg { width: 20px; height: 20px; }
.hero-prev { left: 30px; }
.hero-next { right: 30px; }

/* Hero Dots */
.hero-dots {
  position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 10;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.3); cursor: pointer;
  border: none; padding: 0; transition: var(--transition);
}
.hero-dot.active {
  background: var(--gold); width: 34px; border-radius: 5px;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll-hint span {
  font-size: .7rem; text-transform: uppercase; letter-spacing: 2px;
  color: rgba(255,255,255,.4);
}
.hero-scroll-line {
  width: 1px; height: 30px; background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: .3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ===== Stats Bar ===== */
.stats-bar {
  background: var(--white); padding: 0;
  margin-top: -60px; position: relative; z-index: 20;
  box-shadow: 0 10px 40px rgba(0,51,102,.08);
  border-radius: 12px; max-width: 1100px; margin-left: auto; margin-right: auto;
  margin-bottom: 0;
}
.stats-bar-grid {
  display: flex; align-items: center; padding: 32px 20px;
}
.stat-bar-item {
  flex: 1; text-align: center;
}
.stat-bar-number {
  font-size: 2.6rem; font-weight: 800; color: var(--dark);
  line-height: 1; margin-bottom: 8px;
}
.stat-bar-number span { color: var(--gold); }
.stat-bar-label {
  font-size: .8rem; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--gray-500); font-weight: 500;
}
.stat-bar-divider {
  width: 1px; height: 50px; background: var(--gray-200);
  flex-shrink: 0;
}

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-light { background: var(--white); }
.section-dark { background: var(--dark); color: var(--white); }
.section-clients { background: var(--gray-50); padding: 60px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2.5px;
  color: var(--gold); margin-bottom: 12px;
}
.section-eyebrow.light { color: var(--gold-light); }
.section-title {
  font-size: 2.4rem; font-weight: 700; color: var(--dark);
  margin-bottom: 12px;
}
.section-dark .section-title { color: var(--white); }
.section-title.light { color: var(--white); }
.gold { color: var(--gold); }
.section-desc { font-size: 1.05rem; color: var(--gray-500); max-width: 600px; margin: 0 auto; }
.section-dark .section-desc { color: rgba(255,255,255,.6); }

/* ===== Home Products with Category Tabs ===== */
.home-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}
.home-cat-tab {
  padding: 10px 24px;
  border: 1px solid var(--gray-300);
  border-radius: 30px;
  background: var(--white);
  color: var(--gray-500);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.home-cat-tab:hover {
  border-color: var(--dark);
  color: var(--dark);
}
.home-cat-tab.active {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0,51,102,.2);
}
.home-products-carousel {
  overflow: hidden; position: relative;
  margin: 0 -10px; padding: 15px 10px;
}
.home-products-track {
  display: flex; gap: 24px;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.home-products-track .product-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 0;
  background: var(--white);
  border: none; border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  transition: box-shadow .35s ease, transform .35s ease;
  cursor: pointer;
}
.home-products-track .product-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,.08), 0 16px 48px rgba(0,51,102,.12);
  transform: translateY(-8px);
}
.home-products-track .product-card-img { height: 220px; overflow: hidden; }
.home-products-track .product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.home-products-track .product-card:hover .product-card-img img {
  transform: scale(1.06);
}
.home-products-track .product-card-body { padding: 20px; }
.home-products-nav {
  display: flex; justify-content: center; gap: 12px; margin-top: 40px;
}
.home-prod-prev, .home-prod-next {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--gray-300);
  color: var(--dark); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.home-prod-prev:hover, .home-prod-next:hover {
  background: var(--dark); color: var(--white); border-color: var(--dark);
}
.home-prod-prev svg, .home-prod-next svg { width: 20px; height: 20px; }
@media (max-width: 968px) {
  .home-products-track .product-card { flex: 0 0 calc(50% - 12px); }
}
@media (max-width: 768px) {
  .home-products-track .product-card { flex: 0 0 100%; }
}

/* ===== About Preview ===== */
.about-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text p { margin-bottom: 20px; color: rgba(255,255,255,.8); line-height: 1.8; }
.about-stats { display: flex; flex-direction: column; gap: 20px; }
.about-image { border-radius: 14px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.15); }
.about-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stat-box {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  padding: 28px; border-radius: 10px; text-align: center;
  transition: var(--transition);
}
.stat-box:hover {
  background: rgba(255,255,255,.08); border-color: rgba(212,175,112,.3);
}
.stat-number { font-size: 2.4rem; font-weight: 800; }
.stat-label { font-size: .82rem; color: rgba(255,255,255,.55); margin-top: 6px; text-transform: uppercase; letter-spacing: 1px; }

/* ===== Why Choose Us ===== */
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px;
}
.why-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 14px; padding: 36px 28px; text-align: center;
  transition: var(--transition);
}
.why-card:hover {
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(0,0,0,.05), 0 12px 36px rgba(0,51,102,.08);
  transform: translateY(-6px);
}
.why-icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.why-icon svg { width: 28px; height: 28px; }
.why-card h3 { color: var(--dark); font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.why-card p { color: var(--gray-500); font-size: .9rem; line-height: 1.7; }

/* ===== Clients Marquee ===== */
.clients-marquee {
  overflow: hidden; position: relative;
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.clients-marquee-track {
  display: flex; gap: 16px; width: max-content;
  animation: marquee-scroll 35s linear infinite;
}
.client-chip {
  white-space: nowrap; flex-shrink: 0;
  background: var(--white); border: 1px solid var(--gray-200);
  padding: 14px 28px; border-radius: 8px;
  font-size: .9rem; font-weight: 600; color: var(--gray-700);
  transition: var(--transition);
}
.clients-marquee:hover .clients-marquee-track {
  animation-play-state: paused;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 50%, var(--dark-3) 100%);
  padding: 70px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(212,175,112,.06) 0%, transparent 50%),
    radial-gradient(circle at 85% 50%, rgba(212,175,112,.04) 0%, transparent 50%);
}
.cta-content { position: relative; z-index: 2; }
.cta-content h2 { color: var(--white); font-size: 2.2rem; font-weight: 700; margin-bottom: 14px; }
.cta-content p { color: rgba(255,255,255,.7); font-size: 1.1rem; margin-bottom: 30px; }
.btn-large { padding: 16px 44px; font-size: 15px; }

/* ===== Buttons ===== */
/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 14px 36px;
  font-size: 14px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; border: none; cursor: pointer;
  transition: var(--transition); border-radius: 4px;
}
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--dark); }
.btn-outline-dark { background: transparent; color: var(--dark); border: 2px solid var(--dark); }
.btn-outline-dark:hover { background: var(--dark); color: var(--white); }
.btn-full { width: 100%; }
.btn-small { padding: 8px 20px; font-size: .8rem; }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-dark { background: var(--dark); color: var(--white); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-title {
  font-size: 2.5rem; font-weight: 700; color: var(--dark);
  margin-bottom: 15px;
}
.section-dark .section-title { color: var(--white); }
.section-title.light { color: var(--white); }
.gold { color: var(--gold); }
.section-desc { font-size: 1.1rem; color: var(--gray-500); max-width: 600px; margin: 0 auto; }
.section-dark .section-desc { color: rgba(255,255,255,.6); }

/* ===== About Preview ===== */
.about-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text p { margin-bottom: 20px; color: rgba(255,255,255,.8); line-height: 1.8; }
.about-stats { display: flex; flex-direction: column; gap: 20px; }
.stat-box {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  padding: 28px; border-radius: 10px; text-align: center;
  transition: var(--transition);
}
.stat-box:hover {
  background: rgba(255,255,255,.08); border-color: rgba(212,175,112,.3);
}
.stat-number { font-size: 2.4rem; font-weight: 800; }
.stat-label { font-size: .82rem; color: rgba(255,255,255,.55); margin-top: 6px; text-transform: uppercase; letter-spacing: 1px; }

/* ===== Why Choose Us ===== */
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px;
}
.why-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 14px; padding: 36px 28px; text-align: center;
  transition: var(--transition);
}
.why-card:hover {
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(0,0,0,.05), 0 12px 36px rgba(0,51,102,.08);
  transform: translateY(-6px);
}
.why-icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.why-icon svg { width: 28px; height: 28px; }
.why-card h3 { color: var(--dark); font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.why-card p { color: var(--gray-500); font-size: .9rem; line-height: 1.7; }

/* ===== Clients Marquee ===== */
.clients-marquee {
  overflow: hidden; position: relative;
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.clients-marquee-track {
  display: flex; gap: 16px; width: max-content;
  animation: marquee-scroll 35s linear infinite;
}
.client-chip {
  white-space: nowrap; flex-shrink: 0;
  background: var(--white); border: 1px solid var(--gray-200);
  padding: 14px 28px; border-radius: 8px;
  font-size: .9rem; font-weight: 600; color: var(--gray-700);
  transition: var(--transition);
}
.clients-marquee:hover .clients-marquee-track {
  animation-play-state: paused;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 50%, var(--dark-3) 100%);
  padding: 70px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(212,175,112,.06) 0%, transparent 50%),
    radial-gradient(circle at 85% 50%, rgba(212,175,112,.04) 0%, transparent 50%);
}
.cta-content { position: relative; z-index: 2; }
.cta-content h2 { color: var(--white); font-size: 2.2rem; font-weight: 700; margin-bottom: 14px; }
.cta-content p { color: rgba(255,255,255,.7); font-size: 1.1rem; margin-bottom: 30px; }
.btn-large { padding: 16px 44px; font-size: 15px; }

/* ===== Buttons ===== */
/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 14px 36px;
  font-size: 14px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; border: none; cursor: pointer;
  transition: var(--transition); border-radius: 4px;
}
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--dark); }
.btn-outline-dark { background: transparent; color: var(--dark); border: 2px solid var(--dark); }
.btn-outline-dark:hover { background: var(--dark); color: var(--white); }
.btn-full { width: 100%; }
.btn-small { padding: 8px 20px; font-size: .8rem; }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-dark { background: var(--dark); color: var(--white); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-title {
  font-size: 2.5rem; font-weight: 700; color: var(--dark);
  margin-bottom: 15px;
}
.section-dark .section-title { color: var(--white); }
.section-title.light { color: var(--white); }
.gold { color: var(--gold); }
.section-desc { font-size: 1.1rem; color: var(--gray-500); max-width: 600px; margin: 0 auto; }
.section-dark .section-desc { color: rgba(255,255,255,.6); }

/* ===== Product Series Grid ===== */
.product-series-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px;
}
.series-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 8px; padding: 40px 30px; text-align: center;
  transition: var(--transition);
}
.series-card:hover { border-color: var(--gold); box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.series-icon {
  width: 80px; height: 80px; margin: 0 auto 20px;
  background: var(--dark); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.series-icon span { color: var(--gold); font-weight: 800; font-size: 1.2rem; }
.series-card h3 { color: var(--dark); font-size: 1.3rem; margin-bottom: 12px; }
.series-card p { color: var(--gray-500); font-size: .9rem; line-height: 1.6; }

/* ===== Clients ===== */

/* ===== Page Banner ===== */
.page-banner {
  background: linear-gradient(rgba(0,30,60,.65), rgba(0,30,60,.7)), url('/images/page-banner-bg.jpg') center/cover no-repeat;
  color: var(--white); text-align: center;
  min-height: 420px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 20px;
  position: relative;
}
.page-banner h1 { font-size: 3rem; font-weight: 700; margin-bottom: 10px; }
.page-banner p { font-size: 1.1rem; opacity: .85; }

/* ===== Content Area ===== */
.content-area { padding: 60px 20px; max-width: 900px; }
.content-block { margin-bottom: 50px; }
.content-block h2 {
  color: var(--dark); font-size: 1.8rem; margin-bottom: 20px;
  padding-bottom: 10px; border-bottom: 3px solid var(--gold); display: inline-block;
}
.content-block p { margin-bottom: 15px; color: var(--gray-600); line-height: 1.8; }
.spec-list { margin: 15px 0 15px 20px; }
.spec-list li { list-style: disc; margin-bottom: 8px; color: var(--gray-600); }

/* ===== Breadcrumb ===== */
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--dark); }

/* ===== Breadcrumb Nav ===== */
.breadcrumb-nav {
  padding: 20px 0; font-size: .85rem; color: var(--gray-400);
  display: flex; align-items: center; flex-wrap: wrap; gap: 0;
}
.crumb-link { color: var(--gray-500); transition: var(--transition); cursor: pointer; }
.crumb-link:hover { color: var(--dark); }
.crumb-sep { margin: 0 8px; color: var(--gray-300); }
.crumb-current { color: var(--dark); font-weight: 600; }

/* ===== Products Layout ===== */
.products-layout { display: flex; gap: 40px; padding: 40px 0; }
.products-sidebar { width: 250px; flex-shrink: 0; }
.products-sidebar h3 {
  color: var(--dark); font-size: 1.2rem; margin-bottom: 20px;
  padding-bottom: 10px; border-bottom: 2px solid var(--gold);
}
#category-filter li {
  padding: 12px 15px; cursor: pointer; border-radius: 6px;
  transition: var(--transition); font-size: .95rem; color: var(--gray-600);
}
#category-filter li:hover { background: var(--gray-100); color: var(--dark); }
#category-filter li.active { background: var(--dark); color: var(--white); font-weight: 500; }
.products-main { flex: 1; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.product-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 8px; overflow: hidden; cursor: pointer; transition: var(--transition);
}
.product-card:hover { border-color: var(--gold); box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.product-card-img { width: 100%; height: 220px; object-fit: cover; background: var(--gray-100); }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 20px; }
.product-card-title { color: var(--dark); font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.product-card-desc {
  color: var(--gray-500); font-size: .9rem; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-category {
  display: inline-block; font-size: .75rem; color: var(--gold-dark);
  background: rgba(212,175,112,.1); padding: 3px 10px;
  border-radius: 4px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .5px;
}

/* ===== Product Detail ===== */
.product-detail-header { margin-bottom: 30px; }
.product-detail-header h1 { color: var(--dark); font-size: 2rem; margin-bottom: 10px; }
.product-detail-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding: 0 20px; max-width: 1200px; margin: 0 auto; }
.product-detail-info h3 { color: var(--dark); margin-bottom: 15px; font-size: 1.2rem; }
.product-detail-info p { color: var(--gray-600); margin-bottom: 15px; line-height: 1.8; }
/* Product Detail - Full Section */
.product-detail-section { background: var(--white); padding: 0; margin-top: 50px; border-top: 1px solid var(--gray-200); }
.product-detail-section-inner { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding: 40px 0; max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* Product TOC Sidebar */
.product-detail-toc-sidebar { position: sticky; top: 100px; align-self: start; }
.product-toc { background: var(--gray-50); border-radius: 10px; padding: 22px 20px; border: 1px solid var(--gray-200); }
.product-toc-title { display: flex; align-items: center; gap: 8px; color: var(--dark); font-size: 1rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--gold); }
.product-toc-title svg { color: var(--gold); }
.product-toc-list { list-style: none; }
.product-toc-list li { margin-bottom: 2px; }
.product-toc-list a { display: block; padding: 8px 12px; color: var(--gray-600); font-size: .875rem; text-decoration: none; border-radius: 6px; transition: var(--transition); border-left: 3px solid transparent; line-height: 1.5; }
.product-toc-list a:hover { color: var(--dark); background: var(--white); border-left-color: var(--gold); }
.product-toc-list a.active { color: var(--gold); background: var(--white); border-left-color: var(--gold); font-weight: 600; }
.product-toc-list .toc-level-h3 a { padding-left: 24px; font-size: .825rem; }

/* Product Detail Content Wrap */
.product-detail-content-wrap { min-width: 0; }
.product-detail-content-wrap .article-detail-content h2 { color: var(--dark); font-size: 1.5rem; margin: 30px 0 15px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); }
.product-detail-content-wrap .article-detail-content h3 { color: var(--dark); font-size: 1.2rem; margin: 25px 0 12px; }
.product-detail-content-wrap .article-detail-content h2:first-child { margin-top: 0; }
.product-detail-content-wrap .article-detail-content ul { margin: 12px 0 18px 20px; }
.product-detail-content-wrap .article-detail-content ul li { margin-bottom: 8px; line-height: 1.8; color: var(--gray-700); }
.product-detail-content-wrap .article-detail-content strong { color: var(--dark); }

/* Related Products */
.related-products-section { background: var(--gray-50); padding: 50px 20px; margin-top: 0; border-top: 1px solid var(--gray-200); }
.related-products-inner { max-width: 1200px; margin: 0 auto; }
.related-products-section .product-card {
  background: var(--white);
  border: none;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  transition: box-shadow .35s ease, transform .35s ease;
}
.related-products-section .product-card:hover {
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(0,0,0,.08), 0 16px 48px rgba(0,51,102,.12);
  transform: translateY(-8px);
}
.related-products-section .product-card-img {
  height: 200px;
  overflow: hidden;
}
.related-products-section .product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.related-products-section .product-card:hover .product-card-img img {
  transform: scale(1.05);
}
.related-products-section .product-card-body { padding: 18px 20px 22px; }
.related-products-section .product-card-title { font-size: 1rem; }

/* ===== News Grid ===== */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; padding: 40px 0; }
.news-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 8px; overflow: hidden; cursor: pointer; transition: var(--transition);
}
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.news-card-img { width: 100%; height: 200px; object-fit: cover; background: var(--gray-100); }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 25px; }
.news-card-date { font-size: .8rem; color: var(--gold-dark); text-transform: uppercase; letter-spacing: 1px; }
.news-card-title { color: var(--dark); font-size: 1.2rem; margin: 8px 0 10px; }
.news-card-desc {
  color: var(--gray-500); font-size: .9rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ===== Article Detail ===== */
.article-detail h1 { color: var(--dark); font-size: 2rem; margin-bottom: 10px; }
.article-detail-meta { color: var(--gray-400); font-size: .9rem; margin-bottom: 25px; }
.article-detail-content { line-height: 1.9; color: var(--gray-700); }
.article-detail-content p { margin-bottom: 15px; }
.article-detail-content img { max-width: 100%; border-radius: 8px; margin: 15px 0; }

/* ===== Pagination ===== */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination button {
  padding: 8px 14px; border: 1px solid var(--gray-200);
  background: var(--white); color: var(--gray-600);
  cursor: pointer; border-radius: 4px; transition: var(--transition); font-size: .9rem;
}
.pagination button:hover { border-color: var(--dark); color: var(--dark); }
.pagination button.active { background: var(--dark); color: var(--white); border-color: var(--dark); }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

/* ===== Contact ===== */
.contact-layout { display: grid; grid-template-columns: 350px 1fr; gap: 50px; padding: 60px 0; }
.contact-info h3, .contact-form-wrapper h3 { color: var(--dark); font-size: 1.4rem; margin-bottom: 30px; }
.contact-item { display: flex; gap: 15px; margin-bottom: 25px; }
.contact-icon {
  width: 45px; height: 45px; background: var(--dark); color: var(--gold);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-item strong { display: block; color: var(--dark); margin-bottom: 3px; }
.contact-item p { color: var(--gray-500); font-size: .9rem; }
.contact-form-wrapper { background: var(--gray-50); padding: 40px; border-radius: 8px; }
.contact-form .form-row { display: flex; gap: 20px; }
.form-group { margin-bottom: 20px; flex: 1; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 15px; border: 1px solid var(--gray-300);
  border-radius: 6px; font-size: .95rem; font-family: inherit; transition: var(--transition); background: var(--white);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--dark); box-shadow: 0 0 0 3px rgba(0,51,102,.1); }
.form-message { margin-top: 15px; padding: 12px; border-radius: 6px; font-size: .9rem; display: none; }
.form-message.success { display: block; background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-message.error { display: block; background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ===== Footer ===== */
footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--white);
  margin-bottom: 15px;
}
.footer-col p { font-size: .9rem; line-height: 1.6; }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 20px; font-weight: 600; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: .9rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; text-align: center; font-size: .85rem; }

/* ===== Loading ===== */
.loading { text-align: center; padding: 60px; color: var(--gray-400); font-size: 1rem; grid-column: 1 / -1; }

/* ===== Certificates ===== */
.cert-filter-bar { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 40px 0 20px; }
.cert-filter-btn {
  padding: 10px 24px; border: 1px solid var(--gray-300);
  background: var(--white); color: var(--gray-600);
  font-size: .85rem; font-weight: 500; cursor: pointer;
  border-radius: 30px; transition: var(--transition);
  text-transform: uppercase; letter-spacing: .5px; font-family: inherit;
}
.cert-filter-btn:hover { border-color: var(--dark); color: var(--dark); }
.cert-filter-btn.active { background: var(--dark); color: var(--white); border-color: var(--dark); }

.cert-carousel-wrapper {
  position: relative; width: 100%; height: 500px;
  perspective: 1200px; margin-top: 20px;
  display: flex; align-items: center; justify-content: center;
}
.cert-carousel { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.cert-card {
  position: absolute; top: 50%; left: 50%;
  width: 300px; height: 420px; margin: -210px 0 0 -150px;
  transition: transform .8s cubic-bezier(.25, .46, .45, .94), opacity .6s cubic-bezier(.4, 0, .2, 1), filter .6s ease, box-shadow .6s ease;
  cursor: pointer; border-radius: 12px; overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,.2);
}
.cert-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.cert-card-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.8));
  color: var(--white); padding: 30px 15px 15px;
  font-size: .8rem; font-weight: 500; text-align: center;
}
.cert-card.pos-center { z-index: 10; transform: translateZ(0) scale(1) rotateY(0deg); opacity: 1; filter: blur(0); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.cert-card.pos-left-1 { z-index: 8; transform: translateX(-220px) translateZ(-100px) rotateY(25deg) scale(.85) translateY(10px); opacity: .7; filter: blur(1px); }
.cert-card.pos-left-2 { z-index: 6; transform: translateX(-380px) translateZ(-250px) rotateY(35deg) scale(.7) translateY(20px); opacity: .4; filter: blur(2px); }
.cert-card.pos-right-1 { z-index: 8; transform: translateX(220px) translateZ(-100px) rotateY(-25deg) scale(.85) translateY(10px); opacity: .7; filter: blur(1px); }
.cert-card.pos-right-2 { z-index: 6; transform: translateX(380px) translateZ(-250px) rotateY(-35deg) scale(.7) translateY(20px); opacity: .4; filter: blur(2px); }
.cert-card.pos-hidden { z-index: 1; transform: translateZ(-500px) scale(.4) rotateY(0deg); opacity: 0; filter: blur(8px); }

.cert-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 20; width: 50px; height: 50px;
  background: rgba(0,51,102,.8); color: var(--white);
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); padding: 0;
}
.cert-nav svg { width: 24px; height: 24px; }
.cert-nav:hover { background: var(--gold); color: var(--dark); border-color: var(--gold); }
.cert-prev { left: 10px; }
.cert-next { right: 10px; }

.cert-dots { display: flex; gap: 8px; justify-content: center; padding: 20px 0; }
.cert-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gray-300); cursor: pointer;
  transition: var(--transition); border: none; padding: 0;
}
.cert-dot.active { background: var(--dark); width: 30px; border-radius: 5px; }

.cert-info { text-align: center; max-width: 700px; margin: 0 auto; padding: 20px; min-height: 120px; }
.cert-info h3 { color: var(--dark); font-size: 1.3rem; margin-bottom: 10px; }
.cert-info p { color: var(--gray-500); font-size: .9rem; margin-bottom: 10px; }
.cert-info-meta { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.cert-info-meta span { font-size: .8rem; color: var(--gray-400); background: var(--gray-50); padding: 4px 12px; border-radius: 4px; }
.cert-info-meta span strong { color: var(--dark); }

.cert-lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92); align-items: center; justify-content: center;
  flex-direction: column; padding: 20px;
}
.cert-lightbox.open { display: flex; }
.cert-lightbox img { max-width: 90%; max-height: 80vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.cert-lightbox-close {
  position: absolute; top: 20px; right: 30px;
  width: 40px; height: 40px;
  font-size: 2.5rem; color: var(--white); background: none;
  border: none; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.cert-lightbox-close svg { width: 32px; height: 32px; }
.cert-lightbox-close:hover { color: var(--gold); }
.cert-lightbox-caption { color: rgba(255,255,255,.8); margin-top: 15px; font-size: .9rem; text-align: center; }

/* ===== Cookie Consent ===== */
.cookie-consent {
  position: fixed; bottom: -200px; left: 0; right: 0; z-index: 9998;
  background: var(--white); box-shadow: 0 -4px 20px rgba(0,0,0,.15);
  transition: bottom .4s ease; padding: 0;
}
.cookie-consent.show { bottom: 0; }
.cookie-content {
  max-width: 1200px; margin: 0 auto; padding: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.cookie-text { flex: 1; }
.cookie-text strong { color: var(--dark); display: block; margin-bottom: 5px; font-size: .95rem; }
.cookie-text p { font-size: .85rem; color: var(--gray-500); line-height: 1.6; }
.cookie-text a { color: var(--dark); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ===== 404 Page ===== */
.notfound-container {
  text-align: center; padding: 120px 20px 80px; min-height: 60vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.notfound-code { font-size: 8rem; font-weight: 800; color: var(--dark); line-height: 1; margin-bottom: 10px; letter-spacing: -3px; }
.notfound-code::after { content: ''; display: block; width: 80px; height: 4px; background: var(--gold); margin: 15px auto 0; }
.notfound-title { color: var(--gray-700); font-size: 1.8rem; margin-bottom: 15px; }
.notfound-desc { color: var(--gray-500); max-width: 500px; margin: 0 auto 30px; }
.notfound-actions { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.notfound-suggestions { text-align: left; background: var(--gray-50); padding: 25px 35px; border-radius: 8px; border-left: 4px solid var(--gold); }
.notfound-suggestions p { color: var(--dark); font-weight: 600; margin-bottom: 10px; }
.notfound-suggestions ul { list-style: none; }
.notfound-suggestions li { margin-bottom: 8px; }
.notfound-suggestions a { color: var(--gray-600); transition: var(--transition); }
.notfound-suggestions a:hover { color: var(--gold); }

/* ===== Article Detail with Sidebar ===== */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding: 20px 20px 60px; max-width: 1200px; margin: 0 auto; }
.article-main { min-width: 0; }
.article-detail-h1 { color: var(--dark); font-size: 2rem; margin-bottom: 10px; line-height: 1.3; }
.article-detail-meta { color: var(--gray-400); font-size: .9rem; margin-bottom: 25px; display: flex; align-items: center; gap: 8px; }
.meta-sep { color: var(--gray-300); }
.meta-cat { color: var(--gold-dark); font-weight: 500; }
.article-cover { width: 100%; border-radius: 8px; margin-bottom: 25px; box-shadow: var(--shadow-md); }
.article-lead { font-size: 1.15rem; color: var(--gray-600); line-height: 1.8; margin-bottom: 25px; font-style: italic; border-left: 4px solid var(--gold); padding-left: 20px; }
.article-tags { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag-pill {
  display: inline-block; padding: 5px 14px; font-size: .8rem;
  background: var(--gray-100); color: var(--gray-600);
  border-radius: 20px; transition: var(--transition); cursor: default;
}
.tag-pill:hover { background: var(--dark); color: var(--white); }
.article-share { margin-top: 35px; padding-top: 25px; border-top: 1px solid var(--gray-200); display: flex; align-items: center; gap: 15px; font-size: .9rem; }
.article-share span { color: var(--gray-500); font-weight: 600; }
.article-share a { color: var(--dark); padding: 6px 16px; border: 1px solid var(--gray-300); border-radius: 20px; transition: var(--transition); font-size: .85rem; }
.article-share a:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }

/* ===== Article Sidebar ===== */
.article-sidebar { position: sticky; top: 100px; align-self: start; }
.sidebar-title { color: var(--dark); font-size: 1.1rem; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); }
.sidebar-recent { list-style: none; margin-bottom: 30px; }
.sidebar-recent li { padding: 12px 0; border-bottom: 1px solid var(--gray-100); cursor: pointer; transition: var(--transition); }
.sidebar-recent li:hover { padding-left: 5px; }
.sidebar-recent li:hover .sidebar-recent-title { color: var(--gold); }
.sidebar-recent-title { display: block; color: var(--gray-700); font-size: .9rem; font-weight: 500; line-height: 1.5; }
.sidebar-recent-date { display: block; color: var(--gray-400); font-size: .75rem; margin-top: 3px; }
.sidebar-cats { list-style: none; margin-bottom: 30px; }
.sidebar-cats li { padding: 10px 0; border-bottom: 1px solid var(--gray-100); color: var(--gray-600); font-size: .9rem; cursor: pointer; transition: var(--transition); position: relative; padding-left: 20px; }
.sidebar-cats li::before { content: ''; position: absolute; left: 0; top: 14px; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
.sidebar-cats li:hover { color: var(--dark); padding-left: 25px; }
.sidebar-cta { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%); padding: 25px; border-radius: 8px; margin-bottom: 30px; color: var(--white); }
.sidebar-cta p { color: rgba(255,255,255,.8); font-size: .9rem; margin-bottom: 15px; }
.sidebar-cta .btn { width: 100%; text-align: center; }
.sidebar-tags-cloud .tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

/* ===== Responsive ===== */
@media (max-width: 968px) {
  .about-preview, .contact-layout { grid-template-columns: 1fr; }
  .products-layout { flex-direction: column; }
  .products-sidebar { width: 100%; }
  .product-detail-layout { grid-template-columns: 1fr; }
  .product-detail-section-inner { grid-template-columns: 1fr; }
  .home-products-track .product-card { flex: 0 0 calc(50% - 12px); }
  .hero-title { font-size: 2.8rem; }
  .hero-prev { left: 15px; }
  .hero-next { right: 15px; }
  .stats-bar-grid { flex-wrap: wrap; gap: 20px; }
  .stat-bar-divider { display: none; }
  .stat-bar-item { flex: 1 1 40%; }
  .about-preview { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .product-detail-toc-sidebar { position: static; margin-bottom: 20px; }
  .product-toc { max-height: 200px; overflow-y: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}
@media (max-width: 768px) {
  #nav-menu { display: none; position: absolute; top: 80px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 20px; box-shadow: var(--shadow-md); gap: 0; }
  #nav-menu.open { display: flex; }
  #nav-menu .nav-link { padding: 15px 0; border-bottom: 1px solid var(--gray-100); }
  #mobile-toggle { display: flex; }
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1rem; }
  .section-title { font-size: 1.8rem; }
  .features-strip { flex-wrap: wrap; }
  .feature-item { flex: 1 1 50%; border-bottom: 1px solid rgba(255,255,255,.1); }
  .products-grid { grid-template-columns: 1fr; }
  .home-products-track .product-card { flex: 0 0 100%; }
  .hero-arrow { width: 40px; height: 40px; }
  .hero-arrow svg { width: 18px; height: 18px; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .stats-bar { margin-top: -30px; border-radius: 8px; }
  .stat-bar-item { flex: 1 1 100%; }
  .why-grid { grid-template-columns: 1fr; }
  .cta-content h2 { font-size: 1.6rem; }
  .contact-form .form-row { flex-direction: column; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-banner h1 { font-size: 2rem; }
  .cert-card { width: 220px; height: 310px; margin: -155px 0 0 -110px; }
  .cert-card.pos-left-1 { transform: translateX(-160px) translateZ(-80px) rotateY(25deg) scale(.8); }
  .cert-card.pos-left-2 { transform: translateX(-260px) translateZ(-200px) rotateY(35deg) scale(.65); opacity: .2; }
  .cert-card.pos-right-1 { transform: translateX(160px) translateZ(-80px) rotateY(-25deg) scale(.8); }
  .cert-card.pos-right-2 { transform: translateX(260px) translateZ(-200px) rotateY(-35deg) scale(.65); opacity: .2; }
  .cert-carousel-wrapper { height: 400px; }
  .cert-filter-btn { padding: 8px 16px; font-size: .75rem; }
  .cookie-content { flex-direction: column; gap: 15px; text-align: center; }
  .cookie-actions { width: 100%; justify-content: center; }
}

/* ===== Product Gallery Carousel ===== */
.product-gallery-section { margin: 0; padding: 0; }
.product-gallery-carousel { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.08), 0 12px 40px rgba(0,51,102,.1); }
.gallery-slides { display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.gallery-slide { min-width: 100%; height: 520px; }
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; background: var(--gray-50); }
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.85); backdrop-filter: blur(6px);
  border: 1px solid rgba(0,0,0,.06); color: var(--dark);
  cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.gallery-arrow:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }
.gallery-arrow svg { width: 20px; height: 20px; }
.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }
.gallery-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.gallery-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; border: none; padding: 0; transition: var(--transition); }
.gallery-dot.active { background: var(--gold); width: 30px; border-radius: 5px; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumb { flex: 0 0 80px; height: 80px; border-radius: 8px; overflow: hidden; cursor: pointer; opacity: .5; transition: var(--transition); border: 2px solid transparent; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { opacity: 1; border-color: var(--gold); }
.gallery-thumb:hover { opacity: 1; }

/* ===== Detail Content Table Fix ===== */
.article-detail-content table,
.product-detail-content-wrap .article-detail-content table {
  width: 100%; border-collapse: collapse; margin: 20px 0;
  border: 1px solid var(--gray-200); border-radius: 8px; overflow: hidden;
  font-size: .9rem;
}
.article-detail-content table th,
.product-detail-content-wrap .article-detail-content table th {
  background: var(--dark); color: var(--white);
  padding: 12px 16px; text-align: left; font-weight: 600;
  font-size: .85rem; text-transform: uppercase; letter-spacing: .5px;
}
.article-detail-content table td,
.product-detail-content-wrap .article-detail-content table td {
  padding: 12px 16px; border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700); line-height: 1.6;
}
.article-detail-content table tr:nth-child(even) td,
.product-detail-content-wrap .article-detail-content table tr:nth-child(even) td {
  background: var(--gray-50);
}
.article-detail-content table tr:last-child td,
.product-detail-content-wrap .article-detail-content table tr:last-child td {
  border-bottom: none;
}
.article-detail-content table tr:hover td,
.product-detail-content-wrap .article-detail-content table tr:hover td {
  background: rgba(212,175,112,.05);
}

/* Gallery responsive */
@media (max-width: 768px) {
  .gallery-slide { height: 280px; }
  .gallery-thumb { flex: 0 0 60px; height: 60px; }
}

/* Product Detail Info - Enhanced */
.product-detail-desc { font-size: 1.05rem; color: var(--gray-600); line-height: 1.9; margin-bottom: 30px; padding-bottom: 25px; border-bottom: 1px solid var(--gray-200); }
.product-detail-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.product-detail-actions .btn { width: 100%; text-align: center; padding: 14px 24px; font-size: .95rem; font-weight: 600; border-radius: 8px; }
.btn-contact { background: var(--dark); color: var(--white); border: none; }
.btn-contact:hover { background: var(--dark-2); }
.btn-quote { border: 2px solid var(--dark); color: var(--dark); background: transparent; }
.btn-quote:hover { background: var(--dark); color: var(--white); }
.product-detail-share { padding-top: 25px; border-top: 1px solid var(--gray-200); }
.share-label { display: block; font-size: .8rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px; }
.share-icons { display: flex; gap: 10px; flex-wrap: wrap; }
.share-icon { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gray-200); background: var(--white); color: var(--gray-500); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.share-icon svg { width: 18px; height: 18px; }
.share-icon:hover { background: var(--dark); color: var(--white); border-color: var(--dark); transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,51,102,.15); }

/* ===== FAQ Page ===== */
.faq-category-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 40px; justify-content: center;
}
.faq-tab {
  padding: 10px 22px; border-radius: 30px;
  background: var(--white); border: 1px solid var(--gray-200);
  color: var(--gray-500); font-size: .875rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.faq-tab:hover { border-color: var(--dark); color: var(--dark); }
.faq-tab.active {
  background: var(--dark); color: var(--white); border-color: var(--dark);
}
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 12px; overflow: hidden;
  transition: var(--transition);
}
.faq-item.open {
  border-color: rgba(0,51,102,.2);
  box-shadow: 0 4px 16px rgba(0,51,102,.06);
}
.faq-question {
  width: 100%; padding: 20px 24px; text-align: left;
  background: none; border: none; cursor: pointer;
  font-size: 1rem; font-weight: 600; color: var(--dark);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-toggle {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--gray-50); color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.faq-toggle svg { width: 18px; height: 18px; transition: transform .3s ease; }
.faq-item.open .faq-toggle { background: var(--dark); color: var(--white); }
.faq-item.open .faq-toggle svg { transform: rotate(180deg); }
.faq-answer {
  display: none; padding: 0 24px 20px;
}
.faq-item.open .faq-answer { display: block; }
.faq-answer p { margin-bottom: 12px; color: var(--gray-600); line-height: 1.8; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul, .faq-answer ol { margin-bottom: 12px; padding-left: 20px; }
.faq-answer li { margin-bottom: 8px; color: var(--gray-600); line-height: 1.7; }
.faq-answer strong { color: var(--dark); }

/* FAQ responsive */
@media (max-width: 768px) {
  .faq-question { font-size: .9rem; padding: 16px 18px; }
  .faq-answer > * { padding: 0 18px; }
  .faq-tab { padding: 8px 16px; font-size: .8rem; }
}

/* ===== Why Choose Us - Image Cards ===== */
.why-card {
  position: relative;
  border-radius: 14px; overflow: hidden;
  border: none;
  min-height: 320px;
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
}
.why-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,30,60,.92) 0%, rgba(0,30,60,.5) 60%, rgba(0,30,60,.2) 100%);
}
.why-card-content {
  position: relative; z-index: 2;
  padding: 28px; text-align: center; width: 100%;
  display: flex; flex-direction: column; align-items: center;
}
.why-card-content .why-icon {
  width: 56px; height: 56px; margin: 0 auto 18px;
  background: rgba(212,175,112,.15); border: 1px solid rgba(212,175,112,.3);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.why-card-content .why-icon svg { width: 26px; height: 26px; }
.why-card-content h3 {
  color: var(--white); font-size: 1.15rem; font-weight: 700;
  margin-bottom: 10px;
  min-height: 2.6em;
  display: flex; align-items: center; justify-content: center;
  line-height: 1.3;
}
.why-card-content p {
  color: rgba(255,255,255,.75); font-size: .88rem; line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.why-card:hover .why-card-overlay {
  background: linear-gradient(to top, rgba(0,30,60,.95) 0%, rgba(0,30,60,.6) 60%, rgba(0,30,60,.3) 100%);
}

/* ===== About Gallery ===== */
.about-gallery { padding: 50px 20px 80px; max-width: 1200px; margin: 0 auto; }
.about-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.about-gallery-item {
  position: relative; border-radius: 12px; overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.about-gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.about-gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(0,30,60,.85), transparent);
  color: var(--white); font-size: .85rem; font-weight: 600;
}

/* ===== Contact Factory Banner ===== */
.contact-factory-banner {
  position: relative; border-radius: 14px; overflow: hidden;
  margin-bottom: 40px; max-width: 1200px; margin-left: auto; margin-right: auto;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
}
.contact-factory-banner img { width: 100%; height: 420px; object-fit: cover; display: block; }
.contact-factory-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,30,60,.75) 0%, rgba(0,51,102,.45) 100%);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 50px;
}
.contact-factory-overlay h3 {
  color: var(--white); font-size: 2rem; font-weight: 700;
  margin-bottom: 10px; letter-spacing: .5px;
}
.contact-factory-overlay p {
  color: rgba(255,255,255,.85); font-size: 1.05rem;
  max-width: 500px; line-height: 1.6;
}

/* Responsive */
@media (max-width: 968px) {
  .about-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .about-gallery-grid { grid-template-columns: 1fr; }
  .contact-factory-overlay { padding: 0 20px; }
  .contact-factory-overlay h3 { font-size: 1.2rem; }
}

/* ===== About Split Layout ===== */
.about-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
  align-items: center; margin-bottom: 60px;
}
.about-split.reverse .about-split-text { order: 2; }
.about-split.reverse .about-split-img { order: 1; }
.about-split-text h2 { color: var(--dark); font-size: 1.8rem; margin-bottom: 16px; }
.about-split-text p { color: var(--gray-600); line-height: 1.8; margin-bottom: 14px; }
.about-split-text .section-eyebrow { margin-bottom: 8px; }
.about-split-img {
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.08), 0 12px 40px rgba(0,51,102,.06);
  aspect-ratio: 4/3;
}
.about-split-img img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 768px) {
  .about-split { grid-template-columns: 1fr; gap: 25px; }
  .about-split.reverse .about-split-text { order: 1; }
  .about-split.reverse .about-split-img { order: 2; }
}

/* ===== Home Latest News — Magazine Layout ===== */
.home-news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  padding: 0;
}

/* Featured article (left) */
.news-featured {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  min-height: 440px;
  background: var(--dark);
  transition: box-shadow .35s ease;
}
.news-featured:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
}
.news-featured-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.news-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.news-featured:hover .news-featured-img img {
  transform: scale(1.06);
}
.news-featured::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,51,102,.92) 0%, rgba(0,51,102,.35) 50%, transparent 100%);
}
.news-featured-body {
  position: relative;
  z-index: 1;
  padding: 40px 35px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 440px;
}
.news-featured-body .news-card-date {
  color: var(--gold-light);
}
.news-featured-title {
  color: #fff;
  font-size: 1.6rem;
  line-height: 1.35;
  margin: 10px 0 12px;
}
.news-featured-desc {
  color: rgba(255,255,255,.75);
  font-size: .95rem;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-featured-link {
  color: var(--gold-light);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .5px;
  transition: color .25s;
}
.news-featured:hover .news-featured-link {
  color: #fff;
}

/* Side articles (right) */
.news-side-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.news-side-item {
  display: flex;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  flex: 1;
}
.news-side-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(-4px);
  border-color: var(--gold);
}
.news-side-thumb {
  width: 110px;
  min-height: 110px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--gray-100);
}
.news-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.news-side-item:hover .news-side-thumb img {
  transform: scale(1.08);
}
.news-side-body {
  padding: 12px 16px 12px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-card-date {
  font-size: .75rem;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.news-side-title {
  color: var(--dark);
  font-size: .98rem;
  margin: 4px 0 4px;
  line-height: 1.35;
}
.news-side-desc {
  color: var(--gray-500);
  font-size: .82rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .home-news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .news-featured { min-height: 320px; }
  .news-featured-body { min-height: 320px; padding: 28px 22px; }
  .news-featured-title { font-size: 1.35rem; }
  .news-side-thumb { width: 100px; }
}

/* ===== Home Certificates (uses cert-carousel styles) ===== */

/* ===== News Layout with Sidebar ===== */
.news-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 30px 0;
}
.news-sidebar {
  position: sticky;
  top: 130px;
  align-self: start;
}
.news-sidebar h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}
.news-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.news-sidebar li {
  padding: 10px 16px;
  margin-bottom: 4px;
  font-size: .9rem;
  color: var(--gray-600);
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition);
}
.news-sidebar li:hover {
  background: var(--gray-100);
  color: var(--dark);
}
.news-sidebar li.active {
  background: var(--dark);
  color: var(--white);
  font-weight: 500;
}
@media (max-width: 768px) {
  .news-layout { grid-template-columns: 1fr; }
  .news-sidebar { position: static; }
  .news-sidebar ul { display: flex; flex-wrap: wrap; gap: 8px; }
  .news-sidebar li { margin-bottom: 0; }
}
