/* Service Problems Section */

.service-problems {
    padding: 60px 0;
    background-color: var(--white, #ffffff);
    color: var(--black22, #222);
    font-family: var(--font-family);
}

.service-problems__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-problems__title {
    margin: 0 0 10px;
    color: var(--black22, #222);
    font-family: var(--font-family);
    font-size: 28px;
    font-weight: 600;
    line-height: 120%;
    text-align: center;
}

.service-problems__count {
    display: block;
    text-align: center;
    margin-bottom: 40px;
    color: var(--gray66, #666);
    font-size: 14px;
    font-weight: 400;
}

.service-problems__grid {
    display: grid;
    gap: 24px;
}

.service-problems__card {
    background: var(--white, #ffffff);
    border: 1px solid var(--graye5, #e5e5e5);
    border-radius: 8px;
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-problems__card:hover {
    border-color: var(--primary-red, #CC2229);
    box-shadow: 0 4px 12px rgba(204, 34, 41, 0.1);
    transform: translateY(-2px);
}

.service-problems__icon {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--primary-red, #CC2229);
}

.service-problems__card-title {
    margin: 0 0 12px;
    color: var(--black22, #222);
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 500;
    line-height: 130%;
}

.service-problems__card-description {
    margin: 0;
    color: var(--gray66, #666);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 400;
    line-height: 150%;
    flex-grow: 1;
}

/* Mobile - 1 column */
@media (max-width: 743px) {
    .service-problems {
        padding: 40px 0;
    }

    .service-problems__container {
        padding: 0 15px;
    }

    .service-problems__grid {
        grid-template-columns: 1fr;
    }

    .service-problems__title {
        font-size: 24px;
    }

    .service-problems__card {
        padding: 20px;
    }

    .service-problems__icon {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .service-problems__card-title {
        font-size: 16px;
    }
}

/* Tablet - 2 columns */
@media (min-width: 744px) and (max-width: 1023px) {
    .service-problems__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-problems__title {
        font-size: 32px;
    }
}

/* Desktop - 3 columns */
@media (min-width: 1024px) {
    .service-problems__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .service-problems__title {
        font-size: 36px;
    }

    .service-problems__card {
        padding: 28px;
    }
}

/* Large Desktop - 4 columns if many problems */
@media (min-width: 1200px) {
    .service-problems__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Alternating Image/Text Layout */
.service-problems--alternating {
    padding: 80px 0;
    background-color: var(--white, #ffffff);
}

.service-problems--alternating .service-problems__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-problems--alternating .service-problems__header {
    text-align: center;
    margin-bottom: 60px;
}

.service-problems--alternating .service-problems__title {
    margin: 0 0 10px;
    color: var(--black22, #222);
    font-family: var(--font-family);
    font-size: 36px;
    font-weight: 600;
    line-height: 120%;
}

.service-problems--alternating .service-problems__count {
    display: inline-block;
    color: var(--gray66, #666);
    font-size: 14px;
    font-weight: 400;
}

.service-problems--alternating .service-problems__list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.service-problems--alternating .service-problems__item {
    display: flex;
    align-items: center;
    gap: 60px;
}

.service-problems--alternating .service-problems__image {
    flex: 0 0 50%;
    max-width: 50%;
}

.service-problems--alternating .service-problems__image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.service-problems--alternating .service-problems__content {
    flex: 1;
}

.service-problems--alternating .service-problems__question {
    margin: 0 0 20px;
    color: var(--black22, #222);
    font-family: var(--font-family);
    font-size: 28px;
    font-weight: 600;
    line-height: 130%;
}

.service-problems--alternating .service-problems__answer {
    color: var(--gray66, #666);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 160%;
}

.service-problems--alternating .service-problems__answer p {
    margin: 0 0 16px;
}

.service-problems--alternating .service-problems__answer p:last-child {
    margin-bottom: 0;
}

/* Alternating: Image on the right */
.service-problems__item--right {
    flex-direction: row-reverse;
}

/* Mobile: Stack vertically */
@media (max-width: 767px) {
    .service-problems--alternating {
        padding: 50px 0;
    }

    .service-problems--alternating .service-problems__header {
        margin-bottom: 40px;
    }

    .service-problems--alternating .service-problems__title {
        font-size: 24px;
    }

    .service-problems--alternating .service-problems__list {
        gap: 50px;
    }

    .service-problems--alternating .service-problems__item {
        flex-direction: column !important;
        gap: 30px;
    }

    .service-problems--alternating .service-problems__image {
        flex: 1;
        max-width: 100%;
    }

    .service-problems--alternating .service-problems__question {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .service-problems--alternating .service-problems__answer {
        font-size: 15px;
    }
}

/* Tablet: Reduce gaps */
@media (min-width: 768px) and (max-width: 1023px) {
    .service-problems--alternating {
        padding: 60px 0;
    }

    .service-problems--alternating .service-problems__header {
        margin-bottom: 50px;
    }

    .service-problems--alternating .service-problems__title {
        font-size: 30px;
    }

    .service-problems--alternating .service-problems__list {
        gap: 60px;
    }

    .service-problems--alternating .service-problems__item {
        gap: 40px;
    }

    .service-problems--alternating .service-problems__question {
        font-size: 24px;
    }
}

/* Desktop: Full layout */
@media (min-width: 1024px) {
    .service-problems--alternating .service-problems__item {
        min-height: 400px;
    }
    
    .service-problems--alternating .service-problems__image {
        min-height: 400px;
    }
    
    .service-problems--alternating .service-problems__image img {
        height: 100%;
        object-fit: cover;
    }
}
