/* =====================================================
   PROBLEMS SECTION
   ===================================================== */

.cp-problems {
    padding: 180px 0 207px;
    background: #0B0D0F;
}

.cp-problems .cp-container{
    max-width: 1402px;
}

/* Heading */

.cp-problems__heading {
    margin: 0 auto 50px;
    font-family: var(--cp-font);
    font-size: 54px;
    line-height: 62px;
    font-weight: 400;
    letter-spacing: -0.009em;
    color: #F7F7F7;
    text-align: center;
    text-transform: none;
}

/* =====================================================
   SLIDER WRAPPER
   ===================================================== */

.cp-problems__slider {
    position: relative;
}

/* =====================================================
   DESKTOP GRID (≥ 769px)
   ===================================================== */

.cp-problems__track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

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

.cp-problems__card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 34px 30px;
    background: #1E1E1F;
    border-radius: 22px;
    min-height: 400px;
}

.cp-problems__card-top {
    flex: 1;
}

.cp-problems__card-title {
    display: inline-block;
    font-size: 18px;
    line-height: 26px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #FF7441;
}

.cp-problems__card-text {
    font-size: 18px;
    line-height: 24px;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: #F7F7F7;
}

/* Icon circle at bottom */

.cp-problems__card-bottom {
    margin-top: 40px;
}

.cp-problems__card-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 50px;
    height: 50px;
    overflow: hidden;
    border-radius: 50%;
    flex: 0 0 auto;
    -webkit-backdrop-filter: blur(4px) saturate(1.4);
    box-shadow: inset 1px 1.5px 0px -1px rgba(255, 255, 255, 0.60), inset -2px -2px 0px -2px rgba(255, 255, 255, 0.55), inset 0 0 12px 2px rgb(0 0 0 / 0%);
    background: linear-gradient(135deg, #f7f7f700, #F7F7F71A);
}

.cp-problems__card-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* Footer text */

.cp-problems__footer {
    margin-top: 52px;
    font-size: 24px;
    line-height: 28px;
    font-weight: 400;
    text-align: center;
    letter-spacing: 0.02em;
    color: #F7F7F7;
}

/* Mobile dots — hidden on desktop */

.cp-problems__dots {
    display: none;
}

/* =====================================================
   RESPONSIVE — tablet: 2 columns
   ===================================================== */

@media (max-width: 1024px) {
    .cp-problems__track {
        grid-template-columns: repeat(2, 1fr);
    }

    .cp-problems__card {
        min-height: 260px;
    }
}

/* =====================================================
   RESPONSIVE — mobile: touch slider
   ===================================================== */

@media (max-width: 768px) {
    .cp-problems {
        padding: 60px 0;
    }

    .cp-problems__heading {
        margin-bottom: 30px;
        text-align: center;
        font-size: 36px;
        line-height: 44px;
    }

    /* Turn track into horizontal scroll container */
    .cp-problems__slider {
        overflow: hidden;
    }

    .cp-problems__track {
        display: flex;
        gap: 0;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
        grid-template-columns: none;
    }

    .cp-problems__card {
        flex: 0 0 100%;
        width: 100%;
        min-height: 280px;
        border-radius: 16px;
        /* slight indent so cards look padded within slider */
        margin: 0 4px;
        flex: 0 0 calc(100% - 8px);
    }

    /* Dots navigation */
    .cp-problems__dots {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: 24px;
    }

    .cp-problems__dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(247, 247, 247, 0.2);
        border: none;
        cursor: pointer;
        padding: 0;
        transition: background 0.2s ease, width 0.2s ease;
        flex-shrink: 0;
    }

    .cp-problems__dot.is-active {
        background: var(--cp-accent, #FF9626);
        width: 20px;
        border-radius: 4px;
    }

    .cp-problems__footer {
        text-align: center;
        font-size: 20px;
        line-height: 28px;
        margin-top: 27px;
    }
}

@media (max-width: 480px) {
    .cp-problems__card {
        padding: 33px 30px;
        min-height: 400px;
    }

    .cp-problems__card-text {
        font-size: 18px;
        line-height: 26px;
    }
}
