/* ==========================================================================
   Δήμος Λεβαδέων – Άρθρα, κατηγορίες, αναζήτηση
   ========================================================================== */

/* ---------- Κεφαλίδα σελίδας ---------- */
.dl-pagehero {
	background: linear-gradient(120deg, var(--dl-primary-dark) 0%, var(--dl-primary) 60%, color-mix(in srgb, var(--dl-primary) 80%, var(--dl-accent)) 100%);
	color: #fff; padding: 40px 0 92px; position: relative; overflow: hidden;
}
.dl-pagehero::after {
	content: ""; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
	border: 60px solid rgba(255, 255, 255, .06); pointer-events: none;
}
.dl-pagehero .dl-wrap { position: relative; z-index: 1; }
.dl-ui .dl-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 16px; padding: 0; font-size: .85rem; color: rgba(255, 255, 255, .8); }
.dl-ui .dl-crumbs li + li::before { content: "›"; margin-right: 6px; color: #f3d27a; }
.dl-ui .dl-crumbs a { --dl-a: #fff; --dl-a-deco: underline; }
.dl-ui .dl-pagehero__cat {
	--dl-a: var(--dl-on-accent); display: inline-block; background: var(--dl-accent); color: var(--dl-on-accent);
	font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.dl-ui .dl-pagehero__cat:hover { background: color-mix(in srgb, var(--dl-accent) 82%, #fff); }
.dl-ui .dl-pagehero__title { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); max-width: 920px; line-height: 1.18; }
.dl-pagehero__text { max-width: 720px; margin-top: 12px; font-size: 1.05rem; color: rgba(255, 255, 255, .9); }
.dl-pagehero__text p { margin: 0; }
.dl-ui .dl-pagehero__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 18px 0 0; padding: 0; font-size: .9rem; color: rgba(255, 255, 255, .88); }
.dl-pagehero__meta li { display: inline-flex; align-items: center; gap: 7px; }
.dl-pagehero__meta .dl-ico { width: 17px; height: 17px; color: #f3d27a; }

/* ---------- Διάταξη ---------- */
.dl-blog { background: var(--dl-bg); padding-bottom: 64px; }
.dl-blog__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; margin-top: -60px; position: relative; z-index: 2; align-items: start; }
.dl-blog__grid--full { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.dl-blog__grid--page { grid-template-columns: minmax(0, 1fr); }
.dl-page__card { border-top: 4px solid var(--dl-primary); }
.dl-blog__main { min-width: 0; display: grid; gap: 28px; }

/* ---------- Άρθρο ---------- */
.dl-article { background: var(--dl-surface); border: 1px solid var(--dl-line); border-radius: var(--dl-radius); box-shadow: var(--dl-shadow); overflow: hidden; }
.dl-article__media { margin: 0; background: var(--dl-bg); }
.dl-ui .dl-article__media img { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.dl-article__media figcaption { font-size: .85rem; color: var(--dl-muted); padding: 10px 32px 0; }
.dl-article__body { padding: 32px clamp(20px, 4vw, 44px) 32px; }

.dl-facts { background: var(--dl-accent-soft); border-left: 4px solid var(--dl-accent); border-radius: 10px; padding: 18px 20px; margin-bottom: 26px; }
.dl-ui .dl-facts__title { font-family: var(--dl-font); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dl-accent-text); margin-bottom: 10px; }
.dl-facts__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 24px; margin: 0; }
.dl-facts__list dt { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--dl-muted); text-transform: uppercase; letter-spacing: .04em; }
.dl-facts__list dt .dl-ico { width: 16px; height: 16px; color: var(--dl-primary); }
.dl-facts__list dd { margin: 2px 0 0; font-weight: 600; color: var(--dl-ink); }

/* Τυπογραφία περιεχομένου */
.dl-prose { font-size: 1.06rem; line-height: 1.75; color: var(--dl-ink); overflow-wrap: anywhere; }
.dl-prose > * { margin-top: 0; margin-bottom: 1.1em; }
.dl-prose > *:last-child { margin-bottom: 0; }
.dl-ui .dl-prose h2, .dl-ui .dl-prose h3, .dl-ui .dl-prose h4 { color: var(--dl-primary); margin: 1.6em 0 .6em; line-height: 1.25; }
.dl-ui .dl-prose h2 { font-size: 1.55rem; }
.dl-ui .dl-prose h3 { font-size: 1.28rem; }
.dl-ui .dl-prose h4 { font-size: 1.1rem; }
.dl-ui .dl-prose a { --dl-a: var(--dl-link); --dl-a-deco: underline; text-underline-offset: 3px; }
.dl-ui .dl-prose a:hover { --dl-a: var(--dl-primary); }
.dl-ui .dl-prose ul:not([class]), .dl-ui .dl-prose ol:not([class]) { padding-left: 1.4em; list-style: disc outside; }
.dl-ui .dl-prose ol:not([class]) { list-style-type: decimal; }
.dl-ui .dl-prose ul:not([class]) ul { list-style-type: circle; }
.dl-prose :is(ul, ol):not([class]) > li { margin-bottom: .35em; }
.dl-prose li::marker { color: var(--dl-primary); }
.dl-prose blockquote { margin: 1.6em 0; padding: 14px 22px; border-left: 4px solid var(--dl-accent); background: var(--dl-bg); border-radius: 0 10px 10px 0; font-style: italic; }
.dl-ui .dl-prose img:not(.leaflet-container img) { max-width: 100%; height: auto; border-radius: 10px; }
.dl-prose figure { margin: 1.6em 0; max-width: 100%; }
.dl-prose figcaption, .dl-prose .wp-caption-text { font-size: .85rem; color: var(--dl-muted); margin-top: 6px; }
.dl-prose .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.dl-prose .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.dl-prose .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.dl-prose::after { content: ""; display: table; clear: both; }
.dl-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.dl-prose th, .dl-prose td { border: 1px solid var(--dl-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.dl-prose th { background: var(--dl-bg); color: var(--dl-primary); }
.dl-prose hr { border: 0; border-top: 1px solid var(--dl-line); margin: 2em 0; }
.dl-prose iframe, .dl-prose video { max-width: 100%; }
/* Συνημμένα αρχεία (PDF, DOC κ.λπ.) */
.dl-ui .dl-prose a[href$=".pdf" i], .dl-ui .dl-prose a[href$=".doc" i], .dl-ui .dl-prose a[href$=".docx" i],
.dl-ui .dl-prose a[href$=".xls" i], .dl-ui .dl-prose a[href$=".xlsx" i], .dl-ui .dl-prose .wp-block-file a:not(.wp-block-file__button) {
	padding-left: 1.5em; background: no-repeat left center / 1.1em;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d0302' stroke-width='1.8'%3E%3Cpath d='M6 3h9l4 4v14H6z'/%3E%3Cpath d='M14 3v5h5M9 13h7M9 17h5'/%3E%3C/svg%3E");
}
.dl-ui .dl-prose .wp-block-file { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--dl-line); border-radius: 10px; background: var(--dl-bg); }
.dl-ui .dl-prose .wp-block-file__button { --dl-a: #fff; --dl-a-deco: none; background: var(--dl-primary); color: #fff; border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: .9rem; }

.dl-pages { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; font-weight: 600; }

.dl-ui .dl-article__tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 28px 0 0; padding: 0; }
.dl-ui .dl-article__tags a { --dl-a: var(--dl-primary); display: inline-block; padding: 5px 12px; border: 1px solid var(--dl-line); border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--dl-bg); }
.dl-ui .dl-article__tags a:hover { border-color: var(--dl-primary); }

/* Κοινοποίηση */
.dl-share { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--dl-line); }
.dl-share__label { font-weight: 700; }
.dl-ui .dl-share__list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.dl-ui .dl-share__btn, .dl-ui button.dl-share__btn {
	--dl-a: var(--dl-primary); --dl-btn-bg: var(--dl-bg); --dl-btn-fg: var(--dl-primary); --dl-btn-border: 1px solid var(--dl-line); --dl-btn-radius: 50%; --dl-btn-pad: 0;
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--dl-line); background: var(--dl-bg); color: var(--dl-primary);
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.dl-share__btn .dl-ico { width: 18px; height: 18px; }
.dl-ui .dl-share__btn:hover, .dl-ui button.dl-share__btn:hover { --dl-a: #fff; --dl-btn-bg: var(--dl-primary); --dl-btn-fg: #fff; background: var(--dl-primary); color: #fff; border-color: var(--dl-primary); }
.dl-ui .dl-share__btn--facebook:hover { background: #1877f2; border-color: #1877f2; }
.dl-ui .dl-share__btn--x:hover { background: #000; border-color: #000; }
.dl-ui .dl-share__btn--viber:hover { background: #7360f2; border-color: #7360f2; }
.dl-share__status { font-size: .85rem; font-weight: 600; color: #2e7d32; }

/* Προηγούμενο / επόμενο */
.dl-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dl-ui .dl-postnav__link {
	--dl-a: var(--dl-ink); display: flex; flex-direction: column; gap: 6px; padding: 18px 20px;
	background: var(--dl-surface); border: 1px solid var(--dl-line); border-radius: var(--dl-radius); transition: border-color .15s ease, transform .15s ease;
}
.dl-ui .dl-postnav__link:hover { border-color: var(--dl-primary); transform: translateY(-2px); }
.dl-postnav__link--next { text-align: right; grid-column: 2; }
.dl-postnav__dir { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dl-accent-text); }
.dl-postnav__title { font-weight: 700; line-height: 1.35; color: var(--dl-primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Σχετικά */
.dl-related__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.dl-ui .dl-related__title { font-size: 1.45rem; color: var(--dl-primary); }
.dl-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dl-related .dl-pcard__excerpt { display: none; }
.dl-ui .dl-related .dl-pcard__title { font-size: 1rem; }

.dl-comments { padding: 28px clamp(20px, 4vw, 44px); }
.dl-ui .dl-comments h2, .dl-ui .dl-comments h3 { color: var(--dl-primary); font-size: 1.3rem; margin-bottom: 10px; }
.dl-ui .dl-comments .comment-list { list-style: none; padding: 0; margin: 0 0 24px; }
.dl-comments .comment-body { padding: 14px 0; border-bottom: 1px solid var(--dl-line); }
.dl-comments .comment-form p { margin: 0 0 14px; }
.dl-comments .comment-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.dl-ui .dl-comments .comment-form input[type=text], .dl-ui .dl-comments .comment-form input[type=email], .dl-ui .dl-comments .comment-form input[type=url], .dl-ui .dl-comments .comment-form textarea {
	width: 100%; font: inherit; border: 1px solid color-mix(in srgb, var(--dl-line) 70%, #9a8f80); border-radius: 10px; padding: 11px 14px; background: var(--dl-bg);
}
.dl-ui .dl-comments .comment-form input:focus, .dl-ui .dl-comments .comment-form textarea:focus { outline: none; border-color: var(--dl-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dl-primary) 18%, transparent); }
.dl-comments .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.dl-comments .comment-form-cookies-consent label { font-weight: 400; margin: 0; }
.dl-ui .dl-comments .form-submit input[type=submit] { background: var(--dl-primary); color: #fff; border: 0; border-radius: 999px; padding: 12px 26px; font: inherit; font-weight: 700; cursor: pointer; }
.dl-ui .dl-comments .form-submit input[type=submit]:hover { background: var(--dl-primary-dark); }

/* ---------- Κάρτες άρθρων (λίστες) ---------- */
.dl-blog__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.dl-pcard { display: flex; flex-direction: column; background: var(--dl-surface); border: 1px solid var(--dl-line); border-radius: var(--dl-radius); overflow: hidden; box-shadow: var(--dl-shadow); transition: transform .2s ease, box-shadow .2s ease; position: relative; }
.dl-pcard:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(60, 20, 20, .14); }
.dl-ui .dl-pcard__media { display: block; aspect-ratio: 16 / 9; background: var(--dl-bg); overflow: hidden; }
.dl-ui .dl-pcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.dl-pcard:hover .dl-pcard__media img { transform: scale(1.04); }
.dl-pcard__ph { display: grid; place-items: center; height: 100%; background: linear-gradient(135deg, var(--dl-accent-soft), var(--dl-bg)); }
.dl-ui .dl-pcard__ph img { width: 110px; height: auto; opacity: .55; transform: none !important; object-fit: contain; }
.dl-pcard__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dl-pcard__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: .82rem; color: var(--dl-muted); }
.dl-ui .dl-pcard__cat { --dl-a: var(--dl-accent-text); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .75rem; position: relative; z-index: 2; }
.dl-ui .dl-pcard__title { font-size: 1.12rem; line-height: 1.35; margin: 0; }
.dl-ui .dl-pcard__title a { --dl-a: var(--dl-primary); }
.dl-ui .dl-pcard__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.dl-ui .dl-pcard__title a:focus-visible { outline: none; }
.dl-pcard:focus-within { outline: 3px solid var(--dl-accent); outline-offset: 2px; }
.dl-pcard__excerpt { margin: 0; color: var(--dl-muted); font-size: .94rem; line-height: 1.55; }

.dl-blog__search { background: var(--dl-surface); box-shadow: var(--dl-shadow); padding: 6px 6px 6px 18px; }
.dl-ui .dl-blog__search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; height: 44px; }
.dl-ui .dl-blog__search button { --dl-btn-bg: var(--dl-primary); --dl-btn-fg: #fff; --dl-btn-radius: 999px; --dl-btn-pad: 0 20px; height: 44px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.dl-blog__empty { padding: 36px; }
.dl-ui .dl-blog__empty h2 { color: var(--dl-primary); font-size: 1.4rem; margin-bottom: 8px; }

/* Σελιδοποίηση */
.dl-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.dl-ui .dl-pagination .page-numbers {
	--dl-a: var(--dl-primary); display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px;
	border-radius: 999px; border: 1px solid var(--dl-line); background: var(--dl-surface); font-weight: 700;
}
.dl-ui .dl-pagination a.page-numbers:hover { border-color: var(--dl-primary); }
.dl-ui .dl-pagination .page-numbers.current { background: var(--dl-primary); border-color: var(--dl-primary); color: #fff; }
.dl-ui .dl-pagination .dots { border: 0; background: none; }

/* ---------- Sidebar ---------- */
.dl-side { display: grid; gap: 22px; min-width: 0; position: sticky; top: 120px; }
.dl-side__box { background: var(--dl-surface); border: 1px solid var(--dl-line); border-radius: var(--dl-radius); box-shadow: var(--dl-shadow); padding: 22px; }
.dl-ui .dl-side__title { font-size: 1.1rem; color: var(--dl-primary); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--dl-accent-soft); position: relative; }
.dl-ui .dl-side__title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 44px; height: 2px; background: var(--dl-accent); }
.dl-side__search { background: var(--dl-bg); }
.dl-ui .dl-side__search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; height: 38px; }
.dl-ui .dl-side__search button { --dl-btn-bg: var(--dl-primary); --dl-btn-fg: #fff; --dl-btn-radius: 50%; --dl-btn-pad: 0; width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; }
.dl-ui .dl-side__posts, .dl-ui .dl-side__cats { list-style: none; margin: 0; padding: 0; }
.dl-side__posts li + li { border-top: 1px dashed var(--dl-line); }
.dl-ui .dl-side__posts a { --dl-a: var(--dl-ink); display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.dl-ui .dl-side__posts a:hover .dl-side__ptitle { color: var(--dl-primary); text-decoration: underline; }
.dl-side__thumb { flex: 0 0 62px; width: 62px; height: 62px; border-radius: 10px; overflow: hidden; background: var(--dl-accent-soft); color: var(--dl-accent-text); display: grid; place-items: center; }
.dl-ui .dl-side__thumb img { width: 100%; height: 100%; object-fit: cover; }
.dl-side__thumb .dl-ico { width: 24px; height: 24px; }
.dl-side__ptext { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dl-side__ptitle { font-weight: 600; font-size: .92rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dl-side__ptext time { font-size: .78rem; color: var(--dl-muted); }
.dl-ui .dl-side__cats a { --dl-a: var(--dl-ink); display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-weight: 600; font-size: .93rem; }
.dl-ui .dl-side__cats a:hover, .dl-ui .dl-side__cats a[aria-current] { background: var(--dl-bg); --dl-a: var(--dl-primary); }
.dl-side__count { min-width: 30px; text-align: center; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--dl-accent-soft); color: var(--dl-accent-text); }
.dl-side__help { background: linear-gradient(150deg, var(--dl-primary), var(--dl-primary-dark)); color: #fff; border: 0; }
.dl-ui .dl-side__help .dl-side__title { color: #fff; border-bottom-color: rgba(255, 255, 255, .18); }
.dl-side__help p { margin: 0 0 10px; color: rgba(255, 255, 255, .9); }
.dl-side__line { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.dl-side__line .dl-ico { width: 18px; height: 18px; color: #f3d27a; }
.dl-ui .dl-side__line a { --dl-a: #fff; }
.dl-ui .dl-side__help .dl-btn { margin-top: 6px; }
/* Κοινά widgets WordPress στο sidebar */
.dl-ui .dl-side__box ul:not([class]) { list-style: none; margin: 0; padding: 0; }
.dl-side__box ul:not([class]) li { padding: 8px 0; border-bottom: 1px dashed var(--dl-line); }
.dl-side__box ul:not([class]) li:last-child { border-bottom: 0; }
.dl-ui .dl-side__box img { max-width: 100%; height: auto; border-radius: 8px; }

/* Κάτω ζώνη (Γρήγορες υπηρεσίες) */
.dl-bottom-band .elementor-widget-container { margin: 0; padding: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.dl-blog__grid { grid-template-columns: minmax(0, 1fr) 300px; }
	.dl-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dl-related__grid > :nth-child(3) { display: none; }
}
@media (max-width: 960px) {
	.dl-blog__grid { grid-template-columns: minmax(0, 1fr); }
	.dl-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 600px) {
	.dl-pagehero { padding: 28px 0 80px; }
	.dl-blog__list, .dl-related__grid { grid-template-columns: minmax(0, 1fr); }
	.dl-related__grid > :nth-child(3) { display: flex; }
	.dl-postnav { grid-template-columns: minmax(0, 1fr); }
	.dl-postnav__link--next { grid-column: auto; }
	.dl-article__body { padding: 24px 18px; }
	.dl-prose { font-size: 1rem; }
	.dl-prose .alignleft, .dl-prose .alignright { float: none; margin: 1em 0; max-width: 100%; }
	.dl-side { grid-template-columns: minmax(0, 1fr); }
	.dl-blog__search button span { display: none; }
}

/* Υψηλή αντίθεση */
html.dl-hc .dl-pagehero, html.dl-hc .dl-side__help { background: #000 !important; }
html.dl-hc .dl-article, html.dl-hc .dl-pcard, html.dl-hc .dl-side__box, html.dl-hc .dl-postnav__link { border: 1px solid #fff; }

/* Εκτύπωση */
@media print {
	.dl-utility, .dl-header, .dl-footer, .dl-funding, .dl-side, .dl-bottom-band, .dl-share, .dl-postnav, .dl-related, .dl-totop, .dl-crumbs { display: none !important; }
	.dl-pagehero { background: none !important; color: #000; padding: 0 0 12px; }
	.dl-ui .dl-pagehero__title, .dl-pagehero__meta { color: #000 !important; }
	.dl-blog__grid { display: block; margin: 0; }
	.dl-article { box-shadow: none; border: 0; }
	.dl-blog { background: #fff; padding: 0; }
}
