/* =========================================================
   PROBLEM SECTION
========================================================= */

.problem-section {
    position: relative;
    width: 100%;
    padding: 100px 30px 120px;
    box-sizing: border-box;

    background:
        url("../../assets/problem/images/problem-background.png")
        center center / cover no-repeat;

    overflow: hidden;
}

.problem-container {
    position: relative;
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
}


/* =========================================================
   SECTION HEADER
========================================================= */

.problem-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 80px;

    margin-bottom: 65px;
}

.problem-title {
    margin: 0;

    color: #151515;

    font-family: "DM Sans", sans-serif;
    font-size: 48px;
    line-height: 1.08;
    font-weight: 700;

    letter-spacing: -1.8px;
}

.problem-intro {
    margin: 10px 0 0;

    max-width: 540px;

    color: #6d6d6d;

    font-family: "DM Sans", sans-serif;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 400;

    letter-spacing: .1px;
}


/* =========================================================
   DECORATIVE STAR
========================================================= */

.problem-star {
    position: absolute;
    top: 95px;
    left: 50%;
    width: 80px;
    height: 80px;
    transform: translateX(-50%);
    z-index: 5;

    animation: starRotate 4s linear infinite;
}

.problem-star img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}


/* =========================================
   CONTINUOUS 360° ROTATION
========================================= */

@keyframes starRotate {

    from {
        transform: translateX(-50%) rotate(0deg);
    }

    to {
        transform: translateX(-50%) rotate(360deg);
    }

}


/* =========================================================
   SERVICE CARDS
========================================================= */

.problem-cards {
    position: relative;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 28px;

    margin-bottom: 80px;
}


/* =========================================================
   CARD
========================================================= */

.problem-card {
    position: relative;

    min-height: 265px;

    padding: 42px 42px 38px;

    box-sizing: border-box;

    background: rgba(255, 255, 255, .94);

    border-radius: 28px;

    box-shadow:
        0 18px 45px rgba(45, 45, 45, .07);

    transition:
        transform .45s cubic-bezier(.22, 1, .36, 1),
        box-shadow .45s ease;

    z-index: 1;
}


/* =========================================================
   STAGGERED CARDS
========================================================= */

.problem-card-1 {
    transform: translateY(0);
}

.problem-card-2 {
    transform: translateY(35px);
}

.problem-card-3 {
    transform: translateY(70px);
}


/* =========================================================
   CARD HOVER
========================================================= */

.problem-card:hover {
    transform: translateY(-10px);

    box-shadow:
        0 28px 60px rgba(45, 45, 45, .12);

    z-index: 5;
}

.problem-card-2:hover {
    transform: translateY(25px);
}

.problem-card-3:hover {
    transform: translateY(60px);
}


/* =========================================================
   CARD ICON
========================================================= */

.problem-card-icon {
    width: 70px;
    height: 70px;

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

    margin-bottom: 22px;

    border-radius: 50%;

    flex-shrink: 0;

    transition:
        transform .4s cubic-bezier(.22, 1, .36, 1);
}


/* Icon background colors */

.problem-icon-gray {
    background: #eeeeee;
}

.problem-icon-yellow {
    background: #f4d35e;
}

.problem-icon-purple {
    background: #6559ef;
}


/* Actual icon */

.problem-card-icon img {
    width: 75px;
    height: 75px;

    display: block;

    object-fit: contain;

    transition:
        transform .4s cubic-bezier(.22, 1, .36, 1);
}


/* Icon hover */

.problem-card:hover .problem-card-icon {
    transform: translateY(-4px) scale(1.06);
}

.problem-card:hover .problem-card-icon img {
    transform: scale(1.12);
}


/* =========================================================
   CARD HEADING
========================================================= */

.problem-card h3 {
    margin: 0 0 14px;

    color: #181818;

    font-family: "DM Sans", sans-serif;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 700;

    letter-spacing: -.4px;
}


/* =========================================================
   CARD DESCRIPTION
========================================================= */

.problem-card p {
    margin: 0;

    max-width: 300px;

    color: #8a8a8a;

    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 400;
}


/* =========================================================
   BOTTOM AREA
========================================================= */

.problem-bottom {
    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 70px;

    margin-top: 75px;
}


/* =========================================================
   COMBINED IMAGE AREA
========================================================= */

.problem-images {
    position: relative;

    width: 100%;
    min-height: 570px;

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

    overflow: visible;
}


/* =========================================================
   SINGLE COMBINED IMAGE
========================================================= */

.problem-image {
    width: 700px;
    max-width: none;

    height: auto;

    display: block;

    object-fit: contain;

    object-position: center;

    flex-shrink: 0;

    border: 0;

    transition:
        transform .5s cubic-bezier(.22, 1, .36, 1);
}


/* Image hover */

.problem-images:hover .problem-image {
    transform: scale(1.025);
}


/* =========================================================
   BOTTOM CONTENT
========================================================= */

.problem-content {
    position: relative;

    max-width: 570px;

    z-index: 2;
}

.problem-content h2 {
    margin: 0 0 25px;

    color: #151515;

    font-family: "DM Sans", sans-serif;
    font-size: 46px;
    line-height: 1.08;
    font-weight: 700;

    letter-spacing: -1.5px;
}

.problem-content p {
    margin: 0 0 28px;

    max-width: 550px;

    color: #666666;

    font-family: "Poppins", sans-serif;
    font-size: 18px;
    line-height: 1.65;
    font-weight: 400;
}


/* =========================================================
   LEARN MORE LINK
========================================================= */

.problem-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding-bottom: 7px;

    color: #151515;

    border-bottom: 2px solid #6259ff;

    text-decoration: none;

    font-family: "DM Sans", sans-serif;
    font-size: 17px;
    line-height: 1;
    font-weight: 700;

    transition:
        color .3s ease,
        gap .3s ease,
        transform .3s ease;
}

.problem-link span {
    font-size: 21px;
    line-height: 1;
}

.problem-link:hover {
    color: #6259ff;
    gap: 11px;
    transform: translateY(-2px);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .problem-section {
        padding: 85px 25px 100px;
    }

    .problem-container {
        max-width: 900px;
    }

    .problem-header {
        gap: 50px;
    }

    .problem-title {
        font-size: 42px;
    }

    .problem-intro {
        font-size: 16px;
    }

    .problem-cards {
        gap: 22px;
    }

    .problem-card {
        min-height: 260px;
        padding: 35px 32px;
    }

    .problem-card-icon {
        width: 55px;
        height: 55px;
    }

    .problem-card-icon img {
        width: 32px;
        height: 32px;
    }

    .problem-card h3 {
        font-size: 19px;
    }

    .problem-card p {
        font-size: 15px;
    }

    .problem-bottom {
        gap: 35px;
    }

    .problem-images {
        min-height: 500px;
    }

    .problem-image {
        width: 600px;
    }

    .problem-content h2 {
        font-size: 40px;
    }

    .problem-content p {
        font-size: 16px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 750px) {

    .problem-section {
        padding: 70px 20px 90px;
    }

    .problem-container {
        max-width: 550px;
    }

    .problem-header {
        grid-template-columns: 1fr;

        gap: 20px;

        margin-bottom: 45px;
    }

    .problem-title {
        font-size: 36px;
        line-height: 1.1;
    }

    .problem-intro {
        margin-top: 0;

        font-size: 16px;
        line-height: 1.55;
    }

    .problem-intro br {
        display: none;
    }

    .problem-star {
        display: none;
    }


    /* Cards */

    .problem-cards {
        grid-template-columns: 1fr;

        gap: 25px;

        margin-bottom: 50px;
    }

    .problem-card {
        min-height: 250px;

        padding: 32px 28px;

        border-radius: 25px;
    }

    .problem-card-1,
    .problem-card-2,
    .problem-card-3 {
        transform: none;
    }

    .problem-card:hover,
    .problem-card-2:hover,
    .problem-card-3:hover {
        transform: translateY(-7px);
    }

    .problem-card-icon {
        width: 58px;
        height: 58px;

        margin-bottom: 20px;
    }

    .problem-card-icon img {
        width: 34px;
        height: 34px;
    }

    .problem-card h3 {
        font-size: 21px;
    }

    .problem-card p {
        max-width: 100%;

        font-size: 15px;
        line-height: 1.55;
    }


    /* Bottom */

    .problem-bottom {
        grid-template-columns: 1fr;

        gap: 45px;

        margin-top: 30px;
    }

    .problem-images {
        min-height: auto;

        width: 100%;

        justify-content: center;

        overflow: visible;
    }

    .problem-image {
        width: 100%;
        max-width: 650px;

        height: auto;
    }

    .problem-content {
        max-width: 100%;
    }

    .problem-content h2 {
        font-size: 36px;
        line-height: 1.1;
    }

    .problem-content p {
        font-size: 16px;
        line-height: 1.6;
    }

    .problem-link {
        font-size: 16px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 450px) {

    .problem-section {
        padding: 60px 15px 75px;
    }

    .problem-title {
        font-size: 31px;
        letter-spacing: -1px;
    }

    .problem-intro {
        font-size: 15px;
    }

    .problem-card {
        min-height: 230px;

        padding: 28px 24px;

        border-radius: 22px;
    }

    .problem-card-icon {
        width: 54px;
        height: 54px;
    }

    .problem-card-icon img {
        width: 31px;
        height: 31px;
    }

    .problem-card h3 {
        font-size: 20px;
    }

    .problem-card p {
        font-size: 14px;
    }

    .problem-image {
        width: 100%;
        max-width: 100%;
    }

    .problem-content h2 {
        font-size: 31px;
    }

    .problem-content p {
        font-size: 15px;
    }
}