/* ========================
   Global Base Styles
======================== */
html {
    font-size: 14px;
    height: 100%;
    position: relative;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    height: 100%;
    overflow-x: hidden;
}


/* ========================
   Layout Structure
======================== */
.left-sidebar-wrapper {
    display: flex;
    flex-direction: row;
    margin-left: 80px; /* permanently accounts for .sidebar */
    height: 100vh;
}

.sidebar {
    width: 80px;
    height: 100vh;
    background-color: #031258;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1300;
}

#sidebarContentWrapper {
    flex-shrink: 0;
    background-color: #031258;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 400px;
}

.sidebar-panel {
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms ease-in-out, visibility 200ms ease-in-out;
    position: relative;
    z-index: 1;
}

    .sidebar-panel.visible {
        opacity: 1;
        visibility: visible;
    }

.sidebar-icons {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

#sidebarLogo {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.sidebar-expanded-content {
    flex: 1 1 auto;
    overflow-y: auto;
    height: 100%;
}

#sidebarFooter {
    flex: 0 0 20%;
}

.sidebar-expanded .submenu-panel ul.nav {
    gap: 0.25rem;
}

/* ========================
   Sidebar Panels
======================== */
.sidebar-expand {
    position: fixed;
    top: 0;
    left: 80px;
    width: 320px;
    height: 100vh;
    background-color: #031258;
    flex-grow: 1;
    overflow-y: auto;
    z-index: 1200;
    display: none;
}

    .sidebar-expand input[type="search"] {
        width: 90%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

.menu-panel {
    padding-top: 2rem;
}

@media (max-width: 767.98px) {
    .menu-panel {
        padding-top: 0.25rem;
        padding-bottom: 0;
    }

    #sidebarContentWrapper .menu-panel ul.nav {
        margin-top: 0 !important;
        padding-left: 0 !important;
    }

    #sidebarContentWrapper .menu-panel.submenu-panel ul.nav {
        margin-top: 0.75rem !important;
        padding-left: 0 !important;
    }

    #sidebarContentWrapper .main-menu-item > .nav-link,
    #sidebarContentWrapper .main-menu-item > span.nav-link {
        padding-left: 1.5rem !important;
    }

}

    .menu-panel .arrow {
        float: right;
        font-size: 1.2rem;
        color: #fff;
    }

.back-btn {
    text-decoration: none !important;
    text-align: left;
}


/* ========================
   Navigation & Content
======================== */
.top-bar {
    position: static;
    top: 0;
    left: 80px;
    right: 0;
    height: 60px;
    border-bottom: 1px solid #ddd;
    z-index: 1000;
}

.content {
    flex-grow: 1;
    min-width: 0;
    padding: 0;
    margin: 0;
}

.right-nav {
    position: absolute;
    top: 0.75rem;
    right: 1.5rem;
    z-index: 1100;
}

    .right-nav #globalMenu {
        width: 320px;
        display: none;
        overflow-y: auto;
        background-color: #031258 !important;
    }

    .right-nav .btn-link {
        text-decoration: none !important;
        background: rgba(255, 255, 255, 0.92);
        border-radius: 50%;
        width: 2.5rem;
        height: 2.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
        padding: 0 !important;
        transition: background 0.15s ease, box-shadow 0.15s ease;
    }
    .right-nav .btn-link:hover {
        background: rgba(255, 255, 255, 1);
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.24);
    }

.global-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background-color: #031258;
    color: white;
    z-index: 2000;
    display: none;
    padding: 1.5rem;
    overflow-y: auto;
}


/* ========================
   Footer Styling
======================== */
.footer-main {
    background-color: #031258;
    font-size: 14px;
}

/* Desktop: offset footer by sidebar icon strip width so it's not hidden under it */
@media (min-width: 768px) {
    .footer-main {
        margin-left: 80px;
    }
}

    .footer-main h5 {
        font-weight: bold;
        margin-bottom: 1rem;
    }

.footer-link {
    color: #ffffff;
    text-decoration: none;
}

    .footer-link:hover {
        text-decoration: underline;
    }

.footer-social-icon {
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
}


    .footer-social-icon:hover {
        opacity: 0.7;
    }

.footer-secondary-link {
    font-size: 13px;
}

.sidebar-footer-links {
    margin-top: auto;
    padding-bottom: 1.5rem;
}

    .sidebar-footer-links .nav-link {
        padding: 0.25rem 0;
        margin: 0;
        font-size: 0.9rem;
        text-align: left;
    }


/* ========================
   UI & Accessibility
======================== */
#contactLink {
    text-decoration: none !important;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.sidebar-icons .btn-link:focus,
.sidebar-icons .btn-link:active,
.sidebar-icons .btn-link:active:focus {
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}

.sidebar-icons .btn-link,
.sidebar-icons .btn-link:hover,
.sidebar-icons .btn-link:active,
.sidebar-icons .btn-link:focus {
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.sidebar-icons-column {
    background-color: #031258;
}

.sidebar-icons #closeSearch,
.sidebar-icons #closeNav {
    color: #ffffff !important;
}

.sidebar-expand .nav-link {
    cursor: pointer;
}

.btn-link {
    box-shadow: none !important;
}

.sidebar .nav-link,
.footer-links .nav-link {
    text-align: left;
    color: #ffffff;
}

#navMenu,
#searchMenu,
#connectMenu
.menu-panel,
.submenu-panel {
    background-color: #031258 !important;
}

@keyframes easyboardPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0,255,255,0.3);
    }

    70% {
        box-shadow: 0 0 0 30px rgba(0,255,255,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0,255,255,0);
    }
}

.animate-pulse-easyboard {
    animation: easyboardPulse 3s ease-out;
    border-radius: 12px;
    padding: 20px;
}


.scroll-left,
.scroll-right {
    z-index: 10;
    width: 40px;
    height: 40px;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
    background-color: white;
}

.scroll-left {
    left: -20px; /* Push it outside the image column */
}

.scroll-right {
    right: -20px; /* Likewise */
}


/* ========================
   Corporate Home Responsive
======================== */
.home-section-title {
    line-height: 1.15;
}

.home-hero-carousel,
.home-hero-carousel .carousel-inner {
    overflow: hidden;
}

.home-hero-slide {
    height: clamp(34rem, 86svh, 52rem);
    min-height: 34rem;
    overflow: hidden;
}

    .home-hero-slide > .container-fluid {
        min-height: inherit;
        padding: 4rem 1.5rem;
        gap: 1.5rem;
    }

    .home-hero-slide > .container-fluid > .row {
        min-width: 0;
        gap: 1.5rem 0;
    }

    .home-hero-slide > .container-fluid > .row > [class*="col-"] {
        min-width: 0;
    }

.home-hero-overlay {
    padding: 1.25rem;
}

.home-hero-content {
    width: 100%;
    max-width: min(720px, calc(100vw - 5rem));
    padding-inline: 1rem;
}

.home-hero-logo-badge {
    width: clamp(14rem, 32vw, 28rem);
    height: clamp(14rem, 32vw, 28rem);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.18);
    background-color: #B6B4B6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero-logo-img {
    max-width: 100%;
    height: 100%;
    width: auto;
    object-fit: contain;
}

.home-hero-slide .home-hero-title {
    font-size: clamp(2.25rem, 1.5rem + 2.5vw, 3.75rem);
    line-height: 1.05;
    text-wrap: balance;
    word-break: break-word;
    margin-bottom: 0.85rem;
}

.home-hero-slide .home-hero-subtitle {
    font-size: clamp(1.05rem, 0.8rem + 0.9vw, 1.5rem);
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.home-hero-cta {
    display: inline-block;
    background-color: #031258;
    color: #ffffff !important;
    padding: 0.7rem 1.4rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.55rem;
    border: 0;
    transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

    .home-hero-cta:hover,
    .home-hero-cta:focus {
        background-color: #051d8a;
        color: #ffffff !important;
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(3, 18, 88, 0.25);
    }

.home-cta-section .home-section-title {
    font-size: clamp(1.6rem, 1rem + 2.2vw, 2.4rem);
}

.home-cta-section .lead {
    font-size: clamp(1rem, 0.85rem + 0.6vw, 1.2rem);
    max-width: 56rem;
    margin-inline: auto;
}

.home-cta-section .btn {
    border-radius: 0.55rem;
    padding: 0.7rem 1.4rem;
    font-weight: 600;
}

.home-why-section {
    min-height: clamp(320px, 60svh, 640px);
}

    .home-why-section .home-section-title {
        font-size: clamp(1.6rem, 1rem + 2.4vw, 2.6rem);
    }

    .home-why-section .lead {
        font-size: clamp(1rem, 0.85rem + 0.6vw, 1.2rem);
        max-width: 56rem;
        margin-inline: auto;
    }

    .home-why-section .btn {
        border-radius: 0.55rem;
        padding: 0.7rem 1.4rem;
        font-weight: 600;
    }

.home-why-overlay {
    min-height: inherit;
    display: flex;
    align-items: center;
}

.home-work-section .home-section-title {
    font-size: clamp(1.5rem, 1rem + 1.8vw, 2.2rem);
}

.home-work-section .lead {
    font-size: clamp(1rem, 0.85rem + 0.6vw, 1.15rem);
}

.home-work-image img {
    border-radius: 0.9rem;
    box-shadow: 0 12px 28px rgba(3, 18, 88, 0.12);
}

.product-carousel-section,
.materials-carousel-section {
    width: 100%;
}

.product-carousel-section {
    overflow-x: clip;
}

    .product-carousel-section .row.flex-nowrap {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .product-carousel-section .row.flex-nowrap::-webkit-scrollbar {
        display: none;
    }

    .product-carousel-section .row.flex-nowrap > [class*="col-"] {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        scroll-snap-align: start;
    }

    .product-carousel-section .card {
        border: 0;
        border-radius: 0.85rem;
        overflow: hidden;
    }

    .product-carousel-section .card-img-top {
        width: 100%;
        height: clamp(11rem, 42vw, 15rem);
        object-fit: contain;
        background-color: #ffffff;
        padding: 0.75rem;
    }

    .product-carousel-section .scroll-left,
    .product-carousel-section .scroll-right {
        border: 0;
        border-radius: 50%;
        opacity: 0.92;
    }

    .product-carousel-section .scroll-left {
        left: 0.5rem !important;
    }

    .product-carousel-section .scroll-right {
        right: 0.5rem !important;
    }

.materials-carousel-track {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    justify-content: flex-start !important;
    gap: 1rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

    .materials-carousel-track > [class*="col-"] {
        flex: 0 0 42% !important;
        max-width: 42% !important;
        scroll-snap-align: center;
    }

    .materials-carousel-track img {
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }

.home-work-image img {
    width: 100%;
    object-fit: cover;
}

@media (min-width: 576px) {
    .product-carousel-section .row.flex-nowrap > [class*="col-"] {
        flex-basis: 48% !important;
        max-width: 48% !important;
    }

    .materials-carousel-track > [class*="col-"] {
        flex-basis: 28% !important;
        max-width: 28% !important;
    }
}

@media (min-width: 768px) {
    .product-carousel-section .row.flex-nowrap > [class*="col-"] {
        flex-basis: 33.333333% !important;
        max-width: 33.333333% !important;
    }

    .materials-carousel-track > [class*="col-"] {
        flex-basis: 14.285rem !important;
        max-width: 14.285rem !important;
    }

    .product-carousel-section .scroll-left {
        left: -0.25rem !important;
    }

    .product-carousel-section .scroll-right {
        right: -0.25rem !important;
    }
}

@media (max-width: 991.98px) {
    .home-hero-slide {
        height: clamp(400px, 82svh, 620px);
    }

        .home-hero-slide > .container-fluid {
            padding: 4rem 1.25rem;
            gap: 1.25rem;
        }

    .home-hero-copy {
        align-items: center !important;
        text-align: center !important;
    }

    .home-hero-slide .home-hero-title {
        font-size: clamp(2rem, 4.5vw + 0.5rem, 2.75rem);
    }

    .home-hero-slide .home-hero-subtitle {
        font-size: clamp(1.05rem, 1.5vw + 0.7rem, 1.25rem);
    }

    .product-carousel-nav {
        text-align: center;
    }

    .product-carousel-tabs {
        flex-direction: row !important;
        flex-wrap: nowrap;
        gap: 0.5rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

        .product-carousel-tabs .nav-item {
            flex: 0 0 auto;
        }

        .product-carousel-tabs .nav-link {
            white-space: nowrap;
            padding: 0.45rem 0.75rem !important;
            border: 1px solid rgba(3, 18, 88, 0.18);
            border-radius: 999px;
        }

            .product-carousel-tabs .nav-link.active {
                background-color: #031258;
                color: #ffffff !important;
            }

    .product-carousel-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .home-work-copy {
        text-align: center;
    }

    .home-work-copy .btn {
        display: inline-block;
    }

    .home-cta-section .container,
    .home-why-section .container {
        max-width: 100%;
        padding-inline: 1.25rem;
    }
}

/* Accordion panels — JS controls visibility */
.home-accordion-panel {
    display: none;
    margin-left: 0.5rem;
    margin-top: 0.25rem;
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .home-accordion-link {
        font-size: 1rem !important;
        padding-top: 0.6rem !important;
        padding-bottom: 0.6rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Chevron toggle icons — hidden on desktop, shown on mobile */
.home-mobile-icon-plus,
.home-mobile-icon-minus {
    display: none;
    flex-shrink: 0;
}


/* Main menu category icons — always visible, explicit BI font */
.main-menu-icon {
    font-family: 'bootstrap-icons' !important;
    font-style: normal;
    font-size: 1.2rem;
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
    opacity: 0.9;
    flex-shrink: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Icon+text grouping label */
.main-nav-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

/* Mobile Top Nav (homepage only) */
.home-mobile-topnav {
    display: none;
    background-color: #031258;
    height: 70px;
    padding: 0.5rem 1rem;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1100;
}

.home-mobile-topnav span {
    font-size: 1rem;
    letter-spacing: 0.03em;
}

.home-mobile-topnav .btn-link {
    padding: 0.35rem !important;
}

.home-mobile-topnav .btn-link i {
    font-size: 1.6rem;
    line-height: 1;
    display: block;
}

.home-mobile-topnav #mobileNavToggle i {
    font-size: 1.8rem;
}

.home-mobile-topnav .d-flex.gap-3 {
    gap: 0.75rem !important;
}

.home-mobile-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: contain;
    background-color: #ffffff;
}

@media (max-width: 767.98px) {
    .home-mobile-topnav {
        display: flex;
    }

    .sidebar {
        display: none !important;
    }

    .left-sidebar-wrapper {
        margin-left: 0;
    }

    #sidebarContentWrapper {
        left: 0 !important;
        top: 70px !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        width: 100% !important;
        background-color: #031258 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-radius: 0 0 1.25rem 1.25rem !important;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65) !important;
        padding-bottom: 0 !important;
    }

    /* Mobile menu backdrop */
    #mobileMenuBackdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        z-index: 1049;
    }

    /* === Mobile Sidebar: Modern Navigation Design === */

    /* Main menu items — full-width separator + transparent left accent ready */
    #sidebarContentWrapper .main-menu-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
        border-left: 3px solid transparent !important;
        transition: border-left-color 0.2s ease;
    }

    #sidebarContentWrapper .main-menu-item:first-child {
        border-top: none !important;
    }

    #sidebarContentWrapper .main-menu-item:last-child {
        border-bottom: none !important;
    }

    /* Cyan left accent on the currently expanded item */
    #sidebarContentWrapper .main-menu-item:has(.home-accordion-panel[style*="block"]) {
        border-left-color: #4aaee8 !important;
    }

    /* Parent nav-link — flex row: text left, toggle icon right */
    #sidebarContentWrapper .main-menu-item > span.nav-link {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        padding: 0.9rem 1.25rem 0.9rem 1rem !important;
        letter-spacing: 0.01em;
    }


    /* Chevron toggle icons — visible on mobile (no !important so d-none can hide them) */
    .home-mobile-icon-plus,
    .home-mobile-icon-minus {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2rem;
        height: 2rem;
        font-size: 1.75rem;
        font-weight: 300;
        flex-shrink: 0;
    }

    /* Hide desktop › arrow on mobile */
    #sidebarContentWrapper .arrow {
        display: none !important;
    }

    /* Menu icon sizing override for mobile */
    #sidebarContentWrapper .main-menu-icon {
        font-size: 1.2rem;
        opacity: 0.9;
    }

    /* Sub-items container — subtle recessed background for visual depth */
    #sidebarContentWrapper .home-accordion-panel {
        background: rgba(0, 0, 0, 0.22);
        padding: 0.3rem 0 0 0;
    }

    /* Remove ul padding so link's own padding controls indentation */
    #sidebarContentWrapper .home-accordion-panel > ul.nav {
        padding-left: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Sub-item links — dimmer, smaller, indented for hierarchy */
    #sidebarContentWrapper .home-accordion-panel .home-accordion-link {
        font-size: 1rem !important;
        padding: 0.5rem 1rem 0.5rem 2.1rem !important;
        color: rgba(255, 255, 255, 0.75) !important;
        position: relative;
        display: block !important;
        border: none !important;
    }

    /* Bullet dot indicator before each sub-item */
    #sidebarContentWrapper .home-accordion-panel .home-accordion-link::before {
        content: "•";
        position: absolute;
        left: 1.05rem;
        top: 50%;
        transform: translateY(-50%);
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.7rem;
        line-height: 1;
    }

    /* General sidebar nav-link sizing */
    #sidebarContentWrapper .nav-link,
    #sidebarContentWrapper .footer-link,
    #sidebarContentWrapper .submenu-panel .fw-bold {
        font-size: 1rem !important;
        padding-top: 0.55rem !important;
        padding-bottom: 0.55rem !important;
    }

    /* Slide panel (desktop sub-menu) item separators */
    #sidebarContentWrapper .submenu-panel ul.nav li.nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
        padding-top: 0.2rem;
        padding-bottom: 0.2rem;
    }

    #sidebarContentWrapper .submenu-panel ul.nav li.nav-item:first-child {
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    #sidebarContentWrapper .back-btn {
        font-size: 1rem !important;
        padding-top: 0.5rem !important;
    }

    #sidebarContentWrapper .menu-panel ul.nav {
        gap: 0;
    }

    /* Hero slider — mobile readability */
    .home-hero-overlay {
        background-color: rgba(0, 0, 0, 0.68) !important;
    }

    .home-hero-slide .home-hero-title {
        font-size: clamp(1.75rem, 7vw, 2.6rem) !important;
        text-shadow: 0 3px 18px rgba(0, 0, 0, 0.7);
        line-height: 1.15 !important;
        letter-spacing: -0.01em;
        margin-bottom: 0.75rem !important;
    }

    .home-hero-slide .home-hero-subtitle {
        font-size: clamp(0.95rem, 3.5vw, 1.2rem) !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
        line-height: 1.45 !important;
        margin-bottom: 0.75rem !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-wrap: balance;
    }

    .home-hero-cta {
        font-size: 1rem !important;
        padding: 0.65rem 1.5rem !important;
        font-weight: 700 !important;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45) !important;
        border-radius: 0.55rem !important;
        letter-spacing: 0.01em !important;
    }

    .home-hero-content {
        padding-inline: 1rem !important;
    }
}

@media (max-width: 575.98px) {
    .home-cta-section {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .home-products-section,
    .home-materials-section,
    .home-work-section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .home-hero-slide {
        height: clamp(420px, 90svh, 600px);
        min-height: 420px;
    }

        .home-hero-slide > .container-fluid {
            padding: 3.5rem 1rem 3rem;
            gap: 1rem;
        }

    .home-hero-overlay {
        padding: 1rem;
    }

    .home-hero-logo-badge {
        width: clamp(10rem, 56vw, 15rem);
        height: clamp(10rem, 56vw, 15rem);
    }

    .home-hero-content {
        max-width: 100%;
        padding-inline: 0.75rem;
    }

    .home-hero-slide .home-hero-title {
        margin-bottom: 0.65rem;
    }

    .home-hero-slide .home-hero-subtitle {
        font-size: clamp(1rem, 4.4vw, 1.15rem);
        margin-bottom: 0.5rem;
    }

    .home-cta-section .lead,
    .home-why-section .lead,
    .home-work-section .lead {
        font-size: 1rem !important;
    }

    .home-hero-cta {
        width: auto;
        max-width: 100%;
    }

    .home-cta-section .home-section-title,
    .home-why-section .home-section-title,
    .home-work-section .home-section-title {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
        line-height: 1.2;
    }

    .home-why-section .container > .p-4 {
        padding: 1.5rem 1rem !important;
    }

    .home-work-section .row {
        row-gap: 1.5rem;
    }

    .home-work-image img {
        border-radius: 0.7rem;
    }

    .home-cta-section .btn,
    .home-why-section .btn,
    .home-work-section .btn {
        padding: 0.65rem 1.5rem !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.01em !important;
    }

    .home-why-section {
        min-height: 320px;
    }

    .home-why-section .lead,
    .home-cta-section .lead,
    .home-work-section .lead {
        font-size: 1rem !important;
        font-weight: 400 !important;
        max-width: 100% !important;
        margin-inline: auto !important;
        margin-top: 1rem !important;
    }

    .product-carousel-section .card-img-top {
        height: 12.5rem;
    }

    .product-carousel-section .scroll-left,
    .product-carousel-section .scroll-right {
        width: 34px;
        height: 34px;
    }

    .materials-carousel-track > [class*="col-"] {
        flex-basis: 46% !important;
        max-width: 46% !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    /* Override inline max-height so images fill the tile properly on mobile */
    .materials-carousel-track img {
        max-height: none !important;
        width: 100% !important;
        height: 130px !important;
        object-fit: contain !important;
    }

    /* Product carousel mobile */
    .product-carousel-nav h4 {
        font-size: 1.5rem;
        margin-bottom: 1.25rem !important;
    }

    .product-carousel-tabs {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        overflow-x: hidden !important;
        gap: 0.3rem !important;
        justify-content: flex-start !important;
        padding-bottom: 0 !important;
    }

    .product-carousel-tabs .nav-item {
        flex: 0 0 calc(33.33% - 0.21rem) !important;
        max-width: calc(33.33% - 0.21rem) !important;
    }

    .product-carousel-tabs .nav-link {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.1rem !important;
        text-align: center !important;
        width: 100% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        line-height: 1.2 !important;
        border-radius: 999px !important;
        min-height: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .product-carousel-section .card-title {
        font-size: 0.875rem;
        padding: 0.25rem 0.25rem;
        line-height: 1.3;
    }

    .product-carousel-nav .btn {
        font-size: 0.8rem !important;
        padding: 0.6rem 1.25rem !important;
    }

    .product-carousel-nav a.btn {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
}

/* ========================
   Inner Pages Responsive
======================== */

/* --- Shared section classes for Solutions pages --- */
.section-blue {
    background-color: #031258;
    color: #ffffff;
}

.section-grey {
    background-color: #f8f9fa;
}

.section-white {
    background-color: #ffffff;
}

/* --- Inner page hero headings (display-4, display-5) scale down on small screens --- */
@media (max-width: 991.98px) {
    .content .display-4 {
        font-size: clamp(1.8rem, 4vw + 0.5rem, 2.75rem);
    }

    .content .display-5 {
        font-size: clamp(1.6rem, 3.5vw + 0.5rem, 2.25rem);
    }

    .content .lead {
        font-size: clamp(1rem, 2vw + 0.5rem, 1.25rem);
    }
}

@media (max-width: 767.98px) {
    /* Hero heading further reduction */
    .content .display-4 {
        font-size: clamp(1.5rem, 5vw, 2.25rem);
    }

    .content .display-5 {
        font-size: clamp(1.35rem, 4.5vw, 1.85rem);
    }

    /* fs-5 text scale down */
    .content .fs-5 {
        font-size: 1.1rem !important;
    }

    /* CTA button groups: stack vertically on mobile */
    .content .py-5.text-center .btn + .btn,
    .content .py-5.text-center .btn.me-3 {
        margin-right: 0 !important;
    }

    .content .py-5.text-center .btn {
        display: inline-block;
        margin-bottom: 0.5rem;
    }

    /* Fixed-margin spacer sections: reduce on mobile */
    .content section[style*="margin:100px"],
    .content section[style*="margin: 100px"] {
        margin: 2.5rem 0 !important;
    }

    /* Fixed-height spacer divs: reduce on mobile */
    .content div[style*="height: 60px"] {
        height: 2rem !important;
    }

    /* Inner page images with inline max-height: ensure they scale */
    .content .img-fluid[style*="max-height"] {
        max-height: 280px !important;
    }

    /* Card grids on inner pages: 2 columns on tablet instead of 3 */
    .content .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Solutions page grid (Tailwind classes don't work, add Bootstrap fallback) */
    .content .grid {
        display: grid;
    }

    /* Solution pages: flex and grid fallbacks */
    .content .flex {
        display: flex;
    }

    .content .flex-col {
        flex-direction: column;
    }

    .content .flex-wrap {
        flex-wrap: wrap;
    }

    .content .items-center {
        align-items: center;
    }

    .content .gap-3 {
        gap: 0.75rem;
    }

    .content .gap-4 {
        gap: 1rem;
    }

    .content .gap-8 {
        gap: 2rem;
    }

    /* Inline image height/width overrides for mobile */
    .content img[style*="height:200px"] {
        height: auto !important;
        max-width: 100%;
    }

    /* Solution pills (What page): reduce min-width */
    .content .rounded-pill[style*="min-width: 240px"] {
        min-width: 0 !important;
        width: 100%;
    }

    /* CTA Product Banner responsive */
    .content .container-fluid .col-lg-3,
    .content .container-fluid .col-lg-5 {
        justify-content: center !important;
        margin-top: 1.5rem;
    }

    /* py-6 class (used in Solutions pages, not in Bootstrap) */
    .py-6 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

@media (max-width: 575.98px) {
    /* Extra small: single column for card grids */
    .content .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Further reduce spacer margins */
    .content section[style*="margin:100px"],
    .content section[style*="margin: 100px"] {
        margin: 1.5rem 0 !important;
    }

    /* Smaller hero heading on xs */
    .content .display-4 {
        font-size: clamp(1.35rem, 6vw, 1.85rem);
    }

    .content .display-5 {
        font-size: clamp(1.25rem, 5.5vw, 1.65rem);
    }

    .content .fs-5 {
        font-size: 1rem !important;
    }

    /* Inner page section padding tighter */
    .content > section.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .py-6 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Solution pills: full width stack */
    .content .d-flex.flex-wrap.gap-3 .rounded-pill {
        min-width: 0 !important;
    }

    /* Ensure images don't overflow */
    .content img {
        max-width: 100%;
        height: auto;
    }
}

/* py-6 base definition (used by Solutions pages) */
.py-6 {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

/* Solutions pages: grid fallback for Tailwind classes */
.grid {
    display: grid;
    gap: 1rem;
}

.grid.md\:grid-cols-2 {
    grid-template-columns: 1fr;
}

.grid.md\:grid-cols-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid.md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid.md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Solutions pages: flex fallbacks for Tailwind classes */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

/* Solutions text size fallbacks */
.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

/* Solutions responsive: md:flex-row */
@media (min-width: 768px) {
    .md\:flex-row {
        flex-direction: row;
    }
}

/* Gap utilities fallback */
.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

/* List styles for Solutions */
.list-check {
    list-style: none;
    padding-left: 0;
}

.list-check li::before {
    content: "✔ ";
    color: #031258;
    font-weight: bold;
}

.list-disc {
    list-style-type: disc;
}

.pl-5 {
    padding-left: 1.25rem;
}

/* Solutions hero: responsive text sizing */
@media (max-width: 767.98px) {
    .text-4xl {
        font-size: 1.75rem;
        line-height: 2rem;
    }

    .text-2xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }

    /* Solutions divider lines: full width on mobile */
    .content div[style*="width:50%"],
    .content div[style*="width: 50%"] {
        width: 100% !important;
    }
}

@media (max-width: 575.98px) {
    .text-4xl {
        font-size: 1.5rem;
        line-height: 1.75rem;
    }

    .text-2xl {
        font-size: 1.15rem;
        line-height: 1.5rem;
    }
}


/* ========================
   Accessibility: touch target sizing
   Every interactive control needs at least a 24x24px hit area. We use transparent padding +
   background-clip to keep the visible footprint while extending the clickable area.
   ======================== */
.home-hero-carousel .carousel-indicators [data-bs-target],
#heroCarousel .carousel-indicators [data-bs-target] {
    box-sizing: content-box !important;
    width: 32px !important;
    height: 4px !important;
    padding: 14px 8px !important;
    margin: 0 4px !important;
    background-color: #fff;
    background-clip: content-box !important;
    border: 0 !important;
}

.home-hero-carousel .carousel-control-prev,
.home-hero-carousel .carousel-control-next,
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 64px;
}

.product-carousel-content .scroll-left,
.product-carousel-content .scroll-right {
    min-width: 36px;
    min-height: 36px;
}

.product-carousel-tabs .nav-link {
    padding: 0.5rem 0.25rem;
    min-height: 36px;
}

/* Footer link lists — give each anchor a 32px minimum height + spacing so they pass touch-target sizing */
.footer-main ul.list-unstyled li {
    margin-bottom: 0.25rem;
}

.footer-main ul.list-unstyled li a,
.footer-main ul.list-inline li.list-inline-item a {
    display: inline-block;
    padding: 6px 4px;
    min-height: 32px;
    line-height: 1.5;
}

.footer-main ul.list-inline li.list-inline-item {
    margin-right: 0.5rem;
}

/* Materials carousel tiles get adequate padding for touch */
.materials-carousel-track .col-4,
.materials-carousel-track .col-sm-3,
.materials-carousel-track .col-md-2 {
    padding: 8px;
}

/* Global language menu links */
#globalMenu ul li a {
    padding: 8px 4px;
    min-height: 36px;
}


/* ========================
   Inner Page Hero (reusable across Purpose/Solutions/etc.)
======================== */

.inner-page-hero {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (max-width: 767.98px) {
    .inner-page-hero {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}


/* ========================
   Why Page Enhancements
======================== */

/* Hero — extra vertical breathing room */
.why-hero {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (max-width: 767.98px) {
    .why-hero {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Friction list — icon-text alignment and left accent */
.why-friction-list {
    font-size: 1.1rem;
    line-height: 1.6;
}

.why-friction-list li {
    padding: 0.5rem 0;
    border-left: 3px solid #f0ad4e;
    padding-left: 1rem;
    margin-bottom: 0.75rem;
}

.why-friction-list i {
    font-size: 1.1rem;
}

/* Before/After cards — colored left border accents */
.why-card-before {
    border: 1px solid #f8d7da;
    border-left: 4px solid #dc3545;
    border-radius: 0.5rem;
}

.why-card-after {
    border: 1px solid #d1e7dd;
    border-left: 4px solid #198754;
    border-radius: 0.5rem;
    background-color: #f8fffe;
}

/* Opacity utility (Bootstrap 5.0 compat) */
.opacity-85 {
    opacity: 0.85;
}


/* ========================
   How Page Enhancements
======================== */

/* Module cards — clean border + hover lift */
.how-module-card {
    border: 1px solid rgba(3, 18, 88, 0.1);
    border-radius: 0.5rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.how-module-card:hover {
    box-shadow: 0 8px 24px rgba(3, 18, 88, 0.12) !important;
    transform: translateY(-2px);
    border-color: rgba(3, 18, 88, 0.25);
}


/* ========================
   What Page Enhancements
======================== */

/* Pillar cards — structured top accent */
.what-pillar-card {
    border: 1px solid rgba(3, 18, 88, 0.08);
    border-top: 3px solid #031258;
    border-radius: 0.5rem;
}

/* Pillar number badge */
.what-pillar-number {
    font-size: 0.8rem;
    font-weight: 700;
    color: #031258;
    opacity: 0.4;
    letter-spacing: 0.1em;
}

/* Solution system pills */
.what-solution-pill {
    border: 1.5px solid rgba(3, 18, 88, 0.25) !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.what-solution-pill:hover {
    background-color: #031258 !important;
    border-color: #031258 !important;
    box-shadow: 0 4px 12px rgba(3, 18, 88, 0.15) !important;
}

.what-solution-pill:hover span {
    color: #ffffff !important;
}


/* ========================
   Benefits Page Enhancements
======================== */

/* Benefit cards — clean border, no shadow needed */
.benefit-card {
    border: 1px solid rgba(3, 18, 88, 0.08);
    border-radius: 0.5rem;
}

/* Outcome cards — subtle hover for linked items */
.outcome-card {
    border-radius: 0.5rem;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.outcome-card:hover {
    background-color: rgba(3, 18, 88, 0.04);
    box-shadow: 0 4px 16px rgba(3, 18, 88, 0.08);
}


/* ========================
   Products Pages Enhancements
======================== */

/* Standard reference list items */
.standard-item {
    border-left: 3px solid transparent;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
}

.standard-item:hover {
    border-left-color: #031258;
    background-color: rgba(3, 18, 88, 0.02);
}

/* Standard code badge */
.standard-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 700;
    font-size: 0.82rem;
    color: #031258;
    background-color: rgba(3, 18, 88, 0.07);
    padding: 0.2rem 0.55rem;
    border-radius: 0.3rem;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 110px;
    display: inline-block;
}

/* Category cards (ByCategory page) */
.category-card {
    border: 1px solid rgba(3, 18, 88, 0.08);
    border-top: 3px solid #031258;
    border-radius: 0.5rem;
}

.category-title {
    color: #031258;
    font-size: 1rem;
    letter-spacing: 0.01em;
    margin-bottom: 0.75rem;
}

.category-list {
    margin-bottom: 0;
}

.category-list li {
    padding: 0.25rem 0;
    font-size: 0.875rem;
    color: #495057;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    line-height: 1.45;
}

.category-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* MadeToDrawing gallery cards — consistent image height */
.mtd-gallery-card .card-img-top {
    height: 200px;
    object-fit: contain;
    background-color: #f8f9fa;
    padding: 1rem;
}

.mtd-gallery-card {
    border: 1px solid rgba(3, 18, 88, 0.08);
    border-radius: 0.5rem;
}

/* Solutions pages — hero logo sizing */
.solution-hero-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .solution-hero-logo {
        width: 48px;
        height: 48px;
    }
}

/* Solutions pages — feature/connection cards */
.solution-feature-card {
    border: 1px solid rgba(3, 18, 88, 0.08);
    border-top: 3px solid #031258;
    border-radius: 0.5rem;
}

/* Solutions pages — connection list items */
.solution-connects-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.solution-connects-list li:last-child {
    border-bottom: none;
}

/* Contact & Portal pages */
.portal-feature-card {
    border: 1px solid rgba(3, 18, 88, 0.08);
    border-radius: 0.5rem;
    padding: 1.75rem 1.25rem;
    text-align: center;
    height: 100%;
}

.contact-access-card {
    border: 1px solid rgba(3, 18, 88, 0.1);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 2px 16px rgba(3, 18, 88, 0.06);
}

/* Legal pages — body content */
.legal-body h2 {
    font-size: 1rem;
    font-weight: 700;
    color: #031258;
    border-top: 1px solid rgba(3, 18, 88, 0.08);
    padding-top: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.legal-body h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #031258;
    margin-top: 1.25rem;
    margin-bottom: 0.4rem;
}

.legal-body p,
.legal-body li {
    color: #495057;
    line-height: 1.85;
}

.legal-body ul {
    padding-left: 1.25rem;
}

.legal-body a {
    color: #031258;
}

.legal-body .legal-meta {
    color: #6c757d;
    font-size: 0.875rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(3, 18, 88, 0.08);
    margin-bottom: 0.5rem;
}

/* Materials pages */
.material-row {
    border-bottom: 1px solid rgba(3, 18, 88, 0.08);
    padding: 1.25rem 0;
    transition: background-color 0.15s ease;
}

.material-row:last-child {
    border-bottom: none;
}

.material-row:hover {
    background-color: rgba(3, 18, 88, 0.02);
}

.material-row .material-img {
    max-height: 96px;
    max-width: 120px;
    width: 100%;
    object-fit: contain;
}

.material-type {
    font-weight: 700;
    color: #031258;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.material-spec {
    color: #495057;
    font-size: 0.875rem;
    font-family: ui-monospace, 'Cascadia Code', 'Courier New', monospace;
    line-height: 1.6;
}

