.zdl-container {
	width: min(1320px, calc(100% - 40px));
	margin: 0 auto;
}

.zdl-hero {
	min-height: 430px;
	padding: 170px 0 72px;
	background:
		linear-gradient(90deg, rgba(35, 41, 51, 0.86) 0%, rgba(35, 41, 51, 0.58) 46%, rgba(35, 41, 51, 0.22) 100%),
		url("https://zahle.gov.lb/wp-content/uploads/2025/09/municipality-1-scaled.jpg") center / cover no-repeat;
	color: #fff;
}

.zdl-explorer-hero {
	padding-bottom: 52px;
}

.zdl-eyebrow,
.zdl-panel-label {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.78);
}

.zdl-panel-label {
	display: block;
	margin-bottom: 7px;
	color: #912b4f;
}

.zdl-hero h1,
.zdl-single h1 {
	margin: 0;
	color: inherit;
	font-size: 48px;
	font-weight: 750;
	line-height: 1.08;
	letter-spacing: 0;
}

.zdl-hero p:not(.zdl-eyebrow) {
	max-width: 760px;
	margin: 16px 0 0;
	font-size: 18px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.9);
}

.zdl-explorer-shell {
	display: grid;
	grid-template-columns: 340px minmax(0, 1fr);
	gap: 0;
	margin-top: 54px;
	margin-bottom: 90px;
	border: 1px solid #e1e6ef;
	background: #fff;
	box-shadow: 0 18px 55px rgba(18, 43, 78, 0.08);
}

.zdl-sidebar {
	min-width: 0;
	border-right: 1px solid #e1e6ef;
	background: #f6f8fb;
}

.zdl-sidebar-inner {
	position: sticky;
	top: 120px;
	max-height: calc(100vh - 140px);
	overflow: auto;
	padding: 24px 18px 26px;
}

.zdl-sidebar-head {
	padding: 0 8px 16px;
	border-bottom: 1px solid #e1e6ef;
}

.zdl-sidebar-head p {
	margin: 9px 0 0;
	color: #62718d;
	font-size: 14px;
	line-height: 1.55;
}

.zdl-sidebar h2,
.zdl-content-heading h2,
.zdl-files-panel h2 {
	margin: 0;
	color: #232933;
	font-size: 22px;
	font-weight: 750;
	line-height: 1.2;
}

.zdl-tree {
	list-style: none;
	margin: 0;
	padding: 14px 0 0;
}

.zdl-tree .zdl-tree {
	display: none;
	margin: 5px 0 7px 16px;
	padding: 0 0 0 13px;
	border-left: 1px solid #d8dee9;
}

.zdl-tree li.open > .zdl-tree,
.zdl-tree li.active > .zdl-tree {
	display: block;
}

.zdl-tree li {
	margin: 0;
	padding: 0;
}

.zdl-tree-node {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr);
	align-items: center;
	gap: 4px;
	min-height: 38px;
}

.zdl-tree-toggle,
.zdl-tree-spacer {
	width: 24px;
	height: 24px;
}

.zdl-tree-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.zdl-tree-toggle span {
	width: 0;
	height: 0;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	border-left: 6px solid #6f7b91;
	transition: transform 0.18s ease;
}

.zdl-tree li.open > .zdl-tree-node .zdl-tree-toggle span {
	transform: rotate(90deg);
}

.zdl-tree-node a {
	display: block;
	min-width: 0;
	padding: 9px 10px;
	color: #232933;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.zdl-tree li.active > .zdl-tree-node a,
.zdl-tree-node a:hover {
	background: #fff;
	color: #912b4f;
	box-shadow: inset 3px 0 0 #912b4f;
}

.zdl-content {
	min-width: 0;
	padding: 30px;
	background: #fff;
}

.zdl-content-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 20px;
	padding-bottom: 22px;
	border-bottom: 1px solid #e1e6ef;
}

.zdl-heading-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.zdl-reset-link,
.zdl-card-link,
.zdl-back-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 10px 16px;
	background: #232933;
	color: #fff;
	font-size: 14px;
	font-weight: 750;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.zdl-reset-link {
	background: #eef2f7;
	color: #232933;
}

.zdl-reset-link:hover,
.zdl-card-link:hover,
.zdl-back-link:hover {
	background: #912b4f;
	color: #fff;
}

.zdl-document-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.zdl-document-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-content: start;
	gap: 14px;
	min-height: 100%;
	padding: 22px;
	border: 1px solid #e1e6ef;
	background: #fff;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.zdl-document-row.is-clickable {
	cursor: pointer;
}

.zdl-document-row:hover,
.zdl-document-row:focus-visible {
	border-color: rgba(145, 43, 79, 0.35);
	box-shadow: 0 14px 34px rgba(35, 41, 51, 0.1);
	outline: none;
	transform: translateY(-1px);
}

.zdl-row-image {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #eef2f7;
}

.zdl-row-image img,
.zdl-single-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.zdl-row-main {
	min-width: 0;
}

.zdl-document-path {
	display: block;
	margin-bottom: 6px;
	color: #6f7b91;
	font-size: 12px;
	font-weight: 750;
	line-height: 1.35;
}

.zdl-row-title-line {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 7px;
}

.zdl-row-title-line h3 {
	min-width: 0;
	margin: 0;
	color: #232933;
	font-size: 20px;
	font-weight: 760;
	line-height: 1.25;
}

.zdl-row-title-line h3 a {
	color: inherit;
	text-decoration: none;
}

.zdl-row-title-line h3 a:hover {
	color: #912b4f;
}

.zdl-row-main p {
	max-width: 760px;
	margin: 0 0 11px;
	color: #59677c;
	font-size: 14px;
	line-height: 1.55;
}

.zdl-file-count {
	display: inline-flex;
	flex: 0 0 auto;
	padding: 4px 8px;
	background: rgba(145, 43, 79, 0.1);
	color: #912b4f;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
}

.zdl-empty {
	margin: 0;
	color: #62718d;
	font-size: 15px;
	line-height: 1.6;
}

.zdl-single {
	padding: 70px 0 90px;
}

.zdl-back-link {
	margin-bottom: 28px;
}

.zdl-single-card {
	max-width: 920px;
}

.zdl-single-main {
	min-width: 0;
}

.zdl-single h1 {
	margin-bottom: 24px;
	color: #232933;
}

.zdl-single-image {
	aspect-ratio: 16 / 9;
	margin-bottom: 28px;
	overflow: hidden;
	background: #eef2f7;
}

.zdl-single-content {
	color: #263454;
	font-size: 17px;
	line-height: 1.75;
}

.zdl-files-panel {
	margin-top: 34px;
	padding: 24px;
	background: #f8fafc;
	border: 1px solid #e4e8ef;
}

.zdl-file-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.zdl-file-list li + li {
	margin-top: 0;
}

.zdl-file-list a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px;
	background: #fff;
	color: #232933;
	text-decoration: none;
	border: 1px solid #e4e8ef;
}

.zdl-file-list a:hover {
	border-color: #912b4f;
}

.zdl-file-list span {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.zdl-file-list small {
	color: #62718d;
	font-size: 13px;
}

.zdl-content .navigation.pagination {
	margin: 28px 0 0;
}

.zdl-content .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.zdl-content .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 13px;
	border: 1px solid #e1e6ef;
	background: #fff;
	color: #232933;
	font-size: 14px;
	font-weight: 750;
	line-height: 1;
	text-decoration: none;
}

.zdl-content .page-numbers.current,
.zdl-content a.page-numbers:hover {
	border-color: #912b4f;
	background: #912b4f;
	color: #fff;
}

.zdl-content .page-numbers.prev,
.zdl-content .page-numbers.next {
	min-width: auto;
	background: #232933;
	color: #fff;
}

.zdl-content .page-numbers.prev:hover,
.zdl-content .page-numbers.next:hover {
	border-color: #912b4f;
	background: #912b4f;
	color: #fff;
}

@media (max-width: 980px) {
	.zdl-explorer-shell {
		grid-template-columns: 1fr;
	}

	.zdl-document-list {
		grid-template-columns: 1fr;
	}

	.zdl-sidebar {
		border-right: 0;
		border-bottom: 1px solid #e1e6ef;
	}

	.zdl-sidebar-inner,
	.zdl-files-panel {
		position: static;
		max-height: none;
	}
}

@media (max-width: 767px) {
	.zdl-container {
		width: min(100% - 32px, 1320px);
	}

	.zdl-hero {
		min-height: 360px;
		padding: 130px 0 48px;
	}

	.zdl-hero h1,
	.zdl-single h1 {
		font-size: 35px;
	}

	.zdl-explorer-shell {
		margin-top: 34px;
	}

	.zdl-content,
	.zdl-sidebar-inner {
		padding: 20px;
	}

	.zdl-content-heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.zdl-document-row {
		grid-template-columns: 1fr;
	}

	.zdl-row-image {
		width: 100%;
		aspect-ratio: 16 / 9;
	}

	.zdl-row-title-line {
		align-items: flex-start;
		flex-direction: column;
	}

	.zdl-file-list {
		grid-template-columns: 1fr;
	}

	.zdl-reset-link,
	.zdl-card-link,
	.zdl-back-link {
		width: 100%;
	}

	.zdl-card-link {
		display: flex;
	}
}
