.wml-tm-container {
    margin-left: auto;
    margin-right: auto;
    /* max-w-sm */

    /* py-20 px-4 */
}

@media (min-width: 768px) {
    .wml-tm-container {
        max-width: 1000px;
    }
}

.wml-tm-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
    /* gap-20 ~ 5rem */
}

@media (min-width: 768px) {
    .wml-tm-grid {
        grid-template-columns: 300px 1fr;
    }
}

.wml-tm-image-container {
    position: relative;
    min-height: 250px;
    /* h-80 - Required because children are absolute */
    width: 100%;
    perspective: 1200px;
}

.wml-tm-card {
    position: absolute;
    inset: 0;
    transform-origin: bottom;
    transition: all 0.4s ease-in-out;
}

.wml-tm-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 1.5rem;
    /* rounded-3xl */
    user-select: none;
    -webkit-user-drag: none;
}

.wml-tm-content-side {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.wml-tm-text-content {
    transition: all 0.2s ease-in-out;
}

.wml-tm-text-content h3 {
    font-size: 1.5rem;
    /* text-2xl */
    line-height: 1.5em;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.25rem;
}

.wml-tm-text-content p.designation {
    font-size: 0.875rem;
    /* text-sm */
    line-height: 1.2em;
    color: #666;
}

.wml-tm-text-content p.quote {
    margin-top: 2rem;
    /* mt-8 */
    font-size: 1.125rem;
    /* text-lg */
    line-height: 1.2em;
    color: #222;
}

/* Word animation span */
.wml-word-animate {
    display: inline-block;
    transition: all 0.2s ease-in-out;
}

/* Navigation Buttons */
.wml-tm-nav {
    display: flex;
    gap: 1rem;
    /* gap-4 */
    padding-top: 20px;
    margin-top: auto;
}

.wml-tm-arrow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    /* w-7 */
    /* w-7 */
    /* w-7 */
    height: 1.75rem;
    /* h-7 */
    background-color: #f3f4f6;
    /* bg-gray-100 */
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.wml-tm-arrow-btn:hover {
    background-color: #e5e7eb;
    /* bg-gray-200 */
}

.wml-tm-arrow-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #000;
    transition: transform 0.3s;
}



/* Dark Mode Support via media query */
@media (prefers-color-scheme: dark) {
    /* wml-testimonial-wrapper background handled by widget container/theme */

    .wml-tm-text-content h3 {
        color: #fff;
    }

    .wml-tm-text-content p.designation {
        color: #737373;
        /* neutral-500 */
    }

    .wml-tm-text-content p.quote {
        color: #d4d4d4;
        /* neutral-300 */
    }

    .wml-tm-arrow-btn {
        background-color: #262626;
    }

    .wml-tm-arrow-btn:hover {
        background-color: #404040;
    }

    .wml-tm-arrow-btn svg {
        color: #a3a3a3;
    }
}