.they-said {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: #dcb77c;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4rem);
}

.they-said__container {
    width: 100%;
    max-width: 1722px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 4vw, 4rem) clamp(2rem, 5vw, 6rem);
}

.they-said__title {
    color: #253839;
    font-family: 'Adamina', serif;
    font-size: clamp(3rem, 5vw, 6.5625rem);
    font-weight: 400;
    letter-spacing: 1.2px;
    text-align: center;
    margin-bottom: clamp(4rem, 8vw, 8rem);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    -webkit-transform: translateY(10px);
    -webkit-transition: opacity 0.5s ease, -webkit-transform 0.5s ease;
}

.they-said__title.animate {
    opacity: 1;
    transform: translateY(0);
    -webkit-transform: translateY(0);
}

.they-said__content {
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    gap: clamp(4rem, 8vw, 10rem);
}

.they-said__row {
    display: flex;
    justify-content: center;
    gap: clamp(4rem, 8vw, 10rem);
    width: 100%;
}

.they-said__item {
    flex: 1;
    max-width: calc(50% - clamp(2rem, 4vw, 5rem));
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.5s ease;
    -webkit-transform: translateX(-10px);
    -webkit-transition: all 0.5s ease;
}

.they-said__image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: clamp(2rem, 4vw, 4rem);
    transition: all 0.3s ease;
    overflow: hidden;
}

.they-said__image {
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);
    max-width: 400px;
}

.they-said__link {
    display: block;
    text-decoration: none;
    width: 100%;
}

.they-said__image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.they-said__link:hover .they-said__image-wrapper {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 56, 57, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.they-said__link:hover .they-said__image-wrapper::before {
    opacity: 1;
}

.they-said__link:hover .they-said__image {
    transform: scale(1.1);
}

.they-said__item[data-animate="fade-right"].animate {
    opacity: 1;
    transform: translateX(0);
}

.they-said__item[data-animate="fade-left"] {
    transform: translateX(10px);
}

.they-said__item[data-animate="fade-left"].animate {
    opacity: 1;
    transform: translateX(0);
}

/* Safari-specific fixes */
@supports (-webkit-touch-callout: none) {
    .they-said {
        min-height: -webkit-fill-available;
    }
    
    .they-said__content {
        gap: clamp(3rem, 6vw, 8rem);
    }
    
    .they-said__row {
        gap: clamp(3rem, 6vw, 8rem);
    }
}

/* Tablet breakpoint */
@media (max-width: 63.9375em) {
    .they-said__container {
        padding: clamp(1.5rem, 3vw, 3rem);
    }
    
    .they-said__title {
        font-size: clamp(2.5rem, 6vw, 4rem);
        margin-bottom: clamp(3rem, 6vw, 6rem);
    }
    
    .they-said__content {
        gap: clamp(3rem, 6vw, 6rem);
    }
    
    .they-said__row {
        gap: clamp(3rem, 6vw, 6rem);
    }
    
    .they-said__image-wrapper {
        aspect-ratio: 3/2;
        padding: clamp(1.5rem, 3vw, 3rem);
    }
}

/* Mobile phones */
@media (max-width: 47.9375em) {
    .they-said {
        padding: 2rem 1rem;
    }
    
    .they-said__container {
        padding: 1rem;
    }
    
    .they-said__title {
        font-size: clamp(2rem, 5vw, 2.5rem);
        margin-bottom: 2rem;
    }
    
    .they-said__content {
        gap: 2rem;
    }
    
    .they-said__row {
        gap: 1rem;
    }
    
    .they-said__item {
        max-width: calc(50% - 0.5rem);
    }
    
    .they-said__image-wrapper {
        padding: 1.5rem;
    }
}

/* Small mobile devices */
@media (max-width: 375px) {
    .they-said {
        padding: 1rem;
    }
    
    .they-said__container {
        padding: 0.5rem;
    }
    
    .they-said__image-wrapper {
        padding: 1rem;
    }
    
    .they-said__image {
        width: 90%;
        height: 90%;
    }
}
/* RTL Support */
[dir="rtl"] .they-said__title {
    text-align: right;
    font-family: 'Adamina', 'Cairo', serif;
}

@media screen and (min-width: 1025px) {
    [dir="rtl"] .they-said__container {
        direction: rtl;
    }
}