.info-section {
    position: relative;
    padding: 0; /* handled by inner elements */
}
.info-background {
    position: relative;
    padding: 0 0 60px 0;
    overflow: visible;
    width: 100%;
}
.info-background::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    /* decorative overlay image (moved from the element to a pseudo-element)
       so its opacity can be controlled independently from the element. */
    background: url('/img/images/dots.png') center center / cover no-repeat;
    opacity: var(--dots-opacity, 0.5); /* default 0.5, override with CSS variable */
    pointer-events: none;
}

/* Position the green band as a full-width background and allow
   the title and table to visually overlap it without interfering.
   The table will be pulled up to overlap the green band; title
   will be positioned into the green area on larger screens.
*/
.info-section {
    position: relative;
    padding-bottom: 0px;
}

.info-section .info-green-card {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 160px; /* visual band height */
    z-index: 1;
    background: var(--accent-color);
}

.info-section > .container {
    position: relative;
    z-index: 2; /* sit above the green band */
    padding-top: 20px; /* small spacing so content doesn't stick to top */
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.green-prod-name {
    background: var(--accent-color);
    padding-top: 40px;

}

.green-prod-name h3 {
    margin-bottom: 0;
    padding-bottom: 0;
    color: var(--secondary-color);
    font-weight: 400;
}

.info-section .info-title h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff; /* title sits visually inside green band */
    /* pull the title upward into the green band */
    margin-top: -5px;
    z-index: 10;
    text-align: left;
}

.info-section .info-tabelca {
    /* table will be pulled up so it overlaps the green band */
    margin-top: -100px;
}

.info-section .info-table {
    position: relative;
    z-index: 3; /* above band and background graphics */
}

@media (max-width: 900px) {
    /* Prevent the whole page from getting a horizontal scrollbar on narrow viewports.
       The table itself remains scrollable (see .info-section .info-table overflow-x). */
    html, body { overflow-x: hidden !important; }

    .info-section .info-green-card { position: relative; height: 120px; }
    .info-section > .container { padding-top: 0; }
    .info-section .info-title h2 { margin-top: 0; color: #fff; }
    .info-section .info-tabelca { margin-top: 0; }
}
.info-green-card {
    background: var(--accent-color);
    color: #fff;
    height: 200px;
    display: flex;
    align-items: center;
    padding-left: 42px;
}
.info-green-card .info-title h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.info-tabelca.container {
    position: relative;
    margin-top: -400px; /* larger overlap to match design */
}
.info-table {
    background: #fff;
    border-radius: 0    px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid rgba(0,0,0,0.04);
}
.info-table .info-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
    padding: 16px 28px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.info-table .info-row:nth-child(odd) {
    background: #fafafa;
}
.info-table .info-row:last-child { border-bottom: none; }
.info-table .info-label {
    font-weight: 400;
    color: rgba(0,0,0,0.8);
    font-size: 0.95rem;
}
.info-table .info-value {
    color: rgba(0,0,0,0.85);
    font-size: 0.95rem;
}

@media (max-width: 992px) {
    .info-table .info-row { grid-template-columns: 160px 1fr; padding: 14px 20px; }
}

@media (max-width: 640px) {
    .info-green-card { padding-left: 18px; height: 72px; }
    .info-background::before { background-size: 220px auto; }
    .info-table .info-row { grid-template-columns: 1fr; gap: 6px; padding: 12px 16px; }
    .info-table .info-label { margin-bottom: 6px; }
}

/* Support for when specs are rendered as an actual <table class="info-table"> */
.info-table {
    width: 100%;
    border-collapse: collapse;
}
.info-table tr {
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.info-table tr:nth-child(odd) {
    background: #fafafa;
}
.info-table td {
    padding: 16px 28px;
    vertical-align: middle;
    color: rgba(0,0,0,0.85);
}
.info-table td:first-child {
    width: 220px;
    font-weight: 400;
    color: rgba(0,0,0,0.8);
}

@media (max-width: 640px) {
    /* Ensure the containing block doesn't scroll; the table itself will scroll when needed */
    .info-section .info-tabelca { overflow: visible; }

    /* Make the table occupy full width on mobile and allow horizontal scrolling on the table itself */
    .info-table {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Keep table cells as table-cells so rows stay as on desktop; allow wrapping in the first column */
    .info-table td {
        display: table-cell;
        padding: 12px 16px;
        vertical-align: top;
        white-space: normal; /* allow values to wrap to fit 100% width when possible */
    }

    .info-table td:first-child {
        white-space: normal;
        width: 160px;
    }
}
/* Documentation images rendered to match specs table area */
.docs-image-table {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
.docs-image-table .doc-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 992px) {
    .docs-image-table { max-width: 900px; }
}
/* Layout for info section: left title, right table inside site container */
.info-section > .container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.info-section .info-title {
    display: flex;
    align-items: center;
    height: 100px;
}

.info-section .info-title h2 {
    margin-top: 40px;
    font-size: 1.6rem;
    color: #fff;
    font-weight: 800;
    width: 20%;
    text-transform: uppercase;
}

.info-section .info-tabelca {
    margin-top: -40px;
}

.info-section .info-table {
    width: 75%;
    max-width: 1300px;
    margin-right: 20px;
}

@media (max-width: 900px) {
    .info-section > .container {
        grid-template-columns: 1fr;
        padding: 0 18px;
    }

    .info-section .info-title {
        height: auto;
        padding: 18px 0;
    }

    .info-section .info-table {
        max-width: 100%;
        margin-right: 0;
    }
}

/* Strong mobile override: ensure the title stacks above the table on narrow viewports.
    Placed at the end to guarantee precedence over earlier rules. */
@media (max-width: 900px) {
    .info-section > .container {
        display: block !important;
        grid-template-columns: none !important;
        padding: 0 14px !important;
    }

    .info-section .info-title {
        display: block !important;
        height: auto !important;
        padding: 14px 0 !important;
        margin-bottom: 8px !important;
    }

    .info-section .info-title h2 {
        width: auto !important;
        margin-top: 0 !important;
        text-align: left !important;
        font-size: 1.1rem !important;
    }

    .info-section .info-tabelca { margin-top: 0 !important; }

    .info-section .info-table {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Hide the decorative green card on mobile and make the title look like it's on the green band */
    .info-section .info-green-card { display: none !important; }

    .info-section .info-title {
        background: var(--accent-color) !important;
        color: #fff !important;
        padding: 16px 14px !important;
        margin: 0 0 12px 0 !important;
        border-radius: 4px !important;
        box-shadow: none !important;
        position: relative !important;
        z-index: 10 !important;
        /* Make the green title full-bleed and shorter on small screens */
        width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        height: 6vh !important; /* reduced height to be less tall */
        display: flex !important;
        align-items: center !important;
        box-sizing: border-box !important;
        border-radius: 0 !important;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

    .info-section .info-title h2 {
        color: #fff !important;
        margin: 0 !important;
        font-size: 1.05rem !important;
        text-transform: uppercase !important;
        letter-spacing: 0.6px !important;
    }
}
/* ================================
   Barlow Font Family
   ================================ */
@font-face {
    font-family: 'Barlow';
    src: url('../Font Barlow/Barlow-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Barlow';
    src: url('../Font Barlow/Barlow-ThinItalic.ttf') format('truetype');
    font-weight: 100;
    font-style: italic;
}

@font-face {
    font-family: 'Barlow';
    src: url('../Font Barlow/Barlow-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Barlow';
    src: url('../Font Barlow/Barlow-ExtraLightItalic.ttf') format('truetype');
    font-weight: 200;
    font-style: italic;
}

@font-face {
    font-family: 'Barlow';
    src: url('../Font Barlow/Barlow-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Barlow';
    src: url('../Font Barlow/Barlow-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Barlow';
    src: url('../Font Barlow/Barlow-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Barlow';
    src: url('../Font Barlow/Barlow-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Barlow';
    src: url('../Font Barlow/Barlow-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Barlow';
    src: url('../Font Barlow/Barlow-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'Barlow';
    src: url('../Font Barlow/Barlow-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Barlow';
    src: url('../Font Barlow/Barlow-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: 'Barlow';
    src: url('../Font Barlow/Barlow-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Barlow';
    src: url('../Font Barlow/Barlow-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'Barlow';
    src: url('../Font Barlow/Barlow-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Barlow';
    src: url('../Font Barlow/Barlow-ExtraBoldItalic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
}

@font-face {
    font-family: 'Barlow';
    src: url('../Font Barlow/Barlow-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Barlow';
    src: url('../Font Barlow/Barlow-BlackItalic.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
}

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

:root {
    /* Colors - AMES Brand*/
    --primary-color: #0c3734;
    --primary-dark: #101f1d;
    --primary-light: #096d55;
    --primary-lighter: #257e5f;
    --secondary-color: #f5f5f5;
    --secondary-offset: #edeff1;
    --accent-color: #4eb051;
    
    /* Semantic color aliases (use these in components) */
    --navbar-background: var(--primary-dark);
    --navbar-accent: var(--primary-light);
    --brand-accent: var(--accent-color);
    --brand-primary: var(--primary-color);
    --brand-primary-dark: var(--primary-dark);

    /* Background / surfaces */
    --bg-plain: var(--secondary-color);
    --bg-white: #ffffff;
    --bg-light: #e8f5e9;
    --bg-gray: #d4e8d4;
    --bg-dark: #0a1f1a; /* deep green */
    --bg-dark-2: #0d2d24;
    --bg-dark-3: #0d2821;
    --bg-dark-4: #0d3d2f;
    --bg-dark-5: #0a2f25;

    /* Brand red accents (used for illustrative placeholders/icons) */
    --brand-red: #ff4444;
    --brand-red-dark: #cc0000;
    --product-red: #dc2626;
    --product-red-dark: #991b1b;
    
    /* New Navbar Colors */
    --navbar-dark-green: #101f1d;
    --navbar-green: #115740;
    --bone-color: #f9f6ee;
    --white-text: #ffffff;
    
    /* Blue accent for weather button only */
    --weather-blue: #2563eb;
    --weather-blue-dark: #1d4ed8;
    
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #707070;
    --text-white: #ffffff;
    
    --bg-white: #ffffff;
    --bg-light: #e8f5e9;
    --bg-gray: #d4e8d4;
    --bg-dark: #0a1f1a;
    
    --border-color: rgba(87, 204, 153, 0.3);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    
    /* Typography */
    --font-primary: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 16px;
    
    /* Spacing */
    --container-max-width: 1300px;
    --section-padding: 80px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* ================================
   Typography
   ================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

p {
    margin-bottom: 1rem;
}

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

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

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

/* ================================
   Container & Layout
   ================================ */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding) 0;
}

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

.section-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
}

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

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--text-white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

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

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

.btn-outline-white {
    background-color: transparent;
    border-color: var(--text-white);
    color: var(--text-white);
}

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

.btn-small {
    padding: 10px 24px;
    font-size: 0.9rem;
    border-radius: 6px;
}

.btn-primary.btn-block,
.btn-white.btn-block {
    margin-top: 8px;
}

.btn-outline.btn-small {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* Ensure the About 'Zakaj sodelovati z nami' CTA is centered */
.why-work-section .cta-button-center {
    text-align: center !important;
}
.why-work-section .cta-button-center .btn {
    display: inline-block;
}

/* ================================
   Navigation
   ================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--navbar-dark-green);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}

.navbar-brand .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 50px;
}

.logo-image {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    font-style: italic;
    color: var(--accent-color);
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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


/* Product-specific overrides for product specs page
   Targets both table-based and div-based specs output so the look matches About page. */
.product-specs-section .info-title h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
}

.product-specs-section .info-table {
    /* If it's a table element (table.info-table) or a container div with class info-table, keep consistent look */
    background: #fff;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    overflow: hidden;
    width: 100%;
    max-width: 900px;
}

/* Table element styling */
.product-specs-section .info-table.table,
.product-specs-section table.info-table {
    width: 100%;
    border-collapse: collapse;
}

.product-specs-section table.info-table td,
.product-specs-section table.info-table th {
    padding: 16px 28px;
    vertical-align: top;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.product-specs-section table.info-table tr:nth-child(odd) {
    background: #fafafa;
}

.product-specs-section table.info-table td:first-child {
    width: 220px;
    font-weight: 600;
    color: rgba(0,0,0,0.8);
}

.product-specs-section table.info-table td:last-child {
    color: rgba(0,0,0,0.85);
}

/* Div-based rows (fallback) */
.product-specs-section .info-table .info-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
    padding: 16px 28px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.product-specs-section .info-table .info-row:nth-child(odd) { background: #fafafa; }
.product-specs-section .info-table .info-row:last-child { border-bottom: none; }
.product-specs-section .info-table .info-row .info-label { font-weight: 600; color: rgba(0,0,0,0.8); }
.product-specs-section .info-table .info-row .info-value { color: rgba(0,0,0,0.85); }
.navbar-toggler span {
    width: 25px;
    height: 3px;
    background-color: var(--white-text);
    transition: all var(--transition-fast);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

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

.nav-link {
    color: var(--white-text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-normal);
}

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

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform var(--transition-fast);
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    padding: 12px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
}

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

.dropdown-item {
    display: block;
    padding: 10px 24px;
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Search Form */
.navbar-search {
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.search-input {
    padding: 8px 40px 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white-text);
    font-size: 0.9rem;
    width: 200px;
    transition: all var(--transition-fast);
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    width: 280px;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
}

.search-button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px;
    background: none;
    border: none;
    color: var(--white-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.search-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.search-button svg {
    display: block;
}

/* Search Modal */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
}

.search-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}

.search-modal-content {
    background: var(--white-bg);
    border-radius: 8px;
    max-width: 900px;
    width: 100%;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.search-modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--white-bg);
    z-index: 10;
}

.search-modal-header h2 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.search-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    border-radius: 50%;
}

.search-modal-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.search-modal-body {
    padding: 24px;
    background: var(--bg-light);
}

.search-modal-body h1 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.search-modal-body > p {
    color: var(--primary-color);
    margin-bottom: 16px;
    font-weight: 600;
}

.search-modal-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-modal-body .search_item {
    padding: 20px;
    margin-bottom: 12px;
    background: var(--white-bg);
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all var(--transition-fast);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-modal-body .search_item:last-child {
    margin-bottom: 0;
}

.search-modal-body .search_item:hover {
    background: var(--bg-light);
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(78, 176, 81, 0.2);
    transform: translateY(-2px);
}

.search-modal-body .search_item h2 {
    margin: 0 0 12px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.search-modal-body .search_item h2 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-weight: 600;
}

.search-modal-body .search_item:hover h2 a {
    color: var(--accent-color);
}

.search-modal-body .search_breadcrumbs {
    font-size: 0.9rem;
    color: var(--primary-light);
    margin-bottom: 12px;
    font-weight: 500;
}

.search-modal-body .search_item p {
    margin: 8px 0 0 0;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
}

.search-modal-body .modified_date {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.search-results-item {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-fast);
}

.search-results-item:last-child {
    border-bottom: none;
}

.search-results-item:hover {
    background: var(--bg-light);
}

.search-results-item h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

.search-results-item h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.search-results-item h3 a:hover {
    color: var(--accent-color);
}

.search-results-item p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.search-no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.lang-link {
    padding: 8px 16px;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--white-text);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lang-link:hover {
    color: var(--accent-color);
}

/* ================================
   Hero Section
   ================================ */
.hero {
    position: relative;
    /* reduced height for most pages (main page #home keeps its own size) */
    height: 380px;
    min-height: 380px;
    display: flex;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 60px;
    overflow: hidden;
    background: var(--bg-dark);
    margin-top: 82px;
}

/* Main page hero - keep original height */
#home {
    height: 550px;
    min-height: 550px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary-dark);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}

/* Hero video: fill background and be responsive. Hide on small screens to save bandwidth. */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

/* On small screens prefer the poster image (or CSS background) instead of video */
@media (max-width: 768px) {
    .hero-video {
        display: block;
    }
    .hero-background {
        /* ensure we don't load the fallback hero image on mobile */
        background-image: none;
        background-color: var(--primary-color);
        background-size: cover;
        background-position: center center;
    }
}

/* Add animated particles/bokeh effect */
.hero-overlay::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    background-size: 100% 100%;
    background-position: 0% 0%;
    animation: float 20s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes float {
    0%, 100% { 
        background-position: 0% 0%; 
        opacity: 0.8;
    }
    50% { 
        background-position: 100% 100%; 
        opacity: 1;
    }
}

.hero .container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
}

.hero-content {
    max-width: 1200px;
    margin-bottom: 80px;
}

/* Main page hero - align content to left */
#home .container {
    margin-left: 0;
    margin-right: 0;
    padding-left: max(20px, calc((100% - 1300px) / 2));
}

#home .hero-content {
    margin-left: 0;
    margin-right: auto;
}

.hero-title {
    font-size: 120px;
    font-weight: 600;
    color: #ffffff !important;
    margin-bottom: 40px;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -2px;
    white-space: nowrap;
}

.hero-subtitle {
    color: #ffffff !important;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* Ensure hero lead / section descriptions match hero subtitle styling
   so product/service intro texts visually align with other hero pages */
.hero .hero-lead,
.hero .section-description,
.section-header .section-description {
    color: #ffffff ;
    text-shadow: 0 1px 10px rgba(0,0,0,0.25);
    margin-top: 12px;
    font-size: 1.05rem;
    line-height: 1.4;
    max-width: 900px;
}

/* When hero has light background, use darker text for readability */
/* Ensure specific dark-foreground heroes keep white lead text */
.products-hero .hero-lead,
.measurement-hero .hero-lead,
.services-hero .hero-lead,
.support-hero .hero-lead,
.contact-hero .hero-lead,
.products-hero .section-description,
.services-hero .section-description,
.support-hero .section-description {
    color: #ffffff !important;
    text-shadow: 0 1px 10px rgba(0,0,0,0.35) !important;
}

/* Light-background heroes keep dark text only when explicitly marked */
.hero.light .hero-lead,
.section-header.light .section-description {
    color: #333333 !important;
    text-shadow: none !important;
}

#black-hero {
    color:#000000;
}

.hero-highlight {
    color: #ffffff;
    display: block;
    text-align: center;
}

.btn-hero {
    display: inline-block;
    padding: 16px 40px;
    background-color: var(--accent-color);
    color: var(--white-text);
    font-weight: 400;
    font-size: 20px;
    text-decoration: none;
    border-radius: 50px;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(78, 176, 81, 0.3);
    white-space: nowrap;
}

/* Small/Tablet screens: left-align hero title, keep CTA centered */
@media (max-width: 992px) {
    .hero .hero-title,
    .articles-hero .hero-title,
    .products-hero .hero-title,
    .about-hero .hero-title,
    .references-hero .hero-title,
    .support-hero .hero-title {
        text-align: left !important;
        white-space: normal !important;
        word-break: break-word !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Keep CTA centered under a left-aligned title */
    .hero .btn-hero,
    .hero .btn {
        display: block !important;
        margin: 18px auto 0 auto !important;
    }
}

/* Explicit mobile overrides to ensure left-aligned titles on narrow viewports */
@media (max-width: 768px) {
    /* High-specificity selector to win over earlier centering rules */
    html body .hero .container .hero-title,
    html body .hero:not(#home) .container .hero-title,
    html body .articles-hero .container .hero-title,
    html body .products-hero .container .hero-title,
    html body .about-hero .container .hero-title,
    html body .references-hero .container .hero-title,
    html body .support-hero .container .hero-title {
        text-align: left !important;
        white-space: normal !important;
        word-break: break-word !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Keep CTA centered under left-aligned title */
    html body .hero .container .btn-hero,
    html body .hero .container .btn {
        display: block !important;
        margin: 18px auto 0 auto !important;
    }
}

@media (max-width: 480px) {
    /* Extra force on very small screens */
    html body .hero .container .hero-title,
    html body .hero:not(#home) .container .hero-title {
        text-align: left !important;
        font-size: 1.9rem !important;
        line-height: 1.15 !important;
        white-space: normal !important;
    }

    html body .hero .container .btn-hero,
    html body .hero .container .btn {
        display: block !important;
        margin: 16px auto 0 auto !important;
    }
}



.btn-hero:hover {
    background-color: #45a048;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 176, 81, 0.4);
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 0;
}

.feature-card {
    background-color: rgba(17, 87, 64, 0.3);
    backdrop-filter: blur(10px);
    padding: 40px 32px;
    border-radius: 16px;
    border: 1px solid rgba(87, 204, 153, 0.3);
    transition: all var(--transition-normal);
    text-align: center;
}

.feature-card:hover {
    background-color: rgba(17, 87, 64, 0.5);
    transform: translateY(-8px);
    border-color: var(--accent-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--text-white);
    position: relative;
}

/* Diagonal stripe pattern for icon placeholder */
.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, rgba(0,0,0,0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0,0,0,0.1) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(0,0,0,0.1) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(0,0,0,0.1) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    border-radius: 12px;
}

.feature-icon svg {
    display: none;
}

.feature-icon::after {
    content: 'ICON';
    position: relative;
    z-index: 1;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.feature-card h3 {
    color: var(--text-white);
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
}

/* ================================
   Section Headers
   ================================ */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 20px;
}

/* Ensure headings inside containers are left-aligned per request */
.container h1,
.container h3,
.container h5,
.container h6 {
    text-align: left;
}

.container h2,
.container h4 {
    text-align: center;
}

.section-label {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--primary-light);
    color: var(--text-white);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.0rem;
    font-weight: 400;
    color: var(--accent-color);
    margin-bottom: 0px;
    padding-bottom: 0px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0;
}

/* ================================
   Products Section
   ================================ */
.products {
    padding: 80px 0;
    background-color: #f8f8f8; /* fallback background */
    position: relative; /* establish stacking context for pseudo-element */
    overflow: visible;
}

/* Static dotted overlay (fixed) behind products section, like services layout */
.products::before {
    content: '';
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0; */
    background-image: url('/img/images/dots.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto; /* span full width */
    background-attachment: fixed; /* fixed to viewport like in services.ctp */
    opacity: 0.12; /* subtle */
    pointer-events: none;
    z-index: 0;
    display: block !important;
}

.products > .container {
    position: relative;
    z-index: 1; /* ensure content sits above the dotted overlay */
}

.products-hero {
    /* slightly reduced product hero height to match overall tone */
    height: 420px;
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 50px;
}

.products-hero .hero-background {
    background: url('/img/images/ProductBg.png') center center / cover no-repeat;
}

.products-hero .hero-overlay {
    background: transparent;
}

.measurement-hero .hero-background {
    background: url('/img/images/MeasureBg.png') center center / cover no-repeat !important;
}

.measurement-hero .hero-overlay {
    background: transparent;
}

.products-hero .hero-title,
.products-hero .hero-subtitle,
.measurement-hero .hero-title,
.measurement-hero .hero-subtitle {
    color: #ffffff !important;
    text-align: center;
}

.products-hero .hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.products-hero .hero-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.products-hero .hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.9);
}

.products::before {
    display: block !important;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: transparent; /* card surface removed; image holds visual background */
    overflow: visible; /* allow image shadow to show */
    transition: none;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    /* keep hover subtle on card itself; image will highlight */
    text-decoration: none;
}

.product-image {
    position: relative;
    height: 260px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition-normal);
    transform-origin: center center;
    backface-visibility: hidden;
    will-change: transform;
}

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

/* For card variants that center images with translate(-50%,-50%) (ratio boxes),
   preserve centering when scaling by including the translate in the transform. */
.related-products-grid .product-card:hover .product-image img,
.product-gallery-carousel .gallery-carousel-slide:hover img {
    transform: translate(-50%, -50%) scale(1.05);
}

.product-overlay {
    display: none;
}

.product-content {
    padding: 20px;
    background: transparent; /* only image has white background */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Highlight the image border and add a subtle lift when hovering the card */
.product-card:hover .product-image {
    border-color: var(--accent-color);
    box-shadow: 0 12px 30px rgba(78,176,81,0.12);
    /* no translate on container to avoid shifting; image scales instead */
}

.product-content h3 {
    font-size: 0.9rem;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.3;
    min-height: 40px;
}

.product-content p {
    color: #666666;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0;
    flex-grow: 1;
}

.product-features {
    display: none;
}

.product-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

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

/* Simple Products Grid (Icon + Title style) */
.products-simple-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 60px 40px;
    margin-bottom: 40px;
}

.product-simple-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    transition: transform var(--transition-fast);
    cursor: pointer;
}

.product-simple-item:hover {
    transform: translateY(-8px);
}

.product-simple-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all var(--transition-fast);
}

.product-simple-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    color: var(--primary-color);
}

.product-simple-item:hover .product-simple-icon img {

    color: var(--accent-color);
    transform: scale(1.1);  
}

.product-simple-title {
    font-size: 1.05rem;
    color: var(--primary-color);
    font-weight: 500;
    margin: 0;
    transition: color var(--transition-fast);
}

.product-simple-item:hover .product-simple-title {
    color: var(--accent-color);
}

/* Products Overview Section Styling */
.products-overview {
    background: url('/img/images/dotsbgwh.png') center center / cover no-repeat;
    padding: 80px 0;
} 

/* Remove separator line from products section */
.products-overview .section-header::after {
    display: none;
}

.products-overview .section-title {
    color: var(--text-dark);
    margin-bottom: 16px;
}

.products-overview .section-description {
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 60px;
}

/* ================================
   Testimonials Section
   ================================ */
.testimonials{
    background: var(--secondary-color);
    padding: 80px 0;
}

.about_testimonials {
    background: url('/img/images/dotsbg.png') center center / cover no-repeat;
    padding: 80px 0;
}

.testimonials .section-header::after {
    display: none;
}

.testimonials .container {
    max-width: 1200px;
}

.testimonials-grid {
    display: none;
}

.testimonial-card {
    display: flex;
    align-items: center;
    gap: 40px;
    background: transparent;
    border: none;
    padding: 40px 60px;
    position: relative;
}

.testimonial-card:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
}

.testimonial-quote-left,
.testimonial-quote-right {
    flex-shrink: 0;
    line-height: 0;
    position: relative;
}

.testimonial-quote-left {
    align-self: flex-start;
    margin-top: 0;
}

.testimonial-quote-left img {
    width: 80px !important;
    height: 80px !important;
    opacity: 1;
}

.testimonial-quote-right {
    align-self: flex-end;
    margin-bottom: 0;
}

.testimonial-quote-right img {
    width: 40px !important;
    height: 40px !important;
    opacity: 1;
}

.testimonial-quote {
    display: none;
}

.testimonial-content {
    flex: 1;
    text-align: center;
}

.testimonial-text {
    color: var(--text-dark);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
    font-weight: 400;
}

.testimonial-author {
    display: block;
    padding-top: 0;
    border-top: none;
    text-align: center;
}

.author-info {
    text-align: center;
}

.author-name {
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.author-position {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* ================================
   Live Weather Data Section
   ================================ */
.live-weather {
    background: url('/img/images/meteobg.png') center center / cover no-repeat;
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.live-weather::before {
    display: none;
}

/* Centered container with limits; content laid out horizontally on wide screens */
.weather-content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    text-align: left;
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 20px;
    gap: 32px;
}

/* Left icon block that will match the text block height */
.weather-icon-large {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 80px;
    height: auto;
}

.weather-icon-large img {
    height: 100%;
    width: auto;
    display: block;
    max-height: 220px; /* reasonable cap on very large screens */
}

/* Text block which determines the height; icon will stretch to match via parent stretching */
.weather-content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    text-align: left;
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 20px;
    gap: 32px;
    text-decoration: none;
    color: inherit;
}

.weather-description {
    font-size: 1.15rem;
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
}

.weather-info {
    display: none;
}

.weather-visual,
.weather-station-name {
    display: none;
}

/* Blue button for weather data only (kept) */
.weather-info .btn-primary {
    background: linear-gradient(135deg, var(--weather-blue) 0%, var(--weather-blue-dark) 100%);
    border-color: var(--weather-blue);
}

.weather-info .btn-primary:hover {
    background: linear-gradient(135deg, var(--weather-blue-dark) 0%, var(--weather-blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

/* Responsive: stack vertically on narrow screens */
@media (max-width: 780px) {
    .weather-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 18px;
    }

    .weather-icon-large img {
        max-height: 140px;
    }

    .weather-title { font-size: 1.9rem; }
    .weather-description { font-size: 1rem; }
}

/* ================================
   References Section
   ================================ */
.references {
    padding: 15px 0;
    background: #0f211d ;
    position: relative;
    border-top: 1px solid rgba(78, 176, 81, 0.1);
}

/* Ensure references section sits above any viewport-fixed decorative pseudo-elements
   (some sections use `background-attachment: fixed` which can show through). */
.references {
    position: relative !important;
    z-index: 10 !important;
}

.references .references-carousel-wrapper,
.references .references-track,
.references .container {
    position: relative !important;
    z-index: 11 !important;
}

/* Emergency: disable viewport-fixed decorative pseudo-elements that can bleed
   into later sections (these are low-opacity visuals used site-wide). This
   ensures sections like `.references` and `.articles-section` render solid
   backgrounds without pale-green overlays. If you prefer to re-enable any
   of these decorations selectively, remove the corresponding selector. */
.products::before,
.products-overview::before,
.news::before,
.cta::before,
.section-primary::before,
.stats::before,
.hero-overlay::before,
.info-background::before {
    display: none !important;
    content: none !important;
    background: transparent !important;
    background-attachment: scroll !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Re-enable the dots overlay specifically for the info section (overrides the emergency disable) */
.info-section .info-background::before {
    display: block !important;
    content: '' !important;
    background: url('/img/images/dots.png') center center / cover no-repeat !important;
    opacity: var(--dots-opacity, 0.5) !important;
    pointer-events: none !important;
}

/* Also re-enable the dots overlay for hero and product-hero backgrounds,
   but exclude the main frontpage hero (#home) so the video shows unobstructed. */
.hero:not(#home) .hero-overlay::before,
.hero:not(#home) .hero-background::before,
.product-hero .hero-background::before {
    display: block !important;
    content: '' !important;
    background: url('/img/images/dots.png') center center / cover no-repeat !important;
    opacity: var(--dots-opacity, 0.5) !important;
    pointer-events: none !important;
}


.references .section-header {
    margin-bottom: 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 0px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0;
    font-weight: 300;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 3px;
}

/* Remove decorative line under references title */
.references .section-header::after {
    display: none;
}

.references-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1300px;
    margin: 0px auto;
    margin-top: -20px;
    position: relative;
}

.carousel-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    z-index: 10;
}

.carousel-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: scale(1.15);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

.references-carousel {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.references-track {
    display: flex;
    gap: 40px;
    /* Slower, smoother scroll for the references carousel. 8s gives a leisurely pace; adjust to 5-10s as needed */
    transition: transform 8s ease-in-out;
    align-items: center;
}

.reference-slide {
    flex: 0 0 calc(20% - 32px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 5px;
    min-height: 100px;
}

.reference-slide img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    /* Temporarily removed to display actual logos */
    /* filter: brightness(0) invert(1); */
    /* opacity: 0.4; */
    transition: all var(--transition-normal);
}

.reference-slide:hover img {
    /* opacity: 0.8; */
    transform: scale(1.05);
}

/* ================================
   Stats Section
   ================================ */
.stats {
    background: url('/img/images/statsbg.png') center center / cover no-repeat;
    color: var(--text-white);
    position: relative;
    padding: 60px 0;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 5rem;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1;
    letter-spacing: -2px;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* ================================
   News Section
   ================================ */
.news {
    padding: 80px 0 100px;
    background: var(--secondary-offset);
    position: relative;
}

.news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: url('/img/images/dots.png') no-repeat center center / cover;
    opacity: 0.2;
    background-attachment: fixed;
    z-index: 0;
    pointer-events: none;
}

.news .section-header {
    margin-bottom: 60px;
    text-align: center;
}

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

.news .section-title {
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 0;
}

.news .section-description {
    display: none;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    background: transparent; /* no background behind text */
    border-radius: 12px;
    overflow: visible;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-6px);
    /*box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);*/
}

.news-image {
    position: relative;
    height: 250px;
    background: #e8e8e8;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.news-card:hover .news-image img {
    transform: scale(1.08);
}

/* small decorative triangle in bottom-right corner */
.news-image:after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 0;
    /* triangle pointing into image from bottom-right corner */
    border-left: 48px solid transparent;
    border-bottom: 48px solid var(--primary-dark);
    pointer-events: none;
    transition: border-bottom-color 0.2s ease;
}

.news-card:hover .news-image:after {
    border-bottom-color: var(--accent-color);
}

.news-card:hover .news-image {  
    border-color: var(--accent-color);
}

/* Responsive: preserve image aspect ratio on small/mobile screens
   Some mobile webviews can distort images when a fixed container height
   is used. Make the image height auto on narrow viewports so intrinsic
   aspect ratio is preserved. Keep object-fit where supported. */
@media (max-width: 768px) {
    .news-image {
        height: auto;
    }

    .news-image img {
        width: 100%;
        height: auto; /* preserve aspect ratio */
        max-width: 100%;
        object-fit: cover; /* browsers that support it will still crop if needed */
    }

    /* hide decorative triangle on small screens to avoid covering image */
    .news-image:after {
        display: none;
    }
}

.news-content {
    padding: 14px 18px 22px 18px;
}

.news-title {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 8px 0 0 0;
    font-weight: 600;
    line-height: 1.35;
}

.news-title a {
    color: inherit;
    text-decoration: none;
}

.news-title a:hover {
    color: var(--accent-color);
}

.news-date {
    display: none;
}

.news-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: none;
}

.news-category {
    display: none;
}

.news-title {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 500;
    line-height: 1.5;
}

.news-excerpt {
    display: none;
}

.news-link {
    display: none;
}

.section-footer {
    display: none;
}

/* ================================
   News/Articles Page Specific Styles
   ================================ */
.articles-section .news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.articles-section .news-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.articles-section .news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.articles-section .news-image {
    position: relative;
    height: 300px;
    background: #e8e8e8;
    overflow: hidden;
}

.articles-section .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.articles-section .news-card:hover .news-image img {
    transform: scale(1.08);
}

.articles-section .news-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.articles-section .news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.articles-section .news-date {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 400;
}

.articles-section .news-title {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
    transition: color var(--transition-normal);
}

.articles-section .news-title a {
    color: inherit;
    text-decoration: none;
}

.articles-section .news-title a:hover {
    color: var(--primary-color);
}

.articles-section .news-excerpt {
    display: block;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-top: auto;
}

.no-articles {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ================================
   CTA Section
   ================================ */
.cta {
    background: url('/img/images/wavy.png') center center / cover no-repeat;
    color: var(--text-white);
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: var(--section-padding) 0;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(128, 237, 153, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================================
   Footer
   ================================ */
.footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
}

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

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    text-align: left !important;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: var(--secondary-color);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-certification {
    margin-top: 32px;
}

.footer-certification img {
    max-width: 200px;
    height: auto;
    /* Temporarily removed to display actual image */
    /* filter: brightness(0) invert(1); */
    /* opacity: 0.8; */
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 60px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .articles-section .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 40px;
    }
    
    .navbar-toggler {
        display: flex;
    }
    
    .navbar-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--primary-dark);
        flex-direction: column;
        padding: 0;
        box-shadow: var(--shadow-md);
        opacity: 0;
        visibility: hidden;
        transform: translateX(-100%);
        transition: all 0.3s ease;
        overflow-y: auto;
        z-index: 999;
    }
    
    .navbar-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
    
    .navbar-actions {
        display: flex !important;
        gap: 12px;
        padding: 16px;
        background: rgba(0, 0, 0, 0.2);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .navbar-actions .navbar-search {
        flex: 1;
    }
    
    .navbar-actions .search-form {
        width: 100%;
    }
    
    .navbar-actions .search-input {
        width: 100%;
        background: rgba(255, 255, 255, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.3);
        color: white;
        padding: 12px 50px 12px 16px;
        border-radius: 25px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
    }
    
    .navbar-actions {
        background: transparent;
    }
    
    .navbar-actions .search-input::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }
    
    .navbar-actions .search-input {
        padding: 12px 16px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.9rem;
        transition: all 0.2s ease;
    }
    
    .navbar-actions .search-input:focus {
        border-color: rgba(255, 255, 255, 0.4);
        background: rgba(255, 255, 255, 0.15);
        outline: none;
    }
    
    .navbar-actions .search-button {
        right: 8px;
        color: rgba(255, 255, 255, 0.7);
    }
    
    .navbar-actions .lang-link {
        padding: 10px 16px;
        background: rgba(78, 176, 81, 0.3);
        border-radius: 8px;
        white-space: nowrap;
        transition: all 0.2s ease;
        border: 1px solid rgba(78, 176, 81, 0.4);
    }
    
    .navbar-actions .lang-link:hover {
        background: rgba(78, 176, 81, 0.5);
        transform: translateY(-1px);
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 12px;
        align-items: stretch;
    }
    
    .navbar-nav > li {
        margin-bottom: 2px;
        width: 100%;
        transition: margin-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .navbar-nav > li.active {
        margin-bottom: 10px;
    }
    
    .nav-link {
        color: rgba(255, 255, 255, 0.9) !important;
        padding: 14px 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.95rem;
        font-weight: 500;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        transition: all 0.2s ease;
        width: 100%;
    }
    
    .nav-link:hover {
        background: rgba(78, 176, 81, 0.15);
    }
    
    .dropdown-arrow {
        transition: transform 0.3s ease;
        font-size: 0.85rem;
        margin-left: 8px;
    }
    
    .mega-dropdown {
        width: 100%;
    }
    
    .mega-dropdown > .nav-link {
        cursor: pointer;
    }
    
    .mega-menu {
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        margin-top: 0;
        width: 100%;
        display: none;
    }
    
    .mega-menu.active {
        max-height: 2000px;
        margin-top: 8px;
        display: block;
    }
    
    .mega-dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    .mega-menu-content {
        flex-direction: column;
        padding: 0;
        gap: 6px;
        width: 100%;
    }
    
    .mega-menu-left {
        width: 100%;
        padding: 0;
    }
    
    .mega-menu-section {
        display: flex;
        flex-direction: column;
        gap: 6px;
        width: 100%;
    }
    
    .mega-menu-section h4 {
        display: none;
    }
    
    .mega-dropdown-item {
        padding: 12px 16px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border-radius: 6px !important;
        display: block !important;
        transition: all 0.2s ease;
        margin: 0 !important;
        width: 100%;
    }
    
    .mega-dropdown-item:hover {
        background: rgba(78, 176, 81, 0.2) !important;
        transform: translateX(4px);
    }
    
    .mega-dropdown-item .item-title {
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.9rem;
        font-weight: 400;
    }
    
    .mega-menu-right,
    .mega-menu-image-card {
        display: none !important;
    }
    
    .hero {
        height: auto;
        min-height: 240px;
    }
    
    #home {
        height: auto;
        min-height: 350px;
    }
    
    .hero .container {
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
        white-space: normal;
        letter-spacing: -1px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .products-simple-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px 24px;
    }

    .product-simple-icon {
        width: 80px;
        height: 80px;
    }

    .product-simple-title {
        font-size: 0.95rem;
    }

    /* Mobile References: Keep horizontal scrolling, smaller images, no arrows */
    .references-carousel-wrapper {
        flex-direction: row;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .references-carousel-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    .carousel-btn {
        display: none;
    }
    
    .references-carousel {
        flex: none;
        width: auto;
        overflow: visible;
    }
    
    .references-track {
        display: flex;
        gap: 8px;
        transition: none;
        transform: none;
        width: max-content;
    }
    
    .reference-slide {
        flex: 0 0 auto;
        width: 80px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
        min-height: auto;
    }
    
    .reference-slide img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        filter: none;
        opacity: 1;
        transition: none;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        height: auto;
        min-height: 250px;
    }
    
    #home {
        height: auto;
        min-height: 450px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        white-space: normal;
        letter-spacing: -0.5px;
    }
    
    .btn-hero {
        font-size: 16px;
        padding: 12px 24px;
        letter-spacing: 1px;
    }
    
    .stat-number {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .stat-label {
        font-size: 0.85rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .articles-section .news-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .products-simple-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 20px;
    }

    .product-simple-icon {
        width: 70px;
        height: 70px;
    }

    .product-simple-title {
        font-size: 0.9rem;
    }

    .testimonial-card {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        padding: 30px 20px;
    }

    .testimonial-quote-left,
    .testimonial-quote-right {
        display: block !important;
    }

    .testimonial-quote-left img,
    .testimonial-quote-right img {
        width: 50px !important;
        height: 50px !important;
    }

    .testimonial-text {
        font-size: 1rem !important;
    }

    .weather-title {
        font-size: 1.8rem;
        color: var(--secondary-color);
    }

    .weather-description {
        font-size: 1rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }
}

/* ================================
   Additional Professional Styling
   ================================ */

/* Enhanced Navigation */
.navbar {
    backdrop-filter: none;
    background-color: var(--navbar-dark-green);
}

/* Section separators */
.section-header::after {
    display: none;
}

/* Enhanced product cards */
.product-card {
    border: 1px solid var(--border-color);
}

/* Better stat colors */
.stat-number {
    background: var(--secondary-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced news cards */
.news-image {
    border: 1px solid var(--border-color);
}

/* Better hover states */
.product-card:hover,
.reference-card:hover {
    border-color: var(--primary-light);
}

/* Feature cards gradient border */
.feature-card {
    background: linear-gradient(135deg, rgba(87, 204, 153, 0.1), rgba(128, 237, 153, 0.1));
    border: 2px solid rgba(87, 204, 153, 0.3);
}

.feature-card:hover {
    background: linear-gradient(135deg, rgba(87, 204, 153, 0.2), rgba(128, 237, 153, 0.2));
    border-color: var(--secondary-color);
}

/* Strong mobile overrides for frontpage hero to ensure readable left-aligned title and CTA */
@media (max-width: 768px) {
    /* Keep container padding but align content to the left on frontpage */
    #home.container,
    #home .container,
    #home .hero .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: left !important;
    }

    /* Force hero content left-aligned and limit width so title wraps nicely */
    #home .hero-content,
    .hero .hero-content {
        max-width: 90% !important;
        margin: 0 auto !important;
        text-align: left !important;
    }

    /* Larger, multi-line hero title (left aligned) */
    #home .hero-title,
    .hero .hero-title {
        font-size: 4rem !important; /* keep larger size for readability */
        line-height: 1.02 !important;
        white-space: normal !important;
        display: block !important;
        margin: 0.2em 0 1.2em 0 !important;
        text-align: left !important;
        max-width: 90% !important;
    }

    /* Center CTA button while keeping title left-aligned */
    #home .btn-hero,
    .hero .btn-hero {
        display: block !important;
        margin: 32px auto 0 auto !important;
        font-size: 1.05rem !important;
        padding: 14px 40px !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    #home .hero-title,
    .hero .hero-title {
        font-size: 3.0rem !important; /* mobile size */
        line-height: 1.03 !important;
        max-width: 90% !important;
    }

    #home .btn-hero,
    .hero .btn-hero {
        font-size: 1.0rem !important;
        padding: 13px 34px !important;
        margin-top: 28px !important;
    }
}

/* Section label with gradient */
.section-label {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

/* CTA section enhancement */

.section-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(87, 204, 153, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(128, 237, 153, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Stats section enhancement */
.stats {
    background: url('/img/images/statsbg.png') center center / cover no-repeat;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(87, 204, 153, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(128, 237, 153, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Product overlay color */
.product-overlay {
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.95) 0%, rgba(13, 58, 77, 0.95) 100%);
}

/* Enhanced buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}


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

.section.visible {
    animation: fadeInUp 0.6s ease-out;
}

/* Professional shadows */
.reference-card {
    box-shadow: 0 2px 8px rgba(26, 95, 122, 0.1);
}
/*
.product-card:hover {
    box-shadow: 0 8px 24px rgba(26, 95, 122, 0.2);
}*/



/* Icon colors */
.feature-icon {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

/* Icon colorize utilities
     - For <img>: add class `icon-colorize` directly to the <img> element.
         Example: <img src="/img/icon.png" class="icon-colorize" alt=""> 

     - For mask-based recolor (recommended for single-shape PNGs): use `icon-mask` and set
         `--icon-url` inline or in CSS. The element's background will change to the accent color on hover.
         Example: <span class="icon-mask" style="--icon-url: url('/img/icon.png'); width:24px; height:24px;"></span>

     - For background-image icons: use `icon-bg` class on the element containing the background image.
         Example: <span class="icon-bg" style="background-image:url('/img/icon.png'); width:24px; height:24px;"></span>

     All variants use the site's `--accent-color` variable and include smooth transitions.
*/
/* Mobile override: allow hero title to use more horizontal space and remove forced <br> breaks */
@media (max-width: 768px) {
    /* Hide manual <br> in titles so text can wrap naturally on narrow screens */
    #home .hero-title br,
    .hero .hero-title br {
        display: none !important;
    }

    /* Use viewport-relative width to guarantee ~90% available width */
    #home .hero-content,
    .hero .hero-content {
        width: 90vw !important;
        max-width: 90vw !important;
        padding-left: 5vw !important;
        padding-right: 5vw !important;
        box-sizing: border-box !important;
    }

    #home .hero-title,
    .hero .hero-title {
        width: 90vw !important;
        max-width: 90vw !important;
        white-space: normal !important;
    }
}

.icon-colorize {
    display: inline-block;
    vertical-align: middle;
    transition: filter .18s ease, opacity .18s ease;
    filter: none;
}
.icon-colorize:hover {
    /* Make the image monochrome and tint towards the accent color. Tweak if needed. */
    filter: grayscale(1) brightness(0) sepia(1) saturate(10000%) hue-rotate(85deg) brightness(1);
}

.icon-mask {
    display: inline-block;
    vertical-align: middle;
    background-color: transparent; /* will become accent on hover */
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    transition: background-color .18s ease, opacity .18s ease;
}
.icon-mask {
    /* Provide the image via CSS var: --icon-url: url('/img/icon.png') */
    -webkit-mask-image: var(--icon-url);
    mask-image: var(--icon-url);
}
.icon-mask:hover {
    background-color: var(--accent-color, #4eb051);
}

.icon-bg {
    display: inline-block;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: filter .18s ease, background-color .18s ease;
}
.icon-bg:hover {
    /* Approximate tint for background-image icons. */
    filter: grayscale(1) brightness(0) sepia(1) saturate(10000%) hue-rotate(85deg) brightness(1);
    background-color: var(--accent-color, #4eb051);
}

/* Better text contrast */
.hero-subtitle {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-title {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* ================================
   Mega Dropdown Menu
   ================================ */
.mega-dropdown {
    position: static;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: transparent;
    box-shadow: 0 8px 24px rgba(13, 61, 47, 0.3);
    border-radius: 0;
    padding: 0;
    min-width: 100%;
    width: 100vw;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    z-index: 999;
    max-height: none;
    overflow: visible;
}

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

.mega-menu-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 0;
}

.mega-menu-left {
    display: flex;
    flex-direction: column;
    background-color: var(--primary-dark);
    padding: 50px 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.mega-menu-right {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background-color: #f5f5f5;
    padding: 50px 60px;
    align-items: start;
}

.mega-menu-right-grid {
    grid-template-columns: repeat(4, 1fr);
}

.mega-menu-section h4 {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--secondary-color);
}

.mega-dropdown-item {
    display: flex;
    flex-direction: column;
    padding: 0;
    border-radius: 0;
    transition: all var(--transition-fast);
    text-decoration: none;
    margin-bottom: 0;
    line-height: 2.5;
}

.mega-dropdown-item:hover {
    background-color: transparent;
    transform: translateX(0);
}

.mega-dropdown-item .item-title {
    color: #ffffff;
    font-weight: 400;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color var(--transition-fast);
}

.mega-dropdown-item:hover .item-title {
    color: var(--accent-color);
}

.mega-menu-image-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: all var(--transition-normal);
    text-decoration: none;
    background-color: transparent;
    border: none;
    padding: 20px 10px;
    text-align: center;
}

.mega-menu-image-card:hover {
    box-shadow: none;
    transform: translateY(-4px);
    border-color: transparent;
}

.image-placeholder {
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, rgba(0,0,0,0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0,0,0,0.1) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(0,0,0,0.1) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(0,0,0,0.1) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.image-placeholder span {
    position: relative;
    z-index: 1;
    color: white;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mega-menu-image-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: brightness(0) saturate(100%) invert(39%) sepia(33%) saturate(1058%) hue-rotate(115deg) brightness(93%) contrast(92%);
    transition: filter var(--transition-fast);
}

.mega-menu-image-card:hover img {
    filter: brightness(0) saturate(100%) invert(58%) sepia(73%) saturate(430%) hue-rotate(75deg) brightness(96%) contrast(86%);
}

.image-card-title {
    display: block;
    padding: 0;
    color: #0d3d2f;
    font-weight: 600;
    font-size: 0.75rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    transition: color var(--transition-fast);
}

.mega-menu-image-card:hover .image-card-title {
    color: var(--accent-color);
}

/* Mega menu overlay backdrop */
.mega-menu::before {
    display: none;
}

/* Responsive mega menu */
@media (max-width: 1200px) {
    .mega-menu-content {
        grid-template-columns: 350px 1fr;
    }
    
    .mega-menu-right {
        grid-template-columns: repeat(3, 1fr);
        padding: 40px 40px;
    }
    
    .mega-menu-left {
        padding: 40px 30px;
    }
}

@media (max-width: 1024px) {
    .mega-menu-content {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .mega-menu-left {
        padding: 40px 30px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mega-menu-right {
        grid-template-columns: repeat(3, 1fr);
        padding: 40px 30px;
    }
    
    .mega-menu-image-card img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    .mega-menu {
        position: relative;
        width: 100%;
        max-height: none;
    }
    
    .mega-menu-right {
        grid-template-columns: repeat(2, 1fr);
        padding: 30px 20px;
    }
    
    .mega-menu-left {
        padding: 30px 20px;
    }
    
    .mega-menu-image-card {
        padding: 15px 5px;
    }
    
    .mega-menu-image-card img {
        width: 50px;
        height: 50px;
    }
    
    .image-card-title {
        font-size: 0.7rem;
    }
    
    .mega-menu-content {
        padding: 24px 16px;
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .mega-menu-image-card:hover {
        transform: none;
    }
    
    .mega-dropdown:hover .dropdown-arrow {
        transform: none;
    }
}

@media (max-width: 480px) {
    .mega-menu-right,
    .mega-menu-right-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mega-menu-image-card {
        padding: 10px 5px;
    }
    
    .mega-menu-image-card img {
        width: 40px;
        height: 40px;
    }
    
    .image-card-title {
        font-size: 0.65rem;
    }
}

/* ================================
   Support Page Styles
   ================================ */

/* Support Hero */
.support-hero {
    /* slightly reduced from 400 to 320 for better balance */
    min-height: 320px;
    padding: 100px 0 60px;
}

.support-hero .hero-background {
    background: url('/img/images/SupportBg.png') center center / cover no-repeat;
}

.support-hero .hero-overlay {
    background: transparent;
}

.support-hero .hero-title,
.support-hero .hero-subtitle,
.support-hero .hero-highlight {
    color: #ffffff !important;
}

.support-hero .hero-title {
    margin-bottom: 20px;
}

.support-hero .hero-subtitle {
    max-width: 700px;
    margin: 0 auto;
}

/* Search Documentation */
.search-documentation {
    padding: 60px 0;
    background: var(--bg-white);
}

.search-box-large {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 8px 8px 8px 24px;
    transition: all var(--transition-normal);
}

.search-box-large:focus-within {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search-box-large .search-icon {
    color: var(--text-light);
    margin-right: 16px;
    flex-shrink: 0;
}

.search-box-large input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.1rem;
    padding: 12px 0;
    background: transparent;
}

.search-box-large input::placeholder {
    color: var(--text-light);
}

.search-box-large .search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.search-box-large .search-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Quick Links Section */
.quick-links-section {
    padding: 20px 0 20px;
    background: var(--secondary-color);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.quick-link-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.quick-link-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-normal);
}

.quick-link-card:hover .quick-link-icon {
    transform: scale(1.1) rotate(5deg);
}

.quick-link-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.quick-link-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Documentation Section */
.documentation-section {
    background: white;
}

.documentation-section .section-header {
    position: relative;
    margin-bottom: 50px;
}

.documentation-section .section-header::after {
    display: none;
}

.documentation-categories {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.doc-category {
    background: transparent;
    border-radius: 12px;
    padding: 32px;
    transition: all var(--transition-normal);
}



.doc-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary-color);
}

.doc-category-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.doc-count {
    background: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.doc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.doc-item {
    background: white;
    padding: 20px 24px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.doc-item:hover {
    border-color: var(--primary-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateX(5px);
}

.doc-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.doc-icon {
    color: var(--primary-color);
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.doc-item:hover .doc-icon {
    transform: scale(1.1);
}

.doc-details h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.doc-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

.show-more-btn {
    margin-top: 20px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    width: 100%;
}

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

/* Downloads Section */
.downloads-section {
    background: var(--secondary-color);
}

.downloads-section .section-header {
    position: relative;
    margin-bottom: 50px;
}

.downloads-section .section-header::after {
    display: none;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.download-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-light);
}

.download-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-normal);
}

.download-card:hover .download-icon {
    transform: scale(1.1) rotate(-5deg);
}

.download-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--primary-color);
    text-align: center;
}

.download-card > p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
    flex-grow: 1;
}

.download-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
    justify-content: center;
}

.download-meta span {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.download-meta .version {
    font-weight: 600;
    color: var(--primary-color);
}

.download-platforms {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.platform-badge {
    background: var(--secondary-color);
    color: var(--text-medium);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* FAQ Section */
.faq-section {
    background: white;
}

.faq-section .section-header {
    position: relative;
    margin-bottom: 50px;
}

.faq-section .section-header::after {
    display: none;
}

.faq-categories {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.faq-category-btn {
    background: white;
    border: 2px solid var(--secondary-color);
    color: var(--text-medium);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.faq-category-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary-color);
}

.faq-category-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--secondary-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 24px 28px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: all var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform var(--transition-normal);
    color: var(--primary-color);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 28px 28px 28px;
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 1rem;
}

/* Contact Support Section */
.contact-support-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.support-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.support-info > p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
    opacity: 0.9;
}

.support-contact-methods {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-method {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.method-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-details h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: white;
}

.method-details p {
    font-size: 1.05rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.availability {
    font-size: 0.85rem;
    opacity: 0.8;
}

.support-form {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.support-form h3 {
    font-size: 1.8rem;
    margin-bottom: 28px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(12, 55, 52, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23666' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

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

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

/* Responsive Support Page */

/* ================================
   Articles page fixes
   - Remove unwanted moving green/dotted band
   - Make article cards text/background transparent and borderless
   - Add green hover border effect similar to products
   ================================ */
.articles-section::before,
.articles-section .news::before,
.articles-section .info-green-card,
.articles-section .info-section::before,
.articles-section .info-section .info-green-card {
    display: none !important;
    content: none !important;
}

.articles-section {
    background: #ffffff !important;
    background-image: none !important;
}

.articles-section .news-card {
    background: transparent !important;
    box-shadow: none !important;
    border: 1px solid transparent !important;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.articles-section .news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(78,176,81,0.12);
    border-color: var(--accent-color);
}

.articles-section .news-content {
    background: transparent !important;
    border: none !important;
    padding: 24px;
}

.articles-section .news-image {
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.articles-section .news-card:hover .news-image {
    border-color: var(--accent-color);
    box-shadow: 0 12px 30px rgba(78,176,81,0.12);
}

/* Remove section-primary background decorations for newsletter CTA on articles page
   (the faint pale-green radial gradients can bleed into adjacent sections). */
.newsletter-cta.section-primary::before,
.articles-section + .newsletter-cta.section-primary::before,
.newsletter-cta.section-primary::after {
    display: none !important;
    content: none !important;
    background: transparent !important;
}

/* Prevent JS scroll classes from translating the navbar if present.
   This keeps the header fixed and avoids visual shifting that can expose
   underlying gradients when the page scrolls. */
.navbar.scroll-down,
.navbar.scroll-up {
    transform: none !important;
    transition: none !important;
}

/* ================================
   References section fixes
   - Remove any decorative pseudo-elements or background-image overlays
     that produce pale green tints at the edges.
   - Keep other intended dark background styles intact.
   ================================ */
.references::before,
.references::after,
.references .section-header::before,
.references .section-header::after,
.references .references-track::before,
.references .references-track::after {
    display: none !important;
    content: none !important;
    background: transparent !important;
}

.references {
    background-image: none !important;
}

/* Ensure the dotted/green overlay used on generic news/products sections
   does not show on the articles page. Some templates apply both
   `news` and `articles-section` classes on the same element, so
   include both combined selectors and a fallback global hide. */
.news.articles-section::before,
.articles-section.news::before,
.news::before {
    display: none !important;
    content: none !important;
    background: transparent !important;
}


@media (max-width: 1024px) {
    .support-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .downloads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .support-hero {
        min-height: 350px;
        padding: 100px 0 60px;
    }
    
    .search-box-large {
        flex-direction: column;
        border-radius: 12px;
        padding: 20px;
        gap: 16px;
    }
    
    .search-box-large input {
        width: 100%;
        padding: 12px;
        border: 2px solid var(--secondary-color);
        border-radius: 8px;
    }
    
    .search-box-large .search-btn {
        width: 100%;
        padding: 14px;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
    
    .downloads-grid {
        grid-template-columns: 1fr;
    }
    
    .doc-category {
        padding: 24px 20px;
    }
    
    .doc-item {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .faq-categories {
        gap: 8px;
    }
    
    .faq-category-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 20px;
    }
    
    .faq-answer p {
        padding: 0 20px 20px 20px;
    }
    
    .support-form {
        padding: 30px 24px;
    }
}

@media (max-width: 480px) {
    .support-hero .hero-title {
        font-size: 2rem;
    }
    
    .support-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .quick-link-card {
        padding: 30px 20px;
    }
    
    .quick-link-icon {
        width: 60px;
        height: 60px;
    }
    
    .quick-link-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .doc-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .download-card {
        padding: 24px 20px;
    }
    
    .download-icon {
        width: 60px;
        height: 60px;
    }
    
    .download-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .support-info h2 {
        font-size: 2rem;
    }
    
    .contact-method {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Fixes specific to live-weather to avoid overrides and ensure icon matches text height */
.live-weather .weather-title {
    color: #ffffff !important;
}

.weather-icon-large {
    align-self: stretch; /* stretch to match .weather-text height */
}

.weather-icon-large img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* Strong overrides to match the original mock: larger text, more padding, and icon sized to text height */
.live-weather .weather-content {
    padding: 28px 20px !important;
    align-items: stretch !important; /* allow icon to stretch to text height */
    gap: 32px !important;
}

.live-weather .weather-text {
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.live-weather .weather-title {
    color: #ffffff !important;
    font-size: 2.4rem !important;
    line-height: 1.05 !important;
    margin-bottom: 8px !important;
}

.live-weather .weather-description {
    color: #ffffff !important;
    font-size: 1.12rem !important;
    line-height: 1.6 !important;
}

.live-weather .weather-icon-large {
    flex: 0 0 auto !important;
    min-width: 140px !important;
    max-width: 360px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.live-weather .weather-icon-large img {
    height: 100% !important; /* fill the stretched container */
    max-height: none !important;
    width: auto !important;
}

@media (max-width: 780px) {
    .live-weather .weather-title { font-size: 1.9rem !important; }
    .live-weather .weather-description { font-size: 1rem !important; }
    .live-weather .weather-icon-large { min-width: 100px !important; }
    .live-weather .weather-icon-large img { max-height: 140px !important; }
}

/* Final tuning: make the whole live-weather block narrower and the icon a bit smaller */
.live-weather .weather-content {
    padding: 12px 16px !important; /* reduce vertical padding to make block shorter */
    max-width: 900px !important;
}

.live-weather {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
}

.live-weather .weather-title {
    font-size: 2.0rem !important; /* slightly smaller title */
}

.live-weather .weather-description {
    font-size: 1.0rem !important; /* slightly smaller description */
}

.live-weather .weather-icon-large {
    min-width: 110px !important; /* smaller icon container */
    max-width: 200px !important;
    align-self: center !important; /* center vertically rather than stretch */
}

.live-weather .weather-icon-large img {
    height: auto !important;
    max-height: 120px !important; /* cap icon height to make it smaller */
    width: auto !important;
}

@media (max-width: 780px) {
    .live-weather .weather-icon-large img { max-height: 110px !important; }
    .live-weather { padding-top: 20px !important; padding-bottom: 20px !important; }
}

/* ================================
   Product Detail Page
   ================================ */
.breadcrumb {
    padding: 100px 0 20px;
    background: #0a1f1a;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.breadcrumb-list li::after {
    content: '/';
    margin-left: 8px;
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumb-list li:last-child::after {
    display: none;
}

.breadcrumb-list a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.breadcrumb-list a:hover {
    color: var(--accent-color);
}

/* Hero Section for Product Detail */
.product-hero {
    background: url('/img/images/dotsbgwh.png') center center / cover no-repeat;
    padding: 80px 0;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
}



.product-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.product-hero-content h1 {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 24px;
    line-height: 1.2;
}

.product-hero-content p {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 32px;
}

.product-hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Features Section */
.product-features-section {
    background: #ffffff;
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 30px;
    height: 30px;
    fill: #ffffff;
}

.feature-content h4 {
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.feature-content p {
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Video/Media Section */
.product-video-section {
    background: #f5f5f5;
    padding: 80px 0;
}

.video-container {
    max-width: 900px;
    margin: 40px auto 0;
    background: #000000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.video-container iframe,
.video-container video {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
}

.video-description {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: center;
}

.video-description h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.video-description p {
    color: #666666;
    font-size: 1rem;
    line-height: 1.8;
}

/* Technical Specifications Section */
.product-specs-section {
    background: #ffffff;
    padding: 40px 0;
    padding-top: 0;
}

/* New layout: left green heading block + right specs table card */
.product-specs-section .container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
}

/* ================================
   Contact Page Styles
   Matches layout in provided screenshots
   ================================ */
.contact-hero {
    position: relative;
    padding: 80px 0 40px;
    min-height: 260px;
    display: flex;
    align-items: center;
    background: url('/img/images/ContactBg.png') center center / cover no-repeat;;
    color: var(--white-text);
}
.contact-hero .hero-background {
    background: url('/img/images/ContactBg.png') center center / cover no-repeat;
    opacity: 0.95;
}
.contact-hero .hero-content { text-align: center; }
.contact-hero .hero-title { font-size: 3.2rem; color: #fff; margin-bottom: 8px; }
.contact-hero .hero-subtitle { color: rgba(255,255,255,0.9); max-width: 820px; margin: 0 auto 18px; }
.contact-hero .btn-primary { border-radius: 40px; padding: 12px 36px; background: linear-gradient(135deg, var(--accent-color) 0%, #3fa047 100%); box-shadow: 0 8px 24px rgba(78,176,81,0.18); }

.contact-form-section { background: #f3f4f4; padding: 60px 0; }
.contact-form-section .container { display: flex; flex-direction: column; align-items: center; }
.form-intro { text-align: center; max-width: 760px; margin-bottom: 20px; color: var(--text-medium); }

.contact-form { width: 100%; max-width: 760px; background: #fff; padding: 28px; border-radius: 8px; box-shadow: 0 12px 40px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.03); }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form .form-group { display: flex; flex-direction: column; }
.contact-form label { font-size: 0.9rem; color: var(--text-medium); margin-bottom: 6px; font-weight: 600; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form select, .contact-form textarea {
    border: 1px solid #e6e6e6; padding: 10px 12px; border-radius: 6px; font-size: 0.95rem; color: var(--text-dark);
}
.contact-form .full-width { grid-column: 1 / -1; }
.contact-form .form-actions { text-align: center; margin-top: 18px; }
.contact-form .btn-primary { padding: 12px 32px; border-radius: 30px; }

.form-success-message { max-width: 760px; margin: 18px auto 0; color: var(--accent-color); }

.head-office-section { padding: 60px 0; background: #ffffff; }
.office-card { display:flex; gap: 24px; align-items:flex-start; max-width: 1100px; margin: 0 auto 24px; }
.office-card .office-flag { flex: 0 0 120px; }
.office-card .office-content { flex: 1 1 auto; }
.office-card .office-content h3 { margin: 0 0 8px; }
.office-card .office-details { background: #f8f8f8; padding: 16px; border-radius: 6px; }

.distributors-section { padding: 60px 0; background: #f5f6f6; }
.distributors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: var(--container-max-width); margin: 40px auto 0; }
.distributor-card { background: #fff; border-radius: 6px; padding: 20px; box-shadow: 0 6px 20px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.03); display:flex; gap:14px; align-items:flex-start; }
.distributor-flag { flex: 0 0 60px; }
.distributor-content h3 { margin: 0 0 10px; font-size: 1rem; color: var(--text-dark); }
.distributor-content p { margin: 0 0 6px; color: var(--text-medium); font-size: 0.92rem; }

@media (max-width: 1100px) {
    .distributors-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .contact-hero { padding: 40px 0; }
    .contact-hero .hero-title { font-size: 2rem; }
    .contact-form .form-row { grid-template-columns: 1fr; }
    .distributors-grid { grid-template-columns: 1fr; }
    .office-card { flex-direction: column; align-items: stretch; }
}

.product-specs-section .specs-top {
    background: var(--accent-green, #39a14f);
    padding: 36px 0 28px 0;
}

.product-specs-section .specs-product-name {
    color: #fff;
    font-size: 1.45rem;
    padding: 18px 30px;
}

.specs-container {
    margin: 0; /* reset container margin */
}

.specs-table {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    overflow: hidden;
}

.specs-table tbody tr:nth-child(odd) td {
    background: #f6f6f6;
}

.specs-table td {
    padding: 18px 22px;
    vertical-align: top;
}

.specs-table td:first-child {
    font-weight: 700;
    color: #222;
    width: 40%;
    background: #fafafa;
}

@media (max-width: 900px) {
    .product-specs-section .specs-top {
        padding: 20px 0 12px 0;
    }

    .product-specs-section .specs-product-name {
        padding: 12px 20px;
        font-size: 1.25rem;
    }

    .specs-container {
        margin-top: 10px;
    }
}

.specs-container.specs-full {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 28px 40px 40px 40px;
    background: #fff;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
}

.specs-table thead {
    background: var(--accent-color);
}

.specs-table thead th {
    padding: 20px;
    text-align: left;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
}

.specs-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

.specs-table tbody tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 20px;
    font-size: 0.95rem;
}

.specs-table td:first-child {
    font-weight: 600;
    color: #1a1a1a;
    width: 40%;
    background: #ffffff;
}

.specs-table td:last-child {
    color: #666666;
}

/* References/Clients Section */
.product-references-section {
    background: #0a1f1a;
    padding: 80px 0;
}

.product-references-section .section-header h2 {
    color: #ffffff;
}

.product-references-section .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.references-logos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    margin-top: 60px;
    align-items: center;
}

.reference-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.reference-logo img {
    max-width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.6;
    transition: opacity var(--transition-normal);
}

.reference-logo:hover img {
    opacity: 1;
}

/* Related Products Section */
.related-products-section {
    background: #f5f5f5;
    padding: 80px 0;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

/* Responsive Design for Product Detail */
@media (max-width: 1024px) {
    .product-hero-grid {
        gap: 60px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .references-logos {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .features-grid {
        gap: 30px;
    }
    
    .references-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .specs-table td {
        padding: 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .product-hero-content h1 {
        font-size: 2rem;
    }
    
    .references-logos {
        grid-template-columns: 1fr;
    }
    
    .related-products-grid {
        grid-template-columns: 1fr;
    }
}

/* Hide extra articles on mobile to show only 3 */
@media (max-width: 768px) {
    .news-grid .news-card:nth-child(n+4) {
        display: none;
    }
}

.product-gallery-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Preview Image Buttons */
.gallery-preview-btn {
    width: 180px;
    height: 200px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
    transition: all var(--transition-normal);
}

.gallery-preview-btn .preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transition: opacity var(--transition-normal);
    filter: grayscale(50%);
}

.gallery-preview-btn:hover .preview-image {
    opacity: 0.2;
}

.gallery-preview-btn .preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
    z-index: 2;
}

.gallery-preview-btn:hover .preview-overlay {
    opacity: 1;
}

.gallery-preview-btn .preview-overlay svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    stroke: var(--accent-color);
}

.product-gallery-carousel {
    flex: 1;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.gallery-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.gallery-carousel-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.gallery-image-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.gallery-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Gallery Indicators */
.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.gallery-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d0d0d0;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.gallery-indicator:hover {
    background: #a0a0a0;
    transform: scale(1.2);
}

.gallery-indicator.active {
    background: var(--accent-color);
    width: 32px;
    border-radius: 6px;
}

/* Gallery Modal */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    background: rgba(0, 0, 0, 0.96);
    cursor: pointer;
}

.gallery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-fast);
    z-index: 10002;
}

.gallery-modal-close:hover {
    background: rgba(78, 176, 81, 0.9);
    border-color: var(--accent-color);
    transform: scale(1.15);
}

.gallery-modal-btn {
    position: fixed;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10001;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-modal-prev {
    left: 40px;
}

.gallery-modal-next {
    right: 40px;
}

.gallery-modal-btn:hover {
    background: rgba(78, 176, 81, 0.9);
    border-color: var(--accent-color);
    transform: translateY(-50%) scale(1.15);
}

.gallery-modal-image-wrapper {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.gallery-modal-image-wrapper img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Responsive Gallery */
@media (max-width: 1024px) {
    .gallery-preview-btn {
        width: 140px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    .product-gallery-carousel-wrapper {
        gap: 12px;
    }
    
    .gallery-preview-btn {
        width: 100px;
        height: 120px;
    }
    
    .gallery-preview-btn .preview-overlay svg {
        width: 24px;
        height: 24px;
    }
    
    .gallery-image-container {
        aspect-ratio: 4 / 3;
    }
    
    .gallery-modal-btn {
        width: 55px;
        height: 55px;
    }
    
    .gallery-modal-prev {
        left: 20px;
    }
    
    .gallery-modal-next {
        right: 20px;
    }
    
    .gallery-modal-btn svg {
        width: 32px;
        height: 32px;
    }
    
    .gallery-modal-close {
        width: 44px;
        height: 44px;
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .product-gallery-section {
        padding: 60px 0;
    }
    
    .gallery-preview-btn {
        width: 60px;
        height: 80px;
    }
    
    .product-gallery-carousel-wrapper {
        gap: 8px;
    }
    
    .gallery-indicators {
        gap: 8px;
    }
    
    .gallery-indicator {
        width: 10px;
        height: 10px;
    }
    
    .gallery-indicator.active {
        width: 24px;
    }
    
    .gallery-modal-btn {
        width: 48px;
        height: 48px;
    }
    
    .gallery-modal-prev {
        left: 10px;
    }
    
    .gallery-modal-next {
        right: 10px;
    }
    
    .gallery-modal-close {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
    }
    
    .gallery-modal-close svg {
        width: 24px;
        height: 24px;
    }
}

/* ============================================= */
/* PRODUCT DETAIL PAGE STYLES                    */
/* ============================================= */

/* Breadcrumb Path */
.breadcrumb-path {
    background-color: #ffffff;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-path .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumb-list li {
    color: #939598;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin: 0 8px;
    color: #939598;
}

.breadcrumb-list a {
    color: #939598;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
    color: #50b848;
}

/* Product Hero Section */


.product-hero .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.product-hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-title {
    font-size: 36px;
    font-weight: 700;
    color: #2c5f2d;
    margin: 0;
    line-height: 1.2;
}

.product-short-description {
    font-size: 16px;
    line-height: 1.6;
    color: #4a4a4a;
}

.btn-contact {
    display: inline-block;
    padding: 14px 32px;
    background-color: #50b848;
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 10px;
}

.btn-contact:hover {
    background-color: #3d8c37;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(80, 184, 72, 0.3);
}

.product-hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-hero-image img {
    width: auto;
    height: auto;
    max-height: 60vh; /* or any % of container */
    max-width: 100%;  /* prevents overflow horizontally */
    object-fit: contain; /* keeps proportions inside the box */
    border-radius: 8px;

}

/* Downloads Section */
.product-downloads-section {
    background-color: var(--secondary-color);
    padding: 20px 0;
}

.product-downloads-section .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-downloads-section .downloads-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.product-downloads-section .downloads-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--secondary-color);
}

.product-downloads-section .downloads-list {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.download-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 6px 6px;
    transition: all 0.18s ease;
}

.download-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
}

.download-icon {
    width: 56px;
    height: 56px;
    background-color: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-icon svg {
    color: #ffffff;
}

.download-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.download-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c2c2c;
    line-height: 1.3;
}

.download-size {
    font-size: 13px;
    color: #777;
}

.download-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.download-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 176, 81, 0.3);
}

.download-button svg {
    width: 18px;
    height: 18px;
}

/* rounded title button style */
.download-btn-title {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}
.download-btn-title:hover { background: var(--primary-color); }

/* Layout variants for requested behaviour */
.downloads-list.two-columns {
    grid-template-columns: repeat(2, 1fr);
}
/* removed special three-layout spanning to allow infinite scaling — grid auto-fits */

@media (max-width: 768px) {
    .downloads-list,
    .downloads-list.two-columns { grid-template-columns: 1fr; }
    .download-item { flex-direction: row; }
    .download-btn-title { width: 100%; text-align: left; }
}

/* Bulletpoints & Downloads Section */
.product-bulletpoints-section {
    background-color: var(--secondary-color);
    padding: 60px 0;
}

.product-bulletpoints-section .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.bulletpoints-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
}

.downloads-area {
    display: flex;
    flex-direction: column;
}

.downloads-card {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #e0e0e0;
}

.downloads-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2c5f2d;
    margin: 0 0 20px 0;
}

.downloads-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.downloads-list li {
    margin-bottom: 12px;
}

.download-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    color: #4a4a4a;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.download-link:hover {
    background-color: #50b848;
    color: #ffffff;
    transform: translateX(4px);
}

.download-link svg {
    flex-shrink: 0;
    color: #50b848;
}

.download-link:hover svg {
    color: #ffffff;
}

.download-link span {
    font-size: 14px;
    font-weight: 500;
}

.file-size {
    font-size: 12px;
    opacity: 0.7;
}

.bulletpoints-area {
    display: flex;
    flex-direction: column;
}

.bulletpoints-content {
    font-size: 16px;
    line-height: 1.8;
    color: #4a4a4a;
}

.bulletpoints-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bulletpoints-content li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 16px;
}

.bulletpoints-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #50b848;
    font-weight: 700;
    font-size: 20px;
}

/* Long Description Section (Dark Emerald Background) */
.product-description-section {
    background: url(/img/images/wavy.png) center center / cover no-repeat;
    padding: 80px 0;
    color: #ffffff;
}

.product-description-section .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.long-description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.long-description h2, .long-description h3 {
    color: #ffffff;
    margin-top: 32px;
    margin-bottom: 16px;
}

.long-description p {
    margin-bottom: 16px;
}

.long-description ul {
    margin-left: 20px;
    margin-bottom: 16px;
}

/* Product description grid when videos exist */
.product-description-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.product-description-grid .video-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.video-embed iframe,
.video-embed video {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    border: none;
}

.video-external a {
    display: inline-block;
    margin-top: 8px;
    color: #ffffff;
    background: rgba(0,0,0,0.2);
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
}

.video-description.white {
    color: #ffffff;
    margin-top: 8px;
}

/* Text column should preserve existing white text styles */
.text-column .long-description { color: #ffffff; }

@media (max-width: 1024px) {
    .product-description-grid {
        grid-template-columns: 1fr;
    }
    .video-embed iframe,
    .video-embed video { height: 220px; }
}

.video-container-wrapper {
    margin-top: 40px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.video-description {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

/* Gallery Section */
.product-gallery-section {
    background-color: #f8f8f8;
    padding: 60px 0;
}

.product-gallery-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-gallery-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.product-gallery-section .section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2c5f2d;
    margin: 0;
}

.product-gallery-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.product-gallery-carousel {
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.gallery-image-container {
    position: relative;
    padding-bottom: 75%;
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 8px;
}

.gallery-image-container img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gallery-preview-btn {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.gallery-preview-btn:hover {
    transform: scale(1.05);
}

.gallery-preview-btn .preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(80, 184, 72, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    transition: background-color 0.3s ease;
}

.gallery-preview-btn:hover .preview-overlay {
    background-color: rgba(80, 184, 72, 0.9);
}

.preview-overlay svg {
    color: #ffffff;
}

.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.gallery-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #50b848;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.gallery-indicator.active {
    background-color: #50b848;
    transform: scale(1.2);
}

.gallery-indicator:hover {
    background-color: #50b848;
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.gallery-modal.active {
    display: flex;
}

.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 10px;
    z-index: 10001;
    transition: transform 0.3s ease;
}

.gallery-modal-close:hover {
    transform: scale(1.1);
}

.gallery-modal-image-wrapper {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-modal-image-wrapper img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.gallery-modal-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(80, 184, 72, 0.8);
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 20px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10001;
}

.gallery-modal-btn:hover {
    background-color: rgba(80, 184, 72, 1);
    transform: translateY(-50%) scale(1.1);
}

.gallery-modal-prev {
    left: 20px;
}

.gallery-modal-next {
    right: 20px;
}

/* Technical Data Section */
.product-technical-section {
    background-color: #ffffff;
    padding: 80px 0;
}

.product-technical-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.technical-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: start;
}

.technical-graphic {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.graphic-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0 0%, #f8f8f8 100%);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.technical-data h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2c5f2d;
    margin: 0 0 30px 0;
}

.specs-table-wrapper {
    background-color: #50b848;
    color: #ffffff;
    border-radius: 8px;
    padding: 30px;
}

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

.specs-table td, .specs-table th {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.specs-table tr:last-child td,
.specs-table tr:last-child th {
    border-bottom: none;
}

.specs-table th {
    font-weight: 700;
    color: #ffffff;
}

.specs-table p {
    color: var(--text-dark);
}

.specs-table td:first-child {
    font-weight: 600;
}

.specs-content {
    line-height: 1.8;
}

/* References Section */
.references-section {
    background-color: #f8f8f8;
    padding: 60px 0;
}

.references-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.references-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.references-section .section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2c5f2d;
    margin: 0;
}

.references-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.references-logos img {
    max-width: 150px;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    filter: grayscale(100%);
}

.references-logos img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Related Products Section */
.related-products-section {
    background-color: #ffffff;
    padding: 60px 0;
}

.related-products-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.related-products-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.related-products-section .section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2c5f2d;
    margin: 0;
}

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

.related-products-grid .product-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.related-products-grid .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.related-products-grid .product-image {
    width: 100%;
    padding-bottom: 75%;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}

.related-products-grid .product-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 20px;
}

.related-products-grid .product-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.related-products-grid .product-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c5f2d;
    margin: 0 0 12px 0;
}

.related-products-grid .product-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
    margin: 0;
}

/* Responsive Design for Product Detail Page */
@media only screen and (max-width: 1024px) {
    .product-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .bulletpoints-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .technical-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media only screen and (max-width: 768px) {
    .product-title {
        font-size: 28px;
    }
    
    .product-hero {
        padding: 40px 0;
    }
    
    .product-bulletpoints-section,
    .product-downloads-section,
    .product-description-section,
    .product-gallery-section,
    .product-technical-section,
    .references-section,
    .related-products-section {
        padding: 40px 0;
    }
    
    .download-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .download-button {
        width: 100%;
        justify-content: center;
    }
    
    .gallery-preview-btn {
        width: 80px;
        height: 80px;
    }
    
    .product-gallery-carousel-wrapper {
        gap: 10px;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media only screen and (max-width: 480px) {
    .product-title {
        font-size: 24px;
    }
    
    .btn-contact {
        width: 100%;
        text-align: center;
    }
    
    .gallery-preview-btn {
        display: none;
    }
    
    .product-gallery-carousel-wrapper {
        gap: 0;
    }
    
    .related-products-grid {
        grid-template-columns: 1fr;
    }
    
    .technical-grid {
        grid-template-columns: 1fr;
    }
    
    .technical-graphic {
        min-height: 250px;
    }
}

/* ================================
   About Page Styles
   ================================ */
.about-hero {
    min-height: 500px;
    position: relative;
}

.about-hero .hero-background {
    background: url('/img/images/AboutBg.png') center center / cover no-repeat;
}

.about-hero .hero-overlay {
    background: transparent;
}

.about-hero .hero-title,
.about-hero .hero-subtitle,
.about-hero .hero-highlight {
    color: #ffffff !important;
}

.mission-vision {
    padding: 80px 0;
    background: #f8f9fa;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

#left-mission {
    text-align: right;
}

#right-mission {
    text-align: left;
}

.mission-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
}

.mission-card .card-icon {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.mission-card h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.mission-card p {
    line-height: 1.8;
    color: var(--text-gray);
}

.stats-section {
    padding: 60px 0;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

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

.stat-number {
    font-size: 80px;
    font-weight: 350;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 20px;
    color: var(--text-gray);
    font-weight: 400;
}

.why-work-section {
    padding: 80px 0;
    background: #f8f9fa;
}

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

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

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.feature-icon {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-gray);
}

.testimonial-single {
    padding: 80px 0;
    background: white;
}

.testimonial-card-large {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    padding: 60px 40px;
}

.quote-icon {
    color: var(--primary-color);
    opacity: 0.1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
    transform-origin: center center;
}

.testimonial-author-large {
    position: relative;
    z-index: 1;
}

.author-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.author-position {
    font-size: 16px;
    color: var(--text-gray);
}

.partners-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.partner-logo {
    background: white;
    padding: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.partner-logo:hover {
    transform: translateY(-2px);
    box-shadow: none;
}
.partner-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

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

.placeholder-text {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 600;
}

.company-info-section {
    padding: 80px 0;
    background: white;
}

.company-info-grid {
    max-width: 900px;
    margin: 60px auto 0;
}

.info-row {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--text-dark);
}

.info-value {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ================================
   Services Page Styles
   ================================ */
.services-hero {
    min-height: 400px;
    padding: 120px 0 80px;
}

.services-hero .hero-background {
    background: url('/img/images/ServiceBg.png') center center / cover no-repeat;
}

.services-hero .hero-overlay {
    background: transparent;
}

.services-hero .hero-title,
.services-hero .hero-subtitle {
    color: #ffffff !important;
}

/* ================================
   Article Pages Styles
   ================================ */
.article-hero {
    /* reduce article hero height to be less tall */
    min-height: 320px;
    display: flex;
    align-items: center;
}

.article-hero .hero-background {
    background: url('/img/images/AppsBg.png') center center / cover no-repeat;
}

.article-hero .hero-overlay {
    background: transparent;
}

.article-hero .hero-title {
    color: #ffffff !important;
    /* Responsive, wrapable title to avoid overflowing the viewport */
    font-size: clamp(28px, 4vw + 1rem, 48px);
    line-height: 1.08;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
    text-align: center;
}

.article-hero .hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.article-meta-header {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.article-category-badge,
.article-date-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.15);
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    color: white;
}

.article-category-badge svg,
.article-date-header svg {
    width: 16px;
    height: 16px;   
}

.article-content-section {
    padding: 60px 0 80px;
    background: #f8f9fa;
}

.article-content-wrapper {
    max-width: 1300px;
    margin: 0 auto;
}

.article-body {
    background: white;
    padding: 60px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    margin-bottom: 40px;
}

/* If the article detail template wraps the content in a outer `.article-card`,
   avoid double-stacked cards: make the inner `.article-body` transparent so
   the title and body appear on the same outer card. This preserves existing
   listing styles while fixing readability on mobile/detail pages. */
.article-content-section .article-card .article-body {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
}

.article-content-section .article-card .article-featured-image {
    /* match outer card's padding/border-radius (outer card uses 28px inline)
       so the image aligns with the outer card corners */
    margin: -28px -28px 24px -28px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    max-height: 500px;
}

.article-content-section .article-card .article-featured-image img {
    width: 100%;
    height: auto; /* preserve aspect ratio */
    object-fit: cover;
    display: block;
}

.article-featured-image {
    margin: -60px -60px 40px -60px;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    /* do not force a fixed height here; allow the container to expand
       so the image keeps its intrinsic aspect ratio */
    max-height: none;
}

.article-featured-image img {
    width: 100%;
    height: auto; /* preserve intrinsic aspect ratio */
    max-width: 100%;
    object-fit: none; /* don't crop or stretch */
    display: block;
}

.article-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 3px solid var(--accent-color);
}

.article-full-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #1e293b;
}

.article-full-text h2,
.article-intro h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.article-full-text h3,
.article-intro h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.article-full-text h4,
.article-intro h4 {
    font-size: 1.2rem;
    color: var(--primary-light);
    margin-top: 25px;
    margin-bottom: 12px;
    font-weight: 600;
}

.article-full-text p,
.article-intro p {
    margin-bottom: 20px;
}

.article-full-text ul,
.article-full-text ol,
.article-intro ul,
.article-intro ol {
    margin: 20px 0 20px 30px;
    padding-left: 0;
}

.article-full-text li,
.article-intro li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.article-full-text img,
.article-intro img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.article-full-text a,
.article-intro a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 2px solid rgba(78, 176, 81, 0.3);
    transition: all 0.3s ease;
    font-weight: 500;
}

.article-full-text a:hover,
.article-intro a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.article-full-text blockquote,
.article-intro blockquote {
    border-left: 5px solid var(--accent-color);
    padding: 20px 25px;
    margin: 30px 0;
    background: #f0f9f4;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #475569;
}

.article-full-text table,
.article-intro table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    border-radius: 8px;
    overflow: hidden;
}

.article-full-text table th,
.article-intro table th {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.article-full-text table td,
.article-intro table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e5e7eb;
}

.article-full-text table tr:nth-child(even),
.article-intro table tr:nth-child(even) {
    background: #f8f9fa;
}

.article-full-text table tr:hover,
.article-intro table tr:hover {
    background: #f0f9f4;
}

.article-full-text strong,
.article-intro strong {
    color: var(--primary-color);
    font-weight: 600;
}

.article-full-text em,
.article-intro em {
    color: #64748b;
}

.article-navigation {
    text-align: center;
    padding-top: 20px;
}

/* Right-aligned modifier for back navigation (keeps mobile centered) */
.article-navigation--right {
    text-align: right;
}

@media (max-width: 768px) {
    .article-navigation--right {
        text-align: center;
    }
}

/* Mobile article-detail: ensure images scale proportionally and the
   article body occupies the full width of the outer card. Remove
   negative margins that previously caused overflow and distorted layout. */
@media (max-width: 768px) {
    /* container spacing */
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* outer card adjustments */
    .article-content-section .article-card {
        padding: 16px !important;
        border-radius: 12px !important;
        overflow: hidden; /* ensure inner elements don't cause horizontal scroll */
        box-sizing: border-box;
    }

    /* featured image: remove negative margins on mobile so it doesn't
       extend beyond the card; let the image determine height via
       width:100% and height:auto to preserve aspect ratio */
    .article-featured-image,
    .article-content-section .article-card .article-featured-image {
        margin: 0 0 18px 0 !important;
        border-radius: 10px !important;
        overflow: hidden;
        max-height: none !important;
    }

    .article-featured-image img,
    .article-content-section .article-card .article-featured-image img {
        display: block !important;
        width: 100% !important;
        height: auto !important; /* preserve intrinsic aspect ratio */
        max-width: 100% !important;
        object-fit: none !important; /* do not crop/cover */
    }

    /* make inner article body span full width and use comfortable padding */
    .article-content-section .article-card .article-body,
    .article-body {
        width: 100%;
        box-sizing: border-box;
        /* Remove inner padding so title and text align to the same card edges */
        padding: 0 !important;
    }

    /* tighten text column for readable margins but avoid overly narrow lines */
    .article-full-text,
    .article-intro {
        /* text blocks should not add extra horizontal padding on mobile */
        padding-left: 0;
        padding-right: 0;
    }

    /* full-bleed featured image: make it span the viewport width while
       preserving aspect ratio. Works by breaking out of the centered
       container. Only used on mobile to match requested behaviour. */
    .article-featured-image.full-bleed {
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        width: 100vw;
        box-sizing: border-box;
        padding-left: 12px; /* align with container padding */
        padding-right: 12px;
    }

    .article-featured-image.full-bleed img {
        width: 100% !important;
        height: auto !important;
        display: block;
        border-radius: 10px;
    }

    /* Ensure the content wrapper doesn't constrain text width on mobile
       so titles and body lines align to the same card edges. */
    .article-content-wrapper {
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 35px;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.btn-back:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateX(-8px);
    box-shadow: 0 6px 20px rgba(78, 176, 81, 0.3);
}

.btn-back svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-back:hover svg {
    transform: translateX(-4px);
}

/* ================================
   Articles/Blog Listing Styles
   ================================ */
.articles-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 12px 30px;
    border: 2px solid #e5e7eb;
    background: white;
    color: #64748b;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.filter-btn.active {
    background: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.article-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f1f5f9;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.article-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
}

.article-content {
    padding: 30px;
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-size: 0.9rem;
}

.article-date svg {
    width: 14px;
    height: 14px;
}

.article-category {
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.article-card h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-excerpt {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.no-content {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

/* ================================
   References List Styles
   ================================ */
.references-list-container {
    background: white;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    max-width: 1200px;
    margin: 0 auto;
}

.references-list {
    list-style: none;
    padding: 0;
    margin: 0;
    column-count: 2;
    column-gap: 60px;
}

.references-list li {
    padding: 12px 0 12px 20px;
    border-bottom: 1px solid #e5e7eb;
    line-height: 1.6;
    color: #475569;
    transition: all 0.2s ease;
    position: relative;
    break-inside: avoid;
}

.references-list li:hover {
    padding-left: 30px;
    color: #4eb051;
}

.references-list li span {
    position: absolute;
    left: 0;
    top: 12px;
    color: #4eb051;
    font-weight: 600;
}

/* ================================
   Responsive Adjustments
   ================================ */
@media (max-width: 768px) {
    .mission-vision-grid,
    .why-work-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .info-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .article-hero {
        min-height: 300px;
    }
    
    .article-meta-header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .article-body {
        padding: 30px 25px;
    }
    
    .article-featured-image {
        margin: -30px -25px 30px -25px;
        max-height: 300px;
    }
    
    .article-intro {
        font-size: 1.1rem;
    }
    
    .article-full-text {
        font-size: 1rem;
    }
    
    .article-full-text h2,
    .article-intro h2 {
        font-size: 1.5rem;
    }
    
    .article-full-text h3,
    .article-intro h3 {
        font-size: 1.3rem;
    }
    
    .article-full-text table,
    .article-intro table {
        font-size: 0.9rem;
    }
    
    .article-full-text table th,
    .article-intro table th,
    .article-full-text table td,
    .article-intro table td {
        padding: 10px;
    }
    
    .article-content-wrapper {
        padding: 0 20px;
    }
    
    .references-list-container {
        padding: 30px 20px;
    }
    
    .references-list {
        column-count: 1;
        column-gap: 0;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .references-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

/* =================================================================
   Articles Page (clanki.ctp) Styles
   ================================================================= */

.articles-hero .hero-background {
    background: url('/img/images/AppsBg.png') center center / cover no-repeat;
}

.articles-hero .hero-overlay {
    background: transparent;
}

.articles-hero .hero-title,
.articles-hero .hero-subtitle,
.articles-hero .hero-highlight {
    color: #ffffff !important;
}

.articles-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 12px 30px;
    border: 2px solid #e5e7eb;
    background: white;
    color: #64748b;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.filter-btn.active {
    background: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.article-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f1f5f9;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.article-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
}

.article-content {
    padding: 30px;
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-size: 0.9rem;
}

.article-date svg {
    width: 14px;
    height: 14px;
}

.article-category {
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.article-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-title a {
    color: #1e3c72;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: #3b82f6;
}

.article-excerpt {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-read-more:hover {
    gap: 12px;
    color: #1e3c72;
}

.article-read-more svg {
    width: 16px;
    height: 16px;
}

.no-articles {
    text-align: center;
    padding: 80px 20px;
    color: #94a3b8;
}

.no-articles svg {
    margin-bottom: 20px;
}

.no-articles h3 {
    color: #475569;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.newsletter-info h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 15px;
}

.newsletter-info p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
}

.form-group-inline {
    display: flex;
    gap: 10px;
}

.form-group-inline input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 8px;
    font-size: 1rem;
}

.form-group-inline input::placeholder {
    color: rgba(255,255,255,0.6);
}

.form-group-inline input:focus {
    outline: none;
    border-color: white;
    background: rgba(255,255,255,0.2);
}

@media (max-width: 992px) {
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .articles-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .form-group-inline {
        flex-direction: column;
    }
}

/* =================================================================
   References Page (who_trusts_us.ctp) Additional Responsive Styles
   ================================================================= */

.references-hero .hero-background {
    background: url('/img/images/AppsBg.png') center center / cover no-repeat;
}

.references-hero .hero-overlay {
    background: transparent;
}

.references-hero .hero-title,
.references-hero .hero-subtitle,
.references-hero .hero-highlight {
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .references-list-container {
        padding: 30px 20px !important;
    }
    
    .references-list {
        column-count: 1 !important;
        column-gap: 0 !important;
    }
    
    .references-grid > div {
        padding: 20px !important;
        min-height: 120px !important;
    }
    
    .references-grid img {
        max-height: 80px !important;
    }
    
    .testimonial-card {
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .testimonial-quote-left,
    .testimonial-quote-right {
        align-self: center !important;
        margin: 0 !important;
    }
    
    .testimonial-quote-right {
        display: none !important;
    }
    
    .testimonial-text {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .references-grid {
        gap: 15px !important;
    }
    
    .references-grid > div {
        padding: 15px !important;
        min-height: 100px !important;
    }
}

/* End Product Detail Page Styles */


/* ====================================
   APPLICATION DETAIL PAGE STYLES
   ==================================== */

/* Application Hero Section */
.app-hero {
    background: white;
    padding-top: 120px;
    padding-bottom: 20px;
    position: relative;
    min-height: 20px;
    display: flex;
    align-items: center;
}

.app-hero-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.app-hero-overlay {
    position: absolute;
    inset: 0;
}

.app-hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    /* make title take full width (no icon column) */
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    text-align: left; /* ensure hero text is left-aligned */
}

.app-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-icon img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.app-title {
    font-size: 3rem;
    font-weight: 500;
    color: var(--accent-color);
    margin: 0;
    text-align: left;
    line-height: 1.2;
}

/* Application Content Section */
.app-content-section {
    padding: 80px 0;
    background: #ffffff;
}

/* Main Content Layout - Text Left, Images Right */
.app-main-content {
    display: grid;
    grid-template-columns: 2fr 420px; /* main content + right sidebar */
    gap: 60px;
    margin-bottom: 80px;
    margin-top:40px;
    align-items: start;
}

/* Right side column combining images and related items */
.app-side-column {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.app-related-widget {
    background: transparent;
}

.app-related-widget-title {
    font-size: 1.1rem;
    margin: 0 0 12px 0;
    color: var(--text-dark);
}

.app-related-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.app-related-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
}

.app-related-card .related-card-image img {
    width: 80px;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
}

.app-related-card .related-card-content {
    flex: 1 1 auto;
}

@media (max-width: 900px) {
    .app-main-content {
        grid-template-columns: 1fr; /* stack on smaller screens */
    }
    .app-side-column {
        grid-column: 1;
    }
}

.app-text-content {
    grid-column: 1;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.app-text-content h2,
.app-text-content h3,
.app-text-content h4 {
    color: #1a2332;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-weight: 700;
}

.app-text-content h2 {
    font-size: 1.8rem;
}

.app-text-content h3 {
    font-size: 1.5rem;
}

.app-text-content p {
    margin-bottom: 1.2em;
}

.app-text-content ul,
.app-text-content ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
}

.app-text-content li {
    margin-bottom: 0.5em;
}

/* Normalize lists inserted by the CMS inside application pages */
.app-text-content ul.Indent3,
.app-text-content ol.Indent3 {
  margin-left: 0;            /* remove big left offset */
  padding-left: 1.2em;      /* comfortable bullet indent */
  margin-bottom: 0.6em;     /* reduce bottom spacing for the whole list */
  list-style-position: outside;
}

.app-text-content ul.Indent3 li {
  margin-left: 0 !important; /* override inline styles like style="margin-left: 330px" */
  margin-bottom: 0.4em;      /* tighten per-item spacing */
}

/* paragraphs inside list items cause extra gaps; collapse those */
.app-text-content li > p {
  margin: 0;
}

/* optional: reduce overall line-height for app content so it matches other pages */
.app-text-content {
  line-height: 1.45;
}

.app-images-content {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.app-content-image {
    width: 100%;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.app-content-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Downloads Section - Reuse product download styles */
.app-downloads-section {
    margin-bottom: 80px;
}

.app-downloads-section .app-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: 40px;
    padding-bottom: 15px;
    display: inline-block;
}

/* Application Sections */
.app-section {
    margin-bottom: 80px;
}

.app-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: 40px;
    display: inline-block;
}

.download-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0066cc;
    color: #ffffff;
    border-radius: 8px;
}

.download-info {
    flex: 1;
}

.download-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a2332;
    margin-bottom: 5px;
}

.download-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 5px;
}

.download-filename {
    font-size: 0.85rem;
    color: #0066cc;
    font-family: monospace;
}

/* Video Section */
.app-video-section {
    /* Use the site's wavy background and let the CSS provide the greenish look */
    background: url('/img/images/wavy.png') center center / cover no-repeat;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
    padding: 40px 0 80px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: 80px;
}

.app-video-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(128, 237, 153, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.app-video-section .app-section-title {
    color: #ffffff;
    border-bottom-color: #0099ff;
    text-align: center;
    display: block;
}

.app-video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.app-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.app-video-container iframe,
.app-video-container object,
.app-video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.app-video-info {
    text-align: center;
    color: #ffffff;
    padding: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.app-video-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.app-video-info p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.video-link {
    display: inline-block;
    padding: 12px 30px;
    background: #0099ff;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.video-link:hover {
    background: #0077cc;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,153,255,0.4);
}

/* Gallery Section */
.app-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.app-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.app-gallery-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transform: translateY(-5px);
}

.app-gallery-item a {
    display: block;
    line-height: 0;
}

.app-gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.app-gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-description {
    padding: 15px;
    background: #f8f9fa;
    font-size: 0.95rem;
    color: #666;
    text-align: center;
    line-height: 1.4;
}

/* Technical Data Section */
.app-technical-content {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    border-left: 4px solid #0066cc;
    font-size: 1.05rem;
    line-height: 1.8;
}

.app-technical-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.app-technical-content table th,
.app-technical-content table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.app-technical-content table th {
    background: #1a2332;
    color: #ffffff;
    font-weight: 600;
}

.app-technical-content table tr:nth-child(even) {
    background: #ffffff;
}

/* Related Products Section */
.app-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.app-related-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.app-related-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(-8px);
}

.related-card-image {
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.related-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a2332;
    margin-bottom: 12px;
    line-height: 1.3;
}

.related-card-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.related-card-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

.related-card-price .price-old {
    color: #999;
    text-decoration: line-through;
    font-size: 1rem;
}

.related-card-price .price-current {
    color: #0066cc;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .app-main-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .app-images-content {
        grid-column: 1;
    }
    
    .app-text-content {
        grid-column: 1;
    }
    
    .app-icon {
        width: 90px;
        height: 90px;
    }
    
    .app-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .app-hero-content {
        flex-direction: column;
        text-align: left; /* keep hero text left-aligned on small screens */
        padding: 40px 0;
    }
    
    .app-icon {
        width: 80px;
        height: 80px;
    }
    
    .app-title {
        font-size: 1.8rem;
    }
    
    .app-content-section {
        padding: 50px 0;
    }
    
    .app-section {
        margin-bottom: 50px;
    }
    
    .app-section-title {
        font-size: 1.8rem;
    }
    
    .app-downloads-grid,
    .app-related-grid {
        grid-template-columns: 1fr;
    }
    
    .app-video-section {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .app-title {
        font-size: 1.5rem;
    }
    
    .app-text-content {
        font-size: 1rem;
    }
}

/* End Application Detail Page Styles */

/* Related-products (application page) — image carries frame, card is transparent
   Remove card shadow and border; highlight image border green on hover */
.related-products-grid .product-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.related-products-grid .product-image {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.related-products-grid .product-content {
    background: transparent !important;
}

.related-products-grid .product-card:hover {
    box-shadow: none !important; /* ensure card itself doesn't get a shadow */
}

.related-products-grid .product-card:hover .product-image {
    border-color: var(--accent-color) !important; /* green */
    /* even glow around image so shadow is not only on bottom */
    box-shadow: 0 0 30px rgba(78,176,81,0.12) !important;
}

/* ==================================================================
   Global: Internal Pages Hero Styling (match provided example)
   - Apply the same hero look for all internal pages (exclude #home)
   - Centers the hero, gives large title with heavy soft shadow, a
     subtitle with gentle shadow, and a rounded green CTA matching
     the provided screenshot.
   - Targets common hero classes plus the generic .hero when it's
     not the main page (#home) so it applies across Articles,
     References, About, Products, Support, etc.
================================================================== */

.hero:not(#home),
.articles-hero,
.references-hero,
.about-hero,
.products-hero,
.support-hero,
.measurement-hero{
    /* Keep original hero backgrounds; only enforce uniform height/spacing */
    height: 420px !important;
    min-height: 420px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 60px 20px !important;
    text-align: center !important;
    overflow: visible !important;
}

/* Leave hero backgrounds and overlays as configured elsewhere; do not hide them here */

.hero:not(#home) .container,
.articles-hero .container,
.references-hero .container,
.about-hero .container {
    position: relative !important;
    z-index: 5 !important;
    text-align: center !important;
}

/* Title styling: large, condensed, with a strong soft shadow to match the mock */
.hero:not(#home) .hero-title,
.articles-hero .hero-title,
.references-hero .hero-title,
.about-hero .hero-title,
.products-hero .hero-title {
    font-family: var(--font-primary) !important;
    font-size: 88px !important;
    line-height: 0.95 !important;
    font-weight: 700 !important;
    color: var(--white-text) !important;
    margin: 0 0 18px 0 !important;
    letter-spacing: -1px !important;
    text-shadow:
        0 20px 60px rgba(0,0,0,0.60),
        0 6px 22px rgba(0,0,0,0.45),
        0 2px 8px rgba(0,0,0,0.35) !important;
    white-space: normal !important;
}

/* Subtitle / description under the title */
.hero:not(#home) .hero-subtitle,
.articles-hero .hero-subtitle,
.references-hero .hero-subtitle,
.about-hero .hero-subtitle,
.products-hero .hero-subtitle {
    display: block !important;
    max-width: 1100px !important;
    margin: 0 auto 30px auto !important;
    color: rgba(255,255,255,0.95) !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    text-shadow: 0 1px 8px rgba(0,0,0,0.35) !important;
}

/* Ensure headings inside hero containers are centered and visible */
.hero:not(#home) .container h1,
.hero:not(#home) .container h2,
.hero:not(#home) .container h3,
.hero:not(#home) .container h4,
.hero:not(#home) .container h5,
.hero:not(#home) .container h6,
.articles-hero .container h1,
.references-hero .container h1,
.about-hero .container h1 {
    text-align: center !important;
    color: var(--white-text) !important;
}

/* Green rounded CTA like the example */
.hero:not(#home) .btn-hero,
.hero:not(#home) .btn,
.articles-hero .btn-hero,
.references-hero .btn-hero,
.about-hero .btn-hero {
    background: linear-gradient(135deg, var(--accent-color) 0%, #3e8f42 100%) !important;
    color: var(--white-text) !important;
    padding: 16px 46px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 40px !important;
    border: none !important;
    box-shadow: 0 18px 50px rgba(78,176,81,0.22), 0 6px 20px rgba(0,0,0,0.18) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.hero:not(#home) .btn-hero:hover,
.hero:not(#home) .btn:hover,
.articles-hero .btn-hero:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 26px 70px rgba(78,176,81,0.28), 0 8px 26px rgba(0,0,0,0.22) !important;
}

/* Keep things responsive */
@media (max-width: 992px) {
    .hero:not(#home), .articles-hero, .references-hero, .about-hero, .products-hero {
        height: auto !important;
        min-height: 320px !important;
        padding: 48px 20px !important;
    }

    .hero:not(#home) .hero-title,
    .articles-hero .hero-title,
    .references-hero .hero-title {
        font-size: 42px !important;
    }

    .hero:not(#home) .hero-subtitle {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .hero:not(#home) .hero-title,
    .articles-hero .hero-title,
    .references-hero .hero-title {
        font-size: 30px !important;
    }

    .hero:not(#home) .btn-hero,
    .articles-hero .btn-hero {
        padding: 14px 28px !important;
        font-size: 0.95rem !important;
    }
}



