/* =============================================
   SINGLE POST TEMPLATE STYLES (single.php)

   Extracted from an inline <style> block so it can
   be cached and conditionally enqueued only on
   single blog post pages (is_singular('post')).
   Uses the sp- (single post) prefix throughout —
   self-contained, does not rely on main.css or
   blog.css.
   ============================================= */

/* ── PROGRESS BAR ── */
.sp-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--blue-primary), var(--cyan));
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* ── HERO SPLIT LAYOUT (image inside hero) ── */
.sp-hero-inner--split {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: center;
}

.sp-hero-text {
    display: flex;
    flex-direction: column;
}

.sp-hero-img {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(10, 106, 255, 0.18), 0 2px 12px rgba(10, 30, 60, 0.12);
    aspect-ratio: 16/10;
    min-width: 0;
    width: 100%;
    border: 2px solid var(--blue-mid);
    outline: 6px solid rgba(10, 106, 255, 0.08);
    outline-offset: 0px;
}

.sp-hero-featured-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 14px;
    margin: 0 !important;
    box-shadow: none !important;
    background: linear-gradient(135deg, #e8f0ff 0%, #f0f6ff 100%);
}


/* ── RESPONSIVE: stack on mobile ── */
@media (max-width: 860px) {
    .sp-hero-inner--split {
        grid-template-columns: 1fr;
    }
    .sp-hero-img {
        order: 1; /* image below text/author on mobile */
        aspect-ratio: 16/9;
    }
}

/* ── HERO ── */
.sp-hero {
    /* background set dynamically per post via inline style */
    padding: 40px 5% 40px;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.sp-hero::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(10,106,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.sp-hero::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0,180,216,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.sp-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    position: relative;
    z-index: 1;
}

/* Breadcrumb */
.sp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.sp-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}
.sp-breadcrumb a:hover { color: var(--blue-primary); text-decoration: underline; }

/* Category pill */
.sp-cat-pill {
    display: inline-block;
    background: var(--blue-light);
    color: var(--blue-primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
    text-decoration: none;
    border: 1px solid var(--blue-mid);
    transition: background 0.2s;
}
.sp-cat-pill:hover { background: var(--blue-mid); }

/* Title */
.sp-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    background: linear-gradient(135deg, var(--blue-primary), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 28px;
    max-width: 1000px;
}

/* Meta row */
.sp-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.sp-meta-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sp-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover;
    border: 2px solid var(--blue-mid);
}
.sp-meta-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sp-meta-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}
.sp-meta-date {
    font-size: 12px;
    color: var(--text-muted);
}
.sp-meta-right {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.sp-meta-chip {
    background: var(--blue-light);
    color: var(--blue-primary);
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 50px;
    border: 1px solid var(--blue-mid);
}
.sp-meta-chip--cat {
    background: var(--blue-mid);
    color: var(--blue-dark);
    border-color: var(--blue-mid);
}

/* ── FEATURED IMAGE ── */
.sp-featured-img-wrap {
    background: var(--off-white);
    padding: 0 5%;
}
.sp-featured-img-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 0;
}
.sp-featured-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    box-shadow: var(--shadow-lg);
}

/* ── LAYOUT ── */
.sp-layout {
    background: var(--off-white);
    padding: 40px 5%;
}
.sp-layout-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

/* ── ARTICLE TYPOGRAPHY ── */
.sp-article {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px 52px;
    box-shadow: var(--shadow-sm);
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.sp-article h2 {
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 700;
    color: var(--blue-primary);
    margin: 48px 0 16px;
    letter-spacing: -0.4px;
    line-height: 1.25;
    padding-top: 0;
    border-top: none;
}
.sp-article h2:first-child { margin-top: 0; }

.sp-article h3 {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;
    color: var(--text-primary);
    margin: 36px 0 12px;
    letter-spacing: -0.3px;
}

.sp-article h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 28px 0 10px;
}

.sp-article p {
    margin-bottom: 20px;
}

.sp-article a {
    color: var(--blue-primary);
    text-decoration: underline;
    text-decoration-color: var(--blue-mid);
    text-underline-offset: 3px;
    font-weight: 500;
    transition: text-decoration-color 0.2s, color 0.2s;
}
.sp-article a:hover {
    color: var(--blue-dark);
    text-decoration-color: var(--blue-primary);
}

.sp-article strong,
.sp-article b {
    color: var(--text-primary);
    font-weight: 500;
}

/* Styled lists */
.sp-article ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--blue-mid);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(10,106,255,0.08);
}
.sp-article ul li {
    padding: 14px 20px 14px 42px;
    position: relative;
    color: black;
    background: #c5d9ff;
    font-size: 16px;
    line-height: 1.65;
    border-left: 4px solid var(--blue-primary);
    border-bottom: none;
}
.sp-article ul li:last-child { border-bottom: none; }
.sp-article ul li::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 22px;
    width: 8px;
    height: 8px;
    background: var(--blue-primary);
    border-radius: 50%;
    display: block;
}

.sp-article ol {
    padding-left: 0;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    counter-reset: sp-counter;
    border: 1px solid var(--blue-mid);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(10,106,255,0.08);
}
.sp-article ol li {
    padding: 14px 20px 14px 56px;
    color: var(--text-secondary);
    background: #c5d9ff;
    font-size: 16px;
    line-height: 1.65;
    position: relative;
    counter-increment: sp-counter;
    border-left: 4px solid var(--blue-primary);
    border-bottom: none;
}
.sp-article ol li:last-child { border-bottom: none; }
.sp-article ol li::before {
    content: counter(sp-counter);
    position: absolute;
    left: 18px;
    top: 14px;
    width: 24px;
    height: 24px;
    background: var(--blue-primary);
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Blockquote */
.sp-article blockquote {
    border-left: 4px solid var(--blue-primary);
    background: var(--blue-light);
    margin: 32px 0;
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    font-size: 16px;
    font-style: italic;
    color: var(--text-primary);
}
.sp-article blockquote p { margin-bottom: 0; }

/* Code */
.sp-article code {
    background: var(--light-gray);
    color: #d63384;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}
.sp-article pre {
    background: #0f1b2d;
    color: #e2e8f4;
    padding: 24px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 24px 0;
    font-size: 14px;
}
.sp-article pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

/* Images */
.sp-article img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
    box-shadow: var(--shadow-md);
    display: block;
}

/* Tables */
.wp-block-table {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    margin: 28px 0;
}
.sp-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(10,106,255,0.12), 0 1px 4px rgba(10,30,60,0.08);
    border: 2px solid var(--blue-primary);
}
.sp-article th {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
    color: #ffffff !important;
    font-weight: 700;
    padding: 14px 18px;
    text-align: left;
    border: none;
    border-right: 1px solid rgba(255,255,255,0.2);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.sp-article th:last-child { border-right: none; }

.sp-article th,
.sp-article th *,
.sp-article th p,
.sp-article th span {
    color: #ffffff !important;
}

.sp-article td {
    padding: 12px 18px;
    border: none;
    border-bottom: 1px solid var(--blue-mid);
    border-right: 1px solid var(--blue-mid);
    color: var(--text-secondary);
    vertical-align: top;
}
.sp-article td:last-child { border-right: none; }
.sp-article tr:last-child td { border-bottom: none; }
.sp-article tr:nth-child(even) td { background: var(--blue-light); }
.sp-article tr:nth-child(odd) td { background: white; }

/* Callout / Note boxes */
.sp-article .callout,
.sp-article .wp-block-info,
.sp-article .note {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-left: 4px solid #f59e0b;
    border-radius: 0 12px 12px 0;
    padding: 18px 22px;
    margin: 28px 0;
    font-size: 15px;
    color: #92400e;
}

/* ── TAGS ── */
.sp-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
    padding: 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
}
.sp-tags-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: 4px;
}
.sp-tag {
    background: var(--light-gray);
    color: var(--text-secondary);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.sp-tag:hover {
    background: var(--blue-light);
    color: var(--blue-primary);
    border-color: var(--blue-mid);
}

/* ── AUTHOR BOX ── */
.sp-author-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
    border: none;
    border-radius: 20px;
    padding: 28px 32px;
    margin-top: 24px;
}
.sp-author-avatar {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid rgba(255,255,255,0.3);
}
.sp-author-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sp-author-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
.sp-author-name {
    font-size: 20px;
    font-weight: 700;
    color: white;
}
.sp-author-role {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    font-weight: 400;
}
.sp-author-role a {
    color: white;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.4);
    text-underline-offset: 3px;
}
.sp-author-role a:hover { text-decoration-color: white; }
.sp-author-content p {
    font-size: 14px;
    color: rgba(255,255,255,0.82);
    line-height: 1.7;
    margin: 8px 0 0;
}
.sp-author-content p a {
    color: white;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.4);
    text-underline-offset: 3px;
}
.sp-author-content p a:hover { text-decoration-color: white; }
.sp-author-ctas {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.sp-author-cta {
    display: inline-flex;
    align-items: center;
    padding: 9px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-family: 'Instrument Sans', sans-serif;
}
.sp-author-cta--primary {
    background: white;
    color: var(--blue-primary);
}
.sp-author-cta--primary:hover {
    background: var(--blue-light);
    transform: translateY(-1px);
}
.sp-author-cta--secondary {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}
.sp-author-cta--secondary:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-1px);
}

/* ── POST NAVIGATION ── */
.sp-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}
.sp-nav-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 22px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.sp-nav-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-primary), var(--cyan));
    transform: scaleX(0);
    transition: transform 0.3s;
}
.sp-nav-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--blue-mid); }
.sp-nav-card:hover::before { transform: scaleX(1); }
.sp-nav-next { text-align: right; }
.sp-nav-dir { font-size: 11px; font-weight: 600; color: var(--blue-primary); text-transform: uppercase; letter-spacing: 0.06em; }
.sp-nav-cat { font-size: 11px; color: var(--text-muted); }
.sp-nav-title { font-size: 14px; font-weight: 600; color: var(--text-primary); line-height: 1.4; }

/* ── RELATED POSTS ── */
.sp-related { margin-top: 40px; }
.sp-related-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}
.sp-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.sp-related-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}
.sp-related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-mid); }
.sp-related-img {
    position: relative;
    height: 130px;
    overflow: hidden;
}
.sp-related-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.sp-related-card:hover .sp-related-img img { transform: scale(1.05); }
.sp-related-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.sp-related-time {
    position: absolute; bottom: 8px; right: 8px;
    background: rgba(10,30,60,0.7); color: white;
    font-size: 10px; font-weight: 600;
    padding: 3px 8px; border-radius: 50px;
    backdrop-filter: blur(4px);
}
.sp-related-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.sp-related-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue-primary); }
.sp-related-body h4 { font-size: 13px; font-weight: 700; color: var(--text-primary); line-height: 1.4; }
.sp-related-date { font-size: 11px; color: var(--text-muted); margin-top: auto; }

/* ── SIDEBAR ── */
.sp-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.sp-widget {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

/* TOC widget */
.sp-toc-widget {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark)) !important;
    border-color: transparent !important;
}
.sp-toc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 13px;
}
.sp-toc-header strong { flex: 1; font-size: 14px; color: white; }
.sp-toc-toggle {
    background: rgba(255,255,255,0.15);
    border: none;
    width: 24px; height: 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    color: white;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}
.sp-toc-toggle:hover { background: rgba(255,255,255,0.25); }

.sp-toc {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 400px;
    overflow-y: auto;
    scroll-behavior: smooth;
}
.sp-toc::-webkit-scrollbar { width: 3px; }
.sp-toc::-webkit-scrollbar-track { background: rgba(255,255,255,0.1); border-radius: 2px; }
.sp-toc::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 2px; }

.sp-toc-item {
    display: block;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1.4;
    border-left: 2px solid transparent;
}
.sp-toc-item,
.sp-toc-item *,
.sp-toc-item span,
.sp-toc-item a {
    color: #ffffff !important;
}
.sp-toc-item:hover { background: rgba(255,255,255,0.12); color: #ffffff !important; }
.sp-toc-item.active { background: rgba(255,255,255,0.15); color: #ffffff !important; border-left-color: rgba(255,255,255,0.8); font-weight: 600; }
.sp-toc-h3 { padding-left: 20px; font-size: 11px; }

/* Reading progress widget */
.sp-reading-widget { padding: 16px 18px; }
.sp-reading-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 10px;
}
.sp-reading-pct { font-weight: 700; color: var(--blue-primary); font-size: 13px; }
.sp-reading-bar-track {
    height: 6px;
    background: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}
.sp-reading-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--blue-primary), var(--cyan));
    border-radius: 4px;
    transition: width 0.2s ease;
}
.sp-reading-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

/* Newsletter widget */
.sp-widget--newsletter {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
    border-color: transparent;
    text-align: center;
    color: white;
}
.sp-nl-icon { font-size: 28px; margin-bottom: 8px; }
.sp-widget--newsletter h4 { font-size: 15px; font-weight: 700; color: white; margin-bottom: 6px; font-family: 'Bricolage Grotesque', sans-serif; }
.sp-widget--newsletter p { font-size: 12px; color: rgba(255,255,255,0.8); margin-bottom: 14px; line-height: 1.5; }
.sp-nl-form { display: flex; flex-direction: column; gap: 7px; }
.sp-nl-form input { border: none; border-radius: 8px; padding: 10px 12px; font-size: 13px; font-family: 'Instrument Sans', sans-serif; outline: none; }
.sp-nl-form button { background: white; color: var(--blue-primary); border: none; border-radius: 8px; padding: 10px 12px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: 'Instrument Sans', sans-serif; transition: all 0.2s; }
.sp-nl-form button:hover { background: var(--blue-light); }
.sp-nl-note { font-size: 10px; color: rgba(255,255,255,0.55); display: block; margin-top: 8px; }

/* Tools widget */
.sp-widget--tools { text-align: center; }
.sp-tools-icon { font-size: 32px; margin-bottom: 8px; }
.sp-widget--tools h4 { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; font-family: 'Bricolage Grotesque', sans-serif; }
.sp-widget--tools p { font-size: 12px; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.5; }

/* ── FAQ ACCORDION (blog posts) ── */
.vb-blog-faq {
    margin: 40px 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--blue-mid);
    box-shadow: 0 4px 20px rgba(10,106,255,0.10);
}

.vb-blog-faq > h2 {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
    font-size: 20px !important;
    font-weight: 700;
    padding: 18px 24px !important;
    margin: 0 !important;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vb-blog-faq > h2::before {
    content: none;
}

.vb-blog-faq-item {
    border-top: 1px solid var(--blue-mid);
    background: white;
}

.vb-blog-faq-item:first-of-type {
    border-top: none;
}

.vb-blog-faq-item h3 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 15px !important;
    font-weight: 600;
    color: var(--text-primary) !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 24px !important;
    transition: color 0.2s, background 0.2s;
    line-height: 1.45;
    user-select: none;
}

.vb-blog-faq-item h3:hover {
    color: var(--blue-primary) !important;
    background: var(--blue-light);
}

.vb-blog-faq-item h3.vb-faq-open {
    color: var(--blue-primary) !important;
    background: var(--blue-light);
    border-bottom: 1px solid var(--blue-mid);
}

.vb-blog-faq-item h3::after {
    content: '＋';
    font-size: 18px;
    font-weight: 400;
    color: var(--blue-primary);
    flex-shrink: 0;
    transition: transform 0.25s ease;
    line-height: 1;
}

.vb-blog-faq-item h3.vb-faq-open::after {
    transform: rotate(45deg);
}

.vb-blog-faq-item > div {
    display: none;
    padding: 18px 24px 20px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-secondary);
    background: #fafcff;
    animation: vbFaqSlide 0.25s ease;
}

.vb-blog-faq-item > div p { margin-bottom: 12px; }
.vb-blog-faq-item > div p:last-child { margin-bottom: 0; }
.vb-blog-faq-item > div ul,
.vb-blog-faq-item > div ol { margin-bottom: 12px; }

@keyframes vbFaqSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .sp-layout-inner { grid-template-columns: 1fr 260px; gap: 28px; }
    .sp-article { padding: 36px 32px; }
    .sp-related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .sp-layout-inner { grid-template-columns: 1fr; }
    .sp-sidebar { position: static; }
    .sp-post-nav { grid-template-columns: 1fr; }
    .sp-related-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
    .sp-hero { padding: 32px 5% 28px; }
    .sp-article { padding: 24px 20px; font-size: 16px; }
    .sp-author-box { flex-direction: column; padding: 24px 20px; }
    .sp-related-grid { grid-template-columns: 1fr; }
    .sp-meta-row { flex-direction: row; align-items: center; justify-content: space-between; }
}
