/* =========================================
   GTV Testimonies Homepage Styles
   Bundled with the Gathering the Voices – Map & Testimonies plugin.
   Source: GTV Testimonies Homepage Styles v1.3.3
   ========================================= */

/* ── Wrapper — break out of WP content column ── */
.gtv2t-wrap {
    font-family: 'Cabin', system-ui, sans-serif;
    color: #1a1a1a;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* ── Header ── */
.gtv2t-header {
    padding: 32px 5% 20px;
    max-width: 100%;
}
.gtv2t-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: #4b286d;
    margin: 0 0 12px;
    line-height: 1.1;
}
.gtv2t-intro {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin: 0 0 24px;
    max-width: 700px;
}
.gtv2t-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.gtv2t-search {
    flex: 1;
    min-width: 200px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
}
.gtv2t-search:focus { outline: 2px solid #4b286d; border-color: #4b286d; }
.gtv2t-sort {
    height: 42px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
    cursor: pointer;
}

/* Section heading */
.gtv2t-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}
.gtv2t-section-accent {
    display: inline-block;
    width: 5px;
    height: 1.4rem;
    background: #4b286d;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ── Layout ── */
.gtv2t-layout {
    display: grid;
    grid-template-columns: 1fr;
}
.gtv2t-cards-wrap {
    padding: 16px 0 100px;
}
.gtv2t-map-wrap { display: none; }

/* ── Cards grid ── */
.gtv2t-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* ── Card ── */
.gtv2t-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}
.gtv2t-card:hover {
    box-shadow: 0 6px 24px rgba(75,40,109,0.12);
    transform: translateY(-2px);
}
.gtv2t-card--pulse { animation: gtv2t-pulse 0.8s ease; }
@keyframes gtv2t-pulse {
    0%,100%{box-shadow:0 0 0 0 rgba(75,40,109,0);}
    50%{box-shadow:0 0 0 8px rgba(75,40,109,0.25);}
}

/* Card image */
.gtv2t-card-img-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #ede8f5;
    display: block;
}
.gtv2t-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.gtv2t-card-img--empty { width: 100%; aspect-ratio: 16/9; background: #ede8f5; }

/* Card body */
.gtv2t-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.gtv2t-card-name {
    font-size: 19px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
}
.gtv2t-card-orig-name {
    font-size: 13px;
    font-style: italic;
    color: #777;
    line-height: 1.2;
}
.gtv2t-card-origin {
    font-size: 12px;
    color: #4b286d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.gtv2t-card-excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    margin: 0;
}

/* Audio */
.gtv2t-card-audio {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    padding: 4px 0;
}
.gtv2t-play-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #4b286d;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 7px 16px 7px 12px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s;
}
.gtv2t-play-btn:hover { background: #3a1e56; }
.gtv2t-card-progress {
    flex: 1;
    height: 3px;
    background: transparent;
    border-radius: 2px;
    overflow: hidden;
    transition: background 0.2s;
}
.gtv2t-card-progress.is-active {
    background: #ddd;
}
.gtv2t-card-progress-fill {
    height: 100%;
    background: #4b286d;
    width: 0;
    transition: width 0.1s;
}

/* Actions */
.gtv2t-card-actions { margin-top: auto; padding-top: 4px; }
.gtv2t-btn-read {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #4b286d;
    text-decoration: none;
    border-bottom: 1px solid rgba(75,40,109,0.3);
    transition: border-color 0.15s;
}
.gtv2t-btn-read:hover { border-bottom-color: #4b286d; }

/* ── Map marker ── */
.gtv2t-marker {
    width: 16px;
    height: 16px;
    background: #4b286d;
    border: 3px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(75,40,109,0.4);
    transition: transform 0.15s;
}
.gtv2t-marker:hover { transform: scale(1.3); }

/* ── Map reset button ── */
.gtv2t-map-reset {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: none;
    border-radius: 6px;
    padding: 9px 14px;
    font-family: 'Cabin', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #4b286d;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    transition: background 0.15s, color 0.15s;
}
.gtv2t-map-reset svg { flex-shrink: 0; }
.gtv2t-map-reset:hover {
    background: #4b286d;
    color: #fff;
}

/* ── Sticky player ── */
.gtv2t-sticky-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #2d1a45;
    color: #fff;
    z-index: 9999;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.3);
    padding: 12px 24px;
}
.gtv2t-sticky-inner {
    max-width: 80%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}
.gtv2t-sticky-info { display:flex;flex-direction:column;gap:2px;min-width:0;flex:1; }
.gtv2t-sticky-name { font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.gtv2t-sticky-label { font-size:11px;opacity:0.6;text-transform:uppercase;letter-spacing:0.06em; }
.gtv2t-sticky-controls { display:flex;align-items:center;gap:12px;flex-shrink:0; }
.gtv2t-sticky-play { width:36px;height:36px;border-radius:50%;background:#4b286d;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center; }
.gtv2t-sticky-play:hover { background:#6b3a9d; }
.gtv2t-sticky-progress { width:160px;height:4px;background:rgba(255,255,255,0.2);border-radius:2px;cursor:pointer; }
.gtv2t-sticky-fill { height:100%;background:#a78bdc;border-radius:2px;width:0; }
.gtv2t-sticky-time { font-size:12px;opacity:0.7;font-variant-numeric:tabular-nums;min-width:32px; }
.gtv2t-sticky-close { background:none;border:none;color:rgba(255,255,255,0.6);font-size:18px;cursor:pointer;padding:4px;line-height:1; }
.gtv2t-sticky-close:hover { color:#fff; }

/* ── Tablet ── */
@media (min-width: 600px) {
    .gtv2t-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ── Desktop ── */
@media (min-width: 900px) {
    .gtv2t-layout {
        grid-template-columns: 1fr 1fr;
        align-items: start;
        gap: 0;
        height: 100vh;
    }
    .gtv2t-cards-wrap {
        padding: 16px 32px 100px 5%;
        height: 100vh;
        overflow-y: auto;
    }
    .gtv2t-header {
        padding: 0 0 24px;
    }
    .gtv2t-map-wrap {
        display: block;
        position: sticky;
        top: 0;
        height: 100vh;
        overflow: hidden;
    }
    #gtv2t-map { width: 100%; height: 100%; }
    .gtv2t-cards { grid-template-columns: 1fr; }
    /* No map — full width */
    .gtv2t-no-map .gtv2t-layout { grid-template-columns: 1fr; height: auto; overflow: visible; }
    .gtv2t-no-map .gtv2t-cards-wrap { height: auto; overflow-y: visible; }
    .gtv2t-no-map .gtv2t-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
    .gtv2t-cards { grid-template-columns: repeat(2, 1fr); }
    .gtv2t-no-map .gtv2t-cards { grid-template-columns: repeat(3, 1fr); }
}

/* ── Modal ── */
.gtv2t-modal-img-wrap { width: 100%; }
.gtv2t-modal-img {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    background-color: #ede8f5;
    min-height: 200px;
    display: block;
}
.gtv2t-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 999999;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}
.gtv2t-modal {
    background: #fff;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 16px 16px 0 0;
    position: relative;
    display: flex;
    flex-direction: column;
}
.gtv2t-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(0,0,0,0.08);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}
.gtv2t-modal-close:hover { background: rgba(0,0,0,0.15); }
.gtv2t-modal-body {
    padding: 20px 20px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.gtv2t-modal-origin {
    font-size: 12px;
    color: #4b286d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.gtv2t-modal-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
}
.gtv2t-modal-orig-name {
    font-size: 14px;
    font-style: italic;
    color: #777;
    line-height: 1.2;
    margin-top: -8px;
}
.gtv2t-modal-excerpt {
    font-size: 15px;
    line-height: 1.75;
    color: #444;
    margin: 0;
}
.gtv2t-modal-player {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f7f9;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 10px 14px;
}
.gtv2t-modal-time {
    font-size: 12px;
    color: #666;
    font-variant-numeric: tabular-nums;
    min-width: 32px;
}
.gtv2t-modal-read {
    display: inline-block;
    background: #4b286d;
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Cabin', sans-serif;
    text-align: center;
    transition: background 0.15s;
}
.gtv2t-modal-read:hover { background: #3a1e56; color: #fff; }

/* Desktop modal — centred overlay */
@media (min-width: 700px) {
    .gtv2t-modal-backdrop {
        align-items: center;
        padding: 24px;
    }
    .gtv2t-modal {
        max-width: 640px;
        width: 100%;
        border-radius: 12px;
        max-height: 88vh;
    }
}

/* ── Custom header bar ── */
.gtv2t-custom-header {
    width: 100%;
    background: #1a0a2e;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.gtv2t-custom-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 0 5%;
    height: 56px;
    max-width: 100%;
}
.gtv2t-ch-logo {
    display: flex;
    align-items: center;
    justify-self: start;
    min-width: 0;
    text-decoration: none !important;
}
.gtv2t-ch-logo:hover {
    text-decoration: none !important;
}
.gtv2t-ch-logo img {
    max-width: 100%;
    height: auto;
    max-height: 44px;
    object-fit: contain;
    display: block;
}
.gtv2t-ch-logo--text {
    font-family: 'Cabin', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gtv2t-ch-logo--text:hover {
    color: #fff !important;
}
.gtv2t-ch-title {
    font-family: 'Cabin', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.7) !important;
    justify-self: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.gtv2t-ch-back {
    font-family: 'Cabin', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.7) !important;
    text-decoration: none !important;
    transition: color 0.15s;
    justify-self: end;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.gtv2t-ch-back:hover { color: #fff !important; }
@media (max-width: 480px) {
    .gtv2t-ch-title { display: none; }
}
