@font-face {
    font-family: "Barlow Condensed";
    src: url("/wp-content/themes/candex/assets/fonts/BarlowCondensed-Thin.ttf") format("truetype");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Barlow Condensed";
    src: url("/wp-content/themes/candex/assets/fonts/BarlowCondensed-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("/wp-content/themes/candex/assets/fonts/Roboto-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("/wp-content/themes/candex/assets/fonts/Roboto-Bold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("/wp-content/themes/candex/assets/fonts/Roboto-Italic.ttf") format("truetype");
    font-style: italic;
    font-display: swap;
}

:root {
    --bg: #0b0f2a;
    --ink: #0b0d12;
    --muted: #6b7280;
    --brand: #0d1b8c;
    --light: #f8fafc;
    --card: #ffffff;
}

/* Header intro */
.header-intro {
    background: #fff;
    text-align: center;
    padding: 56px 0 0;
}

.intro-inner {
    max-width: 640px;
}

.invest-inner {
    position: relative;
}

.invest-meta {
    align-items: center;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, .9);
    font-family: "Barlow Condensed", sans-serif;
}

.invest-meta .label,
.invest-meta .date {
    font-size: clamp(16px, 2.2vw, 22px);
    letter-spacing: .02em;
}

/* grid */
.invest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: end;
}

/* Left big amount */
.invest-amount .amount {
    display: block;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: clamp(84px, 22vw, 230px);
    line-height: .84;
    letter-spacing: .002em;
}

/* Right lead logo block */
.invest-lead {
    text-align: center;
}

.invest-lead .lead-label {
    color: #52c9d8;
    text-transform: uppercase;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(18px, 2.8vw, 28px);
    letter-spacing: .06em;
    margin: 10px 0 14px;
}

.invest-lead .lead-logo img {
    width: 100%;
    max-width: 560px;
    height: auto;
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0)); /* crisp SVG */
}

/* Cards, split, news remain; small spacing polish */
.section {
    padding: 52px 0;
}


.cards-grid .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* Dark news strip */
.section-dark {
    background: #0f163a;
    color: #cdd4ff;
}

/* Responsive */
@media (max-width: 980px) {
    .invest-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .invest-lead {
        text-align: center;
    }

    .invest-lead .lead-logo img {
        max-width: 440px;
    }
}

@media (max-width: 720px) {
    .intro-skyline {
        height: 84px;
        background-size: auto 84px;
    }

    .cards-grid .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .intro-skyline {
        height: 68px;
        background-size: auto 68px;
    }

    .cards-grid .grid {
        grid-template-columns: 1fr;
    }

    .invest-lead .lead-logo img {
        max-width: 320px;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--ink);
    background: #fff;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
}

.site-header .container {
    max-width: 1280px;
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
}

.site-header .custom-logo {
    max-height: 40px;
    width: auto;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-menu {
    display: flex;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-menu a {
    text-decoration: none;
    color: #0b0d12;
    font-weight: 600;
}

.top-cta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.top-cta .link.demo {
    color: var(--Text-Text-Email-Heading, #222857);
    font-family: Roboto;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
    border-right: 1px dashed #c9cfe0;
    padding-right: 16px;
    white-space: nowrap;
}

.top-cta .btn.back {
    color: var(--Text-Text-Email-Heading, #222857);
    font-family: Roboto;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #c9cfe0;
    border-radius: 22px;
    text-decoration: none;
    white-space: nowrap;
}

.lang-btn {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

/* Mobile */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px 10px;
}

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-block;
        order: 2;
    }

    .top-actions {
        flex-direction: column;
        align-items: flex-end;
    }

    .top-menu {
        display: none;
        flex-direction: column;
        align-items: flex-end;
    }

    .site-header [aria-expanded="true"] ~ .top-actions .top-menu {
        display: flex;
    }
}

.hero {
    background-image: url("/wp-content/themes/candex/images/candex-header-front-page.png");
    background-position: center, center;
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
    color: #fff;
    padding: 56px 0;
}

.hero-title {
    color: #FFF;
    font-family: "Barlow Condensed";
    font-size: 250px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px; /* 9.6% */
}

.hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 12px;
    opacity: .8;
}

.hero-sub {
    opacity: .9;
    margin: 0;
}

.section {
    padding: 48px 0;
}

.news-list.section {
    margin-top: 68px;
}

.news-list.section .container {
    margin-top: 20px;
}

.section-title {
    font-size: 22px;
    margin: 0 0 16px;
}

.cards-grid .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.card {
    background: var(--card);
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.card-img {
    width: 100%;
    height: auto;
    display: block;
}

.card-title {
    font-size: 16px;
    margin: 12px;
    color: var(--ink);
}

.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.split-title {
    margin: 8px 0 0;
    font-size: 20px;
}

.split-excerpt {
    color: var(--muted);
}

.section-dark {
    background: #0f163a;
    color: #cdd4ff;
}

.section-dark .section-title {
    color: #fff;
}

.news-items {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: grid;
    gap: 10px;
}

.news-item a {
    color: #e7ebff;
    text-decoration: none;
}

.news-item time {
    display: block;
    color: var(--Text-Text-Badge, #FFF);
    font-family: "Barlow Condensed";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px; /* 100% */
}

.site-footer {
    padding: 24px 0;
}

.footer-menu {
    display: flex;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.footer-menu a {
    color: #cbd5e1;
    text-decoration: none;
}

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

.nav-toggle {
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px 10px;
    display: none;
}

/* Customer Corner video embeds */
.entry-customer .video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
    margin-bottom: 16px;
}

.entry-customer .video-embed iframe,
.entry-customer .video-embed video,
.entry-customer .video-embed embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Customer Corner fine-tuning */

.cards-grid {
    /*padding: 100px 0;*/
}

.cards-grid .section-title {
    font-size: 32px;
    margin-bottom: 0;
}

/* Customer Corner header style */
.cc-title {
    text-align: center;
    color: #222857;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: clamp(32px, 4.8vw, 44px);
    letter-spacing: .01em;
    margin: 0 0 6px;
}

.cc-sub {
    text-align: center;
    color: #223158;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(16px, 2.7vw, 24px);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cc-sub-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #63a9dc;
    position: relative;
    flex: 0 0 26px;
}

.cc-sub-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    mask: url("/wp-content/themes/candex/images/simple-right-arrow.svg") center/14px 14px no-repeat;
    -webkit-mask: url("/wp-content/themes/candex/images/simple-right-arrow.svg") center/14px 14px no-repeat;
    background: #fff;
}

/* dotted divider */
.cc-rule {
    border: 0;
    border-top: 1px dotted #d7dbeb;
    width: 78%; /* control the visual width */
    max-width: 640px; /* cap on large screens */
    margin: 6px auto 18px; /* centered */
}

/* Card container and image radius */
.card {
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(21, 44, 116, .12);
}

.card-img {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Content spacing and typography */
.card-body {
    padding: 14px 16px 16px;
}

.card-meta {
    margin-bottom: 8px;
    font-size: 13px;
}

.card-title {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #222857;
}

.card-item-desc {
    color: var(--Text-Text-Body, #414141);
    font-family: "Barlow Condensed";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px; /* 122.222% */
}

.card-item-desc p {
    padding: 0;
    margin: 0;
}

/* Date left, brand right, lighter brand tint */
.card-meta .card-source {
    color: #8a95bf;
}

/* Slightly bigger gaps for large screens */
@media (min-width: 1200px) {
    .cards-grid .grid {
        gap: 32px;
    }
}

/* Intro header sizing like design */
.header-intro {
    background: #fff;
    text-align: center;
    padding: 50px 0 0;
    min-height: 334px;
}

.intro-inner {
    max-width: 510px;
    padding: 0 0 100px;
}

.intro-title {
    color: var(--Text-Text-Email-Heading, #222857);
    text-align: center;
    font-family: "Barlow Condensed";
    font-size: 68px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px; /* 35.294% */
}

.intro-sub {
    color: var(--Text-Text-Email-Heading, #222857);
    text-align: center;
    font-family: "Barlow Condensed";
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: 36px; /* 112.5% */
}

.intro-skyline {
    background: url("/wp-content/themes/candex/images/buildings.svg") repeat-x bottom center;
}

/* Investment band: spacing, meta row, big amount, right column alignment */
.investment-band {
    color: #fff;
}

.investment-band .invest-inner {
    max-width: 1426px;
    margin: 0 auto;
}

.investment-band .invest-inner img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 1426px;
    max-height: 358px;
    margin: 0 auto;
}

@media (min-width: 1426px) {
    .investment-band .invest-inner {
        min-height: 358px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.invest-meta {
    align-items: center;
    margin-bottom: 6px;
    font-family: "Barlow Condensed", sans-serif;
    color: rgba(255, 255, 255, .9);
}

.invest-meta .label {
    font-size: 22px;
    letter-spacing: .03em;
}

.invest-meta .date {
    font-size: 22px;
    opacity: .9;
    margin-left: 105px;
}

/* Two columns: amount left, logo right */
.invest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: center;
}

/* Large $33m */
.invest-amount .amount {
    display: block;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: clamp(72px, 20vw, 220px);
    line-height: .9;
    letter-spacing: .005em;
    color: #fff;
}

/* Right column */
.invest-lead {
    text-align: center;
    max-width: 400px;
}

.invest-lead .lead-label {
    color: #52c9d8; /* teal */
    text-transform: uppercase;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 26px;
    letter-spacing: .05em;
    margin-bottom: 12px;
}

.invest-lead .lead-logo img {
    max-width: 520px;
    width: 100%;
    height: auto;
}

/* Responsive */
@media (max-width: 1100px) {
    .invest-amount .amount {
        font-size: 190px;
    }

    .invest-lead .lead-logo img {
        max-width: 440px;
    }
}

@media (max-width: 900px) {
    .invest-grid {
        grid-template-columns:1fr;
        text-align: center;
    }

    .invest-lead {
        text-align: center;
    }

    .invest-amount .amount {
        font-size: 140px;
    }
}

@media (max-width: 600px) {
    .intro-title {
        font-size: 44px;
    }

    .intro-sub {
        font-size: 18px;
    }

    .intro-skyline {
        height: 72px;
        background-size: auto 72px;
    }

    .invest-amount .amount {
        font-size: 100px;
    }

    .invest-lead .lead-logo img {
        max-width: 300px;
    }
}

@media (max-width: 900px) {
    .cards-grid .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .split-grid {
        grid-template-columns: 1fr;
    }

    .nav-toggle {
        /*display: inline-block;*/
    }

    .primary-nav .menu {
        display: none;
    }

    .primary-nav[aria-expanded="true"] .menu {
        display: block;
    }
}

@media (max-width: 600px) {
    .cards-grid .grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 44px;
    }
}

/* Customer Corner: section header + subtitle line */
.cards-grid .section-title {
    color: #222857;
    text-align: left;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 4.5vw, 44px);
    margin: 0 0 4px;
    text-align: center;
}

.cards-grid .section-subtitle {
    text-align: center;
    /*color: #6e7aa6;*/
    /*font-size: 13px;*/
    margin: 0 0 26px;
    color: var(--Text-Text-Email-Heading, #222857);
    font-family: "Barlow Condensed";
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 109.091% */
}

/* Two-up grid with generous gap */
.cards-grid .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    margin-top: 80px;
}

.cards-grid .spot-viewall {
    margin-top: 40px;
}

/* Card look + hover */
.card-cc {
    border: 0;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    border-radius: 14px;
    border: 0 solid var(--Border-Border-Card, #DDD);
    background: #FFF;
    box-shadow: 2px 2px 20px 0 rgba(0, 0, 0, 0.15);
}

.card-cc:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(21, 44, 116, .16);
}

/* Large rounded image (16:9) */
.card-cc .card-img {
    display: block;
    width: 100%;
    height: 285px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Body spacing + meta row */
.card-cc .card-body {
    padding: 10px 28px 10px 28px;
    /* then add back +5px top and bottom as requested */
    padding-top: 15px;
    padding-bottom: 15px;
}

.card-cc .card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--Text-Text-Chat-Re, #909090);
    font-family: "Barlow Condensed";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 13px; /* 100% */
    margin: 0 0 5px;
    min-height: 13px;
}

.card-cc .card-source {
    color: #8a95bf;
}

/* Title styling */
.card-cc .card-title {
    margin: 0 0 10px;
    color: var(--Text-Text-Email-Heading, #222857);
    font-family: "Barlow Condensed";
    font-size: 32px;
    font-style: normal;
    font-weight: 500;
    line-height: 42px; /* 131.25% */
}

/* Clickable Customer Corner header */
.cc-head-link {
    text-decoration: none;
    cursor: pointer;
}

.cc-head-link:hover .cc-sub-icon {
    filter: brightness(0.95);
}

/* Mobile */
@media (max-width: 720px) {
    .cards-grid .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Customer Corner archive hero */
.cc-archive-hero {
    background-color: #222857;
    color: #fff;
    padding: 100px 0;
    position: relative;
    text-align: center;
}

.cc-archive-hero .container {
    position: relative;
    z-index: 1;
}

.cc-hero-title {
    margin: 0 0 8px;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: clamp(34px, 6vw, 56px);
    letter-spacing: .01em;
}

.cc-hero-sub {
    margin: 0;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(16px, 2.6vw, 22px);
    opacity: .95;
}

.cc-hero-skyline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 188px;
    background: url("/wp-content/themes/candex/images/buildings.svg") repeat-x bottom center;
    filter: saturate(.9);
}

/* Archive pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 28px;
}

.pagination a {
    color: #222857;
    text-decoration: none;
    font-weight: 600;
}

/* In the News (dark list) */
.section-dark {
    background: #0f163a;
    color: #cdd4ff;
}

.news-title {
    color: #fff;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 4.5vw, 36px);
    margin: 0 0 18px;
}

.news-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;
}

.news-item {
    padding: 14px 0 0px;
    margin-top: 10px;
    border-bottom: 1px dashed #BABDD6;
}

.news-date {
    display: block;
    color: #9fb1ff;
    font-size: 12px;
    margin-bottom: 6px;
}

.news-headline {
    margin: 0 0 4px;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #e7ebff;
}

.news-headline a {
    color: inherit;
    text-decoration: none;
}

.news-headline a:hover {
    text-decoration: underline;
}

.news-source {
    margin: 0 0 10px;
    color: var(--Text-Text-Badge, #FFF);
    font-family: "Barlow Condensed";
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 30px; /* 166.667% */
}

.news-read {
    margin: 0 0 8px;
}

.news-read-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--Text-Text-Select-Hover, #64B2E0) !important;
    font-family: "Barlow Condensed";
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px; /* 100% */
}

.news-read-link:hover {
    text-decoration: underline;
}

.news-read-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    position: relative;
    margin-left: 8px;
}

.news-read-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    mask: url("/wp-content/themes/candex/images/simple-right-arrow.svg") center/17px 17px no-repeat;
    -webkit-mask: url("/wp-content/themes/candex/images/simple-right-arrow.svg") center/17px 17px no-repeat;
    background: #63a9dc;
}

/* dotted separator */
.news-sep {
    border: 0;
    border-top: 1px dotted rgba(205, 212, 255, .35);
    margin: 16px 0 8px;
}

/* Explore link bottom-right */
.news-explore {
    display: flex;
    justify-content: flex-end;
    margin-top: 48px;
}

.news-explore-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--Text-Text-Select-Hover, #64B2E0);
    font-family: "Barlow Condensed";
    font-size: 22px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px; /* 81.818% */
}

.news-explore-link:hover {
    text-decoration: underline;
}

.news-explore-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #63a9dc;
    position: relative;
}

.news-explore-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    mask: url("/wp-content/themes/candex/images/simple-right-arrow.svg") center/10px 10px no-repeat;
    -webkit-mask: url("/wp-content/themes/candex/images/simple-right-arrow.svg") center/10px 10px no-repeat;
    background: #0f163a;
}

/* Spotlight section */
/* Spotlight header */
.spot-head-link {
    text-decoration: none;
    text-align: center;
}

.spot-title {
    color: #222857;
    text-align: left;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 4.5vw, 44px);
    margin: 0 0 4px;
    text-align: center;
}

.spot-sub {
    text-align: center;
    color: var(--Text-Text-Email-Heading, #222857);
    font-family: "Barlow Condensed";
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 109.091% */
}

.spot-rule {
    width: 56%;
    max-width: 520px;
    margin: 10px auto 22px;
}

/* Spotlight list: text left, image right */
.spot-item {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 540px); /* content | media */
    gap: 28px;
    align-items: start;
}

/* Make sure the DOM order (media first in markup) visually appears on the right */
.spot-media {
    order: 2;
}

.spot-content {
    order: 1;
}

/* Stack on small screens (text then media) */
@media (max-width: 980px) {
    .spot-item {
        grid-template-columns: 1fr;
    }

    .spot-media {
        order: 2;
    }

    .spot-content {
        order: 1;
    }
}

/* Spotlight list: text left, image right, balanced widths */
.spot-list {
    display: grid;
    gap: 69px;
    margin-top: 89px;
}

.spot-item {
    display: grid;
    grid-template-columns: minmax(420px, 520px) minmax(340px, 480px); /* text | image */
    gap: 110px;
    align-items: start;
}

/* Force visual order: text then image */
.spot-content {
    order: 1;
}

.spot-media {
    order: 2;
}

/* Image style and consistent ratio */
.spot-media img {
    width: 100%;
    height: 279px;
    border-radius: 14px;
    /*box-shadow: 0 10px 28px rgba(21, 44, 116, .12);*/
    aspect-ratio: 4 / 3; /* optional; can be removed since crop enforces it */
    object-fit: cover;
}

/* Text block spacing/typography */
.spot-item-title {
    margin: 0 0 6px;
    color: #222857;
    font-family: "Barlow Condensed";
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: 42px; /* 131.25% */
}

.spot-item-title a {
    text-decoration: none;
    color: inherit;
}

.spot-item-sub {
    margin: 0 0 10px;
    color: var(--Text-Text-Caption, #909090);
    font-family: "Barlow Condensed";
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 34px; /* 154.545% */
}

.spot-item-desc {
    color: var(--Text-Text-Body, #414141);
    font-family: Roboto;
    font-size: 18px;
    font-weight: 400;
    line-height: 34px; /* 154.545% */
}

/* Reduce bottom space and align the footer link left under content */
.spot-viewall {
    margin-top: 12px;
    text-align: left;
}

.spot-viewall-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--Text-Text-Tab-Secondary-Default, #0392BD);
    font-family: "Barlow Condensed";
    font-size: 22px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px; /* 81.818% */
}

.spot-viewall-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #63a9dc;
    position: relative;
}

.spot-viewall-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    mask: url("/wp-content/themes/candex/images/simple-right-arrow.svg") center/12px 12px no-repeat;
    -webkit-mask: url("/wp-content/themes/candex/images/simple-right-arrow.svg") center/12px 12px no-repeat;
    background: #fff;
}

/* Reuse the News "Read more" visuals for Spotlight */
.spot-read {
    margin: 8px 0 8px;
}
.spot-read-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--Text-Text-Select-Hover, #64B2E0) !important;
    font-family: "Barlow Condensed";
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px;
}
.spot-read-link:hover {
    text-decoration: underline;
}
.spot-read-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    position: relative;
    margin-left: 8px;
    margin-top: 3px;
}
.spot-read-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    mask: url("/wp-content/themes/candex/images/simple-right-arrow.svg") center/17px 17px no-repeat;
    -webkit-mask: url("/wp-content/themes/candex/images/simple-right-arrow.svg") center/17px 17px no-repeat;
    background: #63a9dc;
}

/* News archive (press) uses same visuals as front-page dark list but on light bg */
.news-archive-list {
    list-style: none;
    margin: 0;
    padding: 36px 0 0;
}

.news-archive-item {
    padding: 12px 0 10px;
}

.news-archive-item .news-date {
    color: var(--Text-Text-Caption, #909090);
    font-family: "Barlow Condensed";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px; /* 100% */
}

.news-archive-item .news-source {
    color: var(--Text-Text-Email-Heading, #222857);
    font-family: "Barlow Condensed";
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 30px; /* 166.667% */
}

.news-archive-item a.news-read-link {
    color: var(--Text-Text-Tab-Secondary-Default, #0392BD);
    font-family: "Barlow Condensed";
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px; /* 100% */
}

.news-archive-item h2 a {
    color: var(--Text-Text-Email-Heading, #222857);
    font-family: "Barlow Condensed";
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 34px; /* 141.667% */
}

.news-archive-item .news-excerpt {
    color: var(--Text-Text-Body, #414141);
    font-family: Roboto;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 31.5px;
}

/* Keep dotted separator consistent on archive */
.news-archive-item .news-sep,
.news-sep {
    border: 0;
    border-top: 1px dotted rgba(45, 61, 130, .25);
    margin: 16px 0 8px;
}

/* Mobile stacking */
@media (max-width: 980px) {
    .spot-item {
        grid-template-columns: 1fr;
    }

    .spot-media {
        order: 2;
    }

    .spot-content {
        order: 1;
    }

    .spot-rule {
        width: 64%;
    }
}

/* Single article (Press/News) */
.entry-press {
    max-width: 760px;
    margin: 70px auto 0;
}

.entry-header {
    margin-top: 34px;
}

.entry-kicker {
    margin: 0 0 8px;
    color: var(--Text-Text-Caption, #909090);
    font-family: "Barlow Condensed";
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 34px; /* 154.545% */
}

.entry-kicker .sep {
    margin: 0 8px;
    color: #9aa3c8;
}

.entry-meta {
    color: var(--Text-Text-Caption, #909090);
    font-family: "Barlow Condensed";
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 34px; /* 154.545% */
    margin-bottom: 5px;
}

.entry-title {
    color: var(--Text-Text-Email-Heading, #222857);
    font-family: "Barlow Condensed";
    font-size: 48px;
    font-style: normal;
    font-weight: 500;
    line-height: 48px; /* 100% */
    margin-top: 0;
}

.entry-figure {
    margin: 18px 0 10px;
}

.entry-thumb {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    /*box-shadow: 0 14px 36px rgba(21, 44, 116, .14);*/
}

.entry-content {
    color: var(--Text-Text-Body, #414141);
    font-family: Roboto;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 31.5px; /* 175% */
    padding-bottom: 150px;
    margin-top: 20px;
}

.entry-content p {
    margin: 0 0 16px;
}

/* Explore section under article */
.container-content {
    background: url("/wp-content/themes/candex/images/buildings.svg") repeat-x bottom center;
    background-size: auto 140px;
}

.explore-cc {
    /*margin: 80px -20px 0;*/
    background: #e9f4fb;
    padding: 28px 20px 100px;
}

.explore-cc .explore-hero {
    text-align: center;
    padding-bottom: 26px;
    margin-bottom: 18px;
}

.explore-title {
    margin: 0 0 4px;
    color: var(--Text-Text-Email-Heading, #222857);
    text-align: center;
    font-family: "Barlow Condensed";
    font-size: 44px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px; /* 54.545% */
}

.explore-sub {
    margin: 20px 0;
    color: var(--Text-Text-Email-Heading, #222857);
    text-align: center;
    font-family: "Barlow Condensed";
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 109.091% */
}

.explore-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.explore-card {
    box-shadow: 0 12px 36px rgba(21, 44, 116, .12);
}

@media (max-width: 760px) {
    .entry-press {
        padding: 0 12px;
    }

    .explore-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer exact layout: left blurb + spacer + two menus aligned right */
.site-footer {
    background: #fff;
    color: #1f2b59;
    padding: 56px 0 42px;
    border-top: 1px dotted #CECECE;
}

.footer-widgets {
    display: grid;
    grid-template-columns: minmax(360px, 560px) 1fr max-content; /* left | spacer | right */
    align-items: start;
    gap: 40px;
}

/* Right menus block: two columns, pinned to the right */
.footer-nav {
    display: grid;
    grid-template-columns: max-content max-content; /* Menu A | Menu B */
    gap: 60px;
    justify-content: end; /* pin to right */
}

/* Menus appearance */
.footer-menu-a,
.footer-menu-b {
    list-style: disc inside;
    margin: 0;
    padding: 0;
    width: max-content;
}

.footer-menu-a li,
.footer-menu-b li {
    margin: 0 0 8px;
}

.footer-menu-a a,
.footer-menu-b a {
    color: #1A1A49;
    font-family: Roboto;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px; /* 128.571% */
}

.footer-menu-a a:hover,
.footer-menu-b a:hover {
    text-decoration: underline;
}

.footer-menu-a li::marker,
.footer-menu-b li::marker {
    font-size: 0.6em; /* smaller bullet */
    color: #1f2b59; /* optional */
    /* width/margin/padding NOT supported here */
}

/* Left blurb */
.site-footer .widget {
    margin: 0;
}

.site-footer .widget p {
    margin: 0 0 18px;
    max-width: 520px;
    color: #1A1A49;
    font-family: Roboto;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px; /* 128.571% */
}

/* Copyright */
.copyright {
    color: #1A1A49;
    font-family: Roboto;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px; /* 128.571% */
}

/* Load More styles */
.load-more-wrap {
    text-align: left;
    margin-top: 24px;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--Text-Text-Tab-Secondary-Default, #0392BD);
    font-family: "Barlow Condensed";
    font-size: 22px;
    font-weight: 500;
    line-height: 18px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.btn-load-more:hover { text-decoration: underline; }

/* keep loading spinner behavior without changing the arrow span */
.btn-load-more.is-loading .spot-viewall-icon {
    background: transparent;
    width: 18px;
    height: 18px;
    border: 2px solid #63a9dc;
    border-right-color: transparent;
    border-radius: 50%;
    -webkit-mask: none; mask: none;
    animation: lm-spin .8s linear infinite;
}

@keyframes lm-spin {
    to { transform: rotate(360deg); }
}

/* Fade-in animation for newly added items */
.lm-fade-enter {
    opacity: 0;
    transform: translateY(8px);
}

.lm-fade-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .28s ease, transform .28s ease;
}

/* Customer Corner card titles: single-line clamp with ellipsis */
.card-cc .card-title {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Single Customer Corner title: single-line clamp with ellipsis */
.entry-customer .entry-title {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Breadcrumbs */
.breadcrumbs {
/*    margin: 16px 0 24px;*/
    font-family: Roboto, Arial, sans-serif;
    font-size: 14px; /* same as copyright */
    line-height: 18px;
    color: #c9cfe0; /* fallback */
}
.breadcrumbs a {
    text-decoration: none;
    color: #c9cfe0;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs .sep {
    margin: 0 6px;
}

/* Responsive */
@media (max-width: 1100px) {
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-nav {
        justify-content: start;
        gap: 28px;
    }
}

@media (max-width: 560px) {
    .footer-nav {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    /* Stack brand and top-actions vertically */
    .header-bar {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        gap: 10px;
    }

    .brand {
        justify-content: center;
        padding-top: 8px;
    }

    .top-actions {
        flex-direction: column;
        align-items: flex-end;
        width: 100%;
    }

    .top-menu {
        display: none;
        flex-direction: column;
        align-items: flex-end;
    }

    .site-header [aria-expanded="true"] ~ .top-actions .top-menu {
        display: flex;
    }
}
