/*
 * GuideDoc Blog Redesign - Light Theme
 * =====================================
 * This CSS should be loaded ONLY on blog detail pages.
 * All selectors are scoped under .blog-redesign to avoid
 * conflicts with the existing site styles.
 *
 * Add class="blog-redesign" to the <body> or a wrapper <div>
 * on blog detail pages to activate these styles.
 *
 * Font dependency: add this to <head> on blog pages:
 * <link href="https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap" rel="stylesheet">
 * (Montserrat is already loaded site-wide)
 */

/* ===========================
   BASE OVERRIDES
   =========================== */
   .blog-redesign {
    background-color: #fafaf9 !important;
}

.blog-redesign .blog-details {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 18px;
    line-height: 1.78;
    color: #374151;
    -webkit-font-smoothing: antialiased;
}

.blog-redesign .blog-details a {
    color: #1696db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-redesign .blog-details a:hover {
    color: #1ba8f0;
}

.blog-redesign .blog-details strong {
    color: #111827;
}

.blog-redesign .blog-details p {
    margin-bottom: 1.5em;
}

/* ===========================
   HERO - LIGHT THEME OVERLAY
   =========================== */
.blog-redesign .blog-header-image {
    box-shadow: none;
}

/* ===========================
   ARTICLE LAYOUT - CENTERED
   =========================== */
.blog-redesign .blog-details {
    max-width: 720px;
    /* margin: 0 auto; */
    padding-top: 40px;
    padding-bottom: 60px;
}

/* ===========================
   HEADINGS (H2) - Montserrat blue
   =========================== */
.blog-redesign .blog-details h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1696db;
    line-height: 1.3;
    margin-top: 56px;
    margin-bottom: 28px;
    letter-spacing: -0.3px;
}

/* ===========================
   IMAGES - Rounded with shadow
   =========================== */
.blog-redesign .blog-details img {
    border-radius: 8px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1) !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    height: auto !important;
}

/* ===========================
   HR SEPARATORS - Replace with spacing
   =========================== */
.blog-redesign .blog-details hr {
    border: none;
    height: 0;
    margin: 0;
    padding: 0;
}

/* ===========================
   TABLE OF CONTENTS
   (Inject via Django template before article body)
   =========================== */
.blog-redesign .blog-toc {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 3px solid #1696db;
    border-radius: 8px;
    padding: 28px 32px;
    margin: 0 0 48px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.blog-redesign .blog-toc h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1696db;
    margin-bottom: 16px;
}

.blog-redesign .blog-toc ol {
    list-style: none;
    counter-reset: toc-counter;
    padding: 0;
    margin: 0;
}

.blog-redesign .blog-toc ol li {
    counter-increment: toc-counter;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.blog-redesign .blog-toc ol li::before {
    content: counter(toc-counter) ".";
    color: #9ca3af;
    margin-right: 10px;
    font-weight: 500;
}

.blog-redesign .blog-toc ol li a {
    color: #4b5563;
}

.blog-redesign .blog-toc ol li a:hover {
    color: #1696db;
}

/* ===========================
   WATCH CTA BOX
   (Replaces "Ideal for" blocks)
   =========================== */
.blog-redesign .watch-cta-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f4ff 100%);
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 28px 24px;
    margin: 28px 0 8px;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.blog-redesign .watch-cta-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 150, 219, 0.12);
}

.blog-redesign .watch-cta-box p {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.45;
    margin-bottom: 0;
}

.blog-redesign .watch-cta-box a {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background-color: #1696db;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.blog-redesign .watch-cta-box a:hover {
    background-color: #1ba8f0;
    color: #ffffff;
    transform: translateY(-1px);
}

/* ===========================
   MID-ARTICLE CTA
   =========================== */
.blog-redesign .mid-cta {
    padding: 3px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1696db, #6366f1);
    margin: 20px 0 56px;
}

.blog-redesign .mid-cta-inner {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 40px 36px;
    text-align: center;
}

.blog-redesign .mid-cta-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #1696db;
    margin-bottom: 12px;
}

.blog-redesign .mid-cta-headline {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    margin-bottom: 12px;
}

.blog-redesign .mid-cta-sub {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.6;
}

.blog-redesign .btn-cta {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background-color: #1696db;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
    box-shadow: 0 2px 8px rgba(22, 150, 219, 0.25);
}

.blog-redesign .btn-cta:hover {
    background-color: #1ba8f0;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ===========================
   TOP CLAIM BAR
   (Place between hero and article body)
   =========================== */
.blog-redesign .top-claim {
    background-color: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 0;
}

.blog-redesign .top-claim-inner {
    /* max-width: 900px; */
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blog-redesign .top-claim-text {
    text-align: center;
}

.blog-redesign .top-claim-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1696db;
    margin-bottom: 4px;
    margin-top:0;
}

.blog-redesign .top-claim-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.blog-redesign .top-claim-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background-color: #1696db;
    padding: 10px 22px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.blog-redesign .top-claim-btn:hover {
    background-color: #1ba8f0;
    color: #ffffff;
}

.blog-redesign .top-claim-laurels {
    display: flex;
    gap: 20px;
}

.blog-redesign .top-laurel {
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-redesign .top-laurel img {
    height: 32px;
    width: auto;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.blog-redesign .top-laurel p {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: #4b5563;
    line-height: 1.4;
    margin: 0;
    text-align: center;
    white-space: nowrap;
}

/* ===========================
   BOTTOM CLAIMS
   (Place after article, before footer)
   =========================== */
.blog-redesign .bottom-claims {
    background-color: #fafaf9;
    padding: 60px 0 48px;
    border-top: 1px solid #e5e7eb;
}

.blog-redesign .bottom-claims-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.blog-redesign .bottom-claims-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #1696db;
    margin-bottom: 10px;
}

.blog-redesign .bottom-claims-headline {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
    margin-bottom: 24px;
}

.blog-redesign .bottom-claims-btn {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background-color: #1696db;
    padding: 14px 32px;
    border-radius: 5px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    margin-bottom: 48px;
}

.blog-redesign .bottom-claims-btn:hover {
    background-color: #1ba8f0;
    color: #ffffff;
}

.blog-redesign .bottom-claims-laurels {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.blog-redesign .bottom-laurel-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.blog-redesign .bottom-laurel-item p {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    line-height: 1.45;
    margin: 0;
    text-align: center;
}

.blog-redesign .bottom-laurel-icon {
    height: 52px;
    width: auto;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* ===========================
   FOOTER OVERRIDES
   =========================== */
.blog-redesign #footer {
    background-color: #1a1a1c;
}

.blog-redesign .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-redesign .footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
    .blog-redesign .blog-details {
        font-size: 17px;
        line-height: 1.75;
    }

    .blog-redesign .blog-details h2 {
        font-size: 24px;
    }

    .blog-redesign .blog-toc {
        padding: 20px 24px;
    }

    .blog-redesign .mid-cta-inner {
        padding: 32px 24px;
    }

    .blog-redesign .mid-cta-headline {
        font-size: 20px;
    }

    .blog-redesign .bottom-claims-laurels {
        flex-direction: column;
        gap: 20px;
    }

    .blog-redesign .bottom-claims-headline {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .blog-redesign .blog-details {
        font-size: 16px;
    }
}