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

.blog-hero{
    position:relative;
    overflow:hidden;
    padding:110px 0;
    background:linear-gradient(135deg,#1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
    color:#fff;
    margin-top: 75px;
}

/* Decorative circles */

.blog-hero::before{
    content:"";
    position:absolute;
    width:420px;
    height:420px;
    top:-180px;
    right:-120px;
    border-radius:50%;
    background:rgba(255,255,255,.12);
}

.blog-hero::after{
    content:"";
    position:absolute;
    width:300px;
    height:300px;
    bottom:-140px;
    left:-80px;
    border-radius:50%;
    background:rgba(255,255,255,.08);
}

.blog-hero .container{
    position:relative;
    z-index:2;
}

.blog-hero h1{
    font-size:3.6rem;
    font-weight:800;
    line-height:1.2;
    letter-spacing:-1px;
    margin-bottom:24px;
    text-shadow:0 5px 20px rgba(0,0,0,.15);
}

.blog-hero p{
    max-width:760px;
    margin:auto;
    font-size:1.2rem;
    line-height:1.9;
    color:rgba(255,255,255,.92);
}

/* Optional highlight */

.blog-hero h1 span{
    color:white;
    background:#0f172a;
    padding:4px 14px;
    border-radius:12px;
    display:inline-block;
}

/* ===================================
   SEARCH
=================================== */

.blog-search{

    padding:50px 0 20px;

}

.blog-search .input-group{

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

    border-radius:50px;

    overflow:hidden;

}

.blog-search .input-group-text{

    background:#fff;

    border:none;

    padding:16px 20px;

}

.blog-search .form-control{

    border:none;

    padding:16px;

    font-size:1rem;

}

.blog-search .form-control:focus{

    box-shadow:none;

}
/* ===================================
   BLOG FILTER
=================================== */

.blog-filter{
    padding:25px 0 55px;
}

.blog-filter .container{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:14px;
}

/* Common Button */

.blog-filter .btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:120px;
    height:48px;
    padding:0 28px;
    border-radius:50px;
    border:2px solid #2563eb;
    background:#fff;
    color:#2563eb;
    font-size:.95rem;
    font-weight:600;
    text-decoration:none;
    transition:all .3s ease;
    box-shadow:0 6px 18px rgba(37,99,235,.08);
}

/* Hover */

.blog-filter .btn:hover{
    background:#2563eb;
    color:#fff;
    transform:translateY(-3px);
    box-shadow:0 15px 30px rgba(37,99,235,.25);
}

/* Active Page */

.blog-filter .btn-primary,
.blog-filter .btn.active{
    background:linear-gradient(135deg,#2563eb,#1d4ed8);
    border-color:#2563eb;
    color:#fff;
    box-shadow:0 15px 35px rgba(37,99,235,.30);
}

.blog-filter .btn-primary:hover,
.blog-filter .btn.active:hover{
    background:linear-gradient(135deg,#1d4ed8,#1e40af);
    color:#fff;
}

/* Inactive */

.blog-filter .btn-outline-primary{
    background:#fff;
    color:#2563eb;
}

/* Focus */

.blog-filter .btn:focus{
    outline:none;
    box-shadow:
        0 0 0 4px rgba(37,99,235,.15),
        0 10px 25px rgba(37,99,235,.20);
}


/* ===================================
   BLOG SECTION
=================================== */

.blog-section{

    padding-bottom:80px;

}

.blog-card{

    display:flex;

    flex-direction:column;

    height:100%;

    background:#fff;

    border-radius:20px;

    overflow:hidden;

    text-decoration:none;

    color:#111827;

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

    transition:.3s;

}

.blog-card:hover{

    transform:translateY(-8px);

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

    color:#111827;

}



.blog-card img{

    width:100%;

    height:240px;

    object-fit:cover;

    object-position:center;

    display:block;

}

.blog-card h3{

    font-size:1.35rem;

    font-weight:700;

    padding:22px 22px 10px;

    margin:0;

}

.blog-card p{

    padding:0 22px;

    color:#64748b;

    line-height:1.7;

    flex-grow:1;

}

.blog-card span{

    padding:20px 22px 24px;

    color:#2563eb;

    font-weight:700;

}

/* ===================================
   NEWSLETTER
=================================== */

.newsletter-section{

    background:#eff6ff;

    padding:80px 0;

}

.newsletter-section h2{

    font-size:2.3rem;

    font-weight:700;

    margin-bottom:15px;

}

.newsletter-section p{

    color:#64748b;

    margin-bottom:30px;

}

.newsletter-section .input-group{

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

    border-radius:50px;

    overflow:hidden;

}

.newsletter-section .form-control{

    border:none;

    padding:16px;

}

.newsletter-section .form-control:focus{

    box-shadow:none;

}

.newsletter-section .btn{

    padding:0 35px;

    font-weight:600;

}
/* ===================================
   TABLET
=================================== */

@media (max-width:991px){

    .blog-hero{
        padding:85px 20px;
    }

    .blog-hero h1{
        font-size:2.8rem;
    }

    .blog-hero p{
        font-size:1.1rem;
    }

    .blog-search{
        padding:40px 0 20px;
    }

    .blog-filter{
        padding:20px 0 45px;
    }

    .blog-filter .container{
        gap:10px;
    }

    .blog-filter .btn{
        min-width:105px;
        height:44px;
        padding:0 22px;
        font-size:.9rem;
    }

    .blog-card img{
        height:210px;
    }

    .blog-card h3{
        font-size:1.25rem;
    }

    .newsletter-section{
        padding:70px 20px;
    }

    .newsletter-section h2{
        font-size:2rem;
    }

}

/* ===================================
   MOBILE
=================================== */

@media (max-width:767px){

    .blog-hero{
        padding:70px 20px;
    }

    .blog-hero h1{
        font-size:2.2rem;
    }

    .blog-hero p{
        font-size:1rem;
        line-height:1.8;
    }

    .blog-search{
        padding:30px 0 15px;
    }

    .blog-filter{
        padding:15px 0 35px;
    }

    .blog-filter .container{
        gap:8px;
    }

    .blog-filter .btn{
        min-width:90px;
        height:42px;
        padding:0 18px;
        font-size:.85rem;
    }

    .blog-card{
        border-radius:18px;
    }

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

    .blog-card h3{
        font-size:1.1rem;
        padding:18px 18px 10px;
    }

    .blog-card p{
        padding:0 18px;
        font-size:.95rem;
    }

    .blog-card span{
        padding:18px;
    }

    .newsletter-section{
        padding:60px 20px;
    }

    .newsletter-section h2{
        font-size:1.8rem;
    }

}

/* ===================================
   SMALL MOBILE
=================================== */

@media (max-width:575px){

    .blog-hero{
        padding:60px 15px;
    }

    .blog-hero h1{
        font-size:1.9rem;
    }

    .blog-hero p{
        font-size:.95rem;
    }

    .blog-filter .container{
        gap:8px;
    }

    .blog-filter .btn{
        flex:1 1 calc(50% - 8px);
        min-width:0;
        height:40px;
        font-size:.82rem;
        padding:0 10px;
    }

    .blog-card{
        border-radius:16px;
    }

    .blog-card img{
        height:165px;
    }

    .blog-card h3{
        font-size:1rem;
        padding:16px 16px 8px;
    }

    .blog-card p{
        padding:0 16px;
        font-size:.9rem;
    }

    .blog-card span{
        padding:16px;
    }

    .newsletter-section{
        padding:50px 15px;
    }

    .newsletter-section h2{
        font-size:1.6rem;
    }

}