/* Blog Styling */

/* Blog Detail Content */
.blog-detail .text {
    line-height: 1.8;
    font-size: 15px;
    color: #666;
    margin: 30px 0;
}

.blog-detail .text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.blog-detail .text h1,
.blog-detail .text h2,
.blog-detail .text h3,
.blog-detail .text h4,
.blog-detail .text h5,
.blog-detail .text h6 {
    margin: 30px 0 15px 0;
    color: #333;
    font-weight: 600;
}

.blog-detail .text h1 {
    font-size: 32px;
}

.blog-detail .text h2 {
    font-size: 28px;
}

.blog-detail .text h3 {
    font-size: 24px;
}

.blog-detail .text h4 {
    font-size: 20px;
}

.blog-detail .text h5 {
    font-size: 18px;
}

.blog-detail .text h6 {
    font-size: 16px;
}

.blog-detail .text ul,
.blog-detail .text ol {
    margin: 20px 0 20px 30px;
    padding-left: 20px;
}

.blog-detail .text ul li,
.blog-detail .text ol li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.blog-detail .text blockquote {
    margin: 30px 0;
    padding: 20px;
    border-left: 4px solid #007bff;
    background-color: #f8f9fa;
    font-style: italic;
    color: #555;
}

.blog-detail .text code {
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #d63384;
}

.blog-detail .text pre {
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #ddd;
}

.blog-detail .text pre code {
    background-color: transparent;
    padding: 0;
    color: #333;
}

.blog-detail .text img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-detail .text a {
    color: #007bff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.blog-detail .text a:hover {
    color: #0056b3;
    border-bottom-color: #0056b3;
}

.blog-detail .text table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border: 1px solid #ddd;
}

.blog-detail .text table th,
.blog-detail .text table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.blog-detail .text table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.blog-detail .text table tr:hover {
    background-color: #f9f9f9;
}

/* Blog List Styling */
.blog-list .news-block-two {
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.blog-list .news-block-two:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-list .news-block-two .images img {
    transition: transform 0.3s ease;
}

.blog-list .news-block-two:hover .images img {
    transform: scale(1.05);
}

/* Post Meta Styling */
.post-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.post-meta li {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #999;
}

.post-meta li.style-two {
    color: #666;
    font-weight: 500;
}

.post-meta .icon {
    color: #007bff;
    font-size: 14px;
}

/* Sidebar Styling */
.sidebar-widget {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.sidebar-widget .sidebar-title h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.sidebar-widget .blog-cat {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget .blog-cat li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-widget .blog-cat li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-widget .blog-cat a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-widget .blog-cat a:hover {
    color: #007bff;
}

.sidebar-widget .blog-cat span {
    background-color: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Popular Posts Widget */
.sidebar-widget.popular-posts .post {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-widget.popular-posts .post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-widget.popular-posts .post-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.sidebar-widget.popular-posts .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-widget.popular-posts .post-thumb .overlay-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 123, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-widget.popular-posts .post-thumb:hover .overlay-box {
    opacity: 1;
}

.sidebar-widget.popular-posts .post-thumb .icon {
    color: white;
    font-size: 18px;
}

.sidebar-widget.popular-posts .text a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 5px;
}

.sidebar-widget.popular-posts .text a:hover {
    color: #007bff;
}

.sidebar-widget.popular-posts .post-info {
    font-size: 12px;
    color: #999;
}

/* Search Box */
.sidebar-widget.search-box {
    padding: 0;
    background-color: transparent;
}

.sidebar-widget.search-box .form-group {
    display: flex;
    gap: 0;
}

.sidebar-widget.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 3px 0 0 3px;
    font-size: 14px;
}

.sidebar-widget.search-box button {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sidebar-widget.search-box button:hover {
    background-color: #0056b3;
}

/* Pagination */
.styled-pagination {
    list-style: none;
    padding: 0;
    margin: 40px 0;
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.styled-pagination li {
    display: inline-block;
}

.styled-pagination a,
.styled-pagination span {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    font-size: 14px;
}

.styled-pagination a:hover {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.styled-pagination a.active,
.styled-pagination li a.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.styled-pagination span.disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .post-meta {
        flex-direction: column;
        gap: 8px;
    }

    .blog-detail .text h1 {
        font-size: 24px;
    }

    .blog-detail .text h2 {
        font-size: 20px;
    }

    .blog-detail .text h3 {
        font-size: 18px;
    }

    .sidebar-widget.popular-posts .post {
        gap: 10px;
    }

    .sidebar-widget.popular-posts .post-thumb {
        width: 60px;
        height: 60px;
    }
}
