/*=====================================================
CourseSuggest Posts V2
Part 1
======================================================*/

/*------------------------------------
Variables
------------------------------------*/

:root{

--primary:#2563eb;

--primary-dark:#1d4ed8;

--secondary:#0f172a;

--text:#334155;

--light:#f8fafc;

--border:#e2e8f0;

--radius:18px;

--shadow:0 15px 40px rgba(15,23,42,.08);

--transition:.35s ease;

}



/*------------------------------------
Body
------------------------------------*/

body.tpl-posts{

background:#f5f7fb;

font-family:Inter,sans-serif;

color:var(--text);

line-height:1.7;

}



/*------------------------------------
Links
------------------------------------*/

a{

text-decoration:none;

transition:var(--transition);

}



a:hover{

text-decoration:none;

}



/*------------------------------------
Container
------------------------------------*/

.blog-container{

padding:60px 0;

}



/*------------------------------------
Hero
------------------------------------*/

.blog-hero{

padding:90px 0;

background:linear-gradient(135deg,#0f172a,#2563eb);

position:relative;

overflow:hidden;

}



.blog-hero:before{

content:"";

position:absolute;

width:550px;

height:550px;

border-radius:50%;

background:rgba(255,255,255,.05);

right:-180px;

top:-220px;

}



.blog-hero:after{

content:"";

position:absolute;

width:380px;

height:380px;

border-radius:50%;

background:rgba(255,255,255,.05);

left:-120px;

bottom:-140px;

}



.hero-label{

display:inline-block;

padding:8px 18px;

border-radius:30px;

background:rgba(255,255,255,.15);

color:#fff;

font-size:13px;

font-weight:700;

letter-spacing:.8px;

margin-bottom:25px;

text-transform:uppercase;

}



.hero-title{

font-size:52px;

font-weight:800;

line-height:1.15;

color:#fff;

margin-bottom:20px;

}



.hero-description{

font-size:19px;

max-width:760px;

color:rgba(255,255,255,.85);

margin-bottom:35px;

}



/*------------------------------------
Search
------------------------------------*/

.hero-search{

max-width:650px;

}



.hero-search .input-group{

background:#fff;

border-radius:60px;

overflow:hidden;

box-shadow:0 20px 60px rgba(0,0,0,.15);

}



.hero-search input{

height:64px;

border:none;

padding-left:28px;

font-size:17px;

box-shadow:none;

}



.hero-search input:focus{

box-shadow:none;

}



.hero-search button{

padding:0 34px;

font-weight:700;

border:none;

background:var(--primary);

}



.hero-search button:hover{

background:var(--primary-dark);

}



/*------------------------------------
Statistics Card
------------------------------------*/

.hero-stat-card{

background:#fff;

border-radius:22px;

padding:40px;

text-align:center;

box-shadow:var(--shadow);

}



.hero-number{

font-size:54px;

font-weight:800;

color:var(--primary);

line-height:1;

}



.hero-text{

margin-top:12px;

font-size:18px;

color:#64748b;

}



/*------------------------------------
Section Heading
------------------------------------*/

.section-heading{

margin:70px 0 45px;

}



.section-heading h2{

font-size:38px;

font-weight:800;

color:var(--secondary);

margin-bottom:10px;

}



.section-heading p{

font-size:18px;

color:#64748b;

}



/*------------------------------------
Featured Article
------------------------------------*/

.featured-post{

background:#fff;

border-radius:24px;

overflow:hidden;

box-shadow:var(--shadow);

margin-bottom:70px;

}



.featured-post img{

width:100%;

height:460px;

object-fit:cover;

transition:.5s;

}



.featured-post:hover img{

transform:scale(1.05);

}



.featured-post .col-lg-6:last-child{

padding:55px;

}



.featured-badge{

display:inline-block;

padding:8px 16px;

background:#eff6ff;

color:var(--primary);

font-weight:700;

border-radius:30px;

margin-bottom:18px;

}



.featured-post h2{

font-size:36px;

font-weight:800;

line-height:1.25;

margin-bottom:20px;

}



.featured-post h2 a{

color:var(--secondary);

}



.featured-post h2 a:hover{

color:var(--primary);

}



.featured-post p{

font-size:17px;

color:#64748b;

margin-bottom:30px;

}



.featured-meta{

display:flex;

gap:25px;

margin-bottom:30px;

font-size:15px;

color:#94a3b8;

}



.featured-post .btn{

padding:14px 32px;

font-weight:700;

border-radius:40px;

}



/*------------------------------------
Posts Grid
------------------------------------*/

.posts-grid{

display:grid;

grid-template-columns:repeat(auto-fill,minmax(290px,1fr));

gap:32px;

margin-bottom:70px;

}
/*=====================================================
CourseSuggest Posts V2
Part 2 - Premium Cards
======================================================*/

/*------------------------------------
Post Card
------------------------------------*/

.post-card{

    background:#fff;

    border-radius:20px;

    overflow:hidden;

    box-shadow:0 10px 30px rgba(15,23,42,.08);

    transition:all .35s ease;

    display:flex;

    flex-direction:column;

    height:100%;

    position:relative;

}

.post-card:hover{

    transform:translateY(-8px);

    box-shadow:0 30px 60px rgba(15,23,42,.15);

}

/*------------------------------------
Image
------------------------------------*/

.post-thumb{

    display:block;

    position:relative;

    overflow:hidden;

}

.post-thumb img{

    width:100%;

    height:220px;

    object-fit:cover;

    transition:transform .45s ease;

    display:block;

}

.post-card:hover .post-thumb img{

    transform:scale(1.08);

}

/*------------------------------------
Overlay
------------------------------------*/

.post-overlay{

    position:absolute;

    left:0;

    right:0;

    top:0;

    bottom:0;

    background:linear-gradient(

        to top,

        rgba(0,0,0,.35),

        transparent 55%

    );

    opacity:0;

    transition:.35s;

}

.post-card:hover .post-overlay{

    opacity:1;

}

/*------------------------------------
Body
------------------------------------*/

.post-body{

    padding:24px;

    display:flex;

    flex-direction:column;

    flex:1;

}

/*------------------------------------
Meta
------------------------------------*/

.post-meta{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:18px;

    color:#94a3b8;

    font-size:13px;

    font-weight:600;

}

.post-meta span{

    display:flex;

    align-items:center;

    gap:6px;

}

/*------------------------------------
Title
------------------------------------*/

.post-body h3{

    margin:0 0 15px;

    line-height:1.35;

    min-height:72px;

}

.post-body h3 a{

    color:#0f172a;

    font-size:21px;

    font-weight:700;

    transition:.3s;

}

.post-body h3 a:hover{

    color:#2563eb;

}

/*------------------------------------
Description
------------------------------------*/

.post-body p{

    color:#64748b;

    font-size:15px;

    line-height:1.8;

    flex:1;

    margin-bottom:25px;

}

/*------------------------------------
Footer
------------------------------------*/

.post-footer{

    display:flex;

    justify-content:space-between;

    align-items:center;

    border-top:1px solid #edf2f7;

    padding-top:18px;

}

/*------------------------------------
Read More
------------------------------------*/

.read-more{

    color:#2563eb;

    font-weight:700;

    display:inline-flex;

    align-items:center;

    gap:10px;

    transition:.3s;

}

.read-more i{

    transition:.3s;

}

.read-more:hover{

    color:#1d4ed8;

}

.read-more:hover i{

    transform:translateX(6px);

}

/*------------------------------------
Category Badge
------------------------------------*/

.post-category{

    position:absolute;

    top:18px;

    left:18px;

    background:#2563eb;

    color:#fff;

    font-size:12px;

    font-weight:700;

    padding:7px 14px;

    border-radius:30px;

    z-index:5;

    text-transform:uppercase;

    letter-spacing:.5px;

}

/*------------------------------------
Featured Label
------------------------------------*/

.featured-label{

    position:absolute;

    top:18px;

    right:18px;

    background:#f59e0b;

    color:#fff;

    font-size:12px;

    font-weight:700;

    padding:7px 14px;

    border-radius:30px;

    z-index:5;

}

/*------------------------------------
Image Placeholder
------------------------------------*/

.post-thumb img[src*="no-image"]{

    object-fit:contain;

    padding:45px;

    background:#f8fafc;

}

/*------------------------------------
Equal Heights
------------------------------------*/

.posts-grid>.post-card{

    height:100%;

}
/*=====================================================
CourseSuggest Posts V2
Part 3 - Sidebar & Pagination
======================================================*/

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

.blog-sidebar{

    position:sticky;

    top:100px;

}

/*------------------------------------
Widget
------------------------------------*/

.sidebar-widget{

    background:#fff;

    border-radius:20px;

    padding:28px;

    margin-bottom:30px;

    box-shadow:0 10px 30px rgba(15,23,42,.08);

    transition:.35s;

}

.sidebar-widget:hover{

    box-shadow:0 20px 45px rgba(15,23,42,.12);

}

.sidebar-widget h4{

    font-size:22px;

    font-weight:700;

    color:#0f172a;

    margin-bottom:20px;

}

/*------------------------------------
Sidebar Search
------------------------------------*/

.sidebar-widget .input-group{

    overflow:hidden;

    border-radius:12px;

}

.sidebar-widget input{

    height:52px;

    border:1px solid #e2e8f0;

    box-shadow:none;

}

.sidebar-widget input:focus{

    border-color:#2563eb;

    box-shadow:none;

}

.sidebar-widget button{

    border-radius:0;

    padding:0 22px;

}

/*------------------------------------
Popular Articles
------------------------------------*/

.sidebar-posts{

    margin:0;

    padding:0;

    list-style:none;

}

.sidebar-posts li{

    padding:15px 0;

    border-bottom:1px solid #edf2f7;

}

.sidebar-posts li:last-child{

    border-bottom:none;

}

.sidebar-posts a{

    display:block;

    color:#0f172a;

    font-weight:600;

    margin-bottom:6px;

    transition:.3s;

}

.sidebar-posts a:hover{

    color:#2563eb;

    padding-left:5px;

}

.sidebar-posts small{

    color:#94a3b8;

    font-size:13px;

}

/*------------------------------------
Newsletter
------------------------------------*/

.newsletter-widget{

    background:linear-gradient(135deg,#2563eb,#1d4ed8);

    color:#fff;

}

.newsletter-widget h4{

    color:#fff;

}

.newsletter-widget p{

    color:rgba(255,255,255,.85);

}

.newsletter-widget input{

    border:none;

    height:50px;

}

.newsletter-widget button{

    background:#fff;

    color:#2563eb;

    font-weight:700;

    border:none;

}

.newsletter-widget button:hover{

    background:#f8fafc;

}

/*------------------------------------
Browse Courses CTA
------------------------------------*/

.sidebar-cta{

    background:linear-gradient(135deg,#0f172a,#1e293b);

    color:#fff;

    text-align:center;

}

.sidebar-cta h3{

    color:#fff;

    font-size:26px;

    font-weight:700;

    margin-bottom:15px;

}

.sidebar-cta p{

    color:rgba(255,255,255,.8);

    margin-bottom:25px;

}

.sidebar-cta .btn{

    font-weight:700;

    border-radius:50px;

    padding:14px;

}

/*------------------------------------
Tags
------------------------------------*/

.topic-tags{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

}

.topic-tags a{

    background:#eff6ff;

    color:#2563eb;

    padding:9px 16px;

    border-radius:50px;

    font-size:13px;

    font-weight:600;

    transition:.3s;

}

.topic-tags a:hover{

    background:#2563eb;

    color:#fff;

}

/*------------------------------------
Advertisement
------------------------------------*/

.sidebar-widget img{

    border-radius:16px;

    width:100%;

}

/*------------------------------------
Pagination
------------------------------------*/

.pagination{

    margin-top:60px;

    gap:10px;

}

.pagination li{

    list-style:none;

}

.pagination a,

.pagination span{

    width:48px;

    height:48px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:12px;

    border:1px solid #e2e8f0;

    background:#fff;

    color:#334155;

    font-weight:700;

    transition:.3s;

}

.pagination a:hover{

    background:#2563eb;

    border-color:#2563eb;

    color:#fff;

}

.pagination .active span,

.pagination .active a{

    background:#2563eb;

    color:#fff;

    border-color:#2563eb;

}

/*------------------------------------
Footer CTA
------------------------------------*/

.blog-footer-cta{

    padding:80px 0;

}

.footer-cta{

    background:linear-gradient(135deg,#2563eb,#1d4ed8);

    border-radius:25px;

    padding:60px;

    color:#fff;

    box-shadow:0 20px 60px rgba(37,99,235,.25);

}

.footer-cta h2{

    color:#fff;

    font-size:40px;

    font-weight:800;

    margin-bottom:18px;

}

.footer-cta p{

    color:rgba(255,255,255,.85);

    font-size:18px;

}

.footer-cta .btn{

    border-radius:50px;

    padding:15px 36px;

    font-weight:700;

}

/*------------------------------------
Empty State
------------------------------------*/

.empty-posts{

    text-align:center;

    background:#fff;

    padding:80px 40px;

    border-radius:25px;

    box-shadow:0 15px 40px rgba(15,23,42,.08);

}

.empty-posts h2{

    font-size:34px;

    font-weight:700;

    margin-bottom:15px;

}

.empty-posts p{

    color:#64748b;

    margin-bottom:30px;

}
/*=====================================================
CourseSuggest Posts V2
Part 4 - Responsive & Animations
======================================================*/

/*------------------------------------
Smooth Scrolling
------------------------------------*/

html{

    scroll-behavior:smooth;

}

/*------------------------------------
Selection
------------------------------------*/

::selection{

    background:#2563eb;

    color:#fff;

}

/*------------------------------------
Scrollbar
------------------------------------*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#edf2f7;

}

::-webkit-scrollbar-thumb{

    background:#2563eb;

    border-radius:30px;

}

::-webkit-scrollbar-thumb:hover{

    background:#1d4ed8;

}

/*------------------------------------
Image Radius
------------------------------------*/

img{

    max-width:100%;

    display:block;

}

/*------------------------------------
Buttons
------------------------------------*/

.btn{

    transition:.35s ease;

}

.btn:hover{

    transform:translateY(-2px);

}

/*------------------------------------
Fade Animation
------------------------------------*/

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(35px);

    }

    to{

        opacity:1;

        transform:none;

    }

}

.post-card{

    animation:fadeUp .55s ease both;

}

.post-card:nth-child(2){

    animation-delay:.05s;

}

.post-card:nth-child(3){

    animation-delay:.1s;

}

.post-card:nth-child(4){

    animation-delay:.15s;

}

.post-card:nth-child(5){

    animation-delay:.2s;

}

.post-card:nth-child(6){

    animation-delay:.25s;

}

/*------------------------------------
Hover Shadow
------------------------------------*/

.post-card:hover{

    box-shadow:

    0 25px 60px rgba(15,23,42,.15);

}

/*------------------------------------
Featured Animation
------------------------------------*/

.featured-post{

    animation:fadeUp .5s ease;

}

/*------------------------------------
Sidebar Widgets
------------------------------------*/

.sidebar-widget{

    animation:fadeUp .6s ease;

}

/*------------------------------------
Desktop
------------------------------------*/

@media(min-width:1400px){

.posts-grid{

grid-template-columns:

repeat(4,1fr);

}

}

/*------------------------------------
Laptop
------------------------------------*/

@media(max-width:1399px){

.posts-grid{

grid-template-columns:

repeat(3,1fr);

}

}

/*------------------------------------
Tablet Landscape
------------------------------------*/

@media(max-width:992px){

.posts-grid{

grid-template-columns:

repeat(2,1fr);

}

.blog-sidebar{

position:relative;

top:auto;

margin-top:50px;

}

.hero-title{

font-size:42px;

}

.featured-post img{

height:340px;

}

.featured-post .col-lg-6:last-child{

padding:35px;

}

.footer-cta{

padding:45px;

text-align:center;

}

}

/*------------------------------------
Tablet Portrait
------------------------------------*/

@media(max-width:768px){

.blog-hero{

padding:70px 0;

}

.hero-title{

font-size:34px;

}

.hero-description{

font-size:16px;

}

.hero-search input{

height:55px;

}

.hero-search button{

padding:0 20px;

}

.hero-stat-card{

margin-top:40px;

}

.posts-grid{

grid-template-columns:

repeat(2,1fr);

gap:20px;

}

.post-body{

padding:20px;

}

.post-body h3{

min-height:auto;

}

.featured-post{

margin-bottom:40px;

}

.featured-post img{

height:280px;

}

.section-heading{

margin:50px 0 30px;

}

.section-heading h2{

font-size:30px;

}

.footer-cta h2{

font-size:30px;

}

}

/*------------------------------------
Mobile
------------------------------------*/

@media(max-width:576px){

.posts-grid{

grid-template-columns:

1fr;

}

.blog-hero{

padding:55px 0;

}

.hero-title{

font-size:28px;

line-height:1.25;

}

.hero-description{

font-size:15px;

}

.hero-label{

font-size:11px;

}

.hero-search .input-group{

display:block;

border-radius:18px;

overflow:hidden;

}

.hero-search input{

width:100%;

border-radius:0;

}

.hero-search button{

width:100%;

height:52px;

}

.hero-stat-card{

padding:30px;

}

.hero-number{

font-size:42px;

}

.featured-post img{

height:220px;

}

.featured-post .col-lg-6:last-child{

padding:25px;

}

.featured-post h2{

font-size:28px;

}

.post-thumb img{

height:220px;

}

.post-body{

padding:18px;

}

.sidebar-widget{

padding:20px;

}

.footer-cta{

padding:35px 25px;

}

.footer-cta h2{

font-size:26px;

}

.footer-cta .btn{

width:100%;

margin-top:20px;

}

.pagination{

justify-content:center;

flex-wrap:wrap;

}

.pagination a,

.pagination span{

width:42px;

height:42px;

}

}

/*------------------------------------
Utility Classes
------------------------------------*/

.shadow-hover{

transition:.35s;

}

.shadow-hover:hover{

box-shadow:0 20px 50px rgba(15,23,42,.15);

}

.rounded-xl{

border-radius:22px;

}

.text-primary{

color:#2563eb !important;

}

.bg-light-custom{

background:#f8fafc;

}
.post-card{

opacity:0;

transform:translateY(40px);

transition:.6s;

}

.post-card.visible{

opacity:1;

transform:none;

}

.hero-search .active{

box-shadow:0 0 0 5px rgba(37,99,235,.15);

}