/* ========================================
   H Group Med - Main Stylesheet
   ======================================== */

/* CSS Variables - Light Mid-Tone Theme */
:root {
    --primary: #1a3a5c;
    --primary-dark: #14304d;
    --primary-light: #2a5a8c;
    --accent: #2980b9;
    --accent-light: #3498db;
    --text: #2c3e50;
    --text-light: #5a6a7a;
    --text-muted: #8a95a0;
    --bg: #f5f7fa;
    --bg-light: #edf0f4;
    --bg-alt: #ffffff;
    --bg-dark: #1a2332;
    --card-bg: #ffffff;
    --card-border: #e2e6ea;
    --card-border-hover: rgba(201, 168, 76, 0.5);
    --header-bg: rgba(255, 255, 255, 0.45);
    --footer-bg: #1a2332;
    --border: rgba(0, 0, 0, 0.08);
    --border-light: #d0d5dc;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius: 10px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
    --header-height: 70px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #c9a84c;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

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

/* ========================================
   Header
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 20px;
}

/* Logo */
.site-logo {
    position: relative;
    z-index: 0;
    flex-shrink: 0;
    width: 140px;
    height: var(--header-height);
}

.logo-img {
    height: 100px;
    width: auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 0;
}
.logo-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 1.5px;
    color: var(--primary);
}

.logo-sub {
    font-weight: 500;
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
    border-radius: 6px;
    white-space: nowrap;
}

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

.dropdown-arrow {
    font-size: 0.6em;
    opacity: 0.5;
    transition: transform 0.2s;
}

.nav-item.has-dropdown:hover .dropdown-arrow,
.nav-item.has-mega-menu:hover .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* Header CTA */
.header-cta {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: #c9a84c;
    color: white !important;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.header-cta:hover {
    background: var(--primary-dark);
    color: white !important;
    transform: translateY(-1px);
}

/* ========================================
   Simple Dropdown (Services)
   ======================================== */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 280px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    padding: 8px 0;
    border: 1px solid rgba(0,0,0,0.06);
    z-index: 100;
}

/* Dropdown arrow indicator */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: white;
    border-top: 1px solid rgba(0,0,0,0.06);
    border-left: 1px solid rgba(0,0,0,0.06);
    transform: translateX(-50%) rotate(45deg);
    z-index: 1;
}

.nav-item.has-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 400;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}

.dropdown-menu li a:hover {
    background: var(--bg-light);
    color: var(--primary);
    border-left-color: #c9a84c;
    padding-left: 22px;
}

/* ========================================
   Mega Menu (Products)
   ======================================== */
.mega-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    transform: translateY(6px);
    width: 720px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    border: 1px solid var(--border);
    z-index: 100;
    overflow: hidden;
}

.mega-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 70px;
    transform: rotate(45deg);
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
    z-index: 1;
}

.nav-item.has-mega-menu:hover > .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-inner {
    display: flex;
    flex-wrap: nowrap;
}

/* Left: Category tabs */
.mega-categories {
    width: 240px;
    flex-shrink: 0;
    background: var(--bg);
    padding: 12px 0;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.mega-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}

.mega-cat:hover,
.mega-cat.active {
    background: rgba(26, 58, 92, 0.08);
    color: var(--primary);
    border-left-color: var(--primary);
}

.mega-cat-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.mega-cat-icon svg {
    width: 100%;
    height: 100%;
}

/* Right: Product list */
.mega-products {
    flex: 1;
    padding: 20px 24px;
    min-height: 240px;
    position: relative;
}

.mega-product-group {
    display: none;
}

.mega-product-group.active {
    display: block;
}

.mega-product-group h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

.mega-product-group ul {
    list-style: none;
}

.mega-product-group li {
    margin-bottom: 2px;
}

.mega-product-group li a {
    display: block;
    padding: 8px 12px;
    color: var(--text);
    font-size: 0.88rem;
    border-radius: 6px;
    transition: all 0.15s;
}

.mega-product-group li a:hover {
    background: var(--bg-light);
    color: var(--primary);
    padding-left: 16px;
}

/* Mega footer link */
.mega-footer {
    border-top: 1px solid var(--border);
    padding: 12px 24px;
    text-align: right;
    background: var(--bg);
}

.mega-footer a {
    font-size: 0.85rem;
    font-weight: 600;
    color: #c9a84c;
}

.mega-footer a:hover {
    color: var(--primary);
}

/* Ensure mega menu positions relative to the nav item */
.nav-item.has-mega-menu {
    position: relative;
}

/* ========================================
   Mobile Toggle
   ======================================== */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    background: linear-gradient(180deg, #e8ecf1 0%, #f0f3f7 40%, #f5f7fa 100%);
    color: white;
    overflow: hidden;
    margin-top: var(--header-height);
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: url('/img/factory_hero.jpg') center right/cover no-repeat;
    opacity: 0.55;
    z-index: 0;
    animation: hero-cloud-drift 25s ease-in-out infinite alternate;
}

@keyframes hero-cloud-drift {
    0% {
        transform: scale(1) translate(0, 0);
    }
    33% {
        transform: scale(1.08) translate(-4%, 2%);
    }
    66% {
        transform: scale(1.12) translate(-6%, -2%);
    }
    100% {
        transform: scale(1.08) translate(-2%, 4%);
    }
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(245, 247, 250, 0.98) 0%, rgba(245, 247, 250, 0.92) 25%, rgba(245, 247, 250, 0.6) 55%, rgba(245, 247, 250, 0.1) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    padding: 40px 20px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 800;
    color: #1a2a3a;
    margin-bottom: 0.75rem;
    letter-spacing: -1px;
    line-height: 1.1;
    max-width: 700px;
}

.hero .hero-tagline {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    color: #c9a84c;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 8px rgba(201, 168, 76, 0.2);
}

.hero .hero-sub {
    font-size: clamp(0.85rem, 1.5vw, 1.1rem);
    color: var(--primary);
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0.85;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-weight: 300;
    max-width: 550px;
    line-height: 1.8;
}

.hero .badge {
    display: inline-block;
    background: rgba(26, 58, 92, 0.08);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(26, 58, 92, 0.2);
    color: var(--primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 58, 92, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border-light);
}

.btn-secondary:hover {
    border-color: #c9a84c;
    color: #c9a84c;
}

.btn-outline {
    background: transparent;
    color: #c9a84c;
    border: 2px solid #c9a84c;
}

.btn-outline:hover {
    background: #c9a84c;
    color: white;
}

.btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 100px 0;
}

.section-alt {
    background: #ffffff;
}

.section-dark {
    background: var(--bg-dark);
    color: white;
}

.section-dark h2,
.section-dark h3 {
    color: white;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.section-dark .section-header p {
    color: rgba(255,255,255,0.6);
}

/* ========================================
   Cards
   ======================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--card-border);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--card-border-hover);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-light);
}

.card-body {
    padding: 24px;
}

.card-body h3 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.card-body p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.card-body .btn {
    margin-top: 12px;
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* Product Category Card */
.category-card {
    text-align: center;
    padding: 40px 24px;
}

.category-card h3 {
    font-size: 1.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-card ul {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.category-card ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text);
}

.category-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: #c9a84c;
    border-radius: 50%;
}

/* Business unit cards */
.card-bg-honggu, .card-bg-hongchuang, .card-bg-hongye, .card-bg-newmat {
    position: relative;
    overflow: hidden;
}

.category-card .icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: rgba(26, 58, 92, 0.08);
    border: 1px solid rgba(26, 58, 92, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
}

/* ========================================
   Stats Section
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 30px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #c9a84c;
    line-height: 1;
    margin-bottom: 0.5rem;
}

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

/* ========================================
   Product Page
   ======================================== */
.product-hero {
    background: linear-gradient(180deg, #e8ecf1, #f5f7fa);
    color: var(--text);
    padding: 120px 0 60px;
    margin-top: var(--header-height);
    text-align: center;
}

.product-hero h1 {
    color: var(--text);
    font-size: 2.5rem;
}

.product-hero .breadcrumb {
    margin-bottom: 1rem;
    opacity: 0.8;
    font-size: 0.9rem;
}

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

.product-hero .breadcrumb a:hover {
    color: var(--primary-dark);
}

.product-detail {
    padding: 60px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.product-image-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.product-image-main img {
    width: 100%;
    height: auto;
}

.product-info h2 {
    margin-bottom: 1rem;
}

.product-info .product-sku {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-info .product-desc {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.product-features {
    list-style: none;
    margin-bottom: 2rem;
}

.product-features li {
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-light);
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* ========================================
   Page Header (for inner pages)
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 100px 0 50px;
    margin-top: var(--header-height);
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.page-header p {
    opacity: 0.85;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-header .product-count {
    display: inline-block;
    margin-top: 16px;
    padding: 6px 16px;
    background: rgba(255,255,255,0.15);
    border-radius: 50px;
    font-size: 0.85rem;
    color: white;
    font-weight: 500;
}

.breadcrumb-nav {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

.breadcrumb-nav a {
    color: rgba(255,255,255,0.8);
}

.breadcrumb-nav a:hover {
    color: white;
}

/* ========================================
   Content Layout
   ======================================== */
.content-area {
    padding: 60px 0;
}

.content-area .container {
    max-width: 900px;
}

.content-area h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.content-area h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-area img {
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

/* ========================================
   Certifications
   ======================================== */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.cert-item {
    padding: 30px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cert-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.25) 0%, rgba(201, 168, 76, 0.08) 40%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.cert-item:hover::after {
    width: 300px;
    height: 300px;
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(201, 168, 76, 0.3), 0 0 60px rgba(201, 168, 76, 0.15);
}

.cert-item img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 15px;
    position: relative;
    z-index: 2;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.cert-item:hover img {
    filter: brightness(1.1) drop-shadow(0 0 8px rgba(201, 168, 76, 0.5));
    transform: scale(1.05);
}

.cert-item h4 {
    color: var(--primary);
}

/* ========================================
   News & Academic List
   ======================================== */
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.article-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.article-card .article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-light);
}

.article-card .article-body {
    padding: 24px;
}

.article-card .article-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.article-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.article-card h3 a {
    color: var(--text);
}

.article-card h3 a:hover {
    color: var(--primary);
}

.article-card .excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    list-style: none;
}

.pagination li a,
.pagination li span {
    display: block;
    padding: 10px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.9rem;
    transition: var(--transition);
}

.pagination li a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination .active span {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ========================================
   Contact Form
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-list {
    list-style: none;
}

.contact-info-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-info-list .icon {
    font-size: 1.25rem;
    min-width: 30px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-size: 1rem;
    margin-bottom: 16px;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* ========================================
   About Page
   ======================================== */
/* About Content (homepage) */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* Who We Are Section (about page) */
.who-we-are {
    margin-bottom: 60px;
}

.who-we-are-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 16px;
}

.who-we-are-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.who-we-are-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* Text side with accent line */
.who-we-are-text {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.who-we-are-text .text-accent {
    width: 4px;
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--accent), var(--primary));
    border-radius: 2px;
}

.who-we-are-text .text-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.who-we-are-text .text-body p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text);
    margin: 0;
}

/* Image side with floating accent box */
.who-we-are-image {
    position: relative;
}

.who-we-are-image .image-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.who-we-are-image .image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.who-we-are-image .image-accent-box {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--primary);
    color: white;
    padding: 18px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.who-we-are-image .image-accent-box .accent-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
}

.who-we-are-image .image-accent-box .accent-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    opacity: 0.9;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(180deg, #edf0f4, #e8ecf1);
    color: var(--text);
    text-align: center;
    padding: 100px 0;
    border-top: 2px solid rgba(201, 168, 76, 0.3);
    border-bottom: 1px solid var(--border);
}

.cta-section h2 {
    color: var(--text);
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding: 60px 0 40px;
}

/* Footer Brand */
.footer-brand {
    padding-right: 20px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    background: var(--primary-light);
    color: white;
}

.footer-logo .logo-text {
    color: white;
}

.footer-logo .logo-sub {
    color: rgba(255,255,255,0.4);
}

/* CEO Photo in Footer */
.ceo-photo-wrap {
    margin-bottom: 18px;
    text-align: left;
}

.ceo-photo {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Footer CEO Quote */
.footer-quote {
    font-family: 'Dancing Script', cursive;
    font-size: 1.25rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 6px 0;
    line-height: 1.8;
    letter-spacing: 0.8px;
}

.footer-quote .quote-line {
    display: block;
}

.footer-quote-author {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 16px 0;
    font-style: italic;
    text-align: left;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s;
}

.social-icon:hover {
    background: var(--primary-light);
    color: white;
    transform: translateY(-2px);
}

/* Footer Link Columns */
.footer-links h4,
.footer-contact h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: white;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

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

.footer-links li {
    margin-bottom: 6px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    transition: all 0.2s;
    display: inline-block;
    padding: 3px 0;
}

.footer-links a:hover {
    color: white;
    transform: translateX(4px);
}

/* Footer Contact */
.footer-contact ul {
    list-style: none;
    margin-bottom: 20px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
}

.contact-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary-light);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.55);
}

.footer-contact a:hover {
    color: white;
}

.footer-cta-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary);
    color: white !important;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s;
}

.footer-cta-btn:hover {
    background: var(--primary-light);
    color: white !important;
    transform: translateY(-1px);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.4);
}

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

.footer-legal .divider {
    color: rgba(255, 255, 255, 0.15);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-detail-grid,
    .contact-grid,
    .about-content,
    .who-we-are-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .who-we-are-text .text-accent {
        width: 3px;
    }

    .who-we-are-image .image-accent-box {
        bottom: -12px;
        left: -8px;
        padding: 14px 18px;
    }

    .who-we-are-image .image-accent-box .accent-number {
        font-size: 1.5rem;
    }

    .mega-menu {
        width: 540px;
    }

    .mega-categories {
        width: 180px;
    }

    .mega-product-group li a {
        font-size: 0.82rem;
        padding: 6px 10px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .mobile-toggle {
        display: flex;
    }

    .header-cta {
        display: none;
    }

    .logo-img {
        height: 80px;
    }
    
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: #ffffff;
        padding: 16px 0;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        z-index: 999;
    }
    
    .main-nav.active {
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }
    
    .nav-item > a {
        padding: 14px 24px;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
        font-size: 1rem;
    }

    .nav-item > a:hover {
        background: var(--bg-light);
        color: var(--primary);
    }
    
    /* Mobile dropdowns: simple accordion */
    .dropdown-menu,
    .mega-menu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        display: none;
        background: var(--bg);
    }

    .dropdown-menu::before,
    .mega-menu::before {
        display: none;
    }
    
    .nav-item.has-dropdown.open > .dropdown-menu,
    .nav-item.has-mega-menu.open > .mega-menu {
        display: block;
    }

    /* Mobile mega menu layout */
    .mega-inner {
        flex-direction: column;
    }

    .mega-categories {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding: 10px 16px;
        border-right: none;
        border-bottom: 1px solid var(--border);
        gap: 4px;
    }

    .mega-cat {
        padding: 8px 14px;
        border-left: none;
        border-bottom: 2px solid transparent;
        border-radius: 6px;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .mega-cat:hover,
    .mega-cat.active {
        border-left-color: transparent;
        border-bottom-color: var(--primary);
        background: rgba(26, 58, 92, 0.08);
    }

    .mega-products {
        padding: 16px 20px;
        min-height: auto;
    }

    .mega-product-group li a {
        padding: 10px 12px;
    }

    .mega-footer {
        padding: 12px 20px;
        text-align: center;
    }
    
    .hero {
        min-height: 70vh;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }

    /* Footer mobile */
    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 0 30px;
    }

    .footer-brand {
        padding-right: 0;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-desc {
        text-align: center;
    }

    .footer-links h4,
    .footer-contact h4 {
        text-align: center;
    }

    .footer-links a {
        text-align: left;
    }

    .footer-contact {
        text-align: center;
    }

    .footer-contact li {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 16px 0;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 50px 0;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .nav-item > a {
        padding: 13px 20px;
        font-size: 0.95rem;
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }


/* ========================================
   Product Detail Page (Enhanced)
   ======================================== */
.product-detail-wrapper {
    padding: 60px 0 100px;
}

.product-main-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 80px;
}

/* Product Image Gallery */
.product-image-gallery {
    position: sticky;
    top: calc(var(--header-height) + 30px);
}

.product-main-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--bg-light), var(--bg));
    box-shadow: var(--shadow-lg);
}

.product-main-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
}

.product-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.product-thumbnail {
    width: 70px;
    height: 70px;
    border-radius: var(--radius);
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    background: var(--bg-light);
}

.product-thumbnail:hover,
.product-thumbnail.active {
    border-color: var(--primary);
}

/* Product Info Panel */
.product-info-panel {
    padding-top: 10px;
}

.product-category-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(26, 58, 92, 0.08);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.product-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.2;
}

.product-summary {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.product-cta-area {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.product-cta-area .btn {
    width: 100%;
    justify-content: center;
}

/* Key Features Section */
.product-features-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 28px;
    background: var(--primary);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: rgba(201, 168, 76, 0.4);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.feature-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.feature-content p {
    font-size: 0.88rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* Specifications Table */
.product-specs-section {
    margin-bottom: 60px;
}

.specs-table-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.specs-table th,
.specs-table td {
    padding: 16px 20px;
    text-align: left;
}

.specs-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    width: 35%;
}

.specs-table td {
    font-size: 0.95rem;
    color: var(--text);
}

.specs-table tr:nth-child(even) td {
    background: var(--bg-light);
}

.specs-table tr:hover td {
    background: rgba(201, 168, 76, 0.05);
}

/* Applications Tags */
.product-applications-section {
    margin-bottom: 60px;
}

.applications-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.application-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text);
    transition: var(--transition);
}

.application-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.application-tag .tag-icon {
    font-size: 0.8rem;
    color: var(--primary);
}

.application-tag:hover .tag-icon {
    color: white;
}

/* Certifications Section */
.product-certs-section {
    margin-bottom: 60px;
}

.cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.cert-badge:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.cert-badge-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.cert-badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

/* Related Products */
.related-products-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--border);
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.related-product-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}

.related-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 168, 76, 0.4);
}

.related-product-card .card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--bg-light), var(--bg));
}

.related-product-card .card-body {
    padding: 16px;
}

.related-product-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.related-product-card h4 a {
    color: var(--text);
}

.related-product-card h4 a:hover {
    color: var(--primary);
}

.related-product-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   Product Category Page (Enhanced)
   ======================================== */
.category-hero {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, #e8ecf1 0%, #f0f3f7 40%, #f5f7fa 100%);
    margin-top: var(--header-height);
    overflow: hidden;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
    z-index: 0;
}

.category-hero .container {
    position: relative;
    z-index: 1;
}

.category-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}

.category-hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.category-hero .product-count {
    display: inline-block;
    margin-top: 16px;
    padding: 6px 16px;
    background: rgba(26, 58, 92, 0.08);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
}

.category-content {
    padding: 60px 0 100px;
}

.category-description {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 168, 76, 0.4);
}

.product-card .card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--bg-light), var(--bg));
    display: block;
}

.product-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card .card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.product-card h3 a {
    color: var(--text);
}

.product-card h3 a:hover {
    color: var(--primary);
}

.product-card .product-excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .btn {
    align-self: flex-start;
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* ========================================
   Products Overview Page (Enhanced)
   ======================================== */
.products-overview {
    padding: 60px 0 100px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-entry-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.category-entry-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 168, 76, 0.4);
}

.category-entry-card .card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--bg-light), var(--bg));
}

.category-entry-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-entry-card .card-body {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-entry-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.category-entry-card h3 a {
    color: var(--text);
}

.category-entry-card h3 a:hover {
    color: var(--primary);
}

.category-entry-card .category-excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.category-entry-card .meta-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.category-entry-card .product-count-badge {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.category-entry-card .explore-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #c9a84c;
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-entry-card .explore-link:hover {
    color: var(--primary);
}

/* ========================================
   Services Page (Enhanced)
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 168, 76, 0.4);
}

.service-card .service-card-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #e8ecf1;
}

.service-card .service-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card .card-body {
    padding: 20px 24px 24px;
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.service-card h3 a {
    color: var(--text);
}

.service-card h3 a:hover {
    color: var(--primary);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-card .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Scrolling description animation */
.scrolling-desc {
    overflow: hidden;
    width: 100%;
    text-align: left;
}
.scrolling-desc p {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: scroll-left 24s linear infinite;
}
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Service Detail Page */
.service-detail-content {
    max-width: 900px;
    margin: 0 auto;
}

.service-process {
    margin: 40px 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    counter-reset: step;
}

.process-step {
    position: relative;
    padding: 24px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    counter-increment: step;
}

.process-step::before {
    content: counter(step);
    position: absolute;
    top: -12px;
    left: 20px;
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-step h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text);
}

.process-step p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* ========================================
   About Page (Enhanced)
   ======================================== */
.timeline {
    position: relative;
    padding-left: 40px;
    margin: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), rgba(201, 168, 76, 0.5));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -46px;
    top: 4px;
    width: 14px;
    height: 14px;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
}

.timeline-item .year {
    font-size: 0.85rem;
    font-weight: 700;
    color: #c9a84c;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.timeline-item h4 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 8px;
}

.timeline-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.value-card {
    padding: 28px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 168, 76, 0.4);
}

.value-card .value-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
}

.value-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text);
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.factory-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.factory-stat {
    text-align: center;
    padding: 32px 20px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.factory-stat:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(201, 168, 76, 0.4);
}

.factory-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.factory-stat .stat-unit {
    font-size: 1.2rem;
    font-weight: 700;
    color: #c9a84c;
}

.factory-stat .stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 8px;
}

/* ========================================
   Certifications Page (Enhanced)
   ======================================== */
/* ===== Certifications Grid ===== */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}
@media (max-width: 992px) {
    .certifications-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .certifications-grid { grid-template-columns: 1fr; }
}

.cert-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px 28px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}
.cert-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0;
    transition: var(--transition);
}
.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 168, 76, 0.3);
}
.cert-card:hover::before { opacity: 1; }

/* Badge Circle */
.cert-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 18px;
}
.cert-badge-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border: 3px solid rgba(201, 168, 76, 0.35);
    transition: var(--transition);
}
.cert-card:hover .cert-badge-circle {
    border-color: var(--accent);
    box-shadow: 0 0 0 6px rgba(201, 168, 76, 0.12);
}
.cert-badge-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Badge Icons */
.ce-logo {
    width: 50px;
    height: 30px;
}
.cert-badge-iso,
.cert-badge-iec {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
}
.cert-patent-icon {
    width: 32px;
    height: 32px;
}

/* Card Content */
.cert-card h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    color: var(--text);
    font-weight: 700;
}
.cert-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.25);
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.cert-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
    text-align: left;
}

/* ========================================
   Responsive Updates
   ======================================== */
@media (max-width: 1024px) {
    .product-main-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-image-gallery {
        position: static;
    }
}

@media (max-width: 768px) {
    .product-detail-wrapper {
        padding: 40px 0 60px;
    }
    
    .product-title {
        font-size: 1.6rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .related-products-section {
        margin-top: 60px;
        padding-top: 40px;
    }
    
    .related-products-grid {
        grid-template-columns: 1fr;
    }
    
    .category-hero {
        height: 280px;
    }
    
    .category-hero h1 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .factory-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .factory-stat .stat-number {
        font-size: 2rem;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .factory-stats {
        grid-template-columns: 1fr;
    }
    
    .product-thumbnails {
        justify-content: center;
    }
}

/* ========================================
   Product Content Section
   ======================================== */
.product-content-section {
    margin-top: 60px;
}

.product-content-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.product-content-section h2:first-child {
    margin-top: 0;
}

.product-content-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 30px;
    margin-bottom: 16px;
}

.product-content-section ul,
.product-content-section ol {
    margin: 16px 0;
    padding-left: 24px;
}

.product-content-section li {
    margin-bottom: 8px;
    color: var(--text-light);
    line-height: 1.6;
}

.product-content-section strong {
    color: var(--text);
    font-weight: 600;
}

.product-content-section p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.product-content-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.product-content-section table th {
    background: var(--primary);
    color: white;
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.product-content-section table td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.product-content-section table tr:nth-child(even) td {
    background: var(--bg-light);
}

.product-content-section table tr:last-child td {
    border-bottom: none;
}

.product-content-section table tr:hover td {
    background: rgba(201, 168, 76, 0.05);
}

.product-content-section a {
    color: #c9a84c;
    font-weight: 500;
}

.product-content-section a:hover {
    color: var(--primary);
}

/* Production Details Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    animation: gallery-breathe 4s ease-in-out infinite;
}

.gallery-item:hover img {
    animation-play-state: paused;
    opacity: 1 !important;
}

.gallery-item:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

@keyframes gallery-breathe {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

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

/* Services Marquee Scroll */
.services-marquee {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.services-marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
}

.services-marquee:hover .services-marquee-track {
    animation-play-state: paused;
}

.services-scroll-card {
    flex: 0 0 260px;
    min-width: 240px;
}

.services-view-all-card {
    background: linear-gradient(135deg, var(--primary), #24507a);
    border: none;
}

.services-view-all-card .btn-primary {
    background: #c9a84c;
    border-color: #c9a84c;
    color: #fff;
    font-size: 1.1rem;
    padding: 12px 28px;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .services-scroll-card {
        flex: 0 0 220px;
        min-width: 200px;
    }
}

/* Certifications & Patents 3D Carousel */
.cert-carousel-wrapper {
    perspective: 1200px;
    perspective-origin: 50% 50%;
    width: 100%;
    height: 182px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-carousel-carousel {
    position: relative;
    width: 104px;
    height: 143px;
    transform-style: preserve-3d;
    animation: cert-carousel-rotate 40s linear infinite;
}

.cert-carousel-wrapper:hover .cert-carousel-carousel {
    animation-play-state: paused;
}

.cert-carousel-item {
    position: absolute;
    width: 104px;
    height: 130px;
    top: 6px;
    left: 0;
    background: #fff;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(26, 58, 92, 0.10);
    backface-visibility: hidden;
    pointer-events: auto;
    cursor: default;
}

.cert-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

@keyframes cert-carousel-rotate {
    from { transform: rotateY(0deg); }
    to   { transform: rotateY(360deg); }
}

/* 16 items arranged in a circle, each 22.5° apart */
.cert-carousel-item:nth-child(1)  { transform: rotateY(0deg)    translateZ(400px); }
.cert-carousel-item:nth-child(2)  { transform: rotateY(22.5deg) translateZ(400px); }
.cert-carousel-item:nth-child(3)  { transform: rotateY(45deg)   translateZ(400px); }
.cert-carousel-item:nth-child(4)  { transform: rotateY(67.5deg) translateZ(400px); }
.cert-carousel-item:nth-child(5)  { transform: rotateY(90deg)   translateZ(400px); }
.cert-carousel-item:nth-child(6)  { transform: rotateY(112.5deg) translateZ(400px); }
.cert-carousel-item:nth-child(7)  { transform: rotateY(135deg)  translateZ(400px); }
.cert-carousel-item:nth-child(8)  { transform: rotateY(157.5deg) translateZ(400px); }
.cert-carousel-item:nth-child(9)  { transform: rotateY(180deg)  translateZ(400px); }
.cert-carousel-item:nth-child(10) { transform: rotateY(202.5deg) translateZ(400px); }
.cert-carousel-item:nth-child(11) { transform: rotateY(225deg)  translateZ(400px); }
.cert-carousel-item:nth-child(12) { transform: rotateY(247.5deg) translateZ(400px); }
.cert-carousel-item:nth-child(13) { transform: rotateY(270deg)  translateZ(400px); }
.cert-carousel-item:nth-child(14) { transform: rotateY(292.5deg) translateZ(400px); }
.cert-carousel-item:nth-child(15) { transform: rotateY(315deg)  translateZ(400px); }
.cert-carousel-item:nth-child(16) { transform: rotateY(337.5deg) translateZ(400px); }
/* Duplicates (17-32) for seamless loop */
.cert-carousel-item:nth-child(17)  { transform: rotateY(0deg)    translateZ(400px); }
.cert-carousel-item:nth-child(18)  { transform: rotateY(22.5deg) translateZ(400px); }
.cert-carousel-item:nth-child(19)  { transform: rotateY(45deg)   translateZ(400px); }
.cert-carousel-item:nth-child(20)  { transform: rotateY(67.5deg) translateZ(400px); }
.cert-carousel-item:nth-child(21)  { transform: rotateY(90deg)   translateZ(400px); }
.cert-carousel-item:nth-child(22)  { transform: rotateY(112.5deg) translateZ(400px); }
.cert-carousel-item:nth-child(23)  { transform: rotateY(135deg)  translateZ(400px); }
.cert-carousel-item:nth-child(24)  { transform: rotateY(157.5deg) translateZ(400px); }
.cert-carousel-item:nth-child(25)  { transform: rotateY(180deg)  translateZ(400px); }
.cert-carousel-item:nth-child(26)  { transform: rotateY(202.5deg) translateZ(400px); }
.cert-carousel-item:nth-child(27)  { transform: rotateY(225deg)  translateZ(400px); }
.cert-carousel-item:nth-child(28)  { transform: rotateY(247.5deg) translateZ(400px); }
.cert-carousel-item:nth-child(29)  { transform: rotateY(270deg)  translateZ(400px); }
.cert-carousel-item:nth-child(30)  { transform: rotateY(292.5deg) translateZ(400px); }
.cert-carousel-item:nth-child(31)  { transform: rotateY(315deg)  translateZ(400px); }
.cert-carousel-item:nth-child(32)  { transform: rotateY(337.5deg) translateZ(400px); }

@media (max-width: 768px) {
    .cert-carousel-wrapper {
        height: 143px;
        perspective: 520px;
    }
    .cert-carousel-carousel {
        width: 78px;
        height: 110px;
    }
    .cert-carousel-item {
        width: 78px;
        height: 98px;
    }
}

/* Staggered breathing delay for gallery items */
.gallery-item:nth-child(1) img { animation-delay: 0s; }
.gallery-item:nth-child(2) img { animation-delay: 0.5s; }
.gallery-item:nth-child(3) img { animation-delay: 1.0s; }
.gallery-item:nth-child(4) img { animation-delay: 1.5s; }
.gallery-item:nth-child(5) img { animation-delay: 2.0s; }
.gallery-item:nth-child(6) img { animation-delay: 2.5s; }
.gallery-item:nth-child(7) img { animation-delay: 3.0s; }
.gallery-item:nth-child(8) img { animation-delay: 3.5s; }

/* Services scroll cards - blue bullet override */
.services-scroll-card ul li::before {
    background: var(--primary);
}

.services-scroll-card .card-body.category-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.services-scroll-card .card-body.category-card ul {
    margin-top: 10px;
}

.services-scroll-card .card-body.category-card ul li {
    font-size: 0.88rem;
    margin-bottom: 6px;
}

/* ===== Homepage Cert Badges ===== */
.home-cert-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}
.home-cert-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.home-cert-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid rgba(201, 168, 76, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    transition: var(--transition);
}
.home-cert-badge:hover .home-cert-icon {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.15);
    transform: scale(1.08);
}
.home-cert-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
@media (max-width: 768px) {
    .home-cert-badges { gap: 20px; }
    .home-cert-icon { width: 48px; height: 48px; font-size: 0.75rem; }
}
/* ===== Simple Article List (Research & News) ===== */
.article-simple-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.article-simple-list li {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #e8ecef;
}

.article-simple-list li:last-child {
    border-bottom: none;
}

.article-simple-list .article-index {
    color: #5dade2;
    font-weight: 600;
    font-size: 0.95rem;
    margin-right: 12px;
    min-width: 28px;
}

.article-simple-list .article-title {
    color: #1a3a5c;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    flex: 1;
    transition: color 0.2s;
}

.article-simple-list .article-title:hover {
    color: #5dade2;
}

.article-simple-list .article-author {
    color: #666;
    font-size: 0.85rem;
    margin-left: 16px;
    margin-right: 16px;
    white-space: nowrap;
}

.article-simple-list .article-date {
    color: #888;
    font-size: 0.85rem;
    margin-left: auto;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .article-simple-list li {
        flex-wrap: wrap;
        gap: 4px;
    }
    .article-simple-list .article-author {
        margin-left: 0;
        margin-right: 8px;
        font-size: 0.8rem;
    }
    .article-simple-list .article-date {
        font-size: 0.8rem;
    }
}
