/*
 * Vaisala Style Design System v2.0
 * 更精准的高保真复刻，网站项目由花中秋总经理（官网项目负责人）要求
 */

/* ========================================
   1. Design Tokens (Refined)
======================================== */
:root {
    /* 品牌色 - 更精准的 Vaisala 色板 */
    --color-primary: #003764;
    /* Vaisala 官方深蓝 */
    --color-primary-dark: #002848;
    /* 页脚深蓝 */
    --color-accent-blue: #00a1df;
    /* 亮蓝 (用于链接/图标) */
    --color-accent-orange: #f37021;
    /* 品牌橙 (CTA) */

    /* 中性色 */
    --color-white: #ffffff;
    --color-off-white: #f8f9fa;
    /* 极浅灰背景 */
    --color-border: #e6e6e6;
    /* 细边框颜色 */
    --color-text-main: #212121;
    /* 主要文字 (非纯黑) */
    --color-text-body: #444444;
    /* 正文文字 */
    --color-text-muted: #666666;
    /* 弱化文字 */

    /* 字体 - 工业风 */
    --font-stack: "Inter", "Roboto", "Helvetica Neue", "Arial", sans-serif;

    /* 布局 */
    --container-width: 1320px;
    /* 更宽的容器 */
    --header-height: 90px;
    /* 更大气的导航栏高度 */

    /* 质感 */
    --radius-xs: 2px;
    /* 极小的圆角，强调精密 */
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ========================================
   2. Base Styles
======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-stack);
    color: var(--color-text-body);
    background: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* 文字抗锯齿 */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

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

/* ========================================
   3. Utility Classes
======================================== */
.vs-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 32px;
}

.vs-section {
    padding: 100px 0;
    /* 增加留白 */
}

.vs-section--gray {
    background-color: var(--color-off-white);
}

.vs-title {
    font-size: 36px;
    font-weight: 300;
    /* 细字体标题 */
    color: var(--color-text-main);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.vs-text {
    font-size: 18px;
    color: var(--color-text-muted);
    max-width: 800px;
    margin-bottom: 40px;
}

/* ========================================
   4. Header & Navigation (Mega Menu Style)
======================================== */
.vs-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(0, 55, 100, 0.95);
    /* 深蓝半透明 */
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vs-header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vs-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-white);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 1px;
}

.vs-logo img {
    height: 48px;
}

.vs-nav__list {
    display: flex;
    gap: 40px;
    list-style: none;
}

.vs-nav__item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.vs-nav__link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.vs-nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent-orange);
    transition: width 0.3s ease;
}

.vs-nav__item:hover .vs-nav__link {
    color: var(--color-white);
}

.vs-nav__item:hover .vs-nav__link::after {
    width: 100%;
}

/* 简单的 Dropdown 模拟 Mega Menu */
.vs-dropdown {
    position: absolute;
    top: 60px;
    /* 稍微下移 */
    left: -20px;
    background: var(--color-white);
    min-width: 240px;
    padding: 12px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-top: 3px solid var(--color-accent-orange);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.vs-nav__item:hover .vs-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.vs-dropdown__link {
    display: block;
    padding: 12px 24px;
    color: var(--color-text-main);
    font-size: 14px;
    border-bottom: 1px solid var(--color-off-white);
}

.vs-dropdown__link:hover {
    background: var(--color-off-white);
    color: var(--color-accent-blue);
    padding-left: 30px;
    /* 位置移动动效 */
}

/* ========================================
   5. Hero Section (Left Aligned)
======================================== */
.vs-hero {
    height: calc(100vh - var(--partners-height, 180px));
    min-height: 600px;
    background-color: var(--color-primary);
    /* background-image removed for video */
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    /* Ensure video doesn't overflow */
}

.vs-hero__video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.vs-hero__video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 渐变遮罩 - 独立层，确保在视频之上，内容之下 */
.vs-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(0, 30, 50, 0.2) 0%,
            rgba(0, 30, 50, 0.2) 40%,
            rgba(0, 30, 50, 0.2) 100%);
    z-index: 1;
}

.vs-hero__content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    max-width: 700px;
    /* 限制宽度，左侧布局 */
}

.vs-hero__label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent-orange);
    margin-bottom: 20px;
}

.vs-hero__title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.vs-hero__desc {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 48px;
    font-weight: 300;
}

.vs-btn-group {
    display: flex;
    gap: 20px;
}

.vs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-xs);
    /* 锐利圆角 */
    transition: all 0.3s ease;
    cursor: pointer;
}

.vs-btn--primary {
    background: var(--color-accent-orange);
    color: var(--color-white);
    border: 2px solid var(--color-accent-orange);
}

.vs-btn--primary:hover {
    background: #d65b12;
    border-color: #d65b12;
}

.vs-btn--outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.vs-btn--outline:hover {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.05);
}

/* ========================================
   New Hero Styles (Pioneer Layout)
======================================== */
/* ========================================
   New Hero Styles (Pioneer Layout)
======================================== */
.vs-hero__top-title {
    position: absolute;
    top: 38.2%;
    transform: translateY(-50%);
    left: 0;
    width: 100%;
    text-align: center;
    font-size: clamp(42px, 5.2vw, 80px);
    font-weight: 700;
    color: #FFFFFF;
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.45),
        0 8px 20px rgba(0, 0, 0, 0.35),
        0 0 1px rgba(0, 0, 0, 0.55);
    z-index: 10;
    font-family: var(--font-stack);
    letter-spacing: 1px;
    text-transform: capitalize;
}

.vs-hero__content-new {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* padding-bottom removed as buttons are now absolute */
}

/* Logo placeholder style removed */

.vs-hero__bottom-controls {
    position: absolute;
    bottom: 200px !important;
    /* Aligns to the actual bottom of the hero section 修改首页两个标题的位置 */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 80px;
    padding: 0 5%;
    z-index: 10;
}

.vs-hero__btn-block {
    display: flex;
    align-items: center;
    justify-content: center;

    /* Enhanced Glassmorphism Style */
    background: rgba(255, 255, 255, 0.25);
    /* Increased opacity */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    /* Stronger border */

    color: #FFFFFF;
    font-weight: 700;
    font-size: 24px;
    padding: 18px 40px;
    min-width: 320px;
    text-decoration: none;
    text-align: center;
    font-family: var(--font-stack);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    /* Improved text readability */

    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vs-hero__btn-block:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.4);
    /* Brighter on hover */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
    color: #FFFFFF;
}

/* ========================================
   6. Key Stats (Strip Style)
======================================== */
.vs-stats-strip {
    background: var(--color-white);
    position: relative;
    z-index: 10;
    margin-top: -60px;
    /* 向上重叠 */
    border-top: 4px solid var(--color-accent-blue);
    box-shadow: 0 10px 30px rgba(216, 220, 2, 0.1);
}

.vs-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 40px 0;
}

.vs-stat__item {
    border-right: 1px solid var(--color-border);
    padding: 0 40px;
}

.vs-stat__item:last-child {
    border-right: none;
}

.vs-stat__number {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.vs-stat__desc {
    font-size: 14px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   7. Featured Products (Card Grid)
======================================== */
.vs-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.vs-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.vs-card__img-wrapper {
    height: 240px;
    background: var(--color-off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}

.vs-card__img-wrapper img {
    max-height: 100%;
    transition: transform 0.4s ease;
}

.vs-card:hover .vs-card__img-wrapper img {
    transform: scale(1.08);
    /* 悬停缩放 */
}

.vs-card__content {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vs-card__tag {
    color: var(--color-accent-blue);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.vs-card__title {
    font-size: 20px;
    color: var(--color-text-main);
    margin-bottom: 12px;
    font-weight: 600;
}

.vs-card__desc {
    font-size: 15px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    flex: 1;
    /* 推到底部 */
}

.vs-link-arrow {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vs-link-arrow::after {
    content: '→';
    transition: transform 0.2s;
}

.vs-card:hover .vs-link-arrow {
    color: var(--color-accent-blue);
}

.vs-card:hover .vs-link-arrow::after {
    transform: translateX(5px);
}

/* ========================================
   8. Application Areas (Image Overlay)
======================================== */
.vs-app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    /* 极细间距 */
}

.vs-app-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: var(--color-primary);
}

.vs-app-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.4s, transform 0.4s;
}

.vs-app-item:hover img {
    opacity: 0.3;
    transform: scale(1.1);
}

.vs-app-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 32px;
    transition: transform 0.3s;
}

.vs-app-title {
    color: var(--color-white);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.vs-app-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s;
}

.vs-app-item:hover .vs-app-desc {
    transform: translateY(0);
    opacity: 1;
}

/* ========================================
   9. Footer (Corporate)
======================================== */
.vs-footer {
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: 80px 0 32px;
    font-size: 14px;
}

.vs-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vs-footer__col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--color-white);
}

.vs-footer__link {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.vs-footer__link:hover {
    color: var(--color-white);
}

.vs-footer__bottom {
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   10. Application Areas (Zigzag Layout) - V3.0 Final
   用户定制：Vaisala 棋盘式全宽布局 (无缝对齐 + 深蓝背景 + 胶囊按钮)
======================================== */
.vs-app-zigzag {
    display: flex;
    flex-direction: column;
    width: 100%;
    /* Full viewport width default */
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.vs-zigzag-row {
    display: flex;
    min-height: 500px;
    /* 增加高度，展现大图冲击力 */
    border-bottom: none;
    /* 移除分隔线，实现无缝对接 */
}

/* 移除最后一行底边框 */
.vs-zigzag-row:last-child {
    border-bottom: none;
}

.vs-zigzag-row:nth-child(even) {
    flex-direction: row-reverse;
}

.vs-zigzag-img {
    flex: 0 0 50%;
    max-width: 50%;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    /* Ensure height */
}

.vs-zigzag-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.vs-zigzag-row:hover .vs-zigzag-img img {
    transform: scale(1.05);
}

.vs-zigzag-text {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* 居中对齐 */
    text-align: center;
    /* 文字居中 */
    padding: 60px 80px;
    background-color: var(--color-primary-dark);
    /* 深蓝背景 */
    color: var(--color-white);
    /* 白色文字 */
    border: none;
    /* 移除边框 */
}

/* 偶数行也保持深蓝背景，或者稍微变化色调 */
.vs-zigzag-row:nth-child(even) .vs-zigzag-text {
    background-color: #0d3c55;
    /* 稍微亮一点点的深蓝，形成微弱对比 */
    border: none;
}

.vs-zigzag-title {
    font-size: 36px;
    font-weight: 500;
    color: var(--color-white);
    margin-bottom: 24px;
    line-height: 1.3;
    max-width: 600px;
    letter-spacing: 0;
}

.vs-zigzag-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    /* 半透明白色 */
    margin-bottom: 40px;
    max-width: 500px;
    font-weight: 300;
    line-height: 1.6;
}

/* 胶囊按钮基础样式 */
.vs-zigzag-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 40px;
    border-radius: 24px;
    /* 胶囊圆角 */
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
    /* 深色文字 */
    background: white;
    text-transform: none;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    /* 阴影 */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
}

.vs-zigzag-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ========================================
   11. Full Width Sections (New)
======================================== */
.vs-section--full-width {
    width: 100%;
    max-width: 100%;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    /* For parallax effects if needed */
}

.vs-section--full-width::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Default overlay for text readability */
    z-index: 1;
}

.vs-container--fluid {
    width: 100%;
    max-width: 1600px;
    /* Wider constraint */
    margin: 0 auto;
    padding: 0 50px;
    position: relative;
    z-index: 2;
}

/* New Modern Card Grid Overlay Style */
.vs-overlay-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
}

.vs-overlay-card-item {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.vs-overlay-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.vs-overlay-card-item:hover .vs-overlay-card-img {
    transform: scale(1.05);
    /* Slight zoom */
}

.vs-overlay-text-box {
    position: absolute;
    bottom: 50px;
    left: 50px;
    right: 50px;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    backdrop-filter: blur(10px);
    border-left: 5px solid var(--color-accent-orange);
    transition: transform 0.3s ease;
    transform: translateY(20px);
    opacity: 0.9;
}

.vs-overlay-card-item:hover .vs-overlay-text-box {
    transform: translateY(0);
    opacity: 1;
}

.vs-overlay-text-box h3 {
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.vs-overlay-text-box p {
    font-size: 16px;
    color: #444;
}

/* Responsive adjust */
@media (max-width: 1024px) {
    .vs-zigzag-row {
        flex-direction: column !important;
        /* Stack on mobile */
        height: auto;
    }

    .vs-zigzag-img,
    .vs-zigzag-text {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .vs-overlay-card-grid {
        grid-template-columns: 1fr;
    }
}

.vs-zigzag-link::after {
    content: none;
    /* 移除箭头 */
}

/* 奇数行按钮：橙色 */
.vs-zigzag-row:nth-child(odd) .vs-zigzag-link {
    background-color: var(--color-accent-orange);
    color: var(--color-white);
}

.vs-zigzag-row:nth-child(odd) .vs-zigzag-link:hover {
    background-color: #ff7f2a;
}

/* 偶数行按钮：亮黄色/酸橙绿 (参考图样式) */
.vs-zigzag-row:nth-child(even) .vs-zigzag-link {
    background-color: #cddc39;
    /* 酸橙绿 */
    color: #003764;
    /* 深蓝文字 */
}

.vs-zigzag-row:nth-child(even) .vs-zigzag-link:hover {
    background-color: #dce775;
}

@media (max-width: 900px) {
    .vs-zigzag-row {
        flex-direction: column;
    }

    .vs-zigzag-row:nth-child(even) {
        flex-direction: column;
    }

    .vs-zigzag-img {
        height: 300px;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .vs-zigzag-text {
        max-width: 100%;
        flex: 0 0 100%;
        padding: 40px 24px;
        background-color: var(--color-primary-dark) !important;
        /* 手机端强制深色 */
    }

    .vs-zigzag-desc {
        font-size: 16px;
        color: rgba(255, 255, 255, 0.7);
    }
}

/* ========================================
   11. Careers Section (Join Us)
   用户定制：全宽背景图 + 居中白色大字 + 胶囊按钮
======================================== */
.vs-careers {
    position: relative;
    height: 600px;
    background-image: url('../images/careers-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* 视差滚动效果 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}

.vs-careers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* 深色遮罩，保证文字清晰 */
    z-index: 1;
}

.vs-careers__content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 1000px;
}

.vs-careers__title {
    font-size: 56px;
    font-weight: 600;
    margin-bottom: 40px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.vs-careers .vs-btn {
    padding: 18px 48px;
    border-radius: 50px;
    /* 胶囊按钮 */
    font-size: 18px;
    background: #cddc39;
    /* 酸橙绿 */
    color: #003764;
    /* 深蓝文字 */
    border: none;
    font-weight: 700;
}

.vs-careers .vs-btn:hover {
    background: #dce775;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .vs-careers {
        height: 400px;
    }

    .vs-careers__title {
        font-size: 32px;
    }
}

/* ========================================
   12. Product Filter Tabs
   圆角胶囊切换按钮
======================================== */
.vs-filter-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.vs-filter-btn {
    padding: 10px 32px;
    border-radius: 50px;
    border: 1px solid #e0e0e0;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.vs-filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(0, 55, 100, 0.2);
}

/* ========================================
   13. Mega Menu (Standardized)
======================================== */
.vs-nav__item--has-mega {
    position: relative !important;
}

.vs-mega-menu {
    position: absolute;
    top: 100%;
    left: -30px;
    width: 1000px;
    background: var(--color-white);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 999;
    display: flex;
    min-height: 440px;
    border-radius: 8px;
    overflow: visible;
    pointer-events: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 0;
}

.vs-mega-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 30px;
    width: 100px;
    height: 15px;
    background: transparent;
    z-index: -1;
}

.vs-nav__item--has-mega:hover .vs-mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.vs-mega-sidebar {
    width: 260px;
    background: #f4f6f8;
    border-right: 1px solid #eee;
    padding: 15px 0;
    border-radius: 8px 0 0 8px;
}

.vs-mega-tab {
    padding: 14px 30px;
    font-size: 15px;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vs-mega-tab:first-child {
    border-top-left-radius: 8px;
}

.vs-mega-tab:hover,
.vs-mega-tab.active {
    background: var(--color-primary);
    color: var(--color-white);
}

.vs-mega-tab i {
    font-size: 10px;
    opacity: 0.4;
}

.vs-mega-content {
    flex: 1;
    padding: 40px 50px;
    background: var(--color-white);
    border-radius: 0 8px 8px 0;
}

.vs-mega-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.vs-mega-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vs-mega-panel h3 {
    font-size: 20px;
    color: var(--color-primary);
    margin-bottom: 24px;
    font-weight: 700;
    border-bottom: 2px solid var(--color-accent-orange);
    display: inline-block;
    padding-bottom: 4px;
}

.vs-mega-grid-v2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.vs-mega-sublist-title {
    font-size: 13px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    display: block;
}

.vs-mega-list-v2 {
    list-style: none;
}

.vs-mega-list-v2 li {
    margin-bottom: 10px;
}

.vs-mega-list-v2 a {
    font-size: 14px;
    color: #333;
    transition: all 0.2s;
}

.vs-mega-list-v2 a:hover {
    color: var(--color-accent-blue);
    padding-left: 5px;
}

.vs-mega-action {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.vs-btn-search {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: 600;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
}

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

.vs-mega-menu--contact {
    width: 480px;
    left: -30px;
    min-height: 280px;
}

.vs-mega-menu--contact .vs-mega-sidebar {
    width: 180px;
}

.vs-mega-menu--contact .vs-mega-grid-v2 {
    grid-template-columns: 1fr;
}

/* Fix for News Mega Menu overflow */
.vs-mega-menu--news {
    width: 650px;
    /* Slightly wider to accommodate content comfortably */
    min-height: auto;
    left: -20px;
    /* Left align with parent nav item */
    right: auto;
}

.vs-mega-menu--news .vs-mega-sidebar {
    width: 180px;
}

.vs-mega-menu--news .vs-mega-content {
    padding: 30px;
    flex: 1;
}

/* ========================================
   14. Hero V2 (Industry Specific Layout)
======================================== */
.vs-hero-v2 {
    position: relative;
    height: 60vh;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-align: center;
    overflow: hidden;
    margin-top: 0;
}

.vs-hero-v2__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.vs-hero-v2__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.vs-hero-v2__breadcrumbs {
    position: absolute;
    top: 40px;
    left: 5%;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.vs-hero-v2__breadcrumbs a {
    color: inherit;
    transition: color 0.2s;
}

.vs-hero-v2__breadcrumbs a:hover {
    color: var(--color-white);
}

.vs-hero-v2__content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 40px;
}

.vs-hero-v2__title {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.vs-hero-v2__subtitle {
    font-size: 22px;
    line-height: 1.6;
    opacity: 0.9;
    font-weight: 300;
}

@media (max-width: 768px) {
    .vs-hero-v2 {
        height: 50vh;
    }

    .vs-hero-v2__title {
        font-size: 40px;
    }

    .vs-hero-v2__subtitle {
        font-size: 16px;
    }
}

/* ========================================
   Latest News Section (Clean Style)
======================================== */
/* ========================================
   Product Showcase Section
======================================== */
.vs-product-showcase {
    padding: 90px 0 110px;
    background: #ffffff;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.vs-product-showcase .vs-container {
    max-width: min(1900px, 98vw);
    padding: 0 6px;
}

.vs-product-showcase__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    margin-bottom: 56px;
}

.vs-product-showcase__title {
    font-size: 32px;
    font-weight: 600;
    color: #0f2f5f;
    margin: 0;
    letter-spacing: -0.2px;
}

.vs-product-showcase__subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.vs-product-showcase__link {
    color: #0f2f5f;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    padding: 9px 22px;
    border-radius: 999px;
    border: 1px solid rgba(15, 47, 95, 0.35);
    background: #ffffff;
}

.vs-product-showcase__link:hover {
    gap: 12px;
    background: #0f2f5f;
    color: #fff;
    text-decoration: none;
    border-color: #0f2f5f;
}

.vs-product-showcase__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.vs-product-showcase__item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.35s ease;
    border: 1px solid #e6e6e6;
}

.vs-product-showcase__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.vs-product-showcase__img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f2f4f7;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #e6e6e6;
}

.vs-product-showcase__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.2, 1);
}

.vs-product-showcase__item:hover .vs-product-showcase__img img {
    transform: scale(1.05);
}

.vs-product-showcase__item-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f2f5f;
    line-height: 1.5;
    margin: 16px 18px 8px 18px;
}

.vs-product-showcase__desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 18px 18px 18px;
}

.vs-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px 4px 18px;
}

.vs-card-tag {
    font-size: 11px;
    color: #0f2f5f;
    border: 1px solid rgba(15, 47, 95, 0.25);
    padding: 2px 10px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.vs-card-more {
    font-size: 12px;
    color: #0f2f5f;
    font-weight: 600;
    padding: 0 18px 18px 18px;
}

/* ========================================
   Latest News Section (Enhanced Card Style)
======================================== */
.vs-latest-news {
    padding: 90px 0 110px;
    background: #ffffff;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.vs-latest-news .vs-container {
    max-width: min(1900px, 98vw);
    padding: 0 6px;
}

.vs-latest-news__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    margin-bottom: 56px;
    border-bottom: 0;
}

.vs-latest-news__title {
    font-size: 32px;
    font-weight: 600;
    color: #0f2f5f;
    margin: 0;
    letter-spacing: -0.2px;
}

.vs-latest-news__subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.vs-latest-news__link {
    color: #0f2f5f;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    padding: 9px 22px;
    border-radius: 999px;
    border: 1px solid rgba(15, 47, 95, 0.35);
    background: #ffffff;
}

.vs-latest-news__link:hover {
    gap: 12px;
    background: #0f2f5f;
    color: #fff;
    text-decoration: none;
    border-color: #0f2f5f;
}

.vs-latest-news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.vs-latest-news__item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.35s ease;
    border: 1px solid #e6e6e6;
}

.vs-latest-news__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.vs-latest-news__img {
    width: 100%;
    aspect-ratio: 16/9;
    background: #f2f4f7;
    margin-bottom: 0;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #e6e6e6;
}

.vs-latest-news__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.2, 1);
}

/* Hover effect: Zoom image slightly */
.vs-latest-news__item:hover .vs-latest-news__img img {
    transform: scale(1.08);
}

.vs-latest-news__date {
    font-size: 12px;
    color: #0f2f5f;
    margin: 0;
    display: inline-block;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.vs-latest-news__item-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f2f5f;
    line-height: 1.5;
    margin: 0 18px 8px 18px;
    transition: color 0.3s ease;
}

.vs-latest-news__item:hover .vs-latest-news__item-title {
    color: var(--color-primary);
}

.vs-latest-news__desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 18px 18px 18px;
}

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

    .vs-latest-news__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .vs-product-showcase__header {
        align-items: center;
        gap: 16px;
    }

    .vs-product-showcase__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .vs-product-showcase__title {
        font-size: 28px;
    }

    .vs-latest-news__header {
        align-items: center;
        gap: 16px;
    }

    .vs-latest-news__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .vs-latest-news__title {
        font-size: 28px;
    }
}

/* Large Screen Optimization (2K+) */
@media (min-width: 1920px) {
    :root {
        --container-width: 1800px;
        /* Further increased width for 2K screens */
    }

    .vs-container {
        max-width: var(--container-width);
    }

    .vs-latest-news__grid {
        gap: 80px;
        /* Even wider gap for ultra-wide feel */
    }

    .vs-product-showcase__grid {
        gap: 60px;
    }

    .vs-latest-news__title {
        font-size: 42px;
        /* Logo larger for big screens */
    }

    .vs-product-showcase__title {
        font-size: 42px;
    }
}

/* ========================================
   15. Measurement Page Specifics (Unified)
======================================== */
/* Breadcrumb */
.vs-breadcrumb {
    padding: 12px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vs-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.vs-breadcrumb a:hover {
    color: #fff;
}

.vs-breadcrumb span {
    margin: 0 8px;
    opacity: 0.5;
}

.jjfa-breadcrumb {
    position: absolute;
    top: 40px;
    left: 5%;
    font-size: 13px;
    opacity: 0.8;
    margin-top: 0;
    z-index: 10;
    color: white;
}

.jjfa-breadcrumb a {
    color: white;
    opacity: 0.8;
    text-decoration: none;
}

.jjfa-breadcrumb a:hover {
    opacity: 1;
}

/* Measurement Hero - Video Style */
.vs-measurement-hero {
    min-height: 520px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a4a6e 0%, #2c7da0 100%);
}

.vs-measurement-hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    z-index: 1;
}

.vs-measurement-hero__content {
    max-width: 850px;
    color: #fff;
    z-index: 2;
    position: relative;
    padding-right: 50px;
}

.vs-measurement-hero__subtitle {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 16px;
}

.vs-measurement-hero__title {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.15;
}

.vs-measurement-hero__desc {
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.9;
}

.vs-measurement-hero__cta {
    margin-top: 32px;
}

.vs-measurement-hero__cta .vs-btn {
    background: var(--color-accent-orange);
    color: white;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.vs-measurement-hero__cta .vs-btn:hover {
    background: #e55c00;
    transform: translateY(-2px);
}

/* Content Sections */
.vs-content-section {
    padding: 80px 0;
}

.vs-content-section--gray {
    background: #f7f9fb;
}

.vs-content-section h2 {
    font-size: 36px;
    font-weight: 300;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.vs-content-section p {
    font-size: 17px;
    line-height: 1.9;
    color: #444;
    margin-bottom: 20px;
}

.vs-content-section ul {
    list-style: none;
    padding: 0;
}

.vs-content-section ul li {
    position: relative;
    padding-left: 28px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 12px;
}

.vs-content-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--color-accent-orange);
    border-radius: 50%;
}

/* Two Column Layout */
.vs-two-col {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.vs-two-col--reverse {
    direction: rtl;
    grid-template-columns: 1fr 1.2fr;
}

.vs-two-col--reverse>* {
    direction: ltr;
}

.vs-two-col__image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.vs-two-col__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Benefit Cards (Specific) */
.vs-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-top: 60px;
}

.vs-benefit-card {
    text-align: center;
    padding: 50px 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vs-benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.12);
}

.vs-benefit-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.vs-benefit-card__icon--blue {
    background: linear-gradient(135deg, #00AAE4, #0077BE);
}

.vs-benefit-card__icon--orange {
    background: linear-gradient(135deg, #F5821F, #E55C00);
}

.vs-benefit-card__icon--green {
    background: linear-gradient(135deg, #00A88E, #008F7A);
}

.vs-benefit-card__icon--purple {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
}

.vs-benefit-card h4 {
    font-size: 22px;
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.vs-benefit-card p {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

/* Expertise Section override */
.vs-expertise-section .vs-two-col {
    grid-template-columns: 1fr 1.2fr;
}

/* Section Title Centered */
.vs-section-title-centered {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 60px;
}

.vs-section-title-centered h2 {
    font-size: 36px;
    font-weight: 300;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.vs-section-title-centered p {
    font-size: 17px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .vs-two-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .vs-two-col--reverse {
        direction: ltr;
    }

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

    .vs-measurement-hero__title {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .vs-measurement-hero__title {
        font-size: 36px;
    }

    .vs-benefits-grid {
        grid-template-columns: 1fr;
    }

    .vs-measurement-hero .vs-container {
        padding: 0 24px;
    }
}
