/* --- HERO SECTION --- */

.pico.hero,
.pico .hero {
    position: relative;
    overflow: hidden;
    background:
        url("/static/images/template/components/brand/heros/qc-site-header-hero-alt-a-home-cross-arrows-fog.dcb3bc2b8c7d.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: #ffffff !important;
    padding: 6rem 0 6rem 0;
    text-align: center;
    margin-bottom: 0;
    border-bottom: 1px solid var(--pico-muted-border-color);
}

.pico.hero > .container,
.pico .hero > .container {
    position: relative;
    z-index: 2;
}

.pico.hero.service,
.pico .hero.service {
    background:
        url("/static/images/template/components/brand/heros/qc-site-header-hero-alt-a-home-cross-arrows-fog.dcb3bc2b8c7d.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;
    padding: 4rem 0 4rem 0;
}

.pico.hero.insight,
.pico .hero.insight {
    background:
        url("/static/images/template/components/brand/heros/qc-site-header-hero-alt-a-home-cross-arrows-fog.dcb3bc2b8c7d.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;
    padding: 4rem 0 5rem 0;
}

/* Hero Author Meta line styling */
.pico.hero .author-meta-line,
.pico .hero .author-meta-line,
.pico.hero .author-meta-line small,
.pico .hero .author-meta-line small {
    color: rgba(255, 255, 255, 0.85);
}

.pico.hero .author-meta-line a,
.pico .hero .author-meta-line a {
    color: #ffffff;
    text-decoration: underline;
}


@media screen and (min-width: 1024px) {
    .pico.hero,
    .pico .hero {
        padding: 12rem 0 9rem 0 !important;
    }

    .pico.hero.service,
    .pico .hero.service {
        padding: 12rem 0 6rem 0 !important;
    }

    .pico.hero.insight,
    .pico .hero.insight {
        padding: 9rem 0 7.5rem 0 !important;
    }
}

@media screen and (max-width: 1023px) {
    .pico.hero,
    .pico .hero {
        padding: max(5.5rem, 20vh) 0 6rem 0 !important;
    }

    .pico.hero.service,
    .pico .hero.service {
        padding: max(5.5rem, 20vh) 0 4rem 0 !important;
    }

    .pico.hero.insight,
    .pico .hero.insight {
        padding: max(5rem, 18vh) 0 5rem 0 !important;
    }
}

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

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

.teaser-graphic {
    position: absolute;
    left: 65%;
    top: -1.0rem;
    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: -2.0rem;
    }
}

/* --- SERVICE CALLOUTS --- */

.service-callouts {
    margin-top: -6rem;
    margin-bottom: 0 !important;
    position: relative;
    z-index: 10;
    padding-top: 0;
    padding-bottom: 2.75rem !important;
    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);
}

.callout-card > *,
.full-width-callouts .box > * {
    position: relative;
    z-index: 2;
}

.attribution-card {
    background-image: url("/static/images/template/components/callouts/corvidae-callout-red-database-compact.e3772b545227.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;
}

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

.pico .attribution-card p,
.page-background-section .pico .attribution-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: #ffffff;
    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%;
}

.pico .service-card h2.service-label,
.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;
    }
}

.pico.hero h1,
.pico .hero h1 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    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) !important;
}

.pico.hero p,
.pico .hero p {
    color: #ffffff !important;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5) !important;
}

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

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

/* --- KPI TILE & CAROUSEL STYLING --- */

@media (max-width: 766px) {

    .glass-card.section-card:has(.kpi-block-container) {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .glass-card.section-card:has(.kpi-block-container)>.section-card-content>.richtext {
        background-color: rgba(255, 255, 255, 0.7);

        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 8px;
        padding: 1.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.3);
        display: flow-root;
    }

    .glass-card.section-card.tint-corvidae-blue:has(.kpi-block-container)>.section-card-content>.richtext {
        background-color: rgba(28, 22, 78, 0.10);
    }

    .glass-card.section-card.tint-mid-blue:has(.kpi-block-container)>.section-card-content>.richtext {
        background-color: rgba(62, 85, 200, 0.10);
    }

    .glass-card.section-card.tint-bright-blue:has(.kpi-block-container)>.section-card-content>.richtext {
        background-color: rgba(85, 162, 230, 0.10);
    }

    .glass-card.section-card.tint-stone:has(.kpi-block-container)>.section-card-content>.richtext {
        background-color: rgba(107, 124, 147, 0.10);
    }

    .glass-card.section-card.tint-light-blue:has(.kpi-block-container)>.section-card-content>.richtext {
        background-color: rgba(188, 222, 253, 0.40);
    }

    .glass-card.section-card.tint-white:has(.kpi-block-container)>.section-card-content>.richtext {
        background-color: rgba(255, 255, 255, 0.10);
    }

    .glass-card.section-card.tint-dark-turquoise:has(.kpi-block-container)>.section-card-content>.richtext {
        background-color: rgba(20, 210, 210, 0.10);
    }

    .glass-card.section-card.tint-light-teal:has(.kpi-block-container)>.section-card-content>.richtext {
        background-color: rgba(15, 247, 177, 0.10);
    }

    .glass-card.section-card.tint-butterscotch:has(.kpi-block-container)>.section-card-content>.richtext {
        background-color: rgba(255, 182, 46, 0.10);
    }

    .glass-card.section-card:has(.kpi-block-container)>.section-card-content>.richtext:not(:last-child) {
        margin-bottom: 1.5rem !important;
    }

    .glass-card.section-card:has(.kpi-block-container)>.section-card-content>.richtext:not(:first-child) {
        margin-top: 1.5rem !important;
    }

    .glass-card.section-card .kpi-block-container {
        position: relative !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        margin-top: 1.5rem !important;
        margin-bottom: 1.5rem !important;
        left: auto !important;
    }

    .glass-card.section-card .kpi-block-container .kpi-tile {
        border-radius: 12px !important;
    }

    .kpi-carousel .kpi-block-container {
        position: static !important;
        width: auto !important;
        left: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .kpi-carousel .kpi-block-container .kpi-tile {
        border-radius: 12px !important;
    }

    .kpi-tile {
        padding: 1.5rem;
        min-height: auto;
    }

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

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

    .full-width-callouts .grid {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .full-width-callouts .box {
        padding: 1.5rem !important;
    }

}

.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;
    background: none !important;
    -webkit-background-clip: border-box !important;
    -webkit-text-fill-color: #1C164E !important;
    background-clip: border-box !important;
    color: #1C164E !important;
}

.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;
}

/* ------------------------------------------------------------------
   Table yes / no icon substitution
   table-icons.js stamps data-table-value="yes"|"no" on matching <td>
   cells. We then hide the raw text (font-size: 0) and render the
   appropriate Heroicon solid SVG via ::before.

   check-badge  →  green  (#16a34a / Tailwind green-600 equivalent)
   no-symbol    →  red    (#dc2626 / Tailwind red-600 equivalent)
   ------------------------------------------------------------------ */

/* Shared reset: hide the raw text inside a classified cell */
.table-container tbody td[data-table-value] {
    font-size: 0;
    line-height: 0;
    text-align: center;
    vertical-align: middle;
}

/* Shared icon sizing */
.table-container tbody td[data-table-value]::before {
    content: '';
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    vertical-align: middle;
}

/*
 * "Yes" → Heroicons solid check-badge (green)
 * SVG source: https://heroicons.com — check-badge, solid variant
 * Colour applied by replacing the default currentColor stroke/fill
 * with the green hex directly inside the data URI.
 */
.table-container tbody td[data-table-value="yes"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2316a34a'%3E%3Cpath fill-rule='evenodd' d='M8.603 3.799A4.49 4.49 0 0 1 12 2.25c1.357 0 2.573.6 3.397 1.549a4.49 4.49 0 0 1 3.498 1.307 4.491 4.491 0 0 1 1.307 3.497A4.49 4.49 0 0 1 21.75 12a4.49 4.49 0 0 1-1.549 3.397 4.491 4.491 0 0 1-1.307 3.497 4.491 4.491 0 0 1-3.497 1.307A4.49 4.49 0 0 1 12 21.75a4.49 4.49 0 0 1-3.397-1.549 4.49 4.49 0 0 1-3.498-1.306 4.491 4.491 0 0 1-1.307-3.498A4.49 4.49 0 0 1 2.25 12c0-1.357.6-2.573 1.549-3.397a4.49 4.49 0 0 1 1.307-3.497 4.49 4.49 0 0 1 3.497-1.307Zm7.007 6.387a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

/*
 * "No" → Heroicons solid no-symbol (red)
 * SVG source: https://heroicons.com — no-symbol, solid variant
 */
.table-container tbody td[data-table-value="no"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23dc2626'%3E%3Cpath fill-rule='evenodd' d='M6.72 5.66l11.62 11.62A8.25 8.25 0 0 0 6.72 5.66Zm10.56 12.68L5.66 6.72a8.25 8.25 0 0 0 11.62 11.62ZM5.105 5.106c3.807-3.808 9.98-3.808 13.788 0 3.808 3.807 3.808 9.98 0 13.788-3.807 3.808-9.98 3.808-13.788 0-3.808-3.807-3.808-9.98 0-13.788Z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.kpi-tile {
    position: relative;
    padding: 3rem 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    min-height: 250px;
    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;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.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;
    pointer-events: none;
}
.cta-pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    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.05;
}

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

.kpi-content {
    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-description {
    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;
}

/* --- SHARE BUTTONS --- */

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

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

.share-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    height: auto !important;
    background: #FF0630 !important;
    color: #fff !important;
    padding: 0.55rem 1.1rem !important;
    border-radius: var(--pico-border-radius) !important;
    font-weight: 500 !important;
    font-size: 0.85em !important;
    font-family: inherit !important;
    line-height: var(--pico-line-height, 1.5) !important;
    border: none !important;
    white-space: nowrap;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    margin: 0 !important;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
}

.share-toggle:hover,
.share-toggle:focus,
.share-toggle.active {
    background: #B80443 !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: calc(100% + 5px) !important;
    left: auto !important;
    right: 0 !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;
}

/* --- 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;
}

/* --- CASE STUDY PILL STYLING --- */

.kpi-tile.case-study-pill {
    background: linear-gradient(var(--theme-bg-kpi, transparent), var(--theme-bg-kpi, transparent)), linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), var(--cs-bg) center/cover no-repeat !important;
    min-height: 400px;
    max-width: 100% !important;
    box-shadow: 0 10px 30px rgba(62, 85, 200, 0.05) !important;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform;
}

.kpi-tile.case-study-pill .cta-pattern-overlay::before {
    opacity: 0.05 !important;
}

.kpi-tile.case-study-pill:hover {
    box-shadow: 0 20px 40px rgba(62, 85, 200, 0.08) !important;
    transform: translateZ(0) !important;
}

.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;
}

.kpi-tile.case-study-pill .kpi-agency-logo {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: auto;
    margin-top: 0;
}

.case-study-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 0;
    padding-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 {
    color: #1C164E !important;
    text-shadow: none !important;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

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

.kpi-tile.case-study-pill .kpi-description p {
    width: 100%;
    color: var(--theme-text-color, #1C164E) !important;
    text-shadow: none !important;
    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;
    left: 50%;
    transform: translateX(-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;
}

.page-background-section .pico .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 {
    border: none;
    border-radius: 4px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.cta-snippet-breakout .contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-snippet-breakout .contact-button.brand-white,
.cta-snippet-breakout .contact-button.white-btn {
    background-color: white;
    color: #FF0630;
}

.cta-snippet-breakout .contact-button.brand-qc-red {
    background-color: #FF0630;
    color: white;
}

.cta-snippet-breakout .contact-button.brand-qc-blue {
    background-color: #002D62;
    color: white;
}

.cta-snippet-breakout .contact-button.brand-butterscotch {
    background-color: #f1a93c;
    color: #1C164E;
}

.cta-snippet-breakout .contact-button.brand-cherry {
    background-color: #8C1D40;
    color: white;
}

.cta-snippet-breakout .contact-button.brand-pink {
    background-color: #E24C80;
    color: white;
}

.cta-snippet-breakout .contact-button.brand-corvidae-blue {
    background-color: #2F3E75;
    color: white;
}

/* Button SVG background patterns */
.cta-snippet-breakout .contact-button.has-pattern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

.cta-snippet-breakout .contact-button.has-pattern.layout-circles::before {
    background-image: var(--theme-circles-bg);
}

.cta-snippet-breakout .contact-button.has-pattern.layout-crosses::before {
    background-image: var(--theme-crosses-bg);
}

.cta-snippet-breakout .contact-button.has-pattern.layout-blobs::before {
    background-image: var(--theme-blobs-bg);
}

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

.page-background-section .pico .cta-snippet-breakout .cta-right h6 {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: inherit;
    background-clip: unset;
    color: inherit;
    padding: 0;
    font-size: 1.875rem;
    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 {
        width: auto !important;
        margin-left: -1.5rem !important;
        margin-right: -1.5rem !important;
        left: 0 !important;
        transform: none !important;
        border-radius: 0 !important;
    }

    .cta-snippet-breakout .cta-right {
        border-left: none;
        border-top: 2px 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%;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .cta-snippet-breakout {
        width: auto !important;
        margin-left: -3rem !important;
        margin-right: -3rem !important;
        left: 0 !important;
        transform: none !important;
        border-radius: 0 !important;
    }
}

/* --- 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: #B80443 !important;
}

/* ==========================================================================
   Author Profile Page & Author Index Page
   Consistent with the glass-card / author-grid pattern used in insight_page.
   ========================================================================== */

/* ---- Author hero layout -------------------------------------------- */
/* Force row layout so avatar sits left of the h1, regardless of any   */
/* text-align:center applied to the parent .hero-content class.         */
.author-hero {
    display: flex;
    flex-direction: row;        /* avatar left, text right */
    align-items: center;
    justify-content: flex-start;
    gap: 1.75rem;
    flex-wrap: nowrap;          /* never stack — keep side by side */
    text-align: left;           /* override hero-content centering */
}

.author-hero-avatar {
    flex: 0 0 auto;             /* fixed size, never shrinks */
}

.author-hero-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.author-hero-text {
    flex: 1 1 auto;
}

.author-hero-text h1 {
    margin-bottom: 0.25rem;
}

.author-job-title {
    opacity: 0.8;
    font-size: 1rem;
    margin-top: 0;
}

/* ---- Social link pills --------------------------------------------- */
.author-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 1rem;
    list-style: none;
    padding: 0;
}

.author-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.875rem 0.35rem 0.625rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: inherit;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s ease, border-color 0.2s ease;
    backdrop-filter: blur(6px);
}

.author-social-link:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
}

/* Hero variant — white text on dark hero background */
.author-social-links--hero .author-social-link {
    color: #fff;
}

/* Card variant — dark text on light glass-card background */
.author-card .author-social-links .author-social-link {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--pico-contrast, #1a1a2e);
}

.author-card .author-social-links .author-social-link:hover {
    background: rgba(0, 0, 0, 0.12);
}

.author-social-link img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ---- Author profile card ------------------------------------------- */
.author-card-section {
    padding: 1.5rem 0;
}

.author-profile-name {
    margin-top: 0;
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
}

/* ---- Author index grid -------------------------------------------- */
.author-index-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 0;
}

.author-index-card .author-grid {
    align-items: flex-start;
}

.author-read-more {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pico-primary, #6366f1);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.author-read-more:hover {
    opacity: 0.75;
    text-decoration: underline;
}

/* ---- Author's insights on the AuthorPage --------------------------- */
.author-insights-section {
    margin-top: 0;
}

/* ---- Icon-only social links — right-aligned row -------------------- */
/* Used on the AuthorPage card; all three icons flush to the right of   */
/* the author-info column with no text labels (title attr = hover text) */
.author-social-links--icons-right {
    margin-top: 1rem;
    margin-left: auto;           /* pushes the nav to the right inside flex/block */
    justify-content: flex-end;   /* icons group to the right */
    align-items: center;
}

/* Square icon-only pill — no extra padding for text */
.author-social-link--icon-only {
    padding: 0.375rem;
    min-width: 36px;
    min-height: 36px;
    justify-content: center;
}

/* Top breathing room so | AUTHOR heading doesn't abut the client logos */
.author-content-start {
    padding-top: 2.5rem;
}

/* ==========================================================================
   FAQ Block — Light Teal accordion component
   Brand Light Teal = rgb(15, 247, 177)
   Left border + transparent teal tint, matching the quote block visual
   language but in teal instead of blue. Uses div[role=button] to avoid
   Pico CSS unconditionally overriding <button> element backgrounds.
   Panel visibility uses display:none/block — no max-height tricks.
   ========================================================================== */

:root {
    --faq-teal:          rgb(15, 247, 177);
    --faq-teal-bg:       rgba(15, 247, 177, 0.06);
    --faq-teal-bg-hover: rgba(15, 247, 177, 0.11);
    --faq-border-width:  4px;
    --faq-radius:        0 8px 8px 0;
}

/* Container — holds all items AND the footer link inside one teal block */
.faq-block-container {
    display: flex;
    flex-direction: column;
    gap: 0;                                   /* items are flush; dividers via border-top */
    width: 100%;
    border-left: var(--faq-border-width) solid var(--faq-teal);
    background: linear-gradient(var(--faq-teal-bg), var(--faq-teal-bg)), #ffffff !important;
    border-radius: var(--faq-radius);
    padding-bottom: 0.5rem;                   /* breathing room below the footer link */
}

/* Individual FAQ row wrapper — no own background; inherits container teal */
.faq-item {
    border-top: 1px solid rgba(15, 247, 177, 0.15); /* hairline divider between rows */
    transition: background 0.3s ease;
}

.faq-item:first-child {
    border-top: none;                         /* no divider above the very first item */
}

.faq-item:hover {
    background: rgba(15, 247, 177, 0.07);    /* extra hover tint on top of container bg */
}

.faq-item.is-open {
    background: rgba(15, 247, 177, 0.07);
}

/* ---- Question row (div[role=button]) --------------------------------
   Pico CSS unconditionally applies --pico-primary-background to ANY
   element with role="button". We must override ALL interactive states
   or the blue highlight reappears on click/focus.
   ------------------------------------------------------------------- */
.pico .faq-question-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    user-select: none;
    width: 100%;
    text-align: left;

    /* Pico reset — override all Pico button properties */
    --pico-background-color:         transparent;
    --pico-border-color:             transparent;
    --pico-color:                    var(--pico-contrast, #1a1a2e);
    --pico-box-shadow:               none;
    background:                      transparent;
    background-color:                transparent;
    border:                          none;
    box-shadow:                      none;
    color:                           var(--pico-contrast, #1a1a2e);
}

/* Neutralise Pico's hover / active / focus states for [role=button] */
.pico .faq-question-row:hover,
.pico .faq-question-row:active,
.pico .faq-question-row:focus {
    --pico-background-color:  transparent;
    --pico-border-color:      transparent;
    --pico-color:             var(--pico-contrast, #1a1a2e);
    background:               transparent;
    background-color:         transparent;
    box-shadow:               none;
    border:                   none;
    color:                    var(--pico-contrast, #1a1a2e);
    /* suppress any Pico outline on plain focus (we add our own on :focus-visible) */
    outline:                  none;
}

.pico .faq-question-row:focus-visible {
    outline: 2px solid var(--faq-teal);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Question text */
.faq-question-text {
    flex: 1 1 auto;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
}

/* + icon — rotates 45° (→ ×) when parent .faq-item has .is-open */
.faq-icon {
    flex: 0 0 auto;
    font-size: 1.375rem;
    line-height: 1;
    font-weight: 300;
    color: var(--faq-teal);
    display: inline-block;
    transform: rotate(0deg);
    transition: transform 0.45s ease;        /* matches answer reveal speed */
    user-select: none;
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
}

/* ---- Answer panel — display:none/block controlled entirely by JS ---- */
.faq-answer-panel {
    display: none;
}

.faq-item.is-open .faq-answer-panel {
    display: block;
    animation: faqFadeIn 0.45s ease;         /* slowed from 0.2s to 0.45s */
}

@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* Answer content */
.faq-answer {
    padding: 0 1.25rem 1rem;
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* ---- Footer link — sits inside container so it shares the teal bg --- */
.pico .faq-block-footer {
    margin: 0.5rem 1.25rem 0;
    font-size: 0.875rem;
    text-align: right;
}

.pico .faq-block-footer a {
    color: var(--faq-teal);
    text-decoration: none;
    font-weight: 500;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.pico .faq-block-footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* --- CTA Snippet Background Helper Classes --- */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Adapt divider lines for dark background CTA elements */
.cta-snippet-breakout.bg-qc-blue .cta-right,
.cta-snippet-breakout.bg-qc-red .cta-right,
.cta-snippet-breakout.bg-slate .cta-right,
.cta-snippet-breakout.bg-stone .cta-right,
.cta-snippet-breakout.bg-teal .cta-right,
.cta-snippet-breakout.bg-petrol .cta-right,
.cta-snippet-breakout.bg-purple .cta-right,
.cta-snippet-breakout.bg-pink .cta-right,
.cta-snippet-breakout.bg-green .cta-right,
.cta-snippet-breakout.bg-cherry .cta-right,
.cta-snippet-breakout.bg-corvidae-blue .cta-right {
    border-left-color: rgba(255, 255, 255, 0.3);
}

/* Adapt divider lines for light background CTA elements */
.cta-snippet-breakout.bg-yellow .cta-right,
.cta-snippet-breakout.bg-fog .cta-right,
.cta-snippet-breakout.bg-pebble .cta-right,
.cta-snippet-breakout.bg-white .cta-right {
    border-left-color: rgba(0, 0, 0, 0.15);
}

@media (max-width: 767px) {
    /* Adapt divider lines for dark background CTA elements on mobile */
    .cta-snippet-breakout.bg-qc-blue .cta-right,
    .cta-snippet-breakout.bg-qc-red .cta-right,
    .cta-snippet-breakout.bg-slate .cta-right,
    .cta-snippet-breakout.bg-stone .cta-right,
    .cta-snippet-breakout.bg-teal .cta-right,
    .cta-snippet-breakout.bg-petrol .cta-right,
    .cta-snippet-breakout.bg-purple .cta-right,
    .cta-snippet-breakout.bg-pink .cta-right,
    .cta-snippet-breakout.bg-green .cta-right,
    .cta-snippet-breakout.bg-cherry .cta-right,
    .cta-snippet-breakout.bg-corvidae-blue .cta-right {
        border-top-color: rgba(255, 255, 255, 0.3);
    }

    /* Adapt divider lines for light background CTA elements on mobile */
    .cta-snippet-breakout.bg-yellow .cta-right,
    .cta-snippet-breakout.bg-fog .cta-right,
    .cta-snippet-breakout.bg-pebble .cta-right,
    .cta-snippet-breakout.bg-white .cta-right {
        border-top-color: rgba(0, 0, 0, 0.15);
    }
}
