:root {
    --color-red: #e31e24;
    --color-blue1: #003189;
    --color-blue2: #053C8F;
    --color-dark: #222222;
    --color-yellow: #CFA64A;
    --color-grey: #EDEDED;
}

/*@font-face {*/
/*    font-family: futura;*/
/*    src: url(../fonts/futura/FuturaStdBold.ttf);*/
/*    font-weight: 700;*/
/*}*/

/*@font-face {*/
/*    font-family: futura;*/
/*    src: url(../fonts/futura/Futuraregular.ttf);*/
/*    font-weight: 400;*/
/*}*/

body {
    /*font-family: "futura", sans-serif;*/
    color: var(--color-dark);
    font-size: 16px;
}

.section-pad {
    padding: 80px 0;
}

.founders-day-section {
    padding: 80px 0;
    background-color: #F3F3F3;
}

/* Founder label */
.founders-label {
    font-size: 18px;
    color: var(--color-red);
    position: relative;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}


/* Title */
.founders-title {
    font-size: 28px;
    line-height: 1.35;
    text-transform: uppercase;
    color: #0b3a8f;
    margin-bottom: 25px;
    font-family: 'Futura-Condensed';
    font-weight: 700;
}

.founders-title span {
    display: block;
}

/* Paragraphs */
.founders-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #222;
    margin-bottom: 18px;
}

/* Right banner */
.founders-banner-img {
    position: absolute;
}

.founders-banner img {
    max-width: 100%;
}

.sec-header {
    h2 {
        color: var(--color-blue1);
        text-align: center;
        leading-trim: both;
        text-edge: cap;
        font-size: 32px;
        font-style: normal;
        line-height: 60px;
        text-transform: uppercase;
        font-family: 'Futura-Condensed';
        font-weight: 700;
    }
}


/* Card */
.fd-card {
    background: #fff;
    border-radius: 14px;
    padding: 48px 24px;
    height: 100%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    transition: all .3s ease;
}

.fd-card.active,
.fd-card:hover {
    background: var(--color-blue1);
}

/* Icon */
.icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
}

.fd-card.active .icon-wrap,
.fd-card:hover .icon-wrap {
    background: var(--color-yellow);
}

.icon-wrap img {
    width: 32px;
}

/* Title */
.fd-card h5 {
    font-size: 1.3rem;
    margin: 20px 0 16px;
    color: var(--color-blue1);
    transition: .3s;
    margin-bottom: 22px;
    font-weight: 800;
}

.fd-card:hover h5,
.fd-card.active h5 {
    color: #fff;
}
.fd-card:hover .content{
    color: #fff;
}

/* Content */
.content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    position: relative;

    &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: var(--color-yellow);
        margin-top: 4px;
        flex-shrink: 0;
    }
}

.yellow-line {
    width: 3px;
    height: 100%;
    background: var(--color-yellow);
    margin-top: 4px;
    flex-shrink: 0;
}

.fd-card p {
    font-size: 16px;
    line-height: 1.7;
    color: #343434;
    margin: 0;
    transition: .3s;
}

.fd-card:hover p,
.fd-card.active p {
    color: #fff;
}

.journal-head {
    background: #F1F1F1;
    padding: 80px 0 68px 0;

    h2 {
        margin-bottom: 0;
    }
}

.journey {
    background: #F1F1F1;
    position: relative;

    .journey-box:nth-child(even) .container .row {
        flex-direction: row-reverse;
    }

    .journey-box:nth-child(even) .overlay {
        background: linear-gradient(
            0deg,
            rgba(5, 60, 143, 0.93) 0%,
            rgba(5, 60, 143, 0.93) 100%
        );

    }

    .journey-box:nth-child(even) .journey-content {
        text-align: right;
        color: rgba(255, 255, 255, 0.75) !important;
        h2 {
            color: var(--color-yellow);
        }

        h5 {
            color: #fff;
        }

        p {
            color: rgba(255, 255, 255, 0.75);
        }
    }

    .journey-box:nth-last-child(1) {
        margin-bottom: 0;
    }
}

.journey-box {
    position: relative;

    &::after {
        content: "";
        position: absolute;
        bottom: -10%;
        left: 50%;
        transform: translate(-50%, 10%);
        width: 6px;
        height: 70px;
        background: url(/new-home-page/founder-day/dotted-line.png);
        background-repeat: no-repeat;
    }
}

.background-image-box {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 86px 0;
    margin-bottom: 72px;
}

.background-image-box .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(236, 236, 234, 0.95),
        rgba(236, 236, 234, 0.95)
    );
    pointer-events: none;
}

.background-image-box .container {
    position: relative;
    z-index: 1;
}

.journey-red-row {
    position: relative;

    &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 6px;
        height: 100%;
        background: var(--color-red);
    }
}

.journey-content {
    position: relative;
    padding-left: 24px;

    h2 {
        color: var(--color-blue1);
        font-size: 40px;
        font-style: normal;
        line-height: 130%;
        text-transform: uppercase;
        font-family: 'Futura-Condensed';
        font-weight: 700;
    }

    h5 {
        color: var(--color-blue2);
        font-size: 28px;
        font-style: normal;
        line-height: 140%;
        font-weight: 800;
        text-transform: uppercase;
        margin-bottom: 24px;
    }

    p {
        font-size: 16px;
        line-height: 150%;
    }
}

.journey-image {
    min-height: 462px;
    margin-left: 20px;
    img{
        height: 100%;
        object-fit: cover;
    }
}

.dotted-line {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, -1%);
}

.founders-row {
    overflow: visible; /* allows image to overflow column */
}

.founders-banner {
    position: relative;
}

.founders-banner-img img {
    width: 120%; /* make the image larger than its column */
    max-width: none; /* prevent default bootstrap max-width */
    position: relative;
    right: -10%; /* push the image outward */
    display: block; /* ensures proper alignment */
    transform: translate(0%, -50%);
}


@media (max-width: 1440px) {
    .founders-banner-img img {
        width: 110%;
    }
}

@media (max-width: 1200px) {
    .founders-banner-img img {
        width: 100%;
        right: 0;
    }

    .fd-card {
        padding: 24px 16px;
    }

    .journey-content {
        padding-left: 16px;

        h2 {
            font-size: 2.75rem;
            margin-bottom: 0;
        }

        h5 {
            font-size: 1.75rem;
        }
    }

    .journey-box::after {
        bottom: -11%;
    }

    .journey-image {
        margin-left: 16px;
    }
}

@media (max-width: 991px) {
    .founders-title {
        font-size: 1.7rem;
    }

    .founders-day-section,
    .section-pad,
    .background-image-box {
        padding: 60px 0;
    }

    .journal-head {
        padding: 60px 0 24px 0;
    }

    .journey-image {
        margin-left: 0;
    }

    .journey-content {
        h2 {
            font-size: 1.8rem;
        }

        h5 {
            font-size: 1.125rem;
        }
    }

    .journey-red-row {
        &::before {
            width: 4px;
        }
    }

    .journey-content {
        padding-left: 8px;

        h5 {
            margin-bottom: 0;
        }

        p {
            font-size: 15px;
        }
    }

    .sec-header h2 {
        font-size: 1.5rem;
    }

    .journey-box::after {
        bottom: -12%;
    }

}


@media (max-width: 768px) {
    .founders-banner-img img {
        width: 100%; /* scale back on smaller screens */
        right: 0;
    }
}


/* Responsive adjustments */
@media (max-width: 767px) {
    .founders-day-section {
        padding-top: 0;

        .container .row {
            flex-direction: column-reverse;
        }
    }

    .founders-banner-img img {
        transform: translate(0%, 0%);
    }

    /*.founders-title {*/
    /*    font-size: 22px;*/
    /*}*/
    .founders-banner {
        text-align: center;
    }

    .founders-banner-img {
        position: static;
    }

    .journey-box::after {
        bottom: -7%;
    }

    .journey {
        .journey-box:nth-child(even) .journey-content {
            text-align: left;
        }
    }

}

@media (max-width: 575px) {
    .journey-red-row {
        margin: 0;
    }

    .journey-content {
        font-size: 1.6rem;
    }
    .fd-card p{
        font-size: 15px;
    }

}
