/* Simple popup styling 
.testimonial-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.testimonial-modal-content {
  background-color: #fff;
  margin: auto;
  padding: 30px;
  border-radius: 10px;
  max-width: 600px;
  position: relative;
}

.testimonial-close {
  color: #aaa;
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 28px;
  cursor: pointer;
}

.testimonial-close:hover {
  color: #000;
}
*/


/* --- Overlay/Modal Background --- */
.testimonial-modal {
	display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 99999;
   
    
    /* Centering Properties */
    justify-content: center; /* Centers content horizontally */
    align-items: center;     /* Centers content vertically */
    
    /* Ensure it starts hidden */
    /* You are setting this via jQuery but good to have in CSS for initial load */
    /* display: none; */ 
    
    overflow-y: auto; 
    padding: 20px;
}

/* --- Modal Content Box --- */
.testimonial-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    position: relative;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    
    /* Important for centering: keep it from taking full height */
    max-height: 90vh; /* Restrict height to 90% of viewport height */
    overflow-y: auto; /* Add internal scrollbar if content is too long */
}

/* ... (rest of your CSS, e.g., close button, body, info styles) ... */

/* --- Close Button --- */
.testimonial-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #333;
    line-height: 1;
}

/* --- Testimonial Body Styling --- */
#testimonial-popup-body {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* --- Info Section Styling --- */
.testimonial-popup-info {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

#testimonial-popup-name {
    font-weight: bold;
    color: #333;
}

#testimonial-popup-job {
    font-size: 0.9em;
    color: #666;
}

.testimonial-item {
    /* Ensures the item looks and behaves like a clickable element */
    cursor: pointer; 
    
    /* Optional: Add a smooth transition for hover effects */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Optional: Add a visual change on hover for better user experience */
.testimonial-item:hover {
   /* Use transform:scale to make it visually bigger without affecting layout */
    transform: scale(0.08); /* Makes it 3% larger */
    
    /* Enhance the shadow for a "lifting" effect */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25); /* Larger, more pronounced shadow */
    
}