﻿/* --- Added menu divider & breadcrumb utility classes --- */
.submenu .menu-divider {
    list-style: none;
    height: 1px;
    margin: 4px 0;
    padding: 0;
    pointer-events: none;
    position: relative;
}

.submenu .menu-divider::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, #e5ebf1 0%, #cfd9e2 50%, #e5ebf1 100%);
}

.breadcrumb {
    font-size: .875rem;
    margin: .75rem 1rem 0;
}

.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.breadcrumb li {
    position: relative;
}

.breadcrumb li+li:before {
    content: '>';
    opacity: .5;
    margin-right: .4rem;
}

.breadcrumb a {
    text-decoration: none;
    color: inherit;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
    text-decoration: underline;
}

:root {
    --brand-blue: #0c62a6;
    /* fallback behind the hex background */
    --text: #0a1a2b;
    --text-dim: #4a5a6a;
    --maxw: 1200px;
    --header-h: 64px;
}

/* --- Basic reset --- */
* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

/* --- Header --- */
.site-header {
    background: #fff;
    /* remove full-width divider here so breadcrumb can control its own separator */
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    height: var(--header-h);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-width: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand img {
    width: 140px;
    height: auto;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0;
    padding: 0;
    min-width: 0;
    flex-wrap: wrap;
}

nav a {
    font: 600 16px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    color: var(--text);
    text-decoration: none;
    padding: 10px 2px;
    position: relative;
}

nav a:focus-visible {
    outline: 2px solid #5aa7ff;
    outline-offset: 3px
}

/* underline is applied on desktop only; mobile uses caret for submenu toggles */

/* Dropdown menus */
.menu {
    gap: 26px;
}

.menu-item {
    position: relative;
}

/* Remove caret indicator on desktop; mobile overrides it below */
.has-submenu>.menu-link::after {
    content: none;
}

.submenu {
    position: absolute;
    top: calc(100% + 12px);
    /* drop slightly lower */
    left: 0;
    min-width: 300px;
    /* wider dropdown */
    background: #fff;
    border: 1px solid #e9eef3;
    border-radius: 0;
    /* no rounded corners */
    box-shadow: 0 10px 24px rgba(0, 0, 0, .10);
    padding: 0;
    /* no container padding */
    display: none;
    z-index: 20;
}

.submenu li {
    margin: 0;
}

.submenu a {
    display: block;
    padding: 8px 16px;
    /* more comfortable L/R padding */
    border-radius: 0;
    /* square item backgrounds */
    font-weight: 500;
    /* slightly less bold */
    color: var(--text);
}

/* Prevent blue underline from applying to submenu items */
.submenu a:hover::after,
.submenu a:focus::after {
    content: none;
}

.submenu a:hover,
.submenu a:focus {
    background: #f6f9fc;
    text-decoration: none;
}

/* Show on hover/focus (desktop) */
@media (min-width: 641px) {

    /* Desktop underline for nav links */
    nav a:hover::after,
    nav a:focus::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 2px;
        background: #228be6;
    }

    .has-submenu:hover>.submenu,
    .has-submenu:focus-within>.submenu,
    /* keep open when hovering submenu itself */
    .has-submenu>.submenu:hover {
        display: block;
    }

    /* Hover bridge to prevent collapse when moving from title to dropdown */
    .submenu::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -12px;
        /* same as dropdown offset gap */
        height: 12px;
    }
}

/* Mobile: submenus stack inside the panel */
@media (max-width: 640px) {
    .submenu {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0 0 6px 16px;
        /* clearer indent for child items */
        min-width: 0;
        /* prevent desktop width from forcing overflow */
        width: 100%;
    }

    .has-submenu>.submenu {
        display: none;
    }

    .has-submenu[aria-expanded="true"]>.submenu,
    .has-submenu>.menu-link[aria-expanded="true"]+.submenu {
        display: block !important;
    }

    .has-submenu>.menu-link {
        display: block;
        width: 100%;
        padding-right: 28px;
        position: relative;
    }

    .has-submenu[aria-expanded="true"]>.menu-link,
    .has-submenu>.menu-link[aria-expanded="true"] {
        background: #f8fafc;
    }

    /* Mobile caret indicator (ok on mobile; we removed it on desktop) */
    .has-submenu>.menu-link::after {
        content: '▸';
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-dim);
        font-size: 12px;
    }

    .has-submenu[aria-expanded="true"]>.menu-link::after,
    .has-submenu>.menu-link[aria-expanded="true"]::after {
        content: '▾';
    }
}

/* SVG icon alignment in navigation */
nav svg {
    vertical-align: -5px;
    display: inline-block;
}

/* --- Hero / blue hex background --- */
.hero {
    background: var(--brand-blue) url("/images/webbanner.png") center/cover no-repeat;
    color: #fff;
}

/* Transportation solutions hero overrides */
.hero--transportation {
    /* Add a subtle dark gray overlay to improve text contrast */
    background: linear-gradient(to bottom, rgba(20, 24, 28, 0.45), rgba(20, 24, 28, 0.45)),
        url('/solutions/images/transportation.jpeg') center/cover no-repeat;
}

/* Construction solutions hero
           Image source: Provided by user as construction.jpeg (Adobe Stock licensed) */
.hero--construction {
    background: linear-gradient(to bottom, rgba(20, 24, 28, 0.45), rgba(20, 24, 28, 0.45)),
        url('/solutions/images/construction.jpeg') center/cover no-repeat;
}

/* Rail solutions hero (renamed)
              Image source: Adobe Stock Free — original filename: AdobeStock_666157767.jpeg */
.hero--rail {
    background: linear-gradient(to bottom, rgba(20, 24, 28, 0.45), rgba(20, 24, 28, 0.45)),
        url('/solutions/images/rail.jpeg') center/cover no-repeat;
}

/* Health solutions hero */
.hero--health {
    background: linear-gradient(to bottom, rgba(20, 24, 28, 0.45), rgba(20, 24, 28, 0.45)),
        url('/solutions/images/health.jpeg') center/cover no-repeat;
}

/* NHS Approved badge */
.nhs-badge {
    width: 60px;
    /* half the previous size */
    height: auto;
    margin-left: auto;
    margin-right: 0;
    align-self: flex-start;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .25));
}

.hero-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 48px 20px 56px;
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.product-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .18s ease;
    width: 220px;
    height: auto;
    margin-bottom: 0px;
}

.product-card img {
    width: 180px;
    height: auto;
}

.product-card:hover {
    transform: translateY(-2px);
}

/* --- Book a Demo button --- */

.demo-button-wrapper {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.hero .demo-button {
    margin-top: -20px;
    /* default for desktop */
    display: inline-block;
    padding: 14px 24px;
    font: 700 18px/1.1 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    background: rgba(255, 255, 255, 0.75);
    /* semi-transparent white */
    color: var(--brand-blue);
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
    backdrop-filter: blur(4px);
    /* gives a subtle frosted effect */
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    width: min(100%, 520px);
    text-align: center;
}

.hero .demo-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
    background: rgba(255, 255, 255, 0.95);
    /* brighten on hover */
}

.hero .demo-button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.hero .demo-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

/* --- Content area under the blue block --- */
.content {
    background: #fff;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 32px 20px 60px;
    color: var(--text-dim);
    font: 400 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
}

/* --- Responsive tweaks --- */
@media (max-width: 900px) {
    .hero-inner {
        gap: 28px;
    }
}

@media (max-width: 640px) {

    /* Smaller logos for mobile */
    .product-card {
        width: 150px;
        /* shrink card width */
    }

    .product-card .logo {
        width: 120px;
        /* shrink logos */
    }

    /* Preserve slicer scaling tweak */
    .product-card[data-product="slicer"] .logo {
        transform: scale(1.12);
        transform-origin: center;
        margin-top: -4px;
        /* slight nudge for alignment */
    }

    /* Keep them side-by-side by reducing gap */
    .hero-inner {
        justify-content: center;
        gap: 16px;
    }

    .hero .demo-button {
        width: 100%;
        margin-top: 16px;
        /* adds gap above button when stacked */
    }

    .brand img {
        width: 120px;
    }

    nav ul {
        gap: 16px;
    }

    nav a {
        font-weight: 600;
        font-size: 15px;
    }

    .header-inner {
        height: 56px;
    }

    .hero-inner {
        padding: 28px 16px 36px;
        gap: 18px;
    }

    .content {
        padding: 24px 16px 48px;
    }

    .hero .demo-button {
        width: 100%;
    }
}

.logo {
    width: 180px;
    height: auto;
}

.product-card[data-product="slicer"] .logo {
    transform: scale(1.12);
    transform-origin: center;
    margin-top: -6px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

/* Make embedded iframes (Power BI reports) responsive inside blog posts */
/* Generic wrappers should be full width */
.post-body .video-container,
.post-body .embed {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    position: relative;
}

/* Iframes inside an explicit .video-container are absolutely positioned to fill the container (which provides aspect ratio via padding-bottom) */
.post-body .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* Standalone iframes (no wrapper) should be block-level, full width, and use aspect-ratio for height */
.post-body iframe {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border: 0;
    box-sizing: border-box;
}

/* If an iframe is inserted directly (without wrapper), give it a sensible aspect ratio (browser support assumed) */
.post-body iframe[data-aspect='16-9'] {
    aspect-ratio: 16 / 9;
}

.post-body iframe[data-aspect='4-3'] {
    aspect-ratio: 4 / 3;
}

.post-body iframe:not([data-aspect]) {
    aspect-ratio: 16 / 9;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Power BI embed container used in some blog posts */
.post-body .powerbi-container-blog {
    /* make the embed flow with other content and respect the content column width */
    width: 100%;
    /* ensure the embed never exceeds the site's content column */
    max-width: calc(var(--maxw) - 40px);
    margin: 1.25rem auto;
    box-sizing: border-box;
    /* give the container a sensible max height so it doesn't push other content off-screen */
    max-height: calc(80vh - 120px);
    overflow: hidden;
    background: transparent;
    border-radius: 4px;
    position: relative;
    z-index: 0;
}

/* The iframe inside the powerbi container should act like an intrinsic responsive element */
.post-body .powerbi-container-blog iframe {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    max-height: 70vh;
    border: 0;
    box-sizing: border-box;
}

/* Prevent any absolute positioning leaking onto blog iframes */
.post-body iframe {
    position: static !important;
}

/* If the iframe is taller than the max-height, allow scrolling inside the container rather than making it overflow the whole page */
.post-body .powerbi-container-blog.scrolling {
    overflow: auto;
}

/* A11y utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Menu toggle (hidden on desktop) */
.menu-toggle {
    appearance: none;
    border: none;
    background: transparent;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.menu-toggle:focus-visible {
    outline: 2px solid #5aa7ff;
    outline-offset: 3px;
}

/* Hamburger bars */
.menu-toggle span::before,
.menu-toggle span::after,
.menu-toggle span {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    position: relative;
    transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle span::before {
    position: absolute;
    top: -7px;
    left: 0;
}

.menu-toggle span::after {
    position: absolute;
    top: 7px;
    left: 0;
}

/* X state */
.menu-toggle[aria-expanded="true"] span {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
    transform: translateY(-7px) rotate(-45deg);
}

/* Desktop defaults (unchanged layout) */
.header-inner {
    position: relative;
}

.site-header nav ul {
    gap: 26px;
}

.menu-open body {
    overflow: hidden;
}

/* Mobile layout: logo on RIGHT, menu collapses into dropdown */
@media (max-width: 640px) {
    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        height: 56px;
    }

    /* Show hamburger, move brand to the right using order */
    .menu-toggle {
        display: inline-flex;
        order: 1;
    }

    nav {
        order: 2;
    }

    .brand {
        order: 3;
        margin-left: auto;
    }

    /* pushes brand to the right */

    .brand img {
        width: 120px;
    }

    /* Collapse the nav into a dropdown panel */
    nav {
        position: absolute;
        top: 56px;
        /* matches mobile header height */
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #e9eef3;
        box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .15s ease, transform .15s ease;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 16px;
        margin: 0;
    }

    nav li {
        width: 100%;
    }

    nav a {
        display: block;
        width: 100%;
        padding: 12px 4px;
    }

    /* Open state */
    .site-header.nav-open nav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    /* No special ::after rule on mobile so caret remains visible */
}


.details-toggle {
    margin-top: 10px;
}

.details-toggle summary {
    list-style: none;
    cursor: pointer;
    display: inline-block;
    padding: 10px 14px;
    font: 600 15px/1 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    background: #f1f5f9;
    color: var(--text);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    user-select: none;
}

.details-toggle summary::-webkit-details-marker {
    display: none;
}

/* Swap “Read more” / “Read less” labels without JS */
.details-toggle summary .less {
    display: none;
}

.details-toggle[open] summary .more {
    display: none;
}

.details-toggle[open] summary .less {
    display: inline;
}

/* Collapsible blocks */
.collapsible {
    margin-top: 10px;
}

/* Only collapse when JS is available */
.collapsible__content {
    overflow: hidden;
}

/* Collapsed state (JS only) */
.js .collapsible__content[data-state="collapsed"] {
    max-height: 0;
    transition: max-height .4s ease;
}

/* Expanded state (height set inline by JS) */
.js .collapsible__content[data-state="expanded"] {
    transition: max-height .4s ease;
}

/* Fade at bottom when collapsed (teaser) */
.js .collapsible__content[data-state="collapsed"].has-fade {
    -webkit-mask-image: linear-gradient(to bottom, black 70%, rgba(0, 0, 0, 0));
    mask-image: linear-gradient(to bottom, black 70%, rgba(0, 0, 0, 0));
}

/* Link-style toggle */
.collapsible__toggle {
    margin-top: 8px;
    background: none;
    border: none;
    padding: 0;
    display: inline;
    /* inline like a link */
    font: 600 15px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    color: var(--brand-blue);
    cursor: pointer;
    text-decoration: underline;
}

.collapsible__toggle:hover,
.collapsible__toggle:focus {
    text-decoration: none;
    outline: none;
}

.collapsible__toggle:focus-visible {
    outline: 2px solid #5aa7ff;
    outline-offset: 3px;
}

/* Swap label text without JS classes */
.collapsible__toggle .less {
    display: none;
}

.js .collapsible__toggle[aria-expanded="true"] .more {
    display: none;
}

.js .collapsible__toggle[aria-expanded="true"] .less {
    display: inline;
}

/* a11y: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .js .collapsible__content {
        transition: none !important;
    }
}

/* AppSource CTA: badge left, two lines stacked to the right */
.appsource-cta {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 4px;
    align-items: center;
    margin: 8px 0 16px;
    /* small gap above; matches 'Read more' spacing below */
    max-width: 700px;
    /* optional: keeps the block tidy */
}

/* Mobile: top-align the badge with the main text */
@media (max-width: 640px) {
    .appsource-cta {
        align-items: start;
    }
}

/* Badge (clicks to AppSource), spans both rows */
.appsource-cta__badge {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: inline-block;
}

.appsource-cta__badge img {
    height: 46px;
    width: auto;
    display: block;
}

/* Line 1: AppSource link text (to the right, top row) */
.appsource-cta__main {
    grid-column: 2;
    grid-row: 1;
    font: 600 15px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    color: var(--brand-blue);
    text-decoration: none;
}

.appsource-cta__main:hover,
.appsource-cta__main:focus {
    text-decoration: underline;
}

/* Line 2: Dedicated site link (to the right, under the main link) */
.appsource-cta__secondary {
    grid-column: 2;
    grid-row: 2;
    font: 400 14px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    color: var(--brand-blue);
    text-decoration: none;
}

.appsource-cta__secondary:hover,
.appsource-cta__secondary:focus {
    text-decoration: underline;
}


/* ===== Customer Success (clean) ===== */
.cs-section {
    background: #f2f4f7;
}

/* === Case Study Detail Enhancements === */
.case-study {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 40px 20px 60px;
    font: 400 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    color: var(--text-dim);
}

.cs-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 24px;
}

.cs-headline-block {
    flex: 1 1 480px;
    min-width: 280px;
}

.cs-headline-block h1 {
    margin: 0 0 12px;
    font: 700 40px/1.15 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    color: var(--text);
}

@media (max-width:640px) {
    .cs-headline-block h1 {
        font-size: 32px;
    }
}

.cs-subtitle {
    margin: 0 0 12px;
    font: 500 20px/1.3 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    color: var(--brand-blue);
}

.cs-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin: 0 0 12px;
    font: 600 13px/1 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.cs-category,
.cs-industry {
    background: #e6eef6;
    color: #0a395f;
    padding: 6px 10px;
    border-radius: 20px;
    font: 600 12px/1 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
}

.cs-intro {
    margin: 0 0 18px;
    font: 400 18px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    color: var(--text);
}

.cs-logo-wrap {
    flex: 0 0 auto;
}

.cs-logo {
    max-height: 70px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .1));
}

.cs-title-image {
    margin: 0 0 32px;
    border: 1px solid #e0e7ef;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.cs-title-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Metrics */
.cs-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    margin: 0 0 32px;
}

.cs-metric {
    background: #fff;
    border: 1px solid #e3e9f0;
    border-radius: 8px;
    padding: 16px 18px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.cs-metric-number {
    font: 700 24px/1.1 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    color: var(--brand-blue);
    margin: 0 0 6px;
}

.cs-metric-label {
    font: 500 13px/1.3 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    color: var(--text-dim);
    letter-spacing: .3px;
}

/* Quote */
.cs-quote {
    margin: 0 0 40px;
    background: #0c62a6;
    color: #fff;
    padding: 28px 30px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.cs-quote::before {
    content: "\201C";
    position: absolute;
    top: -18px;
    left: 12px;
    font: 700 110px/1 Georgia, serif;
    color: rgba(255, 255, 255, .15);
}

.cs-quote p {
    margin: 0 0 12px;
    font: 500 20px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
}

.cs-quote footer {
    font: 600 14px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    opacity: .9;
}

.cs-quote-role {
    font-weight: 400;
    opacity: .85;
}

@media (max-width:640px) {
    .cs-quote {
        padding: 22px 20px;
    }

    .cs-quote p {
        font-size: 18px;
    }
}

.case-study .cs-section {
    background: #fff;
    padding: 0;
}

.case-study .cs-section h2 {
    color: var(--brand-blue);
    margin: 36px 0 12px;
    font: 700 28px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
}

.case-study .cs-section h2:first-of-type {
    margin-top: 0;
}

.case-study .cs-section p,
.case-study .cs-section li {
    color: var(--text-dim);
}

.case-study .cs-section ul {
    padding-left: 20px;
}

.cs-footer-cta {
    margin-top: 56px;
    padding: 24px 28px;
    background: #f1f5f9;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    text-align: center;
    font: 500 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
}

.cs-footer-cta a {
    color: var(--brand-blue);
    font-weight: 600;
    text-decoration: none;
}

.cs-footer-cta a:hover,
.cs-footer-cta a:focus {
    text-decoration: underline;
}

/* Listing adjustments for new meta line */
.case-studies-grid .cs-card-meta {
    font: 600 12px/1.3 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    color: #405368;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin: 8px 0 0;
}

/* === Case Studies Listing (grid page) === */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.cs-list-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    align-items: center;
    margin: 0 0 26px;
}

.case-studies-grid {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.cs-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cs-filter {
    background: #eef3f7;
    border: 1px solid #d7e2ec;
    padding: 8px 14px;
    border-radius: 24px;
    font: 600 13px/1 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    color: #185074;
    cursor: pointer;
    transition: background .18s, color .18s, border-color .18s;
}

.cs-filter.is-active {
    background: #0c62a6;
    color: #fff;
    border-color: #0c62a6;
}

.cs-filter:hover,
.cs-filter:focus-visible {
    background: #0d74c2;
    color: #fff;
    border-color: #0d74c2;
    outline: none;
}

.cs-search {
    flex: 1 1 240px;
    min-width: 200px;
}

.cs-search input {
    width: 100%;
    background: #fff;
    border: 1px solid #cdd8e2;
    border-radius: 30px;
    padding: 10px 16px;
    font: 500 14px/1.3 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    color: #2b4458;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.cs-search input:focus {
    outline: 2px solid #0c62a6;
    outline-offset: 2px;
}

.cs-grid-list {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

@media (min-width:1400px) {
    .cs-grid-list {
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    }
}

.cs-list-card {
    background: #fff;
    border: 1px solid #dfe6ed;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 4px -2px rgba(0, 0, 0, .06), 0 4px 12px -2px rgba(0, 0, 0, .04);
    transition: box-shadow .25s, transform .25s;
}

.cs-list-card:hover,
.cs-list-card:focus-within {
    box-shadow: 0 4px 16px -4px rgba(0, 0, 0, .15), 0 8px 28px -6px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

.cs-list-media {
    aspect-ratio: 16/9;
    background: #0c62a6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cs-list-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cs-list-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cs-list-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cs-list-logo {
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .25));
    background: #fff;
    padding: 4px 6px;
    border-radius: 6px;
}

.cs-list-cat {
    background: #eef3f7;
    color: #0c3d61;
    font: 600 11px/1 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 24px;
}

.cs-list-title {
    margin: 0;
    font: 700 20px/1.25 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    color: #143850;
}

.cs-list-title a {
    color: inherit;
    text-decoration: none;
}

.cs-list-title a:hover,
.cs-list-title a:focus {
    text-decoration: underline;
}

.cs-list-summary {
    margin: 0;
    font: 400 14px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    color: #4a5a6a;
}

.cs-read-more {
    white-space: nowrap;
    font-weight: 600;
    color: #0c62a6;
}

.cs-read-more:hover,
.cs-read-more:focus {
    text-decoration: underline;
}

.cs-list-actions {
    margin-top: 36px;
    text-align: center;
}

.cs-show-more {
    background: #0c62a6;
    color: #fff;
    border: 1px solid #0c62a6;
    font: 600 15px/1 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    padding: 14px 28px;
    border-radius: 40px;
    cursor: pointer;
    box-shadow: 0 2px 4px -2px rgba(0, 0, 0, .3);
    transition: background .2s, box-shadow .2s;
}

.cs-show-more:hover,
.cs-show-more:focus-visible {
    background: #0d74c2;
    outline: none;
}

.cs-show-more:active {
    background: #0b568f;
}


/* === Case Study Hero Integration === */
.hero--case-study {
    background: var(--brand-blue) url("/images/webbanner.png") center/cover no-repeat;
    color: #fff;
    padding: 40px 0 48px;
}

@media (max-width:640px) {
    .hero--case-study {
        padding: 32px 0 40px;
    }
}

.hero-inner--case-study {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    gap: 40px;
    grid-template-columns: minmax(0, 1fr) 520px;
    align-items: flex-start;
}

@media (max-width:1000px) {
    .hero-inner--case-study {
        grid-template-columns: 1fr;
    }
}

/* New positioning context so we can absolutely place the category pill */
.hero-inner--case-study {
    position: relative;
}

.cs-hero-head {
    max-width: 760px;
}

.cs-hero-topline {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0 0 10px;
}

.cs-hero-logo {
    max-height: 62px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35));
    background: #fff;
    padding: 6px 10px;
    border-radius: 6px;
}

/* Plain variant (no box) */
.cs-hero-logo--plain {
    background: transparent;
    padding: 0;
    border-radius: 0;
    filter: none;
    box-shadow: none;
}

@media (max-width:640px) {
    .cs-hero-logo {
        max-height: 54px;
    }
}

.cs-hero-category {
    background: #fff;
    color: #0c3d61;
    font: 700 12px/1 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    letter-spacing: .6px;
    padding: 8px 14px;
    border-radius: 28px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}

/* Move category pill to top-right of hero */
.hero-inner--case-study .cs-hero-category {
    position: absolute;
    top: 0;
    right: 20px;
    z-index: 2;
}

@media (max-width:640px) {
    .hero-inner--case-study .cs-hero-category {
        right: 16px;
    }
}

.cs-hero-title {
    margin: 0 0 18px;
    font: 700 42px/1.12 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
}

@media (max-width:640px) {
    .cs-hero-title {
        font-size: 34px;
    }
}

.cs-hero-intro {
    margin: 0 0 0;
    font: 400 18px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    color: rgba(255, 255, 255, .93);
}

.cs-hero-media {
    position: relative;
}

/* Offset media downward so its top aligns with the main title instead of the logo */
.cs-hero-media {
    margin-top: 72px;
}

@media (max-width:640px) {
    .cs-hero-media {
        margin-top: 64px;
    }
}

/* When layout stacks (below 1000px) remove manual offset so media flows naturally */
@media (max-width:1000px) {
    .cs-hero-media {
        margin-top: 24px;
    }
}

.cs-hero-media .cs-title-image {
    margin: 0;
    border: 4px solid rgba(255, 255, 255, .9);
    box-shadow: 0 8px 28px -4px rgba(0, 0, 0, .4);
    background: #000;
}

.cs-hero-media .cs-title-image img {
    display: block;
}

.hero--case-study .cs-title-image {
    border-radius: 8px;
    overflow: hidden;
}

/* Adjust breadcrumb spacing after hero */
.breadcrumb {
    max-width: var(--maxw);
    margin: 24px auto 0;
    padding: 0 20px;
}

/* Breadcrumb moved above hero (case study detail) */
body>.breadcrumb {
    margin: 0 auto;
    padding: 12px 20px 8px;
    background: #fff;
    max-width: var(--maxw);
    font: 500 14px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
}

body>.breadcrumb ol {
    list-style: none;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

body>.breadcrumb li {
    position: relative;
    color: #243a52;
}

body>.breadcrumb li+li:before {
    content: "/";
    margin: 0 4px 0 0;
    color: #8aa1b6;
}

body>.breadcrumb a {
    color: #0c62a6;
    text-decoration: none;
    font-weight: 600;
}

body>.breadcrumb a:hover,
body>.breadcrumb a:focus {
    text-decoration: none;
}

body>.breadcrumb li[aria-current] {
    font-weight: 400;
    color: #4a5a6a;
}

.cs-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 40px 20px;
}

.cs-title {
    margin: 0 0 16px;
    color: var(--text);
    font: 700 26px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
}

/* Viewport reserves space for arrows so they never overlay cards */
.cs-viewport {
    position: relative;
    padding-inline: 56px;
    /* arrow gutter */
}

@media (max-width:640px) {
    .cs-viewport {
        padding-inline: 44px;
    }
}

/* Track: natural horizontal scroll (no snap), smooth for arrows */
.cs-track {
    position: relative;
    display: flex;
    gap: 24px;
    padding: 6px 0;
    /* focus ring room */
    overflow-x: auto;
    scroll-snap-type: none;
    /* no snap */
    scroll-padding-inline: 8px;
    /* nicer first/last alignment */
    scroll-behavior: smooth;
    /* used by arrow clicks */
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    /* allow horizontal drag */
    overscroll-behavior-x: contain;
    cursor: grab;
    -ms-overflow-style: none;
    /* hide scrollbar (IE/Edge legacy) */
    scrollbar-width: none;
    /* hide scrollbar (Firefox) */
}

.cs-track::-webkit-scrollbar {
    display: none;
}

.cs-track.dragging {
    cursor: grabbing;
    user-select: none;
}

/* Cards */
.cs-card {
    flex: 0 0 100%;
    background: #fff;
    border: 1px solid #e0e7ef;
    border-radius: 6px;
    padding: 20px;
    display: grid;
    gap: 20px;
    align-items: flex-start;
    /* align text to top of screenshot */
    grid-template-columns: 460px 1fr;
    /* media | text */
}

/* Left column: logo above screenshot, flush-left */
.cs-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

/* Logo (never stretch); you said 45px looked good */
.cs-logo,
.cs-logo--stacked {
    display: block;
    margin: 0;
    max-height: 45px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Screenshot frame */
.cs-screenshot {
    border: 1px solid #e0e7ef;
    border-radius: 4px;
    overflow: hidden;
    margin: 0;
}

.cs-screenshot img {
    display: block;
    max-width: 100%;
    max-height: 260px;
    /* roughly text height; tweak 240–280 if you want */
    width: auto;
    height: auto;
}

/* Right column */
.cs-right {
    margin-top: 45px;
}

/* align top to screenshot, not logo */
@media (max-width:900px) {
    .cs-right {
        margin-top: 0;
    }
}

.cs-card h3 {
    margin: 0 0 6px;
    color: var(--text);
    font: 700 22px/1.25 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
}

.cs-card p {
    margin: 10px 0 0;
    color: var(--text-dim);
    font: 400 15px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
}

.cs-links {
    margin-top: 12px;
}

.cs-links a {
    color: var(--brand-blue);
    text-decoration: underline;
    font: 600 15px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
}

/* Arrows live in the viewport gutters */
.cs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #9aa6b2;
    z-index: 5;
    /* above cards, but outside thanks to gutter */
    pointer-events: auto;
}

.cs-arrow:hover {
    color: #5b7083;
}

.cs-arrow:focus-visible {
    outline: 2px solid #5aa7ff;
    outline-offset: 3px;
}

.cs-arrow[hidden] {
    display: none;
}

.cs-arrow--prev {
    left: 12px;
}

.cs-arrow--next {
    right: 12px;
}

/* Peek the next card on desktop */
@media (min-width:901px) {
    .cs-card {
        flex: 0 0 84%;
    }

    /* adjust 80–88% to taste */
}

/* Mobile: stack */
@media (max-width:900px) {
    .cs-card {
        grid-template-columns: 1fr;
        flex: 0 0 100%;
    }

    .cs-left {
        order: 1;
    }
}

/* Reduced motion: disable programmatic smooth scroll if desired */
@media (prefers-reduced-motion:reduce) {
    .cs-track {
        scroll-behavior: auto !important;
    }
}

/* Align arrows with the main content edge and reduce the left gutter */
.cs-viewport {
    /* 40px arrow + 4px buffer so cards don't touch the arrow */
    padding-left: 44px;
    /* was 56px */
}

.cs-arrow--prev {
    left: 0;
    /* align to the content edge (inside .cs-inner) */
}

/* Optional: mirror on the right for symmetry */
.cs-viewport {
    padding-right: 44px;
    /* was 56px */
}

.cs-arrow--next {
    right: 0;
}

.cs-track {
    scroll-snap-type: none !important;
}

/* ===== Footer ===== */
.footer-section {
    background: #374151;
    color: #f3f4f6;
    margin-top: 0;
}

.footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 40px 20px 32px;
}

.footer-grid {
    display: grid;
    /* Use flexible columns to avoid overflow on small widths */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 40px;
    margin-bottom: 32px;
    justify-content: center;
}

.footer-column h3 {
    margin: 0 0 16px;
    color: #fff;
    font: 600 16px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    padding-bottom: 8px;
    border-bottom: 2px solid #9ca3af;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #d1d5db;
    text-decoration: none;
    font: 400 14px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    transition: color 0.15s ease;
}

.footer-column a:hover,
.footer-column a:focus {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #4b5563;
    padding-top: 24px;
    text-align: center;
    color: #9ca3af;
    font: 400 13px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
}

.footer-bottom p {
    margin: 0 0 8px;
}

.cookie-settings-link {
    color: inherit;
    text-decoration: underline;
}

.cookie-settings-link:hover,
.cookie-settings-link:focus {
    color: inherit;
}

/* Cookie settings button (footer) */
.cookie-settings-btn {
    background-color: #3A435D;
    border: 1px solid #3A435D;
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    font: inherit;
    line-height: inherit;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    margin-top: 8px;
    transition: background-color .15s ease, transform .1s ease, box-shadow .15s ease;
}

.cookie-settings-btn:hover {
    background-color: #323a52;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}

.cookie-settings-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

.cookie-settings-btn:focus-visible {
    outline: 2px solid #9ca3af;
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-inner {
        padding: 32px 16px 24px;
    }
}

/* Mobile landscape and tablets: use two columns to prevent horizontal overflow */
@media (max-width: 900px) and (min-width: 641px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        justify-content: stretch;
    }
}

/* === Contact Page Styles === */

/* Smaller hero section for contact page */
.hero--small {
    padding: 40px 0 32px;
}


/* Utilities & Telecoms hero */
.hero--utilities {
    background: linear-gradient(to bottom, rgba(20, 24, 28, 0.45), rgba(20, 24, 28, 0.45)),
        url('/solutions/images/utilities.jpeg') center/cover no-repeat;
}

/* Consumer‑Packaged Goods hero */
.hero--cpg {
    background: linear-gradient(to bottom, rgba(20, 24, 28, 0.45), rgba(20, 24, 28, 0.45)),
        url('/solutions/images/cpg.jpeg') center/cover no-repeat;
}

/* Aviation hero (vertically centered) */
.hero--aviation {
    background: linear-gradient(to bottom, rgba(20, 24, 28, 0.45), rgba(20, 24, 28, 0.45)),
        url('/solutions/images/aviation.jpeg') center/cover no-repeat;
    background-position: center center;
    /* ensure vertical centering */
}

/* Oil & Gas hero */
.hero--oilgas {
    background: linear-gradient(to bottom, rgba(20, 24, 28, 0.45), rgba(20, 24, 28, 0.45)),
        url('/solutions/images/oilgas.jpeg') center/cover no-repeat;
    background-position: center center;
}

/* Logistics hero */
.hero--logistics {
    background: linear-gradient(to bottom, rgba(20, 24, 28, 0.45), rgba(20, 24, 28, 0.45)),
        url('/solutions/images/logistics.jpeg') center/cover no-repeat;
}

.hero-inner--small {
    text-align: center;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.hero--small h1 {
    margin: 0;
    color: #fff;
    font: 700 48px/1.1 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
}

.hero--small p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font: 400 20px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
}

.hero--small p:last-child {
    margin-bottom: 0;
}

/* === Solutions Page Layouts === */
.content-section {
    background: #fff;
}

.content-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 40px 20px;
    color: var(--text-dim);
    font: 400 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
}

/* Section headings inside solutions content */
.content-inner h2 {
    color: var(--brand-blue);
    margin: 0 0 12px;
}

/* Reduce stacked section spacing */
.content-section+.content-section .content-inner {
    padding-top: 16px;
}

.section-lead {
    color: var(--brand-blue);
    font-weight: 700;
    margin: 0 0 8px;
}

.two-col-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 40px;
    margin-top: 16px;
}

.two-col-features .feature-title {
    color: var(--brand-blue);
    font: 600 18px/1.3 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    margin: 18px 0 6px;
}

.highlight {
    color: var(--brand-blue);
    font-weight: 700;
}

@media (max-width: 900px) {
    .two-col-features {
        grid-template-columns: 1fr;
    }
}

/* Contact form container */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-form {
    margin-top: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font: 600 14px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
}

.required {
    color: #dc2626;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font: 400 16px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(12, 98, 166, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group--checkbox {
    margin-bottom: 32px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-top: 2px;
}

.checkbox-text {
    color: var(--text-dim);
    font: 400 14px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
}

.submit-button {
    background: var(--brand-blue);
    color: #fff;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font: 600 16px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
    width: 100%;
}

.submit-button:hover {
    background: #0a5490;
    transform: translateY(-1px);
}

.submit-button:focus-visible {
    outline: 2px solid #5aa7ff;
    outline-offset: 3px;
}

.submit-button:active {
    transform: translateY(0);
}

.contact-info {
    margin-top: 32px;
    text-align: center;
}

.privacy-note {
    color: var(--text-dim);
    font: 400 14px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    margin: 0;
}

.privacy-note a {
    color: var(--brand-blue);
    text-decoration: none;
}

.privacy-note a:hover {
    text-decoration: underline;
}

/* Mobile adjustments for contact form */
@media (max-width: 640px) {
    .hero--small h1 {
        font-size: 36px;
    }

    .hero--small p {
        font-size: 18px;
    }

    /* slightly reduced gap on narrow screens so the hero doesn't feel too tall */
    .hero-inner--small {
        gap: 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form-container {
        padding: 0 16px;
    }

    .hero--small {
        padding: 32px 0 24px;
    }
}

/* === Health page hard overrides ===
           Ensures we do not see the default hex background and that the NHS badge is small. */
.hero.hero--health {
    background: linear-gradient(to bottom, rgba(20, 24, 28, 0.45), rgba(20, 24, 28, 0.45)),
        url('/solutions/images/health.jpeg') center/cover no-repeat !important;
}

.hero.hero--health .nhs-badge {
    width: 120px !important;
    height: auto;
}

/* === Industry Solutions Landing Enhancements === */
.hero--solutions-landing {
    position: relative;
    overflow: hidden;
}

.hero--solutions-landing::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
}

.hero-inner--solutions {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 60px 20px 64px;
    text-align: center;
}

.hero-inner--solutions .lead {
    font: 400 20px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    max-width: 900px;
    margin: 12px auto 0;
    color: rgba(255, 255, 255, .92);
}

@media (max-width:640px) {
    .hero-inner--solutions {
        padding: 44px 18px 52px;
    }

    .hero-inner--solutions .lead {
        font-size: 18px;
    }
}

/* Solutions grid */
.solutions-intro {
    background: #fff;
}

.solutions-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 48px 20px 80px;
}

.solutions-heading {
    margin: 0 0 8px;
    font: 700 34px/1.15 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    color: var(--text);
}

.solutions-sub {
    margin: 0 0 36px;
    font: 400 18px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    color: var(--text-dim);
    max-width: 820px;
}

.solutions-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.solutions-case-studies {
    position: relative;
    border: 1px solid #d0dae4;
    border-radius: 18px;
    padding: 34px 30px 40px;
    margin: 0 0 56px;
    background: linear-gradient(135deg, #f8fbfe, #eef3f8);
    overflow: hidden;
}

.solutions-case-studies__glow {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 140%;
    background: radial-gradient(circle at 30% 40%, rgba(12, 98, 166, .25), rgba(12, 98, 166, 0) 70%);
    opacity: .55;
    pointer-events: none;
    filter: blur(18px);
}

.solutions-cs-heading {
    margin: 0 0 14px;
    font: 700 30px/1.15 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    color: #0c3858;
}

.solutions-cs-text {
    margin: 0 0 22px;
    font: 400 17px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    max-width: 820px;
    color: #405368;
}

.solutions-cs-button {
    display: inline-block;
    background: #0c62a6;
    color: #fff;
    font: 600 15px/1 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    padding: 14px 28px;
    border-radius: 40px;
    text-decoration: none;
    box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .25);
    transition: background .2s, box-shadow .2s, transform .2s;
    position: relative;
}

.solutions-cs-button:hover,
.solutions-cs-button:focus-visible {
    background: #0d74c2;
    box-shadow: 0 6px 20px -4px rgba(0, 0, 0, .3);
    transform: translateY(-2px);
    outline: none;
}

.solutions-cs-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px -2px rgba(0, 0, 0, .35);
}

@media (max-width:640px) {
    .solutions-cs-heading {
        font-size: 26px;
    }

    .solutions-cs-text {
        font-size: 16px;
    }

    .solutions-case-studies {
        padding: 28px 22px 34px;
        margin-bottom: 48px;
    }
}

.solutions-card {
    background: #fff;
    border: 1px solid #dae2eb;
    border-radius: 14px;
    position: relative;
    padding: 0;
    box-shadow: 0 2px 4px -2px rgba(0, 0, 0, .08), 0 6px 18px -6px rgba(0, 0, 0, .07);
    transition: box-shadow .22s, transform .22s, border-color .22s;
    overflow: hidden;
}

.solutions-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(12, 98, 166, .08), rgba(12, 98, 166, 0));
    opacity: 0;
    transition: opacity .25s;
}

.solutions-card:hover::before,
.solutions-card:focus-within::before {
    opacity: 1;
}

.solutions-card:hover,
.solutions-card:focus-within {
    transform: translateY(-4px);
    border-color: #c3cfda;
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .15), 0 12px 32px -10px rgba(0, 0, 0, .12);
}

.solutions-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    text-decoration: none;
    padding: 20px 20px 24px;
    height: 100%;
    position: relative;
    z-index: 1;
}

.solutions-card-title {
    font: 700 20px/1.25 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    color: #143850;
}

.solutions-card-desc {
    font: 400 14px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    color: #4a5a6a;
}

.solutions-link:hover .solutions-card-title,
.solutions-link:focus .solutions-card-title {
    text-decoration: underline;
}

@media (max-width:640px) {
    .solutions-heading {
        font-size: 30px;
    }

    .solutions-sub {
        font-size: 16px;
        margin-bottom: 28px;
    }
}

/* Breadcrumb alignment utility for pages using partial placed after header */
/* remove full-width hairline under breadcrumb; keep text underline on links only */
body>.breadcrumb {
    box-shadow: none;
}

/* Blog post specific styles */
.post-authors {
    margin: 8px 0 0;
    font: 600 14px/1 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    color: var(--text-dim);
}

.post-image {
    margin: 18px 0;
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 15px;
}

.post-body th,
.post-body td {
    border: 1px solid #e3e9f0;
    padding: 8px 10px;
    text-align: left;
}

.post-body thead th {
    background: #f1f5f9;
    color: var(--text);
    font-weight: 600;
}

.post-body pre {
    background: #0b1720;
    color: #e6eef6;
    padding: 16px;
    border-radius: 8px;
    overflow: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, 'Roboto Mono', 'Helvetica Neue', monospace;
    font-size: 13px;
    line-height: 1.45;
}

.post-body code {
    background: #f6f9fc;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, 'Roboto Mono', 'Helvetica Neue', monospace;
    font-size: 13px;
}

.post-body pre code {
    background: transparent;
    padding: 0;
}

.post-body img {
    margin: 12px 0;
}

/* Author block for blog posts */
.post-author {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
    color: var(--text-dim);
}

.post-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.post-author-avatar-wrap {
    flex: 0 0 48px;
}

.post-author-meta {
    display: flex;
    flex-direction: column;
}

.post-author-name {
    font-weight: 700;
    color: var(--text);
}

.post-author-role {
    font-size: 13px;
    color: var(--text-dim);
}

/* Blog listing styles */
.blog-list-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 0 0 18px;
}

.blog-list-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.blog-list-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e6eef6;
    padding: 12px;
    border-radius: 8px;
}

.blog-thumb {
    width: 120px;
    height: 80px;
    flex: 0 0 120px;
    overflow: hidden;
    border-radius: 6px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa6b2;
    font-weight: 600;
}

.blog-list-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-list-title {
    margin: 0;
    font: 700 18px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
}

.blog-list-title a {
    color: #143850;
    text-decoration: none;
}

.blog-list-title a:hover {
    text-decoration: underline;
}

.blog-meta {
    font-size: 13px;
    color: #4a5a6a;
    display: flex;
    gap: 12px;
    align-items: center;
}

.blog-date {
    color: #6b7785;
}

.blog-authors {
    color: #4a5a6a;
}

.blog-summary {
    margin: 0;
    color: #405368;
}

.blog-tags {
    font-size: 12px;
    color: #0c62a6;
}

/* Tag pills for blog listing */
.tag-pill {
    background: #eef6fb;
    border: 1px solid #d6e9f9;
    color: #0c62a6;
    padding: 6px 10px;
    border-radius: 8px;
    /* slightly rounded rectangle */
    font: 600 12px/1 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    cursor: pointer;
    margin: 6px 6px 0 0;
    /* small horizontal gap, vertical gap when wrapped */
    display: inline-block;
    /* ensure margins apply on wrap */
}

.tag-pill:hover,
.tag-pill:focus {
    background: #e1f0fb;
    outline: none;
}

.tag-pill.is-active {
    background: #0c62a6;
    color: #fff;
    border-color: #0c62a6;
}

@media (max-width:640px) {
    .blog-list-item {
        flex-direction: row;
    }

    .blog-thumb {
        width: 96px;
        height: 64px;
        flex: 0 0 96px;
    }
}