/*==================================================
BLOG PAGE
==================================================*/

.blog-main {
    padding: 80px 0;
    background: #f7fafc;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 380px;
    gap: 40px;
    align-items: start;
}

.blog-content {
    min-width: 0;
}

.blog-sidebar {
    position: sticky;
    top: 120px;
}


/*==================================================
SECTION HEADING
==================================================*/

.section-heading {
    margin-bottom: 30px;
}

.section-heading h2 {
    font-size: 34px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.section-heading p {
    color: #64748b;
    line-height: 1.8;
}


/*==================================================
FEATURED POST
==================================================*/

.featured-post {
    margin-bottom: 70px;
}

.featured-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .08);
}

.featured-image {
    position: relative;
    order: 2;
    /* image on the right */
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    padding: 50px;
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #146cb8;
    color: #fff;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

.featured-content {
    order: 1;
    /* text/description on the left */
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
    font-size: 14px;
}

.featured-category {
    color: #1479b8;
    font-weight: 600;
}

.featured-date {
    color: #64748b;
}

.featured-content h2 {
    font-size: 34px;
    line-height: 1.3;
    margin-bottom: 20px;
}

.featured-content h2 a {
    color: #0f172a;
    text-decoration: none;
}

.featured-content h2 a:hover {
    color: #143db8;
}

.featured-content p {
    color: #64748b;
    line-height: 1.9;
    margin-bottom: 25px;
}


/*==================================================
POST GRID
==================================================*/

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.post-card {
    display: grid;
    grid-template-columns: 1.4fr 300px;
    align-items: center;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .08);
    transition: .3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, .12);
}

.post-image {
    order: 2;
    height: 100%;
}

.post-image img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
    padding: 40px;
}

.post-content {
    order: 1;
    padding: 35px;
}

.post-meta-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
}

.post-category {
    color: #146cb8;
    font-weight: 600;
}

.post-date {
    color: #94a3b8;
}

.post-content h3 {
    font-size: 30px;
    margin-bottom: 15px;
    line-height: 1.3;
}


.post-content h3 a {
    color: #0f172a;
    text-decoration: none;
}

.post-content h3 a:hover {
    color: #1479b8;
}

.post-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #64748b;
    margin-bottom: 20px;
}

.read-more {
    color: #1466b8;
    font-weight: 600;
    text-decoration: none;
}

.read-more:hover {
    color: #0f172a;
}


/*==================================================
SIDEBAR
==================================================*/

.sidebar-widget {
    background: #cfcece;
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 25px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .06);
}

.widget-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: #0f172a;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget li {
    padding: 12px 0;
    border-bottom: 1px solid #edf2f7;
}

.sidebar-widget li:last-child {
    border-bottom: none;
}

.sidebar-widget a {
    color: #334155;
    text-decoration: none;
}

.sidebar-widget a:hover {
    color: #14b8a6;
}

.sidebar-widget input[type="search"] {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #dbe4ec;
    border-radius: 12px;
    outline: none;
}

.sidebar-widget input[type="search"]:focus {
    border-color: #14b8a6;
}

.sidebar-widget button {
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    border: none;
    background: #14b8a6;
    color: #fff;
    border-radius: 12px;
    cursor: pointer;
    transition: .3s;
}

.sidebar-widget button:hover {
    background: #0f766e;
}


/*==================================================
CTA
==================================================*/

.sidebar-cta {
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    color: #fff;
}

.sidebar-cta h3 {
    color: #fff;
    margin-bottom: 15px;
}

.sidebar-cta p {
    margin-bottom: 25px;
    line-height: 1.8;
}

.sidebar-btn {
    display: inline-block;
    padding: 14px 26px;
    background: #fff;
    color: #14b8a6;
    border-radius: 40px;
    font-weight: 700;
    text-decoration: none;
}

.sidebar-btn:hover {
    background: #f8fafc;
}


/*==================================================
PAGINATION
==================================================*/

.blog-pagination {
    margin-top: 60px;
    text-align: center;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    margin: 0 5px;
    border-radius: 50%;
    background: #fff;
    color: #0f172a;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
}

.blog-pagination .current {
    background: #14b8a6;
    color: #fff;
}






/*==================================================
BLOG HERO
==================================================*/

.blog-hero {
    position: relative;
    padding: 70px 0;
    overflow: hidden;
    background: linear-gradient(135deg, #0f5776 0%, #148ab8 50%, #2d9cd4 100%);
}

.blog-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, .18), transparent 40%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, .10), transparent 35%);
}

.blog-hero .container {
    position: relative;
    z-index: 2;
}

.blog-hero-content {
    max-width: 820px;
}

.blog-hero-badge {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 50px;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .5px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, .25);
}

.blog-hero h1 {
    font-size: 44px;
    line-height: 1.2;
    font-weight: 800;
    color: #fff;
    margin-bottom: 18px;
}

.blog-hero p {
    max-width: 720px;
    color: rgba(255, 255, 255, .92);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 28px;
}


/*====================================
SEARCH BOX
====================================*/

.blog-search {
    display: flex;
    max-width: 550px;
    background: #fff;
    border-radius: 60px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .18);
}

.blog-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 16px 22px;
    font-size: 16px;
    color: #0f172a;
    background: #fff;
}

.blog-search input::placeholder {
    color: #94a3b8;
}

.blog-search button {
    border: none;
    background: #14b8a6;
    color: #fff;
    padding: 0 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

.blog-search button:hover {
    background: #0f766e;
}


/*====================================
RESPONSIVE
====================================*/
@media(max-width:991px) {

    .blog-hero {
        padding: 55px 0;
    }

    .blog-hero h1 {
        font-size: 36px;
    }

}

@media(max-width:768px) {

    .blog-hero {
        padding: 45px 0;
        text-align: center;
    }

    .blog-hero h1 {
        font-size: 30px;
    }

    .blog-hero p {
        font-size: 17px;
    }

    .blog-search {
        flex-direction: column;
        border-radius: 18px;
    }

    .blog-search input {
        padding: 18px;
    }

    .blog-search button {
        width: 100%;
        padding: 18px;
    }

}




/*==================================================
RESPONSIVE
==================================================*/

@media(max-width:991px) {

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-image,
    .featured-content {
        order: initial;
    }

    /* Stays single column - one post per row, not a grid of cards */
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-card {
        grid-template-columns: 1fr;
    }

    .post-image,
    .post-content {
        order: initial;
    }

    .post-image img {
        min-height: 220px;
    }

    .blog-sidebar {
        position: static;
    }

}

@media(max-width:768px) {

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .featured-content {
        padding: 30px;
    }

    .featured-content h2 {
        font-size: 28px;
    }

    .section-heading h2 {
        font-size: 28px;
    }

}