@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;900&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

.opencv-ct-testimonial p {
    font-size: clamp(13px, 14px, 15px);
    font-weight: 500;
}

.opencv-ct-testimonial span {
    font-size: clamp(10px, 11px, 12px);
    font-weight: 400;
    color: #000;
}

.opencv-ct-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.opencv-ct-testimonial-hero-section {
    text-align: center;
}

.opencv-ct-testimonial-heading-container h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.opencv-ct-testimonial {
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 25px;
    padding: 15px 15px;
    border-radius: 20px;
    text-align: left;
    height: fit-content;
    width: calc(32% - 16px);
    box-sizing: border-box;
    break-inside: avoid;
    transition: transform 0.2s ease;
    padding-bottom: 0;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.opencv-ct-testimonial:hover {
    transform: translateY(-5px);
}

@media (max-width: 1024px) {
    .opencv-ct-testimonial {
        width: 48%;
    }
}

@media (max-width: 480px) {
    .opencv-ct-testimonial {
        width: 100%;
    }
}

.opencv-ct-testimonial-video-container {
    position: relative;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    width: 100%;
    margin-bottom: 10px;
}

.opencv-ct-testimonial-video-container iframe {
    position: absolute;
    width: 100%;
    max-width: 560px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin-bottom: 15px;
}

.opencv-ct-testimonial-iframe-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
}

.opencv-ct-testimonial-play-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
    align-content: center;
}

.opencv-ct-testimonial-play-icon:before {
    transition: all 0.3s ease-in-out;
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    color: #fff;
    width: 3rem;
    height: 3rem;
    background-repeat: no-repeat !important;
    background: url('https://opencv.org/university/wp-content/uploads/sites/4/2024/07/play.png');
    background-size: contain;
    right: 0;
    margin: auto;
    align-content: center;
    bottom: 0;
}

.opencv-ct-testimonial-play-icon:hover:before {
    transform: scale(1.2);
}

.opencv-ct-testimonial-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: none;
}

.opencv-ct-testimonial-photo {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%!important;
    margin-bottom: 10px;
    object-fit: cover;
}

.opencv-ct-testimonial-social-icons a {
    display: inline-block;
    width: clamp(1.3rem, 2vw, 1.5rem);
    height: clamp(1.3rem, 2vw, 1.5rem);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.opencv-ct-testimonial-social-icons a[href*="linkedin.com"] {
    background-image: url('images/LinkedIn_logo_initials.png');
}

.opencv-ct-testimonial-social-icons a[href*="facebook.com"] {
    background-image: url('images/Facebook_logo.png');
}

.opencv-ct-testimonial-social-icons a[href*="twitter.com"] {
    background-image: url('images/Twitter_logo.png');
}

.opencv-ct-testimonial h3 {
    display: flex;
    font-size: clamp(14px, 16px, 18px);
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 0;
    flex-direction: column;
    padding: 0px!important;
}

.opencv-ct-testimonial h3::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f10d";
    color: #138dff;
    font-size: 1.5rem;
}

.opencv-ct-testimonial p {
    color: #333;
    margin-top: 0px;
    margin-bottom: 10px;
}

.opencv-ct-testimonial .opencv-ct-testimonial-row:last-child {
    background-color: #d6ebff;
    width: calc(100% + 32px);
    margin-left: -16px;
    padding: 10px 16px;
    align-items: center;
  background-color: #d6ebff;
  width: calc(100% + 32px);
  margin-left: -16px;
  padding: 10px 16px;
  align-items: center;
}

.opencv-ct-testimonial-scroll {
    white-space: wrap;
    width: 100%;
    height: 100%;
    max-height: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.opencv-ct-testimonial-scroll.opencv-ct-expanded {
    white-space: normal;
    width: auto;
    max-height: 185px;
    overflow-y: auto;
}

.opencv-ct-testimonial a {
    display: inline-block;
    margin-top: 0px;
    color: #007BFF;
    text-decoration: none;
}

.opencv-ct-testimonial a:hover {
    text-decoration: underline;
}

.opencv-ct-testimony-img {
    width: 100%;
    margin-bottom: 10px;
}

.opencv-ct-read-more {
    font-size: clamp(0.8rem, 0.9rem, 1rem);
    margin-bottom: 10px;
    color: #007BFF;
    cursor: pointer;
}

.opencv-ct-testimonial-social-icons {
    position: absolute;
    right: -5px;
    bottom: -10px;
}

.opencv-ct-testimonial-social-icons a {
    font-size: 20px;
    text-decoration: none;
    color: #0073b1;
}

.opencv-ct-testimonial-social-icons a:hover {
    color: #138dff;
}

.opencv-ct-testimonial-social-icons img {
    width: 24px;
    height: 24px;
}

.opencv-ct-testimonial-image-container {
    position: relative;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: #f0f0f0;
}

.opencv-ct-testimonial-name {
    font-weight: 600!important;
    font-size: clamp(12px, 13px, 14px)!important;
}

.opencv-ct-role {
    line-height: 18px !important;
    display: block;
    font-size: clamp(10px, 11px, 12px);
}

.opencv-ct-testimonial-location {
    color: #138dff !important;
    font-weight: 700!important;
    line-height: 18px !important;
    display: block;
    font-size: clamp(10px, 11px, 12px)!important;
}

.opencv-ct-testimonial-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0px;
}

.opencv-ct-col-3 { width: 25%; }
.opencv-ct-col-9 { width: 75%; }
.opencv-ct-col-md-3 { width: 25%; }
.opencv-ct-col-md-9 { width: 75%; }

@media (min-width: 768px) {
    .opencv-ct-col-md-3 { width: 25%; }
    .opencv-ct-col-md-9 { width: 75%; }
}

.opencv-ct-linkedin-group {
    display: flex;
    justify-content: flex-end;
}