/* Blog Page Styles */
.page-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

/* Blog Card Styles */
.blog-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.blog-image {
    position: relative;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-image a {
    display: block;
    text-decoration: none;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-date {
    color: #3e6807;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    min-width: 50px;
}

.blog-date .day {
    display: block;
    font-size: 1.2rem;
    line-height: 1;
}

.blog-date .month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.blog-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-title {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.blog-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: #007bff;
}

.blog-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-categories {
    margin-top: auto;
}

.blog-categories .badge {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Sidebar Styles */
.sidebar-widget {
    background: white;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.widget-title {
    color: #fff;
    background: #28a745;
    margin: 0;
    padding: 1rem 1.5rem;
    border-radius: 8px 8px 0 0;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0;
}

/* Categories Widget Styles */
.categories-widget {
    width: 100%;
}

.main-category-header {
    background: #28a745;
    color: white;
    padding: 1rem 1.5rem;
}

.widget-title-main {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.categories-content {
    padding: 0;
}

.category-section {
    border-bottom: 1px solid #f0f0f0;
}

.category-header {
    background: #f8f9fa;
    color: #495057;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #e9ecef;
}

.category-header:hover {
    background: #e9ecef;
}

.category-title-link {
    font-weight: 500;
    color: #495057;
    text-decoration: none;
    flex-grow: 1;
    transition: color 0.3s ease;
}

.category-title-link:hover {
    color: #28a745;
    text-decoration: none;
}

.category-title-link.active {
    color: #28a745;
    font-weight: 600;
}

.category-title {
    font-weight: 500;
    color: #495057;
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    color: #28a745;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.toggle-icon:hover {
    background: rgba(40, 167, 69, 0.1);
}

.toggle-icon[aria-expanded="true"] {
    transform: rotate(180deg);
}

.category-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item:hover {
    background-color: #f8f9fa;
    color: #28a745;
    text-decoration: none;
    padding-left: 2rem;
}

.category-item.active {
    background-color: #d4edda;
    color: #155724;
    font-weight: 600;
    border-left: 3px solid #28a745;
}

.category-item.active:hover {
    padding-left: 1.5rem;
}

.sub-categories {
    background: #f8f9fa;
}

.sub-category-item {
    display: block;
    padding: 0.6rem 1.5rem 0.6rem 2.5rem;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
}

.sub-category-item:last-child {
    border-bottom: none;
}

.sub-category-item:hover {
    background-color: #e9ecef;
    color: #28a745;
    text-decoration: none;
    padding-left: 3rem;
}

.sub-category-item.active {
    background-color: #d4edda;
    color: #155724;
    font-weight: 600;
    border-left: 3px solid #28a745;
}

.sub-category-item.active:hover {
    padding-left: 2.5rem;
}

/* Recent Posts */
.recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-post-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.recent-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-post-image {
    flex-shrink: 0;
    margin-right: 1rem;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 6px;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-content {
    flex-grow: 1;
    min-width: 0;
}

.recent-post-content h6 {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

.recent-post-content h6 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-content h6 a:hover {
    color: #007bff;
}

.recent-post-content small {
    font-size: 0.8rem;
}

/* Pagination */
.pagination .page-link {
    color: #007bff;
    border-color: #dee2e6;
    padding: 0.5rem 0.75rem;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

.pagination .page-link:hover {
    color: #0056b3;
    background-color: #e9ecef;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

.breadcrumb-item a {
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 767px) {
    .blog-card {
        margin-bottom: 1.5rem;
    }
    
    .blog-content {
        padding: 1rem;
    }
    
    .blog-date {
        top: 10px;
        left: 10px;
        padding: 6px 10px;
    }
    
    .sidebar-widget {
        margin-bottom: 1.5rem;
    }
    
    .main-category-header {
        padding: 0.75rem 1rem;
    }
    
    .widget-title-main {
        font-size: 1rem;
    }
    
    .category-header {
        padding: 0.6rem 1rem;
    }
    
    .category-item {
        padding: 0.6rem 1rem;
    }
    
    .category-item:hover {
        padding-left: 1.5rem;
    }
    
    .category-item.active:hover {
        padding-left: 1rem;
    }
    
    .sub-category-item {
        padding: 0.5rem 1rem 0.5rem 2rem;
    }
    
    .sub-category-item:hover {
        padding-left: 2.5rem;
    }
    
    .sub-category-item.active:hover {
        padding-left: 2rem;
    }
    
    .recent-post-image {
        width: 50px;
        height: 50px;
        margin-right: 0.75rem;
    }
}

/* Empty State */
.text-center.py-5 {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Blog Detail Styles */
.blog-detail {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}



.blog-header {
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 1rem;
}

.blog-detail .blog-title {
    color: #333;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-meta i {
    color: #28a745;
}

.blog-categories .category-link {
    color: #28a745;
    text-decoration: none;
}

.blog-categories .category-link:hover {
    text-decoration: underline;
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

.blog-excerpt {
    font-size: 14px;
    color: #555;
    border-radius: 0.25rem;
}

.blog-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

.blog-content h1, .blog-content h2, .blog-content h3, 
.blog-content h4, .blog-content h5, .blog-content h6 {
    color: #333;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content p {
    margin-bottom: 1rem;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
    margin: 1rem 0;
}

.blog-content blockquote {
    border-left: 4px solid #28a745;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555;
}

.blog-content ul, .blog-content ol {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.blog-content table th,
.blog-content table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.blog-content table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Related Blogs Section */
.related-blogs {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.section-title {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #28a745;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.blog-meta-small {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
}

.blog-meta-small i {
    color: #28a745;
    margin-right: 0.25rem;
}

/* Responsive Design for Blog Detail */
@media (max-width: 768px) {
    .blog-detail {
        padding: 1rem;
    }
    
    .blog-detail .blog-title {
        font-size: 1.5rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
} 