﻿.blog-banner {
    width: 100%;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/blog-top-bg.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}


    .blog-banner .blog-banner-wrapper {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        /* margin-top: 10rem; */
    }

        .blog-banner .blog-banner-wrapper .badge {
            background-color: #E3E7F7;
            padding: 10px 15px;
            border-radius: 20px;
            color: #0027B7;
            font-size: 14px;
        }


        .blog-banner .blog-banner-wrapper h1 {
            color: #0027B7;
            font-size: 3rem;
        }


        .blog-banner .blog-banner-wrapper .blog-search-bar {
            display: flex;
            align-items: center;
            border: 1px solid #cfcfcf;
            padding: 10px;
            width: 300px;
            gap: 5px;
            color: #515151;
        }

            .blog-banner .blog-banner-wrapper .blog-search-bar input {
                outline: none;
                border: none;
                background-color: transparent;
                color: #515151;
                width: 100%;
            }





.blog-section {
    background: #dff6ff;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blog-container {
    width: 90%;
    max-width: 1200px;
    text-align: center;
}

.blog-title {
    font-size: 2rem;
    color: #0a3fa4;
    margin-bottom: 25px;
}

.blog-search {
    margin-bottom: 25px;
}

    .blog-search input {
        padding: 10px 15px;
        width: 100%;
        max-width: 400px;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: 15px;
    }

.blog-grid-con {
    padding: 5rem 5rem;
    background-color: #dff6ff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: 25px;
    width: 100%;
}

.blog-card {
    background: #fff;
    padding: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s;
}

    .blog-card:hover {
        transform: translateY(-5px);
    }

    .blog-card img.blog-img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

.blog-content {
    padding: 15px;
}

    .blog-content h3 {
        font-size: 1.2rem;
        margin-bottom: 20px;
        color: #333;
    }

    .blog-content p {
        font-size: 14px;
        color: #6f6f6f;
        line-height: 1.5;
        margin-bottom: 15px;
    }

.blog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px 15px;
}

.blog-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .blog-user img {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        object-fit: cover;
    }

.blog-user-info p {
    font-size: 13px;
    margin: 0;
}

.blog-user-info span {
    font-size: 12px;
    color: #777;
}

.load-btn {
    background: #0a3fa4;
    color: #fff;
    padding: 10px 30px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
}

    .load-btn:hover {
        background: #072c7a;
    }

.no-blogs {
    display: none;
    color: #333;
    font-size: 2rem;
    margin-top: 20px;
}



@media (max-width: 700px) {
    .blog-banner {
        background-size: contain;
    }

        .blog-banner .blog-banner-wrapper {
            margin-top: 2rem;
        }
}

@media (max-width: 600px) {
    .blog-grid-con {
        padding: 5rem 1rem;
    }
}


@media (max-width: 500px) {
    .blog-banner {
        background-size: cover;
    }

        .blog-banner .blog-banner-wrapper {
            margin-top: 2rem;
        }

            .blog-banner .blog-banner-wrapper h1 {
                font-size: 2.5rem;
                text-align: center;
            }
}


@media (max-width: 385px) {
    .blog-banner .blog-banner-wrapper {
        gap: 1rem;
    }

    .blog-banner .blog-banner-wrapper {
        margin-top: 5rem;
    }

        .blog-banner .blog-banner-wrapper .blog-search-bar {
            width: 250px;
        }
}


@media (max-width: 340px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}
