/* Main section styles */
.peopleSay-section {
    padding: var(--sf-spacing-2xl) 0;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: var(--sf-spacing-lg);
    padding-right: var(--sf-spacing-lg);
    will-change: transform;
    contain: content;
    -webkit-font-smoothing: antialiased;
}

/* Header styles */
.peopleSay-header {
    text-align: center;
    margin-bottom: var(--sf-spacing-xl);
}

.peopleSay-header h2 {
    font-size: var(--ssbond-d-h2);
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: var(--ssbond-d-b2);
    margin-top: var(--ssbond-space-t1);
}

.peopleSay-header p {
    font-size: var(--sf-text-lg);
    color: var(--sf-gray);
}

/* Slider styles */
.peopleSay-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    
}

.peopleSay-cards {
    display: flex;
    gap: var(--sf-spacing-lg);
    overflow-x: auto;
    padding-bottom: var(--sf-spacing-md);
    -webkit-overflow-scrolling: touch;
}
.peopleSay-cards-single{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); /* Adjust min card width */
    gap: 25px;
    padding: 20px 0;
    width: 100%;
    overflow: hidden;
}

/* Card styles */
.peopleSay-card {
    flex: 0 0 calc(25% + 70px);  /* Increase width */
    border-radius: 10px;
    overflow: hidden;
    background: var(--ssbond-whiteGray);
    cursor: pointer;
}

.peopleSay-cards::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Opera */
}

.peopleSay-card:hover {
    /* transform: translateY(-5px); */
}

.peopleSay-card img {
    width: 100%;
    /* max-height: 350px; */
    max-height: 250px;
    object-fit: fill;
}

.peopleSay-content {
    padding: var(--sf-spacing-md);
}

.peopleSay-header-row {
    display: flex;
    align-items: center;
    gap: var(--sf-spacing-md); /* Spacing between image and text */
}

.peopleSay-circle-image {
    width: 60px; /* Decreased size of the circle */
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0; /* Prevent shrinking */
}

.peopleSay-circle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Keep the image inside the circle */
}

.peopleSay-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1; /* Text takes available space */
}

.peopleSay-text h3 {
    font-size: var(--ssbond-d-h3);
    font-weight: 600;
    color: #1d1d1f;
    margin: 0; /* Remove auto margins */
    line-height: 1.2;
    max-width: 90%;
    margin-bottom: var(--ssbond-d-b1);
    margin-top: 3%;
}

.peopleSay-card-buttons .peopleSay-card-text,
.peopleSay-card-buttons .peopleSay-card-video {
    padding: 8px 24px;
    border-radius: 20px;
    border: 1px solid var(--ssbond-blue);
    background: transparent;
    color: var(--ssbond-black);
    font-size: var(--ssbond-d-btn);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--ssbond-family);
    font-weight: var(--ssbond-d-btn-weight);
}

.peopleSay-card-buttons .peopleSay-card-text:hover,
.peopleSay-card-buttons .peopleSay-card-video:hover {
    background: var(--ssbond-primaryLinear);
    color: var(--ssbond-white);
}

.peopleSay-card-buttons .peopleSay-card-text.active,
.peopleSay-card-buttons .peopleSay-card-video.active {
    background: var(--ssbond-primaryLinear);
    color: var(--ssbond-white);
}

.peopleSay-text p {
    font-size: var(--ssbond-d-desc3);
    color: #86868b;
    line-height: 1.3;
    margin: 0;
    max-width: 100%;
    margin-bottom: var(--ssbond-d-b1);
    text-align: left;
}

.peopleSay-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0; /* Prevent shrinking */
}

.peopleSay-card-description {
    border-bottom: 1px solid gainsboro; /* Remove any border */

    padding: 10px; /* Add some padding if needed */
    height: 150px; /* Allow the height to adjust based on content */
    font-size: 15px;
    line-height: 1.2;
}

.peopleSay-card-description p {
    margin: 0; /* Ensure no extra margin around the paragraph */
}

/* Single-row header styles */
.peopleSay-header-row-single {
    display: flex;
    justify-content: center;
    align-items: center;
}

.peopleSay-text {
    text-align: left;
}

.peopleSay-content h3 {
    font-size: var(--sf-text-lg);
    font-weight: 600;
    margin: 0;
}

.peopleSay-description {
    font-size: var(--sf-text-base);
    color: var(--sf-gray);
    margin-top: var(--sf-spacing-sm);
    white-space: wrap;
}

.peopleSay-buttons {
    display: flex;
    justify-content: flex-end;
}

.peopleSay-buttons .btn {
    padding: var(--sf-spacing-sm) var(--sf-spacing-lg);
    border-radius: 20px;
    border: 1px solid var(--ssbond-blue);
    color: var(--ssbond-black);
    background: var(--ssbond-white);
    font-size: var(--sf-text-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.peopleSay-buttons .btn:hover {
    background: var(--ssbond-primaryLinear);
    color: var(--ssbond-white);
}

/* Dots navigation */
.peopleSay-dots {
    display: flex;
    justify-content: center;
    gap: var(--sf-spacing-xs);
    margin-top: var(--sf-spacing-lg);
}

.peopleSay-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.peopleSay-dot.active {
    background: var(--ssbond-blue);
}

/* View All button */
.peopleSay-viewall-div {
    display: flex;
    justify-content: end;
}

.peopleSay-viewall {
    display: block;
    padding: var(--sf-spacing-sm) var(--sf-spacing-lg);
    border-radius: 20px;
    border: 1px solid var(--ssbond-blue);
    font-size: var(--sf-text-base);
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--ssbond-black);
}

.peopleSay-viewall:hover {
    background: var(--ssbond-primaryLinear);
    color: var(--ssbond-white);
}

/* Responsive media queries */
@media (max-width: 1200px) {
    .peopleSay-card {
        flex: 0 0 calc(33.333% - 17px); /* Adjust card width for medium screens */
    }
}

@media (max-width: 992px) {
    .peopleSay-card {
        flex: 0 0 calc(50% - 13px); /* Adjust card width for smaller screens */
    }
}

@media (max-width: 768px) {
    .peopleSay-card {
        flex: 0 1 calc(100% - 20px); /* Cards take full width on very small screens */
    }

    .peopleSay-header h2 {
        font-size: var(--ssbond-d-h4); /* Adjust heading size for small screens */
    }

    .peopleSay-header p {
        font-size: var(--sf-text-md); /* Adjust paragraph size for small screens */
    }

    .peopleSay-card img {
        max-height: 250px; /* Adjust image size */
    }

    .peopleSay-circle-image {
        width: 50px; /* Smaller circle for smaller screens */
        height: 50px;
    }

    .peopleSay-header-row {
        flex-direction: row; /* Stack elements vertically on small screens */
        gap: var(--sf-spacing-xs);; /* Center text */
    }
    .peopleSay-card-description {
        font-size: 14px;
        line-height: 1.3;
        
    }
}

@media (max-width: 576px) {
    .peopleSay-section{
        width: calc(100% - (-13px));
    }
    .peopleSay-card {
        flex: 0 0 calc(100% - 67px); /* Cards take full width on mobile */
    }
    .peopleSay-slider{
        margin-left: -5px;
    }
    .peopleSay-section{
        padding-left: 20px;
        margin-top: -40px;
    }
    .peopleSay-header h2 {
        font-size: var(--ssbond-d-h4); /* Smaller font size for very small screens */
    }

    .peopleSay-text h3 {
        font-size: var(--ssbond-m-h3); /* Adjust font size for titles */
    }

    .peopleSay-description {
        font-size: var(--sf-text-sm); /* Adjust font size for descriptions */
    }

    .peopleSay-header-row {
        flex-direction: row;
        gap: var(--sf-spacing-xs);
    }
    .peopleSay-text p{
        font-size: var(--ssbond-m-desc3);
        margin-top: 5px;
    }
    .peopleSay-card img {
        max-height: 200px; /* Further reduce image size */
    }

    .peopleSay-circle-image {
        width: 40px; /* Even smaller circle for tiny screens */
        height: 40px;
        margin-right: 3% ;
    }
    .peopleSay-buttons {
        /* Further reduce padding and space for very small screens */
        padding: 3px; /* Even smaller padding inside the button container */
        gap: 8px; /* Reduce gap between buttons */
    }

    .peopleSay-buttons .btn {
        /* Even smaller button adjustments */
        padding: 0px 0px; /* Further reduce padding */
        font-size: var(--sf-text-sm); /* Smaller font size */
        height: 30px; /* Smaller button height */
        min-width: 80px; /* Smaller minimum width */
    }

    .peopleSay-buttons .btn:hover {
        background: rgba(0, 113, 227, 0.1);
        color: white;
    }
    .peopleSay-card-buttons .peopleSay-card-text, .peopleSay-card-buttons .peopleSay-card-video, .peopleSay-viewall{
        font-size: var(--ssbond-m-btn-card);
        padding: 6px 12px;
    }
}
