/* Single project – "Project Challenges and Solutions" (Figma 6756:19199).
   Scoped under .single-project-section-challenges so nothing leaks into other sections. */

/* The Figma frame carries no padding of its own – main.css gives every
   .single-project-section-content 30px 0, which would add 60px on top of the
   140px between-section rhythm that 00-base.css owns. */
.single-project-section-challenges.single-project-section-content {
    padding: 0;
}

.single-project-section-challenges .single-project-section-challenges-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    width: 100%;
}

/* --- Heading block ---------------------------------------------------- */

.single-project-section-challenges .single-project-section-challenges-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

/* Figma draws the pill stroke inside the 40px-tall frame, so the 30px inset is
   measured to the outer edge of the border: 29px padding + 1px border. */
.single-project-section-challenges .single-project-section-challenges-overview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 40px;
    padding: 9px 29px;
    border: 1px solid #ACACAC;
    border-radius: 36px;
    background: #FAFAFA;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: normal;
    color: #7F7F7F;
    text-transform: none;
    white-space: nowrap;
}

.single-project-section-challenges .single-project-section-challenges-title {
    width: 100%;
    margin: 0;
    font-family: Unbounded, sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: normal;
    color: #171B1C;
    text-align: center;
    text-transform: uppercase;
    overflow-wrap: break-word;
}

.single-project-section-challenges .single-project-section-challenges-intro {
    width: 100%;
    margin: 0;
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: normal;
    color: #7F7F7F;
    text-align: center;
    overflow-wrap: break-word;
}

/* --- Challenge / solution card (fig 6756:19918) ------------------------
   One 20px-padded white card holding two 685 columns 20px apart. The left
   column is transparent and carries the topic heading; the right one is a
   nested #fafafa card with its own 20px padding, so its text measures 645.
   The card's height is driven by whichever column runs longer. */

.single-project-section-challenges .single-project-section-challenges-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 20px;
    border-radius: 16px;
    background: #FFFFFF;
    box-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.1), 0 1px 1px rgba(0, 0, 0, 0.1);
}

.single-project-section-challenges .single-project-section-challenges-card-col {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    box-sizing: border-box;
    min-width: 0;
}

/* the mock insets the left column's content rather than the card */
.single-project-section-challenges .single-project-section-challenges-card-col-challenge {
    padding-top: 20px;
    background: transparent;
}

.single-project-section-challenges .single-project-section-challenges-card-col-solution {
    align-self: stretch;
    padding: 20px;
    border-radius: 16px;
    background: #FAFAFA;
}

.single-project-section-challenges .single-project-section-challenges-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 40px;
    margin: 0;
    padding: 9px 29px;
    border: 1px solid #171B1C;
    border-radius: 36px;
    background: #FAFAFA;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: normal;
    color: #171B1C;
    text-transform: none;
    white-space: nowrap;
}

/* on the grey column the pill inverts so it still reads as a chip */
.single-project-section-challenges .single-project-section-challenges-card-col-solution .single-project-section-challenges-pill {
    background: #FFFFFF;
}

.single-project-section-challenges .single-project-section-challenges-card-title {
    width: 100%;
    margin: 0;
    font-family: Montserrat, sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: normal;
    color: #171B1C;
    text-align: left;
    text-transform: none;
    overflow-wrap: break-word;
}

.single-project-section-challenges .single-project-section-challenges-text {
    width: 100%;
    margin: 0;
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: normal;
    color: #7F7F7F;
    text-align: left;
    overflow-wrap: break-word;
}

/* --- Adaptation below the 1430px design column ------------------------- */

@media screen and (max-width: 1023px) {
    .single-project-section-challenges .single-project-section-challenges-card {
        gap: 15px;
    }
}

@media screen and (max-width: 767px) {
    .single-project-section-challenges .single-project-section-challenges-wrap {
        gap: 30px;
    }

    .single-project-section-challenges .single-project-section-challenges-overview,
    .single-project-section-challenges .single-project-section-challenges-pill {
        min-height: 36px;
        padding: 7px 21px;
        font-size: 14px;
    }

    .single-project-section-challenges .single-project-section-challenges-title {
        font-size: 24px;
    }

    .single-project-section-challenges .single-project-section-challenges-intro,
    .single-project-section-challenges .single-project-section-challenges-text {
        font-size: 16px;
    }

    .single-project-section-challenges .single-project-section-challenges-card {
        gap: 20px;
        padding: 20px;
        border-radius: 12px;
    }

    .single-project-section-challenges .single-project-section-challenges-card-title {
        font-size: 20px;
    }

    .single-project-section-challenges .single-project-section-challenges-card {
        flex-direction: column;
        gap: 20px;
    }

    .single-project-section-challenges .single-project-section-challenges-card-col-challenge {
        padding-top: 0;
    }
}
