﻿:root {
    --crx-red: #ac0b27;
    --crx-navy: #0d2c53;
    --brand-red: #d31a38;
    --hover: #0d57a5;
    --white: #fff;
    --red: #b60f25;
    --crx-ink: #ffffff;
    --crx-overlay-gap: 10px;
    --brand-menu-gap: 18px;
}

/* ========================================
   GLOBAL WHITESPACE AND NBSP FIX
   ======================================== */
/* Fix for nbsp entities - removed overly aggressive rules */

/* 1. Load the "Exo" font from Google */
@import url('https://fonts.googleapis.com/css2?family=Exo:wght@400;600;700;800&display=swap');

@keyframes FadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* 2. Apply it to all Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: "Exo", Helvetica, Arial, sans-serif !important;
    color: #0d2c53;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 20px;
}

/* 3. Specific Sizes (Scaled relative to the 40px H2 found in your screenshot) */
h1 {
    font-size: 48px;
    font-weight: 800;
}

h2 {
    font-size: 40px;
    font-weight: 700;
}

h3 {
    font-size: 32px;
    font-weight: 600;
}

h4 {
    font-size: 24px;
    font-weight: 600;
}

h5 {
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h6 {
    font-size: 16px;
    font-weight: 500;
}


.crx-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.crx-header {
    inset-inline: 0;
    inset-block-start: 0;
    z-index: 110;
}

/*  OVERLAY  */
#header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
}

    #header-overlay .overlay-topline {
        height: 4px;
        width: 100%;
        background: #c30f2d;
    }

    #header-overlay .crx-top {
        padding-block: .35rem;
        position: relative;
        z-index: 1;
    }

        #header-overlay .crx-top .crx-toplink {
            color: #fff;
            text-decoration: none;
            font-size: .85rem;
            font-weight: 600;
            margin-right: .75rem;
        }

    #header-overlay .crx-cta {
        padding: .30rem .60rem;
        font-size: .85rem;
        font-weight: 700;
        border-radius: .5rem;
        border: 0;
        color: #fff;
        background: #c30f2d;
        margin-top: 15px;
    }

    #header-overlay .navbar {
        background: transparent;
        padding-block: 0;
        margin-top: 4px;
        min-height: 76px;
        align-items: center;
    }

    #header-overlay .nav-line {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    #header-overlay .navbar-brand {
        padding-block: 6px;
        flex-shrink: 0;
    }

    #header-overlay .crx-logo--light {
        height: 70px;
        max-height: 70px;
        display: block;
    }

    #header-overlay .crx-logo--dark {
        display: none;
    }

    #header-overlay .nav-list {
        display: flex;
        justify-content: center;
        flex: 1;
        gap: 15px !important;
        margin: 0 auto;
    }

        #header-overlay .nav-list .nav-item {
            margin: 0 !important;
        }

    #header-overlay .nav-link {
        color: #fff;
        font-size: .875rem;
        font-weight: 600;
        letter-spacing: .01em;
        padding: .375rem .5rem;
        line-height: 1.1;
    }

        #header-overlay .nav-link:hover {
            color: #fff;
            opacity: .9;
        }

    #header-overlay .crx-link.is-active::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -6px;
        margin: 0 auto;
        width: 56px;
        height: 4px;
        background: #c30f2d;
        border-radius: 2px;
        display: none;
    }

    #header-overlay .overlay-actions {
        margin-left: .25rem !important;
    }

    #header-overlay .dropdown-menu {
        z-index: 1100;
    }

    #header-overlay .dropdown-mega.position-static {
        position: static;
    }

    #header-overlay .dropdown-menu.crx-mega {
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        width: min(1120px, 100%);
        border: 0;
        box-shadow: 0 20px 42px rgba(0,0,0,.22);
        padding: 0;
        background: #fff;
        border-radius: .5rem;
    }

    #header-overlay .dropdown-menu.crx-dd {
        border: 0;
        box-shadow: 0 20px 42px rgba(0,0,0,.22);
        background: #fff;
    }

    #header-overlay .crx-mega .crx-mega-title {
        color: #c30f2d;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .02em;
        margin: 2px 0 12px 0;
    }

    #header-overlay .dropdown-item {
        color: #222;
        font-weight: 700;
    }

        #header-overlay .dropdown-item:hover, #header-overlay .dropdown-item:focus {
            color: #c30f2d;
            background: transparent;
        }

@media (min-width: 992px) {
    /* CRITICAL: Hide mobile collapse menu on desktop completely */
    #header-overlay #overlayCollapse,
    #header-overlay .navbar-collapse.d-lg-none,
    #overlayCollapse.navbar-collapse {
        display: none !important;
        visibility: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Show and style the desktop nav-line */
    #header-overlay .nav-line {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Ensure sticky header is available on desktop */
    #header-sticky {
        display: block !important;
    }

    /* Restore overlay header to absolute positioning on desktop */
    #header-overlay {
        position: absolute !important;
        background: transparent !important;
    }

        /* Show top bar on desktop */
        #header-overlay .crx-top {
            display: flex !important;
        }

        /* Desktop navigation items styling */
        #header-overlay .nav-line .nav-link {
            color: #fff !important;
            font-size: .875rem !important;
            font-weight: 600 !important;
            padding: .375rem .5rem !important;
            border: none !important;
            background: transparent !important;
        }

            #header-overlay .nav-line .nav-link:hover {
                color: rgba(255, 255, 255, 0.8) !important;
            }

        /* Desktop dropdown styling */
        #header-overlay .nav-line .dropdown-menu {
            position: absolute !important;
            background: #fff !important;
            border-radius: 0.5rem !important;
            box-shadow: 0 20px 42px rgba(0,0,0,.22) !important;
            border: none !important;
            padding: 1rem !important;
            margin-top: 0.5rem !important;
        }

        #header-overlay .nav-line .dropdown-item {
            color: #222 !important;
            font-weight: 600 !important;
            padding: 0.5rem 1rem !important;
            border: none !important;
            border-radius: 0.25rem !important;
        }

            #header-overlay .nav-line .dropdown-item:hover {
                color: var(--crx-red) !important;
                background: rgba(172, 11, 39, 0.05) !important;
            }

        /* Desktop search styling */
        #header-overlay .nav-line .crx-nav-search {
            position: relative;
            margin-left: auto;
        }

        #header-overlay .nav-line .crx-nav-search__icon {
            background: transparent;
            border: none;
            padding: 0.5rem;
            cursor: pointer;
            color: #fff;
        }

        #header-overlay .nav-line .crx-nav-search__form {
            position: absolute;
            right: 0;
            top: 100%;
            background: #fff;
            padding: 0.5rem;
            border-radius: 0.25rem;
            box-shadow: 0 4px 12px rgba(0,0,0,.15);
            display: none;
            width: 250px;
        }

        #header-overlay .nav-line .crx-nav-search.is-open .crx-nav-search__form {
            display: flex;
        }

        #header-overlay .nav-line .crx-nav-search__form input {
            flex: 1;
            border: 1px solid #ddd;
            padding: 0.5rem;
            font-size: 0.875rem;
        }

        #header-overlay .nav-line .crx-nav-search__btn {
            background: var(--crx-red);
            color: #fff;
            border: none;
            padding: 0.5rem 0.75rem;
            cursor: pointer;
        }

        /* Hide mobile hamburger on desktop */
        #header-overlay .navbar-toggler {
            display: none !important;
        }

        /* Hide mobile-only logo on desktop */
        #header-overlay .navbar-brand.d-lg-none {
            display: none !important;
        }
}


#header-overlay .navbar .navbar-collapse {
    transition: height .2s ease;
}

/* ========================================
   MOBILE STYLES (below 992px)
   ======================================== */
@media (max-width:991.98px) {
    /* Hide sticky header on mobile */
    #header-sticky {
        display: none !important;
    }

    /* Hide the desktop nav-line on mobile */
    #header-overlay .nav-line {
        display: none !important;
    }

    /* Make overlay header fixed with navy background on mobile */
    #header-overlay {
        position: fixed !important;
        background: var(--crx-navy) !important;
    }

        #header-overlay .crx-top {
            display: none !important;
        }

        #header-overlay .navbar {
            min-height: 64px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        /* Mobile logo styling */
        #header-overlay .navbar-brand {
            padding: 0.5rem 0;
        }

        #header-overlay .crx-logo-mobile {
            height: 38px;
            max-height: 38px;
            width: auto;
        }

        #header-overlay .crx-logo--light {
            max-height: 38px;
        }

        /* Mobile hamburger button - RED COLOR */
        #header-overlay .navbar-toggler {
            border: none !important;
            padding: 0.5rem;
            position: relative;
            z-index: 10001;
            background: var(--crx-red) !important;
            border-radius: 0.375rem;
        }

            #header-overlay .navbar-toggler:focus {
                box-shadow: none !important;
                outline: none !important;
            }

        #header-overlay .navbar-toggler-icon {
            width: 24px;
            height: 24px;
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
        }

        /* Mobile "Join Our Team" CTA button - White Border Transparent Style */
        #header-overlay .crx-mobile-cta {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 6px !important;
            background: transparent !important;
            border: 2px solid rgba(255, 255, 255, 0.8) !important;
            color: #ffffff !important;
            font-family: 'Exo', sans-serif !important;
            font-size: 11px !important;
            font-weight: 700 !important;
            letter-spacing: 0.5px !important;
            text-transform: uppercase !important;
            line-height: 1 !important;
            height: 40px !important;
            padding: 0 12px !important;
            border-radius: 6px !important;
            text-decoration: none !important;
            white-space: nowrap !important;
            margin-left: auto !important;
            margin-right: 8px !important;
            transition: all 0.2s ease !important;
            flex-shrink: 0 !important;
            overflow: visible !important;
            opacity: 1 !important;
            visibility: visible !important;
        }

            #header-overlay .crx-mobile-cta i {
                font-size: 13px !important;
                color: #ffffff !important;
                opacity: 1 !important;
            }

            #header-overlay .crx-mobile-cta span {
                color: #ffffff !important;
                font-family: 'Exo', sans-serif !important;
                font-size: 11px !important;
                font-weight: 700 !important;
                letter-spacing: 0.5px !important;
                text-transform: uppercase !important;
                line-height: 1 !important;
                display: inline-block !important;
                opacity: 1 !important;
                visibility: visible !important;
            }

            #header-overlay .crx-mobile-cta:hover {
                background: rgba(255, 255, 255, 0.1) !important;
                border-color: #ffffff !important;
                color: #ffffff !important;
                text-decoration: none !important;
            }

                #header-overlay .crx-mobile-cta:hover span,
                #header-overlay .crx-mobile-cta:hover i {
                    color: #ffffff !important;
                }

        /* Ensure hamburger menu has proper size */
        #header-overlay .navbar-toggler {
            width: 40px;
            height: 40px;
            flex-shrink: 0;
        }

        /* Transform to X when open - white background */
        #header-overlay .navbar-toggler[aria-expanded="true"] {
            position: fixed !important;
            top: 1rem !important;
            right: 1.5rem !important;
            z-index: 10001 !important;
            background: #ffffff !important;
        }

            #header-overlay .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
                background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ac0b27'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") !important;
            }

        /* Mobile menu overlay - smooth slide animation */
        #header-overlay .navbar-collapse {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            background: #ffffff !important;
            z-index: 10000 !important;
            width: 100vw !important;
            height: 100vh !important;
            overflow-y: auto !important;
            -webkit-overflow-scrolling: touch !important;
            padding: 0 !important;
            display: block !important;
            transform: translateX(100%) !important;
            transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.35s !important;
            visibility: hidden !important;
            box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        }

            #header-overlay .navbar-collapse.show {
                transform: translateX(0) !important;
                visibility: visible !important;
                transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s !important;
            }

            #header-overlay .navbar-collapse.collapsing {
                height: auto !important;
                transform: translateX(100%) !important;
                visibility: visible !important;
                transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
            }

                #header-overlay .navbar-collapse.collapsing.show {
                    transform: translateX(0) !important;
                }

            /* Mobile menu content starts from top with proper header spacing */
            #header-overlay .navbar-collapse .navbar-nav {
                padding: 4.5rem 1.5rem 2rem !important;
                width: 100%;
                min-height: 100vh;
            }

            /* Mobile menu links - improved styling */
            #header-overlay .navbar-collapse .nav-link {
                color: var(--crx-navy) !important;
                font-size: 1.125rem !important;
                font-weight: 600 !important;
                padding: 1rem 0 !important;
                border-bottom: 1px solid #e8e8e8 !important;
                display: flex !important;
                align-items: center !important;
                justify-content: space-between !important;
                transition: color 0.2s ease !important;
            }

                #header-overlay .navbar-collapse .nav-link:hover,
                #header-overlay .navbar-collapse .nav-link:focus {
                    color: var(--crx-red) !important;
                }

            /* First nav item - remove extra spacing */
            #header-overlay .navbar-collapse .nav-item:first-child .nav-link {
                border-top: 1px solid #e8e8e8 !important;
            }

            /* Dropdown toggles - add chevron icons with smooth rotation */
            #header-overlay .navbar-collapse .dropdown-toggle::after {
                content: "" !important;
                display: inline-block !important;
                width: 0.6em !important;
                height: 0.6em !important;
                border-right: 2px solid currentColor !important;
                border-bottom: 2px solid currentColor !important;
                transform: rotate(45deg) !important;
                transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
                margin-left: auto !important;
                border-top: none !important;
                border-left: none !important;
                vertical-align: 0.1em !important;
            }

            #header-overlay .navbar-collapse .dropdown-toggle[aria-expanded="true"]::after {
                transform: rotate(-135deg) !important;
            }

            /* Dropdown menu - improved with smooth animation */
            #header-overlay .navbar-collapse .dropdown-menu {
                position: static !important;
                transform: none !important;
                box-shadow: none !important;
                padding: 0 !important;
                background: #f8f9fa !important;
                border: none !important;
                border-left: 3px solid var(--crx-red) !important;
                margin: 0.5rem 0 !important;
                border-radius: 0.375rem !important;
                max-height: 0 !important;
                overflow: hidden !important;
                opacity: 0 !important;
                transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.3s ease !important;
            }

                #header-overlay .navbar-collapse .dropdown-menu.show {
                    max-height: 2000px !important;
                    opacity: 1 !important;
                    padding: 0.5rem 0 1rem 1rem !important;
                }

            #header-overlay .navbar-collapse .dropdown-item {
                color: #555 !important;
                font-size: 0.95rem !important;
                font-weight: 500 !important;
                padding: 0.7rem 0.75rem !important;
                border: none !important;
                border-radius: 0.25rem !important;
                transition: all 0.2s ease !important;
                white-space: normal !important;
                word-wrap: break-word !important;
            }

                #header-overlay .navbar-collapse .dropdown-item:hover,
                #header-overlay .navbar-collapse .dropdown-item:focus {
                    background: rgba(172, 11, 39, 0.08) !important;
                    color: var(--crx-red) !important;
                    padding-left: 1rem !important;
                }

            /* Mega menu on mobile - FIX OVERFLOW */
            #header-overlay .navbar-collapse .crx-mega {
                background: #f8f9fa !important;
                margin: 0.5rem 0 !important;
                padding: 0 !important;
                border-left: 3px solid var(--crx-red) !important;
                border-radius: 0.375rem !important;
                max-height: 0 !important;
                overflow: hidden !important;
                opacity: 0 !important;
                transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.3s ease !important;
            }

                #header-overlay .navbar-collapse .crx-mega.show {
                    max-height: 2500px !important;
                    opacity: 1 !important;
                    padding: 1rem 0.5rem !important;
                }

                #header-overlay .navbar-collapse .crx-mega .crx-mega-title {
                    font-size: 0.75rem !important;
                    margin: 0.5rem 0 0.5rem 0.5rem !important;
                    color: var(--crx-navy) !important;
                    font-weight: 700 !important;
                    text-transform: uppercase !important;
                    letter-spacing: 0.5px !important;
                }

                #header-overlay .navbar-collapse .crx-mega .row {
                    gap: 0.5rem !important;
                    margin: 0 !important;
                }

                #header-overlay .navbar-collapse .crx-mega [class*="col-"] {
                    padding-left: 0.5rem !important;
                    padding-right: 0.5rem !important;
                }

                #header-overlay .navbar-collapse .crx-mega .dropdown-item {
                    background: transparent !important;
                    padding: 0.6rem 0.5rem !important;
                    font-size: 0.875rem !important;
                    white-space: normal !important;
                    word-wrap: break-word !important;
                    line-height: 1.3 !important;
                }

            /* Search in mobile menu */
            #header-overlay .navbar-collapse .crx-nav-search {
                padding: 1.5rem 0;
                border-top: 2px solid #e8e8e8;
                margin-top: 1rem;
                width: 100%;
            }

            #header-overlay .navbar-collapse .crx-nav-search__icon {
                color: var(--crx-navy) !important;
                padding: 0.75rem !important;
                background: #f8f9fa !important;
                border-radius: 0.5rem !important;
                width: 100% !important;
                display: flex !important;
                align-items: center !important;
                gap: 0.75rem !important;
                font-weight: 600 !important;
                font-size: 1rem !important;
            }

                #header-overlay .navbar-collapse .crx-nav-search__icon::after {
                    content: "Search" !important;
                    display: inline !important;
                }

            #header-overlay .navbar-collapse .crx-nav-search.is-open .crx-nav-search__icon {
                display: none !important;
            }

            #header-overlay .navbar-collapse .crx-nav-search__form {
                position: static !important;
                transform: none !important;
                width: 100% !important;
                opacity: 1 !important;
                pointer-events: auto !important;
                display: none !important;
                border-radius: 0.5rem !important;
            }

            #header-overlay .navbar-collapse .crx-nav-search.is-open .crx-nav-search__form {
                display: flex !important;
            }

            #header-overlay .navbar-collapse .crx-nav-search__form input {
                flex: 1 !important;
                min-width: 0 !important;
                padding: 0.75rem 1rem !important;
                font-size: 1rem !important;
                border-radius: 0.5rem 0 0 0.5rem !important;
            }

            #header-overlay .navbar-collapse .crx-nav-search__btn {
                padding: 0.75rem 1.25rem !important;
                border-radius: 0 0.5rem 0.5rem 0 !important;
                font-size: 1.125rem !important;
            }

    /* Prevent body scroll when menu is open */
    body.mobile-menu-open {
        overflow: hidden !important;
    }

    /* Fix button widths on mobile - don't let them overflow */
    .btn-danger.rounded-pill,
    .btn.rounded-pill {
        max-width: 100% !important;
        width: auto !important;
        display: inline-block !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Ensure cards don't cause horizontal overflow */
    .card-body {
        overflow: hidden !important;
    }
}

/* Tablet adjustments */
@media (min-width: 576px) and (max-width: 991.98px) {
    #header-overlay .navbar-collapse .navbar-nav {
        padding: 4.5rem 2.5rem 2rem !important;
        max-width: 480px !important;
        margin: 0 auto !important;
    }
}

/* ========================================
   STICKY HEADER STYLES
   ======================================== */
#header-sticky {
    position: fixed;
    top: -100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--crx-navy);
    transition: top 0.3s ease;
}

    #header-sticky.is-visible {
        top: 0;
    }

    #header-sticky .navbar {
        background: transparent;
        padding: 0;
        min-height: 76px;
        align-items: center;
    }

    #header-sticky .navbar-brand {
        padding-block: 6px;
        flex-shrink: 0;
    }

    #header-sticky .crx-logo {
        height: 70px;
        max-height: 70px;
        display: block;
    }

    /* Sticky header navigation - evenly spaced items */
    #header-sticky .navbar-collapse {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-grow: 1;
    }

    #header-sticky .nav-list {
        display: flex;
        justify-content: center;
        flex: 1;
        gap: 15px !important;
        margin: 0 auto;
    }

        #header-sticky .nav-list .nav-item {
            margin: 0 !important;
        }

    #header-sticky .nav-link {
        color: #fff;
        font-size: .875rem;
        font-weight: 600;
        letter-spacing: .01em;
        padding: .375rem .5rem;
        line-height: 1.1;
    }

        #header-sticky .nav-link:hover {
            color: rgba(255, 255, 255, 0.8);
        }

    #header-sticky .dropdown-menu {
        background: #fff;
        border: none;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }

    #header-sticky .dropdown-item {
        color: #222;
        font-weight: 700;
    }

        #header-sticky .dropdown-item:hover {
            color: var(--crx-red);
            background: transparent;
        }

    /* Sticky header search */
    #header-sticky .crx-nav-search {
        position: relative;
        flex-shrink: 0;
    }

    #header-sticky .crx-nav-search__icon {
        background: transparent;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
        color: #fff;
    }

    #header-sticky .crx-nav-search__form {
        position: absolute;
        right: 0;
        top: 100%;
        background: #fff;
        padding: 0.5rem;
        border-radius: 0.25rem;
        box-shadow: 0 4px 12px rgba(0,0,0,.15);
        display: none;
        width: 250px;
    }

    #header-sticky .crx-nav-search.is-open .crx-nav-search__form {
        display: flex;
    }

    #header-sticky .crx-nav-search__form input {
        flex: 1;
        border: 1px solid #ddd;
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    #header-sticky .crx-nav-search__btn {
        background: var(--crx-red);
        color: #fff;
        border: none;
        padding: 0.5rem 0.75rem;
        cursor: pointer;
    }

    /* Sticky header mega menu positioning */
    #header-sticky .dropdown-mega.position-static {
        position: static;
    }

    #header-sticky .dropdown-menu.crx-mega {
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        width: min(1120px, 100%);
        border: 0;
        box-shadow: 0 20px 42px rgba(0,0,0,.22);
        padding: 0;
        background: #fff;
        border-radius: .5rem;
    }

    #header-sticky .crx-mega .crx-mega-title {
        color: #c30f2d;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .02em;
        margin: 2px 0 12px 0;
    }

    #header-sticky .dropdown-menu.crx-dd {
        border: 0;
        box-shadow: 0 20px 42px rgba(0,0,0,.22);
        background: #fff;
    }

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.backtotop {
    position: fixed;
    bottom: 59px;
    right: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--crx-red);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

    .backtotop.is-visible {
        opacity: 1;
        visibility: visible;
    }

    .backtotop:hover {
        background: #8a0920;
    }

/* ========================================
   FOOTER STYLES
   ======================================== */
.crx-footer {
    background: #fff;
    color: #333;
}

.crx-footer-sep {
    height: 2px;
    background: linear-gradient(90deg, var(--crx-red) 0%, var(--crx-navy) 100%);
    margin-bottom: 2rem;
}

.crx-footer.has-top-separator {
    border-top: none;
}

.crx-footer-brand {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.crx-footer-logo {
    max-width: 150px;
    height: auto;
}

.crx-footer-block {
    margin-bottom: 1.5rem;
}

.crx-footer-title {
    color: var(--crx-navy);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.crx-addr {
    font-style: normal;
    color: #666;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.crx-footer-link {
    color: var(--crx-navy);
    font-weight: 500;
    font-size: 0.875rem;
}

    .crx-footer-link:hover {
        color: var(--crx-red);
    }

.crx-subscribe-form {
    max-width: 400px;
}

.crx-subscribe-sub {
    color: #666;
    font-size: 0.875rem;
}

.crx-quicklinks {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .crx-quicklinks li {
        margin-bottom: 0.5rem;
    }

        .crx-quicklinks li::before {
            display: none;
        }

.crx-subfooter {
    background: var(--crx-navy);
    padding: 1rem 0;
}

.crx-subfooter-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.crx-copy {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

.crx-legal {
    list-style: none;
    padding: 0;
    margin: 0;
    display:flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

    .crx-legal li {
        margin: 0;
    }

        .crx-legal li::before {
            display: none;
        }

.crx-legal-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 400;
}

    .crx-legal-link:hover {
        color: #fff;
    }

.crx-follow {
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.crx-follow__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--crx-navy);
    letter-spacing: -0.02em;
    line-height: 1;
}

.crx-follow__ig {
    width: 65px;
    height: 65px;
    display: inline-block;
    background-color: var(--crx-navy);
    -webkit-mask: url("/img/instagram-brands-solid-full.svg") center / contain no-repeat;
    mask: url("/img/instagram-brands-solid-full.svg") center / contain no-repeat;
}

.crx-igBtn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 4px;
    background: #3b82c4;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

    .crx-igBtn:hover {
        color: #fff;
        filter: brightness(.95);
    }

.crx-igBtn__icon {
    width: 16px;
    height: 16px;
    background: #fff;
    -webkit-mask: url("/img/instagram-brands-solid-full.svg") center / contain no-repeat;
    mask: url("/img/instagram-brands-solid-full.svg") center / contain no-repeat;
}

.Ig-Follow-CrxRX {
    margin-top: 5px;
    margin-bottom: 25px;
    justify-items: center;
}

.crx-igBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 4px;
    background: #3b82c4;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

    .crx-igBtn::before {
        content: "";
        width: 16px;
        height: 16px;
        display: inline-block;
        background-color: #fff;
        -webkit-mask: url("/img/instagram-brands-solid-full.svg") center / contain no-repeat;
        mask: url("/img/instagram-brands-solid-full.svg") center / contain no-repeat;
    }


@media (max-width: 444px) {
    .crx-follow__title {
        font-size: 32px;
    }
    .crx-legal {
        display: block !important;
    }
}

@media (max-width: 373px) {
    .crx-follow__title {
        font-size: 22px;
    }
}

/* ========================================
   MEDICAL CAROUSEL SECTION
   ======================================== */
.medical-carousel-section {
    padding: 4rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.medical-carousel-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.medical-carousel-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--crx-navy);
    margin-bottom: 0.5rem;
}

.medical-carousel-section .section-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 0;
}

.carousel-container {
    position: relative; /* Make this the positioning context */
    overflow: hidden;
    padding: 0 1rem;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.3s ease;
    padding: 1rem 0;
}

.service-card {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 280px;
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.service-card .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(172, 11, 39, 0.1);
    border-radius: 50%;
    color: var(--crx-red);
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--crx-navy);
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.carousel-controls {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -3rem; /* Position outside the container */
    right: -3rem; /* Position outside the container */
    pointer-events: none;
    z-index: 10;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--crx-red);
    border: none;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(172, 11, 39, 0.3);
    pointer-events: auto;
}

.carousel-arrow.prev-arrow {
    left: 0;
}

.carousel-arrow.next-arrow {
    right: 0;
}

.carousel-arrow:hover {
    background: #8a0920;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(172, 11, 39, 0.4);
}

.carousel-arrow:active {
    transform: scale(0.95);
}

.carousel-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-arrow:disabled:hover {
    transform: none;
    background: var(--crx-red);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .service-card {
        flex: 0 0 calc(50% - 1rem);
        min-width: 250px;
    }
}

@media (max-width: 767.98px) {
    .medical-carousel-section {
        padding: 3rem 0;
    }

    .medical-carousel-section .section-title {
        font-size: 2rem;
    }

    .service-card {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .carousel-container {
        padding: 0 1rem;
    }

    .carousel-track {
        gap: 1rem;
    }

    .carousel-controls {
        left: -2.5rem;
        right: -2.5rem;
    }

    .carousel-arrow {
        width: 44px;
        height: 44px;
        font-size: 1.125rem;
    }

    .carousel-arrow.prev-arrow {
        left: 0;
    }

    .carousel-arrow.next-arrow {
        right: 0;
    }
}
/* Styling for the section */
.crx-trust-contact {
   /* padding: 60px 0;*/
    color: #ffffff; /* Sets default text color to white */
    font-family: sans-serif; /* Use your site's font */
}

.tc-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.tc-sub {
    color: #b0b0b0; /* Slightly dimmed color for the sub-header */
    margin-bottom: 5px;
}

.tc-lead {
    max-width: 800px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

/* THE LIST: Centered block, left-aligned text */
.tc-list-container {
    max-width: 700px; /* Adjust this to control how wide the list is */
    margin: 0 auto; /* Centers the block on the page */
    text-align: left; /* Keeps text inside left-aligned */
}

.tc-list {
    display: inline-block;
    text-align: left;
    margin-top: 20px;
}

    .tc-list li {
        margin-bottom: 12px;
        line-height: 1.4;
    }

/* Button and bottom section styling */
.tc-cta-btn {
    background: #ffffff;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: bold;
}

    .tc-cta-btn a {
        /*color: #0b3463;*/
        text-decoration: none;
    }

.tc-phone {
    font-size: 1.5rem;
    font-weight: bold;
}

.tc-email {
    color: #ffffff;
}
/* Ensures the link stays contained within the card */
.crx-svcCard {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    /* Card lift effect on hover */
    .crx-svcCard:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

/* The magic that makes the whole card clickable */
.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

/* Ensure the button looks clickable even if the whole card is */
.crx-svcCard__btn {
    z-index: 2;
    position: relative;
}

/* Ensures the link stays contained within the card */
.crx-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: #fff;
    height: 100%;
}

    /* Card lift effect on hover */
    .crx-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    }

/* Makes the entire card clickable */
.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

/* Ensures text and buttons stay on top of the clickable area */
.crx-card__body {
    position: relative;
    z-index: 2;
}

.crx-card__heading, .crx-card__btn {
    position: relative;
    z-index: 3;
}

/* Adjusting text sizes to match the rest of the site */
.crx-solutions__h {
    font-size: 1.75rem; /* Standard H3 size */
    font-weight: bold;
    margin-bottom: 1rem;
    color: #0b3463;
}

.crx-solutions__p {
    font-size: 1.1rem; /* Standard readable paragraph size */
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.crx-solutions__link {
    font-size: 1.1rem;
    font-weight: bold;
    color: #d9534f; /* Matches your danger/red button theme */
    text-decoration: underline;
}

/* Adding some spacing between the rows */
.crx-solutions__row, .crx-solutions__row__reverse {
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    gap: 30px;
}

.crx-solutions__text {
    flex: 1;
}

.crx-solutions__media {
    flex: 1;
}

.crx-solutions__img {
    border-radius: 8px;
    width: 100%;
    height: auto;
}
/* 1. Reset and Center the Nav Container */
.crx-gallery__nav {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px; /* Space between the arrows */
    margin: 30px auto;
    padding: 0;
    width: 100%;
}

/* 2. Style the buttons as compact circles */
.crx-gallery__arrowBtn {
    width: 50px !important; /* Force a fixed width */
    height: 50px !important; /* Force a fixed height */
    min-width: 50px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 2px solid #0b3463;
    color: #0b3463;
    border-radius: 50% !important; /* Makes them circular */
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 !important;
    font-size: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

    .crx-gallery__arrowBtn:hover {
        background-color: #0b3463;
        color: #ffffff;
        transform: scale(1.1);
    }

/* 3. Style for dots (if your script generates them) */
.crx-gallery__dots {
    display: flex;
    gap: 10px;
    align-items: center;
}
/* This is the magic part */
.crx-svcCard {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease-in-out; /* Optional: makes it feel premium */
}

    /* Optional: Slight lift effect when hovering anywhere on the card */
    .crx-svcCard:hover {
        transform: translateY(-4px);
    }

    /* This ensures the 'Details' link technically covers the whole card */
    .crx-svcCard .stretched-link::after {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1;
        content: "";
    }

.cta-btn {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    padding: .95rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: .4px;
    transition: background .2s ease, transform .12s ease;
}

.btn-cta {
    display: inline-block;
    background: #c3152b;
    color: #fff;
    padding: 16px 28px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
    box-shadow: 0 8px 16px rgba(0,0,0,.18);
}

    .btn-cta:hover {
        background: #0d61a9;
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 10px 20px rgba(0,0,0,.22);
    }

    .cta-btn:hover,
    .cta-btn:focus-visible {
        background: var(--hover);
        color: var(--white);
        transform: translateY(-1px);
        outline: none;
    }

#header-overlay .crx-link.is-active::after,
#header-sticky .crx-link.is-active::after {
    display: none !important;
}

#header-overlay .nav-item,
#header-sticky .nav-item {
    position: relative;
}

#header-overlay .nav-link.crx-link,
#header-sticky .nav-link.crx-link {
    position: relative;
    padding-bottom: 8px;
}

    #header-overlay .nav-link.crx-link:not(.dropdown-toggle)::after,
    #header-sticky .nav-link.crx-link:not(.dropdown-toggle)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 3px;
        background-color: #c30f2d;
        transition: width 0.25s ease-in-out;
    }

    #header-overlay .nav-link.crx-link:not(.dropdown-toggle):not(.active):hover::after,
    #header-sticky .nav-link.crx-link:not(.dropdown-toggle):not(.active):hover::after {
        width: 100%;
    }

    #header-overlay .nav-link.crx-link:not(.dropdown-toggle).active::after,
    #header-sticky .nav-link.crx-link:not(.dropdown-toggle).active::after {
        width: 100%;
    }

    #header-overlay .nav-link.crx-link.dropdown-toggle::before,
    #header-sticky .nav-link.crx-link.dropdown-toggle::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 3px;
        background-color: #c30f2d;
        transition: width 0.25s ease-in-out;
    }

    #header-overlay .nav-link.crx-link.dropdown-toggle:not(.active):hover::before,
    #header-sticky .nav-link.crx-link.dropdown-toggle:not(.active):hover::before {
        width: 100%;
    }

    #header-overlay .nav-link.crx-link.dropdown-toggle.active::before,
    #header-sticky .nav-link.crx-link.dropdown-toggle.active::before {
        width: 100%;
    }

    #header-overlay .nav-link.crx-link.dropdown-toggle::after,
    #header-sticky .nav-link.crx-link.dropdown-toggle::after {
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        position: static !important;
    }

#header-overlay .dropdown-item.active,
#header-sticky .dropdown-item.active,
#header-overlay .navbar-collapse .dropdown-item.active {
    background: rgba(172, 11, 39, 0.08) !important;
    color: var(--crx-red) !important;
    padding-left: 1rem !important;
    font-weight: 600 !important;
}

#header-overlay .crx-mega .dropdown-item.active,
#header-sticky .crx-mega .dropdown-item.active,
#header-overlay .navbar-collapse .crx-mega .dropdown-item.active {
    background: rgba(172, 11, 39, 0.08) !important;
    color: var(--crx-red) !important;
    font-weight: 600 !important;
}

#header-sticky .dropdown-item.active {
    background: rgba(172, 11, 39, 0.08) !important;
    color: var(--crx-red) !important;
    padding-left: 1rem !important;
    font-weight: 600 !important;
}

#header-sticky .crx-mega .dropdown-item.active {
    background: rgba(172, 11, 39, 0.08) !important;
    color: var(--crx-red) !important;
    font-weight: 600 !important;
}

@media (max-width: 991.98px) {
    #header-overlay .navbar-collapse .dropdown-item.active {
        background: rgba(172, 11, 39, 0.08) !important;
        color: var(--crx-red) !important;
        padding-left: 1rem !important;
        font-weight: 600 !important;
    }

    #header-overlay .navbar-collapse .crx-mega .dropdown-item.active {
        background: rgba(172, 11, 39, 0.08) !important;
        color: var(--crx-red) !important;
        font-weight: 600 !important;
    }
}


/* ========================================
   SEARCH OVERLAY/MODAL
   ======================================== */

.crx-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 44, 83, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
}

    .crx-search-overlay.is-active {
        opacity: 1;
        visibility: visible;
    }

.crx-search-modal {
    width: 100%;
    max-width: 700px;
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.crx-search-overlay.is-active .crx-search-modal {
    transform: translateY(0);
}

.crx-search-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.crx-search-modal__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--crx-navy);
    margin: 0;
}

.crx-search-modal__close {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s ease;
    color: #666;
    font-size: 1.5rem;
}

    .crx-search-modal__close:hover {
        background: #f5f5f5;
        color: var(--crx-red);
    }

.crx-search-modal__form {
    display: flex;
    gap: 0.5rem;
}

.crx-search-modal__input {
    flex: 1;
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .crx-search-modal__input:focus {
        outline: none;
        border-color: var(--crx-red);
        box-shadow: 0 0 0 4px rgba(172, 11, 39, 0.1);
    }

.crx-search-modal__button {
    padding: 1rem 2rem;
    background: var(--crx-red);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .crx-search-modal__button:hover {
        background: #8a0920;
        transform: translateY(-1px);
    }

    .crx-search-modal__button:active {
        transform: translateY(0);
    }

.crx-search-modal__hint {
    margin-top: 1rem;
    text-align: center;
    color: #666;
    font-size: 0.875rem;
}

    .crx-search-modal__hint kbd {
        padding: 0.25rem 0.5rem;
        background: #e5e5e5;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-family: monospace;
        font-size: 0.85rem;
    }

@media (max-width: 991.98px) {
    .crx-search-modal {
        padding: 1.5rem;
        max-width: 100%;
        margin: 0 1rem;
    }

    .crx-search-modal__title {
        font-size: 1.25rem;
    }

    .crx-search-modal__input {
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }

    .crx-search-modal__button {
        padding: 0.875rem 1.5rem;
    }
}


@media (min-width: 992px) {
    #header-overlay .crx-nav-search__form,
    #header-sticky .crx-nav-search__form {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .crx-search-overlay {
        display: none !important;
    }
}