﻿
.block-head {
    padding-bottom: 20px;
    position: relative;
}

.block-head h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #007bff;
    color: #fff;
    display: inline-block;
    width: 100%;
}

.blog-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.blog-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    flex: 1;
    min-width: 300px;
}

    .blog-item:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.blog-content {
    padding: 20px;
    height: 260px !important;
}

.blog-date {
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.blog-date-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

    .blog-date-item::before {
        content: "📅";
        font-size: 14px;
    }

.blog-time-item::before {
    content: "🕐" !important;
}

.blog-title {
    font-size: 20px;
    font-weight: 600;
    margin: 10px 0;
    line-height: 1.4;
}

    .blog-title a {
        color: #333;
        text-decoration: none;
    }

        .blog-title a:hover {
            color: #007bff;
        }

.blog-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 15px 0;
}

.blog-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-author {
    color: #999;
    font-size: 12px;
}

    .blog-author strong {
        color: #333;
    }

.read-more-btn {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: color 0.3s ease;
}

    .read-more-btn:hover {
        color: #0056b3;
    }

/* Most Visited Blog Styles */
.most-visited-section {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .most-visited-section h4 {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 2px solid #007bff;
        color: #333;
    }

.most-visited-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.visited-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f0f0f0;
}

    .visited-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.most-visited-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

    .most-visited-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .most-visited-item:hover {
        background-color: #f9f9f9;
        padding-left: 8px;
    }

.visited-number {
    display: none;
}

.visited-content {
    flex: 1;
    min-width: 0;
}

.visited-title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

    .visited-title a {
        color: #333;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .visited-title a:hover {
            color: #007bff;
        }

.visited-meta {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.visited-views {
    display: inline-block;
    margin-right: 10px;
}

    .visited-views::before {
        content: "👁 ";
    }

#divBlog {
    padding: 0px !important;
}

.blog-tag {
    display: inline-block;
    /*  background-color: #f8f9fa;*/ /* light background */
    color: #007bff; /* blue text */
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    margin: 4px;
    border-radius: 20px; /* pill shape */
    text-decoration: none; /* remove underline */
    transition: all 0.3s ease;
    border: 1px solid #007bff; /* blue border */
}

    .blog-tag:hover {
        background-color: #007bff; /* blue background on hover */
        color: #fff; /* white text */
        cursor: pointer;
        text-decoration:none;
    }


.no-padding {
    padding: 0px !important;
}