/* Common Styling for Testimonials */
.ct-wrap{
  background: #fff;
    padding: 20px;
    margin: 2% auto;
    width: 96%;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.testimonial-item {
    /* padding: 15px; */
    /* border: 1px solid #ddd; */
    border-radius: 20px;
    /* background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    /* margin-bottom: 60px; */
    /* max-height: 320px; */
    height: auto;
}
.masonry-layout {
    display: flex;
    flex-wrap: wrap;
    margin-left: -20px;  /* Adjust based on your gutter value */
    margin-right: -20px; /* Adjust based on your gutter value */
    /* gap: 50px 0px; */
}
.star-rating input[type="radio"]{
  display: none !important;
}
/* .swiper-wrapper {
  gap: 5px;
} */
/* Testimonial Item Styles for Masonry */
.masonry-layout .testimonial-item {
    width: 100%;  /* Adjust to control the width of items */
    margin-left: 5px; /* Adjust based on your gutter value */
    margin-bottom: 5px; /* Adjust space between items */
    max-height: 530px;
}
/* .swiper-wrapper{
    top:60px;
     overflow: hidden; 
} */
.testimonial-image img {
    /* border-radius: 50%; */
    width: 200px;
    height: 200px;
    object-fit: cover;
    /* margin-bottom: 20px; */
}

.testimonial-content {
    text-align: center;
    min-width: 20px;
}

.testimonial-content h3, #design3-overflow h3 , .profile-info h3{
    margin: 10px 0;
    font-size: 1.0em;
    font-weight: bold;
    color: #333;
}

.testimonial-content .testimonial-position {
    font-size: 0.9em;
    color: #777;
}

.testimonial-content .testimonial-message {
    /* margin-top: 10px; */
    font-size: 0.8em;
    color: #555;
}

.testimonial-website{
    word-wrap: break-word !important;
}

.testimonial-content .testimonial-website a {
    color: #007bff;
    text-decoration: none;
    /* font-size: 0.8em; */
}
.testimonial-website a, .testimonial-msg p{
  font-size: 0.8em;
}
.testimonial-content .testimonial-website a:hover {
    text-decoration: underline;
}

/* Grid Layout */
.testimonial-grid {
    display: grid;
    gap: 20px;
}

.testimonial-grid .testimonial-item {
    text-align: center;
}

/* Masonry Layout */
.testimonial-masonry {
    display: grid;
    gap: 20px;
}

/* List Layout */
.testimonial-list {
    list-style: none;
    padding: 0;
    max-width: 100%;
}

.testimonial-list li {
    margin-bottom: 20px;
}



/* Swiper Container: Full-width and responsive */
.swiper-container {
    width: 80%; /* Full width of the parent container */
    max-width: 100%; /* Ensure no extra width */
    /* max-height: 100%; */
    overflow: hidden; /* Prevent horizontal scrolling */
    margin: 0 auto; /* Center align */
    position: relative; /* For arrow positioning */
    box-sizing: border-box; /* Account for padding and borders */
    height: 500px;
    padding-top: 50px;
}

/* Swiper Slide Styling */
.swiper-slide {
    display: flex; /* Flexbox for alignment */
    flex-direction: column; /* Stack content vertically */
    align-items: center; /* Center align items horizontally */
    text-align: center; /* Center text inside the slide */
    /* padding: 20px;  */
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
    border-radius: 10px; /* Rounded corners */
    /* background: #fff;  */
    margin: 0 10px; /* Add space between slides */
    box-sizing: border-box; /* Include padding in size */
}

.swiper-slide {
    margin: 0 !important; /* Remove extra margins */
    /* width: 100% !important;  */
}





.swiper-button-prev, 
.swiper-button-next {
    position: absolute; /* Position them over the slider */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Adjust for proper alignment */
  width: 45px;
  height: 45px;
  /* background: linear-gradient(135deg, #c3b5d2, #768195); */
  color: #fff; /* Arrow color */
  border-radius: 50%; /* Circular button */
  /* box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3); */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease-in-out; /* Smooth hover and click effects */
  
}

.swiper-button-prev::after {
    content: '\00AB' !important; /* Add << for the previous button */
    font-size: 40px;
    font-weight: bold;
    font-family: "Arial", sans-serif;
    margin-bottom: 7px;
  }
  .testimonial-msg::-webkit-scrollbar {
    width: 8px; /* Scrollbar width */
}
  .swiper-button-next::after {
    content: '\00BB' !important; /* Add >> for the next button */
    font-size: 40px;
    font-weight: bold;
    font-family: "Arial", sans-serif;
    margin-bottom: 7px;
  }

.swiper-button-prev:hover, 
.swiper-button-next:hover {
  /* transform: translateY(-2px) scale(1.1); Subtle hover effect */
  /* box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4); Increased shadow on hover */
}

.swiper-button-prev:active, 
.swiper-button-next:active {
  /* transform: translateY(0) scale(0.95); */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.swiper-button-prev::before, 
.swiper-button-next::before {
  content: '';
  position: absolute;
  width: 70px;
  height: 70px;
  /* background: radial-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)); Subtle glow */
  border-radius: 50%;
  top: -8px;
  left: -8px;
  z-index: -1; /* Behind the button */
  transition: all 0.3s ease-in-out; /* Glow animation */
}

.swiper-button-prev:hover::before, 
.swiper-button-next:hover::before {
  width: 80px;
  height: 80px;
  opacity: 0;
}

/* Swiper Pagination Dots */
.swiper-pagination {
    position: absolute; /* Position dots at the bottom of the slider */
    bottom: 10px; /* Adjust vertical position */
    width: 100%; /* Full width for centering */
    display: flex;
    justify-content: center; /* Center align dots */
    z-index: 5;
}

.swiper-pagination-bullet {
    width: 12px; /* Dot size */
    height: 12px;
    background: #ddd; /* Light grey dots */
    opacity: 1; /* Fully visible */
    margin: 0 5px; /* Space between dots */
    transition: background 0.3s ease;
    border-radius: 50%;
}

.swiper-pagination-bullet-active {
    background: #0073aa; /* Active dot color */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .swiper-slide {
        padding: 15px; /* Reduce padding for smaller screens */
        margin: 0 5px; /* Reduce space between slides */
    }

    

    .swiper-button-next,
    .swiper-button-prev {
        width: 30px; /* Smaller arrows for mobile */
        height: 30px;
    }
}










/* masonry */

.testimonial-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.testimonial-masonry .testimonial-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.testimonials-grid {
  display: grid ;
      grid-template-columns: repeat(auto-fit, minmax(40%, 1fr));
      gap: 40px 10px;
      margin: auto;
      max-width: 100%;
}

.testimonials-slider {
    display: flex;
    overflow: hidden;
}

.testimonials-slider .testimonial-item {
    flex: 0 0 100%; /* Full width for sliding */
}

.testimonials-masonry {
    column-count: 2;
    column-gap: 20px;
    max-width: 100%;
    
}

.testimonials-list {
    display: flex;
    flex-wrap: wrap;
    /* justify-content: center; */
    /* max-width: 80%; */
    margin: auto;
    gap:10px;
}
.testimonial-msg {
    background-image: url('https://www.transparenttextures.com/patterns/asfalt-light.png'); /* Subtle texture */
  }

.testimonials-list .testimonial-card{
  height: 425px;
  min-height: 425px;
}
/* star rating styles */



.star-rating {
    display: inline-block;
    direction:rtl !important;
    margin-left: 10px; /* Adjust space between label and stars */
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 30px;
    color: #ccc; /* Default star color (gray) */
    cursor: pointer;
    transition: color 0.2s ease;
}

.star-rating input:checked ~ label {
    color: #FFD700 !important; /* Gold color when checked */
}

.star-rating input:hover ~ label {
    color: #FFD700 !important; /* Gold color on hover */
}

.star-rating input:checked {
    color: #FFD700 !important; /* Make the selected star gold */
}

label[for="egsctp_rating"] {
    display: inline-block;
    margin-right: 10px; /* Space between label and rating stars */
}


.testimonial-rating {
    font-size: 1.2em;
    color: #f4b400 !important;
}

.testimonial-rating .star-filled {
    color: #f4b400 !important; /* Gold color for filled stars */
}

.testimonial-rating .star-empty {
    color: #ccc; /* Grey color for empty stars */
}


/* form style */

/* Styling the form container */
#egsctp_testimonial_form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

/* Styling the form labels */
#egsctp_testimonial_form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

/* Styling the input fields and textarea */
#egsctp_testimonial_form input[type="text"],
#egsctp_testimonial_form input[type="url"],
#egsctp_testimonial_form input[type="file"],
#egsctp_testimonial_form textarea,
#egsctp_testimonial_form input[type="date"],
#egsctp_testimonial_form #egsctp_dropdown{
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

/* Styling the textarea specifically */
#egsctp_testimonial_form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Styling the star rating container */
.star-rating {
    display: flex;
    justify-content:center;
    gap: 10px;
    margin-bottom: 15px;
}

/* Styling each star in the rating */
.star-rating label {
    font-size: 20px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating input[type="radio"]:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ffcc00;
}

/* Styling the submit button */
#egsctp_testimonial_form input[type="submit"] {
    display: block;
    width: 100%;
    padding: 10px;
    background: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

#egsctp_testimonial_form input[type="submit"]:hover {
    background: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    #egsctp_testimonial_form {
        padding: 15px;
    }

    .star-rating label {
        font-size: 18px;
    }
}


/* style for mosanry */

.testimonial-container {
    display: flex;
    flex-wrap: wrap;
    margin: auto;
    /* gap: 20px;
    padding: 20px; */
    max-width: 100%;
  }
  .testimonial-rating span{
    font-style: italic;
  }
  .masonry-layout .testimonial-item {
    /* background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
    position: relative;
    border-radius: 8px;
    /* overflow: hidden; */
  }
  
  .masonry-layout .testimonial-content {
    padding: 20px;
  }
  
  .masonry-layout .testimonial-image-message {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }
  
  .masonry-layout .testimonial-image {
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 5px;
  }
  
  .masonry-layout .testimonial-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
  
  .masonry-layout .testimonial-message {
    flex: 1;
    padding-right: 20px;
    color: #333;
    max-height: 120px;
    overflow-y: auto;
  }
  
  .masonry-layout .testimonial-footer {
    margin-top: 10px;
  }
  
  .masonry-layout .testimonial-website {
    font-size: 14px;
    color: #007bff;
  }
  
  .masonry-layout .testimonial-position {
    /* font-size: 12px; */
    color: #777;
  }
  
  .masonry-layout .testimonial-author h3 {
    margin: 10px 0;
    font-size: 16px;
    font-weight: bold;
  }
  
  .masonry-layout .testimonial-author p {
    font-size: 14px;
    color: #555;
  }
  
  .masonry-layout .quote-icon {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 10px;
    left: 10px;
  }
  
  /* Large and Small Item Sizes - Widths */
  .masonry-layout .testimonial-item.large-left {
    width: 57%; /* Large items take up 70% of the container width */
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
    margin: 7px;
  }
  .testimonial-item.large-left .quote-icon{
    transform: translate(367%, -50%);
  }
  .testimonial-item.small-right .quote-icon{
    transform: translate(203%, -50%);
  }
  .masonry-layout .testimonial-item.small-right {
    width: 38%; /* Small items take up 30% of the container width */
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
    margin: 7px;
  }
  
  /* Alternate the item positioning: */
  .masonry-layout .testimonial-item.left {
    align-self: flex-start; /* Left column items */
  }
  
  .masonry-layout .testimonial-item.right {
    align-self: flex-end; /* Right column items */
  }
  .testimonial-image.center{
    transform: translate(-50%, -60%);

  }

  .masonry-layout .testimonial-item.right .testimonial-image.center,.masonry-layout .testimonial-item.left .testimonial-image.center{
    transform: translate(-50%, -25%);

  }
  .custom-testimonial-container{
    max-width: 100%;
    margin: auto;
  }

  .testimonial-message::-webkit-scrollbar ,.star-container::-webkit-scrollbar,#design3-overflow::-webkit-scrollbar,.testimonial-footer::-webkit-scrollbar, .profile-info::-webkit-scrollbar {
    width: 3px; 
    scrollbar-color: #888 #f5f5f5;
  }
.star-container
.testimonial-message::-webkit-scrollbar-thumb {
    background-color: #888; /* Scrollbar color */
    border-radius: 3px; /* Rounded scrollbar edges */
}

.testimonial-message::-webkit-scrollbar-thumb:hover {
    background-color: #555; /* Scrollbar color on hover */
}

/* For Firefox */
.testimonial-message {
    scrollbar-width: thin; /* Reduce scrollbar width */
    scrollbar-color: #888 #f5f5f5; /* Scrollbar color and track color */
}

.custom_fields 
{
    scrollbar-width: thin; /* Reduce scrollbar width */
    scrollbar-color: #888 #f5f5f5; /* Scrollbar color and track color */
 
}
.masonry-layout .testimonial-msgimg-container{
    margin-top: 60px;

}


/* Responsive Design */

.testimonial-header .highlight {
    color: #25b8f7;
  }

@media (max-width: 768px) {
    /* .testimonial-container {
      padding: 15px;
    } */

    .testimonial-footer {
      flex-direction: column;
      text-align: center;
      gap: 10px;
    }

    .profile {
      justify-content: center;
    }
    .masonry-layout .testimonial-item.large-left, .masonry-layout .testimonial-item.small-right {
        width: 100% !important;
    }
  }

  @media(max-width:835px) and (min-width:553px){
    .testimonials-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(227px, 1fr));
        gap: 10px;
        max-width: 100%;
        flex-wrap: wrap;
    }
  }
  @media(max-width:553px) {
    .testimonials-grid {
        display: flex;
        grid-template-columns: repeat(auto-fit, minmax(133px, 1fr));
        gap: 10px;
        max-width: 100%;
        width: 100%;
        flex-wrap: wrap;
    }
    .testimonials-grid .testimonial-item{
        max-width: 100%;
        width: 100%;
    }
  }

  .testimonial-overall-container {
    max-width: 100%;
      background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      overflow: hidden;
      width:100%;
      flex-wrap:wrap;
  }
  .testimonial-container-design3{
    max-width: 100%;
     background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      overflow: hidden;
      width:100%;
      flex-wrap:wrap;
  }

  .testimonial-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    /* // padding: 20px; */
    position: relative;
    max-width: 100%;
    width:100%;
    flex-wrap:wrap;
    margin: auto;
    /* // margin-top:80px; */
    padding: 40px 20px 0px 20px
  }
  .swiper-container  .testimonial-card , .testimonials-list .testimonial-card  {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    /* // padding: 20px; */
    position: relative;
    max-width: 100%;
    /* width:55%; */
    flex-wrap:wrap;
    margin: auto;
    /* // margin-top:80px; */
    padding: 40px 20px 0px 20px
  }
  .swiper-container  .testimonial-container-design3, .testimonials-list .testimonial-container-design3 {
    max-width: 98%;
      background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      /* overflow: hidden; */
      /* width:55%; */
      flex-wrap:wrap;
      margin: auto;
      display: flex;
  }
  .swiper-container  .testimonial-overall-container, .testimonials-list .testimonial-overall-container {
    max-width: 100%;
      background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      /* overflow: hidden; */
      /* width:55%; */
      flex-wrap:wrap;
      margin: auto;
      display: flex;
  }
  .swiper-container  .testimonial-overall-container{
    width:95%;
  }
  /* .testimonials-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
  } */
  @media(max-width:991px){
    .swiper-container  .testimonial-overall-container, .testimonials-list .testimonial-overall-container {
      max-width: 100%;
        background: #fff;
      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        width:100%;
        flex-wrap:wrap;
        margin: auto;
        display: flex;
    }
    .swiper-container  .testimonial-card , .testimonials-list .testimonial-card  {
      background: #fff;
      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      text-align: center;
      /* // padding: 20px; */
      position: relative;
      max-width: 100%;
      width:100%;
      flex-wrap:wrap;
  
      /* // margin-top:80px; */
      padding: 40px 20px 0px 20px
    }
    .swiper-container  .testimonial-container-design3, .testimonials-list .testimonial-container-design3 {
      max-width: 100%;
        background: #fff;
      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        /* overflow: hidden; */
        width:100%;
        flex-wrap:wrap;
        margin: auto;
        display: flex;
    }
  }
  .testimonial-profile{
    display: flex;
    justify-content: space-between;
     align-items: center;
     gap:20px;
  }
  .testimonial-profile {
    display: flex;
    /* flex: 1 1 45%; */
    min-width: 150px; /* Prevent shrinking too much */
    align-items: center;
}
  .testimonial-profile img{
    
  width: 70px;
  height: 70px;
  /* border-radius: 50%; */
  border: 2px solid #fff;
  border-radius: 50%;
  }
  @media(max-width:500px){
    .testimonial-profile{
      display: block;
      justify-content: space-between;
       align-items: center;
       gap:20px;
    }
  }
  @media(max-width:350px){
    .testimonial-profile img{
    
      width: 50px;
      height: 0px;
      /* border-radius: 50%; */
      border: 2px solid #fff;
      border-radius: 50%;
      }
  }

  #bio-text {
    max-height: 50px; /* Collapsed height */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Show only 2 lines */
    -webkit-box-orient: vertical;
}

#bio-text.collapsed {
    max-height: 50px; /* Adjust if needed */
}

#bio-text:not(.collapsed) {
    max-height: none;
    -webkit-line-clamp: unset;
}

.read-more-btn {
  display: inline; 
  text-decoration: underline;
  /* margin-top: 10px; */
}
#bio-text.expanded {
  max-height: none;  /* Allow expansion of the content */
  overflow: visible; /* Make sure the content is visible */
}

.test-column-1{
  flex: 0 0 55%;box-sizing: border-box;
  margin: auto;
}
.test-column-2{
  flex: 0 0 48%;box-sizing: border-box;
  margin: auto;

}
.test-column-3{
  flex: 0 0 32%;box-sizing: border-box;
  margin: auto;

}
@media(max-width:768px){
  .test-column-2,.test-column-3{
    flex: 0 0 100%;box-sizing: border-box;
    margin: auto;
  
  }
}
@media(max-width: 991px) and (min-width: 769px){
  .test-column-3{
    flex: 0 0 48%;box-sizing: border-box;
    margin: auto;
  
  }
}