/* ═══════════════════════════════════════════════════
   ProInSales — Single Post Styles
   single.css — загружается только на страницах статей
═══════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════
   ARTICLE HERO
═══════════════════════════════════════════════════ */
.pi-article-hero {
    position: relative;
    padding: 140px 40px 60px;
    background: linear-gradient(160deg, #0f0c29 0%, #302b63 40%, #24243e 100%);
    overflow: hidden;
}

.pi-article-hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    filter: blur(100px);
    top: -100px;
    right: -50px;
    animation: pi-float 8s ease-in-out infinite;
    pointer-events: none;
}

.pi-article-hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(236, 72, 153, 0.15);
    border-radius: 50%;
    filter: blur(80px);
    bottom: -80px;
    left: 10%;
    animation: pi-float 10s ease-in-out infinite;
    animation-delay: -3s;
    pointer-events: none;
}

@keyframes pi-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(30px, -20px) scale(1.05); }
    66%       { transform: translate(-20px, 20px) scale(0.95); }
}

.pi-article-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Breadcrumbs в hero */
.pi-article-hero .pi-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    flex-wrap: wrap;
    animation: pi-fadeInUp 0.6s ease both;
}

.pi-article-hero .pi-breadcrumbs a {
    color: rgba(226, 232, 240, 0.6) !important;
    text-decoration: none !important;
    transition: opacity 0.3s;
}

.pi-article-hero .pi-breadcrumbs a:hover {
    color: rgba(226, 232, 240, 1) !important;
    opacity: 1;
}

.pi-article-hero .pi-breadcrumbs .pi-sep {
    color: rgba(226, 232, 240, 0.3);
}

.pi-article-hero .pi-breadcrumbs .pi-current {
    color: rgba(226, 232, 240, 0.8);
}

/* Category badge */
.pi-article-cat-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    color: #a5b4fc !important;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    animation: pi-fadeInUp 0.6s ease 0.1s both;
    text-decoration: none !important;
}

/* Hero title */
.pi-article-hero h1 {
    font-family: 'Unbounded', cursive !important;
    font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    color: #fff !important;
    margin-bottom: 20px !important;
    animation: pi-fadeInUp 0.6s ease 0.2s both;
}

/* Hero meta */
.pi-article-meta-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    animation: pi-fadeInUp 0.6s ease 0.3s both;
}

.pi-article-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.7);
}

.pi-article-meta-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    flex-shrink: 0;
}

@keyframes pi-fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════
   ARTICLE LAYOUT (content + sidebar)
═══════════════════════════════════════════════════ */
.pi-article-layout {
    width: 100%;
    max-width: var(--pi-max-width);
    margin: 0 auto;
    padding: 48px 40px 100px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 48px;
    align-items: start;
    box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════
   ARTICLE CONTENT (entry-content overrides)
═══════════════════════════════════════════════════ */
.pi-article-content {
    width: 100%;
    min-width: 0;
    font-family: 'Onest', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
}

.pi-article-content h2 {
    font-family: 'Unbounded', cursive !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin: 48px 0 16px !important;
    scroll-margin-top: 96px;
    padding-top: 16px;
    line-height: 1.3 !important;
    position: relative;
    color: #1a1a2e !important;
    padding-left: 20px;
}

.pi-article-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 4px;
    height: calc(100% - 16px);
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #f97316 100%);
    border-radius: 2px;
}

.pi-article-content h3 {
    font-family: 'Unbounded', cursive !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    margin: 36px 0 12px !important;
    line-height: 1.3 !important;
    color: #6366f1 !important;
    scroll-margin-top: 96px;
}

.pi-article-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 20px;
}

.pi-article-content ul,
.pi-article-content ol {
    margin: 0 0 24px 24px;
    line-height: 1.8;
    font-size: 1.05rem;
    color: #374151;
}

.pi-article-content li {
    margin-bottom: 8px;
    padding-left: 8px;
}

.pi-article-content ul li::marker { color: #6366f1; }
.pi-article-content ol li::marker { color: #6366f1; font-weight: 600; }

.pi-article-content img {
    width: 100%;
    border-radius: 16px;
    margin: 32px 0;
    box-shadow: 0 4px 30px rgba(99, 102, 241, 0.08);
}

.pi-article-content a {
    color: #6366f1 !important;
    text-decoration: underline;
    text-decoration-color: rgba(99, 102, 241, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.3s;
}

.pi-article-content a:hover {
    text-decoration-color: #6366f1;
}

.pi-article-content blockquote {
    margin: 32px 0 !important;
    padding: 24px 28px !important;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%) !important;
    border-left: 4px solid #6366f1 !important;
    border-radius: 0 16px 16px 0 !important;
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
    color: #374151 !important;
    font-style: italic !important;
}

.pi-article-content blockquote p {
    color: #374151 !important;
    margin-bottom: 0 !important;
}

.pi-article-content pre {
    margin: 28px 0 !important;
    padding: 24px !important;
    background: #1a1a2e !important;
    border-radius: 16px !important;
    overflow-x: auto;
    font-size: 0.88rem !important;
    line-height: 1.7 !important;
    color: #e2e8f0 !important;
}

.pi-article-content code {
    background: rgba(99, 102, 241, 0.1) !important;
    padding: 2px 8px !important;
    border-radius: 6px !important;
    font-size: 0.9em !important;
    color: #6366f1 !important;
}

.pi-article-content pre code {
    background: none !important;
    padding: 0 !important;
    color: #e2e8f0 !important;
}

/* ═══════════════════════════════════════════════════
   INFO BOX (tip / warning) — кастомные блоки
═══════════════════════════════════════════════════ */
.pi-info-box {
    margin: 32px 0;
    padding: 24px 28px;
    border-radius: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.pi-info-box-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.pi-info-box-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #374151;
}

.pi-info-box-content strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
    font-family: 'Unbounded', cursive;
    color: #1a1a2e;
}

.pi-info-box.tip {
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.08) 0%, rgba(56, 249, 215, 0.08) 100%);
    border: 1px solid rgba(67, 233, 123, 0.2);
}

.pi-info-box.warning {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.08) 0%, rgba(236, 72, 153, 0.06) 100%);
    border: 1px solid rgba(249, 115, 22, 0.2);
}

/* ═══════════════════════════════════════════════════
   STEP BLOCKS
═══════════════════════════════════════════════════ */
.pi-step {
    display: flex;
    gap: 20px;
    margin: 28px 0;
    padding: 28px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8eaf0;
    transition: box-shadow 0.3s;
}

.pi-step:hover {
    box-shadow: 0 4px 30px rgba(99, 102, 241, 0.08);
}

.pi-step-number {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #f97316 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Unbounded', cursive;
    font-weight: 700;
    font-size: 1.1rem;
}

.pi-step-content h4 {
    font-family: 'Unbounded', cursive !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    color: #1a1a2e !important;
}

.pi-step-content p {
    font-size: 0.95rem !important;
    color: #64748b !important;
    margin-bottom: 0 !important;
    line-height: 1.6 !important;
}

/* ═══════════════════════════════════════════════════
   INLINE CTA (внутри контента)
═══════════════════════════════════════════════════ */
.pi-cta-inline {
    margin: 40px 0;
    padding: 36px;
    border-radius: 20px;
    background: linear-gradient(160deg, #0f0c29 0%, #302b63 40%, #24243e 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pi-cta-inline::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    filter: blur(60px);
    top: -60px;
    right: -30px;
    pointer-events: none;
}

.pi-cta-inline h3 {
    font-family: 'Unbounded', cursive !important;
    color: #fff !important;
    font-size: 1.2rem !important;
    margin-bottom: 8px !important;
    position: relative;
    z-index: 1;
}

.pi-cta-inline p {
    color: rgba(226, 232, 240, 0.8) !important;
    margin-bottom: 20px !important;
    font-size: 0.95rem !important;
    position: relative;
    z-index: 1;
}

.pi-cta-inline .pi-btn-primary {
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════
   КНОПКИ (в контексте single)
═══════════════════════════════════════════════════ */
.pi-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Onest', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    border: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pi-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #f97316 100%);
    color: #fff !important;
    box-shadow: 0 4px 25px rgba(99, 102, 241, 0.35);
}

.pi-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5);
}

/* ═══════════════════════════════════════════════════
   TAGS & SHARE BAR
═══════════════════════════════════════════════════ */
.pi-article-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 28px 0;
    margin-top: 48px;
    border-top: 1px solid #e8eaf0;
}

.pi-article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pi-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.06);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6366f1 !important;
    text-decoration: none !important;
    transition: all 0.3s;
}

.pi-tag:hover {
    background: rgba(99, 102, 241, 0.12);
    text-decoration: none !important;
}

.pi-share-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pi-share-label {
    font-size: 0.82rem;
    color: #64748b;
    margin-right: 4px;
}

.pi-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e8eaf0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    text-decoration: none;
    color: inherit;
}

.pi-share-btn:hover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.06);
}

/* ═══════════════════════════════════════════════════
   ВИДЕО В СТАТЬЯХ
═══════════════════════════════════════════════════ */

/*
 * Поддерживаемые способы вставки:
 * 1. Gutenberg Embed block (YouTube, Vimeo и др.) — .wp-block-embed
 * 2. Gutenberg Video block (self-hosted) — .wp-block-video
 * 3. Классический редактор oEmbed — .wp-video-shortcode
 * 4. Голый <iframe> или <video> в тексте
 */

/* --- 1. Gutenberg oEmbed (YouTube / Vimeo) --- */
.pi-article-content .wp-block-embed {
    margin: 40px 0;
    border-radius: 16px;
    overflow: hidden;
}

.pi-article-content .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #0f0c29;
}

.pi-article-content .wp-block-embed__wrapper iframe,
.pi-article-content .wp-block-embed__wrapper embed,
.pi-article-content .wp-block-embed__wrapper object {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
}

/* --- 2. Gutenberg Video block (самостоятельное видео) --- */
.pi-article-content .wp-block-video {
    margin: 40px 0;
    border-radius: 16px;
    overflow: hidden;
}

.pi-article-content .wp-block-video video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

/* --- 3. Классический редактор [video] shortcode --- */
.pi-article-content .wp-video {
    margin: 40px auto;
    max-width: 100% !important;
    border-radius: 16px;
    overflow: hidden;
}

.pi-article-content .wp-video-shortcode {
    width: 100% !important;
    height: auto !important;
    border-radius: 16px;
}

/* --- 4. Голый <iframe> (вставлен вручную в HTML-режиме) --- */
.pi-article-content iframe {
    max-width: 100%;
    border: none;
    border-radius: 12px;
    display: block;
}

/* Если iframe стоит отдельно — обёртка для responsive 16:9 */
.pi-article-content .pi-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin: 40px 0;
    border-radius: 16px;
    overflow: hidden;
    background: #0f0c29;
}

.pi-article-content .pi-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
}

/* --- Подписи к видео (figcaption) --- */
.pi-article-content .wp-block-embed figcaption,
.pi-article-content .wp-block-video figcaption {
    text-align: center;
    font-size: 0.82rem;
    color: var(--pi-text-light);
    margin-top: 10px;
    font-style: italic;
}

/* ═══════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════ */
.pi-sidebar {
    position: sticky;
    top: 96px;
}

/* TOC */
.pi-toc {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    border: 1px solid #e8eaf0;
    margin-bottom: 28px;
    box-shadow: 0 4px 30px rgba(99, 102, 241, 0.06);
}

.pi-toc-title {
    font-family: 'Unbounded', cursive;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a1a2e;
}

.pi-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pi-toc-list li {
    margin-bottom: 0;
}

.pi-toc-list a {
    display: block;
    padding: 8px 12px;
    font-family: 'Onest', sans-serif;
    font-size: 0.85rem;
    color: #64748b !important;
    text-decoration: none !important;
    border-radius: 8px;
    border-left: 2px solid transparent;
    transition: all 0.3s;
    line-height: 1.4;
}

.pi-toc-list a:hover {
    background: rgba(99, 102, 241, 0.06);
    color: #6366f1 !important;
    border-left-color: #6366f1;
}

.pi-toc-list a.pi-active {
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1 !important;
    font-weight: 600;
    border-left-color: #6366f1;
}

/* Sidebar CTA */
.pi-sidebar-cta {
    border-radius: 20px;
    padding: 28px;
    background: linear-gradient(160deg, #0f0c29 0%, #302b63 40%, #24243e 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
}

.pi-sidebar-cta::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(99, 102, 241, 0.25);
    border-radius: 50%;
    filter: blur(50px);
    top: -40px;
    right: -30px;
    pointer-events: none;
}

.pi-sidebar-cta-emoji {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
    position: relative;
    z-index: 1;
}

.pi-sidebar-cta h4 {
    font-family: 'Unbounded', cursive !important;
    font-size: 0.95rem !important;
    color: #fff !important;
    margin-bottom: 8px !important;
    position: relative;
    z-index: 1;
}

.pi-sidebar-cta p {
    font-size: 0.82rem !important;
    color: rgba(226, 232, 240, 0.8) !important;
    margin-bottom: 16px !important;
    line-height: 1.5 !important;
    position: relative;
    z-index: 1;
}

.pi-sidebar-cta .pi-btn {
    font-size: 0.85rem;
    padding: 12px 24px;
    width: 100%;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Sidebar related */
.pi-sidebar-related {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    border: 1px solid #e8eaf0;
    box-shadow: 0 4px 30px rgba(99, 102, 241, 0.06);
}

.pi-sidebar-related-title {
    font-family: 'Unbounded', cursive;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a2e;
}

.pi-sidebar-related-item {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #e8eaf0;
    text-decoration: none !important;
    transition: all 0.3s;
}

.pi-sidebar-related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pi-sidebar-related-item:first-child {
    padding-top: 0;
}

.pi-sidebar-related-cat {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6366f1;
    margin-bottom: 4px;
}

.pi-sidebar-related-item h5 {
    font-family: 'Onest', sans-serif !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: #1a1a2e !important;
    line-height: 1.4 !important;
    transition: color 0.3s;
    margin: 0 !important;
}

.pi-sidebar-related-item:hover h5 {
    color: #6366f1 !important;
}

/* ═══════════════════════════════════════════════════
   RELATED POSTS (bottom)
═══════════════════════════════════════════════════ */
.pi-related-section {
    max-width: var(--pi-max-width);
    margin: 0 auto;
    padding: 0 40px 60px;
}

.pi-related-title {
    font-family: 'Unbounded', cursive !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 32px !important;
    color: #1a1a2e !important;
}

.pi-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.pi-related-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(99, 102, 241, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(99, 102, 241, 0.06);
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}

.pi-related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.18);
    text-decoration: none !important;
}

.pi-related-card-thumb {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.pi-related-card:nth-child(1) .pi-related-card-thumb { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.pi-related-card:nth-child(2) .pi-related-card-thumb { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.pi-related-card:nth-child(3) .pi-related-card-thumb { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }

.pi-related-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pi-related-card-body {
    padding: 24px;
}

.pi-related-card-cat {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6366f1;
    margin-bottom: 8px;
}

.pi-related-card-body h3 {
    font-family: 'Unbounded', cursive !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
    color: #1a1a2e !important;
}

.pi-related-card-body p {
    font-size: 0.82rem !important;
    color: #64748b !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

/* ═══════════════════════════════════════════════════
   CTA BOTTOM (после related)
═══════════════════════════════════════════════════ */
.pi-single-cta-bottom {
    position: relative;
    margin: 0 40px 60px;
    border-radius: 32px;
    padding: 72px 60px;
    background: linear-gradient(160deg, #0f0c29 0%, #302b63 40%, #24243e 100%);
    text-align: center;
    overflow: hidden;
}

.pi-single-cta-bottom::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    filter: blur(100px);
    top: -100px;
    right: -50px;
    animation: pi-float 8s ease-in-out infinite;
    pointer-events: none;
}

.pi-single-cta-bottom h2 {
    font-family: 'Unbounded', cursive !important;
    font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
    font-weight: 900 !important;
    color: #fff !important;
    margin-bottom: 12px !important;
    position: relative;
    z-index: 1;
}

.pi-single-cta-bottom p {
    color: rgba(226, 232, 240, 0.8) !important;
    max-width: 480px;
    margin: 0 auto 28px !important;
    line-height: 1.6 !important;
    position: relative;
    z-index: 1;
}

.pi-single-cta-bottom .pi-btn {
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .pi-article-layout {
        grid-template-columns: 1fr;
    }

    .pi-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .pi-toc { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .pi-article-hero { padding: 110px 20px 40px; }
    .pi-article-layout { padding: 32px 20px 60px; gap: 32px; }
    .pi-sidebar { grid-template-columns: 1fr; }
    .pi-related-grid { grid-template-columns: 1fr; }
    .pi-related-section { padding: 0 20px 60px; }
    .pi-single-cta-bottom { margin: 0 20px 40px; padding: 50px 24px; }
    .pi-article-content h2 { padding-left: 16px; }
    .pi-article-footer-bar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .pi-article-meta-hero { flex-direction: column; gap: 8px; }
    .pi-related-grid { grid-template-columns: 1fr; }
}
