/* =====================================================================
   Swati Industries — Theme & Header
   Pillars: Light & Airy · clean type · navy + red on white · mobile-first.
   ===================================================================== */
:root {
    --navy: #0e2a5e;
    /* brand navy (text, headings) */
    --navy-deep: #0a1f45;
    --navy-2: #1b3a8b;
    --red: #d81e2c;
    /* brand red accent (from logo) */
    --red-dark: #b3141f;
    --accent: var(--red);

    --ink: #1f2733;
    /* body text */
    --muted: #6b7385;
    /* soft grey text */
    --line: #e7eaf0;
    /* hairlines */
    --bg-soft: #f5f7fb;
    /* soft grey background */

    --font-head: 'Poppins', system-ui, sans-serif;
    --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* Banner heading font — drop the file in assets/fonts/ (any one format works) */
@font-face {
    font-family: 'LayherText TT';
    src: local('LayherText TT'), local('LayherTextTT'), local('LayherText TT 400'),
        url('../fonts/LayherText-TT.woff2') format('woff2'),
        url('../fonts/LayherText-TT.woff') format('woff'),
        url('../fonts/LayherText-TT.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    margin: 0;
    background: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--navy);
}

a {
    text-decoration: none;
}

/* ---- Buttons ---- */
.btn-accent {
    background: var(--red);
    border: 2px solid var(--red);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .2px;
    padding: .5rem 1.2rem;
    border-radius: 6px;
    transition: background .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease;
}

.btn-accent:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(216, 30, 44, .28);
}

/* =====================================================================
   TOP UTILITY BAR  (soft grey, airy)
   ===================================================================== */
.topbar {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: .82rem;
    padding: .5rem 0;
}

.topbar a {
    color: var(--navy);
    transition: color .2s ease;
}

.topbar a:hover {
    color: var(--red);
}

.topbar .bi {
    color: var(--red);
    margin-right: .3rem;
}

.topbar-sep {
    color: var(--line);
    margin: 0 .8rem;
}

.topbar-loc {
    color: var(--muted);
}

.topbar-loc .bi {
    color: var(--red);
}

.topbar-tagline {
    font-family: var(--font-head);
    font-weight: 500;
    color: var(--muted);
    margin-right: 1rem;
    font-size: .8rem;
}

.topbar-tagline .typed-words {
    color: var(--red);
    font-weight: 600;
}

.topbar-tagline .type-caret {
    color: var(--red);
    margin-left: 1px;
    animation: caret-blink 1s step-end infinite;
}

@keyframes caret-blink {
    50% {
        opacity: 0;
    }
}

.topbar-social a {
    display: inline-flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    margin-left: .15rem;
    border-radius: 50%;
    font-size: .9rem;
    color: var(--navy);
}

.topbar-social a .bi {
    color: inherit;
    margin: 0;
}

.topbar-social a:hover {
    background: var(--red);
    color: #fff;
}

/* =====================================================================
   MAIN NAVBAR  (white, light & airy)
   ===================================================================== */
.main-nav {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0;
    min-height: 88px;
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: min-height .25s ease, box-shadow .25s ease;
}

.main-nav .navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

.brand-logo {
    display: block;
    height: 70px;
    width: auto;
    margin-top: -6px;
    /* offset whitespace in the PNG */
    transition: height .25s ease;
}

.main-nav.nav-shrink {
    min-height: 66px;
    box-shadow: 0 6px 20px rgba(14, 42, 94, .08);
}

.main-nav.nav-shrink .brand-logo {
    height: 52px;
}

/* Top-level links */
.main-nav .navbar-nav>.nav-item>.nav-link {
    font-family: var(--font-head);
    font-weight: 500;
    font-size: .95rem;
    letter-spacing: .2px;
    color: var(--navy);
    padding: 1.6rem .8rem;
    position: relative;
    transition: color .18s ease;
}

.main-nav .navbar-nav>.nav-item>.nav-link:hover,
.main-nav .navbar-nav>.nav-item.show>.nav-link {
    color: var(--red);
}

/* animated underline indicator (::before) */
.main-nav .navbar-nav>.nav-item>.nav-link::before {
    content: "";
    position: absolute;
    left: .9rem;
    right: .9rem;
    bottom: 1.2rem;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}

.main-nav .navbar-nav>.nav-item>.nav-link:hover::before,
.main-nav .navbar-nav>.nav-item.show>.nav-link::before {
    transform: scaleX(1);
}

.main-nav.nav-shrink .navbar-nav>.nav-item>.nav-link {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.main-nav.nav-shrink .navbar-nav>.nav-item>.nav-link::before {
    bottom: .85rem;
}

/* dropdown caret (::after, after the label) */
.main-nav .dropdown-toggle::after {
    border: none;
    content: none;
}

.main-nav .navbar-nav>.nav-item.dropdown>.nav-link::after {
    content: "\F282";
    font-family: "bootstrap-icons";
    font-size: .62rem;
    margin-left: .35rem;
    vertical-align: middle;
    opacity: .6;
    border: none;
}

/* ---- Standard dropdowns (Company, Contact) ---- */
.main-nav .dropdown-menu {
    border: none;
    border-top: 3px solid var(--red);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 16px 40px rgba(14, 42, 94, .14);
    padding: .4rem 0;
    margin-top: 0;
    min-width: 230px;
}

.main-nav .dropdown-item {
    font-family: var(--font-head);
    font-size: .9rem;
    font-weight: 500;
    color: var(--navy);
    padding: .6rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease, padding-left .15s ease;
}

.main-nav .dropdown-item:hover,
.main-nav .dropdown-item:focus {
    background: var(--bg-soft);
    color: var(--red);
    padding-left: 1.5rem;
}

/* nested submenus (flyout) */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-toggle::after {
    border: none;
    content: none;
}

.dropdown-submenu>.dropdown-item.dropdown-toggle::after {
    content: "\F285";
    font-family: "bootstrap-icons";
    font-size: .7rem;
    opacity: .6;
    margin-left: .75rem;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -.4rem;
    border-top: 3px solid var(--red);
    border-radius: 0 8px 8px 8px;
}

/* =====================================================================
   PRODUCTS MEGA-MENU
   ===================================================================== */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    border: none;
    border-top: 3px solid var(--red);
    border-radius: 0;
    box-shadow: 0 24px 50px rgba(14, 42, 94, .15);
    padding: 1.6rem 0;
    margin-top: 0;
}

.mega-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr) .95fr;
    gap: 1.4rem;
}

.mega-col-title {
    display: block;
    font-family: var(--font-head);
    font-weight: 500;
    color: var(--navy);
    font-size: .92rem;
    line-height: 1.3;
    padding-bottom: .55rem;
    margin-bottom: .5rem;
    border-bottom: 1px solid var(--line);
}

.mega-col-title:hover {
    color: var(--red);
}

.mega-link {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .4rem .45rem;
    border-radius: 8px;
    color: var(--ink);
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

.mega-link:hover {
    background: var(--bg-soft);
    color: var(--red);
    transform: translateX(2px);
}

.mega-thumb {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mega-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mega-thumb-ph {
    background: var(--bg-soft);
    color: var(--muted);
    font-size: 1.15rem;
}

.mega-label {
    font-family: var(--font-head);
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.35;
}

/* dynamic (DB-driven) hierarchical category tree */
.mega-cats {
    grid-column: 1 / 5;
}

.mega-tree {
    column-count: 4;
    column-gap: 1.6rem;
}

.mega-node {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 1rem;
    display: inline-block;
    width: 100%;
}

.mega-top {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--navy);
    font-size: .92rem;
    line-height: 1.3;
    padding-bottom: .45rem;
    margin-bottom: .4rem;
    border-bottom: 1px solid var(--line);
}

.mega-top:hover {
    color: var(--red);
}

.mega-sub,
.mega-sub2 {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-sub2 {
    margin: .15rem 0 .35rem .2rem;
    padding-left: .7rem;
    border-left: 1px dashed var(--line);
}

.mega-li {
    line-height: 1.3;
}

/* 2nd-level group label */
.mega-grp {
    display: block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .8rem;
    color: var(--navy);
    padding: .22rem 0;
}

.mega-grp:hover {
    color: var(--red);
}

/* leaf link */
.mega-leaf {
    display: block;
    font-size: .82rem;
    color: var(--muted);
    padding: .2rem 0;
    transition: color .15s ease, transform .15s ease;
}

.mega-leaf:hover {
    color: var(--red);
    transform: translateX(2px);
}

/* leaf / top-leaf with a thumbnail */
.mega-leaf.has-thumb,
.mega-top-leaf {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .22rem 0;
    transition: color .15s ease, transform .15s ease;
}

.mega-leaf.has-thumb:hover,
.mega-top-leaf:hover {
    transform: translateX(2px);
}

.mega-top-leaf {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--navy);
    font-size: .85rem;
}

.mega-top-leaf:hover {
    color: var(--red);
}

.mega-leaf.has-thumb .mega-leaf-txt {
    font-size: .82rem;
    color: var(--muted);
}

.mega-leaf.has-thumb:hover .mega-leaf-txt {
    color: var(--red);
}

.mega-leaf-thumb {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
}

.mega-leaf-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* sub-group heading inside a mega column */
.mega-subhead {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--red);
    margin: .9rem 0 .25rem;
    padding-top: .55rem;
    border-top: 1px dashed var(--line);
}

.mega-col>.mega-subhead:first-of-type {
    margin-top: .2rem;
    padding-top: 0;
    border-top: none;
}

/* compact text link (no thumbnail) */
.mega-link-text {
    padding: .32rem .45rem;
    gap: .45rem;
}

.mega-bullet {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    color: var(--red);
    font-size: .68rem;
}

.mega-link-text:hover .mega-bullet {
    transform: translateX(1px);
}

/* preview column — big product image (changes on hover) + brochure button */
.mega-preview {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-self: start;
    /* don't stretch to the tallest column */
}

.mega-preview-img {
    height: 230px;
    flex: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mega-preview-img img {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    padding: 16px;
    transition: opacity .2s ease;
}

.mega-preview-cap {
    text-align: center;
    font-family: var(--font-head);
    font-size: .74rem;
    color: var(--navy);
    padding: .7rem 0 .8rem;
    line-height: 1.3;
}

.mega-preview-btn {
    background: var(--red);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .85rem;
    text-align: center;
    padding: .7rem .8rem;
    border-radius: 8px;
    transition: background .2s ease;
}

.mega-preview-btn:hover {
    background: var(--red-dark);
    color: #fff;
}

.mega-preview-btn .bi {
    margin-right: .4rem;
}

/* =====================================================================
   DESKTOP (XL+) : open menus on hover
   ===================================================================== */
@media (min-width: 1200px) {
    .main-nav .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(12px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }

    .main-nav .nav-item.dropdown:hover>.dropdown-menu,
    .dropdown-submenu:hover>.dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-submenu>.dropdown-menu {
        transform: translateX(12px);
    }

    .dropdown-submenu:hover>.dropdown-menu {
        transform: translateX(0);
    }

    .nav-cta {
        margin-left: .9rem;
    }
}

/* =====================================================================
   MOBILE / TABLET (< XL) : collapsible accordion
   ===================================================================== */
@media (max-width: 1199.98px) {
    .main-nav {
        min-height: 0;
        padding: .6rem 0;
    }

    .brand-logo {
        height: 56px;
    }

    /* Branded hamburger button (custom bars → animate to ✕ when open) */
    .main-nav .navbar-toggler {
        border: none;
        padding: 0;
        width: 46px;
        height: 46px;
        border-radius: 12px;
        background: var(--navy);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(14, 42, 94, .25);
        transition: background .2s ease;
    }

    .main-nav .navbar-toggler:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(216, 30, 44, .35);
    }

    .main-nav .navbar-toggler:hover {
        background: var(--navy-deep, #0a1f45);
    }

    .main-nav .navbar-toggler-icon {
        background-image: none;
        width: 22px;
        height: 2px;
        position: relative;
        background: #fff;
        border-radius: 2px;
        transition: background .15s ease;
    }

    .main-nav .navbar-toggler-icon::before,
    .main-nav .navbar-toggler-icon::after {
        content: "";
        position: absolute;
        left: 0;
        width: 22px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        transition: transform .25s ease, top .25s ease;
    }

    .main-nav .navbar-toggler-icon::before {
        top: -7px;
    }

    .main-nav .navbar-toggler-icon::after {
        top: 7px;
    }

    .main-nav .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        background: transparent;
    }

    .main-nav .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
        top: 0;
        transform: rotate(45deg);
    }

    .main-nav .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
        top: 0;
        transform: rotate(-45deg);
    }

    /* Off-canvas drawer: slides in from the right */
    .navbar-collapse {
        display: block !important;
        /* stay in DOM; hidden via transform, not display */
        position: fixed;
        top: 0;
        right: 0;
        width: min(86vw, 330px);
        height: 100vh;
        height: 100dvh;
        margin-top: 0;
        border-top: none;
        background: #fff;
        z-index: 1045;
        padding: 4.2rem 1.25rem 2rem;
        /* room for the close button */
        overflow-y: auto;
        overscroll-behavior: contain;
        transform: translateX(100%);
        transition: transform .32s cubic-bezier(.4, 0, .2, 1);
        box-shadow: -12px 0 36px rgba(10, 20, 40, .18);
    }

    .navbar-collapse.show {
        transform: translateX(0);
    }

    .nav-drawer-logo {
        position: absolute;
        top: 1rem;
        left: 1.25rem;
        display: inline-flex;
        align-items: center;
    }

    .nav-drawer-logo img {
        height: 42px;
        width: auto;
    }

    .nav-drawer-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--bg-soft);
        border: 1px solid var(--line);
        color: var(--navy);
        font-size: 1.1rem;
        line-height: 1;
        cursor: pointer;
        transition: background .15s ease, color .15s ease;
    }

    .nav-drawer-close:hover {
        background: var(--red);
        color: #fff;
        border-color: transparent;
    }

    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(10, 20, 40, .45);
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s ease;
        z-index: 1040;
    }

    .nav-backdrop.show {
        opacity: 1;
        pointer-events: auto;
    }

    body.nav-open {
        overflow: hidden;
    }

    .main-nav .navbar-nav>.nav-item>.nav-link {
        padding: .85rem .25rem;
    }

    .main-nav .navbar-nav>.nav-item>.nav-link::before {
        content: none;
    }

    .main-nav .navbar-nav>.nav-item.dropdown>.nav-link::after {
        float: right;
    }

    .main-nav .dropdown-menu {
        border: none;
        box-shadow: none;
        border-top: none;
        padding-left: 1rem;
        border-left: 2px solid var(--line);
        margin: 0 0 .5rem .25rem;
    }

    .dropdown-submenu>.dropdown-menu {
        left: 0;
    }

    .main-nav .dropdown-item {
        white-space: normal;
    }

    /* mega-menu stacks on mobile */
    .mega-menu {
        border-top: none;
        box-shadow: none;
        padding: .25rem 0 .5rem;
    }

    .mega-inner {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .mega-feature {
        margin-top: .5rem;
    }

    .mega-cats {
        grid-column: auto;
    }

    .mega-tree {
        column-count: 2;
    }

    .mega-preview {
        display: none;
    }

    .nav-cta {
        margin: .85rem .25rem .25rem;
    }

    .nav-cta .btn-accent {
        display: inline-block;
    }
}

@media (min-width: 1200px) and (max-width: 1499.98px) {
    .main-nav .navbar-nav>.nav-item>.nav-link {
        padding-left: .55rem;
        padding-right: .55rem;
        font-size: .82rem;
    }
}

/* =====================================================================
   HOME PAGE
   ===================================================================== */

/* ---- Cinematic hero (full-width slider + parallax) ---- */
.hero {
    position: relative;
}

.hero-slider,
.hero-slide {
    height: 38vw;
    min-height: 460px;
    max-height: 640px;
}

.hero-slide {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    /* small headroom for scroll parallax */
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    /* let mouse drags reach the slider */
    background: linear-gradient(90deg,
            rgba(7, 18, 45, .82) 0%, rgba(7, 18, 45, .55) 38%, rgba(7, 18, 45, .2) 66%, rgba(7, 18, 45, .05) 100%);
}

.hero-content-wrap {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    pointer-events: none;
    /* let drags reach the slider… */
}

.hero-content {
    max-width: 620px;
    color: #fff;
    pointer-events: none;
}

/* let drags reach the slider */
.hero-content .btn {
    pointer-events: auto;
}

/* …but buttons stay clickable */
.hero-content>* {
    will-change: transform, opacity;
}

.hero-content {
    animation: heroIn .8s ease both;
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(216, 30, 44, .92);
    padding: .42rem .95rem;
    border-radius: 50px;
    margin-bottom: 1.2rem;
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(1.9rem, 3.6vw, 3.1rem);
    line-height: 1.18;
    letter-spacing: 0;
    color: #fff;
    font-weight: 700;
    margin: 0 0 1.1rem;
}

.hero-title span {
    color: #ff5d67;
}

.hero-text {
    font-size: 1.12rem;
    line-height: 1.7;
    color: #e8edf7;
    margin-bottom: 1.9rem;
    max-width: 560px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-cta .btn-lg {
    padding: .72rem 1.5rem;
    font-size: .95rem;
}

.hero-cta .bi {
    margin-right: .4rem;
}

.btn-hero-outline {
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .6);
    background: transparent;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .9rem;
    padding: .5rem 1.2rem;
    border-radius: 6px;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.btn-hero-outline:hover {
    background: #fff;
    color: var(--navy);
    border-color: #fff;
}

/* per-slide entrance */
@keyframes heroIn {
    from {
        opacity: 0;
        transform: translateY(26px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slider .swiper-slide-active .hero-eyebrow {
    animation: heroIn .6s .05s both;
}

.hero-slider .swiper-slide-active .hero-title {
    animation: heroIn .7s .16s both;
}

.hero-slider .swiper-slide-active .hero-text {
    animation: heroIn .7s .30s both;
}

.hero-slider .swiper-slide-active .hero-cta {
    animation: heroIn .7s .44s both;
}

/* pagination */
.hero-pagination {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 4;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5));
}

.hero-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #fff;
    opacity: .7;
    transition: width .25s ease, opacity .25s ease, background .25s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
    background: var(--red);
    opacity: 1;
    width: 28px;
    border-radius: 5px;
}

/* scroll cue */
.hero-scroll {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .4);
    font-size: 1.1rem;
    animation: heroBounce 2s ease-in-out infinite;
    transition: background .2s ease, color .2s ease;
}

.hero-scroll:hover {
    background: #fff;
    color: var(--navy);
}

@keyframes heroBounce {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 7px);
    }
}

@media (max-width: 991.98px) {

    /* on phones the ultra-wide banner crops to a taller band; text centres */
    .hero-slider,
    .hero-slide {
        height: auto;
        min-height: 480px;
        max-height: 78vh;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(7, 18, 45, .55) 0%, rgba(7, 18, 45, .5) 45%, rgba(7, 18, 45, .8) 100%);
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .hero-cta {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg-layer {
        transform: scale(1.02);
    }

    .hero-scroll {
        animation: none;
    }

    .hero-slider .swiper-slide-active .hero-content>* {
        animation: none;
    }
}

/* =====================================================================
   ABOUT
   ===================================================================== */
.about-sec {
    padding: 6rem 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

/* decorative blueprint lines behind the left side */
.about-sec::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 52%;
    z-index: 0;
    background-image:
        repeating-linear-gradient(90deg, rgba(14, 42, 94, .06) 0 1px, transparent 1px 46px),
        repeating-linear-gradient(0deg, rgba(14, 42, 94, .045) 0 1px, transparent 1px 46px);
    -webkit-mask: linear-gradient(105deg, #000 28%, transparent 88%);
    mask: linear-gradient(105deg, #000 28%, transparent 88%);
    pointer-events: none;
}

.about-sec .container {
    position: relative;
    z-index: 1;
}

.sec-eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2.6rem;
}

.sec-eyebrow::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 2rem;
    height: 2px;
    background: var(--red);
}

.text-red {
    color: var(--red);
}

.about-top {
    position: relative;
}

.about-showcase-img {
    position: absolute;
    left: 48%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 458px;
    width: auto;
    max-width: 42%;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 24px 40px rgba(14, 42, 94, .16));
}

@media (max-width: 991.98px) {
    .about-top>div {
        margin-bottom: 2rem;
    }

    .about-showcase-img {
        position: static;
        transform: none;
        display: block;
        margin: 0 auto 2rem;
        height: auto;
        max-height: 420px;
        max-width: 100%;
        order: -1;
    }
}

.about-head {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(1.8rem, 3vw, 2.9rem);
    line-height: 1.16;
    color: var(--navy);
    margin: 0;
    letter-spacing: -.5px;
    max-width: 440px;
    /* keep heading clear of the centered image */
}

@media (max-width: 991.98px) {
    .about-head {
        max-width: 100%;
    }
}

.about-lead {
    font-size: 1.12rem;
    line-height: 1.75;
    color: var(--ink);
    font-weight: 500;
    margin-bottom: 1rem;
}

.about-text {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1.4rem;
}

.about-top .btn-accent .bi {
    margin-left: .4rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 4rem;
    border-top: 1px solid var(--line);
}

.about-stats .stat {
    padding: 2rem 1.5rem 0;
    border-right: 1px solid var(--line);
}

.about-stats .stat:last-child {
    border-right: none;
}

.about-stats .stat-num {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(2.2rem, 3.6vw, 3.2rem);
    line-height: 1;
    color: var(--navy);
    letter-spacing: -1px;
}

.about-stats .stat-num span {
    color: var(--red);
    font-size: .5em;
}

.about-stats .stat-lbl {
    margin-top: .6rem;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: var(--muted);
}

@media (max-width: 991.98px) {
    .about-sec {
        padding: 4rem 0;
    }

    .about-top .col-lg-5 {
        margin-top: 1.8rem;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 2.5rem;
    }

    .about-stats .stat {
        padding: 1.6rem 1rem 0;
    }

    .about-stats .stat:nth-child(2) {
        border-right: none;
    }
}

/* =====================================================================
   SOLUTIONS
   ===================================================================== */
.sol-sec {
    padding: 6rem 0;
    background: #fff;
}

.sol-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.6rem;
}

.sol-head-text {
    max-width: 720px;
}

.sol-circle {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: #fff;
    font-size: 2.3rem;
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.sol-circle:hover {
    background: var(--red);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 12px 26px rgba(216, 30, 44, .3);
}

.sol-circle .bi {
    animation: solArrow 1.8s ease-in-out infinite;
}

@keyframes solArrow {

    0%,
    100% {
        transform: translateY(-4px);
    }

    50% {
        transform: translateY(4px);
    }
}

/* Interactive eye — pupil follows the cursor (JS sets the pupil offset). */
.sol-eye {
    cursor: pointer;
}

.sol-eye-ball {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, .18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sol-eye-pupil {
    position: relative;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--navy);
    transition: transform .08s linear, background .25s ease;
    will-change: transform;
}

.sol-eye-pupil::after {
    /* light glint */
    content: "";
    position: absolute;
    top: 2px;
    right: 2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
}

.sol-eye:hover .sol-eye-pupil {
    background: var(--red);
}

.sol-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    line-height: 1.15;
    color: var(--navy);
    letter-spacing: -.5px;
    margin: 0 0 1rem;
}

.sol-sub {
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--muted);
    margin: 0;
}

/* "everything at a glance" row list */
.sol-list {
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.sol-row {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    background: var(--bg-soft);
    border-radius: 12px;
    padding: 1.4rem 1.9rem;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: background .25s ease, box-shadow .25s ease, transform .2s ease;
}

.sol-row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--red);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .25s ease;
}

.sol-row:hover {
    background: #fff;
    box-shadow: 0 16px 36px rgba(14, 42, 94, .12);
    transform: translateX(4px);
}

.sol-row:hover::before {
    transform: scaleY(1);
}

.sol-row-icon {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    color: var(--navy);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.sol-row:hover .sol-row-icon {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

.sol-row-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sol-row-title {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--navy);
    line-height: 1.25;
}

.sol-row-tag {
    color: var(--muted);
    font-size: 1rem;
    margin-top: .15rem;
}

.sol-row-arrow {
    margin-left: auto;
    color: var(--red);
    font-size: 1.4rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity .25s ease, transform .25s ease;
}

.sol-row:hover .sol-row-arrow {
    opacity: 1;
    transform: translateX(0);
}

.sol-cta {
    text-align: center;
    margin-top: 2.8rem;
}

.sol-cta .btn-lg {
    padding: .75rem 1.7rem;
    font-size: .95rem;
}

.sol-cta .bi {
    margin-left: .4rem;
}

@media (max-width: 991.98px) {
    .sol-sec {
        padding: 4rem 0;
    }

    .sol-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.4rem;
    }

    .sol-circle {
        width: 54px;
        height: 54px;
        font-size: 1.7rem;
    }

    .sol-eye-ball {
        width: 28px;
        height: 28px;
    }

    .sol-eye-pupil {
        width: 12px;
        height: 12px;
    }

    .sol-row {
        padding: 1.15rem 1.3rem;
        gap: 1.1rem;
    }

    .sol-row-icon {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }

    .sol-row-title {
        font-size: 1.1rem;
    }

    .sol-row-tag {
        font-size: .92rem;
    }

    .sol-row-arrow {
        display: none;
    }

    .sol-float {
        display: none !important;
    }

    /* hover-preview is desktop-only */
}

/* solutions: hover-preview panel */
.sol-layout {
    align-items: flex-start;
}

.sol-preview {
    position: sticky;
    top: 110px;
    height: 470px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-soft);
    border: 1px solid var(--line);
}

.sol-preview-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity .55s ease, transform 7s ease;
}

.sol-preview-img.active {
    opacity: 1;
    transform: scale(1);
}

.sol-preview-tag {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 2.2rem 1.5rem 1.3rem;
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.2rem;
    background: linear-gradient(transparent, rgba(7, 18, 45, .85));
}

/* active (hovered) row mirrors the preview */
.sol-row.is-active {
    background: #fff;
    box-shadow: 0 16px 36px rgba(14, 42, 94, .12);
}

.sol-row.is-active::before {
    transform: scaleY(1);
}

.sol-row.is-active .sol-row-icon {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

.sol-row.is-active .sol-row-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* solutions: preview image pinned to the right, slides to the hovered row */
.sol-list {
    position: relative;
}

.sol-float {
    position: absolute;
    z-index: 5;
    right: 28px;
    top: 0;
    width: 250px;
    height: 168px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-soft);
    box-shadow: 0 22px 48px rgba(7, 18, 45, .30);
    border: 3px solid #fff;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-50%) translate(var(--sfx, 0px), var(--sfy, 0px)) scale(.9);
    transition: opacity .28s ease, transform .18s ease, top .4s cubic-bezier(.4, 0, .2, 1);
    will-change: top, transform;
}

.sol-float.show {
    opacity: 1;
    transform: translateY(-50%) translate(var(--sfx, 0px), var(--sfy, 0px)) scale(1);
}

.sol-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* about: red angled frame around the right-side data */
.about-col {
    padding-left: .5rem;
}

.about-right {
    position: relative;
    padding: 2.8rem 2.8rem 3rem;
}

.about-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

.about-frame polyline {
    fill: none;
    stroke: var(--red);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
    stroke-linejoin: miter;
}

.about-right> :not(.about-frame) {
    position: relative;
    z-index: 1;
}

@media (max-width: 991.98px) {
    .about-col {
        padding-left: 0;
    }

    .about-right {
        padding: 1.6rem 1.4rem 1.7rem;
    }
}

/* =====================================================================
   NEWS & UPDATES
   ===================================================================== */
.news-sec {
    padding: 6rem 0;
    background: var(--bg-soft);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

.news-card {
    position: relative;
    display: flex;
    color: inherit;
    filter: drop-shadow(0 10px 22px rgba(14, 42, 94, .10));
    transition: transform .25s ease, filter .25s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    filter: drop-shadow(0 20px 38px rgba(14, 42, 94, .18));
}

.news-card-inner {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
    clip-path: url("#invertedCard");
}

/* circular arrow button nested in the bottom-left notch */
.news-arrow {
    position: absolute;
    left: 6px;
    bottom: 6px;
    z-index: 2;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: background .25s ease, transform .3s ease;
}

.news-card:hover .news-arrow {
    background: var(--red-dark);
    transform: rotate(45deg);
}

.news-img {
    position: relative;
    height: 210px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.06);
}

.news-date {
    position: absolute;
    left: 14px;
    bottom: 14px;
    background: var(--red);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .8rem;
    padding: .3rem .7rem;
    border-radius: 6px;
}

.news-body {
    padding: 1.4rem 1.5rem 4.8rem;
    display: block;
    flex: 1;
}

.news-tag {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .72rem;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: .5rem;
}

.news-title {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--navy);
    line-height: 1.3;
    margin: 0 0 .6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    color: var(--muted);
    line-height: 1.6;
    font-size: .94rem;
    margin: 0 0 1.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .88rem;
    color: var(--red);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    transition: gap .2s ease;
}

.news-card:hover .news-link {
    gap: .75rem;
}

@media (max-width: 991.98px) {
    .news-sec {
        padding: 4rem 0;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.3rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .ms-team-img img {
        object-fit: cover;
        height: 490px !important;
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
    background: var(--bg-soft);
    color: var(--muted);
    border-top: 1px solid var(--line);
}

/* CTA card */
.footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
    border-radius: 18px;
    padding: 2.4rem 2.8rem;
    margin: -3.5rem 0 3.5rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 24px 50px rgba(14, 42, 94, .22);
}

.footer-cta-text h3 {
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    margin: 0 0 .35rem;
}

.footer-cta-text p {
    color: #c8d3ec;
    margin: 0;
    font-size: .98rem;
}

.footer-cta-btn {
    flex-shrink: 0;
    background: #fff;
    color: var(--navy);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .95rem;
    padding: .8rem 1.7rem;
    border-radius: 8px;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.footer-cta-btn:hover {
    background: var(--red);
    color: #fff;
    transform: translateY(-2px);
}

.footer-cta-btn .bi {
    margin-left: .4rem;
}

.footer-main {
    padding: 1rem 0 3.2rem;
}

.footer-brand {
    padding-right: 2rem;
}

.footer-logo-img {
    height: 58px;
    width: auto;
    display: block;
    margin-bottom: 1.2rem;
}

.footer-blurb {
    font-size: .92rem;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 1.3rem;
}

.footer-social a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--navy);
    margin-right: .5rem;
    transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}

.footer-social a:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
    transform: translateY(-2px);
}

.footer-head {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--navy);
    margin: 0 0 1.2rem;
    position: relative;
    padding-bottom: .7rem;
}

.footer-head::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: var(--red);
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: .65rem;
}

.footer-links a {
    color: var(--muted);
    font-size: .92rem;
    transition: color .2s ease, padding-left .2s ease;
}

.footer-links a:hover {
    color: var(--red);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: .7rem;
    margin-bottom: .9rem;
    font-size: .92rem;
    color: var(--muted);
    line-height: 1.5;
}

.footer-contact .bi {
    color: var(--red);
    margin-top: .15rem;
}

.footer-contact a {
    color: var(--muted);
    transition: color .2s ease;
}

.footer-contact a:hover {
    color: var(--red);
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 1.4rem 0 .6rem;
    background: #fff;
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: .85rem;
    color: var(--muted);
}

.footer-powered {
    text-align: center;
    font-size: .72rem;
    color: var(--muted);
    margin-top: .6rem;
}

.footer-powered a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
}

.footer-powered a:hover {
    color: var(--red);
}

.footer-motto {
    font-family: var(--font-head);
    color: var(--navy);
    font-weight: 500;
}

@media (max-width: 991.98px) {
    .footer-cta {
        padding: 1.8rem;
        margin: -3rem 0 2.5rem;
        text-align: center;
        justify-content: center;
    }

    .footer-main {
        padding: .5rem 0 1.5rem;
    }

    .footer-brand {
        padding-right: 0;
        margin-bottom: 1.5rem;
    }

    .footer-col {
        margin-bottom: 1.8rem;
    }

    .footer-bottom-row {
        flex-direction: column;
        text-align: center;
    }
}

/* =====================================================================
   CAREERS
   ===================================================================== */
.career-sec {
    position: relative;
    padding: 6.5rem 0;
    background-size: cover;
    color: #fff;
}

.career-sec::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(0deg, rgba(7, 18, 45, .7) 0%, rgba(7, 18, 45, .28) 18%, transparent 40%),
        radial-gradient(80% 95% at 0% 100%, rgba(7, 18, 45, .88) 0%, rgba(7, 18, 45, .5) 38%, rgba(7, 18, 45, .12) 62%, transparent 75%);
}

.career-sec .container {
    position: relative;
    z-index: 1;
}

.career-content {
    max-width: 650px;
    text-shadow: 0 2px 16px rgba(7, 18, 45, .6), 0 1px 3px rgba(0, 0, 0, .55);
}

.career-sec .sec-eyebrow {
    color: #ff8a93;
}

.career-sec .sec-eyebrow::before {
    background: var(--red);
}

.career-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    line-height: 1.15;
    color: #fff;
    letter-spacing: -.5px;
    margin: 0 0 1rem;
}

.career-title span {
    color: #ff5d67;
}

.career-text {
    color: #dbe2f2;
    font-size: 1.08rem;
    line-height: 1.7;
    margin: 0 0 1.6rem;
}

.career-perks {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    padding: 0;
    margin: 0 0 2rem;
}

.career-perks li {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    padding: .45rem .95rem;
    border-radius: 50px;
    font-size: .86rem;
    font-weight: 500;
    color: #eef2fb;
}

.career-perks .bi {
    color: #ff7c85;
}

.career-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.career-cta .btn-lg {
    padding: .72rem 1.5rem;
    font-size: .95rem;
}

.career-cta .bi {
    margin-right: .4rem;
}

@media (max-width: 991.98px) {
    .career-sec {
        padding: 4.5rem 0;
    }
}

/* =====================================================================
   HERO v2 — Swiper parallax slider (index2.php)
   ===================================================================== */
.hero2-slider,
.hero2-slide {
    height: 86vh;
    min-height: 560px;
    max-height: 820px;
}

.hero2 .swiper {
    overflow: hidden;
}

.hero2-slide {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero2-bg {
    position: absolute;
    top: 0;
    left: -20%;
    width: 140%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero2-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(7, 18, 45, .85) 0%, rgba(7, 18, 45, .55) 40%, rgba(7, 18, 45, .18) 70%, rgba(7, 18, 45, .05) 100%);
}

.hero2 .container {
    position: relative;
    z-index: 3;
}

.hero2-content {
    max-width: 640px;
    color: #fff;
}

.hero2-eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(216, 30, 44, .92);
    padding: .42rem .95rem;
    border-radius: 50px;
    margin-bottom: 1.2rem;
}

.hero2-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(1.9rem, 3.8vw, 3.1rem);
    line-height: 1.18;
    letter-spacing: 0;
    color: #fff;
    margin: 0 0 1.1rem;
}

.hero2-title span {
    color: #ff5d67;
}

.hero2-text {
    font-size: 1.12rem;
    line-height: 1.7;
    color: #e8edf7;
    margin-bottom: 1.9rem;
    max-width: 560px;
}

.hero2-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero2-cta .btn-lg {
    padding: .72rem 1.5rem;
    font-size: .95rem;
}

.hero2-cta .bi {
    margin-right: .4rem;
}

/* pagination */
.hero2-pagination {
    position: absolute;
    bottom: 26px;
    left: 0;
    right: 0;
    z-index: 4;
    text-align: center;
}

.hero2-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #fff;
    opacity: .6;
    transition: width .25s ease, background .25s ease;
}

.hero2-pagination .swiper-pagination-bullet-active {
    background: var(--red);
    opacity: 1;
    width: 28px;
    border-radius: 5px;
}

/* nav arrows */
.hero2-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .4);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, color .2s ease;
}

.hero2-nav:hover {
    background: #fff;
    color: var(--navy);
}

.hero2-prev {
    left: 28px;
}

.hero2-next {
    right: 28px;
}

@media (max-width: 991.98px) {

    .hero2-slider,
    .hero2-slide {
        height: 80vh;
        min-height: 480px;
    }

    .hero2-overlay {
        background: linear-gradient(180deg, rgba(7, 18, 45, .55) 0%, rgba(7, 18, 45, .45) 40%, rgba(7, 18, 45, .8) 100%);
    }

    .hero2-content {
        text-align: center;
        max-width: 100%;
        margin: 0 auto;
    }

    .hero2-cta {
        justify-content: center;
    }

    .hero2-nav {
        display: none;
    }
}

/* =====================================================================
   HERO v2 — Coverflow 3D cards (index2.php)
   ===================================================================== */
.hero-cf {
    padding: 2.5rem 0 3.5rem;
    background: var(--bg-soft);
    overflow: hidden;
}

.hero-cf-slider {
    padding: 12px 0 54px;
    position: relative;
    /* Reserve the slider's height from the first paint. Without this the four
       slides stack vertically until Swiper initialises, and everything below
       jumps up when it does (measured layout shift 0.408). 540 + 12 + 54. */
    min-height: 606px;
}

/* Take the slides out of layout until Swiper is ready. min-height above already
   holds the space, so nothing below moves, and the slides are never painted in
   a pre-Swiper position — so there is nothing to shift from.
   Two earlier attempts are worth recording: laying the first slide out centred
   scored 0.006 on desktop but 0.218 on mobile (slides jumped when Swiper's CSS
   arrived late); visibility:hidden was worse still (0.385 desktop) because the
   slides kept their pre-init boxes and moved as they were revealed. */
.hero-cf-slider:not(.swiper-initialized) .swiper-wrapper {
    display: none;
}

.hero-cf-slider .swiper-slide {
    width: 66%;
    max-width: 940px;
    height: 540px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    background: #fff;
}

.hero-cf-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-cf-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-cf-slider .swiper-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 18, 45, .05) 30%, rgba(7, 18, 45, .82) 100%);
}

.hero-cf-cap {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    padding: 2.4rem 2.8rem;
    color: #fff;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .4s ease .1s, transform .4s ease .1s;
}

.hero-cf-slider .swiper-slide-active .hero-cf-cap {
    opacity: 1;
    transform: translateY(0);
}

.hero-cf-eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .74rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(216, 30, 44, .92);
    padding: .38rem .9rem;
    border-radius: 50px;
    margin-bottom: .9rem;
}

.hero-cf-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    line-height: 1.22;
    color: #fff;
    margin: 0 0 1.2rem;
    max-width: 560px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .5);
}

.hero-cf-cta {
    display: flex;
    gap: .9rem;
    flex-wrap: wrap;
}

.hero-cf-cta .btn-lg {
    padding: .65rem 1.35rem;
    font-size: .9rem;
}

.hero-cf-cta .bi {
    margin-right: .4rem;
}

.hero-cf-pg {
    position: absolute;
    /* Swiper's own `.swiper-pagination-bullets.swiper-pagination-horizontal`
       rule outranks a plain `bottom` here, so set its variable instead. The
       bullets below carry 7px of transparent padding to reach a 24px touch
       target; 8px - 7px keeps the dots where they have always sat. */
    --swiper-pagination-bottom: 1px;
    bottom: 1px;
    left: 0;
    right: 0;
    z-index: 4;
    text-align: center;
}

/* The dot itself stays 10px, but the tappable box is 24x24 (Lighthouse wants
   at least 24px). content-box sizing plus background-clip means the padding is
   transparent and only enlarges the hit area. border-radius is measured from
   the border box, so 12px leaves the visible dot with 12-7 = 5px — a circle at
   10px, a pill at the active 28px. */
.hero-cf-pg .swiper-pagination-bullet {
    box-sizing: content-box;
    width: 10px;
    height: 10px;
    padding: 7px;
    margin: 0 2px;
    background: var(--navy);
    background-clip: content-box;
    border-radius: 12px;
    opacity: .35;
    transition: width .25s ease, background .25s ease, opacity .25s ease;
}

.hero-cf-pg .swiper-pagination-bullet-active {
    background: var(--red);
    background-clip: content-box;
    opacity: 1;
    width: 28px;
    border-radius: 12px;
}

.hero-cf .hero2-nav {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--navy);
    box-shadow: 0 8px 20px rgba(14, 42, 94, .12);
}

.hero-cf .hero2-nav:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

.hero-cf .hero2-prev {
    left: 4%;
}

.hero-cf .hero2-next {
    right: 4%;
}

@media (max-width: 991.98px) {
    .hero-cf-slider {
        min-height: 486px;   /* 420 + 12 + 54, matching the shorter slide below */
    }

    .hero-cf-slider .swiper-slide {
        width: 86%;
        height: 420px;
    }

    .hero-cf .hero2-nav {
        display: none;
    }

    .hero-cf-cap {
        padding: 1.6rem 1.8rem;
    }
}

/* SWATI wordmark strip (index2) */
.swati-strip {
    overflow: hidden;
    background: #fff;
    padding: 2.5rem 0;
    display: flex;
    justify-content: center;
}

.swati-strip-img {
    width: 58%;
    max-width: 720px;
    height: auto;
    will-change: transform;
}

@media (max-width: 991.98px) {
    .swati-strip-img {
        width: 88%;
    }
}

/* =====================================================================
   CLIENTS / CUSTOMERS
   ===================================================================== */
.clients-sec {
    padding: 5rem 0;
    background: var(--bg-soft);
}

.clients-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.8rem;
}

.clients-head .sec-eyebrow {
    padding-left: 0;
}

.clients-head .sec-eyebrow::before {
    display: none;
}

.clients-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--navy);
    margin: 0 0 .6rem;
    letter-spacing: -.5px;
}

.clients-sub {
    color: var(--muted);
    margin: 0;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
}

.client-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 110px;
    padding: 1rem 1.4rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.client-item img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .7;
    transition: filter .3s ease, opacity .3s ease;
}

.client-item:hover {
    border-color: var(--navy-2);
    box-shadow: 0 12px 28px rgba(14, 42, 94, .1);
    transform: translateY(-4px);
}

.client-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

@media (max-width: 767.98px) {
    .clients-sec {
        padding: 3.5rem 0;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .client-item {
        height: 92px;
    }
}

/* =====================================================================
   CLIENTS — marquee (index2)
   ===================================================================== */
.clients2-sec {
    padding: 4.5rem 0;
    background: #fff;
    overflow: hidden;
}

.clients2-sec .clients-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.4rem;
}

.clients2-sec .sec-eyebrow {
    padding-left: 0;
}

.clients2-sec .sec-eyebrow::before {
    display: none;
}

/* coverflow logo carousel (curved 3D slide) */
.clients-cf {
    padding: 1rem 1.2rem 1.8rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.clients-cf .swiper-slide {
    height: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.4rem 1.8rem;
    box-shadow: 0 10px 26px rgba(14, 42, 94, .06);
}

.clients-cf-slide img {
    max-width: 88%;
    max-height: 120px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .7;
    transition: filter .3s ease, opacity .3s ease;
}

.clients-cf .swiper-slide-active img {
    filter: grayscale(0);
    opacity: 1;
}

@media (max-width: 575.98px) {
    .clients-cf .swiper-slide {
        height: 130px;
    }

    .clients-cf-slide img {
        max-height: 92px;
    }
}

/* =====================================================================
   HEADINGS — use the hero display font (Michroma) everywhere
   ===================================================================== */
h1,
h2,
h3,
h4,
h5,
h6,
.about-head,
.sol-title,
.news-title,
.career-title,
.clients-title,
.footer-head,
.footer-cta-text h3,
.sol-row-title {
    font-family: var(--font-head);
    letter-spacing: 0;
}

/* bold, confident section headings (Poppins) */
.about-head,
.sol-title,
.career-title,
.clients-title {
    font-size: clamp(1.8rem, 3.2vw, 2.7rem);
    line-height: 1.18;
    font-weight: 700;
}

.footer-cta-text h3 {
    font-size: clamp(1.25rem, 2.1vw, 1.7rem);
    line-height: 1.25;
    font-weight: 700;
}

.sol-row-title {
    font-size: 1.2rem;
    line-height: 1.3;
    font-weight: 600;
}

.news-title {
    font-size: 1.18rem;
    line-height: 1.3;
    font-weight: 600;
}

.footer-head {
    font-weight: 600;
    font-size: 1.02rem;
}

.stat-num,
.about-stats .stat-num {
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: -.5px;
    font-size: clamp(1.9rem, 3.2vw, 2.8rem);
}

/* =====================================================================
   FOOTER VIDEO band (top of footer)
   ===================================================================== */
.footer-video {
    padding: 4rem 0 1rem;
    background: #fff;
}

.footer-video-el {
    width: 100%;
    height: auto;
    display: block;

    background: var(--bg-soft);
}

.footer-video {
    background: #F5F5F5;
}

.footer-video {
    padding-top: 0px !important;
}

.cmb-time-h {
    margin-top: 28px !important;
}

@media (max-width: 767.98px) {
    .footer-video {
        padding: 2.5rem 0 .5rem;
    }
}

/* =====================================================================
   COMPANY PROFILE PAGE  (profile.php)
   ===================================================================== */
.pp-hero {
    position: relative;
    padding: 5rem 0 4.5rem;
    color: #fff;
    overflow: hidden;
    background: url('../images/hero/banner-1.webp') center/cover no-repeat;
}

.pp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(10, 31, 69, .92), rgba(14, 42, 94, .72));
}

.pp-hero .container {
    position: relative;
    z-index: 1;
}

.pp-hero-eye {
    font-family: var(--font-head);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .8rem;
    color: #ffd0d4;
}

.pp-hero h1 {
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    margin: .6rem 0 .8rem;
}

.pp-crumb {
    font-size: .9rem;
    color: #cdd6ea;
}

.pp-crumb a {
    color: #cdd6ea;
}

.pp-crumb a:hover {
    color: #fff;
}

.pp-crumb .sep {
    margin: 0 .5rem;
    opacity: .6;
}

.pp-crumb .cur {
    color: var(--red);
    font-weight: 600;
}

/* ── shared pp reuse ── */
.pp-eyebrow {
    display: inline-block;
    color: var(--red);
    font-family: var(--font-head);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: .78rem;
    margin-bottom: .7rem;
}

.pp-h2 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.18;
    font-size: clamp(1.6rem, 2.6vw, 2.3rem);
    margin: 0 0 1.3rem;
}

.pp-h2 .r {
    color: var(--red);
}

.pp-lead {
    color: var(--ink);
    line-height: 1.85;
    font-size: 1.06rem;
    margin: 0 0 1.2rem;
}

.pp-text {
    color: var(--muted);
    line-height: 1.8;
    font-size: 1rem;
    margin: 0 0 1.2rem;
}

/* ══ WHO WE ARE — clean side-by-side ══ */
.wwa {
    background: #fff;
}

.wwa-top {
    padding: 5rem 0 0;
}

.wwa-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: center;
}

/* text col */
.wwa-text {
    padding-bottom: 4rem;
}

.wwa-tag {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--font-head);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--navy);
    margin-bottom: 1.2rem;
}

.wwa-dot {
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    display: inline-block;
}

.wwa-h2 {
    font-family: var(--font-head);
    font-size: clamp(1.55rem, 2.2vw, 2rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.18;
    margin: 0 0 1.2rem;
}

.wwa-h2 em {
    font-style: normal;
    color: var(--red);
}

.wwa-lead {
    font-size: .97rem;
    color: var(--ink);
    line-height: 1.85;
    margin: 0 0 .85rem;
}

.wwa-lead strong {
    color: var(--navy);
    font-weight: 700;
}

.wwa-body {
    font-size: .91rem;
    color: var(--muted);
    line-height: 1.8;
    margin: 0 0 1.6rem;
}

/* highlight pills */
.wwa-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.wwa-hl {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .42rem .95rem;
    font-family: var(--font-head);
    font-size: .76rem;
    font-weight: 600;
    color: var(--navy);
    transition: all .2s;
}

.wwa-hl:hover {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.wwa-hl .bi {
    color: var(--red);
    font-size: .8rem;
    transition: color .2s;
}

.wwa-hl:hover .bi {
    color: rgba(255, 255, 255, .55);
}

/* card col — normal flow, no transform */
.wwa-card-col {
    position: relative;
}

.wwa-popup {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(14, 42, 94, .08), 0 28px 48px rgba(14, 42, 94, .10);
}

.wwa-popup-bar {
    background: var(--red);
    color: #fff;
    font-family: var(--font-head);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .4px;
    padding: .72rem 1.3rem;
    display: flex;
    align-items: center;
    gap: .45rem;
}

.wwa-popup-bar .bi {
    font-size: .9rem;
}

.wwa-popup-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 200px;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wwa-popup-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wwa-popup-ph {
    color: var(--navy);
    opacity: .15;
    font-size: 5rem;
}

.wwa-popup-foot {
    padding: 1.3rem 1.5rem 1.5rem;
    border-top: 1px solid var(--line);
}

.wwa-popup-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy);
}

.wwa-popup-role {
    font-size: .7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .8px;
}

.wwa-popup-since {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    padding-top: .9rem;
    border-top: 1px solid var(--line);
}

.wwa-yr {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
}

.wwa-yr-lbl {
    font-size: .7rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ── dark stats strip ── */
.wwa-dark {
    background: #fff;
    padding: 0;
    border-top: 1px solid var(--line);
}

.wwa-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.wwa-stat {
    padding: 1.8rem 1rem;
    border-right: 1px solid var(--line);
    text-align: center;
    position: relative;
    transition: background .2s;
}

.wwa-stat:last-child {
    border-right: none;
}

.wwa-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.wwa-stat:hover::before {
    transform: scaleX(1);
}

.wwa-stat:hover {
    background: var(--bg-soft);
}

.wwa-stat-n {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 2.8vw, 2.4rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}

.wwa-stat-n span {
    color: var(--red);
    font-size: .5em;
    vertical-align: super;
}

.wwa-stat-l {
    display: block;
    font-family: var(--font-head);
    font-size: .68rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-top: .5rem;
}

/* ── Quality Showcase: V4 hero + V5 infra ── */
.qs {
    background: var(--bg-soft);
    padding: 4rem 0 4.5rem;
}

/* V4 hero card */
.qs-hero {
    background: var(--navy);
    clip-path: polygon(90px 0%, calc(100% - 90px) 0%, 100% 90px, 100% 100%, 0% 100%, 0% 90px);
    padding: 4rem 3rem 3.2rem;
    text-align: center;
    position: relative;
    margin-bottom: 1.8rem;
    transform: scaleY(0.06);
    transform-origin: bottom center;
    will-change: transform;
}

.qs-hero .qs-hero-inner,
.qs-hero .qs-wm {
    opacity: 0;
    transition: opacity .3s ease;
}

.qs-hero.qs-content-vis .qs-hero-inner,
.qs-hero.qs-content-vis .qs-wm {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .qs-hero {
        transform: none !important;
    }

    .qs-hero .qs-hero-inner,
    .qs-hero .qs-wm {
        opacity: 1 !important;
    }
}

/* ghost watermark — drifts on scroll via JS */
.qs-hero-inner {
    position: relative;
    z-index: 2;
}

.qs-wm {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(6rem, 13vw, 14rem);
    font-weight: 900;
    color: rgba(255, 255, 255, .04);
    white-space: nowrap;
    letter-spacing: .5rem;
    pointer-events: none;
    user-select: none;
    font-family: var(--font-head);
    z-index: 1;
    will-change: transform;
}

.qs-hero-eye {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .4);
    margin-bottom: 1.1rem;
}

.qs-hero-eye .bi {
    color: var(--red);
}

.qs-h2 {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    color: #fff;
    line-height: 1.12;
    margin: 0 0 1rem;
}

.qs-h2 em {
    color: var(--red);
    font-style: normal;
}

.qs-sub {
    color: rgba(255, 255, 255, .45);
    font-size: .95rem;
    line-height: 1.75;
    max-width: 500px;
    margin: 0 auto 2.2rem;
}

.qs-pills {
    display: flex;
    justify-content: center;
    gap: .55rem;
    flex-wrap: wrap;
}

.qs-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50px;
    padding: .45rem 1.1rem;
    font-family: var(--font-head);
    font-size: .8rem;
    font-weight: 700;
    color: #fff;
    transition: all .2s;
}

.qs-pill:hover {
    background: var(--red);
    border-color: var(--red);
}

.qs-pill .bi {
    color: var(--red);
    font-size: .82rem;
    transition: color .2s;
}

.qs-pill:hover .bi {
    color: #fff;
}

/* V5 infra cards */
.qs-infra-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: 1rem;
}

.qs-infra-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.qs-infra-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .8rem;
}

.qs-icard {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    transition: all .22s;
}

.qs-icard:hover {
    box-shadow: 0 12px 28px rgba(14, 42, 94, .1);
    transform: translateY(-3px);
}

.qs-icard-top {
    background: var(--bg-soft);
    padding: 1.4rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qs-icard-top .bi {
    font-size: 1.7rem;
    color: var(--navy);
    transition: color .2s;
}

.qs-icard:hover .qs-icard-top {
    background: var(--red);
}

.qs-icard:hover .qs-icard-top .bi {
    color: #fff;
}

.qs-icard-body {
    padding: .9rem 1rem 1rem;
    font-size: .77rem;
    color: var(--ink);
    line-height: 1.6;
    font-weight: 500;
    border-top: #0001 solid 1px;
}

@media (max-width: 991.98px) {
    .qs-infra-grid {
        grid-template-columns: 1fr 1fr;
    }

    .qs-hero {
        padding: 3rem 1.5rem 2.5rem;
    }
}

@media (max-width: 991.98px) {
    .wwa-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .wwa-text {
        padding-bottom: 0;
    }

    .wwa-stats {
        grid-template-columns: 1fr 1fr;
    }

    .wwa-stat {
        border-bottom: 1px solid var(--line);
    }

    .pp-band-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* =====================================================================
   MD'S MESSAGE PAGE  (md-message.php)
   ===================================================================== */
.pp-intro {
    padding: 5rem 0 6rem;
    background: #fff;
}

.pp-intro-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: start;
}

/* text column */
.pp-intro-text {
    position: relative;
}

.md-quote {
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 7rem;
    line-height: .6;
    color: var(--red);
    opacity: .12;
    margin: 0 0 -.5rem;
    pointer-events: none;
}

/* MD highlighted quote */
.md-highlight-quote {
    margin: 2rem 0;
    padding: 1.6rem 1.8rem 1.6rem 2rem;
    background: var(--bg-soft);
    border-left: 4px solid var(--navy);
    border-radius: 0 12px 12px 0;
    position: relative;
}

.md-hq-icon {
    position: absolute;
    top: -10px;
    left: 1.4rem;
    background: var(--navy);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.md-highlight-quote p {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--navy);
    line-height: 1.55;
    margin: 0.8rem 0 0.6rem;
    font-style: italic;
}

.md-highlight-quote cite {
    font-size: .85rem;
    color: var(--red);
    font-style: normal;
    font-weight: 600;
    font-family: var(--font-head);
}

.md-hq-sign {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

/* signature block */
.md-sign {
    margin-top: 2rem;
    padding-top: 1.6rem;
    border-top: 2px solid var(--line);
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.md-sign-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.md-sign-avatar .bi {
    color: #fff;
    font-size: 1.4rem;
}

.md-sign-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.md-sign-name {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--navy);
    font-size: 1.1rem;
    line-height: 1.2;
}

.md-sign-role {
    color: var(--red);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .85rem;
    margin-top: .15rem;
}

.md-sign-co {
    color: var(--muted);
    font-size: .8rem;
    margin-top: .1rem;
}

/* Two-director aside */
.pp-directors {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.pp-dir-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(14, 42, 94, .10);
    transition: transform .25s ease, box-shadow .25s ease;
}

.pp-dir-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 54px rgba(14, 42, 94, .16);
}

.pp-dir-photo {
    position: relative;
    aspect-ratio: 5 / 3;
    overflow: hidden;
    background: var(--bg-soft);
}

.pp-dir-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform .5s ease;
}

.pp-dir-card:hover .pp-dir-photo img {
    transform: scale(1.04);
}

/* verified badge */
.pp-dir-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    box-shadow: 0 4px 10px rgba(216, 30, 44, .35);
}

/* gradient overlay at bottom of photo */
.pp-dir-photo::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    background: linear-gradient(transparent, rgba(7, 18, 45, .72));
    pointer-events: none;
}

.pp-dir-cap {
    padding: 1rem 1.3rem 1.2rem;
    background: white;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.pp-dir-name {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--navy);
    font-size: .97rem;
    line-height: 1.2;
}

.pp-dir-role {
    font-family: var(--font-head);
    font-weight: 400;
    color: red;
    font-size: .8rem;
    letter-spacing: .3px;
}

/* stacked avatars in signature */
.md-hq-avatars {
    display: flex;
    flex-direction: row;
}

.md-hq-avatars .md-sign-avatar+.md-sign-avatar {
    margin-left: -14px;
}

.md-hq-avatars .md-sign-avatar {
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(14, 42, 94, .18);
}

/* placeholder (no photo) */
.pp-chair-ph {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    color: var(--muted);
}

.pp-chair-ph .bi {
    font-size: 3.5rem;
    opacity: .3;
}

.pp-chair-ph span {
    font-size: .82rem;
    text-align: center;
    line-height: 1.5;
    opacity: .55;
}

@media (max-width: 991.98px) {
    .pp-intro-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .pp-directors {
        position: static;
        flex-direction: row;
    }

    .pp-dir-card {
        flex: 1;
    }

    .pp-dir-photo {
        aspect-ratio: 3 / 4;
    }
}

@media (max-width: 575.98px) {
    .pp-directors {
        flex-direction: column;
    }
}

/* =====================================================================
   MILESTONE PAGE  (milestone.php) — sticky giant year + scrolling list
   ===================================================================== */
.ms-sec {
    padding: 3.5rem 0 5rem;
    background: var(--bg-soft);
}

.ms-sec-head {
    text-align: center;
    margin-bottom: 3rem;
}

.ms-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 3rem;
    align-items: start;
}

.ms-aside {
    position: sticky;
    top: 130px;
}

.ms-bigyear {
    font-family: var(--font-head);
    font-weight: 800;
    line-height: .9;
    font-size: clamp(4rem, 11vw, 9rem);
    background: linear-gradient(160deg, var(--navy), var(--red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ms-gen {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--navy);
    font-size: 1.2rem;
    margin-top: .4rem;
}

.ms-prog {
    margin-top: 1.5rem;
    height: 6px;
    max-width: 240px;
    background: var(--bg-soft);
    border-radius: 6px;
    overflow: hidden;
}

.ms-prog span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--red), var(--navy));
    transition: width .3s ease;
}

.ms-count {
    margin-top: .7rem;
    color: var(--muted);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .85rem;
}

.ms-team-img {
    margin-top: 1.5rem;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(14, 42, 94, .12);
}

.ms-team-img img {
    width: 100%;
    height: 280px;
    /* object-fit: cover; */
    display: block;
}

.ms-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.ms-card {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--line);
    border-radius: 12px;
    padding: 1.3rem 1.5rem;
    box-shadow: 0 10px 26px rgba(14, 42, 94, .05);
    transition: transform .25s ease, box-shadow .25s ease, border-left-color .25s ease;
}

.ms-card.active {
    border-left-color: var(--navy);
    transform: translateX(6px);
    box-shadow: 0 18px 36px rgba(14, 42, 94, .12);
}

.ms-card-ic {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(14, 42, 94, .1);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: background .25s ease, color .25s ease;
}

.ms-card.active .ms-card-ic {
    background: var(--navy);
    color: #fff;
}

.ms-card-yr {
    font-family: var(--font-head);
    font-weight: 800;
    color: var(--navy);
    font-size: .95rem;
}

.ms-card p {
    margin: .3rem 0 0;
    color: var(--ink);
    line-height: 1.6;
    font-size: .96rem;
}

@media (max-width: 991.98px) {
    .ms-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .ms-aside {
        position: static;
    }

    .ms-bigyear {
        font-size: 4rem;
    }

    .ms-prog {
        max-width: none;
    }
}

/* =====================================================================
   VISION & MISSION PAGE  (vision-mission.php)
   ===================================================================== */
/* Vision section — white bg */
.vm-sec-vision {
    padding: 5rem 0;
    background: #fff;
}

/* Mission section — soft bg */
.vm-sec-mission {
    padding: 5rem 0;
    background: var(--bg-soft);
}

/* split grid */
.vm-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.vm-split-rev .vm-content {
    order: 1;
}

.vm-split-rev .vm-imgs {
    order: 2;
}

/* image cluster */
.vm-imgs {
    position: relative;
    height: 420px;
}

.vm-img-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 75%;
    height: 85%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(14, 42, 94, .16);
}

.vm-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vm-img-thumb {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 52%;
    /* height: 55%; */
    height: 50%;
    border-radius: 14px;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 12px 30px rgba(14, 42, 94, .14);
}

.vm-img-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vm-img-badge {
    position: absolute;
    top: 50%;
    left: 68%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 6px 18px rgba(14, 42, 94, .25);
    border: 3px solid #fff;
    z-index: 2;
}

.vm-img-badge-red {
    background: var(--red);
    box-shadow: 0 6px 18px rgba(216, 30, 44, .25);
}

/* top-right stat card */
.vm-img-stat {
    position: absolute;
    top: 20;
    right: 0;
    width: 23%;
    height: 38%;
    background: var(--navy);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(14, 42, 94, .18);
}

.vm-img-stat-num {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: #fff;
    line-height: 1;
}

.vm-img-stat-num span {
    color: var(--red);
    font-size: .7em;
}

.vm-img-stat-lbl {
    font-family: var(--font-head);
    font-size: .62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, .55);
    margin-top: .35rem;
    text-align: center;
    padding: 0 .4rem;
}

/* bottom-left accent strip */
.vm-img-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48%;
    height: 14%;
    background: var(--red);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    font-family: var(--font-head);
    letter-spacing: .3px;
    box-shadow: 0 6px 18px rgba(216, 30, 44, .25);
    padding: 0 .8rem;
}

.vm-img-accent .bi {
    font-size: 1rem;
    flex-shrink: 0;
}

/* mirrored versions for mission (rev) */
.vm-img-stat-rev {
    right: auto;
    left: 0;
}

.vm-img-accent-rev {
    left: auto;
    right: 0;
    background: var(--red);
    box-shadow: 0 6px 18px rgba(216, 30, 44, .25);
}

.vm-imgs-rev .vm-img-main {
    left: auto;
    right: 0;
}

.vm-imgs-rev .vm-img-thumb {
    right: auto;
    left: 0;
}

.vm-imgs-rev .vm-img-badge {
    left: 32%;
}

/* content */
.vm-content .pp-eyebrow {
    margin-bottom: .5rem;
}

.vm-content .pp-h2 {
    margin-bottom: 1rem;
}

.vm-content .pp-text {
    margin-bottom: 1.4rem;
}

/* checklist */
.vm-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.vm-check-list li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    font-size: .92rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.55;
}

.vm-chk {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    color: #fff;
    margin-top: .1rem;
}

.vm-chk-navy {
    background: var(--navy);
}

.vm-chk-red {
    background: var(--red);
}

@media (max-width: 991.98px) {
    .vm-split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .vm-split-rev {
        direction: ltr;
    }

    .vm-imgs {
        height: 300px;
    }
}

@media (max-width: 575.98px) {
    .vm-imgs {
        height: 240px;
    }

    .vm-img-badge {
        display: none;
    }
}

/* values */
.vm-values {
    padding: 4.5rem 0 5.5rem;
    background: #fff;
}

.vm-values-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.6rem;
}

.vm-values-head .pp-h2 {
    margin-bottom: 0;
}

.vm-values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem;
}

/* stack → spread animation */
.vm-values-grid {
    overflow: visible;
}

.vm-val {
    position: relative;
    background: var(--bg-soft);
    border-radius: 14px;
    padding: 2rem 1.4rem 1.6rem;
    border-left: 4px solid var(--navy);
    transform: translateX(var(--val-tx, 0));
    transition: transform .65s cubic-bezier(.23, 1, .32, 1),
        box-shadow .25s ease, border-color .25s ease;
    will-change: transform;
}

/* all 5 cards translate to where card 3 sits (center) */
.vm-values-grid .vm-val:nth-child(1) {
    --val-tx: 40vw;
    z-index: 2;
}

.vm-values-grid .vm-val:nth-child(2) {
    --val-tx: 20vw;
    z-index: 3;
}

.vm-values-grid .vm-val:nth-child(3) {
    --val-tx: 0;
    z-index: 5;
}

.vm-values-grid .vm-val:nth-child(4) {
    --val-tx: -20vw;
    z-index: 3;
}

.vm-values-grid .vm-val:nth-child(5) {
    --val-tx: -40vw;
    z-index: 2;
}

/* spread to own positions with stagger */
.vm-values-grid.vals-open .vm-val:nth-child(1) {
    transition-delay: .05s;
}

.vm-values-grid.vals-open .vm-val:nth-child(2) {
    transition-delay: .10s;
}

.vm-values-grid.vals-open .vm-val:nth-child(3) {
    transition-delay: .00s;
}

.vm-values-grid.vals-open .vm-val:nth-child(4) {
    transition-delay: .10s;
}

.vm-values-grid.vals-open .vm-val:nth-child(5) {
    transition-delay: .05s;
}

.vm-values-grid.vals-open .vm-val {
    transform: translateX(0);
    z-index: 1;
}

.vm-val:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 16px 32px rgba(14, 42, 94, .1);
    border-left-color: var(--red);
}

@media (prefers-reduced-motion: reduce) {
    .vm-val {
        transform: none !important;
        transition: none !important;
    }
}

.vm-val-no {
    display: none;
}

.vm-val-ic {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: var(--navy);
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1.1rem;
    transition: background .25s;
}

.vm-val:hover .vm-val-ic {
    background: var(--red);
}

.vm-val-key {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--navy);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin: 0 0 .55rem;
}

.vm-val:hover .vm-val-key {
    color: var(--red);
}

.vm-val p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: .88rem;
}

@media (max-width: 991.98px) {
    .vm-values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 575.98px) {
    .vm-values-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767.98px) {
    .vm-grid {
        grid-template-columns: 1fr;
    }

    .vm-card {
        padding: 1.8rem;
    }
}

/* =====================================================================
   ACCREDITATIONS PAGE  (accreditations.php)
   ===================================================================== */
.ac-sec {
    padding: 4.5rem 0 5.5rem;
}

.ac-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}

.ac-head .pp-h2 {
    margin-bottom: .8rem;
}

.ac-sub {
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

.ac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 1.8rem;
}

.ac-doc {
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 14px 32px rgba(14, 42, 94, .07);
    transition: transform .25s ease, box-shadow .25s ease;
}

.ac-doc:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 48px rgba(14, 42, 94, .14);
}

.ac-doc-bar {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .9rem 1rem;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #fff, var(--bg-soft));
}

.ac-doc-ic {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(150deg, var(--navy), var(--red));
    font-size: 1.15rem;
}

.ac-doc-name {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
    flex: 1;
}

.ac-doc-name strong {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--navy);
    font-size: 1.02rem;
}

.ac-doc-name span {
    color: var(--muted);
    font-size: .78rem;
}

.ac-doc-open {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    background: var(--bg-soft);
    border: 1px solid var(--line);
    transition: background .2s ease, color .2s ease;
}

.ac-doc-open:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

.ac-doc-frame {
    position: relative;
    aspect-ratio: 1 / 1.32;
    background: var(--bg-soft);
    overflow: hidden;
}

.ac-doc-canvas {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity .4s ease;
}

.ac-doc-frame.is-loaded .ac-doc-canvas {
    opacity: 1;
}

.ac-doc-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 1.5rem;
}

.ac-doc-loading .bi {
    animation: ac-spin 1s linear infinite;
}

@keyframes ac-spin {
    to {
        transform: rotate(360deg);
    }
}

.ac-doc-frame.is-loaded .ac-doc-loading {
    display: none;
}

.ac-doc-frame.is-error .ac-doc-loading::after {
    content: "Preview unavailable";
    font-size: .85rem;
}

.ac-doc-frame.is-error .ac-doc-loading .bi {
    display: none;
}

/* clickable overlay with a hover "View PDF" pill */
.ac-doc-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 31, 69, 0);
    transition: background .25s ease;
}

.ac-doc-overlay:hover {
    background: rgba(10, 31, 69, .45);
}

.ac-doc-zoom {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: #fff;
    color: var(--navy);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .9rem;
    padding: .55rem 1.1rem;
    border-radius: 30px;
    box-shadow: 0 8px 20px rgba(10, 31, 69, .3);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease;
}

.ac-doc-overlay:hover .ac-doc-zoom {
    opacity: 1;
    transform: none;
}

.ac-note {
    text-align: center;
    color: var(--muted);
    font-size: .9rem;
    margin: 2rem 0 0;
}

.ac-note .bi {
    color: var(--red);
    margin-right: .35rem;
}

@media (max-width: 575.98px) {
    .ac-doc-frame {
        aspect-ratio: 1 / 1.25;
    }
}

/* =====================================================================
   QUALITY POLICY PAGE  (quality-policy.php)
   ===================================================================== */
.qp-sec {
    padding: 4.5rem 0 5.5rem;
}

.qp-doc {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--red);
    border-radius: 18px;
    padding: 3rem 3.2rem;
    box-shadow: 0 20px 46px rgba(14, 42, 94, .08);
    overflow: hidden;
}

.qp-quote {
    position: absolute;
    top: 1.2rem;
    right: 1.8rem;
    font-size: 4.5rem;
    line-height: 1;
    color: var(--bg-soft);
    z-index: 0;
}

.qp-doc .pp-eyebrow {
    position: relative;
    z-index: 1;
}

.qp-doc p {
    position: relative;
    z-index: 1;
    color: var(--ink);
    line-height: 1.85;
    font-size: 1.04rem;
    margin: 1rem 0 0;
}

.qp-doc p:first-of-type {
    margin-top: 1rem;
}

.qp-hi {
    color: var(--red);
    font-style: normal;
    font-weight: 600;
}

.qp-sign {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
}

.qp-sign-seal {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    background: linear-gradient(150deg, var(--navy), var(--red));
    box-shadow: 0 8px 18px rgba(216, 30, 44, .3);
}

.qp-sign-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.qp-sign-text strong {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--navy);
    font-size: 1.05rem;
}

.qp-sign-text span {
    color: var(--muted);
    font-size: .85rem;
}

.qp-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.3rem;
    margin-top: 2.5rem;
}

.qp-pillar {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.6rem 1.4rem;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.qp-pillar:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(14, 42, 94, .1);
    border-color: transparent;
    background: #fff;
}

.qp-pillar-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: rgba(216, 30, 44, .1);
    color: var(--red);
    font-size: 1.35rem;
    margin-bottom: .9rem;
}

.qp-pillar h3 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--navy);
    font-size: 1.05rem;
    margin: 0 0 .4rem;
}

.qp-pillar p {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 575.98px) {
    .qp-doc {
        padding: 2rem 1.6rem;
    }
}

/* =====================================================================
   GLOBAL PRESENCE PAGE  (global-presence.php) — Leaflet map
   ===================================================================== */
.gp-sec {
    padding: 4.5rem 0 5.5rem;
}

.gp-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
}

.gp-head .pp-h2 {
    margin-bottom: .8rem;
}

.gp-sub {
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

.gp-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 2rem;
    align-items: stretch;
}

.gp-countries {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.6rem;
    box-shadow: 0 14px 30px rgba(14, 42, 94, .06);
}

.gp-countries-h {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--navy);
    font-size: 1.05rem;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.gp-countries-h .bi {
    color: var(--red);
}

.gp-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .3rem;
}

.gp-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .6rem;
    border-radius: 9px;
    font-size: .9rem;
    color: var(--ink);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.gp-item .bi {
    color: var(--red);
    font-size: .9rem;
}

.gp-item:hover {
    background: var(--bg-soft);
}

.gp-item.active {
    background: var(--navy);
    color: #fff;
}

.gp-item.active .bi {
    color: #fff;
}

.gp-hq {
    font-weight: 600;
}

.gp-hq .bi {
    color: var(--navy);
}

.gp-hq-badge {
    margin-left: auto;
    background: var(--red);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .62rem;
    letter-spacing: .5px;
    padding: .12rem .4rem;
    border-radius: 5px;
}

.gp-item.active .gp-hq-badge {
    background: #fff;
    color: var(--navy);
}

.gp-map-wrap {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(14, 42, 94, .08);
}

.gp-map {
    width: 100%;
    height: 100%;
    min-height: 460px;
    background: var(--bg-soft);
    z-index: 0;
}

.gp-map .leaflet-popup-content {
    font-family: var(--font-body);
    font-size: .9rem;
}

@media (max-width: 991.98px) {
    .gp-grid {
        grid-template-columns: 1fr;
    }

    .gp-map {
        min-height: 420px;
    }
}

@media (max-width: 575.98px) {
    .gp-list {
        grid-template-columns: 1fr;
    }
}

/* =====================================================================
   CONTACT PAGE  (contact.php)
   ===================================================================== */
/* quick tiles */
.ct-tiles-sec {
    padding: 3.5rem 0 1rem;
}

.ct-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
}

.ct-tile {
    display: block;
    color: inherit;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.8rem 1.5rem;
    text-align: center;
    box-shadow: 0 12px 28px rgba(14, 42, 94, .06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.ct-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 42px rgba(14, 42, 94, .13);
    color: inherit;
}

.ct-tile-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(150deg, var(--navy), var(--red));
    font-size: 1.4rem;
    margin-bottom: 1rem;
    transition: transform .3s ease;
}

.ct-tile:hover .ct-tile-ic {
    transform: scale(1.08) rotate(-6deg);
}

.ct-tile h3 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--navy);
    font-size: 1.05rem;
    margin: 0 0 .4rem;
}

.ct-tile p {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.55;
    margin: 0;
}

/* form + aside */
.ct-main {
    padding: 4rem 0 4.5rem;
}

.ct-grid {
    display: grid;
    grid-template-columns: .9fr 1.4fr;
    gap: 2.5rem;
    align-items: start;
}

.ct-form-lead {
    color: var(--muted);
    line-height: 1.7;
    margin: .3rem 0 1.8rem;
}

.ct-form .ct-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.ct-field {
    position: relative;
    margin-bottom: 1.2rem;
}

.ct-field input,
.ct-field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    padding: 1.15rem 1rem .55rem;
    font-family: var(--font-body);
    font-size: .97rem;
    color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease;
    resize: vertical;
}

.ct-field textarea {
    min-height: 120px;
}

.ct-field label {
    position: absolute;
    left: 1rem;
    top: .95rem;
    color: var(--muted);
    font-size: .97rem;
    pointer-events: none;
    transition: .18s ease;
    background: transparent;
}

.ct-field input:focus,
.ct-field textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(216, 30, 44, .12);
}

.ct-field input:focus+label,
.ct-field input:not(:placeholder-shown)+label,
.ct-field textarea:focus+label,
.ct-field textarea:not(:placeholder-shown)+label {
    top: -.55rem;
    left: .7rem;
    font-size: .72rem;
    font-weight: 600;
    color: var(--red);
    background: #fff;
    padding: 0 .35rem;
    border-radius: 4px;
}

.ct-opt {
    color: var(--muted);
    font-weight: 400;
    text-transform: none;
}

.ct-err {
    display: none;
    color: var(--red);
    font-size: .78rem;
    margin-top: .35rem;
}

.ct-field.invalid input,
.ct-field.invalid textarea {
    border-color: var(--red);
}

.ct-field.invalid .ct-err {
    display: block;
}

.ct-submit {
    position: relative;
    border: none;
    cursor: pointer;
    background: var(--red);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .98rem;
    padding: .9rem 1.8rem;
    border-radius: 10px;
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}

.ct-submit:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(216, 30, 44, .3);
}

.ct-submit-spin {
    display: none;
}

.ct-submit-spin .bi {
    animation: ac-spin 1s linear infinite;
}

.ct-form.sending .ct-submit {
    pointer-events: none;
    opacity: .85;
}

.ct-form.sending .ct-submit-label {
    display: none;
}

.ct-form.sending .ct-submit-spin {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.ct-success {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
    animation: tiIn .5s ease;
}

.ct-success .bi {
    font-size: 3rem;
    color: #1aa251;
}

.ct-success h3 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--navy);
    margin: .6rem 0 .3rem;
}

.ct-success p {
    color: var(--muted);
    margin: 0;
}

/* honeypot — keep in the DOM but invisible/unreachable for humans */
.ct-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* "Enquiring about <product>" note carried from a product page */
.ct-product-note {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0 0 1.2rem;
    padding: .7rem 1rem;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    color: var(--navy);
    font-size: .92rem;
}

.ct-product-note .bi {
    color: var(--accent);
    font-size: 1.1rem;
}

.ct-product-note strong {
    font-weight: 600;
}

/* inline form alert (no-JS error fallback) */
.ct-alert {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0 0 1.2rem;
    padding: .75rem 1rem;
    border-radius: 10px;
    font-size: .92rem;
}

.ct-alert-err {
    background: #fdecec;
    border: 1px solid #f5c2c2;
    color: #b3261e;
}

/* aside */
.ct-aside {
    position: sticky;
    top: 110px;
}

.ct-aside .ct-aside-card {
    position: relative;
    z-index: 1;
}

.ct-aside-card {
    background:
        linear-gradient(160deg, rgba(255, 255, 255, .72), rgba(245, 247, 251, .82)),
        url("../images/enquiry-img.webp") left bottom / auto 100% no-repeat,
        linear-gradient(160deg, #fff, var(--bg-soft));
    color: var(--navy);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 2.2rem;
    box-shadow: 0 20px 44px rgba(14, 42, 94, .08);
}

.ct-aside-card h3 {
    color: var(--navy);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 0 1.2rem;
}

.ct-aside-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.6rem;
}

.ct-aside-list li {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    padding: .6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    color: #dde3f0;
    font-size: .92rem;
    line-height: 1.5;
}

.ct-aside-list li:last-child {
    border-bottom: none;
}

.ct-aside-list .bi {
    color: #ff8a93;
    font-size: 1.05rem;
    margin-top: .1rem;
}

.ct-aside-list a {
    color: #dde3f0;
}

.ct-aside-list a:hover {
    color: #fff;
}

.ct-actions {
    display: flex;
    gap: .7rem;
    margin-bottom: 1.4rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.ct-social {
    position: relative;
    z-index: 1;
}

.ct-act {
    flex: 1;
    min-width: 130px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .9rem;
    padding: .7rem 1rem;
    border-radius: 10px;
    transition: transform .15s ease, filter .2s ease;
}

.ct-act:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.ct-act-call {
    background: #fff;
    color: var(--navy);
}

.ct-act-wa {
    background: #25d366;
    color: #fff;
}

.ct-social {
    display: flex;
    gap: .5rem;
}

.ct-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    transition: background .2s ease;
}

.ct-social a:hover {
    background: var(--red);
}

/* map */
.ct-map-sec {
    padding-bottom: 0;
}

.ct-maphead {
    text-align: center;
    margin: 0 auto 1.8rem;
}

.ct-maphead .pp-h2 {
    margin-bottom: 0;
}

.ct-map {
    width: 100%;
    height: 420px;
    background: var(--bg-soft);
    z-index: 0;
}

@media (max-width: 991.98px) {
    .ct-tiles {
        grid-template-columns: repeat(2, 1fr);
    }

    .ct-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ct-aside {
        position: static;
        top: auto;
    }
}

@media (max-width: 575.98px) {
    .ct-tiles {
        grid-template-columns: 1fr;
    }

    .ct-form .ct-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ---- Contact: intro + info column ---- */
.ct-intro {
    padding: 4rem 0;
}

.ct-intro-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
}

.ct-intro-inner .pp-eyebrow {
    margin-bottom: .5rem;
}

.ct-intro-inner .pp-h2 {
    margin-bottom: 1.1rem;
}

.ct-intro-inner p {
    color: var(--muted);
    line-height: 1.8;
    margin: 0 0 1rem;
}

.ct-intro-inner p:last-child {
    margin-bottom: 0;
}

.ct-intro {
    position: relative;
    overflow: hidden;
}

.ct-info-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.ct-info-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: inherit;
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.1rem 1.3rem;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

/* dot-grid pattern filling the empty right side of each card */
.ct-info-row::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 42%;
    pointer-events: none;
    opacity: .9;
    background-image: radial-gradient(rgba(14, 42, 94, .16) 1.5px, transparent 1.6px);
    background-size: 14px 14px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 85%);
    mask-image: linear-gradient(90deg, transparent, #000 85%);
    transition: opacity .25s ease;
}

.ct-info-row:hover {
    transform: translateX(4px);
    box-shadow: 0 16px 34px rgba(14, 42, 94, .1);
    border-color: rgba(216, 30, 44, .35);
    color: inherit;
}

.ct-info-row:hover::after {
    background-image: radial-gradient(rgba(216, 30, 44, .22) 1.5px, transparent 1.6px);
}

.ct-info-row>* {
    position: relative;
    z-index: 1;
}

.ct-info-row .ct-tile-ic {
    margin: 0;
    flex-shrink: 0;
}

.ct-info-txt {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ct-info-txt strong {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--navy);
    font-size: 1.02rem;
    line-height: 1.3;
}

.ct-info-txt span {
    color: var(--muted);
    font-size: .9rem;
    word-break: break-word;
}

/* ---- Form + Enquiries: creative band ---- */
.ct-main {
    position: relative;
    overflow: hidden;
}

.ct-main-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .5;
    z-index: 0;
    pointer-events: none;
}

.ct-main-blob-1 {
    width: 380px;
    height: 380px;
    top: -120px;
    left: -140px;
    background: radial-gradient(circle, rgba(216, 30, 44, .22), transparent 70%);
}

.ct-main-blob-2 {
    width: 460px;
    height: 460px;
    bottom: -160px;
    right: -160px;
    background: radial-gradient(circle, rgba(14, 42, 94, .20), transparent 70%);
}

.ct-main .container {
    position: relative;
    z-index: 1;
}

/* elevated floating form card */
.ct-form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 2.4rem 2.4rem 2.6rem;
    box-shadow: 0 30px 60px rgba(14, 42, 94, .10);
    position: relative;
    overflow: hidden;
}

.ct-form-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--navy));
}

/* ---- Business Enquiries card ---- */
.ct-aside-card {
    position: relative;
    overflow: hidden;
}

.ct-aside-glow {
    position: absolute;
    top: -90px;
    right: -90px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(216, 30, 44, .12), transparent 70%);
    pointer-events: none;
}

.ct-aside-head {
    position: relative;
    z-index: 1;
}

.ct-aside-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--red-dark);
    background: rgba(216, 30, 44, .08);
    border: 1px solid rgba(216, 30, 44, .2);
    padding: .35rem .75rem;
    border-radius: 999px;
    margin-bottom: .9rem;
}

.ct-aside-badge .bi {
    color: var(--red);
    font-size: .85rem;
}

.ct-aside-lead {
    color: var(--muted);
    margin: 0 0 1.3rem;
    font-size: .92rem;
}

.ct-enq-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .7rem;
}

.ct-enq-list li {
    display: flex;
    flex-direction: column;
    gap: .7rem;
    padding: 1.1rem 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--navy);
    font-size: .88rem;
    line-height: 1.4;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
    opacity: 0;
    transform: translateY(12px);
    animation: ct-enq-in .5s ease forwards;
    animation-delay: var(--d, 0ms);
}

.ct-enq-list li::after {
    content: "";
    position: absolute;
    top: -30px;
    right: -30px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(216, 30, 44, .12), transparent 70%);
    opacity: 0;
    transition: opacity .25s ease;
}

.ct-enq-list li:hover {
    transform: translateY(-4px);
    background: #fff;
    border-color: rgba(216, 30, 44, .35);
    box-shadow: 0 14px 28px rgba(14, 42, 94, .1);
}

.ct-enq-list li:hover::after {
    opacity: 1;
}

/* 7 items → last spans full width */
.ct-enq-list li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.ct-enq-ic {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #fff;
    background: linear-gradient(150deg, rgba(216, 30, 44, .95), rgba(179, 20, 31, .95));
    box-shadow: 0 6px 14px rgba(216, 30, 44, .28);
}

.ct-enq-txt {
    flex: 1;
    font-weight: 500;
}

@keyframes ct-enq-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ct-enq-list li {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

.ct-aside-note {
    color: #b9c3da;
    font-size: .84rem;
    line-height: 1.65;
    margin: 0 0 1.4rem;
    position: relative;
    z-index: 1;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .13);
}

/* ---- Offices & Manufacturing Facilities ---- */
.ct-offices-sec {
    padding: 4.5rem 0;
    background: var(--bg-soft);
}

.ct-sec-head {
    max-width: 780px;
    margin: 0 auto 2.6rem;
    text-align: center;
}

.ct-sec-head .pp-eyebrow {
    margin-bottom: .5rem;
}

.ct-sec-head .pp-h2 {
    margin-bottom: 1rem;
}

.ct-sec-head p {
    color: var(--muted);
    line-height: 1.8;
    margin: 0;
}

.ct-offices {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.4rem;
}

.ct-office {
    flex: 0 1 calc((100% - 2 * 1.4rem) / 3);
    min-width: 260px;
}

.ct-office {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.8rem 1.6rem;
    transition: transform .25s ease, box-shadow .25s ease;
    border-top: 3px solid var(--red);
}

.ct-office.is-hq {
    border-top-color: var(--navy);
}

.ct-office:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 42px rgba(14, 42, 94, .13);
}

.ct-office-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 13px;
    background: rgba(216, 30, 44, .1);
    color: var(--red);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.ct-office.is-hq .ct-office-ic {
    background: rgba(14, 42, 94, .1);
    color: var(--navy);
}

.ct-office h3 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--navy);
    font-size: 1.1rem;
    margin: 0 0 .5rem;
}

.ct-office p {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.6;
    margin: 0;
}

/* ---- Why Choose Swati ---- */
.ct-why-sec {
    padding: 4.5rem 0;
}

.ct-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.ct-why-copy .pp-eyebrow {
    margin-bottom: .5rem;
}

.ct-why-copy .pp-h2 {
    margin-bottom: 1rem;
}

.ct-why-copy p {
    color: var(--muted);
    line-height: 1.8;
    margin: 0;
}

.ct-why-strengths {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 2rem 2.2rem;
}

.ct-why-strengths h3 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--navy);
    font-size: 1.25rem;
    margin: 0 0 1.2rem;
}

.ct-strength-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ct-strength-list li {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    padding: .55rem 0;
    color: var(--navy);
    font-size: .95rem;
    line-height: 1.5;
    border-bottom: 1px solid var(--line);
}

.ct-strength-list li:last-child {
    border-bottom: none;
}

.ct-strength-list .bi {
    color: #1aa251;
    font-size: 1.1rem;
    margin-top: .05rem;
    flex-shrink: 0;
}

/* ---- Connect With Us CTA ---- */
.ct-connect {
    padding: 4rem 0;
    background: linear-gradient(155deg, var(--navy), var(--navy-deep));
}

.ct-connect-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.ct-connect-eye {
    color: #ff8a93;
}

.ct-connect-inner h2 {
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    margin: .4rem 0 1rem;
}

.ct-connect-inner p {
    color: #cfd7e8;
    line-height: 1.8;
    margin: 0 0 1.8rem;
}

.ct-connect-actions {
    display: flex;
    gap: .9rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 991.98px) {
    .ct-intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: start;
    }

    .ct-why-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 479.98px) {
    .ct-enq-list {
        grid-template-columns: 1fr;
    }

    .ct-enq-list li:last-child:nth-child(odd) {
        grid-column: auto;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =====================================================================
   PRODUCT DETAIL PAGE  (product-detail.php)
   ===================================================================== */
.pd-top {
    padding: 3.5rem 0 4rem;
}

.pd-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: start;
}

/* gallery */
.pd-gallery {
    position: sticky;
    top: 110px;
}

.pd-main-img {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-soft);
    box-shadow: 0 18px 40px rgba(14, 42, 94, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
}

.pd-main-img img {
    max-width: 100%;
    max-height: 460px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.pd-img-ph {
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    color: var(--muted);
}

.pd-img-ph .bi {
    font-size: 4rem;
    color: var(--navy);
    opacity: .2;
}

.pd-img-ph span {
    font-size: .85rem;
    font-weight: 500;
}

.pd-cat-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--red);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .8rem;
    padding: .4rem .8rem;
    border-radius: 30px;
    box-shadow: 0 6px 16px rgba(216, 30, 44, .35);
}

.pd-cat-tag:hover {
    color: #fff;
}

/* info */
.pd-title {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.15;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    margin: .4rem 0 .8rem;
}

.pd-lead {
    color: var(--ink);
    font-size: 1.1rem;
    line-height: 1.65;
    font-weight: 500;
    margin: 0 0 1rem;
}

.pd-desc {
    color: var(--muted);
    line-height: 1.8;
    margin: 0 0 1.6rem;
}

.pd-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .8rem;
}

.pd-features li {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-size: .92rem;
    color: var(--ink);
    font-weight: 500;
}

.pd-feat-ic {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(216, 30, 44, .1);
    color: var(--red);
    font-size: 1.05rem;
}

.pd-cta {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
}

.pd-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.btn-pd-outline {
    background: #fff;
    border: 2px solid var(--navy);
    color: var(--navy);
    font-family: var(--font-head);
    font-weight: 600;
    border-radius: 8px;
    transition: background .2s ease, color .2s ease;
}

.btn-pd-outline:hover {
    background: var(--navy);
    color: #fff;
}

/* specs table */
.pd-specs-sec {
    padding: 0 0 5rem;
}

.pd-specs-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.2rem;
}

.pd-specs-head .pp-h2 {
    margin-bottom: 0;
}

.pd-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(14, 42, 94, .06);
}

.pd-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.pd-table thead th {
    background: var(--navy);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .9rem;
    padding: .85rem 1rem;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, .12);
}

.pd-table thead tr:first-child th {
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.pd-table thead th:last-child {
    border-right: none;
}

.pd-table tbody td {
    padding: .8rem 1rem;
    text-align: center;
    font-size: .92rem;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.pd-table tbody tr:nth-child(even) {
    background: var(--bg-soft);
}

.pd-table tbody tr:hover {
    background: rgba(216, 30, 44, .05);
}

.pd-table tbody tr:last-child td {
    border-bottom: none;
}

.pd-code {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--red);
}

.pd-note {
    text-align: center;
    color: var(--muted);
    font-size: .88rem;
    margin: 1.4rem 0 0;
}

.pd-note .bi {
    color: var(--red);
    margin-right: .35rem;
}

/* "As per customer requirement" note (products with no spec table) */
.pd-spec-cr {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 2.4rem 1.6rem;
}

.pd-spec-cr .bi {
    font-size: 2.2rem;
    color: var(--red);
}

.pd-spec-cr p {
    margin: .8rem 0 0;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--navy);
    font-size: 1.15rem;
}

@media (max-width: 991.98px) {
    .pd-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pd-gallery {
        position: static;
        max-width: 480px;
    }
}

@media (max-width: 575.98px) {
    .pd-features {
        grid-template-columns: 1fr;
    }

    .pd-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

/* =====================================================================
   NEWS ARTICLE DETAIL  (news-detail.php)
   ===================================================================== */
.nd-banner::before {
    background: linear-gradient(180deg, rgba(10, 31, 69, .55), rgba(10, 31, 69, .82));
}

.nd-main {
    padding: 3.5rem 0 4rem;
}

.nd-grid {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 3rem;
    align-items: start;
}

.nd-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    align-items: center;
    color: var(--muted);
    font-size: .88rem;
    margin-bottom: 1.4rem;
}

.nd-meta .bi {
    color: var(--red);
    margin-right: .35rem;
}

.nd-meta-tag {
    background: rgba(216, 30, 44, .1);
    color: var(--red);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: .25rem .7rem;
    border-radius: 30px;
}

.nd-feat {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.6rem;
    box-shadow: 0 16px 36px rgba(14, 42, 94, .12);
}

.nd-feat img {
    width: 100%;
    display: block;
}

.nd-lead {
    font-size: 1.12rem;
    line-height: 1.7;
    color: var(--ink);
    font-weight: 500;
    margin: 0 0 1.4rem;
}

.nd-p {
    color: var(--muted);
    line-height: 1.85;
    margin: 0 0 1.2rem;
    font-size: 1.02rem;
}

.nd-p strong {
    color: var(--navy);
}

.nd-h {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--navy);
    font-size: 1.4rem;
    margin: 1.8rem 0 .8rem;
}

.nd-quote {
    margin: 1.8rem 0;
    padding: 1.2rem 1.6rem;
    border-left: 4px solid var(--red);
    background: var(--bg-soft);
    border-radius: 0 12px 12px 0;
    font-family: var(--font-head);
    font-weight: 500;
    font-style: italic;
    color: var(--navy);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Rich-text body rendered from the CKEditor HTML (admin-authored) */
.nd-body {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.85;
}

.nd-body p {
    margin: 0 0 1.2rem;
}

.nd-body strong {
    color: var(--navy);
}

.nd-body a {
    color: var(--red);
    text-decoration: underline;
}

.nd-body h2,
.nd-body h3,
.nd-body h4 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--navy);
    margin: 1.8rem 0 .8rem;
    line-height: 1.3;
}

.nd-body h2 {
    font-size: 1.4rem;
}

.nd-body h3 {
    font-size: 1.2rem;
}

.nd-body h4 {
    font-size: 1.08rem;
}

.nd-body ul,
.nd-body ol {
    margin: 0 0 1.2rem;
    padding-left: 1.4rem;
}

.nd-body li {
    margin: .3rem 0;
}

.nd-body blockquote {
    margin: 1.8rem 0;
    padding: 1.2rem 1.6rem;
    border-left: 4px solid var(--red);
    background: var(--bg-soft);
    border-radius: 0 12px 12px 0;
    font-family: var(--font-head);
    font-weight: 500;
    font-style: italic;
    color: var(--navy);
}

.nd-body figure.table {
    margin: 1.4rem 0;
    overflow-x: auto;
}

.nd-body table {
    border-collapse: collapse;
    width: 100%;
}

.nd-body table td,
.nd-body table th {
    border: 1px solid var(--line);
    padding: .55rem .8rem;
}

.nd-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.nd-share {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-top: 2rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
}

.nd-share-label {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--navy);
    font-size: .9rem;
    margin-right: .3rem;
}

.nd-sh {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    color: var(--navy);
    border: 1px solid var(--line);
    transition: transform .15s ease, background .2s ease, color .2s ease;
}

.nd-sh:hover {
    transform: translateY(-3px);
    color: #fff;
}

.nd-sh-fb:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.nd-sh-li:hover {
    background: #0a66c2;
    border-color: #0a66c2;
}

.nd-sh-wa:hover {
    background: #25d366;
    border-color: #25d366;
}

.nd-sh-x:hover {
    background: #000;
    border-color: #000;
}

/* sidebar */
.nd-side {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.nd-side-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.6rem;
    box-shadow: 0 12px 28px rgba(14, 42, 94, .06);
}

.nd-side-h {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--navy);
    font-size: 1.1rem;
    margin: 0 0 1rem;
    padding-bottom: .7rem;
    border-bottom: 2px solid var(--red);
    display: inline-block;
}

.nd-recent {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nd-recent li {
    border-bottom: 1px solid var(--line);
}

.nd-recent li:last-child {
    border-bottom: none;
}

.nd-recent a {
    display: flex;
    align-items: flex-start;
    gap: .3rem;
    padding: .7rem 0;
    color: var(--ink);
    font-size: .92rem;
    font-weight: 500;
    line-height: 1.4;
    transition: color .2s ease, padding-left .2s ease;
}

.nd-recent a .bi {
    color: var(--red);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.nd-recent a:hover {
    color: var(--red);
    padding-left: .3rem;
}

.nd-side-cta {
    background: linear-gradient(155deg, var(--navy), var(--navy-deep));
    border-color: transparent;
    color: #fff;
}

.nd-side-cta h3 {
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.15rem;
    margin: 0 0 .5rem;
}

.nd-side-cta p {
    color: #cdd6ea;
    font-size: .9rem;
    line-height: 1.55;
    margin: 0 0 1.1rem;
}

.nd-related {
    padding-top: 1rem;
}

@media (max-width: 991.98px) {
    .nd-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nd-side {
        position: static;
    }
}

/* ---- Scroll-reveal utility ---- */
[data-reveal] {
    opacity: 0;
    transition: opacity .6s ease, transform .6s ease;
}

[data-reveal="left"] {
    transform: translateX(-60px);
}

[data-reveal="right"] {
    transform: translateX(60px);
}

[data-reveal="up"] {
    transform: translateY(40px);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ====================================================================
   CSR PAGE
   ==================================================================== */

/* ---- Hero ---- */
.csr-hero h1 {
    color: #fff;
}

.csr-hero-sub {
    color: #a8bcdf;
    font-size: 1.1rem;
    margin: .4rem 0 1.2rem;
    font-weight: 400;
}

/* ---- Intro section ---- */
.csr-intro {
    padding: 4rem 0 2rem;
    background: #fff;
}

.csr-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* image mosaic */
.csr-intro-imgs {
    position: relative;
    padding-top: 1.2rem;
}

.csr-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 160px 160px 120px;
    gap: 8px;
    border-radius: 16px;
    overflow: hidden;
}

.csr-mosaic-cell {
    overflow: hidden;
    border-radius: 6px;
}

.csr-mosaic-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.csr-mosaic-cell:hover img {
    transform: scale(1.06);
}

.csr-mosaic-big {
    /* grid-column: span 2;
    grid-row: span 2; */
    grid-column: span 3;
    grid-row: span 3;
    border-radius: 10px;
}

.csr-mosaic-wide {
    grid-column: span 3;
    border-radius: 10px;
}

.csr-img-pill {
    position: absolute;
    top: -14px;
    left: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: var(--navy);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .03em;
    padding: .55rem 1.1rem;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(14, 42, 94, .25);
    white-space: nowrap;
}

.csr-img-pill .bi {
    color: #f5c843;
    font-size: 1rem;
}

/* intro sub-heading */
.csr-sub-h {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--navy);
    margin: 1.4rem 0 .5rem;
}

/* intro text pillars */
.csr-pillars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .8rem;
    margin-top: 1.8rem;
}

.csr-pillar {
    background: var(--bg-soft);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    border-left: 3px solid var(--navy);
    transition: box-shadow .2s ease;
}

.csr-pillar:hover {
    box-shadow: 0 4px 18px rgba(14, 42, 94, .1);
}

.csr-pillar .bi {
    color: var(--navy);
    font-size: 1.3rem;
    margin-bottom: .2rem;
}

.csr-pillar-n {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--navy);
    line-height: 1;
}

.csr-pillar-l {
    font-size: .82rem;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.3;
}

/* ---- Focus Areas ---- */
.csr-focus {
    padding: 2rem 0;
    background: var(--bg-soft);
}

.csr-focus-head {
    text-align: center;
    margin-bottom: 3rem;
}

.csr-focus-head .pp-text {
    color: var(--muted);
}

/* ---- Focus Areas — Horizontal Split ---- */
.csr-focus-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.csr-fa-card {
    display: flex;
    border-radius: 0;
    overflow: hidden;
    height: 150px;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 88px;
    box-shadow: 0 4px 18px rgba(14, 42, 94, .1);
    transition: box-shadow .2s ease;
}

.csr-fa-card:nth-child(1) {
    z-index: 1;
    border-radius: 14px 14px 0 0;
}

.csr-fa-card:nth-child(2) {
    z-index: 2;
}

.csr-fa-card:nth-child(3) {
    z-index: 3;
}

.csr-fa-card:nth-child(4) {
    z-index: 4;
}

.csr-fa-card:nth-child(5) {
    z-index: 5;
    border-bottom: none;
    border-radius: 0 0 14px 14px;
}

.csr-fa-card:nth-child(even) {
    flex-direction: row-reverse;
}

.csr-fa-img-col {
    width: 32%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.csr-fa-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.csr-fa-card:hover .csr-fa-img-col img {
    transform: scale(1.07);
}

.csr-fa-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14, 42, 94, .65) 0%, rgba(0, 0, 0, .3) 100%);
    display: flex;
    align-items: center;
    padding: 1rem 1.2rem;
    justify-content: space-between;
    flex-direction: row-reverse;
}

.csr-fa-ic {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    border: 1.5px solid rgba(255, 255, 255, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.csr-fa-ic .bi {
    font-size: 1.2rem;
    color: #fff;
}

.csr-fa-num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 2.6rem;
    color: rgba(255, 255, 255, .15);
    line-height: 1;
    letter-spacing: -.02em;
    font-style: italic;
}

.csr-fa-body {
    flex: 1;
    background: #fff;
    padding: 1.2rem 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 3px solid var(--navy);
}

.csr-fa-body--navy {
    border-left-color: var(--navy);
}

.csr-fa-body--green {
    border-left-color: #1a7a4a;
}

.csr-fa-body--red {
    border-left-color: var(--red);
}

.csr-fa-h {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy);
    margin: 0 0 .5rem;
}

.csr-fa-body p {
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* ---- Commitment ---- */
.csr-commit {
    padding: 2rem 0 4rem;
    background: #fff;
}

.csr-commit-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.csr-commit-left {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.csr-commit-left .pp-text {
    margin-bottom: .8rem;
}

.csr-commit-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.2rem;
}

.csr-commit-tags span {
    background: var(--bg-soft);
    color: var(--navy);
    border: 1px solid var(--line);
    border-radius: 50px;
    padding: .35rem .9rem;
    font-size: .82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.csr-commit-tags span .bi {
    color: var(--green);
    font-size: .9rem;
}

.csr-commit-img {
    position: relative;
}

.csr-commit-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(14, 42, 94, .14);
    display: block;
}

.csr-commit-badge {
    position: absolute;
    bottom: -1rem;
    right: 2rem;
    background: var(--navy);
    color: #fff;
    border-radius: 12px;
    padding: .85rem 1.2rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 600;
    font-size: .85rem;
    box-shadow: 0 6px 24px rgba(14, 42, 94, .28);
}

.csr-commit-badge .bi {
    color: #f5c843;
    font-size: 1.2rem;
}

/* ---- Looking Ahead ---- */
.csr-ahead {
    padding: 2rem 0 6rem;
    background: #fff;
}

.csr-ahead-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.csr-ahead-img {
    position: relative;
    border-radius: 16px;
    overflow: visible;
}

.csr-ahead-img img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(14, 42, 94, .15);
    display: block;
}

.csr-ahead-badge {
    position: absolute;
    bottom: -1rem;
    left: 2rem;
    background: var(--navy);
    color: #fff;
    border-radius: 12px;
    padding: .9rem 1.3rem;
    display: flex;
    align-items: center;
    gap: .7rem;
    box-shadow: 0 6px 24px rgba(14, 42, 94, .3);
    font-weight: 600;
    font-size: .88rem;
}

.csr-ahead-badge .bi {
    font-size: 1.4rem;
    color: #7de5a4;
}

/* CTA button */
.csr-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--red);
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    padding: .8rem 1.8rem;
    border-radius: 8px;
    border: 2px solid var(--red);
    margin-top: 1.5rem;
    transition: background .2s, border-color .2s, transform .15s;
}

.csr-cta-btn:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: #fff;
    transform: translateX(3px);
}

.csr-cta-btn .bi {
    transition: transform .2s;
}

.csr-cta-btn:hover .bi {
    transform: translateX(4px);
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {

    .csr-intro-grid,
    .csr-ahead-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .csr-mosaic {
        grid-template-rows: 130px 130px 100px;
    }

    .csr-fa-card {
        height: 130px;
    }

    .csr-fa-img-col {
        width: 38%;
    }

    .csr-commit-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .csr-commit-img img {
        height: 280px;
    }
}

@media (max-width: 575.98px) {
    .csr-fa-card {
        height: auto;
        flex-direction: column !important;
    }

    .csr-fa-img-col {
        width: 100%;
        height: 160px;
    }

    .csr-pillars {
        grid-template-columns: 1fr 1fr;
        gap: .6rem;
    }

    .csr-mosaic {
        grid-template-rows: 100px 100px 80px;
        gap: 5px;
    }

    .csr-img-pill {
        font-size: .75rem;
        padding: .4rem .75rem;
    }

    .csr-ahead-img img {
        height: 280px;
    }
}


.ct-aside-lead {
    margin-top: 65px !important;
}

/* =====================================================================
   QUALITY POLICY PAGE  (quality-policy.php)
   ===================================================================== */
.qp-red {
    color: var(--red);
}

.qp-sec-head {
    text-align: center;
    margin-bottom: 3rem;
}

.qp-sec-h {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    color: var(--navy);
    margin: 0 0 .8rem;
    line-height: 1.2;
}

.qp-sec-sub {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 auto;
}

/* ---- Section 1 ---- */
.qp-intro-sec {
    padding: 5rem 0 4rem;
    background: #fff;
}

.qp-intro-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 4rem;
    align-items: center;
}

.qp-intro-h {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--navy);
    line-height: 1.2;
    margin: 0 0 1.2rem;
}

.qp-intro-lead {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ink);
    margin-bottom: .9rem;
}

.qp-intro-lead strong {
    color: var(--navy);
}

.qp-intro-body {
    font-size: .97rem;
    line-height: 1.75;
    color: var(--muted);
    margin-bottom: 1.8rem;
}

.qp-intro-body strong {
    color: var(--navy);
    font-weight: 600;
}

.qp-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 50px;
    padding: .45rem 1rem;
    font-family: var(--font-head);
    font-size: .84rem;
    font-weight: 600;
    color: var(--navy);
    cursor: default;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.qp-chip:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
    transform: translateY(-2px);
}

.qp-chip .bi {
    font-size: .9rem;
}

.qp-stat-card {
    background: linear-gradient(145deg, var(--navy), var(--navy-2));
    border-radius: 22px;
    padding: 2.2rem 1.8rem;
    box-shadow: 0 28px 60px rgba(14, 42, 94, .25);
    color: #fff;
    text-align: center;
}

.qp-stat-ring {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 1.6rem;
}

.qp-ring-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.qp-ring-track {
    fill: none;
    stroke: rgba(255, 255, 255, .12);
    stroke-width: 7;
}

.qp-ring-fill {
    fill: none;
    stroke: var(--red);
    stroke-width: 7;
    stroke-linecap: round;
    stroke-dasharray: 326.7;
    stroke-dashoffset: 326.7;
    transition: stroke-dashoffset 1.4s cubic-bezier(.4, 0, .2, 1);
}

.qp-ring-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qp-ring-num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 2.6rem;
    line-height: 1;
    color: #fff;
}

.qp-stat-list {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.qp-stat-row {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .88rem;
    background: rgba(255, 255, 255, .08);
    border-radius: 8px;
    padding: .55rem .9rem;
    transition: background .2s;
}

.qp-stat-row:hover {
    background: rgba(255, 255, 255, .16);
}

.qp-stat-row .bi {
    color: var(--red);
    font-size: 1rem;
}

@media (max-width: 991.98px) {
    .qp-intro-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .qp-stat-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* ---- Section 2 ---- */
.qp-comm-sec {
    padding: 5rem 0;
    background: var(--bg-soft);
}

.qp-comm-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.qp-comm-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.6rem 1.3rem 1.4rem;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
    cursor: default;
}

.qp-comm-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 42px rgba(14, 42, 94, .13);
}

.qp-comm-card:hover .qp-comm-bar {
    transform: scaleX(1);
}

.qp-comm-card:hover .qp-comm-ic {
    background: var(--red);
    color: #fff;
}

.qp-comm-num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 2.2rem;
    line-height: 1;
    color: var(--line);
    position: absolute;
    top: .8rem;
    right: 1rem;
    transition: color .25s;
}

.qp-comm-card:hover .qp-comm-num {
    color: rgba(216, 30, 44, .12);
}

.qp-comm-ic {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--bg-soft);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    transition: background .25s, color .25s;
}

.qp-comm-txt {
    font-size: .84rem;
    color: var(--ink);
    line-height: 1.6;
    margin: 0;
}

.qp-comm-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s;
}

@media (max-width: 1199.98px) {
    .qp-comm-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767.98px) {
    .qp-comm-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 479.98px) {
    .qp-comm-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Section 3 ---- */
.qp-cert-sec {
    padding: 5rem 0;
    background: #fff;
}

.qp-cert-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    justify-content: center;
    margin-bottom: 2.2rem;
}

.qp-cert-tab {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.2rem;
    border-radius: 50px;
    border: 1.5px solid var(--line);
    background: var(--bg-soft);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .84rem;
    color: var(--navy);
    cursor: pointer;
    transition: all .2s;
}

.qp-cert-tab .bi {
    font-size: .95rem;
}

.qp-cert-tab:hover {
    border-color: var(--tab-color);
    color: var(--tab-color);
    background: #fff;
}

.qp-cert-tab.active {
    background: var(--tab-color);
    color: #fff;
    border-color: var(--tab-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}

.qp-cert-panels {
    position: relative;
}

.qp-cert-panel {
    display: none;
    animation: qpFadeIn .35s ease;
}

.qp-cert-panel.active {
    display: block;
}

@keyframes qpFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qp-cert-panel-inner {
    display: grid;
    grid-template-columns: 260px 1fr;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(14, 42, 94, .12);
    border: 1px solid var(--line);
}

.qp-cert-panel-left {
    background: var(--bg-soft);
    border-right: 1px solid var(--line);
    padding: 2.4rem 2rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.qp-cert-big-ic {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: .6rem;
}

.qp-cert-code-big {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--navy);
    line-height: 1.1;
}

.qp-cert-name-big {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.4;
}

.qp-cert-panel-right {
    padding: 2.4rem;
    display: flex;
    align-items: center;
    background: #fff;
}

.qp-cert-panel-right::before {
    content: "";
    display: block;
    flex-shrink: 0;
    width: 4px;
    height: 48px;
    border-radius: 2px;
    background: var(--tab-color);
    margin-right: 1.6rem;
}

.qp-cert-panel-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--ink);
    margin: 0;
}

@media (max-width: 767.98px) {
    .qp-cert-panel-inner {
        grid-template-columns: 1fr;
    }

    .qp-cert-panel-left {
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding: 1.8rem 1.6rem;
    }

    .qp-cert-panel-right {
        padding: 1.8rem 1.6rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .qp-cert-panel-right::before {
        height: 4px;
        width: 48px;
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* ---- Section 4 ---- */
.qp-process-sec {
    padding: 5rem 0;
    background: var(--bg-soft);
}

.qp-pipeline {
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
    padding: 1rem 0 2rem;
    scrollbar-width: none;
    -webkit-mask: linear-gradient(90deg, #000 0, #000 94%, transparent);
    mask: linear-gradient(90deg, #000 0, #000 94%, transparent);
}

.qp-pipeline::-webkit-scrollbar {
    display: none;
}

.qp-pipe-step {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 80px;
    flex-direction: column;
    position: relative;
}

.qp-pipe-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    z-index: 1;
}

.qp-pipe-ic {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--navy);
    box-shadow: 0 6px 18px rgba(14, 42, 94, .1);
    transition: background .25s, color .25s, border-color .25s, transform .25s;
    cursor: default;
}

.qp-pipe-step:hover .qp-pipe-ic {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
    transform: scale(1.12);
    box-shadow: 0 10px 26px rgba(216, 30, 44, .35);
}

.qp-pipe-num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: .68rem;
    color: var(--red);
    letter-spacing: .5px;
}

.qp-pipe-line {
    flex: 1;
    height: 2px;
    background: var(--line);
    position: absolute;
    top: 29px;
    left: 50%;
    width: 100%;
    z-index: 0;
    overflow: hidden;
}

.qp-pipe-line-fill {
    height: 100%;
    width: 0%;
    background: var(--red);
    transition: width 1.2s ease;
}

.qp-pipe-label {
    font-family: var(--font-head);
    font-size: .75rem;
    font-weight: 600;
    color: var(--muted);
    text-align: center;
    margin-top: .75rem;
    line-height: 1.3;
    max-width: 78px;
    transition: color .25s;
}

.qp-pipe-step:hover .qp-pipe-label {
    color: var(--navy);
}

@media (max-width: 767.98px) {
    .qp-pipeline {
        flex-wrap: wrap;
        overflow-x: visible;
        -webkit-mask: none;
        mask: none;
        gap: 1.5rem 0;
        justify-content: center;
        padding: 1rem 0 1.5rem;
    }

    .qp-pipe-step {
        flex: 0 0 25%;
        min-width: 0;
    }

    .qp-pipe-line {
        display: none;
    }
}

@media (max-width: 479.98px) {
    .qp-pipeline {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: .5rem 0 1rem;
    }

    .qp-pipe-step {
        flex: none;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        padding: .9rem 0;
        border-bottom: 1px solid var(--line);
    }

    .qp-pipe-step:last-child {
        border-bottom: none;
    }

    .qp-pipe-node {
        flex-direction: row;
        align-items: center;
        gap: .5rem;
        flex-shrink: 0;
    }

    .qp-pipe-ic {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }

    .qp-pipe-label {
        margin-top: 0;
        text-align: left;
        max-width: none;
        font-size: .85rem;
    }
}


/* ----------------------------------------------------------
   Quality Policy — signed document download
   Live first-page preview (pdf.js) presented as a paper card,
   beside the document meta and the view / download actions.
   ---------------------------------------------------------- */
.qp-doc-sec {
    padding: 5rem 0;
    background: var(--bg-soft);
    position: relative;
    overflow: hidden;
}

/* soft brand glow behind the paper */
.qp-doc-sec::before {
    content: '';
    position: absolute;
    top: -140px;
    left: -120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(216, 30, 44, .07), transparent 68%);
    pointer-events: none;
}

.qp-doc-grid {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ---- left: the paper ---- */
.qp-doc-paper {
    position: relative;
    perspective: 1400px;
}

/* Stacked sheets peeking out behind the top page.
   z-index:0 is REQUIRED — ::after is generated as the last child, so with
   z-index:auto this opaque white sheet paints on top of .qp-doc-frame and
   hides the rendered PDF completely. */
.qp-doc-paper::before,
.qp-doc-paper::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--line);
    transition: transform .45s cubic-bezier(.2, .8, .3, 1);
}

.qp-doc-paper::before {
    transform: rotate(-3deg) translateY(6px);
}

.qp-doc-paper::after {
    transform: rotate(2deg) translateY(3px);
}

.qp-doc-paper:hover::before {
    transform: rotate(-5.5deg) translateY(10px);
}

.qp-doc-paper:hover::after {
    transform: rotate(3.5deg) translateY(5px);
}

.qp-doc-frame {
    position: relative;
    z-index: 2;
    /* sits above the stacked sheets */
    display: block;
    aspect-ratio: 1 / 1.414;
    /* placeholder shape while loading only */
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(14, 42, 94, .16);
    transition: transform .45s cubic-bezier(.2, .8, .3, 1), box-shadow .45s ease;
}

/* Once the page is rendered the canvas dictates the height, so Letter, A4,
   landscape or any other page size fits exactly with no blank strip. */
.qp-doc-frame.is-loaded {
    aspect-ratio: auto;
}

.qp-doc-paper:hover .qp-doc-frame {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: 0 34px 70px rgba(14, 42, 94, .26);
}

.qp-doc-canvas {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity .5s ease;
}

.qp-doc-frame.is-loaded .qp-doc-canvas {
    opacity: 1;
}

/* spinner while pdf.js renders page 1 */
.qp-doc-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--red);
    font-size: 1.6rem;
}

.qp-doc-loading .bi {
    animation: qpDocSpin 1s linear infinite;
}

@keyframes qpDocSpin {
    to {
        transform: rotate(360deg);
    }
}

.qp-doc-frame.is-loaded .qp-doc-loading,
.qp-doc-frame.is-error .qp-doc-loading {
    display: none;
}

/* fallback mark if the preview can't be rendered */
.qp-doc-frame.is-error::after {
    content: '\F756';
    /* bi-file-earmark-pdf */
    font-family: 'bootstrap-icons';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 4.5rem;
    color: #c9d0dc;
}

/* hover veil with the zoom cue */
.qp-doc-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(14, 42, 94, .55);
    opacity: 0;
    transition: opacity .3s ease;
}

.qp-doc-paper:hover .qp-doc-overlay,
.qp-doc-overlay:focus-visible {
    opacity: 1;
}

.qp-doc-zoom {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    color: var(--navy);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .9rem;
    padding: .65rem 1.2rem;
    border-radius: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
    transform: translateY(8px);
    transition: transform .3s ease;
}

.qp-doc-paper:hover .qp-doc-zoom {
    transform: translateY(0);
}

/* red ribbon across the top-right corner */
.qp-doc-ribbon {
    position: absolute;
    top: 14px;
    right: -34px;
    z-index: 3;
    transform: rotate(45deg);
    background: var(--red);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .68rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: .3rem 2.6rem;
    box-shadow: 0 4px 12px rgba(216, 30, 44, .35);
    pointer-events: none;
}

/* ---- right: copy, meta and actions ---- */
.qp-doc-body .qp-sec-h {
    margin-bottom: .9rem;
}

.qp-doc-lead {
    color: var(--muted);
    line-height: 1.8;
    font-size: 1.02rem;
    margin: 0 0 1.6rem;
}

.qp-doc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-bottom: 1.8rem;
    padding: 0;
    list-style: none;
}

.qp-doc-meta li {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 40px;
    padding: .45rem 1rem;
    font-size: .84rem;
    color: var(--navy);
    font-weight: 500;
}

.qp-doc-meta i {
    color: var(--red);
    font-size: .95rem;
}

.qp-doc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
}

.qp-doc-btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .95rem;
    padding: .85rem 1.7rem;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: transform .18s ease, background .22s ease, box-shadow .22s ease, color .22s ease;
}

.qp-doc-btn-primary {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.qp-doc-btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(216, 30, 44, .3);
}

.qp-doc-btn-ghost {
    background: transparent;
    border-color: var(--navy);
    color: var(--navy);
}

.qp-doc-btn-ghost:hover {
    background: var(--navy);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(14, 42, 94, .24);
}

@media (max-width: 991.98px) {
    .qp-doc-grid {
        grid-template-columns: 1fr;
        gap: 2.6rem;
        justify-items: center;
        text-align: center;
    }

    .qp-doc-paper {
        max-width: 340px;
        width: 100%;
    }

    .qp-doc-meta,
    .qp-doc-actions {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .qp-doc-sec {
        padding: 3.5rem 0;
    }

    .qp-doc-btn {
        width: 100%;
        justify-content: center;
    }
}


/* ==========================================================
   FACILITIES PAGE
   ========================================================== */

/* Prevent any facility-page element from causing horizontal scroll */
.fc-intro-sec,
.fc-ticker-band,
.fc-bento-sec,
.qs {
    overflow-x: hidden;
}

/* ---- Intro ---- */
.fc-intro-sec {
    padding: 5rem 0 5rem;
    background: #fff;
}

.fc-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 480px) 1fr;
    gap: 4rem;
    align-items: center;
}

/* Image stack */
.fc-img-wrap {
    position: relative;
    flex-shrink: 0;
}

.fc-img-main {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 28px 64px rgba(14, 42, 94, .2);
}

.fc-img-main img {
    width: 100%;
    /* height: 380px; */
    height: 100%;
    object-fit: cover;
    display: block;
}

.fc-img-thumb {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    width: 190px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(14, 42, 94, .22);
    border: 4px solid #fff;
}

.fc-img-thumb img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}

.fc-img-dots {
    position: absolute;
    bottom: -3rem;
    left: -2rem;
    width: 110px;
    height: 110px;
    z-index: -1;
    background-image: radial-gradient(var(--line) 1.5px, transparent 1.5px);
    background-size: 14px 14px;
}

/* Intro text */
.fc-intro-lead {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ink);
    margin-bottom: .8rem;
}

.fc-intro-lead strong {
    color: var(--navy);
}

.fc-intro-body {
    font-size: .97rem;
    line-height: 1.75;
    color: var(--muted);
    margin-bottom: 2.2rem;
}

@media (max-width: 1100px) {
    .fc-intro-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .fc-img-thumb {
        right: 1rem;
        bottom: -1.5rem;
    }

    .fc-img-dots {
        display: none;
    }

    .fc-intro-sec {
        padding: 3.5rem 0;
    }
}

@media (max-width: 575.98px) {
    .fc-intro-sec {
        padding: 2.5rem 0;
    }

    .fc-img-main img {
        height: 240px;
    }

    .fc-img-thumb {
        width: 120px;
    }

    .fc-img-thumb img {
        height: 85px;
    }
}

/* ---- Ticker band ---- */
.fc-ticker-band {
    background: var(--navy);
    padding: .9rem 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, .06);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.fc-ticker-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: fcTicker 38s linear infinite;
}

.fc-ticker-track:hover {
    animation-play-state: paused;
}

.fc-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    white-space: nowrap;
    padding: 0 2.2rem;
    font-family: var(--font-head);
    font-size: .78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .55);
    letter-spacing: .3px;
    border-right: 1px solid rgba(255, 255, 255, .1);
    transition: color .2s;
}

.fc-ticker-item:hover {
    color: #fff;
}

.fc-ticker-item .bi {
    color: var(--red);
    font-size: .85rem;
}

@keyframes fcTicker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-33.333%);
    }
}

/* ---- Bento grid ---- */
.fc-bento-sec {
    padding: 5rem 0;
    background: var(--bg-soft);
}

.fc-bento-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.fc-eyebrow {
    display: inline-block;
    color: var(--red);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: .8rem;
    margin-bottom: .5rem;
    font-family: var(--font-head);
}

.fc-sec-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    line-height: 1.15;
    margin: 0;
    color: var(--navy);
}

.fc-hl {
    color: var(--red);
}

.fc-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(160px, auto);
    gap: 1rem;
}

/* Large card: left half, rows 1-2 */
.fc-b-lg {
    grid-column: 1 / 7;
    grid-row: 1 / 3;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    /* background-size: cover; */
    background-size: 103% 100%;
    background-position: center;
    background-image: url('../images/about/efficient_material_handling.webp');
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.8rem;
    box-shadow: 0 8px 22px rgba(14, 42, 94, .1);
    transition: background-image 0s, box-shadow .4s ease;
}

.fc-b-lg:hover {
    box-shadow: 0 24px 50px rgba(14, 42, 94, .28);
}

/* .fc-b-lg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(14, 42, 94, .35);
    pointer-events: none;
} */

.fc-b-lg>* {
    position: relative;
    z-index: 2;
}

.fc-b-lg-ic {
    width: 68px;
    height: 68px;
    display: none;
    place-items: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, .22);
    color: #fff;
    font-size: 2rem;
    margin-bottom: auto;
    transition: background .3s;
}

.fc-b-lg:hover .fc-b-lg-ic {
    background: rgba(255, 255, 255, .32);
}

.fc-b-txt h3 {
    font-family: var(--font-head);
    font-weight: 700;
    color: #fff;
    font-size: 1.45rem;
    margin: 0 0 .45rem;
    line-height: 1.2;
    transition: opacity .18s ease;
}

.fc-b-txt p {
    color: rgba(255, 255, 255, .88);
    font-size: .92rem;
    margin: 0;
    line-height: 1.65;
    transition: opacity .18s ease;
}

/* ---- Small cards ---- */
.fc-b-sm {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    box-shadow: 0 8px 22px rgba(14, 42, 94, .06);
    transition: transform .3s ease, box-shadow .3s ease;
    transform-style: preserve-3d;
    will-change: transform;
    cursor: default;
    height: auto;
}

.fc-b-sm:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(14, 42, 94, .14);
}

.fc-b-sm.fc-tilting {
    transition: transform .08s linear, box-shadow .3s ease;
    z-index: 5;
    box-shadow: 0 30px 55px rgba(14, 42, 94, .22);
}

.fc-b-sm.fc-active {
    box-shadow: 0 0 0 2px var(--red), 0 12px 30px rgba(216, 30, 44, .18);
}

.fc-b-sm::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 1px 1px, rgba(14, 42, 94, .15) 1.4px, transparent 0) 0 0 / 15px 15px;
    -webkit-mask-image: radial-gradient(130px 130px at 100% 0%, #000 10%, transparent 72%);
    mask-image: radial-gradient(130px 130px at 100% 0%, #000 10%, transparent 72%);
    transition: background .3s ease;
}

.fc-b-sm:hover::before,
.fc-b-sm.fc-active::before {
    background: radial-gradient(circle at 1px 1px, rgba(216, 30, 44, .22) 1.4px, transparent 0) 0 0 / 15px 15px;
}

.fc-b-sm::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%),
            rgba(216, 30, 44, .15), rgba(14, 42, 94, .06) 40%, transparent 70%);
    opacity: 0;
    transition: opacity .3s ease;
}

.fc-b-sm:hover::after {
    opacity: 1;
}

.fc-b-sm>* {
    position: relative;
    z-index: 1;
}

.fc-b-sm h3 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 .2rem;
    font-size: .95rem;
    line-height: 1.3;
}

.fc-b-sm p {
    color: var(--muted);
    font-size: .8rem;
    margin: 0;
    line-height: 1.5;
}

.fc-b-ic {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(14, 42, 94, .08);
    color: var(--navy);
    font-size: 1.35rem;
    transition: background .25s, color .25s;
    flex-shrink: 0;
}

.fc-b-sm:hover .fc-b-ic,
.fc-b-sm.fc-active .fc-b-ic {
    background: var(--red);
    color: #fff;
}

.fc-b-sm:nth-child(2),
.fc-b-sm:nth-child(3),
.fc-b-sm:nth-child(4),
.fc-b-sm:nth-child(5) {
    grid-column: span 3;
}

.fc-b-sm:nth-child(6),
.fc-b-sm:nth-child(7),
.fc-b-sm:nth-child(8) {
    grid-column: span 4;
}

.fc-b-sm:nth-child(9),
.fc-b-sm:nth-child(10),
.fc-b-sm:nth-child(11) {
    grid-column: span 4;
}

@media (max-width: 1199.98px) {
    .fc-bento {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: minmax(150px, auto);
    }

    .fc-b-lg {
        grid-column: 1 / 7;
        grid-row: 1 / 2;
        /* min-height: 280px; */
        min-height: 28em;
    }

    .fc-b-sm:nth-child(2),
    .fc-b-sm:nth-child(3),
    .fc-b-sm:nth-child(4) {
        grid-column: span 2;
    }

    .fc-b-sm:nth-child(5),
    .fc-b-sm:nth-child(6),
    .fc-b-sm:nth-child(7) {
        grid-column: span 2;
    }

    .fc-b-sm:nth-child(8),
    .fc-b-sm:nth-child(9),
    .fc-b-sm:nth-child(10) {
        grid-column: span 2;
    }

    .fc-b-sm:nth-child(11) {
        grid-column: span 6;
    }
}

@media (max-width: 767.98px) {
    .fc-bento-sec {
        padding: 3rem 0;
    }

    .fc-bento {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(130px, auto);
        gap: .75rem;
    }

    .fc-b-lg {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
        /* min-height: 220px; */
        min-height: 25em;
    }

    .fc-b-sm:nth-child(n) {
        grid-column: span 1;
    }
}

@media (max-width: 575.98px) {
    .fc-bento-sec {
        padding: 2rem 0;
    }

    .fc-bento {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: .6rem;
    }

    .fc-b-lg {
        grid-column: 1;
        grid-row: 1;
        /* min-height: 200px; */
        min-height: 16em;
    }

    .fc-b-sm {
        min-height: unset;
    }
}

.fc-b-txt {
  display: none;
}

.object_fit_unset {
    object-fit: unset !important;
}

/* ==========================================================
   INFRASTRUCTURE PAGE  (infrastructure.php)
   ========================================================== */

/* ---- Intro + capability deck ---- */
.if-intro-sec {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
}

/* soft brand glows behind the content */
.if-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.if-glow-a {
    top: -180px;
    left: -140px;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(216, 30, 44, .08), transparent 68%);
}

.if-glow-b {
    right: -180px;
    bottom: -200px;
    width: 540px;
    height: 540px;
    background: radial-gradient(circle, rgba(14, 42, 94, .09), transparent 68%);
}

.if-intro-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: center;
}

.if-intro-lead {
    color: var(--ink);
    font-size: 1.06rem;
    line-height: 1.8;
    margin: 0 0 1rem;
}

.if-intro-body {
    color: var(--muted);
    line-height: 1.85;
    margin: 0;
}

.if-intro-cta {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-top: 1.9rem;
}

.if-btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .95rem;
    padding: .85rem 1.65rem;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: transform .18s ease, background .22s ease, color .22s ease, box-shadow .22s ease;
}

.if-btn-primary {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.if-btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(216, 30, 44, .3);
}

.if-btn-ghost {
    background: transparent;
    border-color: var(--navy);
    color: var(--navy);
}

.if-btn-ghost:hover {
    background: var(--navy);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(14, 42, 94, .24);
}

/* ---- the dark capability deck ---- */
/* Shop-floor photo behind a heavy navy wash. The gradient is listed first so it
   paints ON TOP of the image — that wash is what keeps the white text legible.
   The photo comes from --if-deck-bg (set inline in infrastructure.php); if that
   variable is ever missing the gradient alone still renders a solid navy panel. */
.if-deck {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 2.2rem 2rem 1.5rem;
    background-color: var(--navy-deep);
    background-image:
        linear-gradient(155deg, rgba(14, 42, 94, .72) 0%, rgba(10, 31, 69, .66) 55%, rgba(6, 19, 45, .78) 100%),
        var(--if-deck-bg, none);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    box-shadow: 0 30px 70px rgba(10, 31, 69, .32);
}

/* lift the content above the photo. The ribbon is excluded: it is absolutely
   positioned, and this rule would otherwise out-specify it and drop it back
   into the flow. */
.if-deck>*:not(.if-deck-ribbon) {
    position: relative;
    z-index: 1;
}

.if-deck-ribbon {
    position: absolute;
    top: 20px;
    right: -40px;
    z-index: 3;
    transform: rotate(45deg);
    background: var(--red);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .68rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: .32rem 3rem;
    box-shadow: 0 4px 14px rgba(216, 30, 44, .4);
    pointer-events: none;
}

/* keeps the title clear of the corner ribbon */
.if-deck-head {
    padding-right: 6.5rem;
}

.if-deck-eye {
    display: block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .72rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #ff8a93;
}

.if-deck-h {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    margin: .25rem 0 1.5rem;
}

.if-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .9rem;
}

.if-stat {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    padding: 1.15rem 1.1rem 1.05rem;
    /* slightly stronger than before: the wash behind is now lighter, so the
       tiles need a touch more presence to stay separated from the photo */
    background: rgba(10, 26, 56, .42);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(2px);
    transition: transform .28s ease, background .28s ease, border-color .28s ease;
}

.if-stat::after {
    /* sheen that sweeps across on hover */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .13) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform .7s ease;
    pointer-events: none;
}

.if-stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, .11);
    border-color: rgba(255, 138, 147, .5);
}

.if-stat:hover::after {
    transform: translateX(120%);
}

.if-stat-ic {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(216, 30, 44, .9);
    color: #fff;
    font-size: .95rem;
    margin-bottom: .7rem;
    transition: transform .28s ease;
}

.if-stat:hover .if-stat-ic {
    transform: scale(1.08) rotate(-4deg);
}

.if-stat-num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(1.6rem, 2.8vw, 2.1rem);
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.if-stat-lbl {
    color: rgba(255, 255, 255, .72);
    font-size: .82rem;
    margin-top: .4rem;
    line-height: 1.45;
}

/* ---- in-house production chain ---- */
.if-chain {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.if-chain-lbl {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .74rem;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #ff8a93;
}

/* the visible window: clips and fades the strip that scrolls inside it */
.if-chain-view {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 90%, transparent);
}

.if-chain-track {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.if-chain-view:hover .if-chain-track {
    animation-play-state: paused;
}

.if-chain-step {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: .35rem .85rem;
    border-radius: 40px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .86);
    font-size: .78rem;
    font-weight: 500;
}

.if-chain-step::after {
    content: '\F285';
    /* bi-chevron-right */
    font-family: 'bootstrap-icons';
    font-size: .62rem;
    margin-left: .5rem;
    color: rgba(255, 138, 147, .8);
}

/* the strip drifts continuously; duplicated in markup so it loops seamlessly */
.if-chain-track {
    animation: ifChain 26s linear infinite;
    width: max-content;
}

@keyframes ifChain {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .if-chain-track {
        animation: none;
    }
}

/* ---- Shared section head ---- */
.if-sec-head {
    max-width: 780px;
    margin-bottom: 2.5rem;
}

.if-sec-sub {
    color: var(--muted);
    line-height: 1.8;
    margin: .8rem 0 0;
}

/* ---- Doraha sheds ---- */
.if-shed-sec {
    padding: 4.5rem 0;
    background: var(--bg-soft);
}

/* Shed selector — a progress rail, same visual language as the
   "Quality Assurance Across Every Process" pipeline. */
/* Sticks under the (sticky, 66px when shrunk) main navbar while you scroll
   the sheds, so the progress indicator is always in view. */
.if-rail {
    position: sticky;
    top: 66px;
    z-index: 10;
    display: flex;
    align-items: flex-start;
    /* margin: 0 0 2.6rem; */
    padding-top: 1.1rem;
    padding-bottom: .6rem;
    background: var(--bg-soft);
    /* box-shadow: 0 12px 18px -10px rgba(14, 42, 94, .12); */
}

/* the connecting line, drawn between the first and last node centres */
.if-rail-track {
    position: absolute;
    top: calc(1.1rem + 31px);
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--line);
    z-index: 0;
}

.if-rail-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--red);
    transition: width .55s cubic-bezier(.2, .8, .3, 1);
}

.if-rail-step {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.if-rail-node {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--line);
    color: var(--navy);
    font-size: 1.35rem;
    box-shadow: 0 6px 18px rgba(14, 42, 94, .1);
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.if-rail-step:hover .if-rail-node {
    border-color: var(--red);
    color: var(--red);
    transform: scale(1.08);
}

.if-rail-num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: .68rem;
    letter-spacing: .5px;
    color: var(--red);
    margin-top: .5rem;
}

.if-rail-lbl {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .88rem;
    color: var(--muted);
    transition: color .25s ease;
}

/* nodes already passed keep a red outline so the line reads as progress */
.if-rail-step.is-past .if-rail-node {
    border-color: var(--red);
    color: var(--red);
}

.if-rail-step.is-active .if-rail-node {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    transform: scale(1.12);
    box-shadow: 0 12px 28px rgba(216, 30, 44, .38);
}

.if-rail-step.is-active .if-rail-lbl {
    color: var(--navy);
    font-weight: 700;
}

/* Image and copy side by side. Every shed stays on the page — the rail
   scroll-spies them rather than swapping one in. */
.if-shed-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 2.8rem;
    align-items: center;
    padding: 2.2rem 0;
    scroll-margin-top: 210px;
    /* clears the sticky nav + rail */
    transition: opacity .4s ease;
}

/* Dimming is gated on a class the script adds, so if JS never runs every shed
   stays fully legible instead of being stuck at reduced opacity. */
.if-spy-on .if-shed-panel {
    opacity: .55;
}

/* the shed nearest the middle of the screen comes fully forward */
.if-spy-on .if-shed-panel.is-active {
  opacity: 1;
  box-shadow: 0 18px 44px rgba(14, 42, 94, .16);
  border-radius: 20px;
}

.if-shed-panel+.if-shed-panel {
    border-top: 1px solid var(--line);
}

@keyframes ifFade {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Stage — the infographic presented as a sheet with two more stacked behind it,
   borrowing the paper treatment from the Quality Policy download card. */
/* The shed graphics are 1536x1024 (3:2), so at full container width they render
   ~760px tall and overflow the viewport. Capping the width in vh units ties the
   rendered HEIGHT to the viewport: 90vh wide / 1.5 = 60vh tall, whatever the
   screen. The card still hugs the image, so no white bands appear beside it. */
.if-stage {
    position: relative;
    max-width: min(100%, 90vh);
    margin-left: auto;
    margin-right: auto;
}

/* the shed infographic — shown whole, never cropped */
.if-shed-fig {
    position: relative;
    z-index: 2;
    margin: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    /* box-shadow: 0 18px 44px rgba(14, 42, 94, .16); */
    transition: transform .45s cubic-bezier(.2, .8, .3, 1), box-shadow .45s ease;
}

.if-stage:hover .if-shed-fig {
    transform: translateY(-4px);
    box-shadow: 0 30px 64px rgba(14, 42, 94, .24);
}

.if-shed-fig img {
    display: block;
    width: 100%;
    height: auto;
}

.if-zoom {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(14, 42, 94, .9);
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: .6rem 1.1rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .84rem;
    cursor: pointer;
    transition: background .22s ease, transform .18s ease;
}

.if-zoom:hover {
    background: var(--red);
    transform: translateY(-2px);
}

.if-shed-body {
    margin-top: 0;
}

.if-shed-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.45rem;
    color: var(--navy);
    margin: 0 0 .5rem;
}

.if-shed-lead {
    color: var(--muted);
    line-height: 1.8;
    max-width: 820px;
    margin: 0 0 1.3rem;
}

.if-cap-list {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.if-cap-list li {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 40px;
    padding: .5rem 1.05rem;
    font-size: .87rem;
    color: var(--navy);
    font-weight: 500;
}

.if-cap-list i {
    color: var(--red);
}

/* ---- Shop-floor gallery ---- */
.if-gal-sec {
    padding: 4.5rem 0 5rem;
}

/* Bento mosaic: 3 columns on a repeating 4-tile block —
   tall (2 rows) · normal · normal · wide (2 columns).
   12 photos divide into exactly 3 blocks. */
.if-gal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 232px;
    gap: 1rem;
}

.if-gal-item:nth-child(4n + 1) {
    grid-row: span 2;
}

.if-gal-item:nth-child(4n) {
    grid-column: span 2;
}

.if-gal-item {
    position: relative;
    display: block;
    padding: 0;
    border: none;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-soft);
    box-shadow: 0 2px 8px rgba(20, 30, 50, .07);
    transition: box-shadow .3s ease, transform .3s ease;
}

.if-gal-item:hover,
.if-gal-item:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(14, 42, 94, .2);
}

.if-gal-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2, .8, .3, 1);
}

.if-gal-item:hover .if-gal-img {
    transform: scale(1.06);
}

.if-gal-zoom {
    position: absolute;
    top: .8rem;
    right: .8rem;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--navy);
    font-size: .9rem;
    opacity: 0;
    transform: scale(.8);
    transition: opacity .25s ease, transform .25s ease;
}

.if-gal-item:hover .if-gal-zoom,
.if-gal-item:focus-visible .if-gal-zoom {
    opacity: 1;
    transform: scale(1);
}

/* ---- Lightbox ---- */
body.if-lb-open {
    overflow: hidden;
}

.if-lb {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 3.5rem 1rem;
    background: rgba(8, 18, 40, .93);
    animation: ifFade .25s ease both;
}

.if-lb[hidden] {
    display: none;
}

/* Fixed-size stage: the frame never resizes with the picture, so portrait and
   landscape shots render at the SAME height and nothing around them shifts. */
.if-lb-fig {
    margin: 0;
    width: min(1200px, 92vw);
    height: 84vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .9rem;
}

.if-lb-stage {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Every image gets the SAME explicit height, with the width following its own
   aspect ratio — so portrait and landscape shots line up exactly. The height is
   in viewport units on purpose: a percentage would resolve against an
   auto-sized track and collapse back to the image's natural size. */
.if-lb-fig img {
    height: calc(84vh - 3.4rem);
    /* figure height minus caption + gap */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}

/* position counter, e.g. "5 / 12" */
.if-lb-count {
    flex: 0 0 auto;
    min-height: 2.5rem;
    /* reserved height keeps the image from shifting */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .1rem;
    padding: .4rem 1.05rem;
    border-radius: 40px;
    background: rgba(255, 255, 255, .12);
    color: #eef3fb;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .92rem;
    letter-spacing: .6px;
    font-variant-numeric: tabular-nums;
    /* digits keep an even width */
    align-self: center;
}

.if-lb-close,
.if-lb-nav {
    position: absolute;
    z-index: 2;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    transition: background .22s ease, transform .18s ease;
}

.if-lb-close:hover,
.if-lb-nav:hover {
    background: var(--red);
}

.if-lb-close {
    top: 1.2rem;
    right: 1.2rem;
}

.if-lb-close:hover {
    transform: scale(1.08);
}

/* Pinned to the viewport edges, not to the picture — so the arrows stay
   in exactly the same place whatever the image's shape. */
.if-lb-prev,
.if-lb-next {
    top: 50%;
    transform: translateY(-50%);
}

.if-lb-prev {
    left: 1.4rem;
}

.if-lb-next {
    right: 1.4rem;
}

.if-lb-prev:hover,
.if-lb-next:hover {
    transform: translateY(-50%) scale(1.08);
}

.if-lb-nav[hidden] {
    display: none;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .if-intro-grid {
        grid-template-columns: 1fr;
        gap: 2.4rem;
    }

    .if-shed-sec,
    .if-intro-sec,
    .if-gal-sec {
        padding: 3.2rem 0;
    }

    /* not enough room for two columns — stack the shed image over its copy */
    .if-shed-panel {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    /* 2-up mosaic: every 3rd tile runs full width to keep the rhythm */
    .if-gal-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .if-gal-item:nth-child(4n + 1),
    .if-gal-item:nth-child(4n) {
        grid-row: auto;
        grid-column: auto;
    }

    .if-gal-item:nth-child(3n + 1) {
        grid-column: span 2;
    }
}

@media (max-width: 575.98px) {
    .if-stats {
        grid-template-columns: 1fr;
    }

    .if-deck {
        padding: 1.8rem 1.3rem 1.2rem;
    }

    .if-btn {
        width: 100%;
        justify-content: center;
    }

    .if-chain {
        flex-direction: column;
        align-items: flex-start;
        gap: .7rem;
    }

    .if-chain-track {
        max-width: 100%;
    }

    /* single column — every tile equal, no spans */
    .if-gal-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 230px;
    }

    .if-gal-item:nth-child(4n + 1),
    .if-gal-item:nth-child(4n),
    .if-gal-item:nth-child(3n + 1) {
        grid-row: auto;
        grid-column: auto;
    }

    /* smaller nodes so all four still fit across a phone */
    .if-rail-node {
        width: 48px;
        height: 48px;
        font-size: 1.05rem;
    }

    .if-rail-track {
        top: calc(.5rem + 24px);
    }

    .if-rail-lbl {
        font-size: .76rem;
    }

    .if-rail-num {
        margin-top: .35rem;
    }

    .if-zoom span {
        display: none;
    }

    .if-zoom {
        padding: .6rem .75rem;
    }

    .if-lb {
        padding: 3.5rem .5rem;
    }

    .if-lb-fig {
        width: 100%;
        height: 80vh;
    }

    /* On a phone a landscape shot can't be full height without exceeding the
       width, so let the box hug the picture here instead of leaving a tall
       empty gap. The arrows are pinned absolutely, so they still never move. */
    .if-lb-fig img {
        height: auto;
        max-height: calc(80vh - 3.4rem);
        max-width: calc(100% - 5.5rem);
    }

    .if-lb-close,
    .if-lb-nav {
        width: 40px;
        height: 40px;
    }

    /* keep the arrows clear of the picture on small screens */
    .if-lb-prev {
        left: .4rem;
    }

    .if-lb-next {
        right: .4rem;
    }

    .if-lb-fig img {
        max-width: calc(100% - 5.5rem);
    }
}
