/* ============================================
   B2B Website Template - Modern Professional Style
   Inspired by industrial B2B websites
   ============================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --primary-dark: #004c99;
    --secondary-color: #ff6b35;
    --text-color: #2c3e50;
    --text-light: #6c757d;
    --text-white: #ffffff;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    --border-color: #dee2e6;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

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

a:hover {
    color: var(--primary-dark);
}

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

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Top Bar */
.top-bar {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    gap: 25px;
    align-items: center;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar a:hover {
    color: var(--text-white);
}

/* Header */
.site-header {
    background: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    max-height: 60px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
}

.main-nav > ul {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

/* Dropdown */
.main-nav li { position: relative; }
.nav-arrow { font-size: 1.1em; vertical-align: middle; opacity: 1; margin-left: 5px; line-height: 1; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,.16);
    padding: 6px 0 8px;
    list-style: none;
    z-index: 999;
    gap: 0;
    flex-direction: column;
    white-space: nowrap;
    border-top: 3px solid var(--primary-color, #1a3a5c);
}
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -9px; left: 50%; transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: var(--primary-color, #1a3a5c);
    border-top: none;
}
.has-dropdown:hover .dropdown-menu { display: flex; }
.dropdown-menu li { width: 100%; }
.dropdown-menu a {
    display: block;
    font-size: .875rem; font-weight: 500;
    color: #333; text-transform: none; letter-spacing: 0;
    text-decoration: none; transition: background .15s, color .15s;
}
.dropdown-menu a::after { display: none; }
.dropdown-menu a:hover { background: #f0f4f8; color: var(--primary-color, #1a3a5c); }

/* 层级样式 */
.dropdown-menu .ddepth-0 > a {
    padding: 9px 20px;
    font-weight: 600;
    color: #1a2a3a;
    border-bottom: 1px solid #f0f3f7;
}
.dropdown-menu .ddepth-0:last-of-type > a { border-bottom: none; }
.dropdown-menu .ddepth-1 > a {
    padding: 7px 16px 7px 30px;
    font-size: .84rem; font-weight: 400; color: #555;
    position: relative;
}
.dropdown-menu .ddepth-1 > a::before {
    content: '';
    position: absolute; left: 18px; top: 50%;
    transform: translateY(-50%);
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #c5cdd8;
}
.dropdown-menu .ddepth-2 > a {
    padding: 6px 16px 6px 44px;
    font-size: .82rem; font-weight: 400; color: #777;
    position: relative;
}
.dropdown-menu .ddepth-2 > a::before {
    content: '';
    position: absolute; left: 32px; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 4px;
    border-radius: 50%;
    background: #d8dde4;
}
.dropdown-menu .ddepth-3 > a {
    padding: 5px 16px 5px 58px;
    font-size: .80rem; font-weight: 400; color: #999;
}
.dropdown-menu .ddepth-0 > a:hover,
.dropdown-menu .ddepth-1 > a:hover,
.dropdown-menu .ddepth-2 > a:hover,
.dropdown-menu .ddepth-3 > a:hover { background: #f0f4f8; color: var(--primary-color, #1a3a5c); }

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-color);
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e9ecef 100%);
    padding: 80px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: var(--text-color);
    font-weight: 800;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 32px;
    line-height: 1.8;
}

/* Banner Slider */
.banner-slider {
    position: relative;
    overflow: hidden;
}

.banner-slide {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
}

.banner-slide img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    opacity: 0.7;
}

.banner-content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    z-index: 10;
    padding: 40px;
    max-width: 52%;
}

/* 左边 (default) */
.banner-content--left {
    left: 8%;
    right: auto;
    text-align: left;
}

/* 右边 */
.banner-content--right {
    right: 8%;
    left: auto;
    text-align: right;
}

/* 中间 */
.banner-content--center {
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 900px;
}

.banner-content h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    font-weight: 800;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.banner-content p {
    font-size: 1.5rem;
    margin-bottom: 32px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.banner-content .btn {
    animation: fadeInUp 0.8s ease 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slider Controls */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--text-white);
    width: 32px;
    border-radius: 6px;
}

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

section.bg-light {
    background: var(--bg-light);
}

section h2 {
    font-size: 2.75rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-color);
    font-weight: 800;
    position: relative;
    padding-bottom: 20px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

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

/* Grid Layouts */
.advantage-grid,
.certification-grid,
.service-grid,
.team-grid,
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 60px;
}

/* partner-grid kept for back-compat but unused */
.partner-grid { display: none; }

/* Cards */
.advantage-card,
.certification-card,
.service-card,
.team-card,
.gallery-item {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.advantage-card::before,
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.advantage-card:hover,
.certification-card:hover,
.service-card:hover,
.team-card:hover,
.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.advantage-card:hover::before,
.service-card:hover::before {
    transform: scaleX(1);
}

.advantage-card img,
.service-card img,
.team-card img,
.gallery-item img {
    margin: 0 auto 24px;
    max-height: 180px;
    object-fit: contain;
    transition: var(--transition);
}

/* Certification card — image-focused */
.certification-card--has-img {
    padding: 0;
    cursor: pointer;
    overflow: hidden;
}
.cert-img-wrap {
    position: relative;
    overflow: hidden;
    background: #f8f8f8;
    border-radius: 10px 10px 0 0;
}
.cert-img-wrap img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: contain;
    transition: transform 0.35s ease;
    margin: 0;
    max-height: none;
    padding: 12px;
    box-sizing: border-box;
}
.certification-card--has-img:hover .cert-img-wrap img {
    transform: scale(1.06);
}
.cert-zoom-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    color: #fff;
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: 10px 10px 0 0;
}
.certification-card--has-img:hover .cert-zoom-icon {
    opacity: 1;
}
.certification-card--has-img h3 {
    padding: 14px 18px 4px;
    font-size: 1.1rem;
}
.certification-card--has-img p {
    padding: 0 18px 18px;
}

.advantage-card:hover img,
.service-card:hover img {
    transform: scale(1.05);
}

.advantage-card h3,
.certification-card h3,
.service-card h3,
.team-card h3 {
    margin-bottom: 16px;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.advantage-card p,
.certification-card p,
.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 15px;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.stat-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 0;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: center;
}

.timeline-year {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Reviews */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.review-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition);
    position: relative;
}
.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.review-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.review-stars { display: flex; gap: 2px; }
.review-star { font-size: 1.1rem; color: #d1d5db; line-height: 1; }
.review-star.filled { color: #f59e0b; }

.review-quote-icon {
    font-size: 3rem;
    line-height: 1;
    color: var(--primary-color);
    opacity: 0.18;
    font-family: Georgia, serif;
    margin-top: -8px;
}

.review-content {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-color);
    flex: 1;
    margin: 0;
}

.review-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-meta { min-width: 0; }

.review-author {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-role {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 2px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Partner Marquee */
.partner-marquee-wrapper {
    overflow: hidden;
    margin-top: 48px;
    padding: 8px 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.partner-marquee-track {
    display: flex;
    align-items: center;
    gap: 24px;
    width: max-content;
    animation: partnerScroll 30s linear infinite;
}

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

@keyframes partnerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.partner-logo-item {
    flex-shrink: 0;
    width: 160px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 20px;
    box-sizing: border-box;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.partner-logo-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.partner-logo-item img {
    max-height: 56px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.65;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner-logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.contact-text h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.contact-text p {
    color: var(--text-light);
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    background: var(--bg-color);
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

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

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(0,0,0,0.12) 100%);
    pointer-events: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
    color: white;
}

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

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

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.cta-section h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 16px;
}

.cta-section h2::after {
    background: rgba(255, 255, 255, 0.3);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 32px;
    font-size: 1.25rem;
}

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

.cta-section .btn-primary:hover {
    background: var(--bg-light);
}

/* Footer */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.9);
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 60px;
}

.footer-section h3 {
    margin-bottom: 24px;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    display: inline-block;
}

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

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 12px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 18px;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Page Banner */
.page-banner {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.page-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-overlay h1 {
    color: white;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-header {
    background: var(--bg-light);
    padding: 3rem 0;
    text-align: center;
}

/* Map */
.map-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Video */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    section {
        padding: 60px 0;
    }
    
    .banner-content h1 {
        font-size: 3rem;
    }
    
    .banner-slide {
        min-height: 500px;
    }
    
    .banner-slide img {
        height: 500px;
    }
    
    .main-nav > ul {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        justify-content: center;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-color);
        box-shadow: var(--shadow-lg);
        padding: 20px;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav > ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav li {
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }
    
    .main-nav a {
        display: block;
        padding: 15px 0;
    }
    
    .main-nav a::after {
        display: none;
    }

    /* Mobile dropdown */
    .dropdown-menu {
        display: none; position: static; transform: none;
        box-shadow: none; border-radius: 0; border-top: none;
        background: #f8fafc; padding: 0;
        min-width: 100%;
    }
    .dropdown-menu::before { display: none; }
    .has-dropdown.mobile-open .dropdown-menu { display: flex; }
    .dropdown-menu .ddepth-0 > a { padding: 11px 24px; font-size: .9rem; border-bottom: 1px solid #e5e9ef; }
    .dropdown-menu .ddepth-1 > a { padding: 9px 24px 9px 38px; font-size: .87rem; }
    .dropdown-menu .ddepth-2 > a { padding: 8px 24px 8px 52px; font-size: .85rem; }
    .dropdown-menu .ddepth-3 > a { padding: 7px 24px 7px 66px; font-size: .83rem; }

    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .contact-grid,
    .timeline-item {
        grid-template-columns: 1fr;
    }
    
    .banner-content h1 {
        font-size: 2.25rem;
    }
    
    .banner-content p {
        font-size: 1.125rem;
    }
    
    .banner-slide {
        min-height: 400px;
    }
    
    .banner-slide img {
        height: 400px;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .cta-section h2 {
        font-size: 2.25rem;
    }
    
    .advantage-grid,
    .certification-grid,
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    section {
        padding: 40px 0;
    }
    
    .banner-content,
    .banner-content--left,
    .banner-content--right,
    .banner-content--center {
        left: 0; right: 0;
        top: 50%;
        transform: translateY(-50%);
        text-align: center;
        max-width: 100%;
        padding: 20px 24px;
    }
    
    .banner-content h1 {
        font-size: 1.75rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 12px 28px;
        font-size: 14px;
    }
    
    .advantage-card,
    .certification-card,
    .service-card {
        padding: 24px 20px;
    }
    
    .top-bar {
        font-size: 12px;
    }
    
    .top-bar-left,
    .top-bar-right {
        gap: 15px;
    }
}

/* ============================================================
   Article / Blog Styles
   ============================================================ */

/* Page Hero */
.page-hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color, #1a3a5c) 0%, #2d6a9f 100%);
    background-size: cover;
    background-position: center;
    color: #fff;
    min-height: 260px;
    display: flex;
    align-items: center;
    text-align: center;
}
.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 20, 50, 0.58);
}
.page-hero .container {
    position: relative;
    z-index: 1;
    padding-top: 48px;
    padding-bottom: 36px;
    width: 100%;
}
.page-hero h1 { font-size: 2.2rem; margin-bottom: 12px; color: #fff; }
.hero-breadcrumb {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .85rem; color: rgba(255,255,255,.85);
}
.hero-breadcrumb span { color: rgba(255,255,255,.6); }
.hero-breadcrumb a { color: rgba(255,255,255,.9); text-decoration: none; }
.hero-breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* Breadcrumb Bar (below banner) */
.breadcrumb-bar {
    background: #f5f7fa;
    border-bottom: 1px solid #e8edf2;
    padding: 10px 0;
}
.breadcrumb-bar nav {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .84rem;
    color: #888;
    flex-wrap: wrap;
}
.breadcrumb-bar a { color: var(--primary-color); text-decoration: none; }
.breadcrumb-bar a:hover { text-decoration: underline; }
.breadcrumb-bar span { color: #bbb; }

/* Blog Section Layout: left sidebar + main */
.blog-section { padding: 56px 0; }
.blog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: start;
}

/* Shared Sidebar */
.blog-sidebar { position: sticky; top: 24px; }
.sidebar-widget {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}
.sidebar-widget-title {
    font-size: .95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e8f0;
    color: #333;
}
.sidebar-category-list { list-style: none; padding: 0; margin: 0; }
.sidebar-category-list li {
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 0; border-bottom: 1px solid #edf0f4; font-size: .9rem;
}
.sidebar-category-list li:last-child { border-bottom: none; }
.sidebar-category-list a { color: #444; text-decoration: none; }
.sidebar-category-list a:hover { color: var(--primary-color, #1a3a5c); }
.sidebar-cat-count {
    background: #e0e8f0; color: #666;
    border-radius: 20px; padding: 1px 7px; font-size: .75rem; flex-shrink: 0;
}
.sidebar-cat-item { font-size: .9rem; }
.sidebar-cat-dash { color: #bbb; margin-right: 3px; font-size: .8rem; }
.sidebar-cat-link { color: #444; text-decoration: none; flex: 1; }
.sidebar-cat-link:hover, .sidebar-cat-link.active { color: var(--primary-color, #1a3a5c); font-weight: 600; }
.sidebar-cat-reset {
    background: none; border: none; cursor: pointer; font-size: .75rem;
    color: #999; padding: 0 4px; margin-left: 6px; line-height: 1;
}
.sidebar-cat-reset:hover { color: #e33; }
.sidebar-products { display: flex; flex-direction: column; gap: 16px; }
.sidebar-product-item,
.sidebar-article-item { display: flex; flex-direction: column; gap: 6px; }
.sidebar-articles { display: flex; flex-direction: column; gap: 16px; }
.sidebar-product-img { display: block; border-radius: 6px; overflow: hidden; }
.sidebar-product-img img { width: 100%; height: 140px; object-fit: cover; transition: opacity .2s; }
.sidebar-product-img:hover img { opacity: .85; }
.sidebar-product-name {
    font-size: .88rem; font-weight: 500; color: #333;
    text-decoration: none; line-height: 1.4;
}
.sidebar-product-name:hover { color: var(--primary-color, #1a3a5c); }
.sidebar-article-img { display: block; border-radius: 6px; overflow: hidden; }
.sidebar-article-img img { width: 100%; height: 100px; object-fit: cover; transition: opacity .2s; }
.sidebar-article-img:hover img { opacity: .85; }
.sidebar-article-name {
    font-size: .88rem; font-weight: 500; color: #333;
    text-decoration: none; line-height: 1.4;
}
.sidebar-article-name:hover { color: var(--primary-color, #1a3a5c); }
.sidebar-article-date { font-size: .75rem; color: #999; }

/* Blog Article List */
.blog-main { min-width: 0; }
.blog-list { display: flex; flex-direction: column; gap: 36px; }
.blog-card {
    border: 1px solid #e8edf2;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s;
}
.blog-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.blog-card-img { display: block; height: 220px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.blog-card:hover .blog-card-img img { transform: scale(1.03); }
.blog-card-img--placeholder { display: flex; align-items: center; justify-content: center; background: #f0f4f8; }
.blog-card-no-img { font-size: .8rem; color: #bbb; }
.blog-card-body { padding: 20px 24px; }
.blog-card-date { font-size: .82rem; color: #999; display: block; margin-bottom: 8px; }
.blog-card-title { font-size: 1.1rem; font-weight: 600; line-height: 1.45; margin-bottom: 10px; }
.blog-card-title a { color: #222; text-decoration: none; }
.blog-card-title a:hover { color: var(--primary-color, #1a3a5c); }
.blog-card-summary {
    font-size: .9rem; color: #666; line-height: 1.65; margin-bottom: 14px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-read-more {
    font-size: .88rem; font-weight: 600;
    color: var(--primary-color, #1a3a5c); text-decoration: none;
}
.blog-read-more:hover { text-decoration: underline; }
.blog-empty { text-align: center; padding: 60px 0; color: #999; font-size: 1rem; }

/* Product Detail Page */
.post-page { padding: 56px 0 72px; }
.post-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 48px;
    align-items: start;
}
.post-main { min-width: 0; }

/* Article Detail */
.post-meta-bar {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    margin-bottom: 18px;
}
.post-date { font-size: .82rem; color: #999; }
.post-cat-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.post-cat-tag {
    font-size: .75rem; font-weight: 600;
    background: var(--primary-color); color: #fff;
    padding: 2px 10px; border-radius: 20px;
    text-decoration: none; transition: opacity 0.2s;
}
.post-cat-tag:hover { opacity: 0.8; }
.post-cover { border-radius: 8px; overflow: hidden; margin-bottom: 28px; }
.post-cover img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.post-content { font-size: .97rem; line-height: 1.85; color: #333; }
.post-content h1, .post-content h2, .post-content h3 { margin: 28px 0 12px; }
.post-content p { margin-bottom: 16px; }
.post-content img { max-width: 100%; border-radius: 6px; margin: 16px 0; }
.post-content a { color: #2d6a9f; }
.post-content ul, .post-content ol { padding-left: 22px; margin-bottom: 16px; }
.post-navigation {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    margin-top: 40px; padding-top: 28px; border-top: 1px solid #e8edf2;
}
.post-nav-item { display: flex; }
.post-nav-next { justify-content: flex-end; }
.post-nav-link {
    display: flex; flex-direction: column; gap: 4px;
    text-decoration: none; padding: 14px 16px;
    border: 1px solid #e8edf2; border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.post-nav-link:hover { border-color: var(--primary-color); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.post-nav-label { font-size: .78rem; color: var(--primary-color); font-weight: 600; }
.post-nav-title { font-size: .88rem; color: #333; font-weight: 500; line-height: 1.4; }
.post-nav-next .post-nav-link { text-align: right; }

/* Related Posts / Products */
.related-posts { margin-top: 48px; padding-top: 32px; border-top: 1px solid #e8edf2; }
.related-posts-title { font-size: 1.15rem; font-weight: 700; color: #1a1a2e; margin-bottom: 20px; }
.related-posts-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.related-post-card {
    display: flex; flex-direction: column;
    border: 1px solid #e8edf2; border-radius: 10px; overflow: hidden;
    text-decoration: none; color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.related-post-card:hover { border-color: var(--primary-color); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.related-post-img { aspect-ratio: 16/9; overflow: hidden; }
.related-post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.related-post-card:hover .related-post-img img { transform: scale(1.04); }
.related-post-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.related-post-title { font-size: .9rem; font-weight: 600; color: #1a1a2e; line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-post-summary { font-size: .8rem; color: #666; line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-post-date { font-size: .75rem; color: #999; margin-top: auto; }
@media (max-width: 768px) { .related-posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .related-posts-grid { grid-template-columns: 1fr; } }

/* Responsive */
@media (max-width: 960px) {
    .blog-layout { grid-template-columns: 1fr; }
    .post-layout { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; }
    .post-title { font-size: 1.6rem; }
}
@media (max-width: 600px) {
    .page-hero h1 { font-size: 1.7rem; }
    .blog-card-img { height: 180px; }
}

/* ============================================================
   Product Page Styles
   ============================================================ */

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.product-card {
    border: 1px solid #e8edf2;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.product-card-img {
    display: block; height: 220px; overflow: hidden; background: #f0f4f8;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card-img--placeholder {
    display: flex; align-items: center; justify-content: center;
}
.product-card-no-img { font-size: .8rem; color: #bbb; }
.product-card-body { padding: 16px; }
.product-card-title { font-size: 1rem; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.product-card-title a { color: #222; text-decoration: none; }
.product-card-title a:hover { color: var(--primary-color, #1a3a5c); }
.product-card-summary {
    font-size: .87rem; color: #666; line-height: 1.6; margin-bottom: 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Product Gallery */
.product-gallery { margin-bottom: 28px; }
.product-gallery-main {
    border: 1px solid #e8edf2; border-radius: 8px; overflow: hidden;
    background: #f8fafc; height: 400px; display: flex; align-items: center; justify-content: center;
}
.product-gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-gallery-thumbs {
    display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap;
}
.product-thumb {
    width: 72px; height: 72px; object-fit: cover; border-radius: 6px;
    border: 2px solid #e8edf2; cursor: pointer; transition: border-color .2s;
}
.product-thumb.active, .product-thumb:hover { border-color: var(--primary-color, #1a3a5c); }

/* Enquiry CTA */
.product-enquiry-cta { margin: 20px 0 32px; }

/* Product Sections */
.product-section-title {
    font-size: 1.3rem; font-weight: 700; color: #1a1a1a;
    margin: 36px 0 16px; padding-bottom: 10px;
    border-bottom: 2px solid #e8edf2;
}
.product-description { margin-bottom: 36px; }
.product-parameters { margin-bottom: 36px; }
.product-params-content {
    background: #f8fafc; border-radius: 8px; padding: 20px;
    overflow-x: auto;
}
.product-params-content table {
    width: 100%; border-collapse: collapse; font-size: .92rem;
}
.product-params-content th, .product-params-content td {
    padding: 10px 14px; border: 1px solid #dde3ea; text-align: left;
}
.product-params-content th { background: #edf2f7; font-weight: 600; color: #333; }
.product-params-content tr:nth-child(even) td { background: #f4f7fa; }

/* Enquiry Form */
.product-enquiry-form {
    background: #f8fafc; border-radius: 10px; padding: 32px;
    margin: 36px 0;
}
.contact-form-group {
    margin-bottom: 1.25rem;
}
.contact-form-label {
    display: block;
    margin-bottom: 6px;
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-color, #333);
}
.contact-required {
    color: #e53e3e;
    margin-left: 2px;
}
.contact-form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d9e0;
    border-radius: 6px;
    font-family: inherit;
    font-size: .95rem;
    color: #333;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}
.contact-form-control:focus {
    outline: none;
    border-color: var(--primary-color, #1a3a5c);
    box-shadow: 0 0 0 3px rgba(26,58,92,.1);
}
.contact-form-control::placeholder { color: #aab; }
textarea.contact-form-control { resize: vertical; min-height: 110px; }
.contact-success {
    padding: 16px; background: #e8f5e9; color: #2e7d32;
    border-radius: 6px; font-size: .95rem; margin-top: 16px;
}

/* ===== Header Search ===== */
.header-search-toggle {
    background: none; border: none; cursor: pointer;
    color: var(--text-color, #333); padding: 6px;
    display: flex; align-items: center; transition: color .2s;
}
.header-search-toggle:hover { color: var(--primary-color, #1a3a5c); }

.header-search-bar {
    display: none;
    background: #fff;
    border-top: 1px solid #e8edf2;
    border-bottom: 3px solid var(--primary-color, #1a3a5c);
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.header-search-bar.active { display: block; }
.header-search-form {
    display: flex; align-items: center;
    gap: 10px; padding: 14px 0;
}
.header-search-input {
    flex: 1; padding: 10px 16px;
    border: 1px solid #d1d9e0; border-radius: 6px;
    font-size: 1rem; font-family: inherit;
    outline: none; transition: border-color .2s;
}
.header-search-input:focus { border-color: var(--primary-color, #1a3a5c); }
.header-search-submit {
    padding: 10px 18px; background: var(--primary-color, #1a3a5c);
    color: #fff; border: none; border-radius: 6px;
    cursor: pointer; display: flex; align-items: center; transition: opacity .2s;
}
.header-search-submit:hover { opacity: .85; }
.header-search-close {
    background: none; border: none; cursor: pointer;
    font-size: 1.2rem; color: #999; padding: 6px 10px; line-height: 1;
}
.header-search-close:hover { color: #333; }

/* ===== Search Page ===== */
.search-page-section { padding: 48px 0 64px; }
.search-page-form {
    display: flex; gap: 12px; max-width: 700px; margin: 0 auto 8px;
}
.search-page-input {
    flex: 1; padding: 12px 18px;
    border: 2px solid #d1d9e0; border-radius: 8px;
    font-size: 1rem; font-family: inherit; outline: none;
    transition: border-color .2s;
}
.search-page-input:focus { border-color: var(--primary-color, #1a3a5c); }
.search-page-btn { padding: 12px 28px; white-space: nowrap; }
.search-tip { color: #888; font-size: .95rem; text-align: center; padding: 32px 0; }
.search-section-title {
    font-size: 1.3rem; margin-bottom: 20px; padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color, #1a3a5c);
    display: inline-block;
}

/* Review stars */

/* Home products grid (4 col) */
.product-grid--home { grid-template-columns: repeat(4, 1fr); }

/* Home blog */
.home-blog-section { background: #fff; }
.blog-list--home { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }

/* Factory environment */
.factory-section h2 { text-align: center; margin-bottom: 32px; }
.factory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.factory-item img { width: 100%; height: 220px; object-fit: cover; border-radius: 8px; }
.factory-item p { text-align: center; margin-top: 8px; font-size: .9rem; color: #666; }

/* Footer social */
.footer-social { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.footer-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,.15); color: #fff;
    font-size: .75rem; font-weight: 700; text-decoration: none;
    transition: background .2s;
}
.footer-social a:hover { background: var(--primary-color, #1a3a5c); }

/* Footer hot articles */
.footer-articles { list-style: none; padding: 0; margin: 0; }
.footer-articles li { padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-articles li:last-child { border-bottom: none; }
.footer-articles a { color: rgba(255,255,255,.8); font-size: .875rem; line-height: 1.4; text-decoration: none; display: block; }
.footer-articles a:hover { color: #fff; }
.footer-article-date { font-size: .78rem; color: rgba(255,255,255,.45); display: block; margin-top: 2px; }

/* Footer contact form section */
.footer-contact-section {
    background: var(--bg-light, #f8fafc);
    padding: 48px 0;
    border-top: 1px solid #e5e9ef;
}
.footer-contact-section h2 {
    text-align: center;
    margin-bottom: 28px;
    font-size: 1.6rem;
}
.footer-contact-form { max-width: 900px; margin: 0 auto; }
.footer-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    align-items: start;
}
.footer-form-group { display: flex; flex-direction: column; }
.footer-form-group--full { grid-column: 1 / -1; }
.footer-form-group--btn { grid-column: span 1; display: flex; align-items: flex-end; }
.footer-form-control {
    width: 100%; padding: 10px 14px;
    border: 1px solid #d1d9e0; border-radius: 6px;
    font-family: inherit; font-size: .95rem; color: #333;
    background: #fff; box-sizing: border-box;
    transition: border-color .2s;
}
.footer-form-control:focus { outline: none; border-color: var(--primary-color, #1a3a5c); }
.footer-form-control::placeholder { color: #aab; }
textarea.footer-form-control { resize: vertical; min-height: 80px; }
.footer-submit { width: 100%; }
.footer-form-success {
    text-align: center; padding: 14px;
    background: #e8f5e9; color: #2e7d32;
    border-radius: 6px; margin-top: 16px;
}

/* Floating Inquiry Button */
.inquiry-float-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    background: var(--primary-color);
    color: #fff;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 20px 10px;
    border-radius: 6px 0 0 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    box-shadow: -2px 2px 10px rgba(0,0,0,0.18);
    border: none;
    transition: background 0.2s, padding-right 0.2s;
    line-height: 1.4;
}
.inquiry-float-btn:hover { background: var(--primary-dark); padding-right: 14px; }

/* Inquiry Modal Overlay */
.inquiry-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.inquiry-modal-overlay.active { display: flex; }

/* Inquiry Modal */
.inquiry-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px 32px 28px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.inquiry-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}
.inquiry-modal-close:hover { color: var(--text-color); background: #f0f0f0; }
.inquiry-modal-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
    color: var(--text-color);
}
.inquiry-float-submit { width: 100%; margin-top: 8px; }
.inquiry-float-msg { margin-top: 12px; font-weight: 500; text-align: center; padding: 10px; border-radius: 6px; }
.inquiry-float-msg--success { color: #16a34a; background: #f0fdf4; }
.inquiry-float-msg--error   { color: #dc2626; background: #fef2f2; }

/* Pagination */
.site-pagination { margin-top: 40px; display: flex; justify-content: center; }
.pagination { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.page-btn {
    min-width: 36px; height: 36px; padding: 0 10px;
    border: 1px solid var(--border-color); border-radius: 6px;
    background: #fff; cursor: pointer; font-size: 14px;
    color: var(--text-color); transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.page-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }
.page-btn--active { background: var(--primary-color); border-color: var(--primary-color); color: #fff; font-weight: 600; }
.page-ellipsis { color: var(--text-light); padding: 0 4px; font-size: 14px; }

/* Responsive */
@media (max-width: 1100px) {
    .product-grid--home { grid-template-columns: repeat(3, 1fr); }
    .blog-list--home { grid-template-columns: repeat(3, 1fr); }
    .advantage-grid,
    .certification-grid,
    .service-grid,
    .team-grid { grid-template-columns: repeat(3, 1fr); }
    .factory-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid--home { grid-template-columns: repeat(2, 1fr); }
    .product-gallery-main { height: 300px; }
    .blog-list--home { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .advantage-grid,
    .certification-grid,
    .service-grid,
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-form-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .product-grid { grid-template-columns: 1fr; }
    .product-grid--home { grid-template-columns: repeat(2, 1fr); }
    .product-card-img { height: 200px; }
    .product-enquiry-form { padding: 20px; }
    .blog-list--home { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .advantage-grid,
    .certification-grid,
    .service-grid,
    .team-grid { grid-template-columns: 1fr; }
    .factory-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-form-row { grid-template-columns: 1fr; }
    .footer-form-group--btn { grid-column: 1; }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    left: 0; right: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
    font-size: 14px;
    font-family: inherit;
    box-shadow: 0 -2px 12px rgba(0,0,0,.15);
}
.cookie-banner--bottom { bottom: 0; }
.cookie-banner--top    { top: 0; }
.cookie-banner-msg  { flex: 1; font-size: 13px; line-height: 1.5; }
.cookie-banner-btn  {
    flex-shrink: 0;
    padding: 7px 20px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .15s;
}
.cookie-banner-btn:hover { opacity: .85; }
@media (max-width: 600px) {
    .cookie-banner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; }
    .cookie-banner-btn { align-self: flex-end; }
}

/* Certificate Lightbox */
.cert-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 20000;
    align-items: center;
    justify-content: center;
}
.cert-lightbox.active { display: flex; }
.cert-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.88);
    cursor: pointer;
}
.cert-lightbox__content {
    position: relative;
    z-index: 1;
    max-width: min(90vw, 780px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.cert-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: calc(90vh - 60px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    background: #fff;
}
.cert-lightbox__caption {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    text-align: center;
    margin: 0;
    padding: 0 16px;
}
.cert-lightbox__close {
    position: fixed;
    top: 18px;
    right: 22px;
    z-index: 2;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.cert-lightbox__close:hover { background: rgba(255,255,255,0.25); }
.cert-lightbox__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font-size: 44px;
    line-height: 1;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.cert-lightbox__nav:hover { background: rgba(255,255,255,0.25); }
.cert-lightbox__prev { left: 16px; }
.cert-lightbox__next { right: 16px; }
.cert-lightbox__nav.hidden { visibility: hidden; }
@media (max-width: 600px) {
    .cert-lightbox__nav { width: 40px; height: 40px; font-size: 32px; }
    .cert-lightbox__prev { left: 6px; }
    .cert-lightbox__next { right: 6px; }
}

/* ================================================================
   Module-specific redesigns (override shared card styles)
   ================================================================ */

/* ------ Our Services: numbered feature cards, 3-col grid ------- */
.service-section .service-grid {
    grid-template-columns: repeat(3, 1fr);
    counter-reset: svc;
}
.service-card {
    text-align: left;
    counter-increment: svc;
}
.service-card::before {
    transform: scaleX(1);
}
.service-card::after {
    content: counter(svc, decimal-leading-zero);
    position: absolute;
    bottom: 14px;
    right: 18px;
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color, #1a3a5c);
    opacity: 0.07;
    line-height: 1;
    pointer-events: none;
    transition: opacity 0.3s;
}
.service-card:hover::after { opacity: 0.14; }
.service-card img {
    width: 60px;
    height: 60px;
    margin: 0 0 20px;
    max-height: none;
}
.service-card h3 { text-align: left; font-size: 1.15rem; }
.service-card p  { text-align: left; }
@media (max-width: 960px) {
    .service-section .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .service-section .service-grid { grid-template-columns: 1fr; }
}

/* ------ Why Choose / Advantages: horizontal rows, 2-col -------- */
.advantages .advantage-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.advantage-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 24px 28px;
    gap: 20px;
    border-left: 4px solid var(--primary-color, #1a3a5c);
}
.advantage-card::before { display: none; }
.advantage-card img {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    margin: 0;
    max-height: none;
    background: rgba(26,58,92,0.07);
    border-radius: 12px;
    padding: 8px;
    box-sizing: border-box;
    object-fit: contain;
}
.advantage-card:hover img { transform: none; }
.advantage-text { flex: 1; min-width: 0; }
.advantage-card h3 { text-align: left; font-size: 1.1rem; margin-bottom: 8px; }
.advantage-card p  { text-align: left; font-size: 14px; margin: 0; }
@media (max-width: 600px) {
    .advantages .advantage-grid { grid-template-columns: 1fr; }
    .advantage-card { padding: 20px; }
}

/* ------ Meet Our Leadership: avatar-header profile cards ------- */
.team-section .team-grid { gap: 24px; }
.team-card {
    padding: 0;
    overflow: hidden;
    text-align: center;
}
.team-card__avatar-wrap {
    background: linear-gradient(135deg, var(--primary-color, #1a3a5c) 0%, #2d6a9f 100%);
    padding: 32px 16px 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.team-card__avatar-wrap img {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.65);
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    margin: 0;
    max-height: none;
}
.team-card__avatar-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-size: 2.4rem;
    font-weight: 700;
    border: 3px solid rgba(255,255,255,0.5);
}
.team-card__body {
    padding: 20px 20px 26px;
}
.team-card__body h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--text-color);
}
.team-position {
    color: var(--primary-color, #1a3a5c);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* ------ Factory Environment: gallery with caption overlay ------ */
.factory-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4 / 3;
    background: #e8e8e8;
}
.factory-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.4s ease;
    max-height: none;
}
.factory-item p {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.78));
    color: rgba(255,255,255,0.95);
    padding: 40px 14px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    margin: 0;
    text-align: center;
    border-radius: 0 0 12px 12px;
}
.factory-item:hover img { transform: scale(1.06); }
.factory-item:hover p   { transform: translateY(0); }

/* ================================================================
   About Page — section-specific styles
   ================================================================ */

/* Company Introduction — two-column layout */
.company-intro { padding: 60px 0; }
.intro-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 60px;
    align-items: center;
}
.intro-text h2 { margin-bottom: 20px; }
.intro-text .lead {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--text-light);
    margin-bottom: 16px;
}
.intro-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    display: block;
}
@media (max-width: 768px) {
    .intro-content { grid-template-columns: 1fr; gap: 32px; }
    .intro-image { order: -1; }
}

/* Company History — timeline with center line and dot markers */
.company-history { padding: 60px 0; }
.company-history h2 { text-align: center; margin-bottom: 48px; }
.timeline {
    position: relative;
    padding: 8px 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color, #1a3a5c), rgba(26,58,92,0.1));
    transform: translateX(-50%);
}
.timeline-item {
    display: flex;
    flex-direction: row;
    gap: 48px;
    margin-bottom: 56px;
    align-items: center;
    position: relative;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px; height: 14px;
    background: var(--primary-color, #1a3a5c);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--primary-color, #1a3a5c);
    transform: translate(-50%, -50%);
    z-index: 1;
}
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-image,
.timeline-content {
    flex: 1;
    min-width: 0;
}
.timeline-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    display: block;
}
.timeline-content:only-child {
    flex: 0 0 46%;
    margin-left: auto;
}
.timeline-item:nth-child(even) .timeline-content:only-child {
    margin-left: 0;
    margin-right: auto;
}
.timeline-year {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}
.timeline-content h3 { margin: 12px 0 8px; font-size: 1.2rem; }
.timeline-content p  { color: var(--text-light); line-height: 1.7; margin: 0; }
@media (max-width: 768px) {
    .timeline::before { left: 16px; }
    .timeline-item,
    .timeline-item:nth-child(even) { flex-direction: column; padding-left: 40px; }
    .timeline-item::before { left: 16px; top: 8px; transform: translateX(-50%); }
    .timeline-content:only-child,
    .timeline-item:nth-child(even) .timeline-content:only-child { flex: 1; margin: 0; }
}

/* Factory Environment gallery — photo overlay cards */
.factory-environment .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}
.gallery-item {
    padding: 0;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4 / 3;
    background: #e8e8e8;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.4s ease;
    margin: 0;
    max-height: none;
}
.gallery-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.78));
    padding: 40px 16px 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-radius: 0 0 12px 12px;
}
.gallery-caption h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px;
}
.gallery-caption p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
    margin: 0;
    line-height: 1.5;
}
.gallery-item:hover img          { transform: scale(1.06); }
.gallery-item:hover .gallery-caption { transform: translateY(0); }
@media (max-width: 960px) {
    .factory-environment .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .factory-environment .gallery-grid { grid-template-columns: 1fr; }
}

/* Service Guarantee on about page — same numbered card style as homepage */
.service-guarantee .service-grid {
    grid-template-columns: repeat(3, 1fr);
    counter-reset: svc;
}
@media (max-width: 960px) {
    .service-guarantee .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .service-guarantee .service-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   FAQ Page — redesigned accordion
   ================================================================ */

.faq-section { padding: 60px 0; }

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    counter-reset: faq;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
    counter-increment: faq;
}
.faq-item.active {
    border-left-color: var(--primary-color, #1a3a5c);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    background: var(--bg-color);
    transition: background 0.2s;
    user-select: none;
}
.faq-question:hover { background: var(--bg-light); }
.faq-item.active .faq-question { background: var(--bg-light); }

.faq-num {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-color, #1a3a5c);
    opacity: 0.5;
    min-width: 28px;
}
.faq-num::after {
    content: counter(faq, decimal-leading-zero);
}

.faq-question h3 {
    flex: 1;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.5;
}

.faq-toggle {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, border-color 0.25s;
    font-size: 0;
}
.faq-toggle::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--primary-color, #1a3a5c);
    border-bottom: 2px solid var(--primary-color, #1a3a5c);
    transform: rotate(45deg);
    margin-top: -4px;
    transition: transform 0.25s, border-color 0.25s;
}
.faq-item.active .faq-toggle {
    background: var(--primary-color, #1a3a5c);
    border-color: var(--primary-color, #1a3a5c);
}
.faq-item.active .faq-toggle::after {
    border-color: #fff;
    transform: rotate(-135deg);
    margin-top: 4px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.faq-answer p {
    padding: 0 24px 22px 68px;
    color: var(--text-light);
    line-height: 1.75;
    margin: 0;
    font-size: 15px;
}

.no-faq {
    text-align: center;
    padding: 60px 0;
    color: var(--text-light);
}
.no-faq p { margin-bottom: 24px; font-size: 1.05rem; }

@media (max-width: 600px) {
    .faq-question { padding: 16px 18px; gap: 12px; }
    .faq-answer p  { padding: 0 18px 18px 18px; }
    .faq-num { display: none; }
}

/* ================================================================
   Contact Page — improved layout, real icons, social buttons
   ================================================================ */

.contact-info { padding: 60px 0; }

.contact-grid {
    gap: 48px;
    margin-top: 0;
}

.contact-details {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 40px 36px;
    border: 1px solid var(--border-color);
}
.contact-details h2 {
    margin-bottom: 8px;
}
.contact-details > p {
    color: var(--text-light);
    margin-bottom: 32px;
    font-size: 15px;
}

.contact-items { gap: 24px; }

.contact-item {
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-color, #1a3a5c);
    color: #fff;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
}

.contact-text { padding-top: 2px; }
.contact-text h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-light);
    margin-bottom: 4px;
}
.contact-text p {
    font-size: 0.98rem;
    color: var(--text-color);
    margin: 2px 0;
    line-height: 1.5;
}
.contact-text a {
    color: var(--primary-color, #1a3a5c);
    text-decoration: none;
}
.contact-text a:hover { text-decoration: underline; }

/* Social buttons on contact page */
.contact-details .social-links {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}
.contact-details .social-links h3 {
    width: 100%;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-light);
    margin-bottom: 0;
}
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.social-btn:hover {
    background: var(--primary-color, #1a3a5c);
    color: #fff;
    border-color: var(--primary-color, #1a3a5c);
    transform: translateY(-2px);
}

/* Contact form card */
.contact-form {
    background: var(--bg-color);
    border-radius: 16px;
    padding: 40px 36px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.contact-form h2 { margin-bottom: 28px; }

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.98rem;
    background: var(--bg-light);
    border: 1.5px solid var(--border-color);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color, #1a3a5c);
    box-shadow: 0 0 0 3px rgba(26,58,92,0.1);
    background: var(--bg-color);
}
.form-group { margin-bottom: 20px; }

/* Map section */
.map-section { padding: 0 0 60px; }
.map-section h2 { text-align: center; margin-bottom: 28px; }
.map-wrapper {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .contact-details,
    .contact-form { padding: 28px 22px; }
}

/* ================================================================
   Blog / Articles List Page — 2-column grid layout
   ================================================================ */

.blog-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.blog-card {
    border-radius: 12px;
    border-color: #eaeef2;
    display: flex;
    flex-direction: column;
}

.blog-card-img {
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

.blog-card-img--placeholder {
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 12px 12px 0 0;
    background: #f0f4f8;
}

.blog-card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .78rem;
    color: #aaa;
    margin-bottom: 10px;
}
.blog-card-date::before {
    content: '';
    display: inline-block;
    width: 14px; height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.blog-card-title {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.blog-card-summary {
    font-size: .88rem;
    line-height: 1.65;
    margin-bottom: 16px;
    -webkit-line-clamp: 3;
    flex: 1;
}

.blog-read-more {
    font-size: .84rem;
    font-weight: 700;
    color: var(--primary-color, #1a3a5c);
    text-decoration: none;
    margin-top: auto;
    display: inline-block;
}
.blog-read-more:hover { text-decoration: underline; }

@media (max-width: 960px) {
    .blog-list { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
    .blog-list { grid-template-columns: 1fr; }
    .blog-card-img, .blog-card-img--placeholder { aspect-ratio: 16 / 9; height: auto; }
}

/* ================================================================
   Product List Page — square contain images, hover overlay
   ================================================================ */

.product-card {
    border-radius: 12px;
    border-color: #eaeef2;
}

.product-card-img {
    position: relative;
    height: auto;
    aspect-ratio: 1;
    background: #f8fafc;
    border-radius: 12px 12px 0 0;
}
.product-card-img img {
    object-fit: contain;
    padding: 10px;
    box-sizing: border-box;
}
.product-card-img::after {
    content: 'View Details →';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(26,58,92,0.88);
    color: #fff;
    text-align: center;
    padding: 10px 16px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transform: translateY(100%);
    transition: transform 0.25s ease;
    pointer-events: none;
}
.product-card:hover .product-card-img::after { transform: translateY(0); }
.product-card-img--placeholder::after { display: none; }

.product-card-body {
    padding: 14px 16px 18px;
    border-top: 1px solid #eaeef2;
}

.product-card-title {
    font-size: .95rem;
    margin-bottom: 6px;
}

.product-card-summary {
    font-size: .84rem;
    margin-bottom: 10px;
    -webkit-line-clamp: 2;
}

/* Sidebar — polish active state with left indicator */
.sidebar-cat-link.active {
    color: var(--primary-color, #1a3a5c);
    font-weight: 700;
    position: relative;
    padding-left: 10px;
}
.sidebar-cat-link.active::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 14px;
    background: var(--primary-color, #1a3a5c);
    border-radius: 2px;
}
.sidebar-widget {
    border-radius: 12px;
    border: 1px solid #eaeef2;
}

/* Latest News homepage — 4 per row (overrides the 2-col .blog-list rule above) */
.blog-list--home {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
@media (max-width: 1100px) { .blog-list--home { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px)  { .blog-list--home { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .blog-list--home { grid-template-columns: repeat(2, 1fr); } }

/* Certifications — 3 per row */
.certifications .certification-grid {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 960px) {
    .certifications .certification-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .certifications .certification-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   Product Detail Page — redesigned layout
   ================================================================ */

/* 2-col intro: gallery left, info right */
.product-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 48px;
}
.product-top__gallery .product-gallery { margin-bottom: 0; }

.product-top__info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 4px;
}

.product-detail-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-color, #1a1a1a);
    line-height: 1.3;
    margin: 0;
}

.post-summary {
    font-size: 1rem;
    line-height: 1.85;
    color: #555;
    padding: 18px 20px;
    background: #f4f8fc;
    border-left: 4px solid var(--primary-color, #1a3a5c);
    border-radius: 0 8px 8px 0;
    margin: 0;
}

.product-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.product-tag {
    font-size: .75rem; font-weight: 600;
    background: var(--primary-color); color: #fff;
    padding: 2px 10px; border-radius: 20px;
    text-decoration: none; transition: opacity 0.2s;
}
.product-tag:hover { opacity: 0.8; }
.product-tag--free {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    cursor: default;
}
.product-tag--free:hover { opacity: 1; }
.product-quote-btn { align-self: flex-start; }

/* Gallery improvements */
.product-gallery-main {
    border-radius: 12px;
    border: 1px solid #e8edf2;
    height: auto;
    aspect-ratio: 4 / 3;
    min-height: 280px;
}
.product-gallery-thumbs { gap: 8px; margin-top: 10px; }
.product-thumb {
    width: 76px;
    height: 76px;
    border-radius: 8px;
    object-fit: contain;
    background: #f8fafc;
    padding: 4px;
    box-sizing: border-box;
}

/* Section titles with left accent */
.product-section-title {
    border-bottom: none;
    border-left: 4px solid var(--primary-color, #1a3a5c);
    padding-left: 14px;
    padding-bottom: 0;
    margin-bottom: 20px;
    color: #1a1a1a;
}

/* Parameter table */
.product-params-content {
    border-radius: 12px;
    border: 1px solid #e8edf2;
    background: #fff;
    padding: 0;
}
.product-params-content table { border-collapse: collapse; }
.product-params-content th {
    background: var(--primary-color, #1a3a5c);
    color: #fff;
}
.product-params-content th, .product-params-content td {
    border-color: #e8edf2;
}
.product-params-content tr:nth-child(even) td { background: #f8fafc; }

/* Enquiry form card */
.product-enquiry-form {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 14px;
    border-top: 4px solid var(--primary-color, #1a3a5c);
    padding: 36px;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.contact-form-label {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-light, #666);
}
.contact-form-control {
    border-radius: 8px;
    padding: 11px 14px;
    border: 1.5px solid #d1d9e0;
}
.contact-form-control:focus {
    border-color: var(--primary-color, #1a3a5c);
    box-shadow: 0 0 0 3px rgba(26,58,92,.1);
}

@media (max-width: 900px) {
    .product-top { grid-template-columns: 1fr; gap: 28px; }
    .product-quote-btn { align-self: stretch; text-align: center; }
}

/* ================================================================
   Article Detail Page — typography and layout
   ================================================================ */

/* Cover image: aspect-ratio based */
.post-cover {
    border-radius: 14px;
    margin-bottom: 32px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.post-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    max-height: none;
    display: block;
}

/* Meta bar */
.post-meta-bar {
    padding: 12px 0 20px;
    border-bottom: 1px solid #e8edf2;
    margin-bottom: 28px;
}
.post-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .82rem;
    color: #999;
}
.post-date::before {
    content: '';
    display: inline-block;
    width: 14px; height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
    opacity: .7;
}

/* Post content typography */
.post-content { font-size: .97rem; line-height: 1.9; color: #333; }

.post-content h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #1a1a1a;
    border-left: 4px solid var(--primary-color, #1a3a5c);
    padding-left: 14px;
    margin: 40px 0 16px;
}
.post-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 32px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #e0e8f0;
}
.post-content h4 { font-size: 1rem; font-weight: 700; margin: 24px 0 10px; }

.post-content blockquote {
    border-left: 4px solid var(--primary-color, #1a3a5c);
    background: #f4f8fc;
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    color: #555;
    font-style: italic;
}
.post-content blockquote p { margin-bottom: 0; }

.post-content pre {
    background: #1e2a3a;
    color: #e2e8f0;
    border-radius: 10px;
    padding: 20px 24px;
    overflow-x: auto;
    font-size: .88rem;
    line-height: 1.7;
    margin: 20px 0;
}
.post-content code {
    background: #edf2f7;
    color: #c7254e;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: .88em;
    font-family: 'Courier New', monospace;
}
.post-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Post navigation */
.post-navigation {
    margin-top: 48px;
    padding-top: 0;
    border-top: none;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e8edf2;
    overflow: hidden;
    padding: 6px;
    gap: 6px;
}
.post-nav-link {
    border-radius: 10px;
    border: none;
    background: transparent;
    padding: 16px 20px;
}
.post-nav-link:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    border-color: transparent;
}
.post-nav-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; }
.post-nav-title { font-size: .9rem; }

@media (max-width: 600px) {
    .post-navigation { grid-template-columns: 1fr; }
    .post-nav-next .post-nav-link { text-align: left; }
}

/* ===== Nav Style: Centered ===== */
.site-header--centered {
    background: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.hc-logo-row {
    display: flex;
    justify-content: center;
    padding: 18px 0 10px;
    border-bottom: 1px solid var(--border-color, #e8edf2);
}
.hc-logo-row .logo img { max-height: 56px; }
.hc-nav-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 0 0 4px;
    position: relative;
}
.hc-nav-row .main-nav > ul { gap: 32px; }
.hc-nav-row .mobile-menu-toggle { display: none; position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.hc-nav-row .header-search-toggle { position: absolute; right: 36px; top: 50%; transform: translateY(-50%); }

@media (max-width: 768px) {
    .hc-nav-row .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--bg-color);
        box-shadow: var(--shadow-lg);
        padding: 20px;
        z-index: 999;
    }
    .hc-nav-row .main-nav.active { display: block; }
    .hc-nav-row .main-nav > ul { flex-direction: column; gap: 0; }
    .hc-nav-row .mobile-menu-toggle { display: flex; }
    .hc-nav-row .header-search-toggle { right: 52px; }
}

/* ===== Nav Style: Minimal ===== */
.site-header--minimal {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color, #e8edf2);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.hm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}
.hm-row .logo img { max-height: 44px; }
.hm-row .logo-text { font-size: 1.25rem; }
.hm-row .main-nav > ul { gap: 28px; }
.hm-row .main-nav a { font-size: 14px; }
.hm-row .mobile-menu-toggle { display: none; }

@media (max-width: 768px) {
    .hm-row .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--bg-color);
        box-shadow: var(--shadow-lg);
        padding: 20px;
        z-index: 999;
    }
    .hm-row .main-nav.active { display: block; }
    .hm-row .main-nav > ul { flex-direction: column; gap: 0; }
    .hm-row .mobile-menu-toggle { display: flex; }
    .site-header--minimal { position: relative; }
}

/* ===== Nav Style: Dark ===== */
.site-header--dark {
    background: #0f172a;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.hd-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}
.hd-row .logo img { max-height: 52px; }
.hd-row .logo-text { color: #fff; font-size: 1.4rem; }
.site-header--dark .main-nav a {
    color: #cbd5e1;
}
.site-header--dark .main-nav a:hover,
.site-header--dark .main-nav a.active {
    color: #fff;
}
.site-header--dark .main-nav a::after {
    background: #60a5fa;
}
.site-header--dark .header-search-toggle { color: #cbd5e1; }
.site-header--dark .header-search-toggle:hover { color: #fff; }
.hd-row .mobile-menu-toggle { display: none; }
.site-header--dark .mobile-menu-toggle span { background: #cbd5e1; }

@media (max-width: 768px) {
    .hd-row .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: #0f172a;
        box-shadow: 0 4px 20px rgba(0,0,0,.5);
        padding: 20px;
        z-index: 999;
    }
    .hd-row .main-nav.active { display: block; }
    .hd-row .main-nav > ul { flex-direction: column; gap: 0; }
    .hd-row .main-nav li { border-bottom-color: #1e293b; }
    .hd-row .mobile-menu-toggle { display: flex; }
    .site-header--dark { position: relative; }
}

/* ===== Footer Style: Minimal ===== */
.site-footer--minimal {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 20px 0;
}
.fm-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.fm-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
}
.fm-links a {
    font-size: .875rem;
    color: #64748b;
    text-decoration: none;
    transition: color .2s;
}
.fm-links a:hover { color: var(--primary-color, #1a3a5c); }
.fm-copy {
    font-size: .8rem;
    color: #94a3b8;
    margin: 0;
}

@media (max-width: 640px) {
    .fm-row { flex-direction: column; align-items: flex-start; }
}

/* ===== Footer Style: Centered ===== */
.site-footer--centered {
    background: var(--bg-dark);
    color: rgba(255,255,255,.9);
    padding: 60px 0 0;
}
.fc-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding-bottom: 48px;
    text-align: center;
}
.fc-logo img { max-height: 52px; filter: brightness(0) invert(1); opacity: .9; }
.fc-logo-text { font-size: 1.5rem; font-weight: 700; color: #fff; }
.fc-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 24px;
}
.fc-contact span,
.fc-contact a {
    font-size: .875rem;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    transition: color .2s;
}
.fc-contact a:hover { color: #fff; }
.fc-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 24px;
}
.fc-links a {
    font-size: .875rem;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    transition: color .2s;
}
.fc-links a:hover { color: #fff; }
.fc-social { justify-content: center; }
