/* =========================================================
   single-post.css
   Custom Blog Post Redesign — Rubik font, black text
   Only loaded on single blog posts (see functions.php)
   ========================================================= */

.custom-blog-header,
.custom-blog-header *,
.custom-blog-body,
.custom-blog-body * {
    font-family: 'Rubik', sans-serif;
    color: #000000;
    box-sizing: border-box;
}

/* ---------- HEADER ---------- */

.custom-blog-header {
    display: flex;
    align-items: center;
    gap: 48px;
    max-width: 1280px;
    margin: 50px auto;
    padding: 0 24px;
}

.blog-header-left {
    width: 40%;
    flex-shrink: 0;
}

.blog-header-right {
    width: 60%;
}

.blog-header-right img {
    width: 100%;
    border-radius: 25px;
    height: auto;
}

.blog-title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px;
}

.blog-excerpt {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 28px;
    opacity: 0.85;
}

.copy-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.copy-link-btn:hover {
    opacity: 0.7;
}

.blog-featured-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    object-fit: cover;
}

/* ---------- BODY ---------- */

.custom-blog-body {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    max-width: 1280px;
    margin: 0 auto 80px;
    padding: 0 24px;
}

.custom-blog-body h2 {
	font-weight: 600;
}

.blog-content-col {
    width: 75%;
    font-size: 16px;
    line-height: 1.85;
}

.blog-content-col h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 16px;
    scroll-margin-top: 24px;
}

.blog-content-col h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 32px 0 14px;
    scroll-margin-top: 24px;
}

.blog-content-col p {
    margin: 0 0 18px;
}

.blog-content-col img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.blog-sidebar-col {
    width: 25%;
    min-width: 220px;
    position: sticky;
    top: 24px;
}

.toc-box {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.toc-heading {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 14px;
}

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

.toc-list li {
    margin-bottom: 12px;
    font-size: 13.5px;
    line-height: 1.4;
}

.toc-list li.toc-sub {
    padding-left: 14px;
    opacity: 0.75;
}

.toc-list a {
    color: #000;
    text-decoration: none;
}

.toc-list a:hover,
.toc-list a.is-active {
    text-decoration: underline;
    font-weight: 500;
}

.newsletter-box {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    padding: 30px;
    background-image: url("../images/newsletter-bg.jpg");
    background-size: cover;
    background-position: center;
}

.newsletter-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #4C1D95 0%, #B256BD 100%);
}

.newsletter-content {
    position: relative;
    z-index: 2;
}

.newsletter-title {
    margin: 0 0 28px;
    color: #fff;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.4;
}

.newsletter-title span {
    display: block;
    color: #E93F87;
    font-size: 42px;
    font-weight: 700;
    margin: 8px 0;
    line-height: 1;
}

.newsletter-form input {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,.7);
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 16px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,.9);
}

.newsletter-form input:focus {
    outline: none;
    border-color: #ffffff;
}

.newsletter-form button {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 8px;
    background: #E93F87;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
}

.newsletter-form button:hover {
    background: #ea6708;
}

.newsletter-form input::placeholder {
	font-family: 'Rubik';
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {
    .custom-blog-header,
    .custom-blog-body {
        flex-direction: column;
    }

    .blog-header-left,
    .blog-header-right,
    .blog-content-col,
    .blog-sidebar-col {
        width: 100%;
    }

    .blog-sidebar-col {
        position: static;
    }

    .blog-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
	.toc-box {
		display: none;
    }
}