/* Main section styles */
.peopleSayPage-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 */
.peopleSayPage-header {
    text-align: center;
    margin-bottom: var(--sf-spacing-xl);
}

.peopleSayPage-header h2 {
    font-size: var(--sf-text-2xl);
    margin-bottom: var(--sf-spacing-sm);
    font-weight: 600;
}

.peopleSayPage-header p {
    font-size: var(--sf-text-lg);
    color: var(--sf-gray);
}

/* Slider styles */
.peopleSayPage-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    
}

.peopleSayPage-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); /* Adjust min card width */
    gap: 25px;
    padding: 20px 0;
    width: 100%;
    overflow: hidden;
}
.peopleSayPage-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 */
.peopleSayPage-card {
    flex: 0 0 calc(25% + 70px);  /* Increase width */
    border-radius: 10px;
    overflow: hidden;
    background: var(--ssbond-whiteGray);
    box-shadow: var(--sf-shadow-md);
    transition: transform 0.3s ease;
    cursor: pointer;
}
.peopleSayPage-cards:active {
    cursor: grabbing;
}
.peopleSayPage-cards::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Opera */
}

.peopleSayPage-card:hover {
    transform: translateY(-5px);
}

.peopleSayPage-card img {
    width: 100%;
    /* max-height: 350px; */
    max-height: 250px;
    object-fit: fill;
}

.peopleSayPage-content {
    padding: var(--sf-spacing-md);
}

.peopleSayPage-header-row {
    display: flex;
    align-items: center;
    gap: var(--sf-spacing-md); /* Spacing between image and text */
}

.peopleSayPage-circle-image {
    width: 60px; /* Decreased size of the circle */
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0; /* Prevent shrinking */
}

.peopleSayPage-circle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Keep the image inside the circle */
}

.peopleSayPage-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1; /* Text takes available space */
}

.peopleSayPage-text h3 {
    font-size: var(--sf-text-base); /* Smaller font size for h3 */
    font-weight: 600;
    margin: 0;
    line-height: 1.2; /* Adjust spacing between lines */
    white-space: nowrap;
}

.peopleSayPage-card-buttons .peopleSayPage-card-text,
.peopleSayPage-card-buttons .peopleSayPage-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-desc2);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--ssbond-family);
    font-weight: var(--ssbond-d-btn-weight);
}

.peopleSayPage-card-buttons .peopleSayPage-card-text:hover,
.peopleSayPage-card-buttons .peopleSayPage-card-video:hover {
    background: var(--ssbond-primaryLinear);
    color: var(--ssbond-white);
}

.peopleSayPage-card-buttons .peopleSayPage-card-text.active,
.peopleSayPage-card-buttons .peopleSayPage-card-video.active {
    background: var(--ssbond-primaryLinear);
    color: var(--ssbond-white);
}

.peopleSayPage-text p {
    font-size: var(--sf-text-sm); /* Smaller font size for p */
    color: var(--sf-gray);
    margin: 0; /* Remove extra margin */
    line-height: 1.2; /* Align with h3 */
}

.peopleSayPage-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0; /* Prevent shrinking */
}

.peopleSayPage-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 */
}

.peopleSayPage-card-description p {
    margin: 0; /* Ensure no extra margin around the paragraph */
}

/* Single-row header styles */
.peopleSayPage-header-row-single {
    display: flex;
    justify-content: center;
    align-items: center;
}

.peopleSayPage-text {
    text-align: left;
}

.peopleSayPage-content h3 {
    font-size: var(--sf-text-lg);
    font-weight: 600;
    margin: 0;
}

.peopleSayPage-description {
    font-size: var(--sf-text-base);
    color: var(--sf-gray);
    margin-top: var(--sf-spacing-sm);
    white-space: wrap;
}

.peopleSayPage-buttons {
    display: flex;
    justify-content: flex-end;
}

.peopleSayPage-buttons .btn {
    padding: var(--sf-spacing-sm) var(--sf-spacing-lg);
    border-radius: 20px;
    border: 1px solid var(--ssbond-blue);
    background: transparent;
    color: var(--ssbond-black);
    font-size: var(--sf-text-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.peopleSayPage-buttons .btn:hover {
    background: rgba(0, 113, 227, 0.1);
}

/* Dots navigation */
.peopleSayPage-dots {
    display: flex;
    justify-content: center;
    gap: var(--sf-spacing-xs);
    margin-top: var(--sf-spacing-lg);
}

.peopleSayPage-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.peopleSayPage-dot.active {
    background: var(--ssbond-blue);
}

/* View All button */
.peopleSayPage-viewall-div {
    display: flex;
    justify-content: end;
}

.peopleSayPage-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);
}

.peopleSayPage-viewall:hover {
    background: var(--ssbond-primaryLinear);
    color: var(--ssbond-white);
}

/* Responsive media queries */
@media (max-width: 1200px) {
    .peopleSayPage-card {
        flex: 0 0 calc(33.333% - 17px); /* Adjust card width for medium screens */
    }
    .peopleSayPage-cards{
        grid-template-columns: repeat(3, 1fr);
        width: calc(100% - 80px);
    }
}

@media (max-width: 992px) {
    .peopleSayPage-card {
        flex: 0 0 calc(50% - 13px); /* Adjust card width for smaller screens */
    }
    .peopleSayPage-cards{
        grid-template-columns: repeat(2, 1fr);
        width: calc(100% - 60px);
    }
}

@media (max-width: 768px) {
    .peopleSayPage-card {
        flex: 0 0 calc(100% - 20px); /* Cards take full width on very small screens */
    }
    .peopleSayPage-cards{
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        gap: 20px;
        margin-top: var(--ssbond-space-t11);
    }
    .peopleSayPage-header h2 {
        font-size: var(--sf-text-xl); /* Adjust heading size for small screens */
    }

    .peopleSayPage-header p {
        font-size: var(--sf-text-md); /* Adjust paragraph size for small screens */
    }

    .peopleSayPage-card img {
        max-height: 250px; /* Adjust image size */
    }

    .peopleSayPage-circle-image {
        width: 50px; /* Smaller circle for smaller screens */
        height: 50px;
    }

    .peopleSayPage-header-row {
        flex-direction: column; /* Stack elements vertically on small screens */
        text-align: center; /* Center text */
    }
}

@media (max-width: 576px) {
    .peopleSayPage-card {
        flex: 0 0 calc(100% - 25px); /* Cards take full width on mobile */
    }
    .peopleSayPage-cards{
        grid-template-columns: 1fr;
        width: 100%;
    }
    .peopleSayPage-header h2 {
        font-size: var(--ssbond-d-h4); /* Smaller font size for very small screens */
        margin-top: var(--ssbond-space-t7);
        margin-bottom: var(--ssbond-space-t12);
    }

    .peopleSayPage-text h3 {
        font-size: var(--sf-text-sm); /* Adjust font size for titles */
    }

    .peopleSayPage-description {
        font-size: var(--sf-text-sm); /* Adjust font size for descriptions */
    }

    .peopleSayPage-header-row {
        flex-direction: row;
        gap: var(--sf-spacing-xs);
    }

    .peopleSayPage-card img {
        max-height: 200px; /* Further reduce image size */
    }

    .peopleSayPage-circle-image {
        width: 40px; /* Even smaller circle for tiny screens */
        height: 40px;
        margin-right: 3% ;
    }
    .peopleSayPage-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 */
    }

    .peopleSayPage-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 */
    }

    .peopleSayPage-buttons .btn:hover {
        background: rgba(0, 113, 227, 0.1);
        color: var(--ssbond-white);
    }
    .peopleSayPage-card-buttons .peopleSayPage-card-text,
.peopleSayPage-card-buttons .peopleSayPage-card-video {
    font-size: var(--ssbond-m-btn-card);
        padding: 6px 12px;
}
.peopleSayPage-card-description p{
    font-size: 14px;
    line-height: 1.3;
}
}
