/**
 * Krasylivka template (123WebDesign, 2009) for Joomla 6.
 * Part 1 is the Joomla 1.5 template.css (unused rules for Joomla 1.5 widgets, overlib, banners and the
 * 123WebDesign footer removed; image paths now ../images/). Part 2 styles the Joomla 6 core markup the same way
 * the old table-based markup looked. Part 3: narrow screens (the 2009 layout was a fixed 990px page).
 */

/* ======================= 1. Joomla 1.5 template ======================= */

html {
	height: 100%;
	margin-bottom: 0;
}

form {
	margin: 0;
	padding: 0;
}

img, table {
	border: none;
}

body {
	background: #fff;
	font-family: Tahoma, Verdana, Arial, sans-serif;
	line-height: 1.3em;
	margin: 0;
	padding: 0;
	font-size: 13px;
	color: #444;
}

body.contentpane {
	background: #f8f8f8;
	padding: 10px;
}

a:link, a:visited {
	outline: none;
	text-decoration: underline;
	font-weight: normal;
	color: #829300;
}

a:hover {
	text-decoration: none;
	font-weight: normal;
	color: #829300;
}

div.nopad ul {
	list-style-image: url(../images/li.png);
}

input.button, .validate, .btn {
	background: #5CA80A;
	border: 0;
	font-size: 11px;
	color: #fff;
	padding: 5px 10px;
	cursor: pointer;
}

p {
	margin-top: 0;
	margin-bottom: 5px;
	text-align: justify;
}

.inputbox, .form-control {
	border: 1px solid #999;
	padding: 2px;
}

/* ---- layout ---- */

.body_bg {
	background: #F0EEE1 url(../images/body_bg.png) top center repeat-x;
}

#page_bg {
	width: 990px;
	padding: 0;
	margin: 10px auto 0 auto;
}

div#wrapper {
	padding: 0;
	width: 980px;
	margin: 0 auto;
	background: #fff url(../images/wrapper_t_l_bg.jpg) top left no-repeat;
}

#header {
	height: 216px;
	margin: 0 auto;
	width: 960px;
	padding: 14px 15px 0;
	background: transparent url(../images/header_bg.png) top center no-repeat;
}

#header .header_img {
	height: 172px;
	background: transparent url(../images/header_img_bg.jpg) top left no-repeat;
}

#header .header_img .news {
	float: right;
	width: 450px;
	height: 165px;
	overflow: hidden;
}

#content {
	margin: 0 auto;
	padding: 10px;
	overflow: hidden;
}

#logo {
	padding-top: 20px;
	padding-left: 10px;
	text-align: left;
	margin: 0;
}

#logo a, #logo a:link, #logo a:visited, #logo a:hover {
	font-weight: bold;
	font-size: 24px;
	line-height: 1.3em;
	padding: 0;
	margin: 0;
	letter-spacing: 1px;
	color: #5CA80A;
	text-decoration: none;
	outline: none;
}

#pillmenu {
	height: 44px;
	margin: 0;
	padding: 0;
	background: transparent url(../images/pillmenu_bg.png) top center no-repeat;
	text-align: left;
}

#pillmenu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

#pillmenu li {
	float: left;
	margin: 0;
	padding: 0;
	height: 34px;
	background: transparent url(../images/pillmenu_separator.png) top right no-repeat;
}

#pillmenu li a {
	float: left;
	font-size: 12px;
	line-height: 34px;
	padding: 0 12px 0 10px;
	color: #fff;
	text-decoration: none;
	font-weight: 700;
}

#pillmenu li a:hover, #pillmenu li.current a {
	color: #E4E2D0;
	text-decoration: none;
}

#pathway_col {
	height: 25px;
	background: transparent url(../images/pathway_col_bg.jpg) top center no-repeat;
	line-height: 22px;
	padding: 0 5px;
}

#pathway_col div.pathway {
	float: left;
	width: 730px;
	height: 25px;
	padding: 0 15px;
	overflow: hidden;
}

#pathway_col div.search_box {
	float: right;
	width: 200px;
	height: 25px;
	padding: 0 10px;
	overflow: hidden;
}

#leftcolumn, #rightcolumn {
	margin: 0;
	width: 200px;
	float: left;
	padding: 0 0 10px 0;
	text-align: left;
}

div#maincolumn {
	float: left;
	width: 540px;
	padding: 0 10px;
	margin: 0;
}

div#maincolumn_full {
	float: left;
	width: 740px;
	margin: 0 0 6px 0;
}

div.nopad {
	overflow: hidden;
	padding: 0 0 0 8px;
}

#footer {
	margin: 0;
	text-align: left;
	font-size: 0.8em;
	color: #829300;
	padding: 10px 24px 10px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

#footer a {
	color: #829300;
	text-decoration: none;
}

#footer .buttons {
	text-align: right;
	white-space: nowrap;
}

#footer .buttons img {
	vertical-align: middle;
}

.clr {
	clear: both;
}

/* ---- headings and text ---- */

h1 {
	padding: 0;
	margin: 0 0 12px 0;
	font-size: 1.3em;
	font-weight: bold;
	color: #333;
	text-align: left;
}

h2, .contentheading {
	padding: 0;
	font-size: 12px;
	color: #81AA4F;
	text-align: left;
	font-weight: bold;
}

h3, .componentheading, legend {
	margin: 0;
	font-size: 14px;
	text-align: left;
	color: #81AA4F;
	padding: 0;
}

h4 {
	font-family: Tahoma, Arial, sans-serif;
	color: #333;
}

.small {
	font-size: 10px;
	color: #C0C0C0;
	font-weight: normal;
	text-align: left;
}

.highlight {
	background-color: #fffebb;
}

fieldset {
	border: 1px solid #ccc;
	margin-top: 15px;
	padding: 15px;
}

legend {
	padding: 0 10px;
}

/* ---- modules ("rounded" chrome: <div class="module{sfx}"><div><div><div>) ---- */

div.module_menu, div.module {
	margin: 0;
	padding: 0;
}

div.module_menu div div, div.module div div {
	margin: 0 0 15px 0;
	padding: 0;
	background: url(../images/menu_bottom.png) bottom left no-repeat;
}

div.module_menu div div div, div.module div div div {
	margin: 0;
	background: url(../images/menu_top_out.jpg) top left no-repeat;
	text-align: center;
	padding: 0 0 10px 0;
}

div.module_menu div div div div, div.module div div div div {
	background: none;
	padding: 4px 8px;
	text-align: left;
}

div.module_menu ul {
	list-style: none;
	text-align: left;
	padding: 0;
	margin: 0;
}

div.module_menu ul li {
	margin: 0;
	padding: 0;
}

div.module_menu ul li a:link, div.module_menu ul li a:visited {
	display: block;
	font-weight: bold;
	padding: 2px 0 2px 5px;
	line-height: 20px;
	text-decoration: none;
	color: #829300;
	font-size: 11px;
}

div.module_menu ul li a:hover,
div.module_menu ul li.current > a {
	text-decoration: underline;
}

#leftcolumn h3, #rightcolumn h3 {
	width: 180px;
	color: #5CA80A;
	font-size: 12px;
	height: 33px;
	text-decoration: none;
	text-align: left;
	padding: 0 10px;
	background: url(../images/h3.png) top left no-repeat;
	font-weight: bold;
	line-height: 30px;
	margin: 0;
}

/* ======================= 2. Joomla 6 core markup ======================= */

/* Bootstrap 5 helper classes used by Joomla 6 core layouts */
.visually-hidden,
.visually-hidden-focusable:not(:focus):not(:focus-within) {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}
.d-none { display: none !important; }
.float-start { float: left !important; }
.float-end { float: right !important; }
.text-end { text-align: right !important; }
.text-center { text-align: center !important; }

/* Content images: never wider than the column */
div.nopad img {
	max-width: 100%;
	height: auto;
}
div.nopad iframe {
	max-width: 100%;
}

/* Breadcrumbs: "Центр ▸ Фото з життя Красилівки ▸ Природа" */
#pathway_col .mod-breadcrumbs__wrapper {
	display: block;
}
#pathway_col ol.breadcrumb {
	list-style: none;
	margin: 0;
	padding: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
#pathway_col ol.breadcrumb li {
	display: inline;
	color: #5CA80A;
	font-size: 11px;
	line-height: 22px;
}
#pathway_col ol.breadcrumb li a,
#pathway_col ol.breadcrumb li a span {
	color: #5CA80A;
}
#pathway_col ol.breadcrumb li + li::before {
	content: "";
	display: inline-block;
	width: 9px;
	height: 9px;
	margin: 0 5px;
	background: url(../images/arrow.png) center no-repeat;
}

/* Search box in the green bar (Smart Search module) */
div.search_box .mod-finder,
div.search_box form {
	height: 25px;
	background: transparent url(../images/search_bg.png) top left no-repeat;
}
div.search_box input[type="text"],
div.search_box input[type="search"] {
	float: left;
	line-height: 16px;
	font-size: 12px;
	color: #777;
	background: none;
	margin: 0;
	width: 114px;
	height: 18px;
	padding: 4px 6px 0 6px;
	border: none;
	outline: none;
	box-shadow: none;
}

/* Article page and blog (home page) */
.page-header h1,
.page-header h2,
.com-content-category h1 {
	margin: 0 0 12px 0;
	font-size: 1.3em;
	font-weight: bold;
	color: #333;
}
.page-header h2 a,
.page-header h2 a:link,
.page-header h2 a:visited {
	color: #333;
	text-decoration: none;
}
.com-content-article__body,
.blog-item {
	overflow: hidden;
}
.blog-featured .blog-item,
.blog .blog-item {
	margin-bottom: 20px;
}
.blog-items.columns-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 20px;
}
.blog-items.columns-2 .blog-item {
	min-width: 0;
}
.readmore {
	text-align: right;
	font-size: 10px;
}
.article-info {
	color: #C0C0C0;
	font-size: 10px;
	margin: 0 0 10px 0;
}
.article-info dt {
	display: none;
}
.article-info dd {
	margin: 0;
}

/* Category list (numbered list of article titles, as in Joomla 1.5) */
.com-content-category__table,
.category-list table.category {
	width: 100%;
	border-collapse: collapse;
	counter-reset: row;
	margin: 0 0 10px 0;
}
.com-content-category__table caption,
.com-content-category__table thead {
	display: none;
}
.com-content-category__table tr {
	counter-increment: row;
}
.com-content-category__table tr:nth-child(odd) {
	background: #f9f9f3;
}
.com-content-category__table th,
.com-content-category__table td {
	padding: 4px;
	text-align: left;
	font-weight: normal;
}
.com-content-category__table th.list-title::before {
	content: counter(row) ".";
	display: inline-block;
	min-width: 2.2em;
	padding-right: 6px;
	text-align: right;
	color: #444;
}
.category-desc {
	margin: 0 0 10px 0;
}
.com-content-category__pagination,
.com-content-category .com-content-category__filter {
	display: none;
}

/* Pagination (search results) */
.pagination {
	list-style: none;
	padding: 0;
	margin: 10px 0;
}
.pagination li {
	display: inline-block;
	margin: 0 2px;
}
.pagination .page-link {
	display: inline-block;
	padding: 2px 6px;
}
.pagination .active .page-link {
	font-weight: bold;
	color: #444;
}

/* Smart Search results page */
.com-finder__search .form-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}
.com-finder__search label {
	margin-right: 6px;
}
.com-finder__search .input-group {
	display: flex;
	gap: 6px;
	align-items: center;
}
.com-finder .js-finder-search-query {
	width: 260px;
	max-width: 100%;
	padding: 4px;
}
.com-finder [data-bs-toggle="collapse"],
.com-finder__advanced,
.com-finder .icon-search,
.com-finder .icon-search-plus {
	display: none !important;
}
.com-finder__explained {
	margin: 0 0 10px 0;
}
.com-finder__results-list {
	padding-left: 0;
	margin: 0;
	list-style: none !important;
}
.result__item {
	margin: 0 0 14px 0;
	padding: 0 0 10px 0;
	border-bottom: 1px solid #eee;
}
.result__title {
	font-size: 13px;
	font-weight: bold;
	margin: 0 0 3px 0;
}
.result__title-link {
	font-weight: bold !important;
}
.result__title-url,
.result__date,
.result__taxonomy {
	display: none !important;
}
.result__description {
	margin: 0;
}
mark {
	background: #fffebb;
	color: inherit;
}
.com-finder__counter {
	color: #999;
	font-size: 11px;
}

/* System messages (Joomla 6 <joomla-alert>) */
#system-message-container joomla-alert {
	display: block;
	padding: 6px 20px;
	margin: 3px 0 10px;
	border: 1px solid #9CDD6C;
	background: #F2FBEC;
	color: #444;
	font-weight: bold;
}
#system-message-container joomla-alert[type="danger"],
#system-message-container joomla-alert[type="error"],
#system-message-container joomla-alert[type="warning"] {
	border-color: #d5d5d5;
	background: #f9f9f9;
	color: #c30;
}
#system-message-container .joomla-alert--close {
	float: right;
	border: 0;
	background: none;
	font-size: 16px;
	cursor: pointer;
}

/* Site map (OSMap) */
#osmap ul {
	padding-left: 20px;
}
#osmap h2 {
	font-size: 14px;
}

/* Poll results (static archive of the Apoll poll 2009–2025) */
.poll-archive {
	font-size: 11px;
}
.poll-archive .poll-question {
	font-weight: bold;
	text-align: left;
	margin: 0 0 6px 0;
}
.poll-archive ul {
	list-style: none !important;
	margin: 0;
	padding: 0;
}
.poll-archive li {
	margin: 0 0 6px 0;
}
.poll-archive .poll-option {
	display: block;
}
.poll-archive .poll-bar {
	display: inline-block;
	width: 110px;
	height: 9px;
	margin-right: 6px;
	background: #f5f5f5;
	border: 1px solid #ccc;
	vertical-align: middle;
}
.poll-archive .poll-bar span {
	display: block;
	height: 100%;
	background: #5CA80A;
}
.poll-archive .poll-count {
	color: #666;
}
.poll-archive .poll-total {
	color: #999;
	margin: 6px 0 0 0;
	text-align: left;
}

/* Error page */
.error-page .error-code {
	font-size: 40px;
	color: #c8c8c8;
	font-weight: bold;
	margin: 10px 0 20px;
}

/* ======================= 3. Narrow screens ======================= */

@media (max-width: 1000px) {
	#page_bg, div#wrapper {
		width: auto;
		margin: 0;
	}
	#header {
		width: auto;
		height: auto;
		padding: 0;
		background: #5CA80A;
	}
	#header .header_img {
		height: 120px;
		background-size: cover;
		background-position: center;
	}
	#logo {
		padding: 12px 10px;
	}
	#logo a, #logo a:link, #logo a:visited {
		font-size: 20px;
		color: #fff;
		text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
	}
	#pillmenu {
		height: 6px;
		background: #5CA80A;
	}
	#pathway_col {
		height: auto;
		background: #E4E2D0;
		padding: 4px 10px;
		overflow: hidden;
	}
	#pathway_col div.pathway,
	#pathway_col div.search_box {
		float: none;
		width: auto;
		padding: 0;
	}
	#content {
		display: flex;
		flex-direction: column;
		padding: 10px;
	}
	#leftcolumn, div#maincolumn, div#maincolumn_full {
		float: none;
		width: auto;
		padding: 0;
	}
	#leftcolumn {
		order: 2;
		margin-top: 20px;
	}
	div.nopad {
		padding: 0;
	}
	div.module_menu div div, div.module div div,
	div.module_menu div div div, div.module div div div {
		background: #f9f9f3;
	}
	div.module_menu div div div div, div.module div div div div {
		background: none;
	}
	.blog-items.columns-2 {
		grid-template-columns: 1fr;
	}
	#footer {
		flex-direction: column;
		align-items: flex-start;
		padding: 10px;
	}
}
