/* ==================================================
   ABOUT CHANNEL SOFTECH — BANNER
================================================== */

.cs-about-banner {
    --about-blue: var(--cs-c-blue, #0870af);
    --about-deep: var(--cs-primary-dark, #065a8c);
    --about-cyan: var(--cs-c-cyan, #159dd3);
    --about-ink: #163047;
    --about-copy: #40576a;

    position: relative;
    padding-block: clamp(40px, 5.3vw, 82px);
    border-bottom: 1px solid #dcecf5;
    background:
        radial-gradient(
            ellipse at 88% 18%,
            rgb(21 157 211 / 15%) 0%,
            transparent 48%
        ),
        linear-gradient(
            155deg,
            #edf8ff 0%,
            #f9fcff 48%,
            #fff 100%
        );
}

/* Left column */
.cs-about-banner__content {
    min-width: 0;
    text-align: left;
}

/* Compact section label */
.cs-about-banner .cs-about-banner__label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 17px;
    padding: 7px 13px;
    border: 1px solid #c8e3f2;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff, #e5f4fd);
    color: var(--about-deep);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.cs-about-banner__label > span {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--about-cyan), var(--about-blue));
    box-shadow: 0 0 0 3px rgb(8 112 175 / 10%);
}

/* Use your shared heading font with a smaller banner size */
.cs-about-banner .cs-about-banner__content > .cs-title {
    max-width: 26ch;
    margin: 0;
}

.cs-about-banner__content > .cs-title > span {
    display: block;
}

.cs-about-banner__copy {
    max-width: 61ch;
    margin-top: 19px;
}

.cs-about-banner .cs-about-banner__copy p {
    margin: 0;
    color: var(--about-copy);
    font-size: clamp(0.94rem, 1.05vw, 1rem);
    line-height: 1.65;
}

.cs-about-banner .cs-about-banner__copy p + p {
    margin-top: 11px;
}

/* Right column — show the entire image at its natural aspect ratio */
.cs-about-banner__visual {
    width: 100%;
    margin: 0;
}

.cs-about-banner__visual > img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* Stack the content and image below Bootstrap's lg breakpoint */
@media (max-width: 991.98px) {
    .cs-about-banner {
        padding-block: 38px;
    }

    .cs-about-banner__visual {
        max-width: 720px;
        margin-inline: auto;
    }
}

@media (max-width: 575.98px) {
    .cs-about-banner {
        padding-block: 30px;
    }

    .cs-about-banner .cs-about-banner__label {
        margin-bottom: 13px;
        font-size: 0.69rem;
    }

    .cs-about-banner__copy {
        margin-top: 14px;
    }
}

/* ==================================================
   ABOUT PAGE — OUR HISTORY
   Left: company story | Right: vertical journey
================================================== */

.cs-history-section {
    --history-blue: var(--cs-c-blue, #0870af);
    --history-cyan: var(--cs-c-cyan, #159dd3);
    --history-ink: #15334b;
    --history-text: #43596b;
    --history-border: #cfe3ef;
    --history-radius: 24px;

    padding-block: clamp(36px, 5.6vw, 80px);
    background:
        radial-gradient(ellipse at 88% 12%, #dceffb, transparent 52%),
        linear-gradient(180deg, #edf7fd 0%, #f7fbff 62%, #fff 100%);
}

.cs-history-section .cs-history-story,
.cs-history-section .cs-history-journey {
    box-sizing: border-box;
    height: 100%;
    min-width: 0;
    border: 1px solid var(--history-border);
    border-radius: var(--history-radius);
}

/* LEFT — Company history */

.cs-history-section .cs-history-story {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: clamp(20px, 2.5vw, 32px);
    background:
        radial-gradient(ellipse at top left, #e7f4fd, transparent 56%),
        #fff;
    box-shadow: 0 15px 38px rgb(13 69 106 / 8%);
    text-align: left;
}

.cs-history-section .cs-history-story::before {
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--history-blue),
        var(--history-cyan) 45%,
        #dff2fc
    );
    content: "";
}

.cs-history-section .cs-history-story .cs-eyebrow {
    align-self: flex-start;
    justify-content: flex-start;
}

.cs-history-section .cs-history-story .cs-title {
    margin: 11px 0 0;
    text-align: left;
}

.cs-history-section .cs-history-story .cs-accent {
    display: block;
    margin-top: 4px;
    color: var(--history-blue);
}

.cs-history-section .cs-history-story__copy {
    max-width: 65ch;
    margin-top: 20px;
}

.cs-history-section .cs-history-story__copy > p {
    margin: 0;
    color: var(--history-text);
    font-size: clamp(.95rem, 1.1vw, 1.04rem);
    line-height: 1.65;
}

.cs-history-section .cs-history-story__copy > p + p {
    margin-top: 12px;
}

.cs-history-section .cs-history-story__copy > .cs-history-story__lead {
    padding: 12px 15px;
    border: 1px solid #d8eaf5;
    border-inline-start: 3px solid var(--history-blue);
    border-radius: 9px;
    background: linear-gradient(100deg, #eaf6fd, #f9fcff);
    color: var(--history-ink);
    font-weight: 650;
}

/* RIGHT — Journey panel */

.cs-history-section .cs-history-journey {
    --journey-marker: 42px;
    --journey-gap: 14px;
    --journey-offset: 8px;
    --journey-card-gap: 15px;

    padding: clamp(18px, 2.3vw, 28px);
    border-color: #c8e1ef;
    background:
        radial-gradient(ellipse at top right, #d8effc, transparent 58%),
        linear-gradient(155deg, #fff 12%, #edf7fd);
    box-shadow:
        inset 0 0 0 3px rgb(255 255 255 / 65%),
        0 16px 34px rgb(13 69 106 / 9%);
}

.cs-history-section .cs-history-journey > h3 {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 20px;
    color: var(--history-ink);
    font-size: clamp(1.2rem, 1.9vw, 1.55rem);
    line-height: 1.25;
}

.cs-history-section .cs-history-journey > h3::after {
    flex: 1;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #6fbcdf, transparent);
    content: "";
}

.cs-history-section .cs-history-journey__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--journey-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Timeline rows — marker on the left, milestone card on the right */

.cs-history-section .cs-history-step {
    --step-tint: #eff8ff;
    --step-line: #cde4f3;
    --step-icon-bg: #dceffd;
    --step-accent: #086599;
    --step-title: var(--history-ink);
    --step-copy: var(--history-text);

    position: relative;
    display: grid;
    grid-template-columns: var(--journey-marker) minmax(0, 1fr);
    align-items: start;
    gap: var(--journey-card-gap);
    min-width: 0;
}

.cs-history-section .cs-history-step--mint {
    --step-tint: #f0faf6;
    --step-line: #cde9de;
    --step-icon-bg: #dff5ee;
    --step-accent: #176b56;
}

.cs-history-section .cs-history-step--gold {
    --step-tint: #fff8ed;
    --step-line: #efdfc5;
    --step-icon-bg: #fff0d8;
    --step-accent: #845613;
}

.cs-history-section .cs-history-step--today {
    --step-tint: #075682;
    --step-line: #247ca8;
    --step-icon-bg: #0870af;
    --step-accent: #fff;
    --step-title: #fff;
    --step-copy: #e9f7ff;
}

/* Connect the centre of each marker to the next marker. */
.cs-history-section .cs-history-step:not(:last-child)::after {
    position: absolute;
    inset-block-start: calc(var(--journey-offset) + var(--journey-marker) / 2);
    inset-inline-start: calc(var(--journey-marker) / 2 - 1px);
    width: 2px;
    height: calc(100% + var(--journey-gap));
    background: linear-gradient(180deg, #8dc6e3, #4b9ec7);
    content: "";
    pointer-events: none;
}

.cs-history-section .cs-history-step__icon {
    position: relative;
    z-index: 1;
    display: grid;
    box-sizing: border-box;
    width: var(--journey-marker);
    height: var(--journey-marker);
    margin-top: var(--journey-offset);
    place-items: center;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--step-icon-bg);
    box-shadow:
        0 0 0 1px var(--step-line),
        0 4px 10px rgb(13 69 106 / 12%);
    color: var(--step-accent);
    font-size: 1rem;
}

/* Milestone card and pointer */

.cs-history-section .cs-history-step__body {
    position: relative;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--step-line);
    border-radius: 13px;
    background: linear-gradient(115deg, var(--step-tint), #fff 80%);
    box-shadow: 0 5px 14px rgb(13 69 106 / 6%);
}

.cs-history-section .cs-history-step__body::before {
    position: absolute;
    inset-block-start: calc(var(--journey-offset) + var(--journey-marker) / 2 - 6px);
    inset-inline-start: -6px;
    width: 10px;
    height: 10px;
    border-block-end: 1px solid var(--step-line);
    border-inline-start: 1px solid var(--step-line);
    background: var(--step-tint);
    transform: rotate(45deg);
    content: "";
    pointer-events: none;
}

.cs-history-section .cs-history-step__period {
    display: inline-block;
    margin-bottom: 6px;
    padding: 5px 11px;
    border: 1px solid var(--step-line);
    border-radius: 999px;
    background: #fff;
    color: var(--step-accent);
    font-size: .71rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.cs-history-section .cs-history-step__body h4 {
    margin: 0 0 5px;
    color: var(--step-title);
    font-size: clamp(1rem, 1.35vw, 1.14rem);
    font-weight: 700;
    line-height: 1.25;
}

.cs-history-section .cs-history-step__body p {
    margin: 0;
    color: var(--step-copy);
    font-size: .9rem;
    line-height: 1.5;
}

/* Current milestone */

.cs-history-section .cs-history-step--today .cs-history-step__body {
    background:
        radial-gradient(ellipse at top right, #116c99, transparent 70%),
        linear-gradient(125deg, #075682, #093850);
    box-shadow: 0 9px 20px rgb(7 86 130 / 18%);
}

.cs-history-section .cs-history-step--today .cs-history-step__period {
    border-color: rgb(255 255 255 / 35%);
    background: rgb(255 255 255 / 12%);
    color: #d3f3ff;
}

/* MOBILE */

@media (max-width: 575.98px) {
    .cs-history-section {
        --history-radius: 18px;
        padding-block: 30px;
    }

    .cs-history-section .cs-history-story {
        padding: 21px 17px;
    }

    .cs-history-section .cs-history-story__copy {
        margin-top: 16px;
    }

    .cs-history-section .cs-history-journey {
        --journey-marker: 34px;
        --journey-gap: 11px;
        --journey-offset: 9px;
        --journey-card-gap: 11px;

        padding: 14px;
    }

    .cs-history-section .cs-history-journey > h3 {
        margin-bottom: 16px;
    }

    .cs-history-section .cs-history-step__body {
        padding: 10px 12px;
    }

    .cs-history-section .cs-history-step__icon {
        font-size: .86rem;
    }
}

/* ==================================================
   ABOUT PAGE — OUR LEADERSHIP
================================================== */

.cs-leadership {
    --leadership-blue: var(--cs-c-blue, #0870af);
    --leadership-cyan: var(--cs-c-cyan, #159dd3);
    --leadership-navy: #14324b;
    --leadership-text: #43596b;
    --leadership-border: #cfe6f3;
    --leadership-photo-position: center 24%;

    padding-block: clamp(38px, 6vw, 84px);
    background:
        radial-gradient(ellipse at 94% 5%, #d7effb, transparent 56%),
        linear-gradient(155deg, #fff 4%, #f3faff 53%, #eaf6fc);
}

/* LEFT — Layered portrait */

.cs-leadership__portrait-wrap {
    position: relative;
    isolation: isolate;
    width: min(100%, 400px);
    box-sizing: border-box;
    margin-inline: auto;
    padding: 14px 0 0 14px;
}

.cs-leadership__portrait-wrap::before,
.cs-leadership__portrait-wrap::after {
    position: absolute;
    z-index: -1;
    border-radius: 24px;
    content: "";
    pointer-events: none;
}

/* Pale layer above the portrait */
.cs-leadership__portrait-wrap::before {
    inset: 0 14px 20px 24px;
    background: linear-gradient(145deg, #a9e4f6, #e6f7fd);
    transform: rotate(2deg);
}

/* Blue layer visible along the left edge */
.cs-leadership__portrait-wrap::after {
    inset: 16% 18px 9px 0;
    background: linear-gradient(
        160deg,
        var(--leadership-cyan),
        var(--leadership-blue) 68%,
        #064875
    );
}

.cs-leadership__portrait {
    position: relative;
    aspect-ratio: 4 / 5;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 70%);
    border-radius: 24px;
    background: #dcecf4;
    box-shadow: 0 18px 34px rgb(8 58 88 / 20%);
}

.cs-leadership__portrait > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--leadership-photo-position);
}

.cs-leadership__caption {
    position: absolute;
    inset: auto 0 0;
    padding: 40px clamp(16px, 2vw, 25px) 20px;
    background: linear-gradient(
        180deg,
        transparent,
        rgb(5 23 38 / 87%) 48%,
        #051726
    );
    color: #fff;
}

.cs-leadership__caption strong,
.cs-leadership__caption span {
    display: block;
    padding-inline-start: 12px;
    border-inline-start: 3px solid #ffbc63;
}

.cs-leadership__caption strong {
    padding-bottom: 4px;
    font-size: clamp(1.35rem, 2.3vw, 1.9rem);
    font-weight: 800;
    line-height: 1.15;
}

.cs-leadership__caption span {
    color: #eef7fc;
    font-size: .87rem;
    line-height: 1.45;
}

/* RIGHT — Heading and introduction */

.cs-leadership__content {
    min-width: 0;
    text-align: left;
}

.cs-leadership .cs-leadership__eyebrow {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    margin: 0 0 12px;
}

.cs-leadership__eyebrow::after {
    flex: 1;
    min-width: 22px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #73d4ef, transparent);
    content: "";
}

.cs-leadership .cs-leadership__content > .cs-title {
    margin: 0;
    text-align: left;
    text-wrap: balance;
}

.cs-leadership__intro {
    margin-top: 15px;
}

.cs-leadership .cs-leadership__intro > p {
    margin: 0;
    color: var(--leadership-text);
    font-size: clamp(.95rem, 1.1vw, 1.05rem);
    line-height: 1.65;
}

.cs-leadership .cs-leadership__intro > p + p {
    margin-top: 9px;
}

/* Managing Director's message */

.cs-leadership__message {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    margin-top: clamp(18px, 2.4vw, 28px);
    padding: clamp(16px, 2.3vw, 26px);
    border: 1px solid var(--leadership-border);
    border-inline-start: 4px solid var(--leadership-cyan);
    border-radius: 17px;
    background: linear-gradient(120deg, #f7fcff, #def1fc);
    box-shadow: 0 8px 24px rgb(8 80 123 / 7%);
}

.cs-leadership__quote-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid #cae7f5;
    border-radius: 11px;
    background: #fff;
    color: var(--leadership-blue);
    font-size: 1.05rem;
}

.cs-leadership .cs-leadership__message-body > h3 {
    margin: 0 0 8px;
    color: var(--leadership-blue);
    font-size: clamp(1.05rem, 1.8vw, 1.38rem);
    font-weight: 700;
    line-height: 1.3;
}

.cs-leadership .cs-leadership__message blockquote {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.cs-leadership .cs-leadership__message blockquote p {
    margin: 0;
    color: var(--leadership-navy);
    font-size: clamp(.92rem, 1.08vw, 1rem);
    font-style: italic;
    line-height: 1.65;
}

.cs-leadership .cs-leadership__message blockquote p + p {
    margin-top: 10px;
}

/* TABLET AND MOBILE */

@media (max-width: 991.98px) {
    .cs-leadership__portrait-wrap {
        width: min(100%, 360px);
    }
}

@media (max-width: 575.98px) {
    .cs-leadership {
        padding-block: 32px;
    }

    .cs-leadership__portrait-wrap {
        width: min(100%, 310px);
        padding: 10px 0 0 10px;
    }

    .cs-leadership__portrait,
    .cs-leadership__portrait-wrap::before,
    .cs-leadership__portrait-wrap::after {
        border-radius: 18px;
    }

    .cs-leadership__message {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 9px;
        padding: 13px 12px;
    }

    .cs-leadership__quote-icon {
        width: 32px;
        height: 32px;
        font-size: .85rem;
    }
}

/* ABOUT PAGE — LET'S CONNECT CTA */
.cs-connect-cta {
    --cta-navy: #082e56;
    --cta-blue: var(--cs-c-blue, #0870af);
    --cta-cyan: #8ce8fa;
    --cta-gold: #ffd18a;

    padding-block: clamp(30px, 5vw, 64px);
    background: #fff;
}

.cs-connect-cta__banner {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(20px, 2.4vw, 36px);
    overflow: hidden;
    padding: clamp(24px, 3.5vw, 44px);
    border: 1px solid #176493;
    border-radius: 24px;
    background:
        radial-gradient(ellipse at 95% 0%, rgb(21 157 211 / 38%), transparent 58%),
        linear-gradient(112deg, var(--cta-navy) 4%, #074475 58%, #085e8a);
    box-shadow: 0 15px 36px rgb(8 46 86 / 16%);
}

/* Layered wave along the lower edge */
.cs-connect-cta__banner::before,
.cs-connect-cta__banner::after {
    position: absolute;
    z-index: -1;
    width: 110%;
    height: 90px;
    border: 1px solid rgb(140 232 250 / 20%);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.cs-connect-cta__banner::before {
    right: -17%;
    bottom: -66px;
    background: linear-gradient(90deg, transparent, rgb(21 157 211 / 35%));
    transform: rotate(-5deg);
}

.cs-connect-cta__banner::after {
    right: -34%;
    bottom: -70px;
    background: linear-gradient(90deg, transparent, rgb(140 232 250 / 16%));
    transform: rotate(-9deg);
}

/* Icon, label and heading */
.cs-connect-cta__intro {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    /* align-items: center; */
    gap: clamp(12px, 1.6vw, 21px);
}

.cs-connect-cta__icon {
    display: grid;
    width: clamp(42px, 4.5vw, 60px);
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid rgb(140 232 250 / 35%);
    border-radius: 15px;
    background: linear-gradient(145deg, rgb(140 232 250 / 22%), rgb(140 232 250 / 6%));
    color: #fff;
    font-size: clamp(1.1rem, 1.9vw, 1.6rem);
}

.cs-connect-cta .cs-connect-cta__label {
    margin: 0 0 7px;
    color: var(--cta-cyan);
    font-size: .73rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.cs-connect-cta .cs-connect-cta__intro .cs-title {
    margin: 0;
    color: #fff;
    text-align: left;
}

.cs-connect-cta__intro .cs-title > span {
    display: block;
}

/* Supporting copy */
.cs-connect-cta .cs-connect-cta__description {
    margin: 0;
    padding-inline-start: clamp(16px, 2vw, 28px);
    border-inline-start: 1px solid rgb(220 248 255 / 40%);
    color: #edf8ff;
    font-size: clamp(.94rem, 1.12vw, 1.03rem);
    line-height: 1.6;
}

/* Talk to Our Team button */
.cs-connect-cta .cs-btn.cs-connect-cta__button {
    justify-self: start;
    max-width: 100%;
}

/* Tablet */
@media (max-width: 991.98px) {
    .cs-connect-cta__banner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 16px 22px;
    }

    .cs-connect-cta__intro {
        grid-column: 1 / -1;
    }

    .cs-connect-cta .cs-connect-cta__description {
        padding-inline-start: 0;
        border-inline-start: 0;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .cs-connect-cta__banner {
        grid-template-columns: minmax(0, 1fr);
        padding: 22px 18px;
        border-radius: 18px;
    }

    .cs-connect-cta__intro {
        align-items: start;
    }

    .cs-connect-cta__icon {
        width: 38px;
        border-radius: 11px;
    }
}