/**
 * Solution Module: Why WorkJam Section
 *
 * Layout:
 * - Row 1: Title + Pain Points (left), Illustration (right, overflows vertically)
 * - Row 2: Description (centered, full width)
 *
 * The illustration is positioned in a fixed-height container but overflows
 * into the description row area using overflow: visible.
 *
 * Figma Node: 454-1580
 *
 * @package WorkJam
 */

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

.solution-why-workjam {
    background-color: #FFFFFF;
    padding: 72px;
}

.solution-why-workjam__container {
    max-width: 1304px;
    margin: 0 auto;
}

.solution-why-workjam__card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 65px 36px 87px 36px;
    border-radius: 30px;
    overflow: hidden;
    min-height: 636px;
}

/* Neon rings background - positioned bottom left */
.solution-why-workjam__card::before {
    content: '';
    position: absolute;
    width: 1024px;
    height: 1024px;
    bottom: -650px;
    left: -500px;
    opacity: 0.15;
    background-image: url('../../images/book-demo-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   ROW TOP: Content + Illustration
   ========================================================================== */

.solution-why-workjam__row-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    min-height: 318px;
    overflow: visible;
    padding-left: 40px;
}

/* ==========================================================================
   CONTENT AREA (LEFT)
   ========================================================================== */

.solution-why-workjam__content {
    flex: 1;
    align-self: center;
}

.solution-why-workjam__title {
    font-family: "Avenir Next", sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: normal;
    color: #FFFFFF;
    margin: 0 0 24px 0;
}

/* Pain Points List */
.solution-why-workjam__pain-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.solution-why-workjam__pain-point {
    font-family: "Avenir Next", sans-serif;
    font-size: 24px;
    line-height: 1.4;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 8px;
}

.solution-why-workjam__pain-point-bold {
    font-weight: 700;
    font-size: 32px;
    line-height: normal;
}

.solution-why-workjam__pain-point-text {
    font-weight: 400;
    line-height: normal;
}

/* ==========================================================================
   ILLUSTRATION AREA (RIGHT) - Overflows into Row Bottom
   ========================================================================== */

.solution-why-workjam__illustration {
    position: relative;
    flex-shrink: 0;
    width: 364px;
    height: 318px;
    overflow: visible;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.solution-why-workjam__image,
.solution-why-workjam__illustration img {
    width: 364px;
    height: auto;
    aspect-ratio: 364 / 520;
    object-fit: contain;
    display: block;
}

/* ==========================================================================
   ROW BOTTOM: Description (Centered)
   ========================================================================== */

.solution-why-workjam__row-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    padding-top: 24px;
}

.solution-why-workjam__description {
    font-family: "Avenir Next", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: normal;
    color: #FFFFFF;
    text-align: center;
    margin: 0;
    max-width: 620px;
}

/* ==========================================================================
   RESPONSIVE - LAPTOP (1400px)
   ========================================================================== */

@media (max-width: 1400px) {
    .solution-why-workjam {
        padding: 56px 80px;
    }

    .solution-why-workjam__card {
        padding: 56px 64px 40px;
    }

    .solution-why-workjam__row-top {
        min-height: 280px;
        gap: 32px;
    }

    .solution-why-workjam__title {
        font-size: 42px;
    }

    .solution-why-workjam__pain-point {
        font-size: 22px;
    }

    .solution-why-workjam__illustration {
        width: 320px;
        height: 280px;
    }

    .solution-why-workjam__image,
    .solution-why-workjam__illustration img {
        width: 320px;
    }

    .solution-why-workjam__description {
        font-size: 18px;
        max-width: 620px;
    }

    .solution-why-workjam__card::before {
        width: 900px;
        height: 900px;
        bottom: -450px;
        left: -350px;
    }
}

/* ==========================================================================
   RESPONSIVE - TABLET LANDSCAPE (1200px)
   ========================================================================== */

@media (max-width: 1200px) {
    .solution-why-workjam {
        padding: 48px 60px;
    }

    .solution-why-workjam__card {
        padding: 48px 56px 36px;
        border-radius: 28px;
    }

    .solution-why-workjam__row-top {
        min-height: 250px;
    }

    .solution-why-workjam__title {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .solution-why-workjam__pain-point {
        font-size: 20px;
    }

    .solution-why-workjam__pain-points {
        gap: 10px;
    }

    .solution-why-workjam__illustration {
        width: 280px;
        height: 250px;
    }

    .solution-why-workjam__image,
    .solution-why-workjam__illustration img {
        width: 280px;
    }

    .solution-why-workjam__description {
        font-size: 16px;
        max-width: 560px;
    }

    .solution-why-workjam__card::before {
        width: 800px;
        height: 800px;
        bottom: -400px;
        left: -300px;
    }
}

/* ==========================================================================
   RESPONSIVE - TABLET PORTRAIT (1024px)
   ========================================================================== */

@media (max-width: 1024px) {
    .solution-why-workjam {
        padding: 48px 40px;
    }

    .solution-why-workjam__card {
        padding: 40px 32px 48px;
        min-height: auto;
    }

    /* Use display: contents to flatten row-top for flex ordering */
    .solution-why-workjam__row-top {
        display: contents;
    }

    /* Assign flex order: Content (1), Description (2), Illustration (3) */
    .solution-why-workjam__content {
        position: relative;
        z-index: 1;
        order: 1;
        max-width: 100%;
        align-self: stretch;
    }

    .solution-why-workjam__row-bottom {
        order: 2;
        padding-top: 24px;
        justify-content: flex-start;
    }

    .solution-why-workjam__illustration {
        order: 3;
        position: relative;
        z-index: 1;
        width: 100%;
        height: auto;
        overflow: hidden;
        justify-content: center;
        margin-top: 32px;
    }

    .solution-why-workjam__title {
        font-size: 32px;
    }

    .solution-why-workjam__pain-points {
        gap: 20px;
    }

    .solution-why-workjam__pain-point-bold {
        font-size: 24px;
    }

    .solution-why-workjam__pain-point-text {
        font-size: 20px;
    }

    .solution-why-workjam__image,
    .solution-why-workjam__illustration img {
        width: 260px;
    }

    .solution-why-workjam__description {
        max-width: 100%;
        text-align: left;
        font-size: 18px;
    }

    .solution-why-workjam__card::before {
        width: 700px;
        height: 700px;
        bottom: -350px;
        left: -250px;
    }
}

/* ==========================================================================
   RESPONSIVE - TABLET SMALL (768px)
   ========================================================================== */

@media (max-width: 768px) {
    .solution-why-workjam {
        padding: 40px 24px;
    }

    .solution-why-workjam__card {
        padding: 36px 24px 40px;
        border-radius: 24px;
    }

    .solution-why-workjam__title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .solution-why-workjam__pain-points {
        gap: 18px;
    }

    .solution-why-workjam__pain-point-bold {
        font-size: 20px;
    }

    .solution-why-workjam__pain-point-text {
        font-size: 18px;
    }

    .solution-why-workjam__row-bottom {
        padding-top: 20px;
    }

    .solution-why-workjam__illustration {
        margin-top: 28px;
    }

    .solution-why-workjam__image,
    .solution-why-workjam__illustration img {
        width: 220px;
    }

    .solution-why-workjam__description {
        font-size: 16px;
    }

    .solution-why-workjam__card::before {
        width: 600px;
        height: 600px;
        bottom: -300px;
        left: -200px;
    }
}

/* ==========================================================================
   RESPONSIVE - MOBILE (600px)
   ========================================================================== */

@media (max-width: 600px) {
    .solution-why-workjam {
        padding: 32px 16px;
    }

    .solution-why-workjam__card {
        padding: 32px 20px 40px;
        border-radius: 20px;
    }

    .solution-why-workjam__title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .solution-why-workjam__pain-points {
        gap: 16px;
    }

    .solution-why-workjam__pain-point-bold {
        font-size: 18px;
    }

    .solution-why-workjam__pain-point-text {
        font-size: 16px;
    }

    .solution-why-workjam__row-bottom {
        padding-top: 16px;
    }

    .solution-why-workjam__illustration {
        margin-top: 24px;
    }

    .solution-why-workjam__image,
    .solution-why-workjam__illustration img {
        width: 200px;
    }

    .solution-why-workjam__description {
        font-size: 16px;
    }

    .solution-why-workjam__card::before {
        width: 500px;
        height: 500px;
        bottom: -250px;
        left: -150px;
        opacity: 0.1;
    }
}

/* ==========================================================================
   RESPONSIVE - SMALL MOBILE (400px)
   ========================================================================== */

@media (max-width: 400px) {
    .solution-why-workjam {
        padding: 24px 12px;
    }

    .solution-why-workjam__card {
        padding: 28px 16px 36px;
        border-radius: 16px;
    }

    .solution-why-workjam__title {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .solution-why-workjam__pain-points {
        gap: 14px;
    }

    .solution-why-workjam__pain-point-bold {
        font-size: 16px;
    }

    .solution-why-workjam__pain-point-text {
        font-size: 14px;
    }

    .solution-why-workjam__row-bottom {
        padding-top: 14px;
    }

    .solution-why-workjam__illustration {
        margin-top: 20px;
    }

    .solution-why-workjam__image,
    .solution-why-workjam__illustration img {
        width: 180px;
    }

    .solution-why-workjam__description {
        font-size: 14px;
    }

    .solution-why-workjam__card::before {
        width: 400px;
        height: 400px;
        bottom: -200px;
        left: -100px;
    }
}
