/* Blog Sidebar Styles */
.sidebar {
    position: sticky;
    top: 20px;
}

.widget {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #E97300;
}

/* Categories Widget */
.widget ul.list-unstyled li {
    border-bottom: 1px solid #f5f5f5;
    padding: 8px 0;
}

.widget ul.list-unstyled li:last-child {
    border-bottom: none;
}

.widget ul.list-unstyled li a {
    transition: all 0.3s ease;
    padding: 5px 0;
}

.widget ul.list-unstyled li a:hover {
    color: #E97300 !important;
    transform: translateX(5px);
}

/* Recent Posts Widget */
.recent-post {
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 15px;
}

.recent-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post img {
    border-radius: 6px;
    object-fit: cover;
}

.recent-post h6 a {
    color: #333;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.recent-post h6 a:hover {
    color: #E97300;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud .badge {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.tag-cloud .badge:hover {
    background: #E97300 !important;
    color: white !important;
    transform: translateY(-2px);
}

/* Author Info Widget */
.author-info {
    text-align: center;
}

.author-info img {
    border: 3px solid #f0f0f0;
    transition: border-color 0.3s ease;
}

.author-info img:hover {
    border-color: #E97300;
}

.author-info h6 {
    margin-top: 15px;
    color: #333;
    font-weight: 600;
}

.author-info p {
    color: #666;
    font-size: 14px;
}

/* Horizontal Blog Layout Styles */
.blog-posts-horizontal {
    margin-bottom: 30px;
}

.blog-post-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-item:hover {
    transform: translateY(-5px);
}

.blog-post-item .card {
    border: none;
    transition: all 0.3s ease;
}

.blog-post-item .card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.blog-post-item .blog-image {
    position: relative;
    overflow: hidden;
}

.blog-post-item .blog-image img {
    transition: transform 0.3s ease;
}

.blog-post-item .blog-image:hover img {
    transform: scale(1.05);
}

.blog-post-item .card-title {
    font-size: 1.25rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-post-item .card-title:hover {
    color: #E97300 !important;
}

.blog-post-item .card-text {
    line-height: 1.6;
    color: #666;
}

.blog-post-item .btn-outline-primary {
    border-color: #E97300;
    color: #E97300;
    transition: all 0.3s ease;
}

.blog-post-item .btn-outline-primary:hover {
    background-color: #E97300;
    border-color: #E97300;
    color: white;
}

.blog-post-item .blog-meta {
    font-size: 0.875rem;
}

.blog-post-item .blog-meta .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .sidebar {
        position: static;
        margin-top: 30px;
    }
    
    .widget {
        margin-bottom: 20px;
    }
    
    .blog-post-item .col-md-4 {
        margin-bottom: 15px;
    }
    
    .blog-post-item .blog-image {
        min-height: 200px;
    }
}

@media (max-width: 767px) {
    .blog-post-item .row {
        flex-direction: column;
    }
    
    .blog-post-item .col-md-4,
    .blog-post-item .col-md-8 {
        width: 100%;
    }
    
    .blog-post-item .blog-image {
        min-height: 250px;
    }
    
    .blog-post-item .card-body {
        padding: 1rem !important;
    }
}

/* Blog post meta styles */
.blog-meta {
    font-size: 12px;
}

.blog-meta .badge {
    font-size: 10px;
    padding: 4px 8px;
}

/* Search form styling */
.search-section .form-control {
    border-radius: 25px 0 0 25px;
    border: 2px solid #e9ecef;
    padding: 10px 20px;
}

.search-section .btn {
    border-radius: 0 25px 25px 0;
    border: 2px solid #E97300;
    background: #E97300;
    color: white;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.search-section .btn:hover {
    background: #d16600;
    border-color: #d16600;
}

/* Pagination styling */
.pagination .page-link {
    border: none;
    color: #666;
    padding: 10px 15px;
    margin: 0 2px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: #E97300;
    color: white;
}

.pagination .page-item.active .page-link {
    background: #E97300;
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #ccc;
    background: #f8f9fa;
}

/* Blog Hero Section - Maximum Height for Large Screens */
@media (min-width: 992px) {
    .blog-hero-section {
        max-height: 300px !important;
        min-height: 300px !important;
        height: 300px !important;
    }
    
    .blog-hero-section .container {
        height: 100%;
    }
    
    .blog-hero-section .row {
        height: 100%;
    }
    
    .blog-hero-section .col-lg-10 {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    /* Adjust text sizes for better fit in smaller height */
    .blog-hero-section h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }
    
    .blog-hero-section .fs-18 {
        font-size: 14px !important;
    }
    
    .blog-hero-section .w-80px {
        width: 50px !important;
        height: 50px !important;
    }
    
    .blog-hero-section .mt-40px {
        margin-top: 15px !important;
    }
    
    .blog-hero-section .mb-20px {
        margin-bottom: 10px !important;
    }
}

/* Medium screens - slightly larger height */
@media (min-width: 768px) and (max-width: 991px) {
    .blog-hero-section {
        max-height: 250px !important;
        min-height: 250px !important;
        height: 250px !important;
    }
}

/* Small screens - keep original height */
@media (max-width: 767px) {
    .blog-hero-section {
        min-height: 300px !important;
    }
} 