/* ===== Vetora single post page ===== */

/* Astra: full width, no boxed article, no sidebar, no own meta/nav/comments */
.vt-post-page .site-content > .ast-container { max-width: none !important; padding: 0 !important; display: block !important; }
.vt-post-page #primary { width: 100% !important; margin: 0 !important; padding: 0 !important; }
.vt-post-page #secondary,
.vt-post-page .entry-header,
.vt-post-page .post-thumb-img-content,
.vt-post-page .ast-single-post-featured-section,
.vt-post-page .post-navigation,
.vt-post-page .ast-author-box,
.vt-post-page .comments-area,
.vt-post-page .ast-single-related-posts-container { display: none !important; }
.vt-post-page .site-content .ast-article-single { margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
.vt-post-page .entry-content { margin: 0 !important; }

.vt-post,
.vt-post * { box-sizing: border-box; }
.vt-post {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-bottom: 110px;
    overflow: hidden;
    background: #f7f9fc;
    font-family: "Lexend", sans-serif;
    color: #111827;
}
.vt-post::before {
    content: "";
    position: absolute;
    left: 50%; top: -240px;
    width: 1100px; height: 640px;
    transform: translateX(-50%);
    background:
        radial-gradient(closest-side at 35% 50%, rgba(95, 10, 135, 0.10), transparent),
        radial-gradient(closest-side at 65% 50%, rgba(44, 115, 210, 0.10), transparent);
    pointer-events: none;
}
.vt-post a { text-decoration: none; }
.vt-post__inner { position: relative; width: min(1320px, 100% - 32px); margin: 0 auto; }
.vt-post__inner--narrow { width: min(920px, 100% - 32px); }

/* reading progress */
.vt-post__progress { position: fixed; left: 0; right: 0; top: 0; z-index: 10000; height: 3px; pointer-events: none; }
.vt-post__progress span { display: block; height: 100%; background: linear-gradient(90deg, #5f0a87, #2c73d2); transform: scaleX(0); transform-origin: left; }
.admin-bar .vt-post__progress { top: 32px; }

/* hero */
.vt-post__hero { padding: 70px 0 44px; text-align: center; }
.vt-post__crumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; font-size: 0.9rem; color: #9ca3af; }
.vt-post__crumbs a { color: #6b7280 !important; transition: color 0.2s ease; }
.vt-post__crumbs a:hover { color: #5f0a87 !important; }
.vt-post__hero .vt-blog__cat { align-self: center; }
.vt-post__title {
    margin: 0 0 28px;
    color: #111827;
    font-family: "Lexend", sans-serif;
    font-size: clamp(2.1rem, 4.4vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.12;
    text-wrap: balance;
}
.vt-post__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; color: #6b7280; font-size: 0.95rem; }
.vt-post__meta > span { display: inline-flex; align-items: center; gap: 8px; }
.vt-post__meta i { color: #5f0a87; }
.vt-post__author img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(17, 24, 39, 0.12); }
.vt-post__author b { color: #111827; font-weight: 600; }

/* cover */
.vt-post__cover {
    margin: 0 0 56px;
    overflow: hidden;
    aspect-ratio: 1200 / 560;
    border-radius: 28px;
    background: #eef0f4;
    box-shadow: 0 40px 80px -40px rgba(17, 24, 39, 0.35);
}
.vt-post__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* content + sidebar */
.vt-post__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.vt-post__content {
    padding: 56px 60px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #eef0f4;
    box-shadow: 0 24px 60px -36px rgba(17, 24, 39, 0.22);
    color: #374151;
    font-size: 1.08rem;
    line-height: 1.85;
}
.vt-post__content > *:first-child { margin-top: 0 !important; }
.vt-post__content > *:last-child { margin-bottom: 0 !important; }
.vt-post__content p { margin: 0 0 1.4em; }
.vt-post__content h2,
.vt-post__content h3,
.vt-post__content h4 { color: #111827; font-family: "Lexend", sans-serif; letter-spacing: -0.02em; scroll-margin-top: 120px; }
.vt-post__content h2 { position: relative; margin: 2.2em 0 0.8em; padding-top: 0.2em; font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 700; line-height: 1.3; }
.vt-post__content h3 { margin: 1.8em 0 0.6em; font-size: 1.3rem; font-weight: 600; line-height: 1.4; }
.vt-post__content h4 { margin: 1.6em 0 0.5em; font-size: 1.1rem; font-weight: 600; }
.vt-post__content a { color: #5f0a87; font-weight: 500; text-decoration: underline; text-decoration-color: rgba(95, 10, 135, 0.3); text-underline-offset: 3px; transition: text-decoration-color 0.2s ease, color 0.2s ease; }
.vt-post__content a:hover { color: #2c73d2; text-decoration-color: currentColor; }
.vt-post__content strong { color: #111827; font-weight: 600; }
.vt-post__content ul,
.vt-post__content ol { margin: 0 0 1.5em; padding-left: 0; list-style: none; }
.vt-post__content li { position: relative; margin: 0 0 0.6em; padding-left: 30px; }
.vt-post__content ul > li::before { content: ""; position: absolute; left: 6px; top: 0.72em; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #5f0a87, #2c73d2); }
.vt-post__content ol { counter-reset: vt-ol; }
.vt-post__content ol > li { counter-increment: vt-ol; }
.vt-post__content ol > li::before { content: counter(vt-ol); position: absolute; left: 0; top: 0.22em; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #f3e8fa; color: #5f0a87; font-size: 0.75rem; font-weight: 700; line-height: 1; }
.vt-post__content blockquote,
.vt-post__content .wp-block-quote {
    margin: 2em 0;
    padding: 24px 28px;
    border: 0;
    border-left: 4px solid #5f0a87;
    border-radius: 0 16px 16px 0;
    background: linear-gradient(90deg, #f3e8fa, #f7f9fc);
    color: #111827;
    font-size: 1.05rem;
    font-style: normal;
}
.vt-post__content blockquote p:last-child { margin-bottom: 0; }
.vt-post__content img,
.vt-post__content .wp-block-image img { height: auto; border-radius: 16px; }
.vt-post__content figure { margin: 2em 0; }
.vt-post__content figcaption { margin-top: 10px; color: #9ca3af; font-size: 0.85rem; text-align: center; }
.vt-post__content table { width: 100%; margin: 2em 0; border-collapse: collapse; font-size: 0.95rem; }
.vt-post__content th { background: #f3e8fa; color: #111827; font-weight: 600; text-align: left; }
.vt-post__content th,
.vt-post__content td { padding: 12px 16px; border-bottom: 1px solid #eef0f4; }
.vt-post__content hr { margin: 2.4em 0; border: 0; border-top: 1px solid #eef0f4; }
.vt-post__content code { padding: 2px 6px; border-radius: 6px; background: #f3f4f6; color: #5f0a87; font-size: 0.9em; }

/* sidebar */
.vt-post__sticky { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 20px; }
.admin-bar .vt-post__sticky { top: 142px; }
.vt-post__box { padding: 24px; border-radius: 20px; background: #fff; border: 1px solid #eef0f4; box-shadow: 0 18px 40px -28px rgba(17, 24, 39, 0.2); }
.vt-post__boxtitle { margin: 0 0 14px !important; color: #111827; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.vt-post__toc ol { margin: 0; padding: 0; list-style: none; max-height: 46vh; overflow-y: auto; }
.vt-post__toc li { margin: 0; }
.vt-post__toc a {
    display: block;
    padding: 8px 0 8px 14px;
    border-left: 2px solid #eef0f4;
    color: #6b7280 !important;
    font-size: 0.92rem;
    line-height: 1.45;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.vt-post__toc a:hover { color: #111827 !important; }
.vt-post__toc a.is-active { border-color: #5f0a87; color: #5f0a87 !important; font-weight: 600; }
.vt-post__share { display: flex; gap: 10px; }
.vt-post__share a,
.vt-post__share button {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    padding: 0;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    background: #f7f9fc;
    color: #4b5563 !important;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.25s ease;
}
.vt-post__share a:hover,
.vt-post__share button:hover { border-color: transparent; background: linear-gradient(135deg, #5f0a87, #2c73d2); color: #fff !important; transform: translateY(-3px); }
.vt-post__copied { margin: 10px 0 0 !important; color: #0e9f6e; font-size: 0.85rem; font-weight: 500; }

.vt-post__cta {
    position: relative;
    overflow: hidden;
    padding: 28px 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, #5f0a87 0%, #2c73d2 100%);
    color: #fff;
    box-shadow: 0 24px 50px -24px rgba(95, 10, 135, 0.6);
}
.vt-post__cta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.vt-post__cta-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.16); font-size: 1.3rem; }
.vt-post__cta-title { margin: 0 0 8px !important; color: #fff; font-size: 1.2rem; font-weight: 700; }
.vt-post__cta-text { margin: 0 0 20px !important; color: rgba(255, 255, 255, 0.8); font-size: 0.92rem; line-height: 1.6; }
.vt-post__cta-btn {
    position: relative; z-index: 1;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    background: #fff;
    color: #5f0a87 !important;
    font-size: 0.92rem;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.vt-post__cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2); }

/* related */
.vt-post__related { margin-top: 90px; }
.vt-post__related-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.vt-post__related-head h2 { margin: 0; color: #111827; font-family: "Lexend", sans-serif; font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em; }

/* tablet + phone */
@media (max-width: 1100px) {
    .vt-post__layout { grid-template-columns: 1fr; }
    .vt-post__toc { display: none !important; }
    .vt-post__sticky { position: static; display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .vt-post__hero { padding: 48px 0 30px; }
    .vt-post__meta { gap: 10px 18px; font-size: 0.88rem; }
    .vt-post__cover { margin-bottom: 30px; border-radius: 18px; }
    .vt-post__content { padding: 30px 22px; border-radius: 18px; font-size: 1rem; }
    .vt-post__sticky { grid-template-columns: 1fr; }
    .vt-post__related { margin-top: 60px; }
    .vt-post__related-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .vt-post__share a, .vt-post__share button, .vt-post__cta-btn { transition: none; } }

/* the sidebar column must span the article so its contents can stay sticky */
.vt-post__aside { align-self: stretch; }
/* overflow:hidden breaks position:sticky; clip hides the glow without that */
.vt-post { overflow: visible; overflow-x: clip; }

/* v1.2.2: Astra's narrow single-post container caps every block inside
   .entry-content; let the post layout break out to full width */
.vt-post-page .site-content .ast-container,
.vt-post-page.ast-narrow-container .site-content > .ast-container,
.vt-post-page .ast-article-single,
.vt-post-page .entry-content { max-width: none !important; width: 100% !important; }
.vt-post-page .entry-content > .vt-post,
.vt-post-page .entry-content > div.vt-post {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: 0 !important;
}
/* no Astra underlines outside the article text */
.vt-post__hero a,
.vt-post__aside a,
.vt-post__related a { text-decoration: none !important; }
