/* ============================================================
   Enago Indonesia — "Dipercaya oleh Jurnal SINTA Terkemuka"
   (accepted papers) + "500+ klien puas" (testimonials), Figma
   redesign: one full-bleed #F4ECE6 band holding both sections.
   Linked by includes/inc_testimonial_acceptedpaper.htm itself
   (body-level <link>), so every consumer page gets it — no
   per-page <link>. Carousels are vanilla JS inside the include
   (the old owl-carousel markup is gone; the per-page owl inits
   now match nothing and are harmless no-ops).
   All classes are prefixed tap- to avoid collisions.
   ============================================================ */

.tap-band {
    /* full viewport bleed even though the include sits inside a
       .container — body{overflow-x:hidden} absorbs the scrollbar
       sliver from 100vw */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: #F4ECE6;
    font-family: 'Open Sans', sans-serif;
}

.tap-band * {
    box-sizing: border-box;
}

/* margin: 0 beats services.css's global `section{margin:60px 0}` (loaded on
   most service pages), which would otherwise poke white gaps around the band */
.tap-papers {
    padding: 80px 0;
    margin: 0;
}

.tap-testi {
    padding: 0 0 80px;
    margin: 0;
}

.tap-container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

.tap-h2 {
    margin: 0;
    font-weight: 600;
    font-size: 36px;
    line-height: 44px;
    color: #283341;
    text-align: center;
}

.tap-sub {
    margin: 30px 0 0;
    font-weight: 400;
    font-size: 20px;
    line-height: 30px;
    color: #283341;
    text-align: center;
}

/* ---- papers stage: featured paper left, cover strip right ----
   flex-end: the thumb strip hangs from the BOTTOM edge of the featured
   block (per Figma), not vertically centered */
.tap-stage {
    display: flex;
    align-items: flex-end;
    gap: 60px;
    padding-top: 50px;
}

.tap-main {
    flex: 0 0 auto;
    width: 694px;
    max-width: 100%;
}

.tap-slide {
    display: none;
    align-items: flex-end;
    gap: 20px;
    /* equals the fixed cover height below: every slide occupies the same
       height, so paging never reflows the band ("thrust" jump) */
    min-height: 277px;
}

.tap-slide.is-active {
    display: flex;
    /* smooth change: the incoming slide fades in sliding right-to-left —
       the animation (re)starts each time the slide becomes visible */
    animation: tap-fade-in .45s ease both;
}

@keyframes tap-fade-in {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.tap-cover {
    flex: 0 0 215px;
}

.tap-cover img,
.tap-thumb img {
    display: block;
    width: 100%;
    height: auto;
    border: 2px solid #FFFFFF;
    border-radius: 8px;
    background: #FFFFFF;
    /* fixed frame (Figma 215x277 / 153x198): covers with different aspect
       ratios letterbox inside instead of changing the layout height */
    aspect-ratio: 215 / 277;
    object-fit: contain;
}

.tap-thumb img {
    aspect-ratio: 153 / 198;
}

.tap-info {
    flex: 1 1 auto;
    min-width: 0;
}

.tap-if {
    display: inline-block;
    background: #283342;
    border-radius: 4px;
    padding: 4px 16px;
    font-weight: 600;
    font-size: 15px;
    line-height: 22px;
    color: #FFFFFF;
    margin-bottom: 14px !important;
}

/* !importants beat enago-kr-home.css's global
   h3{color:#000!important;font-weight:700!important;margin-top:40px!important;...}
   which otherwise distorts this title on every consumer page */
.tap-title,
.tap-info .lv2-text {
    margin: 0 0 12px !important;
    padding: 0 !important;
    clear: none;
}

.tap-meta {
    display: flex;
    gap: 4px;
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 24px;
    color: #283342;
}

.tap-meta:last-child {
    margin-bottom: 0;
}

.tap-meta b {
    font-weight: 600;
    color: #283341;
    flex: 0 0 auto;
}

.tap-thumbs {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: flex-end;
    gap: 48px;
    overflow: hidden;
}

.tap-thumb {
    flex: 0 0 153px;
    /* thumbs are rebuilt on every page turn — same right-to-left fade as
       the featured slide */
    animation: tap-fade-in .45s ease both;
}

@media (prefers-reduced-motion: reduce) {

    .tap-slide.is-active,
    .tap-thumb {
        animation: none;
    }
}

/* ---- shared round prev/next nav ---- */
.tap-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding-top: 32px;
}

.tap-arrow {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border: 1.5px solid #E9EAEB;
    border-radius: 50%;
    cursor: pointer;
    transition: box-shadow .15s ease;
}

.tap-arrow:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.tap-arrow::before {
    content: "";
    display: block;
    width: 9px;
    height: 9px;
    border-right: 1.5px solid #283341;
    border-top: 1.5px solid #283341;
}

.tap-prev::before {
    transform: rotate(-135deg);
    margin-left: 4px;
}

.tap-next::before {
    transform: rotate(45deg);
    margin-right: 4px;
}

/* ---- testimonials ---- */

/* wrapper = positioning context for the side arrows; its height equals the
   card viewport, so top:50% centers the arrows on the cards */
.tap-t-wrap {
    position: relative;
    margin-top: 30px;
}

.tap-t-viewport {
    overflow: hidden;
}

/* side arrows (not the bottom-centered row the papers carousel uses):
   vertically centered, each straddling the outer card edge */
.tap-t-wrap .tap-nav {
    padding-top: 0;
}

.tap-t-wrap .tap-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.tap-t-wrap .tap-prev {
    left: -20px;
}

.tap-t-wrap .tap-next {
    right: -20px;
}

.tap-t-track {
    display: flex;
    gap: 30px;
    transition: transform .4s ease;
}

.tap-t-card {
    flex: 0 0 calc(50% - 15px);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: #FAF8F5;
    border: 1px solid #E9EAEB;
    border-radius: 14px;
}

.tap-t-avatar {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    border-radius: 8px;
    overflow: hidden;
    background: #EFE9E1;
}

.tap-t-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tap-t-body {
    flex: 1 1 auto;
    min-width: 0;
}

.tap-t-quote {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    color: #3A4250;
}

.tap-t-name {
    padding-top: 16px;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: #283341;
}

.tap-t-affil {
    padding-top: 2px;
    font-size: 13px;
    line-height: 20px;
    color: #283341;
}

/* ---- responsive ---- */
@media (max-width: 991px) {
    .tap-thumbs {
        display: none;
    }

    .tap-main {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .tap-papers {
        padding: 50px 0;
    }

    .tap-testi {
        padding: 0 0 50px;
    }

    .tap-h2 {
        font-size: 28px;
        line-height: 36px;
    }

    .tap-sub {
        margin-top: 16px;
        font-size: 17px;
        line-height: 26px;
    }

    .tap-stage {
        padding-top: 30px;
    }

    .tap-slide,
    .tap-slide.is-active {
        flex-direction: column;
        align-items: center;
    }

    .tap-cover {
        flex: 0 0 auto;
        width: 180px;
    }

    .tap-info {
        width: 100%;
    }

    .tap-t-card {
        flex: 0 0 100%;
    }
}
