/* =========================================
   GTV Testimonials V3 — Page Layout
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Cabin:ital,wght@0,400;0,500;0,600;0,700;1,400;1,700&display=swap');

:root {
    --gtv3-purple:       #4b286d;
    --gtv3-purple-dark:  #3a1e56;
    --gtv3-purple-light: #f4f0f9;
    --gtv3-border:       #e5e5e5;
    --gtv3-text:         #1a1a1a;
    --gtv3-text-muted:   #4a4a4a;
    --gtv3-text-subtle:  #888;
    --gtv3-bg:           #ffffff;
    --gtv3-font:         'Cabin', system-ui, sans-serif;
    --gtv3-container:    85%;
    --gtv3-main:         65%;
    --gtv3-sidebar:      20%;
    --gtv3-gap:          32px;
}

/* ── Theme overrides ── */
body.gtv3-active .entry-title,
body.gtv3-active .entry-header,
body.gtv3-active .page-header,
body.gtv3-active .featured-image,
body.gtv3-active .post-image,
body.gtv3-active .wp-block-post-featured-image { display: none !important; }

body.gtv3-active .content-area  { width: 100% !important; max-width: 100% !important; margin: 0 !important; float: none !important; }
body.gtv3-active .site-content  { display: block !important; }
body.gtv3-active .inside-article { padding: 0 !important; background: transparent !important; box-shadow: none !important; }
body.gtv3-active .entry-content  { margin: 0 !important; overflow: visible !important; padding: 0 !important; }
body.gtv3-active .sidebar-primary,
body.gtv3-active #left-sidebar,
body.gtv3-active .is-left-sidebar,
body.gtv3-active #right-sidebar,
body.gtv3-active .is-right-sidebar { display: none !important; }

/* ── Page wrapper ── */
.gtv3-wrap {
    font-family: var(--gtv3-font);
    color: var(--gtv3-text);
    width: var(--gtv3-container);
    margin: 0 auto;
    padding: 40px 0 60px;
}

/* ── Two-column grid ── */
.gtv3-grid {
    display: grid;
    grid-template-columns: var(--gtv3-main) 1fr;
    gap: var(--gtv3-gap);
    align-items: start;
}

/* ── Main column ── */
.gtv3-main {
    min-width: 0;
}

/* ── Hero image ── */
.gtv3-hero {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 28px;
    background: var(--gtv3-purple-light);
    position: relative;
}
.gtv3-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gtv3-hero--focus-top    img { object-position: center top; }
.gtv3-hero--focus-center img { object-position: center center; }
.gtv3-hero--focus-bottom img { object-position: center bottom; }

/* ── Breadcrumb ── */
.gtv3-breadcrumb {
    font-size: 13px;
    color: var(--gtv3-text-subtle);
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}
.gtv3-breadcrumb a { color: var(--gtv3-purple); text-decoration: none; font-weight: 500; }
.gtv3-breadcrumb a:hover { text-decoration: underline; }
.gtv3-breadcrumb .sep { color: var(--gtv3-text-subtle); }

/* ── Title ── */
.gtv3-title {
    font-family: var(--gtv3-font);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--gtv3-text);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}
.gtv3-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gtv3-purple);
    margin-bottom: 10px;
    display: block;
}

/* ── Divider ── */
.gtv3-rule {
    border: none;
    border-top: 1px solid var(--gtv3-border);
    margin: 24px 0;
}

/* ── Media blocks (audio / video) ── */
.gtv3-media-block {
    background: #f8f7f9;
    border: 1px solid var(--gtv3-border);
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 20px;
}
.gtv3-media-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gtv3-text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.gtv3-media-label svg { width: 15px; height: 15px; fill: var(--gtv3-purple); flex-shrink: 0; }
.gtv3-audio-intro {
    font-size: 14px;
    color: var(--gtv3-text-muted);
    margin: 0 0 14px;
    font-style: italic;
}

/* ── Audio player ── */
.gtv3-player { display: flex; flex-direction: column; gap: 10px; }
.gtv3-player-progress { width: 100%; }
.gtv3-seek-track { position: relative; height: 5px; background: var(--gtv3-border); border-radius: 3px; cursor: pointer; }
.gtv3-seek-fill { height: 100%; background: var(--gtv3-purple); border-radius: 3px; width: 0; }
.gtv3-seek-thumb { position: absolute; top: 50%; left: 0; transform: translate(-50%,-50%); width: 14px; height: 14px; border-radius: 50%; background: var(--gtv3-purple); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--gtv3-border); pointer-events: none; }
.gtv3-player-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gtv3-player-btns { display: flex; align-items: center; gap: 12px; }
.gtv3-play-btn { width: 46px; height: 46px; border-radius: 50%; background: var(--gtv3-purple); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.15s; padding: 0; }
.gtv3-play-btn:hover { background: var(--gtv3-purple-dark); }
.gtv3-play-btn svg { display: block; fill: #fff; }
.gtv3-play-btn .icon-play { margin-left: 3px; }
.gtv3-ctrl-btn { background: none; border: none; cursor: pointer; color: var(--gtv3-purple); padding: 4px; display: flex; align-items: center; border-radius: 4px; transition: background 0.12s; }
.gtv3-ctrl-btn:hover { background: var(--gtv3-purple-light); }
.gtv3-time-display { font-size: 12px; color: var(--gtv3-text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; font-family: monospace; min-width: 36px; }

/* ── Video ── */
.gtv3-video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 6px; background: #1a0a2e; }
.gtv3-video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ── AI Summary ── */
.gtv3-ai-summary { background: var(--gtv3-purple-light); border-left: 4px solid var(--gtv3-purple); border-radius: 0 6px 6px 0; padding: 16px 20px; margin-bottom: 20px; }
.gtv3-ai-label { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gtv3-purple); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.gtv3-ai-label svg { width: 13px; height: 13px; fill: var(--gtv3-purple); }
.gtv3-ai-summary p { font-size: 14px; line-height: 1.7; color: var(--gtv3-text-muted); margin: 0; }

/* ── Prose ── */
.gtv3-prose { font-size: 17px; line-height: 1.9; color: var(--gtv3-text); }
.gtv3-prose p { margin-bottom: 24px; }
.gtv3-prose p:last-child { margin-bottom: 0; }
.gtv3-prose h2 { font-size: 1.5rem; font-weight: 700; margin: 36px 0 14px; color: var(--gtv3-text); border-left: 4px solid var(--gtv3-purple); padding-left: 14px; }
.gtv3-prose h3 { font-size: 1.2rem; font-weight: 600; margin: 28px 0 10px; }
.gtv3-prose blockquote { border-left: 4px solid var(--gtv3-purple); background: var(--gtv3-purple-light); padding: 18px 22px; margin: 28px 0; border-radius: 0 6px 6px 0; font-style: italic; font-size: 1.1rem; line-height: 1.65; }
.gtv3-prose blockquote p { margin: 0; }
.gtv3-prose ul, .gtv3-prose ol { padding-left: 24px; margin-bottom: 24px; }
.gtv3-prose li { margin-bottom: 8px; }
.gtv3-prose img { max-width: 100%; height: auto; border-radius: 4px; }
.gtv3-prose a { color: var(--gtv3-purple); }

/* ── Tags ── */
.gtv3-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--gtv3-border); }
.gtv3-tag-pill { font-size: 12px; font-weight: 500; color: var(--gtv3-purple); background: var(--gtv3-purple-light); border: 1px solid rgba(75,40,109,0.18); padding: 4px 14px; border-radius: 20px; }

/* ── Prev / Next ── */
.gtv3-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.gtv3-pn-link { background: #f8f7f9; border: 1px solid var(--gtv3-border); border-radius: 6px; padding: 14px 16px; text-decoration: none; display: block; transition: border-color 0.15s, background 0.15s; }
.gtv3-pn-link:hover { border-color: var(--gtv3-purple); background: var(--gtv3-purple-light); }
.gtv3-pn-dir { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gtv3-text-subtle); margin-bottom: 5px; }
.gtv3-pn-title { font-size: 14px; color: var(--gtv3-purple); font-weight: 600; line-height: 1.4; }
.gtv3-pn-link.next { text-align: right; }

/* ── Sidebar ── */
.gtv3-sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
}
.gtv3-sb-section { margin-bottom: 28px; }
.gtv3-sb-heading {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gtv3-text-subtle);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gtv3-purple);
}
.gtv3-sb-nav { display: flex; flex-direction: column; gap: 2px; }
.gtv3-sb-nav a {
    font-size: 13px;
    color: var(--gtv3-text-muted);
    text-decoration: none;
    padding: 7px 10px;
    border-radius: 4px;
    border: 1px solid transparent;
    display: block;
    line-height: 1.4;
    transition: background 0.12s;
}
.gtv3-sb-nav a.gtv3-active {
    background: var(--gtv3-purple-light);
    color: var(--gtv3-purple);
    border-color: rgba(75,40,109,0.18);
    font-weight: 600;
}
.gtv3-sb-nav a:hover:not(.gtv3-active) { background: #f8f7f9; }
.gtv3-sb-meta { display: flex; flex-direction: column; gap: 10px; }
.gtv3-sb-meta-row { display: flex; flex-direction: column; gap: 2px; }
.gtv3-sb-meta-key { font-size: 10px; color: var(--gtv3-text-subtle); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.gtv3-sb-meta-val { font-size: 13px; color: var(--gtv3-text-muted); }

/* ── Sidebar gallery ── */
.gtv3-gal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 4px; }
.gtv3-gal-link { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 3px; }
.gtv3-gal-link img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s; }
.gtv3-gal-link:hover img { transform: scale(1.05); }

/* ── Return to top ── */
.gtv3-return-top { margin-top: 28px; text-align: center; }
.gtv3-return-top button { font-family: var(--gtv3-font); font-size: 13px; font-weight: 500; color: var(--gtv3-purple); background: transparent; border: 1px solid var(--gtv3-purple); padding: 7px 20px; border-radius: 4px; cursor: pointer; transition: background 0.15s, color 0.15s; }
.gtv3-return-top button:hover { background: var(--gtv3-purple); color: #fff; }

/* ── Related testimonies ── */
.gtv3-related-wrap { background: #f8f7f9; border-top: 3px solid var(--gtv3-purple); margin-top: 48px; padding: 36px 0 48px; width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
.gtv3-related-inner { max-width: var(--gtv3-container); margin: 0 auto; }
.gtv3-related-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.gtv3-related-title { font-size: 1.4rem; font-weight: 700; color: var(--gtv3-text); margin: 0; }
.gtv3-related-all { font-size: 13px; font-weight: 600; color: var(--gtv3-purple); text-decoration: none; border: 1px solid var(--gtv3-purple); padding: 5px 12px; border-radius: 4px; }
.gtv3-related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.gtv3-rc-card { text-decoration: none; display: block; }
.gtv3-rc-img { width: 100%; aspect-ratio: 16/9; background-size: cover; background-position: center; border-radius: 6px; margin-bottom: 10px; transition: transform 0.2s; overflow: hidden; }
.gtv3-rc-card:hover .gtv3-rc-img { transform: scale(1.02); }
.gtv3-rc-name { font-size: 15px; font-weight: 700; color: var(--gtv3-text); line-height: 1.3; }
.gtv3-rc-card:hover .gtv3-rc-name { color: var(--gtv3-purple); }

/* ── Responsive ── */
@media (max-width: 900px) {
    .gtv3-wrap { width: 95%; padding: 24px 0 40px; }
    .gtv3-grid { grid-template-columns: 1fr; }
    .gtv3-sidebar { position: static; display: none; }
    .gtv3-title { font-size: 1.9rem; }
    .gtv3-prevnext { grid-template-columns: 1fr; }
    .gtv3-pn-link.next { text-align: left; }
    .gtv3-related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .gtv3-wrap { width: 100%; padding: 16px 16px 40px; }
    .gtv3-title { font-size: 1.6rem; }
    .gtv3-prose { font-size: 16px; }
    .gtv3-hero { aspect-ratio: 4/3; }
}
