
/*
==================================================
 CourseSuggest Premium Post Styles
 Part 2B - Sidebar & Components
==================================================
*/

/* ---------- Sticky Sidebar ---------- */

.sidebar-sticky{
    position:sticky;
    top:100px;
}

.sidebar-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:24px;
    margin-bottom:24px;
    box-shadow:0 8px 24px rgba(15,23,42,.06);
    transition:.3s ease;
}

.sidebar-card:hover{
    transform:translateY(-4px);
    box-shadow:0 18px 40px rgba(15,23,42,.10);
}

.sidebar-card h3,
.sidebar-card h4{
    color:#0f172a;
    margin-bottom:18px;
    font-weight:700;
}

.sidebar-card p{
    color:#64748b;
    line-height:1.7;
}

/* Search */

.sidebar-card .form-control{
    border-radius:12px;
    border:1px solid #dbe2ea;
    min-height:48px;
}

.sidebar-card .form-control:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 .2rem rgba(37,99,235,.15);
}

/* TOC */

#tableOfContents ul{
    margin:0;
    padding:0;
    list-style:none;
}

#tableOfContents li{
    margin-bottom:10px;
}

#tableOfContents a{
    color:#475569;
    text-decoration:none;
    display:block;
    padding:8px 10px;
    border-radius:8px;
    transition:.25s;
}

#tableOfContents a:hover,
#tableOfContents a.active{
    background:#eff6ff;
    color:#2563eb;
}

/* Newsletter */

.sidebar-card input[type=email]{
    margin-bottom:15px;
}

.sidebar-card button{
    border-radius:12px;
}

/* CTA */

.cta-sidebar{
    background:linear-gradient(135deg,#2563eb,#1d4ed8);
    color:#fff;
    text-align:center;
}

.cta-sidebar h3,
.cta-sidebar p{
    color:#fff;
}

.cta-sidebar .btn{
    background:#fff;
    color:#2563eb;
    border:none;
    font-weight:600;
}

.cta-sidebar .btn:hover{
    background:#f8fafc;
}

/* Popular Posts */

.popular-posts{
    list-style:none;
    margin:0;
    padding:0;
}

.popular-posts li{
    border-bottom:1px solid #edf2f7;
    padding:12px 0;
}

.popular-posts li:last-child{
    border-bottom:none;
}

.popular-posts a{
    color:#1e293b;
    text-decoration:none;
    font-weight:500;
    transition:.25s;
}

.popular-posts a:hover{
    color:#2563eb;
}

/* Share Icons */

.share-icons{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.share-icons a{
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#f1f5f9;
    color:#334155;
    transition:.3s;
    text-decoration:none;
}

.share-icons a:hover{
    background:#2563eb;
    color:#fff;
}

/* Inline CTA */

.post-cta-card{
    margin:40px 0;
    padding:40px;
    border-radius:20px;
    background:linear-gradient(135deg,#eff6ff,#ffffff);
    border:1px solid #dbeafe;
    box-shadow:0 12px 30px rgba(37,99,235,.08);
}

.post-cta-card h3{
    margin-bottom:10px;
    color:#0f172a;
}

/* Author */

.author-box{
    display:flex;
    gap:20px;
    align-items:center;
    padding:30px;
    border-radius:18px;
    background:#fff;
    border:1px solid #e5e7eb;
    margin:35px 0;
    box-shadow:0 8px 24px rgba(15,23,42,.05);
}

.author-avatar{
    width:90px;
    height:90px;
    border-radius:50%;
    background:#eff6ff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:36px;
    color:#2563eb;
    flex-shrink:0;
}

.author-details h5{
    margin-bottom:8px;
}

/* Prev Next */

.post-navigation{
    margin:40px 0;
}

.nav-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:16px;
    padding:20px;
    transition:.3s;
    min-height:110px;
}

.nav-card:hover{
    border-color:#2563eb;
    box-shadow:0 10px 25px rgba(37,99,235,.12);
}

.nav-card small{
    color:#64748b;
}

.nav-card h6{
    margin-top:8px;
    color:#0f172a;
}

/* Related */

.related-posts{
    margin-top:60px;
}

.section-title{
    text-align:center;
    margin-bottom:35px;
}

.related-card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    border:1px solid #e5e7eb;
    box-shadow:0 8px 22px rgba(15,23,42,.05);
    transition:.3s;
    height:100%;
}

.related-card:hover{
    transform:translateY(-6px);
    box-shadow:0 20px 40px rgba(15,23,42,.10);
}

.related-card img{
    width:100%;
    height:210px;
    object-fit:cover;
}

.related-content{
    padding:20px;
}

.related-content h5{
    color:#0f172a;
    font-size:1.05rem;
    margin-bottom:12px;
}

.related-content span{
    color:#64748b;
    font-size:.9rem;
}

/* Comments */

.comments-card{
    margin-top:60px;
    background:#fff;
    border-radius:18px;
    border:1px solid #e5e7eb;
    padding:35px;
    box-shadow:0 8px 22px rgba(15,23,42,.05);
}

.comments-card h2{
    margin-bottom:10px;
}

.comments-card p{
    color:#64748b;
    margin-bottom:25px;
}

/* Responsive */

@media(max-width:991px){

.sidebar-sticky{
    position:relative;
    top:0;
    margin-top:40px;
}

.author-box{
    flex-direction:column;
    text-align:center;
}

.post-cta-card{
    text-align:center;
}

}

@media(max-width:767px){

.post-cta-card{
    padding:25px;
}

.comments-card{
    padding:22px;
}

.related-card img{
    height:180px;
}

}
