/* Панєвропа Україна - template "paneuropa" (2008), Joomla 6 port 2026.
   Colours, fonts and sizes of the old template_css.css (dark blue page, white Times); the table layout became blocks; works on phones. */

html, body { margin: 0; padding: 0; }
body {
	color: #fff;
	background: #001030;
	font-family: "Times New Roman", Times, serif;
	font-size: 14px;
	line-height: 1.2;
}
a { color: #fff; text-decoration: underline; }
a:hover, a:focus { text-decoration: none; }
img { border: 0; max-width: 100%; height: auto; }
p, blockquote, h1, h2, h3, h4, h5, h6 { margin: 0; padding: 4px 0; }
hr { border: 0; border-top: 1px solid #fff; height: 1px; margin: 10px 0; }
li { padding-bottom: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* frame */
.site { margin: 0 auto; max-width: 1500px; }
.header { padding: 0 0 0 32px; min-height: 32px; }
.header .logo img { display: block; }
.columns { display: flex; align-items: flex-start; gap: 0 16px; }
.component { flex: 1 1 auto; min-width: 0; padding: 0 0 20px 32px; font-size: 16px; line-height: 1.4; }
.rightmenu { flex: 0 0 380px; width: 380px; padding-top: 42px; box-sizing: border-box; }
.home .rightmenu { padding-top: 42px; }
.home .component { padding-top: 0; text-align: right; }
.home .component img { display: inline-block; }

/* menus: white bar on the left of every item, as the old mainlevel class */
.rightmenu ul { list-style: none; margin: 0; padding: 0; }
.rightmenu li { padding: 0; }
.rightmenu li a, .rightmenu li span { display: block; line-height: 1.4; font-size: 18px; border-left: 2px #fff solid; padding-left: 4px; margin-left: 14px; margin-bottom: 1px; color: #fff; text-decoration: none; }
.rightmenu li a:hover, .rightmenu li a:focus { color: #eee; text-decoration: underline; }
.rightmenu .moduletable + .moduletable { margin-top: 20px; }

.search { padding: 20px 0 0 10px; }
.search form { display: flex; margin: 0; }
.search .inputbox { width: 140px; border: 1px solid #ccc; background: #fff; padding: 1px 3px; font: 13px Tahoma, Arial, Helvetica, sans-serif; color: #000; }
.search-go { display: none; }

/* footer: emblem + address */
.footer { margin-top: 20px; border-top: 1px #fff solid; border-bottom: 1px #fff solid; min-height: 160px; display: flex; align-items: center; justify-content: center; gap: 20px 40px; padding: 10px; flex-wrap: wrap; }
.footer .moduletable, .footer > div { display: contents; }
.footer img { display: block; }
.footer p { padding: 0; }
.footer .address { width: 300px; }

/* articles */
.page-header h1, .page-header h2, .item-title, .page-title, .com-content-article__title { font-size: 22px; font-weight: normal; margin: 0; padding: 32px 0 8px; text-align: left; }
.home .page-header, .home .com-content-article__title { display: none; }
.item-page, .com-content-article { overflow: hidden; }
.com-content-article__body, .item-content { overflow: hidden; }
.readmore { text-align: right; clear: both; margin: 4px 0 0; }
.readmore .icon-chevron-right, .readmore [class^="icon-"] { display: none; }
.img-left { float: left; margin: 0 10px 6px 0; }
.img-right { float: right; margin: 0 0 6px 10px; }
.img-center { display: block; text-align: center; margin: 6px auto; }
figure.img-caption { display: table; margin: 6px auto; padding: 0; }
figure.img-caption.img-left { margin: 0 10px 6px 0; }
figure.img-caption.img-right { margin: 0 0 6px 10px; }
.img-left img, .img-right img, figure.img-caption img { display: block; float: none; margin: 0 auto; }
figure.img-caption figcaption { display: table-caption; caption-side: bottom; text-align: center; padding: 4px 0; }
div[align="justify"], p[align="justify"] { text-align: justify; }

/* blog "Статті" (one column, as before) */
.blog-items { display: grid; gap: 20px 14px; }
.blog-item { overflow: hidden; }
.blog-item .item-content { overflow: hidden; }
.blog-item h2 { font-size: 22px; font-weight: normal; padding: 0 0 8px; }
.blog-item h2 a { text-decoration: underline; }

/* pagination */
.com-content-category-blog__navigation, .pagination__wrapper { text-align: center; margin: 14px 0 0; }
.pagination { list-style: none; margin: 0; padding: 0; display: inline-flex; flex-wrap: wrap; gap: 4px 8px; justify-content: center; }
.pagination li { padding: 0; }
.pagination .page-link { text-decoration: underline; }
.pagination .active .page-link, .pagination .disabled .page-link { text-decoration: none; }
.pagination [class^="icon-"] { display: none; }
.counter { text-align: center; margin: 8px 0 0; }

/* search results (Smart Search) */
.com-finder__search { margin-bottom: 10px; }
.com-finder__search .inputbox, .com-finder input[type="text"], .com-finder input[type="search"] { padding: 3px 5px; border: 1px solid #ccc; color: #000; }
.com-finder__results-list { list-style: none; padding: 0; }
.com-finder__results-list li { margin: 0 0 12px; }
.result__title-text { font-weight: bold; }

/* error page */
.error-code { font-size: 48px; font-weight: bold; line-height: 1; padding: 30px 0 10px; }

/* system messages */
#system-message-container joomla-alert { display: block; margin: 0 0 10px; padding: 8px 12px; border: 1px solid #fff; color: #000; background: #fff; }

/* phones and small tablets */
@media (max-width: 900px) {
	.header { padding-left: 10px; }
	.columns { display: block; }
	.component { padding: 0 10px 10px; }
	.home .component { text-align: center; }
	.rightmenu { width: auto; padding: 10px; }
	.search { padding: 20px 0 0 16px; }
	.footer { display: block; text-align: center; }
	.footer img { margin: 0 auto 10px; }
	.footer .address { width: auto; }
	.img-left, .img-right, figure.img-caption, figure.img-caption.img-left, figure.img-caption.img-right { float: none; margin: 6px auto; }
}
