/**
 * Testimonial Slider Frontend Styles
 * 100% Matching Design from Reference Image:
 * - Unified polygon bottom badge with diagonal slant and lower right shelf
 * - On hover: bottom shape transitions to #F97316
 * - Dots-only navigation with active dot in #F97316
 */

:root {
    --tms-accent-color: #F97316;
    --tms-badge-bg: #0F1E36;
    --tms-card-bg: #FFFFFF;
    --tms-text-color: #555E68;
    --tms-title-color: #0F1E36;
    --tms-max-width: 1200px;
}

/* Section Wrapper */
.tms-section-wrap {
    width: 100%;
    padding: 70px 20px 80px 20px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--tms-text-color);
    background: transparent;
}

.tms-section-wrap *,
.tms-section-wrap *::before,
.tms-section-wrap *::after {
    box-sizing: inherit;
}

.tms-container {
    max-width: var(--tms-max-width);
    margin: 0 auto;
    width: 100%;
}

/* Header */
.tms-section-header {
    margin-bottom: 52px;
}

.tms-section-header.tms-align-center {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.tms-section-header.tms-align-left {
    text-align: left;
    max-width: 700px;
}

.tms-section-header.tms-align-right {
    text-align: right;
    max-width: 700px;
    margin-left: auto;
}

.tms-section-title {
    font-family: Georgia, "Playfair Display", "Times New Roman", serif;
    font-size: clamp(32px, 4.2vw, 44px);
    font-weight: 700;
    line-height: 1.22;
    color: var(--tms-title-color);
    margin: 0 0 14px 0;
    letter-spacing: -0.01em;
}

.tms-section-subtitle {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: clamp(14px, 1.8vw, 15.5px);
    color: #64748b;
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
}

/* Slider Outer Container */
.tms-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 10px 4px 10px 4px;
}

/* Track Wrapper */
.tms-slider-track-wrap {
    width: 100%;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.tms-slider-track-wrap:active {
    cursor: grabbing;
}

.tms-slider-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    gap: 32px;
}

/* Individual Slide Item */
.tms-slide-item {
    flex: 0 0 calc((100% - (32px * 2)) / 3);
    min-width: 0;
    display: flex;
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
    .tms-slider-track {
        gap: 22px;
    }
    .tms-slide-item {
        flex: 0 0 calc((100% - 22px) / 2);
    }
}

@media (max-width: 640px) {
    .tms-slider-track {
        gap: 16px;
    }
    .tms-slide-item {
        flex: 0 0 100%;
    }
}

/* ========================================================
   TESTIMONIAL CARD (Exact Same to Same as Reference Image)
   ======================================================== */
.tms-card {
    background: var(--tms-card-bg);
    border-radius: 2px;
    box-shadow: 0 12px 36px -4px rgba(15, 30, 54, 0.08), 0 2px 6px rgba(15, 30, 54, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border: 1px solid rgba(226, 232, 240, 0.6);
    min-height: 440px;
}

.tms-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px -6px rgba(15, 30, 54, 0.14), 0 6px 14px rgba(15, 30, 54, 0.06);
}

/* Card Quote Content Area */
.tms-card-content {
    padding: 44px 34px 28px 34px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tms-quote-text {
    font-size: 15px;
    line-height: 1.76;
    color: var(--tms-text-color);
    margin: 0;
    font-weight: 400;
}

.tms-quote-text p {
    margin: 0 0 14px 0;
}

.tms-quote-text p:last-child {
    margin-bottom: 0;
}

/* ========================================================
   BOTTOM CLIENT BADGE: Exact Geometry
   - Tall left box with client name and role
   - Diagonal 45-degree slant
   - Low right shelf spanning to the bottom-right corner
   - Unified SVG or polygon clip-path
   - Smooth hover transition to #F97316
   ======================================================== */
.tms-card-bottom {
    position: relative;
    width: 100%;
    margin-top: auto;
}

.tms-client-block {
    position: relative;
    width: 100%;
    min-height: 96px;
    background-color: var(--tms-badge-bg);
    /* 
       Polygon points:
       1) (0% 0%) - Top-left of badge
       2) (74% 0%) - Top edge across to end of name
       3) (88% calc(100% - 18px)) - Diagonal slant down to shelf
       4) (100% calc(100% - 18px)) - Shelf across to right edge of card
       5) (100% 100%) - Down to bottom-right corner
       6) (0% 100%) - Across bottom back to bottom-left corner
    */
    clip-path: polygon(0 0, 74% 0, 88% calc(100% - 18px), 100% calc(100% - 18px), 100% 100%, 0 100%);
    -webkit-clip-path: polygon(0 0, 74% 0, 88% calc(100% - 18px), 100% calc(100% - 18px), 100% 100%, 0 100%);
    padding: 16px 22px 18px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tms-client-info {
    position: relative;
    z-index: 2;
    max-width: 72%;
}

.tms-client-name {
    font-family: Georgia, "Playfair Display", "Times New Roman", serif;
    font-size: 17px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 4px 0;
    line-height: 1.32;
    transition: color 0.3s ease;
    word-break: break-word;
}

.tms-client-role {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #94A3B8;
    display: block;
    line-height: 1.2;
    transition: color 0.3s ease;
}

/* ========================================================
   HOVER EFFECT (User Request: Bottom turns into #F97316)
   ======================================================== */
.tms-card:hover .tms-client-block {
    background-color: var(--tms-accent-color) !important;
}

.tms-card:hover .tms-client-name {
    color: #FFFFFF;
}

.tms-card:hover .tms-client-role {
    color: #FFF7ED;
}

/* ========================================================
   PAGINATION DOTS ONLY (No Arrows as Requested)
   ======================================================== */
.tms-dots-only-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.tms-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #D1D5DB;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.tms-dot.active {
    width: 32px;
    background: var(--tms-accent-color);
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.4);
}

.tms-dot:hover:not(.active) {
    background: #9CA3AF;
    transform: scale(1.15);
}
