/**
 * Blog Sidebar Styles
 */

/* Blog Sidebar Container */
.blog-sidebar {
    margin-top: 0;
}

/* Widget Structure Fix */
.blog-sidebar .widget {
    margin-bottom: 40px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.blog-sidebar .widget > div {
    padding: 30px;
}

/* Widget Title */
.blog-sidebar .widget-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

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

/* Search Widget Fix */
.blog-sidebar .widget_search form,
.blog-sidebar .widget__search {
    position: relative;
    display: flex;
    align-items: center;
}

.blog-sidebar .widget_search input[type="search"],
.blog-sidebar .widget__search input[type="search"] {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.blog-sidebar .widget_search input[type="search"]:focus,
.blog-sidebar .widget__search input[type="search"]:focus {
    border-color: #006233;
    outline: none;
    background: #fff;
}

.blog-sidebar .widget_search button,
.blog-sidebar .widget__search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #006233;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-sidebar .widget_search button:hover,
.blog-sidebar .widget__search button:hover {
    background: #004d26;
}

.blog-sidebar .widget_search button img,
.blog-sidebar .widget__search button img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

/* Categories Widget */
.blog-sidebar .widget_categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar .widget_categories li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.blog-sidebar .widget_categories li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.blog-sidebar .widget_categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #4a5568;
    font-size: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.blog-sidebar .widget_categories a:hover {
    color: #006233;
    padding-left: 10px;
}

/* Post count styling */
.blog-sidebar .widget_categories li a::after {
    content: attr(data-count);
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
}

/* Recent Posts Widget */
.blog-sidebar .widget_recent_entries ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar .widget_recent_entries li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.blog-sidebar .widget_recent_entries li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.blog-sidebar .widget_recent_entries a {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
    transition: all 0.3s ease;
    display: block;
}

.blog-sidebar .widget_recent_entries a:hover {
    color: #006233;
}

/* Tag Cloud Widget */
.blog-sidebar .widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-sidebar .widget_tag_cloud a {
    display: inline-block;
    padding: 6px 16px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 13px;
    color: #4a5568;
    transition: all 0.3s ease;
    text-decoration: none;
}

.blog-sidebar .widget_tag_cloud a:hover {
    background: #006233;
    color: #fff;
}

/* Archive Widget */
.blog-sidebar .widget_archive ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar .widget_archive li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.blog-sidebar .widget_archive li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.blog-sidebar .widget_archive a {
    color: #4a5568;
    font-size: 15px;
    transition: all 0.3s ease;
}

.blog-sidebar .widget_archive a:hover {
    color: #006233;
}

/* Text Widget */
.blog-sidebar .widget_text {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.8;
}

.blog-sidebar .widget_text p {
    margin-bottom: 15px;
}

.blog-sidebar .widget_text p:last-child {
    margin-bottom: 0;
}

/* Custom HTML Widget */
.blog-sidebar .widget_custom_html {
    color: #4a5568;
    font-size: 14px;
}

/* RSS Widget */
.blog-sidebar .widget_rss ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar .widget_rss li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.blog-sidebar .widget_rss li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.blog-sidebar .widget_rss .rsswidget {
    color: #1a1a1a;
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.blog-sidebar .widget_rss .rss-date {
    color: #999;
    font-size: 12px;
    display: block;
    margin-bottom: 5px;
}

.blog-sidebar .widget_rss .rssSummary {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

/* Calendar Widget */
.blog-sidebar .widget_calendar table {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
}

.blog-sidebar .widget_calendar caption {
    padding: 10px;
    font-weight: 600;
    color: #1a1a1a;
}

.blog-sidebar .widget_calendar th,
.blog-sidebar .widget_calendar td {
    padding: 8px;
    font-size: 13px;
}

.blog-sidebar .widget_calendar th {
    background: #f0f0f0;
    font-weight: 600;
}

.blog-sidebar .widget_calendar td {
    color: #666;
}

.blog-sidebar .widget_calendar td a {
    color: #006233;
    font-weight: 600;
}

.blog-sidebar .widget_calendar #today {
    background: #006233;
    color: #fff;
    font-weight: 600;
}

/* Meta Widget */
.blog-sidebar .widget_meta ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar .widget_meta li {
    margin-bottom: 10px;
}

.blog-sidebar .widget_meta a {
    color: #4a5568;
    font-size: 14px;
    transition: all 0.3s ease;
}

.blog-sidebar .widget_meta a:hover {
    color: #006233;
}

/* Responsive */
@media (max-width: 991px) {
    .blog-sidebar {
        margin-top: 50px;
    }
    
    .blog-sidebar .widget > div {
        padding: 25px;
    }
}

@media (max-width: 767px) {
    .blog-sidebar .widget > div {
        padding: 20px;
    }
    
    .blog-sidebar .widget-title {
        font-size: 18px;
    }
}