﻿.services-section {
    display: flex;
    flex-direction: column;
    font-family: 'Instrument Sans', sans-serif;
}

.services-container {
    background-color: #eef4f8;
    position: relative;
    display: flex;
    min-height: 784px;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 136px 250px;
    bottom: 16px;
}

.copy-intro {
    z-index: 0;
    display: flex;
    max-width: 100%;
    width: 1222px;
    flex-direction: column;
    color: #3a444b;
    justify-content: start;
}

.section-title {
    font-size: 32px;
    font-weight: 500;
}

.section-description {
    font-size: var(--large-body-font-size);
    font-weight: 400;
    line-height: 26px;
    margin-top: 24px;
}

.items-container {
    z-index: 0;
    display: flex;
    margin-top: 80px;
    max-width: 100%;
    width: 1222px;
    align-items: start;
    gap: clamp(10px, 5vw, 40px) clamp(30px, 10vw, 180px);
    justify-content: start;
    flex-wrap: wrap;
}

.service-item {
    display: flex;
    min-width: 240px;
    flex-direction: column;
    justify-content: start;
    flex-grow: 1;
    gap: 16px;
    width: 228px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.service-icon {
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center;
    width: 32px;
}

.service-title {
    color: #3a444b;
    font-size: 24px;
    font-weight: 500;
    line-height: 36px;
}

.service-description {
    color: #586770;
    font-size: var(--large-body-font-size);
    font-weight: 400;
    line-height: 26px;
}

.background-image {
    aspect-ratio: 0.53;
    object-fit: cover;
    object-position: center;
    width: 265px;
    align-self: start;
    position: absolute;
    z-index: 0;
    max-width: 100%;
    left: -53px;
    bottom: -17px;
    height: 672px;
}

.arrow-icon {
    width: 24px;
    height: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-self: flex-start;
}

.service-item:hover {
    transform: translateY(-10px);
}

    .service-item:hover .arrow-icon {
        opacity: 1;
    }

.service-item:not(:hover) .arrow-icon {
    opacity: 0;
}

.leadership-section {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    padding: 85px 80px 66px;
    overflow: hidden;
    position: relative;
    bottom: 16px;
}

.leadership-container {
    display: flex;
    width: 100%;
    max-width: 1328px;
    flex-direction: column;
}

.team-intro {
    overflow: hidden;
}

.team-intro-content {
    display: flex;
    position: relative;
}

    .team-intro-content::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 22%;
        background-repeat: no-repeat;
        background-image: url(../../images/home/pattern-1.png);
    }

.image-column {
    display: flex;
    flex-direction: column;
    width: 40%;
}

.image-wrapper {
    position: relative;
    min-height: 555px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    padding: 0 70px 517px;
}

.team-image {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.content-column {
    display: flex;
    background-color: #eafaff;
    flex-direction: column;
    width: 60%;
    padding: 54px 0;
    align-items: center;
}

.content-wrapper {
    display: flex;
    width: 80%;
    flex-direction: column;
    justify-content: start;
    margin: auto 0;
    font: 400 18px Instrument Sans, sans-serif;
}

.team-title {
    color: #3a444b;
    font-size: 32px;
    font-weight: 500;
}

.team-description {
    color: #586770;
    line-height: 26px;
    margin-top: 24px;
    font-size: var(--large-body-font-size);
}

.team-button {
    display: inline-flex;
    align-self: start;
    background-color: #1e4965;
    margin-top: 24px;
    min-height: 54px;
    color: #eafaff;
    padding: 16px 24px;
    border: none;
    cursor: pointer;
    font-family: Instrument Sans, sans-serif;
    align-content: center;
    align-items: center;
    background-color: var(--colors-light-blue-lb-500);
}

    .team-button:hover {
        background-color: var(--colors-light-blue-lb-600);
    }

.team-button-text {
    font-family: var(--large-body-font-family);
    font-weight: var(--large-body-font-weight);
    color: var(--colors-light-blue-lb-100);
    font-size: var(--large-body-font-size);
    letter-spacing: var(--large-body-letter-spacing);
    line-height: var(--large-body-line-height);
    font-style: var(--large-body-font-style);
}

.team-stat {
    color: #92abbb;
    text-align: right;
    align-self: flex-end;
    margin-top: 21px;
    width: 100%;
    font: 400 14px/22px Instrument Sans, -apple-system, Roboto, Helvetica, sans-serif;
}

.insights-section {
    position: relative;
    background-color: #f0f4f7;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 75px 80px 0;
    transform: translateY(19px);
    z-index: 1;
    bottom: 19px;
}

.insights-container {
    display: flex;
    width: 112%;
    max-width: 1226px;
    flex-direction: column;
}

.insights-header {
    display: flex;
    flex-direction: column;
    font-family: 'Instrument Sans', sans-serif;
    text-align: center;
    justify-content: start;
}

.insights-title {
    color: #3a444b;
    font-size: 32px;
    font-weight: 500;
}

.insights-description {
    color: #586770;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    margin-top: 20px;
    padding: 0 20px;
}

.insights-posts {
    display: flex;
    margin-top: 43px;
    align-items: baseline;
    gap: 25px;
    font-family: 'Instrument Sans', sans-serif;
    justify-content: center;
    flex-wrap: wrap;
}

.insight-post {
    align-self: stretch;
    display: flex;
    min-width: 240px;
    flex-direction: column;
    justify-content: start;
    width: 392px;
    margin: auto 0;
    margin: auto 0;
}

.insight-image {
    aspect-ratio: 1.58;
    object-fit: fill;
    object-position: center;
    width: 100%;
}

.insight-text {
    color: #14374e;
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
    margin-top: 24px;
}

.insight-date {
    color: #3a444b;
    font-size: 14px;
    font-weight: 400;
    line-height: 2;
    margin-top: 24px;
}

.newsletter-section {
    background-color: #0b2436;
    margin-top: 35px;
    width: 100%;
    padding: 55px 63px;
    transform: translateY(50%);
    z-index: 1;
}

.newsletter-container {
    gap: 101px;
    display: flex;
    align-items: center;
}

.newsletter-text {
    display: flex;
    flex-direction: column;
    line-height: normal;
    width: 54%;
    margin-left: 0;
}

.newsletter-description {
    color: #fff;
    font: 500 24px 'Instrument Sans', sans-serif;
}

.newsletter-form-container {
    display: flex;
    flex-direction: column;
    line-height: normal;
    width: fit-content;
}

.newsletter-form {
    display: flex;
    width: 100%;
    gap: 7px;
    font: 400 18px/1 'Instrument Sans', -apple-system, Roboto, Helvetica, sans-serif;
}

.newsletter-input {
    align-self: stretch;
    background-color: #fff;
    font-size: 18px;
    color: #586770;
    flex-grow: 1;
    flex-basis: auto;
    padding: 18px;
    border: none;
    outline: none;
    border-radius: 0;
}

.newsletter-submit {
    position: relative;
    color: #fff;
    padding: 18px 7px 18px 8px;
    border: 1px solid #fff;
    background-color: transparent;
    font-size: 18px;
    cursor: pointer;
}

.expertise-stats {
    background-color: #14374e;
    padding: 67px 70px;
    font-family: 'Instrument Sans', sans-serif;
    position: relative;
    bottom: 16px;
}

.expertise-container {
    max-width: 1328px;
    margin: 0 auto;
    display: flex;
    gap: 160px;
}

.expertise-content {
    width: 32%;
    align-self: center;
}

.expertise-title {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--colors-light-blue-lb-200);
}

.expertise-description {
    line-height: 26px;
    margin-bottom: 24px;
    color: var(--colors-light-blue-lb-100);
    font-size: var(--large-body-font-size);
}

.expertise-button {
    position: relative;
    width: 182px;
    display: inline-block;
    padding: 16px 24px;
    border: 1px solid #fff;
    color: #c6e8f3;
    text-decoration: none !important;
    text-align: center;
    font-size: 18px;
    transition: color 0.3s ease;
}

    .expertise-button:hover {
        color: var(--colors-neutral-n-0);
    }

    .expertise-button::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        opacity: 0;
        border: 1px solid var(--colors-neutral-n-0);
        transform: translate(-50%, -50%);
        transition: border 0.3s ease, opacity 0.3s ease;
    }

    .expertise-button:hover::before {
        opacity: 1;
        border: 1.5px solid var(--colors-neutral-n-0);
    }

.stats-grid {
    width: 45%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

    .stats-grid .stat-card:nth-child(2n),
    .stats-grid .stats-footnote-large {
        transform: translateY(50%);
    }

.stat-card {
    background-color: #1e4965;
    width: 287px;
    height: 200px;
    padding: 46px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

@keyframes slideUpCardsFirstColumn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0%);
        opacity: 1;
    }
}

@keyframes slideUpCardsSecondColumn {
    from {
        transform: translateY(300%);
        opacity: 0;
    }

    to {
        transform: translateY(50%);
        opacity: 1;
    }
}

.stats-grid.animate .stat-card {
    animation: slideUpCardsFirstColumn 1s ease-out forwards;
}

    .stats-grid.animate .stat-card:nth-child(2n),
    .stats-grid.animate .stats-footnote-large {
        animation: slideUpCardsSecondColumn 2s ease-out forwards;
    }

.stat-card-content,
.description-text {
    width: 223px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.6s ease, visibility 0.5s ease;
}

.stat-card-content {
    opacity: 1;
    visibility: visible;
}

.description-text {
    opacity: 0;
    visibility: hidden;
}

/*.stat-card:hover .stat-card-content {
    opacity: 0;
    visibility: hidden;
}

.stat-card:hover .description-text {
    opacity: 1;
    visibility: visible;
}*/

.description-text {
    font-family: var(--large-body-font-family);
    font-weight: var(--large-body-font-weight);
    color: #c6e8f3;
    font-size: var(--large-body-font-size);
    text-align: center;
    letter-spacing: var(--large-body-letter-spacing);
    line-height: var(--large-body-line-height);
    font-style: var(--large-body-font-style);
    justify-content: center;
    align-items: center;
}

.stat-value {
    color: #c6e8f3;
    font-size: 56px;
    font-weight: 500;
    margin-bottom: 14px;
}

.stat-label {
    color: #fff;
    font-size: 18px;
    line-height: 26px;
}

.stats-footnote-large {
    color: #78aaca;
    font-size: 14px;
    text-align: right;
    font-size: 14px;
}

.stats-footnote-medium {
    display: none;
}

@media (max-width: 1815px) {
    .services-section {
        margin-top: 1%;
    }
}

@media (max-width: 1450px) {
    .items-container {
        flex-wrap: wrap !important;
    }
}

@media (max-width: 1441px) {
    .services-section {
        margin-top: 0;
    }
}

@media (max-width: 1209px) {

    .background-triangle {
        border-width: 0 0 150px 150px;
    }

    .services-container {
        max-width: 100%;
        padding: 100px;
    }

    .section-title {
        max-width: 100%;
    }

    .section-description {
        max-width: 100%;
    }

    .items-container {
        margin-top: 40px;
        justify-content: center;
    }

    .expertise-container {
        gap: 20px;
    }
}

@media (max-width: 1169px) {
    .newsletter-section {
        transform: translateY(25%);
    }

    .newsletter-container {
        gap: 0;
    }
}

@media (max-width: 1100px) {
    .newsletter-container {
        gap: 15px;
    }
}

@media (max-width: 1024px) {
    .section-title,
    .expertise-title,
    .insights-title,
    .team-title {
        font-size: 26px;
    }

    .newsletter-section {
        max-width: 100%;
        padding: 40px 63px 21px;
    }

    .newsletter-container {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .newsletter-form {
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .newsletter-description {
        font-size: 18px;
        text-align: center;
    }

    .expertise-stats {
        padding: 56px 20px;
    }

    .expertise-content {
        width: 100%;
        text-align: center;
    }

    .stats-footnote-large {
        display: none;
    }

    .stats-footnote-medium {
        display: flex;
        color: #78aaca;
        font-size: 14px;
        align-self: center;
    }

    .stats-grid .stat-card:nth-child(2n),
    .stats-grid .stats-footnote-large {
        transform: none;
    }

    .stats-grid.animate .stat-card {
        animation: slideUpCardsFirstColumn 1s ease-out forwards;
    }

        .stats-grid.animate .stat-card:nth-child(2n),
        .stats-grid.animate .stats-footnote-large {
            animation: slideUpCardsFirstColumn 2s ease-out forwards;
        }

    .expertise-container {
        flex-direction: column;
        gap: 56px;
    }

    .stats-grid {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .stat-card {
        width: 232px;
    }

    .stat-value {
        font-size: 42px;
    }

    .stat-label,
    .section-description,
    .expertise-description,
    .team-description,
    .insights-description,
    .team-button-text,
    .insight-text,
    .newsletter-submit,
    .stat-label,
    .description-text,
    .expertise-button {
        font-size: 16px;
    }

    .insight-post {
        flex-direction: row;
        gap: 24px;
    }

    .insights-posts {
        flex-direction: column;
        justify-content: center;
    }

    .insight-content {
        flex: 1;
        align-self: center;
    }

    .insight-text {
        margin-top: 0;
        width: 420px;
    }

    .insight-image {
        width: 250px;
        height: 100%;
        aspect-ratio: 1.63;
        object-fit: fill;
    }

    .team-image {
        object-fit: fill;
    }

    .leadership-section {
        padding: 100px 32px 81px;
    }
}

@media (max-width: 991px) {
    .insights-container {
        max-width: 112%;
    }

    .insights-header {
        max-width: 100%;
    }

    .insights-title {
        max-width: 100%;
    }

    .insights-description {
        max-width: 100%;
    }

    .insights-posts {
        margin-top: 40px;
    }

    .newsletter-text {
        width: 100%;
    }

    .newsletter-description {
        max-width: 100%;
    }

    .newsletter-submit {
        white-space: normal;
    }
}

@media (max-width: 827px) {
    .insights-section {
        padding: 75px 28px 0;
    }

    .insight-post {
        margin-left: 32px;
    }
}

@media (max-width: 776px) {
    .newsletter-section {
        margin-top: 90px;
        transform: translateY(0%);
        z-index: 0;
    }
}

@media (max-width: 768px) {
    .services-section {
        margin-top: 20%;
    }

    .section-description,
    .expertise-description,
    .team-description,
    .insights-description,
    .team-button-text,
    .insight-text,
    .newsletter-submit,
    .stat-label,
    .description-text,
    .expertise-button {
        font-size: 14px;
    }

    .section-title,
    .expertise-title,
    .insights-title,
    .team-title {
        font-size: 20px;
    }

    stats-footnote-large,
    .stats-footnote-medium,
    .insight-date,
    .team-stat {
        font-size: 11px;
    }

    .stat-value {
        font-size: 32px;
    }

    .newsletter-description {
        font-size: 16px;
    }

    .team-intro-content::after {
        top: 38%;
    }

    .leadership-section {
        padding: 100px 80px 81px;
    }

    .leadership-container {
        max-width: 100%;
    }

    .team-intro {
        max-width: 100%;
        padding-right: 0;
    }

    .team-intro-content {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .image-column,
    .content-column {
        width: 100%;
    }

    .content-column {
        padding-top: 0;
    }

    .image-wrapper {
        max-width: 100%;
        padding-bottom: 100px;
    }

    .content-wrapper {
        max-width: 100%;
        margin-top: 40px;
    }

    .team-title,
    .team-description,
    .team-button {
        text-align: center;
        align-self: center;
    }

    .team-button {
        padding: 15px 20px;
    }

    .team-image {
        object-fit: cover;
    }

    .team-stat {
        text-align: center;
        align-self: center;
    }

    .services-container {
        padding: 100px 32px;
    }

    .insight-text {
        width: 170px;
    }

    .background-image {
        height: 600px;
        left: -130px;
    }
}

@media (max-width: 676px) {
    .services-section {
        margin-top: 25%;
    }
}

@media (max-width: 620px) {
    .leadership-section {
        padding: 100px 32px 81px;
    }
}

@media (max-width: 603px) {
    .services-section {
        margin-top: 45%;
    }
}

@media (max-width: 520px) {
    .team-image {
        object-fit: fill;
    }

    .image-wrapper {
        min-height: 350px;
    }

    .team-intro-content::after {
        width: 30%;
    }

    .insights-section {
        padding: 56px 25px 0;
    }

    .insight-image {
        width: 120px;
        aspect-ratio: 1;
    }
}

@media (max-width: 500px) {
    .newsletter-form-container {
        width: 100%;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .insight-image {
        width: 120px;
        aspect-ratio: 1;
    }

    .background-image {
        left: -190px;
    }

    .insight-post {
        width: 100%;
        margin-left: 20px;
    }

    .team-stat {
        padding: 0 20px;
    }

    .stat-label,
    .description-text {
        font-size: 11px;
    }

    .insights-section {
        padding: 56px 18px 0;
    }
}

@media (max-width: 422px) {
    .services-section {
        margin-top: 60%;
    }
}

@media (max-width: 401px) {
    .services-section {
        margin-top: 15%;
    }

    .insight-post {
        width: 100%;
        margin-left: 10px;
    }
}

@media (max-width: 349px) {
    .services-section {
        margin-top: 25%;
    }
}
