/* ==========================================
   BLOG HERO
========================================== */

.blog-hero {
    position: relative;
    min-height: 330px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}
.blog-hero .overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.60);
}

.blog-hero .container{
    position:relative;
    z-index:2;
    max-width:1200px;
    margin:auto;
    width:100%;
    padding:0 15px;
}

.blog-hero .breadcrumb{
    margin-bottom:20px;
    color:#fff;
}

.blog-hero .breadcrumb a{
    color:#fff;
    text-decoration:none;
    opacity:.85;
}

.blog-hero h1 {
    color: #fff;
    font-size: 42px;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    margin: auto;
}

.blog-meta{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:12px;
    margin-top:25px;
    color:#fff;
    font-size:15px;
}

.blog-meta span{
    opacity:.95;
}


/* ==========================================
   BLOG CONTENT
========================================== */

.blog-wrapper{
    padding:80px 0;
}
.blog-wrapper .container {
    display: grid;
    grid-template-columns: 370px 1fr;
    gap: 30px;
    max-width: 1360px;
    margin: auto;
    align-items: start;
    padding-inline: 40px;
    box-sizing: border-box;
}
/* ==========================================
   SIDEBAR
========================================== */

.blog-sidebar {
    position: sticky;
    top: 20px;
}
.toc-box {
    position: sticky;
    top: 110px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .06);
    max-height: 90vh;
    overflow-y: auto;
}
.toc-box h3{
    margin:0 0 20px;
    font-size:22px;
    font-weight:700;
}


/* ==========================================
   TOC
========================================== */

#toc ul{
    list-style:none;
    margin:0;
    padding:0;
}
#toc li{
    margin-bottom:12px;
}
#toc a {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    text-decoration: none;
    color: #333;
    transition: .3s;
    line-height: 1.5;
}
#toc a.active, #toc a:hover{
    color:#0066cc;
}
.toc-number{
    font-weight:700;
    min-width:30px;
}
.toc-title{
    flex:1;
}

/* ==========================================
   BLOG CONTENT
========================================== */

.blog-content{
    width:100%;
    min-width:0;
}
.featured-image{
    margin-bottom:45px;
}
.featured-image img{
    width:100%;
    display:block;
    border-radius:14px;
}

/* ==========================================
   GUTENBERG CONTENT
========================================== */

#post-content{
    font-size:18px;
    line-height:1.9;
    color:#555;
}
#post-content h2{
    font-size:32px;
    line-height:1.3;
    margin-top:60px;
    margin-bottom:20px;
    color:#111;
}
#post-content h3{
    font-size:26px;
    line-height:1.4;
    margin-top:45px;
    margin-bottom:18px;
    color:#222;
}
#post-content p{
    margin-bottom:25px;
}
#post-content ul,
#post-content ol{
    margin-bottom:25px;
    padding-left:22px;
}
#post-content li{
    margin-bottom:12px;

}
#post-content img{
    max-width:100%;
    height:auto;
    border-radius:10px;
    margin:35px 0;
}
#post-content blockquote{
    border-left:4px solid #0066cc;
    background:#f9f9f9;
    padding:20px 25px;
    margin:35px 0;
    font-style:italic;
}
#post-content pre{
    background:#1e1e1e;
    color:#fff;
    padding:20px;
    border-radius:10px;
    overflow:auto;
}
#post-content code{
    background:#f4f4f4;
    padding:3px 6px;
    border-radius:4px;
}
#post-content table{
    width:100%;
    border-collapse:collapse;
    margin:40px 0;
}
#post-content table th{
    background:#f6f6f6;
}
#post-content table th,
#post-content table td{
    border:1px solid #ddd;
    padding:12px;
}


/* ==========================================
   TAGS
========================================== */

.guide-tags{
    margin-top:50px;
    padding-top:25px;
    border-top:1px solid #eee;
}

.guide-tags a{
    display:inline-block;
    margin:5px;
    padding:8px 15px;
    border-radius:30px;
    background:#f5f5f5;
    color:#333;
    text-decoration:none;
    transition:.3s;
}

.guide-tags a:hover{
    background:#0066cc;
    color:#fff;
}

/* ============== Blog final cta ================ */
.blog-final {
    position: relative;
    background: #e6f2ff;
    color: #dbe4ef;
    padding: 40px 45px;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 25px;
}
.blog-final .final-inner {
    position: relative;
    max-width: 720px;
}
.blog-final .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #ff5f00;
    margin-bottom: 16px;
}
.blog-final .eyebrow .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff5f00;
    box-shadow: 0 0 10px #ff5f00;
}
.blog-final h2 {
    font-size: 28px;
    margin: 0 0 15px;
}
.blog-final p {
    line-height: 28px;
    margin: 0 0 22px;
    color: #3d3d3d;
    font-size: 17px;
}
.blog-final .final-cta {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
    margin-top: 24px;
}
.blog-final-buttons .btn.btn-primary.btn-lg {
    background: #065cfe;
    padding: 13px 24px;
    color: #fff;
    line-height: 28px;
    display: inline-block;
    border-radius: 6px;
    font-size: 17px;
}
.blog-final-buttons .btn.btn-primary-faded.btn-lg {
    padding: 13px 24px;
    color: #065cfe;
    line-height: 28px;
    display: inline-block;
    border-radius: 6px;
    font-size: 17px;
    margin-left: 10px;
    border: 1px solid #065cfe;
}
.blog-final-buttons .btn.btn-primary.btn-lg:hover{
	background: #003cb2;
}
.blog-final-buttons .btn.btn-primary-faded.btn-lg:hover {
    background: #065cfe;
    color: #fff;
}






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

@media (max-width:1200px){
.blog-final {
    padding: 30px;
}
.blog-final-buttons .btn.btn-primary-faded.btn-lg, .blog-final-buttons .btn.btn-primary.btn-lg {
    font-size: 16px;
}
}

@media (max-width:1024px){
    .blog-wrapper .container{
       grid-template-columns:1fr;
    }
    .blog-sidebar {
    position: unset;
}

}

@media (max-width:767px){
    .blog-hero{
        min-height:300px;
    }

    .blog-hero h1{
        font-size:36px;
    }
    #post-content{
        font-size:16px;
    }

#post-content h2{
font-size:26px;
margin-top: 40px;
}
#post-content h3{
font-size:22px;
margin-top: 30px;
}
.blog-meta{
font-size:14px;
}
.blog-wrapper {
padding: 50px 0;
}
.blog-wrapper .container {
padding-inline: 24px;
}
.featured-image {
margin-bottom: 20px;
}
.blog-final {
padding: 25px;
}
.blog-final h2 {
font-size: 26px;
}
.blog-final-buttons .btn.btn-primary-faded.btn-lg {
    margin: 15px 0 0;
}
.blog-final p {
    font-size: 16px;
}
}

html{
    scroll-behavior:smooth;
}

.ast-container:has(.blog-hero) {
    display: block;
}

/* ====================================
   TOC
==================================== */

.toc-box{

    position:sticky;

    top:110px;

    background:#fff;

    border:1px solid #e5e5e5;

    border-radius:12px;

    overflow:hidden;

    box-shadow:0 5px 20px rgba(0,0,0,.08);

}

.toc-toggle{

    width:100%;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px 22px;

    border:none;

    background:#fff;

    cursor:pointer;

    font-size:18px;

    font-weight:600;

}

.toc-left{

    display:flex;

    align-items:center;

    gap:12px;

}

.toc-arrow{

    transition:.3s;

}

.toc-box.open .toc-arrow{

    transform:rotate(180deg);

}

.toc-content{

    max-height:none;

}

@media(max-width:991px){
.blog-sidebar {
        width: 100%;
        margin-bottom: 0;
    }

    .toc-box{

        position:sticky;

        top:75px;

        z-index:999;

    }

    .toc-toggle{

        display:flex;

    }

    .toc-content{

        max-height:0;

        overflow:hidden;

        transition:max-height .35s ease;

    }

    .toc-box.open .toc-content{

        max-height:700px;

    }

}

@media(min-width:992px){

    .toc-toggle{

        display:none;

    }

    .toc-content{

        max-height:none !important;

        overflow:visible;

    }

}

@media (max-width:991px){

    .blog-sidebar{
        position:sticky;
        top:40px; /* adjust according to your header */
        z-index:999;
        width:100%;
        margin-bottom:25px;
    }
    .toc-toggle {
        display: flex;
        padding: 0;
        background: transparent !important;
        box-shadow: none;
    }
    .toc-content{ 
        max-height:0;
        overflow:hidden;
        transition:max-height .35s ease;
        background:#fff;
    }

    .toc-box.open .toc-content{
        max-height:600px;
        overflow-y:auto;
        margin-top: 15px;

    }

}

/*scroll to top*/
.scroll-top-btn {
    position: fixed;
    right: 32px;
    bottom: 110px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: #065cfe;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .20);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all .3s ease;
    z-index: 99999;
    padding: 0 !important;
}
.scroll-top-btn.show{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}
.scroll-top-btn:hover{
    background: #0041ba;
    color: #fff;
    transform:translateY(-3px);
}
.scroll-top-btn svg{
margin-top: -6px;
}

@media(max-width:767px){

.scroll-top-btn {
        bottom: 95px;
    }

}