/* ==========================
   Single Post Layout
   ========================== */

.single-post-page .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.single-post-layout {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 40px;
    align-items: flex-start;
    width: 100%;
}

.single-post-container {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.single-post-layout > aside.site-sidebar,
.single-post-layout > .site-sidebar {
    display: block !important;
    flex: 0 0 320px !important;
    width: 320px !important;
    max-width: 320px !important;
    min-width: 320px !important;
    box-sizing: border-box;
    float: none !important;
    margin: 0 !important;
}

@media (max-width: 991px) {
    .single-post-layout {
        flex-direction: column !important;
        flex-wrap: wrap !important;
    }

    .single-post-container {
        width: 100% !important;
    }

    .single-post-layout > aside.site-sidebar,
    .single-post-layout > .site-sidebar {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}
.sidebar-widget .category-list > li > a{
    flex:0;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:8px;
    padding:12px 4px;
    color:#333;
    text-decoration:none;
    font-weight:500;
    transition:color .2s,padding-left .2s;
}
/* =========================================
   Breadcrumbs — Responsive Styles
   Scoped under .breadcrumbs so it won't
   affect other elements on the site.
========================================= */

.breadcrumbs {
	margin: 0px 0;
	padding: 10px 16px;
	background: #f9fafb;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.breadcrumbs ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	white-space: nowrap;
}

.breadcrumbs li {
	display: flex;
	align-items: center;
	font-size: 14px;
	color: #718096;
}

/* Separator between items */
.breadcrumbs li + li::before {
	content: "/";
	margin-right: 6px;
	color: #cbd5e0;
	font-weight: 400;
}

.breadcrumbs a {
	color: #2f855a;
	text-decoration: none;
	transition: color 0.2s ease;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus {
	color: #22543d;
	text-decoration: underline;
}

.breadcrumbs span[aria-current="page"] {
	color: #4a5568;
	font-weight: 600;
}

/* ---------- Tablet ---------- */
@media (max-width: 768px) {
	.breadcrumbs {
		padding: 8px 12px;
		margin: 14px 0;
	}

	.breadcrumbs li {
		font-size: 13px;
	}
}

/* ---------- Mobile ---------- */
@media (max-width: 480px) {
	.breadcrumbs ol {
		flex-wrap: nowrap;
	}

	.breadcrumbs li {
		font-size: 12px;
	}

	/* Keep long trails scrollable instead of wrapping/breaking layout */
	.breadcrumbs {
		white-space: nowrap;
	}

	/* Truncate very long breadcrumb labels on small screens */
	.breadcrumbs a,
	.breadcrumbs span[aria-current="page"] {
		max-width: 140px;
		overflow: hidden;
		text-overflow: ellipsis;
		display: inline-block;
		vertical-align: bottom;
	}
}

/*===========================
css for the table of content 
============================*/
/* Table of Contents box container */
.table-of-contents {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 24px 0;
    max-width: 500px;
}

.table-of-contents .toc-toggle {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 700;
    color: #222;
    cursor: pointer;
    padding: 0 0 12px 0;
    margin: 0;
    display: block;
    width: 100%;
    text-align: left;
}

.table-of-contents .toc-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.table-of-contents .toc-level-2 {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.table-of-contents .toc-level-2:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.toc-h2-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.toc-h2-row a {
    font-weight: 600;
    text-decoration: underline;
    color: #1a5c1a; /* matches the green in your screenshot */
}

.toc-h2-row a:hover {
    text-decoration: none;
}

/* Toggle arrow button */
.toc-sub-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toc-arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    transform: rotate(45deg); /* pointing down = collapsed */
    transition: transform 0.2s ease;
}

/* When open, rotate arrow to point up */
.toc-level-2.open .toc-arrow {
    transform: rotate(-135deg);
}

/* H3 sublist */
.toc-sublist {
    margin: 8px 0 0 0;
    padding-left: 16px;
    border-left: 2px solid #e0e0e0;
    list-style: none;
}

.toc-sublist li.toc-level-3 {
    margin-bottom: 6px;
}

.toc-sublist li.toc-level-3:last-child {
    margin-bottom: 0;
}

.toc-sublist a {
    color: #555;
    text-decoration: underline;
    font-weight: 400;
}

.toc-sublist a:hover {
    text-decoration: none;
}