/* Humbee Testimonials Frontend Styles */

/* Testimonial Form Styles */
.humbee-testimonial-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.testimonial-form .form-header {
    text-align: center;
    margin-bottom: 30px;
}

.testimonial-form .form-header h3 {
    color: #333;
    margin-bottom: 10px;
}

.testimonial-form .form-header p {
    color: #666;
    margin: 0;
}

.testimonial-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.testimonial-form .form-group {
    flex: 1;
}

.testimonial-form .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.testimonial-form .form-group input,
.testimonial-form .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.testimonial-form .form-group input:focus,
.testimonial-form .form-group textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 5px rgba(0,124,186,0.3);
}

.testimonial-form .form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.testimonial-form .required {
    color: #e74c3c;
}

.testimonial-form .form-submit {
    text-align: center;
    margin-top: 30px;
}

.testimonial-form .submit-btn {
    background: #007cba;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.testimonial-form .submit-btn:hover {
    background: #005a87;
}

.testimonial-form .submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.testimonial-form .form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

.testimonial-form .form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.testimonial-form .form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Testimonials Grid Styles */
.humbee-testimonials-grid {
    display: grid;
    gap: 30px;
    margin: 20px 0;
}

.humbee-testimonials-grid[data-columns="1"] {
    grid-template-columns: 1fr;
}

.humbee-testimonials-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.humbee-testimonials-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.humbee-testimonials-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.testimonial-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.testimonial-image {
    margin-bottom: 20px;
}

.testimonial-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f1f1f1;
}

.testimonial-content {
    text-align: center;
}

.testimonial-description {
    margin-bottom: 20px;
}

.testimonial-description p {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    font-size: 16px;
}

.testimonial-author .author-name {
    color: #333;
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
}

.testimonial-author .author-designation {
    color: #777;
    margin: 0;
    font-size: 14px;
}

.testimonial-video {
    margin-top: 15px;
}

.video-thumbnail {
    position: relative;
    cursor: pointer;
    display: inline-block;
}

.video-thumbnail img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 4px;
}

.video-thumbnail .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.3s ease;
}

.video-thumbnail:hover .play-button {
    background: rgba(0,0,0,0.9);
}

.video-link {
    display: inline-block;
    padding: 8px 16px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.video-link:hover {
    background: #005a87;
    color: white;
}

/* Video Modal */
.video-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.video-container {
    background: #000;
}

/* Multi-Carousel Styles - Exact Design Match */
.humbee-testimonials-multi-carousel-container {
    position: relative;
    max-width: 1112px;
    margin: 20px auto;
    /* padding: 64px; */
}

.testimonials-multi-carousel {
    overflow: hidden;
    position: relative;
}

.testimonials-track {
    display: flex;
    gap: 18px;
    transition: transform 0.5s ease;
    will-change: transform;
}

.testimonial-slide-multi {
    flex: 0 0 calc(33.333% - 14px); /* 3 slides on desktop */
    min-width: 0;
}

.testimonial-card-multi {
    background: #ffffff;
    padding: 16px !important;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Video Section Styling */
.testimonial-video-section {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 16px;
}

.testimonial-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.testimonial-image-wrapper img.testimonial-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.testimonial-image-wrapper.video-playing img.testimonial-thumbnail {
    display: none;
}

.testimonial-image-wrapper.video-playing .video-play-overlay {
    display: none;
}

/* Inline video container */
.inline-video-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 5;
}

.inline-video-container iframe,
.inline-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.video-close-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.video-play-overlay:hover {
    background: rgba(0, 0, 0, 0.5);
}

.play-button-multi {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.play-button-multi:hover {
    transform: scale(1.1);
}

.play-button-multi svg {
    margin-left: 2px; /* Slight offset for play icon centering */
}

/* Content Section */
.testimonial-content-multi {
    padding-top: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.testimonial-description-multi {
    flex: 1;
    margin-bottom: 20px;
}

.testimonial-description-multi p {
    color: #333333;
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
    font-style: italic;
}

/* Author Section */
.testimonial-author-multi {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.author-details {
    flex: 1;
}

.author-name-multi {
    color: #333333;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 24px;
}

.author-designation-multi {
    color: #666666;
    font-size: 16px;
    margin: 0;
    line-height: 24px;
}

/* Navigation Buttons */
.carousel-navigation-multi {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.carousel-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15); */
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
    /* transform: scale(1.1); */
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); */
}

.carousel-prev-multi {
    margin-left: -70px;
}

.carousel-next-multi {
    margin-right: -70px;
}

.carousel-btn svg {
    color: #995A00;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .testimonial-slide-multi {
        flex: 0 0 calc(50% - 10px); /* 2 slides on tablet */
    }
    
    .testimonials-track {
        gap: 15px;
    }
    
    .testimonial-video-section {
        height: 180px;
    }
    
    .humbee-testimonials-multi-carousel-container {
        padding: 32px;
    }
    .carousel-prev-multi {
        margin-left: 0px;
    }
    .carousel-next-multi {
        margin-right: 0px;
    }
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    .humbee-testimonials-multi-carousel-container{
        padding: 50px;
    }
}

@media (max-width: 768px) {
   
    .testimonial-slide-multi {
        flex: 0 0 100%; /* 1 slide on mobile - no gap calculation needed */
        margin-right: 0;
        padding: 45px;
    }
    
    
    .testimonials-track {
        gap: 0; /* Remove gap on mobile to prevent partial slide visibility */
    }
    
    .humbee-testimonials-multi-carousel-container {
        padding: 16px;
        margin: 10px auto;
    }
    
    .testimonial-video-section {
        height: 200px;
    }
    
    .testimonial-content-multi {
        padding: 20px;
    }
    
    .testimonial-card-multi {
        margin: 0; /* Ensure no margin that could cause partial visibility */
    }
    
    /* Completely hide navigation arrows on mobile */
    /* .carousel-navigation-multi {
        display: none !important;
    } */
    
    /* Ensure carousel container takes full width on mobile */
    .testimonials-multi-carousel {
        width: 100%;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .testimonial-description-multi p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .author-name-multi {
        font-size: 16px;
    }
    
    .author-designation-multi {
        font-size: 13px;
    }
    
    .testimonial-video-section {
        height: 180px;
    }
    
    .humbee-testimonials-multi-carousel-container {
        padding: 12px;
        margin: 8px auto;
    }
    
    .testimonial-content-multi {
        padding: 16px;
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    .humbee-testimonials-grid[data-columns="3"],
    .humbee-testimonials-grid[data-columns="4"] {
        grid-template-columns: 1fr;
    }
    
    .humbee-testimonials-grid[data-columns="2"] {
        grid-template-columns: 1fr;
    }
    
    .testimonial-form .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .humbee-testimonial-form-container {
        padding: 15px;
    }
    
    .testimonial-slide {
        padding: 20px;
    }
    
    .video-modal-content {
        max-width: 95%;
        max-height: 95%;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        padding: 20px;
    }
    
    .testimonial-description p {
        font-size: 14px;
    }
    
    .carousel-nav {
        padding: 0 10px;
    }
    
    .carousel-nav button {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

