/* Blog Detail Styles */
.content-body .image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
}

.card-header {
    border-bottom: 1px solid rgba(0, 127, 254, 0.24);
    background: #f8fff8!important;
}

/* Sidebar Styles */
#blogSidebar {
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

#blogSidebar::-webkit-scrollbar {
    width: 6px;
}

#blogSidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#blogSidebar::-webkit-scrollbar-thumb {
    background: #4CAF50;
    border-radius: 10px;
}

.sidebar-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 25px;
    overflow: hidden;
    background: #fff; /* Ensure background is white unless glass */
}

.sidebar-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.sidebar-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #4CAF50;
    padding: 15px 20px;
}

.sidebar-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
}

.sidebar-card-title i {
    color: #4CAF50;
    margin-right: 10px;
    font-size: 1.2rem;
}

.sidebar-card-body {
    padding: 20px;
}

/* Info Row */
.info-row {
    margin-bottom: 0;
}

.info-row dt {
    color: #6c757d;
    font-weight: 600;
    font-size: 0.9rem;
}

.info-row dd {
    color: #495057;
    font-size: 0.9rem;
}

.info-row dd a {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-row dd a:hover {
    color: #2196F3;
}

/* Tag Badge */
.tag-badge {
    display: inline-block;
    padding: 6px 14px;
    margin: 4px;
    background: linear-gradient(135deg, #FFA726 0%, #FB8C00 100%);
    color: #ffffff;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(255, 167, 38, 0.3);
}

.tag-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 167, 38, 0.4);
    color: #ffffff;
}

/* Recent Posts */
.recent-posts-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #4CAF50;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.recent-posts-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.recent-posts-header i {
    color: #4CAF50;
}

.blog-sidebar-item {
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef !important;
}

.blog-sidebar-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #4CAF50 !important;
}

.blog-sidebar-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.blog-sidebar-title {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.blog-sidebar-item:hover .blog-sidebar-title {
    color: #4CAF50;
}

/* Search Form */
.search-form .input-group {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.search-form input {
    border: 1px solid #e9ecef;
    padding: 10px 15px;
}

.search-form input:focus {
    border-color: #4CAF50;
    box-shadow: none;
}

.search-form button {
    background: #4CAF50;
    border: none;
    padding: 10px 20px;
    transition: background 0.3s ease;
}

.search-form button:hover {
    background: #45a049;
}

/* Subscribe Card */
.subscribe-card {
    background: linear-gradient(135deg, #4CAF50 0%, #2196F3 100%);
    border: none;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.subscribe-card h5 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.4;
}

.subscribe-form .input-group {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.subscribe-form input {
    border: none;
    padding: 12px 16px;
    font-size: 0.95rem;
}

.subscribe-form input:focus {
    box-shadow: none;
}

.subscribe-form button {
    background: #FFA726;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    color: #ffffff;
    transition: all 0.3s ease;
}

.subscribe-form button:hover {
    background: #FB8C00;
    transform: scale(1.05);
}

.btn-view-all {
    background: transparent;
    border: 2px solid #4CAF50;
    color: #4CAF50;
    border-radius: 8px;
    padding: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: #4CAF50;
    color: #ffffff;
}

#toc-content a {
    color: #495057;
    text-decoration: none;
    display: block;
    padding: 8px 0;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    padding-left: 15px;
}

#toc-content a:hover {
    color: #4CAF50;
    border-left-color: #4CAF50;
    padding-left: 20px;
}

@media (max-width: 991px) {
    #blogSidebar {
        position: relative;
        top: 0;
        max-height: none;
        margin-top: 40px;
    }
}
