/**
 * Blog Specific Styles
 * Modern, responsive blog design
 */

/* Blog Archive & Search */
.our-blog-section {
    background: #f8f9fa;
}

.single-blog-article {
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.single-blog-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.single-blog-article .blog-img {
    overflow: hidden;
    position: relative;
}

.single-blog-article .blog-img img {
    transition: transform 0.3s ease;
}

.single-blog-article:hover .blog-img img {
    transform: scale(1.05);
}

.blog-content-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-heading h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-heading h3 a:hover {
    color: #337ab6;
}

.post-meta {
    color: #6c757d;
    justify-content: start;
}

.post-meta i {
    margin-right: 4px;
}

.border-shape {
    display: block;
    height: 2px;
    background: linear-gradient(90deg, #337ab6 0%, transparent 100%);
    margin: 15px 0;
}

.article-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.article-comments span {
    font-size: 0.875rem;
    color: #337ab6;
}

/* Single Post */
.post {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.post-preview {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.post-preview img {
    width: 100%;
    height: auto;
}

.post-header {
    margin-top: 0px !important;
}

.post-title {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #2c3e50;
    margin-bottom: 20px !important;
}

.post-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.post-meta li {
    font-size: 0.875rem;
    color: #6c757d;
}

.post-meta li a {
    color: #337ab6;
    text-decoration: none;
}

.post-meta li a:hover {
    text-decoration: underline;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.post-content a {
    color: #337ab6;
    text-decoration: underline;
}

.post-content a:hover {
    color: #2a6396;
}

.post-tags {
    padding: 15px 0;
    border-top: 1px solid #e9ecef;
}

.post-tags a {
    display: inline-block;
    background: #f0f7fc;
    color: #337ab6;
    padding: 5px 12px;
    border-radius: 20px;
    margin: 5px 5px 5px 0;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background: #337ab6;
    color: white;
}

.post-footer {
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.widget {
    background: white;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.widget-title h6 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #337ab6;
}

/* Search Widget */
.widget-search form {
    position: relative;
}

.widget-search .form-control {
    padding-right: 45px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    height: 45px;
}

.widget-search .form-control:focus {
    border-color: #337ab6;
    box-shadow: 0 0 0 0.2rem rgba(51, 122, 182, 0.25);
}

.widget-search .search-button {
    position: absolute;
    right: 5px;
    top: 22px;
    background: #337ab6;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.widget-search .search-button:hover {
    background: #2a6396;
}

/* Categories Widget */
.widget-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-categories ul li {
    margin-bottom: 10px;
}

.widget-categories ul li a {
    display: block;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
}

.widget-categories ul li a:hover {
    background: #337ab6;
    color: white;
}

.widget-categories ul li a .float-right {
    background: white;
    color: #337ab6;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Recent Posts Widget */
.widget-recent-entries-custom ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-recent-entries-custom ul li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.widget-recent-entries-custom ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget-recent-entries-custom .wi {
    flex-shrink: 0;
}

.widget-recent-entries-custom .wi img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.widget-recent-entries-custom .wb {
    flex: 1;
}

.widget-recent-entries-custom .wb a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    display: block;
    margin-bottom: 5px;
}

.widget-recent-entries-custom .wb a:hover {
    color: #337ab6;
}

.widget-recent-entries-custom .post-date {
    font-size: 0.8rem;
    color: #6c757d;
    display: block;
}

/* Tags Widget */
.widget-tags .tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.widget-tags .tag-link {
    display: inline-block;
    background: #f0f7fc;
    color: #337ab6;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.widget-tags .tag-link:hover {
    background: #337ab6;
    color: white;
}

/* Pagination */
.pagination-wrap {
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #337ab6;
    color: white;
    border-color: #337ab6;
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

/* Responsive */
@media (max-width: 991px) {
    .sidebar-right {
        position: static;
        margin-top: 40px;
        padding-left: 15px;
    }
}

@media (max-width: 767px) {
    .post-title {
        font-size: 1.5rem;
    }

    .post-content {
        font-size: 1rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 8px;
    }

    .widget-recent-entries-custom .wi img {
        width: 60px;
        height: 60px;
    }

    .single-blog-article {
        margin-bottom: 20px;
    }
}