.testimonial-section {
    margin-top: 5%;
    padding: 60px 0px !important;
    text-align: center;
}

/* Testimonial Grid */
.testimonial-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center;
    align-items: stretch; /* Ensures all cards stretch to the tallest one */
    max-width: 1200px;
    margin: auto;
    cursor: pointer;
}


/* Testimonial Card */
.testimonial-card {
    flex: 1; /* Ensures all cards take the same height */
    background-color: #1a1a1a; /* Dark card */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border */
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease-in-out;
    position: relative;
}

/* Hover Effect */
.testimonial-card:hover {
    transform: translateY(-5px);
}

/* Circular Image Positioned Overlapping the Card */
.testimonial-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1a1a1a;
    padding: 5px;
}

/* Name */
.testimonial-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #f1f1f1;
    margin-top: 60px;
}

/* Title */
.testimonial-title {
    font-size: 0.9rem;
    font-weight: 400;
    color: #b0b0b0;
    margin-bottom: 15px;
}

/* Quote Text */
.testimonial-text {
    font-size: 0.9rem;
    font-weight: 300;
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Company Logo */
.company-logo {
    width: 60px;
    height: 50px;
    margin-top: 10px;
}


@media (max-width: 1024px) {
    .testimonial-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
        gap: 30px; /* Adjusted spacing for tablets */
    }
}

@media (max-width: 768px) {
    .testimonial-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px; /* Increased spacing between stacked cards */
    }
    .testimonial-card {
        width: 90%; /* Make cards take full width */
        margin-bottom: 35px; /* Added margin for spacing in column view */
    }
}