/* Extracted from app/Views/frontend/services/view.php (base) during CSS refactor. */

.image-container {
        width: 655px;
        /* Ширина контейнера */
        height: 655px;
        /* Висота контейнера (та ж сама, що й ширина) */
        overflow: hidden;
        /* Обрізаємо зайве */
        position: relative;
    }

    .image-container img {
        width: 100%;
        /* Ширина зображення займає всю ширину контейнера */
        height: 100%;
        /* Висота зображення займає всю висоту контейнера */
        object-fit: cover;
        /* Обрізає зайве зображення, щоб воно покрило контейнер */
        object-position: center;
        /* Центрує зображення по центру контейнера */
    }


    /* Основні стилі секції FAQ */
    .faq-section {
        background-color: #f7f8fa;
        padding: 20px 5px;
    }

    .faq-section .container {
        margin: 0 auto;
    }

    /* Список FAQ */
    .faq-list {
        background-color: #fff;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

    .faq-item {
        border-top: 1px solid #ddd;
    }

    .faq-item:first-child {
        border-top: none;
    }

    .faq-question {
        width: 100%;
        text-align: left;
        padding: 10px 15px;
        font-size: 1.1em;
        font-weight: bold;
        color: #333;
        background-color: #f9f9f9;
        border: none;
        cursor: pointer;
    }

    .faq-question:hover {
        background-color: #f1f1f1;
    }

    .faq-answer {
        display: none;
        padding: 15px 20px;
        color: #666;
        font-size: 1em;
        line-height: 1.5;
    }

    .faq-answer p {
        margin: 0;
    }

    /* FAQ style override (card style like reference) */
    .faq-list {
        background: #f7f7f7;
        border: 1px solid #dedede;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: none;
    }

    .faq-item {
        border-top: 1px solid #dedede;
        background: #f7f7f7;
    }

    .faq-item:first-child {
        border-top: none;
    }

    .faq-question {
        width: 100%;
        text-align: left;
        padding: 26px 52px 20px 30px;
        font-size: clamp(15px, 1.1vw, 18px);
        line-height: 1.2;
        font-weight: 600;
        color: #0d0f12;
        background: transparent;
        border: none;
        cursor: pointer;
        position: relative;
    }

    .faq-question::after {
        content: '+';
        position: absolute;
        top: 50%;
        right: 32px;
        transform: translateY(-50%);
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: #16ad44;
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        font-weight: 700;
    }

    .faq-item.is-open .faq-question::after {
        content: '-';
    }

    .faq-answer {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding: 0 62px 0 30px;
        transition: max-height 0.28s ease, opacity 0.2s ease, padding 0.2s ease;
        display: block;
    }

    .faq-item.is-open .faq-answer {
        max-height: 500px;
        opacity: 1;
        padding: 0 62px 26px 30px;
    }

    .faq-answer p {
        margin: 0;
        font-size: clamp(14px, 1vw, 18px);
        line-height: 1.45;
        color: #111827;
    }

    @media (max-width: 991px) {
        .faq-question {
            padding: 16px 52px 16px 14px;
            font-size: 17px;
        }

        .faq-question::after {
            right: 16px;
            width: 30px;
            height: 30px;
            font-size: 18px;
        }

        .faq-answer {
            padding: 0 14px 0 14px;
        }

        .faq-item.is-open .faq-answer {
            padding: 0 14px 16px 14px;
        }

        .faq-answer p {
            font-size: 14px;
            line-height: 1.5;
        }
    }
