/* ═══════════════════════════════════════════
   BOOK-STYLE TESTIMONIAL SLIDER
   ═══════════════════════════════════════════ */

.testi-book {
    max-width: 900px;
    margin: 0 auto;
    perspective: 1200px;
}

.testi-book__stage {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 340px;
    margin-bottom: 32px;
}

/* Book spine (center fold line) */
.testi-book__spine {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    transform: translateX(-50%);
    background: linear-gradient(180deg,
        rgba(99, 102, 241, 0.08),
        rgba(99, 102, 241, 0.2),
        rgba(99, 102, 241, 0.08));
    border-radius: 2px;
    z-index: 3;
}
.testi-book__spine::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--color-primary, #6366f1);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

/* Pages — left & right */
.testi-book__page {
    padding: 36px 32px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.testi-book__page--left {
    background: var(--color-bg, #fff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-right: none;
    border-radius: 20px 0 0 20px;
    box-shadow: -8px 4px 20px rgba(0, 0, 0, 0.04);
}

.testi-book__page--right {
    background: var(--color-bg, #fff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-left: none;
    border-radius: 0 20px 20px 0;
    box-shadow: 8px 4px 20px rgba(0, 0, 0, 0.04);
}

/* Subtle page texture */
.testi-book__page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 28px,
        rgba(99, 102, 241, 0.02) 28px,
        rgba(99, 102, 241, 0.02) 29px
    );
    pointer-events: none;
}

/* Left page: big quote mark + author */
.testi-book__page--left .testi-book__page-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 260px;
}

.testi-book__quote-icon {
    font-size: 56px;
    line-height: 1;
    font-family: Georgia, 'Times New Roman', serif;
    background: linear-gradient(135deg, #6366f1, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    opacity: 0.25;
}

.testi-book__author-block {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.testi-book__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
    flex-shrink: 0;
}

.testi-book__author-name {
    font-weight: 700;
    font-size: 17px;
    color: var(--color-text, #111827);
    line-height: 1.3;
}

.testi-book__author-role {
    font-size: 13px;
    color: var(--color-text-secondary, #6b7280);
    margin-top: 2px;
}

.testi-book__stars {
    font-size: 18px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #F59E0B, #F97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Right page: testimonial text */
.testi-book__page--right .testi-book__page-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 260px;
}

.testi-book__text {
    font-size: 17px;
    line-height: 1.85;
    color: var(--color-text, #111827);
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testi-book__page-number {
    margin-top: auto;
    text-align: right;
    font-size: 12px;
    color: var(--color-text-secondary, #9ca3af);
    font-style: italic;
    padding-top: 16px;
}

/* Page-turn animation */
.testi-book__page.is-turning {
    animation: pageTurn 0.5s ease;
}

@keyframes pageTurn {
    0% { transform: rotateY(0); opacity: 1; }
    40% { transform: rotateY(-8deg); opacity: 0.6; }
    60% { opacity: 0; }
    61% { transform: rotateY(8deg); opacity: 0; }
    100% { transform: rotateY(0); opacity: 1; }
}

/* Navigation */
.testi-book__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.testi-book__btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--color-border, #e5e7eb);
    background: var(--color-bg, #fff);
    color: var(--color-text, #111827);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.testi-book__btn:hover {
    border-color: var(--color-primary, #6366f1);
    color: var(--color-primary, #6366f1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
    transform: scale(1.08);
}

.testi-book__btn:active {
    transform: scale(0.95);
}

.testi-book__dots {
    display: flex;
    gap: 8px;
}

.testi-book__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border, #d1d5db);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.testi-book__dot.is-active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.testi-book__dot:hover:not(.is-active) {
    background: #9ca3af;
    transform: scale(1.15);
}

.testi-book__empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-secondary, #6b7280);
    font-size: 15px;
}

/* Review Source Badge */
.testi-book__source-wrap {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.testi-book__source-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.testi-book__source-badge svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.testi-book__source-date {
    font-size: 11px;
    color: var(--color-text-secondary, #9ca3af);
    font-style: italic;
}

/* Dark theme */
[data-theme="dark"] .testi-book__page--left,
[data-theme="dark"] .testi-book__page--right {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .testi-book__btn {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Mobile: stack pages vertically */
@media (max-width: 768px) {
    .testi-book__stage {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .testi-book__page--left {
        border-radius: 20px 20px 0 0;
        border-right: 1px solid var(--color-border, #e5e7eb);
        border-bottom: none;
        padding: 28px 24px 20px;
    }

    .testi-book__page--right {
        border-radius: 0 0 20px 20px;
        border-left: 1px solid var(--color-border, #e5e7eb);
        border-top: none;
        padding: 20px 24px 28px;
    }

    .testi-book__spine {
        display: none;
        /* top: auto;
        bottom: auto;
        left: 0;
        right: 0;
        width: auto;
        height: 3px;
        top: 50%;
        transform: translateY(-50%);
        background: linear-gradient(90deg,
            rgba(99, 102, 241, 0.08),
            rgba(99, 102, 241, 0.2),
            rgba(99, 102, 241, 0.08)); */
    }

    .testi-book__spine::before {
        width: 10px;
        height: 10px;
    }

    .testi-book__page--left .testi-book__page-inner {
        min-height: auto;
    }

    .testi-book__page--right .testi-book__page-inner {
        min-height: auto;
    }

    .testi-book__text {
        font-size: 15px;
    }
}


/* ═══════════════════════════════════════════
   PROCESS V2 — ACCORDION TIMELINE
   ═══════════════════════════════════════════ */

.process-v2 {
    padding: 100px 0;
}

.process-v2__timeline {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding-left: 60px;
}

/* Vertical connecting line */
.process-v2__line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 23px;
    width: 3px;
    background: var(--color-border, #e5e7eb);
    border-radius: 2px;
}

.process-v2__line-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, #6366f1, #10b981);
    border-radius: 2px;
    transition: height 0.6s ease;
}

/* Each step item */
.process-v2__item {
    position: relative;
    margin-bottom: 16px;
}

.process-v2__item:last-child {
    margin-bottom: 0;
}

/* Step marker dot */
.process-v2__marker {
    position: absolute;
    left: -60px;
    top: 20px;
    z-index: 2;
}

.process-v2__marker-dot {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--color-bg, #fff);
    border: 3px solid var(--color-border, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: var(--color-text-secondary, #9ca3af);
    transition: all 0.4s ease;
}

.process-v2__item.is-active .process-v2__marker-dot {
    border-color: #6366f1;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
    transform: scale(1.1);
}

/* Card */
.process-v2__card {
    background: var(--color-bg, #fff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.process-v2__item.is-active .process-v2__card {
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.08);
}

.process-v2__card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
}

.process-v2__card-header:hover {
    background: rgba(99, 102, 241, 0.02);
}

.process-v2__card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(16, 185, 129, 0.06));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary, #6366f1);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.process-v2__item.is-active .process-v2__card-icon {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.process-v2__card-title {
    flex: 1;
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text, #111827);
    margin: 0;
}

.process-v2__card-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-bg-secondary, #f9fafb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary, #9ca3af);
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.process-v2__item.is-active .process-v2__card-toggle {
    transform: rotate(180deg);
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
}

/* Collapsible body */
.process-v2__card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 24px;
}

.process-v2__item.is-active .process-v2__card-body {
    max-height: 300px;
    padding: 0 24px 24px;
}

.process-v2__card-desc {
    color: var(--color-text-secondary, #6b7280);
    line-height: 1.75;
    font-size: 15px;
    margin: 0 0 12px;
}

.process-v2__card-output {
    font-size: 13px;
    color: var(--color-text-secondary, #6b7280);
    padding: 10px 14px;
    background: var(--color-bg-secondary, #f9fafb);
    border-radius: 10px;
    border-left: 3px solid #6366f1;
}

.process-v2__card-output strong {
    color: var(--color-text, #111827);
}

/* Dark theme */
[data-theme="dark"] .process-v2__card {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .process-v2__marker-dot {
    background: var(--color-bg, #0f172a);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .process-v2__card-output {
    background: rgba(255, 255, 255, 0.03);
}

/* Mobile */
@media (max-width: 768px) {
    .process-v2__timeline {
        padding-left: 46px;
    }

    .process-v2__line {
        left: 17px;
    }

    .process-v2__marker {
        left: -46px;
    }

    .process-v2__marker-dot {
        width: 36px;
        height: 36px;
        font-size: 11px;
    }

    .process-v2__card-header {
        padding: 16px 18px;
    }

    .process-v2__item.is-active .process-v2__card-body {
        padding: 0 18px 18px;
    }

    .process-v2__card-icon {
        width: 36px;
        height: 36px;
    }
}
