@import "carousel.css";

:root {
    --pico-font-family: 'Inter', sans-serif;
}

html,
body {
    
    overflow-x: clip;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

@media (min-width: 1024px) {

    :host,
    :root {
        --pico-font-size: 128.75%;
    }
}

.page-background-section .pico h1,
.page-background-section .pico h2,
.page-background-section .pico h3,
.page-background-section .pico h4,
.page-background-section .pico h5,
.page-background-section .pico h6 {
    padding: 1.3rem 0 0.2rem 0;
}

@media (max-width: 766px) {

    .page-background-section .pico h1,
    .page-background-section .pico h2,
    .page-background-section .pico h3 {
        padding: 1rem 0 0.2rem 0;
        font-size: 1.2rem;
    }

    .page-background-section .pico h4,
    .page-background-section .pico h5,
    .page-background-section .pico h6 {
        padding: 1rem 0 0.2rem 0;
        font-size: 1.1rem;
    }
}

/* ============================================
   LOGO & BRAND SECTION
   ============================================ */

header nav .logo-white,
header nav .logo-red {
    height: 60px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

.section-card-content ul {
    padding-right: 2rem;
}

.section-card-content ul li {
    margin-bottom: calc(var(--pico-typography-spacing-vertical) * .95);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

header nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    
    height: 100%;
    transform: scaleY(0);
    transform-origin: top;
    background-color: #ffffff;
    z-index: -1;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0);
}

@media screen and (min-width: 890px) {

    header nav:not(.scrolled):hover::before,
    header nav:not(.scrolled):has(details[open])::before,
    header nav:not(.scrolled):has(.search-container.active)::before {
        transform: scaleY(1);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
}

header nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
    z-index: 10;
}

header nav ul.search-icon {
    align-items: center;
    gap: 0.5rem;
}

header nav.responsive ul {
    gap: 0rem;
}

header nav li {
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav .logo-white {
    display: block;
}

header nav .logo-red {
    display: none;
}

@media screen and (min-width: 890px) {

    header nav.scrolled .logo-white {
        display: none;
    }

    header nav.scrolled .logo-red {
        display: block;
    }

    header nav:not(.scrolled):hover .logo-white,
    header nav:has(details[open]) .logo-white,
    header nav:has(.search-container.active) .logo-white {
        display: none;
    }

    header nav:not(.scrolled):hover .logo-red,
    header nav:has(details[open]) .logo-red,
    header nav:has(.search-container.active) .logo-red {
        display: block;
    }
}

header nav a,
header nav summary {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease, font-size 0.3s ease;
    position: relative;
    
}


#contact-modal footer button,
footer.site-footer button {
    color: #FF0630;
    
}

@media screen and (min-width: 890px) {

    header nav.scrolled a,
    header nav.scrolled summary {
        color: #FF0630;
    }

    header nav:not(.scrolled):hover a,
    header nav:not(.scrolled):hover summary,
    header nav:has(details[open]) a,
    header nav:has(details[open]) summary,
    header nav:has(.search-container.active) a,
    header nav:has(.search-container.active) summary {
        color: #FF0630;
    }
}

header nav li.pico a[role="button"],
header nav li.pico a[role="button"]:focus,
#contact-modal footer button,
#contact-modal footer button:focus,
#newsletter-modal footer button,
#newsletter-modal footer button:focus,
footer.site-footer button,
footer.site-footer button:focus {
    color: #ffffff !important;
    background-color: #ff0630 !important;
    border: none !important;
    box-shadow: none !important;
}

header nav li.pico a[role="button"]:hover,
header nav li.pico a[role="button"]:active,
#contact-modal footer button:hover,
#contact-modal footer button:active,
#newsletter-modal footer button:hover,
#newsletter-modal footer button:active,
footer.site-footer button:hover,
footer.site-footer button:active {
    color: #ffffff !important;
    background-color: #80042f !important;
    border: none !important;
    box-shadow: none !important;
}

@media screen and (min-width: 890px) {
    header nav.scrolled {
        position: fixed;
        
        top: 0;
        padding: 0.5rem 2rem;
    }

    header nav.scrolled .logo-white,
    header nav.scrolled .logo-red {
        height: 50px;
    }

    header nav.scrolled a,
    header nav.scrolled summary,
    header nav.scrolled .icon {
        font-size: 0.875rem;
    }

    header nav.scrolled::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: scaleY(1);
        background-color: #ffffff;
        z-index: -1;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    header nav.scrolled ul:nth-child(2) {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    header nav ul.search-icon li.pico a#contact-button {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
        transition: background-color 0.2s ease, transform 0.2s ease;
    }
}

@media screen and (min-width: 890px) {

    header nav a:hover,
    header nav summary:hover,
    header nav a:focus-visible,
    header nav summary:focus-visible,
    header nav a:active,
    header nav summary:active {
        color: #80042f;
        text-decoration: none;
    }
}

header nav summary {
    list-style: none;
}

header nav summary::-webkit-details-marker {
    display: none;
}

header nav details.dropdown>summary::after {
    content: "";
    display: inline-block;
    width: 0.8rem;
    height: 0.8rem;
    margin-left: 0.4rem;
    background-image: var(--pico-icon-chevron);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    transition: transform 0.2s ease;
    filter: brightness(0) invert(1);
}

header nav:not(.scrolled):hover details.dropdown>summary::after,
header nav:has(details[open]) details.dropdown>summary::after,
header nav:has(.search-container.active) details.dropdown>summary::after,
header nav.responsive details.dropdown>summary::after,
header nav.scrolled details.dropdown>summary::after {
    filter: none;
    filter: invert(15%) sepia(95%) saturate(6932%) hue-rotate(352deg) brightness(66%) contrast(113%);
}

header nav details[open]>summary::after {
    transform: rotate(180deg);
}

/* ============================================
   MEGA MENUS (Absolute Positioning - Desktop Only)
   ============================================ */

@media screen and (min-width: 890px) {

    header nav ul li:has(.mega-menu),
    header nav details.dropdown.mega-menu,
    header nav ul.search-icon,
    header nav ul.search-icon li {
        position: static !important;
    }

    html body header nav .mega-menu-content {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100vw !important;
        background-color: #ffffff !important;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
        padding: 0.2rem 0rem 1rem 5% !important;
        margin-top: 0 !important;
        z-index: 2000 !important;
        border-radius: 0 !important;
        border: none !important;
        display: flex !important;
        opacity: 0;
        visibility: hidden;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        gap: 1rem !important;
        box-sizing: border-box !important;
        
        transition: opacity 0.3s ease 0.5s, visibility 0s linear 0.5s;
    }

    html body header nav details.dropdown.mega-menu[open] .mega-menu-content {
        opacity: 1 !important;
        visibility: visible !important;
        transition: opacity 0.3s ease 0.5s, visibility 0s linear 0.5s;
    }

    .mega-menu-column {
        min-width: 250px !important;
        flex: 0 1 auto !important;
        position: static !important;
    }
}

header nav details.dropdown:not(.mega-menu) {
    position: relative !important;
}

.mega-menu-column ul {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    list-style: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.mega-menu-column h6 {
    font-size: 0.75rem;
    letter-spacing: 0.05rem;
    margin: 1.25rem 0;
    font-weight: 700;
    border-bottom: 1px solid #eee;
    padding: 0.5rem 1rem;
    text-transform: uppercase;
}

.mega-menu-column ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mega-menu-column ul li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.mega-menu-column ul li a {
    display: block;
    padding: 0;
    color: #FF0630;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mega-menu-column ul li a:hover {
    color: #d00020;
    transform: translateX(5px);
}

header nav details.dropdown>ul:not(.mega-menu-content ul) {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    z-index: 1001;
}

header nav details.dropdown>ul li a {
    display: block;
    padding: 0.5rem 1rem;
    color: #FF0630;
    font-size: 0.95rem;
    text-decoration: none;
}

header nav details.dropdown>ul li a:hover {
    background-color: #fafafa;
    color: #d00020;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background:
        url('/static/images/template/components/brand/heros/qc-site-header-hero-alt-a-home-cross-arrows-fog.svg'),
        linear-gradient(135deg, rgba(26, 26, 26, 0.6) 0%, rgba(26, 26, 26, 0.3) 100%),
        url('/media/images/home-banner-bg.2e16d0ba.fill-3500x1250.format-webp.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 6rem 0 6rem 0;
    text-align: center;
    margin-bottom: 0;
    border-bottom: 1px solid var(--pico-muted-border-color);
}

.hero.service {
    background:
        url('/static/images/template/components/brand/heros/qc-site-header-hero-alt-a-home-cross-arrows-fog.svg'),
        linear-gradient(135deg, rgba(26, 26, 26, 0.6) 0%, rgba(26, 26, 26, 0.3) 100%),
        url('/media/images/chris-simon-working.2e16d0ba.fill-3500x1250.format-webp.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 4rem 0 4rem 0;
}

.hero.insight {
    background:
        url('/static/images/template/components/brand/heros/qc-site-header-hero-alt-a-home-cross-arrows-fog.svg'),
        linear-gradient(135deg, rgba(26, 26, 26, 0.6) 0%, rgba(26, 26, 26, 0.3) 100%),
        url('/media/images/queryclick-walking-.2e16d0ba.fill-3500x1250.format-webp.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 4rem 0 5rem 0;
}

.service-teaser-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    z-index: 20;
}

.insight-teaser-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    z-index: 5;
}

.teaser-graphic {
    position: absolute;
    left: 65%;
    top: 0.5rem;
    transform: translate(-50%, -50%);
    width: 680px;
    max-width: 90vw;
    pointer-events: none;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

@media (max-width: 1540px) {
    .teaser-graphic {
        width: 650px;
        left: 60%;
    }
}

@media (max-width: 1024px) {
    .teaser-graphic {
        width: 580px;
        left: 55%;
    }
}

@media (max-width: 768px) {
    .teaser-graphic {
        width: 400px;
        top: -1rem;
    }
}

/* ============================================
   SERVICE CALLOUTS
   ============================================ */

.service-callouts {
    margin-top: -6rem;
    margin-bottom: 0 !important;
    position: relative;
    z-index: 10;
    padding-top: 0;
    padding-bottom: 1rem;
    background: transparent;
}

.service-callouts-grid {
    display: grid !important;
    grid-template-columns: 1.5fr repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    align-items: stretch;
}

.callout-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.callout-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.attribution-card {
    background-image: url('/static/images/template/components/callouts/corvidae-callout-red-database-compact.svg');
    background-color: rgba(0, 0, 0, 1);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-origin: content-box;
    backdrop-filter: blur(10px);
}

.attribution-card .card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.attribution-card h4 {
    margin-bottom: 0.5rem;
    color: #fff;
    font-size: 1.4rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 1);
}

.attribution-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: #fff;
    line-height: 1.4;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 1);
}

.icon-box {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.icon-box img {
    max-width: 100%;
    max-height: 100%;
}

.service-columns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-card {
    padding: 0.75rem 1rem;
    display: block;
    background-color: rgba(246, 246, 249, 0.6);
    backdrop-filter: blur(10px);
}

.service-card.tint-paid-search {
    background-color: rgba(190, 237, 245, 0.5);
}

.service-card.tint-seo {
    background-color: rgba(198, 252, 238, 0.5);
}

.service-card.tint-cro {
    background-color: rgba(196, 215, 255, 0.5);
}

.service-card.tint-programmatic {
    background-color: rgba(255, 237, 207, 0.5);
}

.service-card.tint-paid-social {
    background-color: rgba(231, 206, 255, 0.5);
}

.service-card.tint-analytics {
    background-color: rgba(255, 210, 223, 0.5);
}

.service-card p.service-description {
    font-size: 0.7rem !important;
    color: #373C44;
    margin-top: 0.5rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.4;
}

.card-content-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.icon-box-small {
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    flex-shrink: 0;
}

.icon-box-small img {
    max-width: 100%;
    max-height: 100%;
}

.service-card h2.service-label {
    font-size: 0.9rem !important;
    word-wrap: break-word;
    color: var(--pico-h2-color);
    margin: 0 !important;
    line-height: 1.2;
    padding: 0 !important;
}

.bg-attribution {
    width: 160px;
    height: 160px;
    margin-top: 1rem;
}

.bg-paid-search {
    background-color: #BEEDF5;
}

.bg-seo {
    background-color: #C6FCEE;
}

.bg-cro {
    background-color: #c4d7ff;
}

.bg-programmatic {
    background-color: #ffedcf;
}

.bg-paid-social {
    background-color: #e7ceff;
}

.bg-analytics {
    background-color: #ffd2df;
}

@media screen and (max-width: 1280px) {
    .service-callouts-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media screen and (max-width: 600px) {
    .service-callouts-grid {
        grid-template-columns: 1fr !important;
    }

    .service-description {
        display: none;
    }
}

.hero h1 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

.hero p {
    color: #fff;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
    text-shadow: 0 1px 20px rgba(0, 0, 0, 1);
}

@media screen and (min-width: 890px) {
    .hero h1 {
        font-size: 3.1rem;
    }

    .hero p {
        font-size: 1.25rem;
    }
}

/* ============================================
   BODY STYLING
   ============================================ */

.glass-card,
.section-card {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-background-section {
    background-image: url('/static/images/template/components/brand/page-tile/qc-site-page-tile-fog.svg');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 0;
    min-height: 100vh;
}

.breadcrumbs-container {
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0;
    z-index: 10;
    position: relative;
}

.breadcrumbs-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.85rem;
}

.breadcrumbs-container li {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

.breadcrumbs-container li:not(:last-child)::after {
    content: "\f105";
    
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin: 0 0.5rem;
    color: var(--pico-muted-color);
    font-size: 0.75rem;
}

.breadcrumbs-container a {
    text-decoration: none;
    color: var(--pico-primary);
    text-decoration-color: var(--pico-underline);
}

.breadcrumbs-container a:hover {
    text-decoration: underline;
}

article.insight-page {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.glass-card.section-card,
.author-card,
.insights .glass-card {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flow-root;
}

@media (max-width: 766px) {
    .glass-card.section-card {
        padding: 1.5rem;
    }

    .section-card-content {
        padding: 0.2rem;
    }
}

article.insight-page {
    padding-left: 0;
    padding-right: 0;
}

.home-background-section {
    
    background-image: none !important;
    width: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ============================================
   MOBILE NAVIGATION
   ============================================ */

.icon {
    display: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 100;
}

@media screen and (max-width: 890px) {

    header nav {
        flex-wrap: wrap;
    }

    header nav ul:not(:first-child) {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 1rem;
    }

    header nav ul li {
        width: 100%;
        padding: 0.5rem 0;
    }

    header nav ul li a {
        display: block;
        width: 100%;
    }

    .icon {
        display: block;
        position: absolute;
        right: 2rem;
        top: 1.5rem;
    }

    header nav.responsive {
        
        height: auto;
        padding-bottom: 2rem;
    }

    header nav.responsive::before {
        height: 100%;
        transform: scaleY(1);
        background-color: #ffffff;
        transition: none !important;
    }

    header nav.responsive a,
    header nav.responsive summary,
    header nav.responsive .icon {
        color: #FF0630;
    }

    header nav.responsive .logo-white {
        display: none !important;
    }

    header nav.responsive .logo-red {
        display: block !important;
    }

    header nav.responsive ul:not(:first-child) {
        display: flex;
    }

    header nav.responsive details.dropdown.mega-menu .mega-menu-content {
        position: static !important;
        display: none !important;
        width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        background-color: transparent !important;
        box-shadow: none !important;
        padding: 0.5rem 0 0.5rem 1.5rem !important;
        margin: 0 !important;
        transition: none !important;
        flex-direction: column !important;
    }

    header nav.responsive details.dropdown.mega-menu[open] .mega-menu-content {
        display: flex !important;
    }

    header nav.responsive .mega-menu-column {
        min-width: unset !important;
        margin-bottom: 0.25rem !important;
    }

    header nav.responsive .mega-menu-column h6 {
        margin: 0 0 0.25rem 0;
        border: none;
        padding: 0;
        font-size: 0.75rem;
    }

    header nav.responsive .mega-menu-column ul li a {
        transition: none !important;
        background-color: transparent !important;
        transform: none !important;
        outline: none !important;
        -webkit-tap-highlight-color: transparent;
    }

    header nav.responsive .mega-menu-column ul li a:active,
    header nav.responsive .mega-menu-column ul li a:focus {
        background-color: rgba(197, 47, 33, 0.08) !important;
        border-radius: 4px;
    }

    header nav.responsive details.dropdown ul {
        background-color: transparent !important;
        padding-left: 0 !important;
    }

    header nav a,
    header nav summary {
        text-shadow: none !important;
    }
}

/* ============================================
   FOOTER
   ============================================ */

footer.site-footer {
    background-color: #f9f9f9;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.footer-cta {
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    background-color: #FF0630;
    color: #fff;
    border-radius: var(--pico-border-radius);
}

.footer-cta h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-cta p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.footer-cta a[role="button"] {
    background-color: #fff;
    color: #ff0630;
    border: none;
    font-weight: 700;
}

.footer-cta a[role="button"]:hover {
    background-color: #f0f0f0;
    color: #d00020;
}

.site-footer ul {
    margin-bottom: 2rem;
}

.site-footer h5 {
    margin-bottom: 1rem;
    font-size: 0.85rem;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
    color: var(--pico-contrast);
}

.qc-admin small {
    font-size: 0.7rem;
}

.qc-hiring {
    color: #00EBA4;
    text-transform: uppercase;
}

/* ============================================
   ACCESSIBILITY & UTILITIES
   ============================================ */

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    height: 100%;
}

.card-link:hover,
.card-link:focus,
.card-link:active {
    text-decoration: none !important;
    color: inherit !important;
    outline: none !important;
}

.site-footer ul {
    padding: 0;
}

.site-footer ul li {
    margin-bottom: 0.5rem;
    list-style: none;
}

.footer-social-icons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    align-items: center;
}

.footer-social-icons a {
    text-decoration: none;
}

.footer-social-icons a i {
    font-size: 1.25rem;
}

@media screen and (max-width: 890px) {
    .footer-social-icons {
        justify-content: flex-start;
        margin-top: 1rem;
    }
}

/* ============================================
   SEARCH FUNCTIONALITY
   ============================================ */

.search-toggle {
    color: #ffffff;
    font-size: 1.1rem;
    padding: 0.5rem;
}

.search-toggle:hover,
a.search-toggle:visited {
    color: var(--pico-primary);
}

.search-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 1rem 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.search-container.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-container form {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon-input {
    position: absolute;
    right: 1rem;
    color: #888;
    pointer-events: none;
}

.search-container input[type="text"] {
    width: 100%;
    padding: 1rem 0;
    font-size: 1.5rem;
    color: rgb(51, 71, 91);
    border: none;
    border-bottom: 2px solid #FF0630;
    border-radius: 0;
    background: transparent;
    outline: none;
    box-shadow: none;
}

.search-container input[type="text"]::placeholder {
    color: #b0b0b0;
    font-weight: 300;
}

@media screen and (max-width: 890px) {

    .search-toggle {
        display: none !important;
    }

    .search-form-item {
        width: 100%;
    }

    .search-container {
        display: block !important;
        position: static;
        padding: 0.5rem 0;
        background-color: transparent !important;
        box-shadow: none !important;
        width: 100%;
        animation: none;
        margin-bottom: 1rem;
        top: auto;
    }

    .search-container input[type="text"] {
        font-size: 1rem;
        background-color: #f0f0f0 !important;
        padding-left: 1rem;
        border-radius: 4px;
        border: 1px solid #ddd;
        color: #333 !important;
    }

    .search-container input[type="text"]::placeholder {
        color: #888;
    }

    .search-icon-input {
        color: #FF0630 !important;
        right: 0.5rem;
    }
}

/* ============================================
   WAGTAIL ADMIN FRONT END DISPLAY STYLING
   ============================================ */

.home-content-body,
.service-content-body,
.after-content-body {
    padding-top: 0;
}

.after-content-body {
    margin-top: 3rem;
}

figure.content-image,
figure.standalone-image {
    background: var(--pico-card-background-color);
    border-radius: var(--pico-border-radius);
    overflow: hidden;
    box-shadow: var(--pico-card-box-shadow);
    padding: 0;
    margin: 2rem 0;
    max-width: 1000px;
    position: relative;
    z-index: 101;
}

figure.content-image img,
figure.standalone-image img {
    border-radius: 0;
    display: block;
    width: 100%;
    height: auto;
    padding: 1rem 1rem 0 1rem;
}

.image-caption {
    padding: 1.5rem 2rem !important;
    font-size: 0.85rem;
    text-align: center;
    font-style: italic;
    line-height: 1.4;
    background: var(--pico-card-background-color);
}

.credentials-breakout {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--pico-muted-border-color);
    border-top: 1px solid var(--pico-secondary-underline);
    border-bottom: 1px solid var(--pico-secondary-underline);
    padding: 2.5rem 0;
    margin-bottom: 0;
}

.grid.credentials {
    margin-bottom: 0;
    align-items: center;
}

.grid.credentials>div {
    display: flex;
    justify-content: center;
    align-items: center;
}

figure.standalone-video {
    background: var(--pico-card-background-color);
    border-radius: var(--pico-border-radius);
    overflow: hidden;
    box-shadow: var(--pico-card-box-shadow);
    padding: 0;
    margin: 2rem 0;
    max-width: 1000px;
    position: relative;
    z-index: 101;
}

.section-card-content>figure.standalone-video,
.section-card-content>figure.standalone-image {
    margin: 2rem auto;
}

.responsive-video-container {
    position: relative;
    padding-bottom: 56.25%;
    
    height: 0;
    overflow: hidden;
}

.responsive-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.standalone-image-section {
    padding: 0;
    margin: 0;
}

/* ============================================
   INSIGHTS
   ============================================ */

.insights {
    margin-top: 2rem;
    padding-left: 0;
    padding-right: 0;
}

h5.insights-section-title {
    color: var(--pico-contrast);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05rem;
    padding: 0 !important;
}

.share-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--pico-border-radius);
    text-decoration: none;
    color: var(--pico-contrast);
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.share-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--pico-primary);
}

.share-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* ============================================
   AUTHOR CARD
   ============================================ */

.author-card {
    background: var(--pico-card-background-color);
    border-radius: var(--pico-border-radius);
    box-shadow: var(--pico-card-box-shadow);
    padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
    margin-bottom: var(--pico-block-spacing-vertical);
}

.content-block-wrapper {
    margin-top: 0;
}

.section-card {
    padding: 0;
    margin-bottom: 2rem;
    overflow: hidden;
}

.author-card.section-card h5 {
    color: var(--pico-contrast);
    font-weight: 700;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.author-card h6 {
    margin-top: 0;
    font-size: 1.25rem;
    margin-bottom: 0;
    color: #373c44;
}

.author-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 576px) {
    .author-grid {
        grid-template-columns: auto 1fr;
    }
}

.author-image-col {
    display: flex;
    justify-content: center;
}

.author-avatar {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 2px solid var(--pico-muted-border-color);
}

.author-meta-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem !important;
    text-shadow: 0 1px 20px rgba(0, 0, 0, 1);
}

.author-avatar-small {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    object-fit: cover;
}

.author-block-container {
    margin: 2rem 0;
    clear: both;
    position: relative;
    z-index: 100;
}

.author-block-card {
    border-radius: var(--pico-border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.author-block-image {
    flex-shrink: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.author-circle,
.author-profile-crop img,
figure.standalone-image.author-profile-crop img {
    border-radius: 50%;
    width: 250px;
    height: 250px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
    display: block;
}

figure.standalone-image.author-profile-crop {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 250px;
    
}

figure.standalone-image.author-profile-crop figcaption {
    border-top: none;
    background: none;
}

.author-details {
    margin-top: 1rem;
    text-align: center;
}

.author-block-name {
    margin: 0.5rem 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 700;
    font-style: italic;
    color: var(--pico-muted-color);
}

.author-block-bio {
    font-size: 0.9rem;
    color: var(--pico-muted-color);
    line-height: 1.5;
}

.author-block-bio p {
    margin-bottom: 0.5rem;
}

.author-block-bio p:last-child {
    margin-bottom: 0;
}

/* -------------------------------------
   ALIGNMENT UTILITIES
   ------------------------------------- */

@media (min-width: 768px) {

    figure.video-float-left,
    figure.image-float-left,
    .author-float-left,
    .video-float-left,
    .kpi-float-left,
    .image-float-left,
    .quote-float-left {
        float: left;
        width: calc(50% - 2rem);
        margin: 0 2rem 2rem 0 !important;
        padding: 0;
        clear: left;
        box-sizing: border-box;
    }

    figure.video-float-right,
    figure.image-float-right,
    .author-float-right,
    .video-float-right,
    .kpi-float-right,
    .image-float-right,
    .quote-float-right {
        float: right;
        width: calc(50% - 2rem);
        margin: 0 0 2rem 2rem !important;
        padding: 0;
        clear: right;
        box-sizing: border-box;
    }

    [class*="-body"]>.author-float-center,
    [class*="-body"]>.video-float-center,
    [class*="-body"]>.kpi-float-center,
    [class*="-body"]>.image-float-center,
    [class*="-body"]>.quote-float-center,
    .author-float-center,
    .video-float-center,
    .kpi-float-center,
    .image-float-center,
    .quote-float-center {
        float: none;
        display: block;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 2rem;
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 767px) {

    .author-float-left,
    .author-float-right,
    .author-float-center,
    .video-float-left,
    .video-float-right,
    .video-float-center,
    .kpi-float-left,
    .kpi-float-right,
    .kpi-float-center {
        width: 100% !important;
        float: none !important;
        margin: 0 auto 1.5rem auto;
        display: block;
    }
}

@media (max-width: 767px) {
    .author-block-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.client-logos-section {
    position: relative;
    width: 100vw;
    margin-left: -50vw;
    left: 50%;
    background-color: rgba(245, 245, 245, 0.6);
    padding: 3rem 0;
    overflow: hidden;
    backdrop-filter: blur(10px);
    margin-bottom: 0 !important;
    margin-top: 3rem;
}

.logo-heading-container {
    margin-bottom: 1.5rem;
}

.logo-heading-container h6 {
    margin: 0;
    text-align: left;
    color: var(--pico-contrast);
    font-weight: 700;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.logos-carousel-wrapper {
    position: relative;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    padding: 0;
}

.logos-carousel {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 0 1rem 2rem;
}

@media (max-width: 1200px) {
    .logos-carousel {
        padding-left: 2rem;
    }
}

.logos-carousel::-webkit-scrollbar {
    display: none;
}

.logos-track {
    display: grid;
    grid-template-rows: repeat(3, 110px);
    grid-auto-flow: column;
    grid-auto-columns: min-content;
    gap: 1rem 2rem;
    align-items: center;
}

.logo-item {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.logo-item img {
    max-width: 250px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.logos-carousel-wrapper .carousel-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(8px);
    border: none !important;
    border-radius: 50% !important;
    width: 60px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    z-index: 100 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    padding: 0 !important;
}

.logos-carousel-wrapper .carousel-nav:hover {
    background: rgba(255, 255, 255, 0.4) !important;
    color: #fff !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.logos-carousel-wrapper .carousel-nav.prev {
    left: 2rem !important;
}

.logos-carousel-wrapper .carousel-nav.next {
    right: 2rem !important;
}

@media (max-width: 768px) {
    .logos-carousel {
        padding-left: 1.5rem;
    }

    .logos-track {
        grid-template-rows: repeat(2, 70px);
        grid-auto-columns: min-content;
        gap: 1rem 1.5rem;
    }

    .logo-item img {
        max-width: 125px;
        max-height: 60px;
    }

    .logos-track> :nth-child(even) {
        transform: none;
    }

    .logos-carousel-wrapper .carousel-nav,
    .kpi-carousel-wrapper .carousel-nav {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.2rem !important;
    }

}

/* ==========================================================================
   Blockquotes
   ========================================================================== */

.richtext blockquote,
.container blockquote {
    border-left: 6px solid #FF0630;
    margin: 2rem 0;
    padding: 2.5rem 2rem 2.5rem 3rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 0 12px 12px 0;
    position: relative;
    line-height: 1.6;
    font-style: italic;
    color: var(--pico-contrast);
    overflow: visible;
    display: flow-root;
}

.richtext blockquote::before,
.container blockquote::before {
    content: "\f10d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    display: inline-block;
    vertical-align: top;
    font-size: 1.5rem;
    color: #FF0630;
    opacity: 0.15;
    font-style: normal;
    margin-right: 1rem;
    margin-top: -0.25rem;
}

[data-theme="dark"] .richtext blockquote {
    background: rgba(255, 255, 255, 0.05);
}

.quote-centering-wrapper {
    display: flow-root;
    position: relative;
    margin-top: 7.75rem;
    margin-bottom: 2rem;
}

.quote-author-overlap {
    position: absolute;
    top: -6.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.quote-author-overlap img {
    width: 12.5rem;
    min-width: 12.5rem;
    max-width: none !important;
    height: 12.5rem;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.15);
    display: block;
    border: none;
    opacity: 1 !important;
}

.quote-text-content p {
    font-style: italic;
}

.quote-block-container blockquote {
    margin: 0 1rem;
    text-align: left;
    display: flow-root;
}

.quote-block-container blockquote.has-profile-overlap {
    padding-top: 6.875rem;
}

@media (max-width: 768px) {
    .quote-block-container {
        margin-left: 0;
        margin-right: 0;
    }

    .quote-block-container blockquote {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.quote-block-container blockquote::before {
    display: inline-block;
    margin-bottom: 1.5rem;
    margin-left: 0;
}

.quote-block-container blockquote cite {
    display: block;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #373c44;
    font-weight: 700;
    font-style: normal;
}

/* ==========================================================================
   Code Blocks
   ========================================================================== */

.container code {
    display: block;
    background: #f8f9fa;
    border-left: 35px solid #e9ecef;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #495057;
    word-break: break-all;
    white-space: pre-wrap;
    border-radius: 4px;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.02);
}

.container code::before {
    content: "1";
    position: absolute;
    left: -25px;
    top: 1.5rem;
    color: #adb5bd;
    font-size: 0.8rem;
}

[data-theme="dark"] .container code {
    background: #212529;
    border-left-color: #343a40;
    color: #e9ecef;
}

.content-block-wrapper,
.glass-card-wrapper {
    display: flow-root;
    margin: 1.5rem 0;
}

/* ==========================================================================
   INSIGHTS
   ========================================================================== */

.insight-card {
    background-color: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 8px !important;
    padding: 0 !important;
    margin: 0.5rem 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    
    overflow: hidden !important;
    display: flow-root !important;
}

.insights-outer-card {
    padding: 3rem !important;
}

.insights-section-title {
    text-transform: uppercase;
    letter-spacing: 0.04rem;
    font-weight: 700;
    margin-bottom: 0 !important;
}

.insights-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.insight-card-inner {
    display: flex;
    flex-direction: column;
}

.insight-image-container {
    width: 100%;
    line-height: 0;
    display: flex;
    position: relative;
}

.insight-image-container::after {
    content: '';
    position: absolute;
    inset: -1px;
    background-color: rgba(0, 0, 0, 0.05);
    
    pointer-events: none;
    z-index: 1;
}

.insight-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0 !important;
    padding: 0;
    border: none;
}

.insight-content {
    padding: 2rem;
}

.insight-content h3 {
    margin-bottom: 0.5rem;
}

.insight-author-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.insight-author-meta small {
    color: var(--pico-muted-color);
}

@media (min-width: 769px) {
    .insight-card-inner {
        flex-direction: row;
        align-items: stretch;
    }

    .insight-image-container {
        width: 35%;
        flex-shrink: 0;
        height: auto;
    }

    .insight-featured-image {
        height: 100% !important;
        min-height: 350px;
    }

    .insight-content {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* ============================================
   KPI TILE & CAROUSEL STYLING
   ============================================ */

@media (max-width: 766px) {
    .kpi-tile {
        padding: 1.5rem;
        min-height: auto;
    }

    .kpi-heading {
        font-size: 1.85rem;
    }

    .kpi-description {
        font-size: 0.95rem;
    }

    .kpi-data {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }

}

.kpi-content h1.kpi-heading,
.kpi-content h2.kpi-heading,
.kpi-content h3.kpi-heading,
.kpi-content h4.kpi-heading,
.kpi-content h5.kpi-heading,
.kpi-content h6.kpi-heading {
    padding-top: 0;
}

.kpi-block-container {
    clear: both;
}

.table-container {
    clear: both !important;
    display: block;
    width: 100%;
    margin: 2rem 0;
    overflow-x: auto;
}

.table-container th {
    font-weight: bold;
}

.table-container table caption {
    caption-side: bottom;
    text-align: left;
    font-style: italic;
    font-size: 0.8rem;
    color: var(--pico-muted-color);
    margin-top: 0.5rem;
    padding: 0 1rem;
}

.kpi-tile {
    position: relative;
    padding: 3rem 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0;
}

.kpi-tile::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    filter: blur(0.5px);
    transform: scale(1.05);
    
    z-index: 1;
}

.cta-pattern-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0.15;
}

.kpi-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.kpi-content {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    padding-top: 2rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.kpi-data {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.kpi-logo {
    width: 200px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.kpi-logo img {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 1rem 0;
}

.kpi-heading {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

h2.kpi-heading {
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8) !important;
}

.kpi-description {
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.layout-crosses,
.layout-circles,
.layout-blobs {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.kpi-agency-logo {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
    z-index: 2;
}

.kpi-agency-logo img {
    height: auto;
    max-height: 60px;
    width: auto;
}

/* ============    WHITE / GLASS    ============ */

.layout-circles.brand-white::before {
    background-image: url('/static/images/template/kpis/circles/background-white.svg');
}

.layout-crosses.brand-white::before {
    background-image: url('/static/images/template/kpis/crosses/background-white.svg');
}

.layout-blobs.brand-white::before {
    background-image: url('/static/images/template/kpis/blobs/background-white.svg');
}

.brand-white::before {
    background-color: rgba(0, 0, 0, 0.2);
}

.brand-white .kpi-heading,
.brand-white .kpi-description p {
    color: #1C164E;
}

.brand-white .kpi-description a {
    color: #47495A;
    text-decoration-color: #47495A;
}

.brand-white .kpi-description a:hover,
.brand-white .kpi-description a:visited,
.brand-white .kpi-description a:active,
.brand-white .kpi-description a:focus {
    color: #1C164E;
    text-decoration-color: #1C164E;
}

/* ============    QC RED    ============ */

.layout-circles.brand-qc-red::before {
    background-image: url('/static/images/template/kpis/circles/background-qc-red.svg');
}

.layout-crosses.brand-qc-red::before {
    background-image: url('/static/images/template/kpis/crosses/background-qc-red.svg');
}

.layout-blobs.brand-qc-red::before {
    background-image: url('/static/images/template/kpis/blobs/background-qc-red.svg');
}

.brand-qc-red::before {
    background-color: rgba(255, 64, 48, 0.2);
}

.brand-qc-red .kpi-heading,
.brand-qc-red .kpi-description p {
    color: #1B2244;
}

.brand-qc-red .kpi-description a {
    color: #4E7B9B;
    text-decoration-color: #4E7B9B;
}

.brand-qc-red .kpi-description a:hover,
.brand-qc-red .kpi-description a:visited,
.brand-qc-red .kpi-description a:active,
.brand-qc-red .kpi-description a:focus {
    color: #1B2B5B;
    text-decoration-color: #1B2B5B;
}

/* ============    CHERRY    ============ */

.layout-circles.brand-cherry::before {
    background-image: url('/static/images/template/kpis/circles/background-cherry.svg');
}

.layout-crosses.brand-cherry::before {
    background-image: url('/static/images/template/kpis/crosses/background-cherry.svg');
}

.layout-blobs.brand-cherry::before {
    background-image: url('/static/images/template/kpis/blobs/background-cherry.svg');
}

.brand-cherry::before {
    background-color: rgba(184, 4, 67, 0.2);
}

.brand-cherry .kpi-heading {
    color: #590014;
}

.brand-cherry .kpi-description a {
    color: #96102B;
    text-decoration-color: #96102B;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8)
}

.brand-cherry .kpi-description a:hover,
.brand-cherry .kpi-description a:visited,
.brand-cherry .kpi-description a:active,
.brand-cherry .kpi-description a:focus {
    color: #590014;
    text-decoration-color: #590014;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8)
}

.brand-cherry .kpi-description p {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* ============    QC BLUE    ============ */

.layout-circles.brand-qc-blue::before {
    background-image: url('/static/images/template/kpis/circles/background-qc-blue.svg');
}

.layout-crosses.brand-qc-blue::before {
    background-image: url('/static/images/template/kpis/crosses/background-qc-blue.svg');
}

.layout-blobs.brand-qc-blue::before {
    background-image: url('/static/images/template/kpis/blobs/background-qc-blue.svg');
}

.brand-qc-blue::before {
    background-color: rgba(0, 82, 255, 0.2);
}

.brand-qc-blue .kpi-heading {
    color: #fff;
}

.brand-qc-blue .kpi-description a {
    color: #318CE7;
    text-decoration-color: #318CE7;
    text-shadow: 0 1px 1px rgba(0, 45, 98, 0.2);
}

.brand-qc-blue .kpi-description a:hover,
.brand-qc-blue .kpi-description a:visited,
.brand-qc-blue .kpi-description a:active,
.brand-qc-blue .kpi-description a:focus {
    color: #002D62;
    text-decoration-color: #002D62;
    text-shadow: 0 1px 1px rgba(0, 45, 98, 0.2);
}

.brand-qc-blue .kpi-description p {
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8);
}

/* ============    CORVIDAE BLUE    ============ */

.layout-circles.brand-corvidae-blue::before {
    background-image: url('/static/images/template/kpis/circles/background-corvidae-blue.svg');
}

.layout-crosses.brand-corvidae-blue::before {
    background-image: url('/static/images/template/kpis/crosses/background-corvidae-blue.svg');
}

.layout-blobs.brand-corvidae-blue::before {
    background-image: url('/static/images/template/kpis/blobs/background-corvidae-blue.svg');
}

.brand-corvidae-blue::before {
    background-color: rgba(28, 22, 78, 0.2);
}

.brand-corvidae-blue .kpi-heading {
    color: #4D3A8E;
}

.brand-corvidae-blue .kpi-description a {
    color: #8E7AB5;
    text-decoration-color: #8E7AB5;
    text-shadow: 0 1px 1px rgba(43, 27, 84, 0.2);
}

.brand-corvidae-blue .kpi-description a:hover,
.brand-corvidae-blue .kpi-description a:visited,
.brand-corvidae-blue .kpi-description a:active,
.brand-corvidae-blue .kpi-description a:focus {
    color: #2B1B54;
    text-decoration-color: #2B1B54;
    text-shadow: 0 1px 1px rgba(43, 27, 84, 0.2);
}

.brand-corvidae-blue .kpi-description p {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* ============    SLATE    ============ */

.layout-circles.brand-slate::before {
    background-image: url('/static/images/template/kpis/circles/background-slate.svg');
}

.layout-crosses.brand-slate::before {
    background-image: url('/static/images/template/kpis/crosses/background-slate.svg');
}

.layout-blobs.brand-slate::before {
    background-image: url('/static/images/template/kpis/blobs/background-slate.svg');
}

.brand-slate::before {
    background-color: rgba(71, 73, 90, 0.2);
}

.brand-slate .kpi-heading {
    color: #ffffff;
}

.brand-slate .kpi-description a {
    color: #0097A7;
    text-decoration-color: #0097A7;
    text-shadow: 0 1px 1px rgba(0, 54, 58, 0.2);
}

.brand-slate .kpi-description a:hover,
.brand-slate .kpi-description a:visited,
.brand-slate .kpi-description a:active,
.brand-slate .kpi-description a:focus {
    color: #00363A;
    text-decoration-color: #00363A;
    text-shadow: 0 1px 1px rgba(0, 54, 58, 0.2);
}

.brand-slate .kpi-description p {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* ============    STONE    ============ */

.layout-circles.brand-stone::before {
    background-image: url('/static/images/template/kpis/circles/background-stone.svg');
}

.layout-crosses.brand-stone::before {
    background-image: url('/static/images/template/kpis/crosses/background-stone.svg');
}

.layout-blobs.brand-stone::before {
    background-image: url('/static/images/template/kpis/blobs/background-stone.svg');
}

.brand-stone::before {
    background-color: rgba(107, 124, 147, 0.2);
}

.brand-stone .kpi-heading,
.brand-stone .kpi-description p {
    color: #203354;
}

.brand-stone .kpi-description a {
    color: #4A69BD;
    text-decoration-color: #4A69BD;
}

.brand-stone .kpi-description a:hover,
.brand-stone .kpi-description a:visited,
.brand-stone .kpi-description a:active,
.brand-stone .kpi-description a:focus {
    color: #203354;
    text-decoration-color: #203354;
}

/* ============    PEBBLE    ============ */

.layout-circles.brand-pebble::before {
    background-image: url('/static/images/template/kpis/circles/background-pebble.svg');
}

.layout-crosses.brand-pebble::before {
    background-image: url('/static/images/template/kpis/crosses/background-pebble.svg');
}

.layout-blobs.brand-pebble::before {
    background-image: url('/static/images/template/kpis/blobs/background-pebble.svg');
}

.brand-pebble::before {
    background-color: rgba(196, 210, 222, 0.2);
}

.brand-pebble .kpi-heading,
.brand-pebble .kpi-description p {
    color: #1A3B66;
}

.brand-pebble .kpi-description a {
    color: #3A6394;
    text-decoration-color: #3A6394;
}

.brand-pebble .kpi-description a:hover,
.brand-pebble .kpi-description a:visited,
.brand-pebble .kpi-description a:active,
.brand-pebble .kpi-description a:focus {
    color: #1A3B66;
    text-decoration-color: #1A3B66;
}

/* ============    FOG    ============ */

.layout-circles.brand-fog::before {
    background-image: url('/static/images/template/kpis/circles/background-fog.svg');
}

.layout-crosses.brand-fog::before {
    background-image: url('/static/images/template/kpis/crosses/background-fog.svg');
}

.layout-blobs.brand-fog::before {
    background-image: url('/static/images/template/kpis/blobs/background-fog.svg');
}

.brand-fog::before {
    background-color: rgba(246, 246, 249, 0.2);
}

.brand-fog .kpi-heading,
.brand-fog .kpi-description p {
    color: #47495A;
}

.brand-fog .kpi-description a {
    color: #4E7B9B;
    text-decoration-color: #4E7B9B;
}

.brand-fog .kpi-description a:hover,
.brand-fog .kpi-description a:visited,
.brand-fog .kpi-description a:active,
.brand-fog .kpi-description a:focus {
    color: #1C164E;
    text-decoration-color: #1C164E;
}

/* ============    TEAL    ============ */

.layout-circles.brand-teal::before {
    background-image: url('/static/images/template/kpis/circles/background-teal.svg');
}

.layout-crosses.brand-teal::before {
    background-image: url('/static/images/template/kpis/crosses/background-teal.svg');
}

.layout-blobs.brand-teal::before {
    background-image: url('/static/images/template/kpis/blobs/background-teal.svg');
}

.brand-teal::before {
    background-color: rgba(0, 155, 174, 0.2);
}

.brand-teal .kpi-heading {
    color: #003D44;
}

.brand-teal .kpi-description a {
    color: #007E8C;
    text-decoration-color: #007E8C;
    text-shadow: 0 1px 1px rgba(0, 61, 68, 0.2);
}

.brand-teal .kpi-description a:hover,
.brand-teal .kpi-description a:visited,
.brand-teal .kpi-description a:active,
.brand-teal .kpi-description a:focus {
    color: #003D44;
    text-decoration-color: #003D44;
    text-shadow: 0 1px 1px rgba(0, 61, 68, 0.2);
}

.brand-teal .kpi-description p {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* ============    PETROL    ============ */

.layout-circles.brand-petrol::before {
    background-image: url('/static/images/template/kpis/circles/background-petrol.svg');
}

.layout-crosses.brand-petrol::before {
    background-image: url('/static/images/template/kpis/crosses/background-petrol.svg');
}

.layout-blobs.brand-petrol::before {
    background-image: url('/static/images/template/kpis/blobs/background-petrol.svg');
}

.brand-petrol::before {
    background-color: rgba(78, 123, 155, 0.2);
}

.brand-petrol .kpi-heading {
    color: #123040;
}

.brand-petrol .kpi-description a {
    color: #3A86AD;
    text-decoration-color: #3A86AD;
    text-shadow: 0 1px 1px rgba(18, 48, 64, 0.2);
}

.brand-petrol .kpi-description a:hover,
.brand-petrol .kpi-description a:visited,
.brand-petrol .kpi-description a:active,
.brand-petrol .kpi-description a:focus {
    color: #123040;
    text-decoration-color: #123040;
    text-shadow: 0 1px 1px rgba(18, 48, 64, 0.2);
}

.brand-petrol .kpi-description p {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* ============    PURPLE    ============ */

.layout-circles.brand-purple::before {
    background-image: url('/static/images/template/kpis/circles/background-purple.svg');
}

.layout-crosses.brand-purple::before {
    background-image: url('/static/images/template/kpis/crosses/background-purple.svg');
}

.layout-blobs.brand-purple::before {
    background-image: url('/static/images/template/kpis/blobs/background-purple.svg');
}

.brand-purple::before {
    background-color: rgba(187, 101, 255, 0.2);
}

.brand-purple .kpi-heading {
    color: #2E1A47;
}

.brand-purple .kpi-description a {
    color: #6A4E91;
    text-decoration-color: #6A4E91;
    text-shadow: 0 1px 1px rgba(46, 26, 71, 0.2);
}

.brand-purple .kpi-description a:hover,
.brand-purple .kpi-description a:visited,
.brand-purple .kpi-description a:active,
.brand-purple .kpi-description a:focus {
    color: #2E1A47;
    text-decoration-color: #2E1A47;
    text-shadow: 0 1px 1px rgba(46, 26, 71, 0.2);
}

.brand-purple .kpi-description p {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* ============    PINK    ============ */

.layout-circles.brand-pink::before {
    background-image: url('/static/images/template/kpis/circles/background-pink.svg');
}

.layout-crosses.brand-pink::before {
    background-image: url('/static/images/template/kpis/crosses/background-pink.svg');
}

.layout-blobs.brand-pink::before {
    background-image: url('/static/images/template/kpis/blobs/background-pink.svg');
}

.brand-pink::before {
    background-color: rgba(255, 109, 156, 0.2);
}

.brand-pink .kpi-heading,
.brand-pink .kpi-description p {
    color: #5C002A;
}

.brand-pink .kpi-description a {
    color: #AD004F;
    text-decoration-color: #AD004F;
}

.brand-pink .kpi-description a:hover,
.brand-pink .kpi-description a:visited,
.brand-pink .kpi-description a:active,
.brand-pink .kpi-description a:focus {
    color: #5C002A;
    text-decoration-color: #5C002A;
}

/* ============    YELLOW    ============ */

.layout-circles.brand-yellow::before {
    background-image: url('/static/images/template/kpis/circles/background-yellow.svg');
}

.layout-crosses.brand-yellow::before {
    background-image: url('/static/images/template/kpis/crosses/background-yellow.svg');
}

.layout-blobs.brand-yellow::before {
    background-image: url('/static/images/template/kpis/blobs/background-yellow.svg');
}

.brand-yellow::before {
    background-color: rgba(255, 182, 114, 0.2);
}

.brand-yellow .kpi-heading {
    color: #52217A;
}

.brand-yellow .kpi-description a {
    color: #824CB3;
    text-decoration-color: #824CB3;
}

.brand-yellow .kpi-description a:hover,
.brand-yellow .kpi-description a:visited,
.brand-yellow .kpi-description a:active,
.brand-yellow .kpi-description a:focus {
    color: #52217A;
    text-decoration-color: #52217A;
}

/* ============    GREEN    ============ */

.layout-circles.brand-green::before {
    background-image: url('/static/images/template/kpis/circles/background-green.svg');
}

.layout-crosses.brand-green::before {
    background-image: url('/static/images/template/kpis/crosses/background-green.svg');
}

.layout-blobs.brand-green::before {
    background-image: url('/static/images/template/kpis/blobs/background-green.svg');
}

.brand-green::before {
    background-color: rgba(0, 235, 164, 0.2);
}

.brand-green .kpi-heading,
.brand-green .kpi-description p {
    color: #064036;
}

.brand-green .kpi-description a {
    color: #00A88E;
    text-decoration-color: #00A88E;
}

.brand-green .kpi-description a:hover,
.brand-green .kpi-description a:visited,
.brand-green .kpi-description a:active,
.brand-green .kpi-description a:focus {
    color: #064036;
    text-decoration-color: #064036;
}

/* ============================================
   CONTACT FORM MODAL
   ============================================ */

#contact-modal {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    border-radius: 8px !important;
    max-width: 800px;
    width: 90%;
    overflow: hidden !important;
    padding: 0;
}

#contact-modal article {
    background-color: rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 0;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#contact-modal article::-webkit-scrollbar {
    display: none;
}

#contact-modal::backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

#contact-modal header {
    background-color: transparent;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem 0 1.5rem;
}

#contact-modal header h3 {
    margin: 0;
}

#contact-modal .close {
    margin-bottom: 0;
    opacity: 0.6;
    transition: opacity 0.2s;
    color: #FF0630;
    text-decoration: none;
    font-size: 1.2rem;
    line-height: 1;
}

#contact-modal .close:hover {
    opacity: 1;
    color: var(--pico-primary-hover);
}

#contact-modal footer {
    padding-top: 1rem;
}

#qc-enquiry-capture .grid {
    grid-row-gap: 0;
}

#contact-modal legend {
    font-size: 0.6rem;
    text-transform: uppercase;
    font-weight: bold;
}

#contact-modal fieldset {
    font-size: 0.8rem;
    margin-top: var(--pico-spacing);
}

#contact-modal label[for="privacy_policy"] {
    font-size: 0.8rem;
}

#contact-modal label[for="marketing_opt_in"] {
    font-size: 0.8rem;
}

#contact-modal input#firstname,
#contact-modal input#lastname,
#contact-modal input#email,
#contact-modal input#phone,
#contact-modal textarea#message {
    margin-bottom: 0.1rem;
}

.pico #qc-enquiry-capture label:has([type=checkbox], [type=radio]) {
    margin-bottom: 0.2rem;
}

.form-success {
    text-align: center;
    padding: 2rem;
}

.form-success .success-rocket {
    font-size: 3rem;
}

.form-error {
    color: #fff;
    margin: 1rem;
    padding: 1rem;
    font-size: 0.8rem;
    text-align: center;
    background-color: rgba(184, 4, 67, 1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#contact-modal label[for="firstname"] span,
#contact-modal label[for="lastname"] span,
#contact-modal label[for="email"] span,
#contact-modal label[for="phone"] span,
#contact-modal label[for="message"] span {
    display: none;
}

.recaptcha-disclaimer {
    font-size: 0.7rem;
    color: #666;
    margin-top: 1rem;
    text-align: center;
}

@media (max-width: 766px) {

    #contact-modal article {
        padding: 1.5rem 1.2rem;
    }

    #contact-modal input,
    #contact-modal textarea {
        margin-top: 0;
        margin-bottom: 0;
    }

    #contact-modal label[for="privacy_policy"] {
        font-size: 0.7rem;
    }

    #contact-modal label[for="marketing_opt_in"] {
        font-size: 0.7rem;
    }

    #contact-modal fieldset {
        margin-top: 1rem;
        margin-bottom: 0.2rem;
    }

    #contact-modal fieldset div.grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    #contact-modal fieldset label {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
    }

    .recaptcha-disclaimer {
        margin-top: 0.5rem;
        margin-bottom: 0;
        font-size: 0.65rem;
        line-height: 1.2;
    }

}

/* ============================================
   NEWSLETTER MODAL
   ============================================ */

#newsletter-modal {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    border-radius: 8px !important;
    max-width: 800px;
    width: 90%;
    overflow: hidden !important;
    padding: 0;
}

#newsletter-modal article {
    background-color: rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 0;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#newsletter-modal article::-webkit-scrollbar {
    display: none;
}

#newsletter-modal::backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

#newsletter-modal header {
    background-color: transparent;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem 0 1.5rem;
}

#newsletter-modal header h3 {
    margin: 0;
}

#newsletter-modal .close {
    margin-bottom: 0;
    opacity: 0.6;
    transition: opacity 0.2s;
    color: #FF0630;
    text-decoration: none;
    font-size: 1.2rem;
    line-height: 1;
}

#newsletter-modal .close:hover {
    opacity: 1;
    color: var(--pico-primary-hover);
}

#newsletter-modal footer {
    padding-top: 1rem;
}

#qc-newsletter-capture .grid {
    grid-row-gap: 0;
}

#newsletter-modal legend {
    font-size: 0.6rem;
    text-transform: uppercase;
    font-weight: bold;
}

#newsletter-modal fieldset {
    font-size: 0.8rem;
    margin-top: var(--pico-spacing);
}

#newsletter-modal label[for="newsletter_privacy_policy"] {
    font-size: 0.8rem;
}

#newsletter-modal label[for="newsletter_marketing_opt_in"] {
    font-size: 0.8rem;
}

#newsletter-modal input#newsletter_firstname,
#newsletter-modal input#newsletter_lastname,
#newsletter-modal input#newsletter_email,
#newsletter-modal input#newsletter_phone {
    margin-bottom: 0.1rem;
}

#newsletter-modal label[for="newsletter_firstname"] span,
#newsletter-modal label[for="newsletter_lastname"] span,
#newsletter-modal label[for="newsletter_email"] span,
#newsletter-modal label[for="newsletter_phone"] span {
    display: none;
}

@media (max-width: 766px) {

    #newsletter-modal article {
        padding: 1.5rem 1.2rem;
    }

    #newsletter-modal input,
    #newsletter-modal textarea {
        margin-top: 0;
        margin-bottom: 0;
    }

    #newsletter-modal label[for="newsletter_privacy_policy"] {
        font-size: 0.7rem;
    }

    #newsletter-modal label[for="newsletter_marketing_opt_in"] {
        font-size: 0.7rem;
    }

    #newsletter-modal fieldset {
        margin-top: 1rem;
        margin-bottom: 0.2rem;
    }

    #newsletter-modal fieldset div.grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    #newsletter-modal fieldset label {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
    }
}

/* ============================================
   FOOTER CREDENTIALS SECTION
   ============================================ */

.qc-creds-section {
    padding: 2rem 0 1rem 0;
    background-color: rgba(245, 245, 245, 0.6);
    backdrop-filter: blur(10px);
    text-align: center;
    border-top: 1px solid var(--pico-muted-border-color);
    border-bottom: none;
    width: 100vw;
    margin-left: -50vw;
    left: 50%;
    position: relative;
}

.qc-creds-section h6 {
    margin: 0 0 1rem 0;
    text-align: left;
    color: var(--pico-contrast);
    font-weight: 700;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.qc-svg-item {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    height: 100px;
}

.qc-svg-item svg,
.qc-svg-item img {
    width: auto !important;
    height: auto !important;
    max-height: 100% !important;
    max-width: 100% !important;
    filter: grayscale(100%) opacity(0.8);
    transition: all 0.4s ease-in-out;
}

.qc-svg-item svg:hover,
.qc-svg-item img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

#google-cert,
#google-sales,
#bing-accred {
    max-height: 55px !important;
}

@media (max-width: 768px) {
    .qc-creds-section .grid.credentials {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem !important;
    }

    .qc-svg-item {
        height: 60px;
        padding: 0.5rem;
    }

    #google-cert,
    #google-sales,
    #bing-accred {
        max-height: 35px !important;
    }
}

/* ============================================
   EXTERNAL LINKS
   ============================================ */

.external-link::after {
    content: "\f08e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.6em;
    vertical-align: super;
    margin-left: 0.3rem;
    display: inline-block;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.external-link:hover::after {
    opacity: 1;
}

/* ============================================
   SHARE BUTTONS
   ============================================ */

.share-container {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 1000;
}

.insight-page {
    overflow: visible !important;
    position: relative;
}

.share-toggle {
    background: #FF0630 !important;
    color: #fff !important;
    padding: var(--pico-form-element-spacing-vertical, 0.5rem) var(--pico-form-element-spacing-horizontal, 1rem) !important;
    border-radius: var(--pico-border-radius, 0.25rem) !important;
    font-weight: 600 !important;
    border: none !important;
    white-space: nowrap;
    box-shadow: none !important;
    margin: 0 !important;
}

.share-toggle:hover,
.share-toggle:focus,
.share-toggle.active {
    background: #d40528 !important;
    transform: none !important;
    box-shadow: none !important;
    color: #fff !important;
    border: none !important;
    backdrop-filter: none !important;
}

.share-toggle.active i {
    color: #fff !important;
}

.share-menu {
    display: none !important;
    position: absolute !important;
    top: 2rem !important;
    left: calc(100% - 4rem) !important;
    right: auto !important;
    bottom: auto !important;
    width: 60px !important;
    min-width: unset !important;
    z-index: 1001;
    padding: 0.5rem 0 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
}

.share-menu.show {
    display: block !important;
}

.share-list {
    display: flex !important;
    flex-direction: column !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.share-list li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.share-list li::before {
    content: none !important;
}

.share-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 1.4rem !important;
    transition: all 0.2s ease;
}

.share-link:hover {
    background-color: rgba(255, 6, 48, 0.05) !important;
    color: #FF0630 !important;
}

.share-link i {
    width: 24px;
    height: 24px;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a !important;
}

.share-link:hover i {
    color: #FF0630 !important;
}

/* ============================================
   INSIGHT AUTHOR SECTION
   ============================================ */

.insight-author-section {
    margin-top: 2rem;
}

.author-grid {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

@media (max-width: 768px) {
    .author-grid {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

.author-image-container {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
}

.author-avatar-large {
    width: 150px !important;
    height: 150px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    background-color: transparent !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.author-placeholder-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: var(--pico-secondary-background);
}

.author-info h3 {
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
}

.author-job-title {
    color: var(--pico-muted-color);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.author-bio {
    font-size: 1rem;
    line-height: 1.6;
}

/* ============================================
   FEATURED IMAGE CONTAINMENT
   ============================================ */

.insight-featured-image-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    margin-bottom: 2rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    background-color: transparent !important;
}

.featured-image {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover !important;
}

/* ============================================
   IMAGE MODAL SPECIFIC STYLES
   ============================================ */

#image-modal {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    border-radius: 8px !important;
    max-width: 95vw;
    width: 95vw;
    overflow: hidden !important;
    padding: 0;
}

#image-modal article {
    background-color: rgba(255, 255, 255, 1) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 8px !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    padding: 2rem !important;
    margin: 0 !important;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

#image-modal::-webkit-scrollbar,
#image-modal article::-webkit-scrollbar {
    display: none;
}

#image-modal::backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

#image-modal header {
    background-color: transparent;
    border-bottom: none;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 1rem 1.5rem 0 1.5rem;
}

#image-modal .close {
    margin: 0;
    opacity: 0.6;
    transition: opacity 0.2s;
    color: #FF0630;
    text-decoration: none;
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    background: transparent;
    border: none !important;
}

#image-modal .close:hover {
    opacity: 1;
    color: var(--pico-primary-hover);
    background: transparent;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

#image-modal .close:active,
#image-modal .close:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent;
}

.image-modal-body img,
.image-modal-body figure {
    max-height: 100%;
    max-width: none !important;
    width: 100%;
    margin: 0 auto;
}

.image-modal-body figure.standalone-image,
.image-modal-body figure.content-image,
.image-modal-body figure {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    max-width: none !important;
    width: 100% !important;
    max-height: 100%;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center;
}

.image-modal-body figure img,
.image-modal-body img {
    max-width: 100%;
    max-height: 100%;
    min-height: 0 !important;
    display: block;
    object-fit: contain;
    border-radius: 4px;
    padding: 0 !important;
    margin: 0 auto !important;
    flex-grow: 1;
}

.image-modal-body figcaption,
.image-modal-body .image-caption {
    margin-top: 1rem;
    text-align: center;
    flex-shrink: 0;
    color: var(--pico-color);
    background: transparent !important;
    padding: 0 !important;
}

.image-modal-body {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 0;
    flex-grow: 1;
    min-height: 0;
    overflow: hidden;
}

figure.standalone-image img,
figure.content-image img,
.richtext-image,
figure img {
    cursor: zoom-in;
}

figure.standalone-image img:hover,
figure.content-image img:hover,
.richtext-image:hover,
figure img:hover {
    opacity: 0.95;
    transition: opacity 0.2s ease-in-out;
}

.grecaptcha-badge {
    visibility: hidden !important;
}

/* ==========================================================================
   Wagtail Native Form Builder (.pico-form-wrapper)
   ========================================================================== */

.pico-form-wrapper form,
.pico-form-wrapper.native-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.2rem;
}

.pico label:has([type=checkbox], [type=radio]) {
    margin-bottom: 0;
}

.pico .form-fieldset label:has([type=checkbox], [type=radio]) {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {

    .pico-form-wrapper form,
    .pico-form-wrapper.native-form {
        grid-template-columns: 1fr;
    }
}

.pico-form-wrapper .field-wrapper:has(textarea),
.pico-form-wrapper .field-wrapper:has(input[type="checkbox"]),
.pico-form-wrapper .field-wrapper:has(input[type="radio"]),
.pico-form-wrapper button[type="submit"] {
    grid-column: 1 / -1;
}

.pico-form-wrapper small.help-text {
    display: block;
    margin-top: -1rem;
    margin-bottom: 1rem;
    color: var(--pico-muted-color);
}

#qc-newsletter-capture label {
    margin-bottom: 0.2rem;
}

/* ==========================================================================
   STREAMFORMS OVERRIDES (Pico CSS Grid Integration)
   ========================================================================== */

.pico-form-wrapper .field-wrapper {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
}

.pico-form-wrapper .field-wrapper.half-width {
    grid-column: span 1;
}

.pico-form-wrapper p {
    grid-column: 1 / -1;
}

.pico-form-wrapper input,
.pico-form-wrapper select,
.pico-form-wrapper textarea {
    margin-bottom: 0.25rem;
    width: 100%;
    scroll-margin-top: 150px;
}

.pico-form-wrapper .field-wrapper .help-text {
    font-size: 0.65rem;
    color: var(--pico-muted-color);
    margin-top: 0.25rem;
}

/* ==========================================================================
   Wagtail Native Form Message Alerts
   ========================================================================== */

.alert {
    padding: 1rem;
    border-radius: var(--pico-border-radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.alert p {
    margin-bottom: 0;
}

.alert-success {
    background-color: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.alert-success p {
    color: #27ae60;
    font-weight: bold;
}

.pico-form-wrapper.native-form fieldset.form-fieldset {
    border: 1px solid var(--pico-muted-border-color);
    padding: 1rem;
    margin-top: 1rem;
    margin-bottom: var(--pico-spacing);
    border-radius: var(--pico-border-radius);
    background-color: transparent;
}

.pico-form-wrapper.native-form fieldset.form-fieldset legend {
    background-color: var(--pico-background-color);
    padding: 0 0.5rem;
    margin-left: -0.5rem;
    width: auto;
    margin-bottom: 0;

    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--pico-color);
}

.pico-form-wrapper.native-form fieldset.form-fieldset .fieldset-content {
    margin-top: 0.5rem;
}

.pico-form-wrapper.native-form .field-wrapper>label>input[type="checkbox"] {
    margin-right: 0.5rem;
    margin-top: 0;
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.alert-danger p {
    color: #c0392b;
    font-weight: bold;
}

@media (max-width: 576px) {
    .pico-form-wrapper form {
        grid-template-columns: 1fr;
    }

}

/* ============================================
   CASE STUDY PILL STYLING
   ============================================ */

.kpi-tile.case-study-pill {
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), var(--cs-bg) center/cover no-repeat;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform;
}

.kpi-tile.case-study-pill:hover {
    transform: translateY(-5px) translateZ(0);
}

.kpi-tile.case-study-pill .kpi-content {
    background: none;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    padding-left: 2rem;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.case-study-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.case-study-grid .case-study-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.kpi-tile.case-study-pill .kpi-heading {
    margin-bottom: 0;
    font-size: 2rem;
}

.kpi-tile.case-study-pill .kpi-description {
    font-size: 1.15rem;
    line-height: 1.6;
}

.kpi-tile.case-study-pill .kpi-heading,
.kpi-tile.case-study-pill .kpi-description p {
    width: 100%;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8);
    transform: translateZ(0);
}



.location-snippet {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.location-caption {
    text-align: left !important;
    font-style: normal !important;
    font-size: 1rem !important;
    padding-bottom: 0 !important;
}

.location-snippet .schema-place-name {
    color: var(--pico-h2-color);
    margin-bottom: 0;
}

.location-snippet .schema-postal-address {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.map-embed-container {
    position: relative;
    width: 100%;
    
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--pico-border-radius);
}

.map-embed-container.location-map {
    margin: 0 1rem 1rem 1rem;
    width: calc(100% - 2rem);
}

.google-map-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-embed-container.location-map iframe {
    border-radius: calc(var(--pico-border-radius) / 2);
}


.cta-snippet-breakout {
    position: relative;
    width: 100vw;
    margin-left: -50vw;
    left: 50%;
    padding: 4rem 0;
    margin-bottom: 0;
    margin-top: 1.5rem;
    color: white;
}

.cta-snippet-breakout .cta-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.cta-snippet-breakout .cta-left h5 {
    color: inherit;
    font-size: 2.5rem;
    font-weight: 700;
    max-width: 90%;
    margin-bottom: 2rem;
}

.cta-snippet-breakout .contact-button.white-btn {
    background-color: white;
    color: #ff0630;
    border: none;
    font-weight: bold;
    border-radius: var(--pico-border-radius);
    padding: 0.75rem 2rem;
    cursor: pointer;
}

.cta-snippet-breakout .contact-button.white-btn:hover,
.cta-snippet-breakout .contact-button.white-btn:active,
.cta-snippet-breakout .contact-button.white-btn:focus {
    background-color: var(--pico-primary-background);
    color: white;
}

.cta-snippet-breakout .cta-right {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-snippet-breakout .cta-right h6 {
    color: inherit;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-snippet-breakout .cta-right p {
    color: inherit;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .cta-snippet-breakout .cta-right {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        padding-left: 0;
        padding-top: 2rem;
        margin-top: 2rem;
    }

    .cta-snippet-breakout .cta-left h5 {
        font-size: 1.8rem;
        max-width: 100%;
    }
}

.cta-snippet-breakout.bg-qc-blue {
    background-color: rgba(0, 82, 255, 0.9);
}

.cta-snippet-breakout.bg-qc-red {
    background-color: rgba(255, 6, 48, 0.9);
}

.cta-snippet-breakout.bg-slate {
    background-color: rgba(71, 73, 90, 0.9);
}

.cta-snippet-breakout.bg-stone {
    background-color: rgba(107, 124, 147, 0.9);
}

.cta-snippet-breakout.bg-teal {
    background-color: rgba(0, 155, 174, 0.9);
}

.cta-snippet-breakout.bg-petrol {
    background-color: rgba(78, 123, 155, 0.9);
}

.cta-snippet-breakout.bg-purple {
    background-color: rgba(187, 101, 255, 0.9);
}

.cta-snippet-breakout.bg-pink {
    background-color: rgba(255, 109, 156, 0.9);
}

.cta-snippet-breakout.bg-yellow {
    background-color: rgba(255, 182, 114, 0.9);
    color: var(--pico-contrast);
}

.cta-snippet-breakout.bg-green {
    background-color: rgba(0, 235, 164, 0.9);
}

.cta-snippet-breakout.bg-cherry {
    background-color: rgba(184, 4, 67, 0.9);
}

.cta-snippet-breakout.bg-corvidae-blue {
    background-color: rgba(28, 22, 78, 0.9);
}

.cta-snippet-breakout.bg-fog {
    background-color: rgba(246, 246, 249, 0.9);
    color: var(--pico-contrast);
}

.cta-snippet-breakout.bg-pebble {
    background-color: rgba(196, 210, 222, 0.9);
    color: var(--pico-contrast);
}

.cta-snippet-breakout.bg-white {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--pico-contrast);
}

/* ============================================
   ERROR PAGES (404/500)
   ============================================ */
.error-page-container {
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.error-page-title {
    color: var(--qc-red);
    font-size: 4rem;
    margin-bottom: 0;
}

.error-page-container a[role="button"],
.error-page-container a[role="button"]:focus {
    color: #ffffff !important;
    background-color: #ff0630 !important;
    border: none !important;
    box-shadow: none !important;
}

.error-page-container a[role="button"]:hover,
.error-page-container a[role="button"]:active {
    background-color: #80042f !important;
}
