/*
Theme Name: Yoopply News
Theme URI: https://yoopply.com/
Author: Yoopply
Description: Лёгкая новостная тема на 6 языках (итальянский — основной; немецкий, японский, французский, корейский, португальский). Итальянские новости — из основного редактора WordPress, остальные языки — из доп. полей. Основана на теме Kartnic.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yoopply-news
*/

/*--------------------------------------------------------------
# Reset
--------------------------------------------------------------*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
	border: 0;
	margin: 0;
	padding: 0;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
nav,
section {
	display: block;
}

ol,
ul {
	list-style: none;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline; 
}

/* Underline links in posts, excerpts, comments, and text widgets */

.entry-content a,
.entry-summary a,
.comment-content a,
.widget_text a {
    text-decoration: underline;
}

a img {
	border: 0;
}

.widget { 
	background-color: rgb(255, 255, 255);
	padding: 10px;
	margin-bottom: 10px;
}

.widget ul li {
    list-style-type: none;
    position: relative;
    margin-bottom: .5em;
}

.comments-area,
#content-area,
.post-site-main article,
.post-navigation,
.mobile-drop-navigation,
.page-title,
.sub-menu,
.site,
.site-info,
#cont-site article,
.custom-footer {
	background-color: rgb(255, 255, 255);
}

.nav-links {
	margin-bottom: 10px;
	background-color: rgb(255, 255, 255);
}

.inside-header,
.inside-site-info,
.footer-1,
#content {
	margin-left: auto;
	margin-right: auto;
	max-width: 1200px;
	padding-left: 0px;
	padding-right: 0px;
}

/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/

body {
	background-color: rgb(240, 240, 244);
}

body,
button,
input,
select,
textarea {
	font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
	font-weight: normal;
	text-transform: none;
	font-size: 17px;
	line-height: 1.5;
}

p {
	margin-bottom: 1.5em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: inherit;
	font-style: inherit;
	font-weight: inherit;
}

blockquote {
	border-left: 5px solid rgba(0, 0, 0, 0.05);
	padding: 20px;
	font-size: 1.2em;
	font-style: italic;
	margin: 0 0 1.5em;
	position: relative;
}

blockquote p:last-child {
	margin: 0;
}

table,
th,
td {
	border: 1px solid rgba(0, 0, 0, 0.1);
}

table {
	border-collapse: separate;
	border-spacing: 0;
	border-width: 1px 0 0 1px;
	margin: 0 0 1.5em;
	width: 100%;
}

th,
td {
	padding: 8px;
}

th {
	border-width: 0 1px 1px 0;
}

td {
	border-width: 0 1px 1px 0;
}

hr {
	background-color: rgba(115, 255, 0, 0.1);
	border: 0;
	height: 1px;
	margin-bottom: 40px;
	margin-top: 40px;
}

.entry-title,
.main-entry-title,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	line-height: 1.4em;
	font-family: Arial;
    font-weight: 600;
	text-transform: none;
	margin-bottom: 20px;
}

.main-entry-title {
	font-size: 30px;
}

.entry-title {
	font-size: 28px;
}

.entry-content h1 {
	font-size: 28px;
}

.entry-content h2 {
	font-size: 19px;
}

.entry-content h3 {
	font-size: 17px;
}

.entry-content h4 {
	font-size: 20px;
}

.entry-content h5 {
font-size: 19px;
}

.entry-content h6 {
	font-size: 18px;
}

.entry-content p {
	font-size: 17px;
	line-height: 1.8em;
	color: #000000;
}

h1 {
	font-size: 30px;
	font-style: normal;
	margin-bottom: 20px;
	line-height: 1.2em;
    font-weight: 600;
	text-transform: none;
}

h2 {
	font-size: 19px;
	margin-bottom: 20px;
	line-height: 1.2em;
    font-weight: 500;
	text-transform: none;
}

h3 {
	font-size: 17px;
	margin-bottom: 20px;
	line-height: 1.2em;
	font-weight: 500;
	text-transform: none;
}

h4,
h5,
h6 {
	margin-bottom: 20px;
}

ul,
ol {
	text-decoration: none;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

figure {
	margin: 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

th {
	font-weight: bold;
}

img {
	height: auto;
	max-width: 100%;
}

.thread-even,
.post-categories,
.wp-block-archives li,
.wp-block-categories li {
	list-style: none;
}

.wp-caption {
    max-width: 100%;
    text-align: center;
    margin: 1.5em 0;
}

.wp-caption-text {
    margin-top: 0.5em;
    font-size: 0.9em;
    color: #6c757d;
}

.gallery-caption {
    margin-top: 0.5em;
    font-size: 0.9em;
    color: #6c757d;
}

.alignright {
    float: right;
    margin-left: 1.5em;
}

.alignleft {
    float: left;
    margin-right: 1.5em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px); 
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important; 
}

.screen-reader-text:focus {
    background-color: #eee;
    clip: auto !important;
    clip-path: none;
    color: #444;
    display: block;
    font-size: 1em;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000; /* Above WP toolbar */
}

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/

button,
input,
select,
textarea {
	font-size: 100%;
	margin: 0;
	vertical-align: baseline;
	vertical-align: middle;
}

button,
input[type="reset"],
input[type="submit"] {
	border: 1px solid rgb(0, 0, 0);
	background: #000000;
	cursor: pointer;
	-webkit-appearance: button;
	padding: 10px 20px;
	color: #ffffff;
}

input[type="checkbox"],
input[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

input[type="search"] {
	-webkit-appearance: textfield;
	box-sizing: content-box;
}

input[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
	background: #FAFAFA;
	color: #666;
	border: 1px solid #ccc;
	border-radius: 0px;
	padding: 10px 15px;
	box-sizing: border-box;
	max-width: 100%;
}

textarea {
	overflow: auto;
	vertical-align: top;
	width: 100%;
}

input[type="file"] {
	max-width: 100%;
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Links
--------------------------------------------------------------*/

a:focus,
button:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/

.menu-toggle {
	border: 0;
	padding: 0 10px;
	line-height: 60px;
	margin: 0;
	font-weight: 400;
	text-transform: none;
	font-size: 15px;
	cursor: pointer;
	background-color: transparent;
}

.main-navigation {
	z-index: 100;
	padding: 0;
	clear: both;
	display: block;
}

.sub-menu {
	background-color: #ffffff;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation a {
	padding-left: 10px;
	display: block;
	text-decoration: none;
	font-weight: 400;
	text-transform: none;
	font-size: 15px;
}

.inside-navigation {
	position: relative;
}

.main-navigation li {
	float: left;
	position: relative;
}

.main-navigation li.search-item {
	float: right;
}

.main-navigation .mobile-bar-items a {
	padding-left: 20px;
	padding-right: 20px;
	line-height: 60px;
}

.feather-search {
	height: 1em;
	width: 1em;
	position: relative;
}

/* Main Navigation */

.main-navigation {
    display: flex;
}

/* Hide sub-menus by default */

.mobile-drop-navigation .sub-menu {
    display: none;
}

/* Style for the toggle button */

.toggle-button {
    float: right;
    cursor: pointer;
    padding: 5px;
}

@media (min-width: 768px) {
.toggle-button {
		display: none;
	}
}

/* Submenu */

.main-navigation ul ul {
	padding: 20px;
    display: none;
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
    position: absolute;
    left: 0;
    top: 100%; /* Position submenu below the parent menu item */
    opacity: 0;
    z-index: 99999;
    width: auto; /* Width according to content */
    padding: 10px; /* Padding */
    text-align: left;
	transition: opacity 200ms ease-in-out, height 200ms ease-in-out;
    pointer-events: none;
    height: 0;
    overflow: hidden; 
}

/* Show submenu on hover and focus */

.main-navigation:not(.toggled) ul li:hover > ul,
.main-navigation:not(.toggled) ul li:focus-within > ul {
    display: block;
    left: 0;
    top: 100%;
    opacity: 1;
    pointer-events: auto;
    height: auto;
    overflow: visible; 
}

/* Nested submenu */

.main-navigation ul ul ul {
    top: 100%; /* Position nested submenu below the parent submenu */
    left: 0;
}

/* Add arrow icon for submenu */

.main-navigation li.menu-item-has-children > a::after {
    content: '▼'; /* Arrow pointing down */
    margin-left: 5px;
    font-size: 12px;
    color: #000; /* Change color as needed */
}

/* Adjust arrow for nested submenus */

.main-navigation li.menu-item-has-children ul li.menu-item-has-children > a::after {
    content: '▼'; /* Arrow pointing down for nested submenus */
    margin-left: 5px;
    font-size: 12px;
    color: #000; /* Change color as needed */
}

/*--------------------------------------------------------------
## Sidebar Navigation
--------------------------------------------------------------*/

.widget-area .main-navigation li {
	float: none;
	display: block;
	width: 100%;
	padding: 0;
	margin: 0;
}

.middle-right-bottom {
	margin-top: 10px;
	list-style: none;
}

@media (min-width: 768px) {
.site-content {
        display: flex;
        gap: 10px;
        width: 100%;
    }

.sidebar-left .middle-right-bottom {
		flex: 1 1 30%;
		max-width: 30%;
		order: 1; /* Sidebar pehle dikhane ke liye */
	}

.sidebar-left .content-area {
		flex: 1 1 70%;
		max-width: 70%;
		order: 2; /* Content area baad mein dikhane ke liye */
	}

.sidebar-right .middle-right-bottom {
		flex: 1 1 30%;
		max-width: 30%;
		order: 2; /* Sidebar baad mein dikhane ke liye */
	}

.sidebar-right .content-area {
		flex: 1 1 70%;
		max-width: 70%;
		order: 1; /* Content area pehle dikhane ke liye */
	}

.sidebar-no-sidebar .middle-right-bottom {
		display: none; /* Sidebar ko hide karne ke liye */
	}

.sidebar-no-sidebar .content-area {
		flex: 1 1 100%;
		max-width: 100%; /* Content area ko full width karne ke liye */
	}
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/

.main-navigation {
	display: flex;
	margin-left: auto;
}

#mobile-nav li a {
    display: block;
    text-align: left;
    padding: 0px 15px;
    text-decoration: none;
}

.search-up {
	display: none;
}

.inside-header {
	display: flex;
	align-items: center;
	position: relative;
	padding: 0px 20px 0px 20px;
}

.site-branding .main-title {
	margin: 0;
    font-size: 20px;
    line-height: 1.2em;
    word-wrap: break-word;
    font-weight: 700;
    text-transform: none; 
}

.site-branding .site-description {
	margin: 0;
    line-height: 1.5;
    font-weight: 400;
    text-transform: none;
    font-size: 15px;
}

.site-header {
	padding: 10px 0px 10px 0px;
	align-items: center;
	line-height: 40px;
}

.site-logo {
	display: inline-block;
	max-width: 100%;
}

.site-header .header-image {
	vertical-align: middle;
}

.header-widget {
	float: right;
	overflow: hidden;
	max-width: 50%;
}

.header-widget .widget {
	padding: 0 0 20px;
	margin-bottom: 0;
}

.header-widget .widget:last-child {
	padding-bottom: 0;
}

.header-widget .widget-title {
	margin-bottom: 15px;
}

.site-branding-container {
	display: inline-flex;
    align-items: center;
    text-align: left;
    flex-shrink: 1;
}

.site-branding-container img {
	margin-right: 1em;
}

/*--------------------------------------------------------------
# Content Layout
--------------------------------------------------------------*/

.post {
	margin: 10px 0px;
}

html input[type="button"] {
	float: right;
	margin-top: 10px;
	font-size: 15px;
	border: 3px solid rgb(255, 255, 255);
	background: #38383a;
	cursor: pointer;
	padding: 10px 20px;
	color: #ffffff;
	border-radius: 0px;
}

.page-title {
	font-size: 26px;
	margin-bottom: 10px;
	padding: 20px;
}

.page-header {
	margin-bottom: 30px;
}

.site-content-area {
	word-wrap: break-word;
	margin-top: 10px;
}

#cont-site article {
	margin-bottom: 10px;
}

/*--------------------------------------------------------------
# Post Content
--------------------------------------------------------------*/

.sticky {
	display: block;
}

.inside-article {
	margin: 10px 0px;
	padding: 10px;
}

.inside-article article {
	margin-bottom: 10px;
}

.page-content:not(:first-child),
.entry-content:not(:first-child),
.entry-summary:not(:first-child) {
	margin-top: 1em;
}

.entry-content ul {
	margin: 0 0 1.5em 3em;
}

.site-content,
.entry-header {
	word-wrap: break-word;
}

.entry-meta {
	font-size: 85%;
	margin-top: .5em;
	line-height: 1.5;
}

footer.entry-meta {
	margin-top: 2em;
}

#content-area {
	margin: 10px 0;
	padding: 10px;
}

/*--------------------------------------------------------------
# Comments
--------------------------------------------------------------*/

.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

.comment,
.comment-list {
	list-style-type: none;
	padding: 0;
	margin: 0;
}

.comment-meta .avatar {
	float: left;
	margin-right: 10px;
	border-radius: 50%;
}

.comment-content {
	margin-top: 1.5em;
}

.comment-metadata .edit-link:before {
	display: none;
}

.comment-author .says {
    display: none;
}

.comment-body {
	padding: 30px 0;
}

.comment-content {
	padding: 30px;
	border: 1px solid rgba(0, 0, 0, 0.05);
}

.comment .children {
	padding-left: 10px;
	margin-top: -0px;
	border-left: 1px solid rgba(0, 0, 0, 0.05);
}

#cancel-comment-reply-link {
	padding-left: 10px;
	font-size: large;
}

#reply-title {
	font-size: large;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

.custom-footer {
	padding: 10px;
}

.inside-site-info {
	text-align: center;
	font-size: 15px;
	padding: 20px 0px;
}

.custom-footer,
.footer-1 {
	padding: 0px;
}

@media (min-width: 768px) {
.inside-footer-widgets {
	display: flex;
}

.inside-footer-widgets > div {
	flex: 1 1 0;
}

.inside-footer-widgets .widget {
    
    padding: 0px;
    margin-bottom: 0px;
}
}

.inside-footer-widgets {
padding: 40px;	
}

@media (max-width: 768px) {
.inside-footer-widgets {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
.site-footer .footer-widgets .footer-widgets-container .inside-footer-widgets {
        margin: 0;
    }
}

.sr-form {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.2);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10000;
	backdrop-filter: blur(3px);
	transition: opacity 500ms ease;
}

.search-form-search {
	position: fixed;
	z-index: 10000;
}

.main-navigation {
	display: block;
	display: flex;
}

.mmenu-dafr-container a {
	width: 100%;

}

.mobile-main-navigation {
	display: none;
}

@media (max-width: 768px) {
.main-navigation {
		display: none;
	}

.mobile-main-navigation {
		display: flex;
		margin-left: auto;	
	}

.mobile-drop-navigation {
		padding-left: 20px;
		padding-right: 20px;
		line-height: 60px;
	}

.mobile-drop-navigation li {
		list-style: none;
	}

.hide {
		display: block !important;
	}
}

.open {
	display: block;
}

.openn {
	display: none;
}

.mobile-drop-navigation {
	display: none;
}

.mobile-icon-search-bars {
	display: none;
}

.menu-bar-items {
	display: flex;
}

.menu-bar-items-2 {
	margin-top: 3.5px;
}

.back-to-top {
	position: fixed;
	bottom: 20px;
	right: 20px;
	display: none;
	background-color: #4b35d7;
	color: #fff;
	padding: 10px;
	border-radius: 5px;
	text-align: center;
	z-index: 1000;
	cursor: pointer;
	transition: opacity 0.3s ease;
}

.back-to-top:hover {
	opacity: 0.8;
}

/* Keep the search form hidden by default */

.search-form {
    display: none; /* Initially hidden */
    opacity: 0;
    transition: opacity 0.3s ease; /* Optional: smooth transition for opacity */
}

/* When open, show the search form */

.search-form.open {
    display: block; /* Make it visible when the .open class is applied */
    opacity: 1; /* Make the form visible */
}

#menu-bar-item-2,
#menu-bar-item {
	cursor: pointer;
}

/* Default styling for post navigation */

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

/* If there is no previous or next post, hide the post navigation */

.no-post-navigation .post-navigation {
    display: none;
}

.nav-previous,
.nav-next {
    flex: 1;
    text-align: center;
}

.nav-previous a,
.nav-next a {
    display: inline-block;
    padding: 10px 20px;
    color: #0073aa;
    text-decoration: none;
    font-size: 14px;
}

.nav-previous a,
.nav-next a {
    background-color: transparent; 
    color: #0073aa;
}

.meta-nav {
    font-weight: bold;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

.nav-links {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding: 20px;
}

.pagination {
    text-align: center;
    margin: 20px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination a:hover {
    background-color: #000;
    color: #fff;
}

.pagination .current {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

button.mobile-menu-toggle {
    border: 0px;
	background: none;

}

.mobile-menu-toggle {
	padding: 0px;
	margin-left: 10px;
}

.entry-meta {
    font-size: 14px;  
    color: #666; 
    margin-bottom: 20px; 
    display: flex;  
    align-items: center; 
}

.entry-meta .byline {
    display: flex;  
    align-items: center;  
    margin-right: 10px;  
}

.entry-meta .byline img {
    max-width: 32px; 
    height: auto;  
    border-radius: 50%; 
    margin-right: 5px; 
}

.post-image {
    text-align: center;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.post-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Мобильная версия — одна колонка */

hr {
    border: none;
    border-top: 1px solid #000; /* Черная линия */
    margin: 10px 0;
}

/* Убираем отступы для заголовка */

.entry-header.custom-header {
    display: block; /* Заголовок остается на своём месте сверху */
    margin-bottom: 7px; /* Отступ между заголовком и основным контентом */
}

/* Картинка и текст в одном ряду */

.custom-entry-content {
    display: flex;
    align-items: flex-start; /* Выравниваем по верхнему краю */
}

/* Стиль для картинки, чтобы она располагалась слева */

.custom-entry-content .post-image {
    margin-right: 20px; /* Отступ между картинкой и текстом */
    width: 64px; /* Устанавливаем ширину картинки 64px */
    height: 64px; /* Устанавливаем высоту картинки 64px */
}

/* Чтобы картинка не выходила за пределы контейнера */

.custom-entry-content .post-image img {
    width: 64px; /* Устанавливаем ширину картинки 64px */
    height: 64px; /* Устанавливаем высоту картинки 64px */
    object-fit: cover; /* Чтобы изображение не деформировалось */
}

/* Контейнер для текста */

.custom-entry-content .entry-text {
    flex: 1; /* Занимает оставшееся пространство */
}

/* Контейнер списка постов */

.post-list {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Уменьшаем расстояние между записями */
}

/* Каждый пост в списке */

.post-item {
    padding: 5px 10px; /* Уменьшаем внутренние отступы */
    border-bottom: 1px solid #ddd;
}

/* Контейнер для изображения и текста */

.custom-entry-content {
    display: flex;
    align-items: center;
}

/* Контейнер для изображения */

.post-image {
    margin-right: 10px; /* Уменьшаем отступ между изображением и текстом */
    width: 64px;
    height: 64px;
}

/* Картинка поста */

.post-image img {
    width: 64px;
    height: 64px;
    object-fit: cover;
}

/* Контейнер для текста */

.entry-text {
    flex: 1;
}

/* Заголовок поста */

.entry-title {
    margin-bottom: 3px; /* Уменьшаем отступ под заголовком */
    font-size: 18px;
    line-height: 1.2;
}

/* Метаданные (дата) */

.entry-meta {
    margin-bottom: 3px; /* Уменьшаем отступ под датой */
    font-size: 14px;
    color: #666;
}

/* Описание поста */

.entry-text p {
    margin-top: 0; /* Убираем верхний отступ у текста */
    margin-bottom: 0; /* Убираем нижний отступ у текста */
    font-size: 16px;
    color: #333;
}

.post-image img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Для сохранения пропорций и заполнения */
    border-radius: 5px;
}

/* УБИРАЕМ КНОПКИ ПАГАНАЦИИ, ОСТАВЛЯЕМ ТОЛЬКО ЦИФРЫ */

.prev.page-numbers,
.next.page-numbers { display: none; }

/* ===== Новости в сайдбаре ===== */

.widget-heading {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #222;
}

.sidebar-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    border-bottom: 0;
}

.news-item a {
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    color: #333;
}

.news-item a:hover {
    text-decoration: underline;
}

.news-date {
    display: block;
    font-size: 13px;
    color: #777;
    margin-top: 2px;
}

/* ===== Страница новости ===== */

.news-content {
    font-size: 17px;
    line-height: 1.7;
    color: #222;
    overflow-wrap: anywhere;
}

.news-content p {
    margin: 0 0 1.2em;
}

.news-content h2 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    margin: 1.6em 0 .6em;
}

.news-content h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin: 1.4em 0 .5em;
}

.news-content ul,
.news-content ol {
    margin: 0 0 1.2em;
    padding-left: 24px;
}

.news-content ul { list-style: disc; }

.news-content ol { list-style: decimal; }

.news-content li {
    margin-bottom: .4em;
}

.news-content a {
    color: #0066cc;
}

.news-content code {
    font-family: Consolas, Menlo, Monaco, "Courier New", monospace;
    font-size: .9em;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 1px 6px;
    word-break: break-word;
}

.news-content pre {
    background: #f3f4f6;
    border-radius: 6px;
    padding: 12px 14px;
    overflow-x: auto;
    margin: 0 0 1.2em;
}

.news-content pre code {
    background: none;
    border: 0;
    padding: 0;
}

.news-figure {
    margin: 1.4em 0;
    padding: 0;
}

.news-figure img,
.news-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ===== Сайдбар: иконки заголовков и компактные новости ===== */

.widget-heading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-icon {
    flex: 0 0 auto;
    color: #555;
}

.sidebar-news-list .news-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 6px 0;
}

.sidebar-news-list .news-date {
    order: -1;
    flex: 0 0 auto;
    margin: 0;
    padding: 1px 7px;
    font-size: 12px;
    line-height: 1.5;
    color: #555;
    white-space: nowrap;
    border: 1px solid #ccc;
    border-radius: 10px;
}

.sidebar-news-list .news-item a {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

/*--------------------------------------------------------------
# Yoopply News: переключатель языков, заголовки категорий, карточки
--------------------------------------------------------------*/
.lang-switcher {
    position: relative;
    margin-left: 15px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.lang-switcher summary {
    position: relative;
    padding: 4px 24px 4px 10px;
    cursor: pointer;
    list-style: none;
    border: 1px solid #ccc;
    border-radius: 8px;
}
.lang-switcher summary::-webkit-details-marker { display: none; }
.lang-switcher summary::after {
    content: "▾";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
}
.lang-switcher[open] summary::after { content: "▴"; }
.lang-switcher ul {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 50;
    min-width: 100%;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}
.lang-switcher li { margin: 0; }
.site-header .lang-switcher li a,
.lang-switcher li a {
    display: block;
    padding: 6px 14px;
    text-decoration: none;
}
.lang-switcher li a:hover { background-color: #ebebeb; }
.mobile-drop-navigation .lang-switcher {
    display: inline-block;
    margin: 10px 0 14px;
    line-height: 1.4;
}
.mobile-drop-navigation .lang-switcher ul {
    right: auto;
    left: 0;
    line-height: 1.4;
}

.page-header { margin-bottom: 16px; }
.archive-description {
    margin: 8px 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}
.archive-description p { margin: 0 0 .6em; }

.post-item .entry-text .news-date {
    display: block;
    margin: 2px 0 6px;
    font-size: 13px;
    color: #777;
}
.entry-header .entry-meta .news-date {
    display: inline-block;
    margin-top: 4px;
    font-size: 14px;
    color: #777;
}

.html-sitemap .sitemap-lang-title {
    margin: 30px 0 14px;
    padding-bottom: 8px;
    font-size: 22px;
    border-bottom: 2px solid #333;
}
.html-sitemap ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.html-sitemap ul li { width: calc(25% - 20px); }
.html-sitemap ul li a { font-size: 14px; color: #333; text-decoration: none; }
.html-sitemap ul li a:hover { text-decoration: underline; }
@media (max-width: 768px) { .html-sitemap ul li { width: calc(50% - 20px); } }
@media (max-width: 480px) { .html-sitemap ul li { width: 100%; } }


/*--------------------------------------------------------------
# Правки: меню, карточки, hr
--------------------------------------------------------------*/

/* Меню и переключатель языков — в один ряд по центру */
.main-navigation {
    align-items: center;
}
.main-navigation .main-menu {
    display: flex;
    align-items: center;
    gap: 2px;
}
.main-navigation .main-menu > li {
    float: none;
}
.main-navigation .main-menu a,
#mobile-nav a {
    padding: 0 12px;
    line-height: 36px;
    border-radius: 6px;
}
.main-navigation .main-menu a:hover,
.main-navigation .main-menu a:focus,
.main-navigation .main-menu li.yn-current > a,
.main-navigation .main-menu li.current-menu-item > a,
#mobile-nav a:hover,
#mobile-nav li.yn-current > a,
#mobile-nav li.current-menu-item > a {
    background-color: #ebebeb;
    text-decoration: none;
}
.lang-switcher { display: block; }
.lang-switcher summary { line-height: 34px; padding: 0 24px 0 12px; }
.lang-switcher ul { line-height: 1.4; }

/* Карточки на главной, в категориях и поиске: без hover-эффектов на ссылках */
.post-item a:hover,
.post-item a:focus {
    text-decoration: none;
}

/* Картинка в карточке: 132×66 */
.post-item .custom-entry-content {
    align-items: flex-start;
    gap: 16px;
}
.post-item .custom-entry-content .post-image {
    flex: 0 0 132px;
    width: 132px;
    height: auto;
    margin: 0;
}
.post-item .custom-entry-content .post-image img {
    display: block;
    width: 100%;
    height: 66px;
    object-fit: cover;
}
@media (max-width: 600px) {
    .post-item .custom-entry-content {
        flex-direction: column;
        gap: 10px;
    }
    .post-item .custom-entry-content .post-image {
        flex: none;
        width: 100%;
    }
    .post-item .custom-entry-content .post-image img {
        height: auto;
        aspect-ratio: 2 / 1;
    }
}

/* Линии над заголовком новости и после текста */
.inside-article hr.news-hr {
    height: 1px;
    margin: 16px 0;
    background-color: #ddd;
    border: 0;
}

/* Линия под меню */
hr.header-hr {
    height: 1px;
    margin: 0;
    background-color: #ddd;
    border: 0;
}

/*--------------------------------------------------------------
# Выпадающие панели: языки, версия для слабовидящих
--------------------------------------------------------------*/
.yn-dropdown > summary { list-style: none; }
.yn-dropdown > summary::-webkit-details-marker { display: none; }

.lang-switcher .lang-code { display: none; }

/* Мобильная шапка: язык, поиск, версия для слабовидящих и меню в одну линию */
@media (max-width: 768px) {
    .mobile-main-navigation .menu-bar-items {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 6px;
    }
    .mobile-main-navigation .lang-switcher,
    .mobile-main-navigation .a11y-controls,
    .mobile-main-navigation .mobile-menu-toggle,
    .mobile-main-navigation .search-button {
        margin: 0;
    }
    .mobile-main-navigation .lang-switcher .lang-full { display: none; }
    .mobile-main-navigation .lang-switcher .lang-code { display: inline; }
    .mobile-main-navigation .lang-switcher summary {
        padding: 0 22px 0 9px;
        line-height: 34px;
    }
    .mobile-main-navigation .search-button,
    .mobile-main-navigation .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 34px;
        height: 34px;
    }
    .mobile-main-navigation .search-button a,
    .mobile-main-navigation .mobile-menu-toggle a {
        display: flex;
        align-items: center;
        line-height: 1;
    }
    .mobile-main-navigation .lang-switcher ul { right: 0; left: auto; }
    .inside-header { padding-left: 12px; padding-right: 8px; }
}

/*--------------------------------------------------------------
# Версия для слабовидящих: A− / A+
--------------------------------------------------------------*/
.a11y-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 10px;
}
.a11y-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 36px;
    color: inherit;
    background: none;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}
.a11y-btn:hover:not(:disabled),
.a11y-btn:focus-visible {
    background-color: #ebebeb;
}
.a11y-btn:disabled {
    opacity: .35;
    cursor: default;
}

html[data-a11y-font="1"] body { zoom: 1.25; }
html[data-a11y-font="2"] body { zoom: 1.5; }
html[data-a11y-font="3"] body { zoom: 1.75; }

/*--------------------------------------------------------------
# Переключатель языков: по центру, пункты как в меню
--------------------------------------------------------------*/
.lang-switcher summary {
    padding: 0 24px;
    text-align: center;
    border-radius: 6px;
}
.lang-switcher ul {
    padding: 4px;
    text-align: center;
}
.lang-switcher li { margin: 2px 0; }
.site-header .lang-switcher li a,
.lang-switcher li a {
    padding: 0 14px;
    line-height: 36px;
    text-align: center;
    border-radius: 6px;
}
@media (max-width: 768px) {
    .mobile-main-navigation .lang-switcher summary { padding: 0 20px; }
}

/*--------------------------------------------------------------
# Без эффектов выделения ссылок в списках (главная, категории, поиск)
--------------------------------------------------------------*/
a,
button {
    -webkit-tap-highlight-color: transparent;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}
.post-item a:hover,
.post-item a:focus,
.post-item a:active {
    text-decoration: none;
    outline: none;
}
.pagination a:hover {
    color: #333;
    background-color: #f9f9f9;
}

/*--------------------------------------------------------------
# Все ссылки одного цвета (включая посещённые, наведение и нажатие)
--------------------------------------------------------------*/
body a,
body a:link,
body a:visited,
body a:hover,
body a:focus,
body a:active {
    color: #551a8b !important;
}

/* Первоисточник под первым абзацем */
.news-source {
    margin: 0 0 16px;
    font-size: 15px;
    word-break: break-all;
}

/* Ссылки в подвале */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 20px;
    margin: 8px 0 0;
}

/*--------------------------------------------------------------
# Компактная карточка (−25%) и строка под заголовком новости
--------------------------------------------------------------*/
.post-list { gap: 4px; }
.post-item { padding: 4px 10px; }
.post-item .custom-entry-content { gap: 12px; }
.post-item .entry-title {
    margin-bottom: 2px;
    font-size: 17px;
    line-height: 1.25;
}
.post-item .entry-title .news-date {
    display: inline;
    margin: 0 8px 0 0;
    font-size: 13px;
    font-weight: 400;
    color: #777;
    white-space: nowrap;
}
.post-item .entry-text p {
    font-size: 15px;
    line-height: 1.4;
}

.entry-header .entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 18px;
    margin-top: 4px;
    font-size: 14px;
    color: #777;
}
.entry-header .entry-meta .news-date { margin: 0; }
.entry-header .entry-meta .news-source {
    margin: 0;
    font-size: 14px;
    word-break: break-all;
}
.sidebar-news-list .news-date { white-space: nowrap; }

/* Текст о сайте в подвале */
.footer-text {
    max-width: 720px;
    margin: 6px auto 0;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    text-align: center;
}

/* 404: заголовок блока последних публикаций */
.not-found-latest {
    margin: 24px 0 12px;
    font-size: 22px;
}
