/* css/component/testimonials-section.css */

.testimonials-title {
    padding-top: 108px;
    color: var(--FOSS-Blue);
    font-weight: 600;
    font-size: 32px;
    line-height: 1.2;
}

.testimonials-grid {
    display: flex;
    padding-top: 40px;
    align-items: stretch;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

/* === СТИЛІ ДЛЯ КАРТОК-ПОСИЛАНЬ === */

.testimonial-card {
    /* Робимо посиланням блоковим елементом */
    display: flex;
    flex-direction: column;
    text-decoration: none; /* Прибираємо підкреслення */
    cursor: pointer;

    /* Розміри */
    min-width: 240px;
    flex-grow: 1;
    width: 237px;
    max-width: 290px;

    /* Анімація для Hover ефекту */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px; /* Щоб тінь гарно лягала */
}

/* Ефект наведення для звичайної картки */
.testimonial-card:hover {
    transform: translateY(-8px); /* Підняття картки вгору */
    /* Легка тінь при наведенні */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.testimonial-image {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    aspect-ratio: 0.783;
    margin-bottom: 10px;
    /* Додаткова анімація для картинки всередині (опціонально) */
    transition: transform 0.5s ease;
}

/* Легке збільшення картинки при наведенні на картку */
.testimonial-card:hover .testimonial-image img {
    transform: scale(1.03);
    transition: transform 0.5s ease;
}

.testimonial-bg {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.testimonial-overlay {
    aspect-ratio: 0.78;
    width: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
}

.testimonial-single {
    aspect-ratio: 0.79;
    width: 100%;
    border-radius: 12px;
    object-fit: contain;
}

.testimonial-category {
    margin-top: 9px;
    max-width: 304px;
    color: var(--FOSS-Blue-text);
    font-weight: 700;
    font-size: 12px;
    line-height: 1.6;
    padding: 0 0 0 8px;
}

.category-tag {
    display: inline-block;
}

.testimonial-name {
    margin-top: 9px;
    color: var(--FOSS-Blue);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    padding-left: 8px; /* Вирівнювання з категорією */
}

/* === СТИЛІ ДЛЯ КАРТКИ "ПЕРЕГЛЯНУТИ ВСІ" === */

.view-all-card {
    /* Flexbox для позиціювання */
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    text-decoration: none;
    cursor: pointer;

    border-radius: 12px;
    background-color: var(--brand-blue);

    /* Розміри */
    width: 290px;
    aspect-ratio: 0.783;
    flex-grow: 1;
    min-width: 240px;
    max-width: 290px; /* Обмежуємо ширину, щоб відповідала іншим карткам */

    padding: 32px 32px 24px 32px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;

    /* Анімація */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Ефект наведення для картки "Переглянути всі" */
.view-all-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 40, 90, 0.25); /* Тінь в колір бренду */
    /* Можна трохи освітлити фон при наведенні, якщо потрібно */
    /* background-color: #004eb0; */
}

/* Рух стрілки при наведенні */
.view-all-card:hover .arrow-icon {
    transform: translate(3px, -3px); /* Стрілка рухається вправо-вгору */
}

.view-all-content {
    max-width: 100%;
}

.view-all-title {
    margin: 0;
    color: var(--color-white);
    font-weight: 700;
    font-size: 32px;
    line-height: 1.2;
    text-align: left;
    font-family: var(--base-font-family);
}

.view-all-icon {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.arrow-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease; /* Плавний рух стрілки */
}

.view-all-overlay {
    display: none;
}

/* Адаптивність */
@media (max-width: 991px) {

    .testimonials-title {
        max-width: 100%;
        padding-top: 100px;
    }
    .view-all-title {
        font-size: 24px;
    }
    .view-all-card, .testimonial-card {
        width: 100%;
        max-width: 350px;
        aspect-ratio: auto;
    }
    .view-all-card {
        min-height: 200px;
        padding: 24px;
    }
}
@media (max-width: 770px) {
    .testimonials-grid {
        justify-content: center;
        gap: 20px;
    }
}