/* ==========================================================================
   PREMIUM MODERN BLOG PAGE STYLES - blog.css
   ========================================================================== */

/* ── LAYOUT & BASE ── */
.blog-container {
    background: #f8fafc;
    min-height: 100vh;
}

/* ── BLOG HERO ── */
.blog-hero {
    background: radial-gradient(circle at top right, rgba(230, 60, 53, 0.15), transparent 45%), 
                radial-gradient(circle at bottom left, rgba(17, 19, 94, 0.2), transparent 50%),
                var(--ink);
    color: white;
    padding: 80px 24px 120px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), 
                      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.blog-hero .container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
}

.blog-meta {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta span:not(:last-child)::after {
    content: '•';
    color: var(--mid);
    margin-left: 12px;
    font-weight: bold;
}

.blog-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 5.5vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.15;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 30%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.blog-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(16px, 2.2vw, 19px);
    color: rgba(255, 255, 255, 0.75);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.blog-hero-image-wrap {
    max-width: 900px;
    margin: -60px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.blog-hero-image {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 
                0 0 40px rgba(17, 19, 94, 0.2);
    border: 4px solid #ffffff;
    transition: transform 0.4s ease;
}

.blog-hero-image:hover {
    transform: scale(1.01);
}

/* ── ARTICLE CONTAINER ── */
.blog-article {
    padding: 100px 0 80px;
    position: relative;
}

.blog-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    padding: 0 24px;
}

/* ── STICKY TABLE OF CONTENTS ── */
.toc-container {
    background: #ffffff;
    padding: 30px 24px;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: 0 15px 35px rgba(17, 19, 94, 0.03);
    transition: all 0.3s ease;
}

.toc-container:hover {
    box-shadow: 0 20px 40px rgba(17, 19, 94, 0.05);
    border-color: rgba(17, 19, 94, 0.12);
}

.toc-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 16px;
    background: var(--mid);
    border-radius: 100px;
}

.toc-list ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toc-list li {
    margin: 0;
}

.toc-list a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    border-left: 2px solid transparent;
}

.toc-list a:hover {
    color: var(--navy);
    background: rgba(17, 19, 94, 0.03);
    border-left-color: var(--mid);
    padding-left: 18px;
}

/* ── MAIN CONTENT ── */
.blog-main {
    background: #ffffff;
    padding: 56px 48px;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 15px 35px rgba(17, 19, 94, 0.03);
    line-height: 1.85;
}

.blog-section {
    margin-bottom: 60px;
    scroll-margin-top: 100px;
}

.blog-section:last-child {
    margin-bottom: 0;
}

.section-heading {
    font-family: 'Syne', sans-serif;
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 24px;
    padding-top: 10px;
    line-height: 1.25;
    scroll-margin-top: 120px;
    position: relative;
}

.subsection-heading {
    font-family: 'Syne', sans-serif;
    font-size: clamp(18px, 2.5vw, 21px);
    font-weight: 700;
    color: var(--ink);
    margin-top: 36px;
    margin-bottom: 16px;
}

.blog-paragraph {
    color: #3e4c6e;
    margin-bottom: 20px;
    font-size: 15.5px;
    line-height: 1.85;
}

.blog-paragraph strong {
    color: var(--navy);
    font-weight: 600;
}

/* ── HIGHLIGHT LISTS ── */
.blog-list {
    list-style: none;
    margin-bottom: 24px;
    padding-left: 0;
}

.blog-list li {
    padding-left: 28px;
    margin-bottom: 14px;
    position: relative;
    color: #3e4c6e;
    font-size: 15px;
}

.blog-list li::before {
    content: '✓';
    position: absolute;
    left: 4px;
    top: 2px;
    color: var(--mid);
    font-weight: 800;
    font-size: 16px;
}

/* ── INFOCARDS & WARNINGS ── */
.highlight-box {
    background: linear-gradient(135deg, rgba(17, 19, 94, 0.02) 0%, rgba(17, 19, 94, 0.05) 100%);
    border-left: 4px solid var(--navy);
    padding: 30px;
    border-radius: 0 16px 16px 0;
    margin: 32px 0;
}

.info-card {
    background: linear-gradient(135deg, #f0f5ff 0%, #e3ecfc 100%);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid rgba(17, 19, 94, 0.08);
    position: relative;
    overflow: hidden;
}

.info-card-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-box {
    background: linear-gradient(135deg, #fff5f5 0%, #ffebeb 100%);
    border-left: 4px solid var(--error);
    padding: 30px;
    border-radius: 0 16px 16px 0;
    margin: 36px 0;
}

.warning-box h3 {
    color: var(--error);
    margin-bottom: 16px;
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── STEP CARD TIMELINE ── */
.step-box {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 28px;
    margin-bottom: 20px;
    border-radius: 16px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 4px solid var(--cyan);
}

.step-box:hover {
    border-left-color: var(--mid);
    box-shadow: 0 15px 35px rgba(17, 19, 94, 0.08);
    transform: translateY(-3px);
}

.step-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 10px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-description {
    color: #4b5563;
    font-size: 14.5px;
    line-height: 1.7;
}

/* ── IMAGES AND CAPTIONS ── */
.blog-image {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 16px;
    margin: 36px 0 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: transform 0.3s ease;
}

.blog-image:hover {
    transform: scale(1.005);
}

.image-caption {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: var(--muted);
    font-style: italic;
    text-align: center;
    margin-bottom: 36px;
}

/* ── CHECKLISTS ── */
.checklist {
    background: #f8fafc;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    margin: 32px 0;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 14px;
}

.checklist-item:last-child {
    margin-bottom: 0;
}

.checklist-item input[type="checkbox"] {
    position: relative;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(17, 19, 94, 0.3);
    border-radius: 6px;
    appearance: none;
    outline: none;
    cursor: not-allowed;
    background-color: #fff;
    margin-top: 2px;
    transition: all 0.2s;
}

.checklist-item input[type="checkbox"]:checked {
    background-color: var(--mid);
    border-color: var(--mid);
}

.checklist-item input[type="checkbox"]:checked::before {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 13px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checklist-item label {
    cursor: default;
    color: #374151;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

/* ── CTA CONVERSION BANNER ── */
.blog-cta {
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent), 
                var(--navy);
    color: white;
    padding: 56px 40px;
    border-radius: 20px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    /* overflow: hidden; */
    box-shadow: 0 20px 40px rgba(17, 19, 94, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-cta h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(22px, 3.5vw, 28px);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.blog-cta p {
    font-size: 15.5px;
    margin-bottom: 30px;
    opacity: 0.85;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.blog-cta-btn {
    display: inline-block;
    background: var(--gold);
    color: var(--ink);
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 13.5px;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(245, 200, 66, 0.35);
}

.blog-cta-btn:hover {
    background: #ffe066;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 200, 66, 0.5);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */

@media (max-width: 1024px) {
    .blog-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .toc-container {
        position: static;
        top: auto;
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 60px 16px 90px;
    }

    .blog-hero-image-wrap {
        margin-top: -40px;
    }

    .blog-hero-image {
        max-height: 300px;
        border-radius: 16px;
    }

    .blog-article {
        padding: 60px 0 50px;
    }

    .blog-main {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .blog-image {
        height: 240px;
        margin: 24px 0 10px;
    }

    .blog-cta {
        padding: 40px 24px;
    }
}
