﻿/* Font faces */
@font-face {
    font-family: 'LabGrotesque';
    src: url('/site.resource/fonts/LabGrotesque/LabGrotesque-Thin.woff2') format('woff2'), url('/site.resource/fonts/LabGrotesque/LabGrotesque-Thin.woff') format('woff'), url('/site.resource/fonts/LabGrotesque/LabGrotesque-Thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LabGrotesque';
    src: url('/site.resource/fonts/LabGrotesque/LabGrotesque-ThinItalic.woff2') format('woff2'), url('/site.resource/fonts/LabGrotesque/LabGrotesque-ThinItalic.woff') format('woff'), url('/site.resource/fonts/LabGrotesque/LabGrotesque-ThinItalic.otf') format('opentype');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'LabGrotesque';
    src: url('/site.resource/fonts/LabGrotesque/LabGrotesque-Light.woff2') format('woff2'), url('/site.resource/fonts/LabGrotesque/LabGrotesque-Light.woff') format('woff'), url('/site.resource/fonts/LabGrotesque/LabGrotesque-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LabGrotesque';
    src: url('/site.resource/fonts/LabGrotesque/LabGrotesque-LightItalic.woff2') format('woff2'), url('/site.resource/fonts/LabGrotesque/LabGrotesque-LightItalic.woff') format('woff'), url('/site.resource/fonts/LabGrotesque/LabGrotesque-LightItalic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'LabGrotesque';
    src: url('/site.resource/fonts/LabGrotesque/LabGrotesque-Regular.woff2') format('woff2'), url('/site.resource/fonts/LabGrotesque/LabGrotesque-Regular.woff') format('woff'), url('/site.resource/fonts/LabGrotesque/LabGrotesque-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LabGrotesque';
    src:
    /* url('/site.resource/fonts/LabGrotesque/LabGrotesque-Italic.woff2') format('woff2'), */
    /* url('/site.resource/fonts/LabGrotesque/LabGrotesque-Italic.woff') format('woff'), */
    url('/site.resource/fonts/LabGrotesque/LabGrotesque-Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'LabGrotesque';
    src:
    /* url('/site.resource/fonts/LabGrotesque/LabGrotesque-Medium.woff2') format('woff2'), */
    /* url('/site.resource/fonts/LabGrotesque/LabGrotesque-Medium.woff') format('woff'), */
    url('/site.resource/fonts/LabGrotesque/LabGrotesque-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LabGrotesque';
    src: url('/site.resource/fonts/LabGrotesque/LabGrotesque-MediumItalic.woff2') format('woff2'), url('/site.resource/fonts/LabGrotesque/LabGrotesque-MediumItalic.woff') format('woff'), url('/site.resource/fonts/LabGrotesque/LabGrotesque-MediumItalic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'LabGrotesque';
    src: url('/site.resource/fonts/LabGrotesque/LabGrotesque-Bold.woff2') format('woff2'), url('/site.resource/fonts/LabGrotesque/LabGrotesque-Bold.woff') format('woff'), url('/site.resource/fonts/LabGrotesque/LabGrotesque-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LabGrotesque';
    src:
    /* url('/site.resource/fonts/LabGrotesque/LabGrotesque-BoldItalic.woff2') format('woff2'), */
    /* url('/site.resource/fonts/LabGrotesque/LabGrotesque-BoldItalic.woff') format('woff'), */
    url('/site.resource/fonts/LabGrotesque/LabGrotesque-BoldItalic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'LabGrotesque';
    src:
    /* url('/site.resource/fonts/LabGrotesque/LabGrotesque-Black.woff2') format('woff2'), */
    /* url('/site.resource/fonts/LabGrotesque/LabGrotesque-Black.woff') format('woff'), */
    url('/site.resource/fonts/LabGrotesque/LabGrotesque-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LabGrotesque';
    src: url('/site.resource/fonts/LabGrotesque/LabGrotesque-BlackItalic.woff2') format('woff2'), url('/site.resource/fonts/LabGrotesque/LabGrotesque-BlackItalic.woff') format('woff'), url('/site.resource/fonts/LabGrotesque/LabGrotesque-BlackItalic.otf') format('opentype');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

:root {
    /* -- St John Red -- */
    --sj-red-rgb: 200, 16, 46;
    --sj-red: rgb(var(--sj-red-rgb));
    /* -- Dark Red -- */
    --sj-dark-red-rgb: 152, 0, 10;
    --sj-dark-red: rgb(var(--sj-dark-red-rgb));
    /* -- Dark Green -- */
    --sj-dark-green-rgb: 19, 50, 43;
    --sj-dark-green: rgb(var(--sj-dark-green-rgb));
    /* -- Medium Green -- */
    --sj-medium-green-rgb: 42, 70, 64;
    --sj-medium-green: rgb(var(--sj-medium-green-rgb));
    /* -- St John Grey - Digital -- */
    --sj-grey-digital-rgb: 248, 247, 245;
    --sj-grey-digital: rgb(var(--sj-grey-digital-rgb));
    /* -- St John Grey 40 -- */
    --sj-grey-40-rgb: 245, 244, 241;
    --sj-grey-40: rgb(var(--sj-grey-40-rgb));
    /* -- Grey (Body Text) -- */
    --sj-grey-body-rgb: 64, 64, 64;
    --sj-grey-body: rgb(var(--sj-grey-body-rgb));
    /* -- Light Green (buttons) -- */
    --sj-light-green-rgb: 87, 194, 147;
    --sj-light-green: rgb(var(--sj-light-green-rgb));
    /* -- Grey (Glass) -- */
    --sj-grey-glass-rgb: 231, 234, 233;
    --sj-grey-glass: rgb(var(--sj-grey-glass-rgb));
    /* -- Grey (border) -- */
    --sj-grey-border-rgb: 221, 225, 230;
    --sj-grey-border: rgb(var(--sj-grey-border-rgb));
    --sj-border-radius-md: 0.375rem;
    --sj-border-radius-lg: 1.25rem;
    /* Section title sizes */
    --default-section-title-font-size-xs: 1.125rem;
    --default-section-title-font-size-sm: 1.75rem;
    --default-section-title-font-size-md: 2.125rem;
    --default-section-title-font-size-lg: 2.75rem;
    /* Bootstrap fonts */
    --bs-font-sans-serif: 'LabGrotesque', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-font-size: 1rem;
    --bs-body-font-weight: 400;
    --bs-body-line-height: 1.5;
    --bs-heading-font-family: var(--bs-font-sans-serif);
    --bs-heading-font-weight: 700;
    --bs-heading-line-height: 1.2;
    /* Bootstrap colours */
    --bs-black-rgb: 9, 9, 9;
    --bs-black: rgb(var(--bs-black-rgb));
    --bs-warning-rgb: 255, 210, 102;
    --bs-warning: rgb(var(--bs-warning-rgb));
    --bs-light-rgb: var(--sj-grey-40-rgb);
    --bs-primary-rgb: var(--sj-red-rgb);
    --bs-primary: rgb(var(--bs-primary-rgb));
    --bs-primary-hover: oklch(from var(--bs-primary) calc(l - 0.1) c h);
    --bs-primary-active: oklch(from var(--bs-primary) calc(l - 0.2) c h);
    /* Bootstrap borders */
    --bs-border-radius: var(--sj-border-radius-lg);
    /* Utils */
    --spacing: 0.25rem;
}

/* Base */

body {
    min-height: 100vh;
    color: var(--bs-black);
    font-smooth: always;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img {
    width: 100%;
    height: auto;
}

/* Bootstrap Spacing */

.gap-4\.5 {
    gap: 2rem;
}

.gap-5\.5 {
    gap: 4rem;
}

.uses-wide-row-gutter .row {
    --bs-gutter-x: 3.5rem;
}

/* Bootstrap Buttons */

.btn {
    --bs-border-width: 2px;
    --bs-border-radius: var(--sj-border-radius-md);
    --bs-btn-padding-x: 1.5rem;
    --bs-btn-padding-y: 0.75rem;
    --bs-btn-font-size: 1rem;
    --bs-btn-font-weight: 500;
    flex-shrink: 0;
}

.btn-primary {
    --bs-btn-color: white;
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-color: white;
    --bs-btn-hover-bg: var(--bs-primary-hover);
    --bs-btn-hover-border-color: var(--bs-primary-hover);
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: white;
    --bs-btn-active-bg: var(--bs-primary-active);
    --bs-btn-active-border-color: var(--bs-primary-active);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: white;
    --bs-btn-disabled-bg: var(--bs-primary);
    --bs-btn-disabled-border-color: var(--bs-primary);
}

.btn-outline-dark {
    --bs-btn-color: var(--sj-dark-green);
    --bs-btn-border-color: var(--bs-black);
    --bs-btn-hover-color: white;
    --bs-btn-hover-bg: var(--sj-dark-green);
    --bs-btn-hover-border-color: var(--sj-dark-green);
}

.btn-green-light {
    --bs-btn-color: var(--sj-dark-green);
    --bs-btn-bg: var(--sj-light-green);
    --bs-btn-border-color: var(--sj-light-green);
    --bs-btn-hover-color: var(--bs-black);
    --bs-btn-hover-bg: white;
    --bs-btn-hover-border-color: white;
}

.btn-light-dark {
    --bs-btn-color: var(--bs-black);
    --bs-btn-bg: white;
    --bs-btn-border-color: white;
    --bs-btn-hover-color: white;
    --bs-btn-hover-bg: var(--bs-black);
    --bs-btn-hover-border-color: var(--bs-black);
}

.btn-to-red {
    --bs-btn-hover-color: white;
    --bs-btn-hover-bg: var(--sj-red);
    --bs-btn-hover-border-color: var(--sj-red);
}

/* Bootstrap Text */

.text-bg-light,
.text-bg-white {
    color: var(--bs-black) !important;
}

.text-bg-white {
    background-color: var(--bs-white) !important;
}

/* Bootstrap Badge */

.badge {
    --bs-badge-font-size: 0.875rem;
    --bs-badge-padding-x: 0.5rem;
    --bs-badge-padding-y: 0.5rem;
}

/* Bootstrap Card */

.card {
    --bs-card-border-width: 0rem;
    --bs-card-spacer-x: 2rem;
    --bs-card-spacer-y: 1.5rem;
    --bs-card-inner-border-radius: calc(var(--bs-card-border-radius) - (var(--bs-card-border-width)))
}

@media (min-width: 768px) {
    .card {
        --bs-card-spacer-x: 2rem;
        --bs-card-spacer-y: 1.5rem;
    }
}

@media (min-width: 992px) {
    .card {
        --bs-card-spacer-x: 2.5rem;
        --bs-card-spacer-y: 2.5rem;
    }
}

img.card-img,
img.card-img-top,
.card-img img,
.card-img-top img {
    width: 100%;
    height: auto;
    aspect-ratio: var(--sj-card-img-aspect-ratio, 4/3);
    object-fit: cover;
}

.card-img,
.card-img-top {
    overflow: hidden;
}

.card-img-zoom-in img {
    transition: transform 0.3s ease-in-out;
}

a.card:hover .card-img-zoom-in img,
.card-img-zoom-in:hover img {
    transform: scale(1.1);
}

.card-img-zoom-over {
    transition: transform 0.3s ease-in-out;
}

    a.card:hover .card-img-zoom-over,
    .card-img-zoom-over:hover {
        transform: scale(1.1);
    }

.card-body {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 1rem;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--sj-grey-body);
}

.card-title {
    --bs-card-title-spacer-y: 0;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--bs-black);
    text-wrap: balance;
}

.card-badge {
    --bs-badge-border-radius: 0.25rem;
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.card-clear {
    --bs-card-bg: transparent;
    --bs-card-title-spacer-y: 0;
    --bs-card-spacer-x: 0;
    --bs-card-spacer-y: 0;
    gap: 1.5rem;
}

    a.card-clear,
    .card-clear a.card-title {
        text-decoration: none;
    }

        a.card-clear:hover .card-title,
        .card-clear a.card-title:hover {
            color: var(--sj-red);
        }

/* Grid cards */

.grid-cards {
    --grid-cols: 3;
    --cards-gap: 1.5rem;
    display: grid;
    grid-template-columns: repeat(var(--grid-cols), 1fr);
    gap: var(--cards-gap);
}

@media (min-width: 576px) {
    .grid-cards {
        --cards-gap: 3.5rem;
    }
}

.grid-cols-2 {
    --grid-cols: 2;
}

.grid-cols-4 {
    --grid-cols: 4;
}

@media (min-width: 768px) {
    .grid-cols-md-4 {
        --grid-cols: 4;
    }
}

@media (min-width: 992px) {
    .grid-cols-lg-4 {
        --grid-cols: 4;
    }
}

/* Image */

.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Aspect ratio */

.aspect-1 {
    aspect-ratio: 1;
}

.aspect-4\/3 {
    aspect-ratio: 4/3;
}

.aspect-5\/4 {
    aspect-ratio: 5/4;
}

.aspect-16\/9 {
    aspect-ratio: 16/9;
}

.aspect-2\.35\/1 {
    aspect-ratio: 2.35/1;
}

/* Links with a chevron */

.chevron-link {
    color: var(--sj-medium-green);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Navigation chevron hover effect */
.nav-item .nav-link svg-icon svg {
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-link svg-icon svg {
    transform: rotate(180deg);
}

/* Menu link hover effects */
.menu-link {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

    .menu-link:hover {
        color: var(--sj-red);
        text-decoration: none;
    }

    .menu-link .menu-link-icon {
        transition: color 0.3s ease;
    }

    .menu-link:hover .menu-link-icon {
        color: var(--sj-red);
    }

/* Simple menu link styles */
.menu-link-simple {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

    .menu-link-simple:hover {
        color: var(--sj-red);
        text-decoration: none;
    }

.horizontal-bordered .menu-link-simple {
    margin-bottom: 0;
}

.menu-link-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.menu-link-title {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--bs-black);
    margin: 0;
    transition: color 0.3s ease;
    letter-spacing: 0.00963rem;
}

.menu-link-simple:hover .menu-link-title {
    color: var(--sj-red);
}

.menu-link-desc {
    font-size: 0.8125rem;
    color: var(--sj-grey-body);
    margin: 0;
    line-height: 1.3rem;
    transition: color 0.3s ease;
    font-weight: 300;
}

.menu-link-simple:hover .menu-link-desc {
    color: var(--sj-red);
}

/* First Aid Products card hover effects */
.menu-link-simple:hover .d-flex {
    border-color: var(--sj-red) !important;
}

/* Wizard CTA hover effects */
.wizard-cta:hover {
    color: var(--sj-red) !important;
}

    .wizard-cta:hover .wizard-arrow {
        transform: translateX(4px);
    }

.chevron-link::after,
.with-chevron::after {
    content: "";
    --default-size: 0.75rem;
    width: var(--size, var(--default-size));
    height: var(--size, var(--default-size));
    background-image: url("svg/chevron-right.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.chevron-link,
.chevron-link::after,
.with-chevron::after {
    transition-property: color, background-color;
    transition-duration: 0.2s;
    transition-timing-function: ease;
}

@supports (mask-image: url()) {

    .chevron-link::after,
    .with-chevron::after {
        mask: no-repeat center center url("svg/chevron-right.svg");
        background-color: currentColor;
        background-image: none;
    }
}

/* Disable CSS arrow for specific mega menu links */
.chevron-link.no-css-arrow::after {
    display: none;
}

.chevron-link:hover,
.with-chevron:hover {
    color: var(--sj-red);
}

/* Generic section */

section {
    overflow: hidden;
}

.section-overline {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
}

.section-title {
    font-size: var(--section-title-font-size, var(--default-section-title-font-size-sm));
    font-weight: 900;
    line-height: 1.4;
    margin: 0;
    text-wrap: balance;
}

.section-description {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    text-wrap: balance;
}

@media (min-width: 576px) {
    .section-title {
        --section-title-font-size: var(--default-section-title-font-size-md);
    }
}

@media (min-width: 768px) {
    .section-title {
        --section-title-font-size: var(--default-section-title-font-size-lg);
    }
}

/* Alert banner */

.alert-banner {
    margin-bottom: 0;
    border: none;
    border-radius: 0;
    padding: 0.75rem 0;
    text-align: center;
    text-wrap: balance;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

    .alert-banner.alert-warning {
        --bs-alert-bg: var(--bs-warning);
        --bs-alert-color: var(--bs-black);
    }

/* Top navbar */

.navbar-top {
    padding: 0.75rem 0;
}

    .navbar-top .nav-link {
        color: var(--sj-dark-green);
        font-size: 1rem;
        font-weight: 500;
        line-height: 1.5;
        padding: 0;
        transition: color 0.2s ease-in-out;
    }

        .navbar-top .nav-link:hover {
            color: var(--sj-red);
        }

.emergency:hover {
    color: var(--sj-red);
}

/* Search Form */
.search-form {
    position: relative;
    display: flex;
    height: 100%;
    align-items: center;
    gap: 0.5rem;
}

    .search-form label {
        cursor: pointer;
        transition: color 0.2s ease-in-out;
        padding: 0.25rem 0;
    }

        .search-form label:hover {
            color: var(--sj-red);
        }

    .search-form input {
        overflow: hidden;
        padding: 0;
        outline: 1px solid rgba(0, 0, 0, 0.5);
        outline-offset: 1px;
        transition-property: opacity, width;
        border-radius: 0.25rem;
        background-color: transparent;
    }

        .search-form input:focus {
            background-color: transparent;
            box-shadow: 0 0 0 2px var(--bs-black);
        }

        .search-form input + button {
            position: absolute;
            right: 0.125rem;
            padding: 0.25rem 0.5rem;
            min-height: 1.2rem;
            display: flex;
            align-items: center;
            overflow: hidden;
            visibility: hidden;
            transition-property: opacity, padding, width;
            border-radius: 0.25rem;
        }

        .search-form input,
        .search-form input + button {
            width: 0;
            border: 0;
            opacity: 0;
            transition-duration: 200ms;
            transition-timing-function: ease-in-out;
        }

.search--label-text {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--sj-dark-green);
}

.search-form:focus-within .search--label-text {
    display: none;
}

.search-form:focus-within input {
    opacity: 1;
    width: 180px;
    padding: 0.25rem 3rem 0.25rem 0.5rem;
}

@media (min-width: 576px) {
    .search-form:focus-within input {
        width: 280px;
    }
}

.search-form:focus-within input + button {
    visibility: visible;
    opacity: 1;
    width: auto;
}

/* Main navbar */

.navbar-main {
    --bs-navbar-padding-x: 0;
    --bs-navbar-padding-y: 0;
    z-index: 1000;
    border-bottom: 1px solid #DDE1E6;
}

    .navbar-main .navbar-nav {
        border-bottom: 1px solid var(--sj-grey-border);
    }

    .navbar-main .nav-item {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
        border-top: 1px solid var(--sj-grey-border);
    }

@media (min-width: 992px) {

    .navbar-main .navbar-nav,
    .navbar-main .nav-item {
        border: none;
        padding: 0;
    }
}

.navbar-main .nav-item.nav-item-back,
.navbar-main .nav-item.nav-item-search-form {
    padding: 1rem 0;
}

.navbar-main .navbar-top-copy {
    margin-top: 1rem;
}

@media (min-width: 992px) {
    .navbar-main .navbar-nav {
        /* https://clamp.font-size.app/?config=eyJyb290IjoiMTYiLCJtaW5XaWR0aCI6Ijk5MnB4IiwibWF4V2lkdGgiOiIxNDAwcHgiLCJtaW5Gb250U2l6ZSI6IjAuMjVyZW0iLCJtYXhGb250U2l6ZSI6IjFyZW0ifQ%3D%3D */
        --gap-vw: -1.5735rem + 2.9412vw;
        gap: clamp(0.25rem, var(--gap-vw), 1rem);
    }
}

.navbar-main .navbar-brand {
    padding: 0.75rem 0;
}

    .navbar-main .navbar-brand img {
        height: 2.5rem;
    }

.navbar-main .nav-item-search-form {
    --bs-border-radius: var(--sj-border-radius-md);
    --bs-border-color: var(--sj-dark-green);
}

@media (min-width: 992px) {
    .navbar-main .navbar-brand {
        padding: 1rem 0;
    }

    .navbar-main .nav-item-search-form {
        margin-top: 0.25rem;
    }
}

.navbar-main .nav-item-search-form .btn {
    --bs-border-width: 1px;
    --bs-btn-border-color: var(--sj-dark-green);
    display: flex;
}

.navbar-main .nav-link {
    --bs-nav-link-padding-x: 1rem;
    --bs-nav-link-padding-y: 0.5rem;
    color: var(--sj-dark-green);
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    transition: color 0.2s ease-in-out;
    white-space: nowrap;
}

@media (max-width: 440px) {
    .navbar-main .nav-link {
        --bs-nav-link-padding-x: 0.5rem;
    }

    .navbar {
        --bs-navbar-brand-margin-end: 0;
    }
}

.navbar-main .navbar-nav .nav-link {
    --bs-nav-link-padding-x: 0;
    --bs-nav-link-padding-y: 0.5rem;
    justify-content: space-between;
}

.navbar-main .nav-link img,
.navbar-main .nav-link svg-icon {
    width: 1.5rem;
    height: 1.5rem;
    transition: color 0.2s ease-in-out;
}

@media (min-width: 992px) {
    .navbar-main .nav-link {
        --bs-nav-link-padding-x: 1rem;
        --bs-nav-link-padding-y: 0.5rem;
        /* https://clamp.font-size.app/?config=eyJyb290IjoiMTYiLCJtaW5XaWR0aCI6Ijk5MnB4IiwibWF4V2lkdGgiOiIxNDAwcHgiLCJtaW5Gb250U2l6ZSI6IjAuNXJlbSIsIm1heEZvbnRTaXplIjoiMS4xMjVyZW0ifQ%3D%3D */
        --font-size-vw: -0.1618rem + 1.4706vw;
        font-size: clamp(0.5rem, var(--font-size-vw), 1.125rem);
        justify-content: center;
    }

        .navbar-main .nav-link img,
        .navbar-main .nav-link svg-icon {
            width: 0.75rem;
            height: 0.75rem;
        }
}

.navbar-main .nav-link-back {
    display: block;
    color: var(--bs-black);
    text-decoration: none;
}

    .navbar-main .nav-link-back img,
    .navbar-main .nav-link-back svg-icon {
        width: 0.75rem;
        height: 0.75rem;
        transform: rotate(180deg);
    }

.navbar-main .navbar-nav .nav-link img,
.navbar-main .navbar-nav .nav-link svg-icon {
    transform: rotate(-90deg);
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link:focus,
.navbar-main .nav-item.show .nav-link {
    color: var(--sj-red);
}

    .navbar-main .nav-item.show .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 0.125rem;
        background-color: var(--sj-red);
    }

.navbar-main .nav-item.open {
    border: none;
}

    .navbar-main .nav-item.open .nav-link {
        font-weight: 900;
        font-size: 1.5rem;
        line-height: 1.2;
    }

        .navbar-main .nav-item.open .nav-link,
        .navbar-main .nav-item.open .nav-link:hover {
            color: var(--bs-black);
        }

            .navbar-main .nav-item.open .nav-link img,
            .navbar-main .nav-item.open .nav-link svg-icon {
                display: none;
            }

.navbar-main .nav-item-back,
.navbar-main:has(.nav-item.open) .nav-item:not(.open),
.navbar-main:has(.nav-item.open) .navbar-top-copy {
    display: none;
}

.navbar-main:has(.nav-item.open) .nav-item-back.show,
.navbar-main:has(.nav-item.open) [data-submenu] {
    display: block;
}

@media (min-width: 992px) {

    .navbar-main .navbar-nav .nav-link img,
    .navbar-main .navbar-nav .nav-link svg-icon {
        transform: rotate(0);
    }
}

.navbar-toggler {
    --bs-border-width: 0;
}

/* Menus */

/* Menu link styles */

.menu-link {
    color: var(--bs-black);
    text-decoration: none;
    display: block;
    padding: 1rem 0;
    transition: color 0.2s ease-in-out;
}

@media (min-width: 992px) {
    .menu-link {
        padding: 0.5rem 0;
    }
}

.menu-link:hover {
    color: var(--sj-red);
}

/* Mega menu */

.mega-menu {
    display: none;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.4;
}

    .mega-menu p.section-description,
    #mega-menu-container p.section-description {
        font-size: 1.2rem;
        font-weight: 300;
        line-height: 1.4;
        letter-spacing: 0.154px;
        color: var(--sj-grey-body);
    }

    .mega-menu i,
    .clickable-menu-section i {
        margin-right: 0.5rem;
        line-height: inherit;
        font-size: 1.25006rem;
        width: 2rem;
        text-align: center;
        color: #404040;
    }

    .mega-menu .chevron-link,
    #mega-menu-container .chevron-link {
        font-size: 0.875rem;
        font-weight: 500;
    }

        .mega-menu .chevron-link::after,
        #mega-menu-container .chevron-link::after {
            width: 0.5rem;
            height: 0.5rem;
        }

    .mega-menu h5,
    #mega-menu-container h5 {
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

.clickable-menu-section .with-chevron::after {
    width: 0.5rem;
    height: 0.5rem;
    margin-left: 0.5rem;
}

.menu-category-heading {
    font-size: 0.8rem;
    /* Smaller size */
    color: #888888;
    /* Darker grey */
    text-transform: uppercase;
    /* All caps */
    transition: color 0.2s ease-in-out;
    /* Smooth transition for hover */
    /* mb-2 is applied via inline class */
}

    .menu-category-heading a {
        color: #888888;
        text-decoration: none;
    }

        .menu-category-heading a:hover,
        .menu-category-heading:hover {
            color: var(--sj-red);
            /* Red color on hover for heading and arrow */
            cursor: pointer;
        }

.menu-category-arrow-icon,
.with-chevron {
    transition: transform 0.2s cubic-bezier(.4, 0, .2, 1);
}

.menu-category-heading:hover .menu-category-arrow-icon,
.clickable-menu-section:hover .with-chevron::after {
    transform: translateX(0.25em);
}

.menu-category-arrow-icon {
    width: 0.5rem;
    height: 0.5rem;
    vertical-align: middle;
}

.menu-link:hover,
.menu-link:focus {
    color: var(--sj-red);
}

.menu-link {
    display: flex;
    align-items: center;
}

.menu-link-labels {
    display: flex;
    flex-direction: column;
}

.menu-link-icon {
    flex-shrink: 0;
}

/* .menu-category-arrow-icon mask-based CSS removed: now handled by inline SVG with fill=currentColor */

@media (min-width: 992px) {
    .mega-menu {
        position: absolute;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 100%;
        max-width: 100vw;
        z-index: 1000;
    }

    /* Custom class for First Aid Kits mega-menu */
    .fixed-width-columns {
        width: auto !important;
    }

        .fixed-width-columns .container {
            width: auto !important;
            max-width: none !important;
        }

        .fixed-width-columns .row {
            width: auto !important;
            margin: 0 !important;
            display: block !important;
        }

        .fixed-width-columns .col-12 {
            padding: 0 !important;
            max-width: none !important;
        }

        .fixed-width-columns .menu-items-container {
            display: flex !important;
            justify-content: center !important;
            width: auto !important;
            margin: 0 auto !important;
        }

        .fixed-width-columns > .container > .row {
            border: none !important;
        }

        .fixed-width-columns .menu-column {
            width: 200px !important;
            flex: 0 0 200px !important;
            padding: 0 15px !important;
            margin: 0 !important;
        }
}

.nav-item.show .mega-menu {
    display: block;
}

.mega-menu > .container {
    background-color: white;
}

    .mega-menu > .container > .row {
        border: none;
    }

.navbar-main:has(.nav-item.open) .mega-menu > .container > .row {
    border: none;
}

@media (min-width: 992px) {
    .mega-menu .container {
        box-shadow: 0 10px 20px -1px rgb(0 0 0 / 0.1);
        border-radius: 0 0 var(--sj-border-radius-lg) var(--sj-border-radius-lg);
    }
}

.mega-menu-left {
    padding: 0;
}

.mega-menu-right {
    padding: 1.5rem;
}

@media (min-width: 992px) {

    .mega-menu-left,
    .mega-menu-right {
        padding: 2rem 3rem;
    }

    .mega-menu > .container > .row,
    .mega-menu-left {
        border-bottom-left-radius: var(--sj-border-radius-lg);
    }

    .mega-menu > .container > .row,
    .mega-menu-right {
        border-bottom-right-radius: var(--sj-border-radius-lg);
    }
}

.mega-menu-featured .section-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: var(--bs-black);
}

.mega-menu-featured .section-description {
    color: var(--sj-grey-body);
    margin-bottom: 1rem;
}

.mega-menu-featured .cta-link {
    color: var(--sj-medium-green);
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    line-height: 1.4;
}

    .mega-menu-featured .cta-link:hover {
        text-decoration: none;
        color: var(--sj-red);
    }

.mega-menu-left {
    margin: 1rem 0;
}

    .mega-menu-left .menu-items {
        border-bottom: 1px solid var(--sj-grey-border);
    }

.menu-items div.bordered {
    padding: 1rem;
    border: 1px solid var(--sj-grey-border);
    border-radius: 1rem;
    background: white;
}

.mega-menu-left .menu-link {
    border-top: 1px solid var(--sj-grey-border);
}

@media (min-width: 992px) {
    .mega-menu-left {
        margin: 0;
    }

        .mega-menu-left .menu-items,
        .mega-menu-left .menu-link {
            border: none;
        }
}

.mega-menu-right .blog-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow: visible;
}

    .mega-menu-right .blog-items .section-title {
        --sj-section-title-font-size: var(--default-section-title-font-size-xs);
        font-weight: 700;
        line-height: 1.5;
    }

.mega-menu-right .menu-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .mega-menu-right .menu-link img,
    .mega-menu-right .menu-link svg-icon {
        --size: 0.75rem;
        width: var(--size);
        height: var(--size);
    }

/* Dropdown menu */

.nav-item:has(.dropdown-menu) {
    position: relative;
}

.dropdown-menu {
    --bs-dropdown-border-width: 0;
    --bs-dropdown-padding-x: 0;
    --bs-dropdown-padding-y: 0;
    --bs-dropdown-font-size: 1.125rem;
    top: 100%;
    left: 0;
    font-weight: 500;
    line-height: 1.4;
    border: none;
}

.navbar-main:has(.nav-item.open) .dropdown-menu {
    border: none;
}

@media (min-width: 992px) {
    .dropdown-menu {
        --bs-dropdown-padding-x: 2rem;
        --bs-dropdown-padding-y: 2rem;
        border-radius: 0 0 var(--bs-border-radius) var(--bs-border-radius);
        box-shadow: 0 10px 20px -1px rgb(0 0 0 / 0.1);
        width: 20rem;
    }
}

.nav-item.show .dropdown-menu {
    display: block;
}

.dropdown-menu .menu-items {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--sj-grey-border);
}

.dropdown-menu .menu-link + .menu-link {
    border-top: 1px solid var(--sj-grey-border);
}

@media (min-width: 992px) {
    .dropdown-menu .menu-items {
        border-bottom-width: 0;
    }

    .dropdown-menu .menu-link + .menu-link {
        border-top-width: 0;
    }
}

/* Sections */

.a-section {
    padding: 3rem 0;
    /* overflow: hidden; */
}

@media (min-width: 576px) {
    .a-section {
        padding: 5rem 0;
    }
}

/* Hero Carousel */

.hero-carousel {
    position: relative;
    background: linear-gradient(90deg, rgb(5, 70, 58) 0%, rgb(20, 49, 43) 100%);
    color: white;
    overflow: hidden;
}

@media (min-width: 992px) {
    .hero-carousel {
        background: var(--sj-medium-green);
    }
}

.hero-slide {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-content {
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

    .hero-content .hero-copy {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-content .section-title {
        font-size: min(5rem, calc(1.375rem + 5.5vw));
        font-weight: 900;
        line-height: 100%;
        letter-spacing: -0.05188rem;
    }

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Swiper */

.swiper-pagination {
    --swiper-pagination-bottom: 1.5rem;
    position: relative;
    display: flex;
    gap: 0.375rem;
}

@media (min-width: 576px) {
    .swiper-pagination {
        --swiper-pagination-bottom: 2.5rem;
    }
}

@media (min-width: 992px) {
    .swiper-pagination {
        --swiper-pagination-bottom: 5rem;
    }
}

.swiper-pagination-bullet {
    --swiper-pagination-bullet-horizontal-gap: 0;
    --swiper-pagination-bullet-size: 0.75rem;
    --swiper-pagination-bullet-opacity: 100%;
    --swiper-pagination-bullet-inactive-opacity: 20%;
    --swiper-pagination-color: white;
    --swiper-pagination-bullet-inactive-color: rgba(255, 255, 255, 0.01);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Help section */

.help-section .help-header {
    text-align: center;
    max-width: 48rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 auto 2rem;
}

.help-section .section-title {
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 0;
}

.help-section .section-description {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--sj-grey-body);
}

.help-grid {
    row-gap: 1.5rem;
    column-gap: 2rem;
    margin: 0 auto;
}

    .help-grid .chevron-link {
        color: var(--sj-medium-green);
    }

.help-card {
    background-color: var(--sj-grey-digital);
}

/* Us section */

.us-section {
    background-color: var(--sj-grey-40);
}

.us-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.our-why {
    display: flex;
    gap: 4rem;
}

    .our-why .section-title {
        font-size: 1.75rem;
    }

@media (min-width: 768px) {
    .our-why .section-title {
        font-size: 2.125rem;
    }
}

.impact-stats {
    background-color: var(--sj-grey-glass);
    border-radius: var(--sj-border-radius-lg);
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
}

@media (max-width: 768px) {
    .impact-stats {
        gap: 3rem;
    }
}

.impact-stats-content {
    display: grid;
    grid-template-columns: 5fr 2fr;
    gap: 4rem;
    align-items: center;
}

    .impact-stats-content img {
        width: 20rem;
    }

@media (max-width: 768px) {
    .impact-stats-content img {
        width: 17.5rem;
    }
}

.impact-stats-grid {
    display: grid;
    grid-template-columns: 1fr fit-content(50%);
    grid-template-rows: repeat(2, auto);
    column-gap: 2rem;
    row-gap: 1.5rem;
}

    .impact-stats-grid .stat {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0.5rem;
        border-bottom: 2px solid var(--sj-grey-body);
        padding: 1rem 0;
        text-align: center;
    }

        .impact-stats-grid .stat:first-child {
            grid-column: 1;
            grid-row: 1 / span 2;
            gap: 0.75rem;
        }

        .impact-stats-grid .stat:last-of-type {
            border-bottom: none;
        }

@media (min-width: 992px) {
    .impact-stats-grid .stat {
        border-left: 2px solid var(--sj-grey-body);
        padding: 0 1.25rem;
        text-align: left;
        border-bottom: none;
    }

        .impact-stats-grid .stat:first-child {
            border-left: none;
            padding: 0;
        }
}

.impact-stats-grid .stat-number {
    font-size: 2.75rem;
    font-weight: 900;
    font-style: italic;
    line-height: 1.3;
    margin-bottom: 0;
    color: var(--sj-medium-green);
}

@media (max-width:768px) {
    .impact-stats-grid .stat-number {
        font-size: 2.1875rem;
        font-style: normal;
        line-height: 1.4;
    }
}

.impact-stats-grid .stat-label {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--sj-grey-body);
    /* text-wrap: balance; */
}

.impact-stats-grid .stat:first-child .stat-number {
    font-size: 4.3125rem;
    order: 2;
}

@media (max-width: 768px) {
    .impact-stats-grid .stat:first-child .stat-number {
        font-size: 2.75rem;
        font-style: normal;
        line-height: 1.3;
    }
}

.impact-stats-grid .stat:first-child .stat-label {
    font-size: 2.1875rem;
    font-weight: 900;
    color: var(--bs-black);
    order: 1;
}

@media (max-width: 768px) {
    .impact-stats-grid .stat:first-child .stat-label {
        font-size: 1.75rem;
        line-height: 1.3;
    }
}

/* Community programs */

.community-programs {
    --sj-card-img-aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

    .community-programs img.card-img {
        aspect-ratio: auto;
    }

    .community-programs header .section-title {
        font-size: 1.75rem;
    }

@media (min-width: 768px) {
    .community-programs header .section-title {
        font-size: 2.125rem
    }
}

@media (min-width: 992px) {
    .community-programs {
        --sj-card-img-aspect-ratio: 4/3;
    }
}

/* Card product */

.card-product {
    --sj-card-img-aspect-ratio: 174/135;
    --bs-card-bg: white;
    --bs-card-title-spacer-y: 0;
    --bs-card-spacer-x: 1rem;
    --bs-card-spacer-y: 1.125rem;
    position: relative;
}

@media (min-width: 768px) {
    .card-product {
        --sj-card-img-aspect-ratio: 319/135;
    }
}

@media (min-width: 992px) {
    .card-product {
        --sj-card-img-aspect-ratio: 287/245;
    }
}

a.card-product {
    text-decoration: none;
}

.card-product .card-img,
.card-product .card-img-top {
    object-fit: contain;
}

.card-product .card-title {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--bs-black);
    letter-spacing: -2%;
    text-wrap: initial;
}

a.card-product:hover .card-title {
    color: var(--sj-red);
}

.card-product .card-category {
    margin: 0;
}

    .card-product .card-category,
    .card-product .card-category a {
        font-size: 0.875rem;
        font-weight: 400;
        line-height: 1.2;
        color: var(--sj-grey-body);
    }

        .card-product a.card-category,
        .card-product .card-category a {
            text-decoration: none;
        }

            .card-product a.card-category:hover,
            .card-product .card-category a:hover {
                text-decoration: underline;
            }

.card-product .card-price {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--bs-black);
    margin: 0;
}

/* Training */

.training-section {
    background-color: var(--sj-medium-green);
    color: white;
}

    /* push the button down on mobile if title or desc falls on 2 lines */
    .training-section .card-body a {
        margin-top: auto;
    }

.training-grid {
    --cards-gap: 1.5rem;
}

@media (min-width: 992px) {
    .training-grid {
        --cards-gap: 3.5rem;
    }

    .training-section header .section-title {
        line-height: 0.9;
    }
}

/* First aid essentials */

.first-aid-essentials-section {
    background-color: var(--sj-grey-digital);
    color: var(--bs-black);
}

.product-grid {
    --cards-gap: 1.5rem 1rem;
    --sj-card-img-aspect-ratio: 16/9;
}

    .product-grid .card-img img {
        object-fit: initial;
    }

/* Join the team */

.join-section {
    padding: 3rem 0;
    background: linear-gradient(90deg, var(--sj-red) 0%, var(--sj-dark-red) 100%);
    color: white;
}

/* Updates */

@media (min-width: 768px) {
    .updates-section .card-img {
        aspect-ratio: 2.23/1;
    }
}


@media (min-width: 992px) {
    .updates-section .card-img {
        aspect-ratio: 4/3;
    }
}

/* Collage */

.img-collage {
    display: block;
    grid-template-columns: 2.5fr 3fr 1fr;
    grid-template-rows: 2fr 2fr 2fr 0.5fr;
    gap: 1.75em;
    grid-auto-flow: row;
    grid-template-areas:
        ".            collage-top    collage-top"
        "collage-left collage-top    collage-top"
        "collage-left collage-bottom .          "
        ".            collage-bottom .          ";
}

@media (max-width: 767.98px) {
    .img-collage img {
        aspect-ratio: 426/210;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .img-collage img {
        aspect-ratio: 718/375;
    }
}

@media (min-width: 992px) {
    .img-collage {
        display: grid;
    }
}

.collage-left {
    grid-area: collage-left;
    height: 15.375rem;
}

.collage-top {
    grid-area: collage-top;
    width: 21.76719rem;
    height: 15.27525rem;
}

@media (max-width: 768px) {
    .collage-top {
        width: 100%;
    }
}

.collage-bottom {
    grid-area: collage-bottom;
    width: 15.4375rem;
    height: 10rem;
}

/* Util */

@media (max-width: 768px) {
    .container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (max-width: 440px) {

    .container,
    .container-fluid,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

.top-\.5 {
    top: .125rem;
}

.size-1,
.size-2,
.size-3,
.size-4 {
    --computed: calc(var(.25) * --size);
    width: var(--computed);
    height: var(--computed);
}

.size-1 {
    --size: 1
    /* 0.25rem */
}

.size-2 {
    --size: 2
    /* 0.5rem */
}

.size-3 {
    --size: 3
    /* 0.75rem */
}

.size-4 {
    --size: 4;
    /* 1rem */
}

@media (min-width: 992px) {
    .h-lg-100 {
        height: 100%;
    }

    .w-lg-59 {
        width: calc(var(--spacing) * 59)
    }
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-0 {
    z-index: 0;
}

/* Footer */

footer {
    background-color: var(--sj-grey-digital);
    color: var(--sj-grey-body);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.4;
}

@media (max-width: 768px) {
    footer {
        padding-top: 0 !important;
    }
}

.first-nations-recognition {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: visible;
}

    .first-nations-recognition > * {
        flex: 1 1 0;
        width: 100%;
    }

@media (min-width: 992px) {
    .first-nations-recognition {
        flex-direction: row;
        gap: 0 5rem;
    }
}

.first-nations-recognition .section-title {
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--bs-black);
}

.first-nations-img {
    height: 10rem;
    top: -5rem;
}

@media (min-width: 992px) {
    .first-nations-img {
        position: absolute;
        height: auto;
    }
}

.first-nations-recognition .chevron-link {
    color: var(--bs-black);
}

    .first-nations-recognition .chevron-link:hover {
        color: var(--sj-red);
    }

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 3.5rem;
    row-gap: 2rem;
}

    .footer-grid .section-title {
        color: var(--bs-black);
        font-size: 1.125rem;
        font-weight: 700;
        line-height: 1.4;
    }

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 0.75fr 1.5fr 1fr;
    }
}

.footer-grid > * {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: start;
}

.footer-logo,
.footer-logo svg {
    width: auto;
    max-height: 2rem;
}

.footer-contact {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .footer-contact a {
        color: inherit;
        text-decoration: none;
    }

        .footer-contact a:hover {
            text-decoration: underline;
        }

.footer-emergency {
    color: var(--bs-black);
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.2;
    text-wrap: balance;
}

.quick-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
    margin-top: -0.5rem
}

.quick-links a {
    color: inherit;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: color 0.2s ease-in-out;
}

    .quick-links a:hover {
        color: var(--sj-red);
    }

.mobile-app .btn {
    display: inline-flex;
    gap: 0.5rem;
    text-wrap: nowrap;
}

.mobile-app img {
    height: 1.5rem;
}

.footer-bottom {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--sj-grey-body);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: space-between;
    align-items: start;
    font-size: 0.75rem;
}

.footer-copyright {
    display: flex;
    gap: 0 .5rem;
    flex-wrap: wrap;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .footer-legal a {
        color: inherit;
        display: block;
        text-decoration: none;
    }

@media (min-width: 992px) {
    .footer-legal a {
        text-decoration: underline;
    }
}

.footer-legal a:hover {
    color: var(--sj-red);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    color: var(--bs-black);
}

    .footer-social a {
        --size: 2rem;
        color: inherit;
        text-decoration: none;
        font-size: calc(.8 * var(--size));
        width: var(--size);
        height: var(--size);
        display: flex;
        justify-content: center;
    }

        .footer-social a:hover {
            color: var(--sj-red);
        }

/* Underlined link hover effect - same as footer links */
.text-decoration-underline:hover {
    color: var(--sj-red) !important;
}

@media (min-width: 768px) {
    .footer-social {
        flex-wrap: nowrap;
    }

        .footer-social a {
            --size: 3rem;
        }
}

@media (min-width: 992px) {
    .footer-social a {
        --size: 1.5rem;
    }

    .footer-copyright,
    .footer-legal,
    .footer-legal a {
        display: inline-block;
    }

    .footer-social {
        display: inline-flex;
        justify-content: end;
        flex-grow: 1;
        float: right;
    }

    .footer-copyright,
    .footer-legal a {
        margin-right: 2rem;
    }
}

/* Overflow container */

@media (max-width: 991.98px) {
    .overflow-container {
        overflow: auto;
    }

    .overflow-grid {
        display: flex;
        width: max-content;
    }

    .overflow-card {
        width: 75%;
        max-width: min(20rem, 75vw);
        flex-shrink: 0;
    }

        .overflow-card .card-img,
        .overflow-card .card-img-top {
            max-width: 100%;
        }
}

/* SVG Icon */

svg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Animation */

@keyframes slideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.75);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate {
    animation: var(--animation);
}

.animate-slide-from-left {
    --animation: slideFromLeft 1s ease-out forwards;
}

.animate-slide-from-right {
    --animation: slideFromRight 1s ease-out forwards;
}

.animate-fade-in {
    --animation: fadeIn 1s ease-out forwards;
}

.animate-zoom-in {
    --animation: zoomIn .5s ease-out forwards;
    transform-origin: center 60%;
}

/* Mobile Menu Styles from Prototype */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    width: 36px;
    height: 36px;
    justify-content: center;
    align-items: center;
    position: relative;
}

    /* When menu is active, enhance visibility but keep in place */
    .hamburger.active {
        background: rgba(255, 255, 255, 0.9);
        border-radius: 6px;
    }

/* Hide other header icons and logo when menu is open */
body.menu-open .d-flex.d-lg-none .nav-link,
body.menu-open .navbar-brand {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Completely hide yellow warning bar when menu is open */
body.menu-open .alert {
    display: none !important;
}

/* Keep hamburger visible when menu is open */
body.menu-open .hamburger {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Apply original prototype styling for the X when active */
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Navigation Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    visibility: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Prevent body scroll when menu is open but keep header visible */
body.menu-open {
    overflow: hidden;
}

    /* Keep header visible when menu is open */
    body.menu-open .navbar {
        position: relative;
        z-index: 1002;
    }

.nav-overlay.open {
    transform: translateY(0);
    visibility: visible;
}

.nav-overlay.active {
    transform: translateY(0);
    visibility: visible;
}

.nav-overlay.closing {
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.6, 1);
}

.nav-container {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 70px 1.5rem 1rem 1.5rem;
    /* Add top padding for header space */
    display: flex;
    flex-direction: column;
}

/* Back button */
.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #2A4640;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2A4640;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    padding: 0;
    outline: none;
}

    .back-btn:focus {
        outline: none;
    }

    .back-btn:active {
        background: rgba(255, 255, 255, 1);
        transform: scale(0.95);
    }

    .back-btn svg,
    .back-btn svg *,
    .back-btn * {
        pointer-events: none;
        width: 16px;
        height: 16px;
    }

    .back-btn svg {
        display: block;
    }

    .back-btn.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

/* Navigation content */
.nav-content {
    flex: 1;
    margin-top: 2.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.nav-level {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    padding: 0 20px 2rem 20px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

    .nav-level.sub-level {
        transform: translateX(100%);
    }

    .nav-level.slide-left {
        transform: translateX(-100%);
    }

    .nav-level.slide-in {
        transform: translateX(0);
    }

/* Menu items */
.menu-item {
    display: block;
    padding: 12px 0;
    color: #090909;
    text-decoration: none;
    font-size: 23px;
    font-weight: 900;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

    .menu-item.animate-in {
        opacity: 1;
        transform: translateY(0);
    }

    .menu-item:hover {
        color: #666;
    }

    /* Secondary items */
    .menu-item.secondary {
        font-size: 19.2px;
        font-weight: 500;
        padding: 8px 0;
    }

/* Breadcrumb */
.breadcrumb {
    font-size: 13px;
    font-weight: 500;
    color: #848484;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

    .breadcrumb.animate-in {
        opacity: 1;
        transform: translateY(0);
    }

/* Emergency section */
.emergency-section {
    margin-top: auto;
    padding-top: 40px;
}

.emergency-text {
    font-size: 23px;
    font-weight: 900;
    color: #090909;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

    .emergency-text.animate-in {
        opacity: 1;
        transform: translateY(0);
    }

/* Featured content */
.featured-content {
    margin-top: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

    .featured-content.animate-in {
        opacity: 1;
        transform: translateY(0);
    }

.featured-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 500;
}

.featured-title {
    font-size: 23px;
    font-weight: 900;
    color: #090909;
    margin-bottom: 10px;
}

.featured-description {
    font-size: 16px;
    font-weight: 300;
    color: #666;
    line-height: 1.4;
    margin-bottom: 15px;
}

.featured-link {
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    color: #090909;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .featured-link:after {
        content: ' ›';
        font-size: 18px;
    }

/* Show hamburger on mobile, hide on desktop */
@media (max-width: 991px) {
    .hamburger {
        display: flex !important;
    }
}

/* Hide mobile menu on desktop */
@media (min-width: 992px) {
    .hamburger {
        display: none;
    }

    .nav-overlay {
        display: none;
    }
}

/* Sleep Quote Block */
.sleep-quote-block {
    display: flex;
    padding: 2rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    border-radius: 20px;
    background: var(--sj-grey-40);
    color: var(--sj-grey-body);
    font-family: "LabGrotesque";
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
}

@media (min-width: 768px) {
    .sleep-quote-block {
        padding: 3rem;
        font-size: 1.375rem;
    }
}

@media (min-width: 992px) {
    .sleep-quote-block {
        padding: 4rem;
        font-size: 1.4375rem;
    }
}

/* Sleep Stats Block */
.sleep-stats-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    align-self: stretch;
}

@media (min-width: 768px) {
    .sleep-stats-block {
        flex-direction: row;
        align-items: flex-start;
        min-height: 346px;
    }
}

.sleep-stats-content {
    display: flex;
    width: 100%;
    padding: 2rem;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    border-radius: 20px;
    background: var(--sj-grey-40);
    color: var(--sj-grey-body);
    font-family: "LabGrotesque";
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
}

@media (min-width: 768px) {
    .sleep-stats-content {
        width: 272px;
        height: 100%;
        min-height: 346px;
        font-size: 1.375rem;
    }
}

@media (min-width: 992px) {
    .sleep-stats-content {
        font-size: 1.4375rem;
    }
}

.sleep-stats-image {
    width: 100%;
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .sleep-stats-image {
        flex: 1;
        height: auto;
    }
}

/* Sleep Tips Block */
.sleep-tips-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
}

.sleep-tips-item {
    border-bottom: 1px solid rgba(227, 227, 227, 1);
    padding: 2rem 0;
    width: 100%;
}

    .sleep-tips-item:last-child {
        border-bottom: none;
    }

.sleep-tips-heading {
    color: var(--sj-grey-body);
    font-family: "LabGrotesque";
    font-size: 19.2px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%; /* 26.88px */
    letter-spacing: 0.154px;
    margin-bottom: 0.5rem;
}

.sleep-tips-text {
    color: var(--sj-grey-body);
    font-family: "LabGrotesque";
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: 24px; /* 150% */
    letter-spacing: 0.128px;
    margin-bottom: 0;
}

/* CTA Block */
.cta-block {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 2rem;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    border-radius: 20px;
    border: 1px solid #E7EAE9;
    margin: 2rem auto;
    text-align: center;
}

@media (min-width: 768px) {
    .cta-block {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 3rem;
        text-align: left;
        gap: 2rem;
    }
}

@media (min-width: 992px) {
    .cta-block {
        max-width: 920px;
        padding: 4rem;
    }

    .disclaimer-text {
        max-width: 920px;
    }
}

.cta-text {
    color: var(--sj-grey-body);
    font-family: "LabGrotesque";
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .cta-text {
        font-size: 1.375rem;
    }
}

@media (min-width: 992px) {
    .cta-text {
        font-size: 1.4375rem;
    }
}

.sources-block {
    display: flex;
    flex-direction: column;
    padding: 1rem 2rem;
    align-items: flex-start;
    gap: 0.5rem;
    border-radius: 1.25rem;
    border: 1px dashed rgba(9, 9, 9, 0.2);
    margin: 2rem auto;
    width: 50rem;
    background: rgba(231, 234, 233, 0.16);
}

@media (max-width: 768px) {
    .sources-block {
        width: 100%;
    }
}

.sources-block a {
    color: #848484;
    font-size: 0.8125rem;
    font-weight: 300;
    line-height: 1.3;
}

.sources-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.625rem;
    align-self: stretch;
}

    .sources-text span {
        color: #848484;
        font-size: 0.8125rem;
        font-weight: 700;
        line-height: 1.3;
    }

/* Disclaimer Text */
.disclaimer-text {
    color: #848484;
    text-align: center;
    font-family: "LabGrotesque";
    font-size: 0.8125rem;
    font-style: normal;
    font-weight: 300;
    line-height: 1.3rem;
}

/* Responsive Image Container */
@media (min-width: 576px) {
    .feature-image-container {
        height: 400px !important;
    }
}

@media (min-width: 768px) {
    .feature-image-container {
        height: 450px !important;
    }
}

@media (min-width: 992px) {
    .feature-image-container {
        height: 505px !important;
    }
}

/* Responsive Typography */
@media (max-width: 575.98px) {
    .lead {
        font-size: 1.25rem !important;
        line-height: 1.4 !important;
    }

    .article-text {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }

    .article-heading {
        font-size: 1.125rem !important;
        line-height: 1.4 !important;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .lead {
        font-size: 1.375rem !important;
        line-height: 1.35 !important;
    }

    .article-text {
        font-size: 1.0625rem !important;
        line-height: 1.55 !important;
    }

    .article-heading {
        font-size: 1.1875rem !important;
        line-height: 1.35 !important;
    }
}

/* Responsive Sleep Tips */
@media (max-width: 575.98px) {
    .sleep-tips-heading {
        font-size: 1.125rem !important;
        line-height: 1.4 !important;
    }

    .sleep-tips-text {
        font-size: 0.9375rem !important;
        line-height: 1.5 !important;
    }

    .sleep-tips-item {
        padding: 1.5rem 0 !important;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .sleep-tips-heading {
        font-size: 1.1875rem !important;
        line-height: 1.35 !important;
    }

    .sleep-tips-text {
        font-size: 0.9688rem !important;
        line-height: 1.45 !important;
    }
}

.bg-grey {
    background-color: var(--sj-grey-40);
}
