/* =========================================================
   PRE-DEV FLAGSHIP PATHWAY
   CodNesta's practical preparation pathway
   ========================================================= */


/*--------------------------------------------------
Section Container
--------------------------------------------------*/

.predev-feature {
    position: relative;

    overflow: hidden;

    background: var(--color-white);
}


/*--------------------------------------------------
Decorative Background
--------------------------------------------------*/

.predev-feature::before {
    content: "";

    position: absolute;
    top: 8%;
    right: -140px;

    width: 380px;
    height: 380px;

    border-radius: 50%;

    background: rgba(244, 180, 0, 0.08);
    filter: blur(24px);

    pointer-events: none;
}


/*--------------------------------------------------
Main Layout
--------------------------------------------------*/

.predev-feature__inner {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(420px, 1.1fr);

    align-items: center;
    gap: clamp(3rem, 7vw, 6rem);
}


/*--------------------------------------------------
Content Area
--------------------------------------------------*/

.predev-feature__content {
    max-width: 620px;
}

.predev-feature__text {
    margin-bottom: var(--space-5);

    font-size: var(--font-size-md);
}


/*--------------------------------------------------
Pathway Highlights
--------------------------------------------------*/

.predev-feature__highlights {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);

    margin-bottom: var(--space-6);
}

.predev-feature__highlights span {
    display: inline-flex;
    align-items: center;

    padding: 0.65rem 1rem;

    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);

    background: var(--color-background-soft);

    color: var(--color-navy);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}


/*--------------------------------------------------
Visual Area
--------------------------------------------------*/

.predev-feature__visual {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    min-height: 600px;
}


/*--------------------------------------------------
Background Panel
--------------------------------------------------*/

.predev-feature__blue-panel {
    position: absolute;
    top: 0;
    right: 0;

    width: 86%;
    height: 100%;

    border-radius: 2.5rem 0 0 2.5rem;

    background: var(--color-navy);
}


/*--------------------------------------------------
Pathway Image
--------------------------------------------------*/

.predev-feature__image {
    position: relative;
    z-index: 2;

    width: 82%;
    height: 88%;

    margin-right: 0;
    margin-left: auto;

    overflow: hidden;

    border-radius: var(--radius-xl);

    background: var(--color-background-soft);

    box-shadow:
        0 28px 70px rgba(4, 29, 46, 0.24);
}

.predev-feature__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition:
        transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}


/*--------------------------------------------------
Impact Card
--------------------------------------------------*/

.predev-feature__impact {
    position: absolute;
    bottom: 3rem;
    left: 0;

    z-index: 3;

    width: min(270px, 78%);
    padding: var(--space-5);

    border: 1px solid rgba(10, 56, 87, 0.12);
    border-radius: var(--radius-lg);

    background: var(--color-white);

    box-shadow:
        0 18px 45px rgba(10, 56, 87, 0.18);
}

.predev-feature__number {
    display: block;

    margin-bottom: var(--space-2);

    color: var(--color-gold-dark);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-weight-bold);
    line-height: 1;
}

.predev-feature__impact strong {
    display: block;

    margin-bottom: var(--space-1);

    color: var(--color-navy);
    font-size: var(--font-size-md);
}

.predev-feature__impact p {
    margin: 0;

    color: var(--color-text-secondary);
}


/*--------------------------------------------------
Interactive States
--------------------------------------------------*/

.predev-feature__visual:hover .predev-feature__image img {
    transform: scale(1.035);
}


/*--------------------------------------------------
Tablet — 900px and Below
--------------------------------------------------*/

@media (max-width: 900px) {
    .predev-feature__inner {
        grid-template-columns: 1fr;
    }

    .predev-feature__content {
        max-width: 720px;
    }

    .predev-feature__visual {
        min-height: 520px;
    }

    .predev-feature__blue-panel {
        width: 86%;
    }

    .predev-feature__image {
        width: 86%;
        height: 86%;
    }
}


/*--------------------------------------------------
Mobile — 600px and Below
--------------------------------------------------*/

@media (max-width: 600px) {
    .predev-feature__visual {
        min-height: 420px;

        justify-content: center;
    }

    .predev-feature__blue-panel {
        width: 84%;

        border-radius: 1.75rem 0 0 1.75rem;
    }

    .predev-feature__image {
        width: 92%;
        height: 82%;

        margin-inline: auto;

        border-radius: 1.5rem;
    }

    .predev-feature__impact {
        bottom: 0;
        left: 0;

        width: min(235px, 82%);
        padding: var(--space-4);
    }

    .predev-feature__highlights {
        flex-direction: column;
        align-items: flex-start;
    }

    .predev-feature__highlights span {
        width: 100%;
    }
}


/*--------------------------------------------------
Reduced Motion
--------------------------------------------------*/

@media (prefers-reduced-motion: reduce) {
    .predev-feature__image img {
        transition: none;
    }

    .predev-feature__visual:hover .predev-feature__image img {
        transform: none;
    }
}