/* --- COMPACT FEATURED IMAGE --- */
/* Default: For screens larger than 1024px */
.blog-header {
    padding-top: 60px !important;
}

/* For screens 1024px and below */
@media (max-width: 1024px) {
    .blog-header {
        padding: clamp(30px, 5vw, 60px) 24px;
    }
}
/* 1. Base Container Styles (Mobile/Default) */
.container {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 24px; /* Keeps content off the edges on mobile */
}

/* 2. Responsive adjustment for Large Screens */
@media (min-width: 1400px) {
    /* Use a more specific selector or ensure this is lower in the file */
    .container, 
    .container-lg, 
    .container-md, 
    .container-sm, 
    .container-xl, 
    .container-xxl {
        max-width: 1320px;
        /* You can set padding: 0 here if you want it flush on large screens */
    }
}
        .featured-image-container {
            width: 100%;
            height: auto; /* Small height as requested */
            border-radius: 20px;
            overflow: hidden;
            border: 1px solid var(--border);
            margin-top: 40px;
        }
        .featured-image-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* --- AUTHOR & DATE STRIP --- */
        .meta-strip {
            display: flex;
            align-items: center;
            justify-content: flex-start; /* Left side as requested */
            gap: 20px;
            padding: 25px 0;
            border-bottom: 1px solid var(--border);
            margin-bottom: 35px;
        }
        .author-info { display: flex; align-items: center; gap: 12px; }
        .author-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); }
        .author-name { font-weight: 600; font-size: 0.95rem; }
        .publish-date { color: var(--text-muted); font-size: 0.9rem; border-left: 1px solid var(--border); padding-left: 20px; }

        /* --- ARTICLE BODY --- */
        .article-body { font-size: .95rem; color: var(--text-muted); opacity: 0.95; }
        .article-body h2 { margin: 40px 0 20px; font-size: 1.4rem; color: var(--text-main); }
        .article-body ol{
            padding-left:40px !important;
        }

            /* --- THEME TOGGLE --- */
            .theme-toggle {
                width: 40px;
                height: 40px;
                border-radius: 50%;
                border: 1px solid var(--border);
                background: var(--bg-card);
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
            }

        @media (max-width: 768px) {
            .featured-image-container { height: 250px; }
            .meta-strip { flex-direction: column; align-items: flex-start; gap: 10px; }
            .publish-date { border-left: none; padding-left: 0; }
        }
		.cat-pill {
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    color: var(--text-main); 
    padding: 6px 15px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-size: 0.85rem; 
    transition: all 0.2s ease;
}

.cat-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}


/* --- Base Styles (Mobile) --- */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 24px;
    padding-left: 24px;
}

/* --- Breakpoints (Small to Large) --- */

@media (min-width: 576px) {
    .container, .container-sm {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container, .container-md, .container-sm {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container, .container-lg, .container-md, .container-sm {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1140px;
    }
}

/* Your custom override from the previous step */
@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1320px;
    }
}
/* Lock content inside article container */
.article-body {
    max-width: 100%;
    overflow-x: hidden;
}

    /* Images, videos, embeds */
    .article-body img,
    .article-body video,
    .article-body iframe {
        max-width: 100% !important;
        height: auto !important;
        width: auto !important;
        display: block;
    }

    /* Tables (common overflow issue) */
    .article-body table {
        max-width: 100%;
        width: 100%;
        border-collapse: collapse;
    }

    /* Code blocks & long words */
    .article-body pre,
    .article-body code {
        white-space: pre-wrap;
        word-break: break-word;
    }
.profile-image {
    width: 100%;
    height: auto;
    border-radius: 50%;
}