/**
 * ITMedia Testimonials - Modern Style
 * Version 2.0.0
 */

/* ========================================
   CSS Custom Properties (Variables)
   ======================================== */
.itmedia-testimonials {
    --testimonial-primary: #6366f1;
    --testimonial-primary-light: #818cf8;
    --testimonial-secondary: #f59e0b;
    --testimonial-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --testimonial-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
    --testimonial-radius: 16px;
    --testimonial-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Main Container
   ======================================== */
.itmedia-testimonials {
    padding: 20px 0;
    position: relative;
}

.itmedia-testimonials .item {
    padding: 10px;
}

/* ========================================
   Testimonial Card
   ======================================== */
.itmedia-testimonials .itmedia-text-box {
    position: relative;
    padding: 32px;
    margin: 0 0 20px 0;
    background: var(--testimonial-bg, #1f2937);
    box-shadow: var(--testimonial-shadow);
    border-radius: var(--testimonial-radius);
    transition: var(--testimonial-transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.itmedia-testimonials .itmedia-text-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--testimonial-shadow-hover);
}

.itmedia-testimonials .itmedia-text-box.content_center {
    text-align: center;
}

/* Quote Icon */
.itmedia-testimonials .itmedia-quote-icon {
    max-width: 40px;
    height: auto;
    margin-bottom: 16px;
    fill: var(--testimonial-quote, #6366f1);
    opacity: 0.4;
}

/* Testimonial Text */
.itmedia-testimonials p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--testimonial-text, #ffffff);
    font-style: italic;
}

/* ========================================
   Profile Section
   ======================================== */
.itmedia-testimonials .itmedia-profile {
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 16px;
}

.itmedia-testimonials .itmedia-profile.content_center {
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

/* Profile Image */
.itmedia-testimonials .itmedia-profile-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid #fff;
}

.itmedia-testimonials .itmedia-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Profile Details */
.itmedia-testimonials .itmedia-profile-details {
    flex: 1;
}

.itmedia-testimonials .itmedia-profile-name,
.itmedia-testimonials .itmedia-profile-title {
    margin: 0;
    line-height: 1.4;
}

.itmedia-testimonials .itmedia-profile-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--testimonial-name, #ffffff);
    margin-bottom: 2px;
}

.itmedia-testimonials .itmedia-profile-title {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--testimonial-title, #9ca3af);
}

/* ========================================
   Star Rating
   ======================================== */
.itmedia-testimonials .star-rating {
    display: flex;
    align-items: center;
    height: 18px;
    width: 90px;
    position: relative;
    margin: 8px 0 0 0;
}

.star-rating:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23374151'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 18px;
    content: "";
    display: block;
    height: 18px;
    width: 90px;
    position: absolute;
    left: 0;
    top: 0;
}

.itmedia-testimonials .star-rating > span {
    display: block;
    height: 18px;
    position: absolute;
    overflow: hidden;
    top: 0;
    left: 0;
}

.itmedia-testimonials .star-rating > span:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f59e0b'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 18px;
    content: "";
    display: block;
    height: 18px;
    width: 90px;
    position: absolute;
    left: 0;
    top: 0;
}

/* ========================================
   Carousel Navigation Arrows (Inside)
   ======================================== */
.itmedia-testimonials.owl-carousel .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
    z-index: 10;
}

.itmedia-testimonials.owl-carousel .owl-nav button {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--testimonial-transition);
    border: none;
    cursor: pointer;
    color: #1f2937;
}

.itmedia-testimonials.owl-carousel .owl-nav button:hover {
    background: var(--testimonial-dots, #6366f1) !important;
    color: #fff;
    transform: scale(1.1);
}

.itmedia-testimonials.owl-carousel .owl-nav button svg {
    width: 20px;
    height: 20px;
}

.itmedia-testimonials.owl-carousel .owl-nav button.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ========================================
   Carousel Dots Navigation
   ======================================== */
.itmedia-testimonials.owl-carousel .owl-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.itmedia-testimonials.owl-carousel button.owl-dot {
    width: 10px;
    height: 10px;
    background: #cbd5e1;
    border-radius: 50%;
    opacity: 0.5;
    transition: var(--testimonial-transition);
    border: none;
    padding: 0;
    cursor: pointer;
}

.itmedia-testimonials.owl-carousel button.owl-dot:hover {
    opacity: 0.8;
}

.itmedia-testimonials.owl-carousel button.owl-dot.active {
    opacity: 1;
    background: var(--testimonial-dots, #6366f1);
    transform: scale(1.3);
}

.itmedia-testimonials.owl-carousel button.owl-dot:focus {
    outline: 2px solid var(--testimonial-dots, #6366f1);
    outline-offset: 2px;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 767px) {
    .itmedia-testimonials .itmedia-text-box {
        padding: 24px;
    }

    .itmedia-testimonials p {
        font-size: 1rem;
    }

    .itmedia-testimonials .itmedia-profile {
        flex-direction: column;
        text-align: center;
    }

    .itmedia-testimonials.owl-carousel .owl-nav button {
        width: 36px;
        height: 36px;
    }

    .itmedia-testimonials.owl-carousel .owl-nav button svg {
        width: 16px;
        height: 16px;
    }
}
