﻿.blog-container .blog-hero {
    position: relative;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end; /* Push content to bottom */
}

.blog-container .blog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin-bottom: 1rem; /* Distance from bottom */
}

.blog-container .blog-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.45) 35%, rgba(0,0,0,0) 70% );
    z-index: 1;
    border-radius: 0.375rem;
}

/*.blog-container .blog-post {
    margin-bottom: 3rem;
}
*/
.blog-container .blog-post-meta {
    color: #6c757d;
    font-size: .95rem;
    margin-bottom: 1.5rem;
}

.blog-container .blog-post p {
    line-height: 2;
    margin-bottom: 1rem;
    font-size: clamp(14px, 2vw, 16px);
    color: rgba(33, 37, 41, 0.75);
}

.blog-container .blog-post h2 {
    font-size: calc(1.1rem + .3vw);
    border-bottom: 1px dashed rgb(204,0,0,1);
    padding-bottom: 20px;
    margin-top: 3rem !important;
}

    .blog-container .blog-post h2.quick-link-highlight {
       color:rgb(204,0,0,1);
    }


.blog-container .blog-post h2 i {
    padding: 10px;
    background: rgb(204,0,0,0.1);
    border-radius: 12px;
    border: 1px solid rgb(204,0,0,0.15);
}


.blog-container .blog-post h3 {
    font-size: 1.1rem;
}

.blog-container .blog-post h2,
.blog-container .blog-post h3,
.blog-container .blog-post h4 {
    margin-top: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #212529;
}

.blog-container .blog-post ul,
.blog-container .blog-post ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.blog-container .blog-post li {
    margin-bottom: .5rem;
}

.blog-container .blog-post blockquote {
    border-left: 4px solid #dc3545;
    background: #f8f9fa;
    padding: 1rem 1.25rem;
    font-style: italic;
    margin: 1.5rem 0;
}

.blog-container .blog-post pre {
    background: #212529;
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
}

.blog-container .blog-post code {
    color: #ff6b6b;
}

.blog-container .blog-post table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

    .blog-container .blog-post table th,
    .blog-container .blog-post table td {
        border: 1px solid #dee2e6;
        padding: .75rem;
    }

    .blog-container .blog-post table th {
        background: #f8f9fa;
        font-weight: 600;
    }

.blog-container .blog-post img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 0;
}

.blog-container .position-sticky {
    top: 5rem;
}

.blog-container .bg-body-tertiary {
    border-radius: 12px;
}

.blog-container h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-container .btn-light {
    border-radius: 30px;
    padding: .6rem 1.5rem;
}




/*related articless css*/

.recent-post {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    position: relative;
    padding: 0 0 16px;
    margin-bottom: 16px;
}

    .recent-post::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 1px;
        background: #ccc;
    }

    .recent-post:last-child::after {
        display: none;
    }

.recent-post-icon {
    /* width: clamp(40px, 4vw, 48px);
height: clamp(40px, 4vw, 48px);*/
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(204, 0, 0, 0.1);
    color: rgb(204, 0, 0);
    border: 1px solid rgba(204, 0, 0, 0.15);
    border-radius: 12px;
    flex-shrink: 0;
    transition: all 0.2s ease;
    padding: 10px;
}

    .recent-post-icon i {
        font-size: clamp(1.1rem, 2vw, 1.4rem);
        line-height: 1;
    }

.recent-post img {
    width: 80px;
    height: 60px;
    border-radius: 10px;
    flex-shrink: 0;
    display: block;
}

.recent-post-content {
    flex: 1;
    min-width: 0;
}

    .recent-post-content p {
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.4;
        font-size: clamp(14px, 2vw, 16px);
        color: rgba(33, 37, 41, 0.75);
    }

    .recent-post-content span {
        display: block;
        margin-top: 8px;
        font-size: 0.9rem;
        color: #777;
    }


/*quick jumlinks css*/

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .toc-list li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        list-style: none;
        color: rgb(204,0,0,1);
    }

        .toc-list li + li {
            margin-top: 10px;
        }

        .toc-list li i {
            flex-shrink: 0;
            margin-top: 3px; /* aligns with first line of text */
        }

    .toc-list a {
        flex: 1;
        color: rgba(33, 37, 41, 0.75);
        text-decoration: none;
        font-weight: 500;
        transition: color .2s;
        line-height: 1.5;
    }

        .toc-list a:hover {
            color: rgb(204,0,0,1);
            text-decoration: underline;
        }
