/*
Theme Name: Simple SEO ClassicPress Theme
Theme URI: https://example.com/
Author: Petya Mladenova
Author URI: https://totogener.com
Description: Lightweight and SEO-optimized theme for ClassicPress.
Version: 1.0
License: GPL2
Tags: SEO, minimal, fast
*/
html, body {
    height: 100%;
    margin: 0;
}
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    font-size: 17px;
    color: black;
    padding: 0;
}
.site-header {
    padding: 20px 5px 10px;
}
.header-banner {
    float: right;
    width: 460px;
    height: 60px;
    margin-left: 20px;
    margin-top: 5px;
}

@media (max-width: 768px) {
  .header-banner {
    float: none;
    width: 100%;
    height: auto;
    margin: 1px 0;
    text-align: center;
  }
}

.container, main {
    max-width: 960px;
    margin: 0 auto;
}

main {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px 10px;
}

.site-logo {
    display: inline-block;
    position: relative; 
}

.screen-reader-text {
    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;
    border: 0 !important;
    white-space: nowrap !important;
    top: 0;
    left: 0;
}

/* Logo */
.custom-logo {
    width: 300px;
    height: auto;
    max-height: 90px;
    display: block;
}

/* Center or align as desired */
.custom-logo-link {
    display: inline-block;
    margin-bottom: 1px;
}

.menu-bar {
    background-color: #1165af;
    padding: 4px 0 7px;
    clear: both;
}
.main-nav a {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    transition: 0.3s ease;
}

.main-nav a:hover {
    color: #ccc;
}

.main-nav .current-menu-item a {
    font-weight: bold;
}

.menu-toggle-label {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    margin: 0 auto;
    z-index: 999;
}

.menu-toggle-label .bar {
    display: block;
    height: 4px;
    width: 100%;
    background-color: #fff;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Menu open */
.main-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

/* Nav */
.main-nav ul {
    list-style: none;
    padding: 0;
}

.main-nav ul li {
    display: inline-block;
    margin-right: 15px;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .menu-toggle-label {
        display: block;
    }

    .main-nav {
        max-height: 0;
    }

    #menu-toggle:checked + .menu-toggle-label + .main-nav {
        max-height: 500px;
        padding: 0 4px;
    }

    .main-nav ul {
        display: block;
        text-align: center;
    }

    .main-nav ul li {
        display: block;
        margin: 10px 0;
    }
}

/* === Desktop menu === */
@media (min-width: 769px) {
    .menu-toggle-label {
        display: none;
    }

    .main-nav {
        max-height: none;
        overflow: visible;
        max-width: 960px;
        margin: 0 auto;
    }

    .main-nav ul {
        display: flex;
        gap: 5px;
    }

    .main-nav ul li {
        display: inline-block;
        margin-right: 15px;
        line-height: 1.2;
    }
}

/* Sub Menu */
.main-nav ul li {
    position: relative;
}

/* Sub Menu desktop */
@media (min-width: 769px) {
    .main-nav ul li ul.sub-menu {
        display: none;
        position: absolute;
        left: 0;
        background: #255F9B;
        padding: 6px 0;
        list-style: none;
        border-radius: 4px;
        min-width: 180px;
        z-index: 9999;
        white-space: nowrap;
    }

    /* hover */
    .main-nav ul li:hover > ul.sub-menu,
    .main-nav ul li:focus-within > ul.sub-menu {
        display: block;
    }

    .main-nav ul li ul.sub-menu li {
        display: block;
        margin: 0;
    }

    .main-nav ul li ul.sub-menu li a {
        display: block;
        padding: 7px;
        color: #fff;
        font-size: 14px;
        text-transform: uppercase;
    }

    .main-nav ul li ul.sub-menu li a:hover,
    .main-nav ul li ul.sub-menu li a:focus {
        background: #255F9B;
    }
}

/* --- Mobile Sub Menu */
@media (max-width: 768px) {
    .main-nav ul li ul.sub-menu {
        display: block; 
        padding-left: 14px;
        margin-top: 6px;
        background: transparent;
        position: static;
        box-shadow: none;
    }
    .main-nav ul li ul.sub-menu li a {
        padding: 6px 0;
    }
}
/* End Sub Menu */

.main-nav .menu-item-has-children > a::after {
    content: "▼";
    font-size: 12px;
    margin-left: 3px;
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 1.75em;
}

h3 {
    font-size: 1.5em;
}

h4 {
    font-size: 1.25em;
}

h1, h2, h3, h4 {
	line-height: 1.2;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 0.5em;
}

p, ul, ol, h2, h3, h4 {
    -webkit-user-select: none; /* Chrome и Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge Legacy */
    user-select: none;         /* standart */
}

p code, code {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

a {
    color: #1165af;
    text-decoration: none;
}
a:hover {
    color: black;
}

.post-content a {
    text-decoration: underline;
}

.post-content a[target="_blank"] {
    text-decoration: underline;
    position: relative;
}

.post-content a[target="_blank"]::after {
    content: "";
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-left: 0.15em;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'><path d='M14 3h7v7m0-7L10 14'/><path d='M5 5v14h14v-5'/></svg>") no-repeat center;
    background-size: contain;
}

.post-meta {
    font-size: 0.9em;
    color: #000;
    margin-bottom: 1em;
	border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
}

.post-meta .icon {
  width: 16px;
  height: 16px;
  vertical-align: text-bottom;
  margin-right: 3px;
}

.post-views .icon {
    width: 20px;
    height: 20px;
    vertical-align: text-bottom;
    margin-right: 5px;
}

.alignleft {
    float: left;
    margin: 0 15px 15px 0;
    display: block;
    max-width: 100%;
    height: auto;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
    max-width: 100%;
    height: auto;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
    max-width: 100%;
    height: auto;
}

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

.post-item {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}

.post-thumbnail img {
    width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
	margin-top: 13px;
}

.post-text {
    flex: 1;
}

.post-content img {
    border-radius: 4px;
}

@media (max-width: 768px) {
    .post-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .post-thumbnail {
        width: 100%;
    }

    .post-thumbnail img {
        width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
        max-width: 100%;
        border-radius: 6px;
    }

    .post-text {
        width: 100%;
        text-align: left;
        padding: 0 15px;
    }
}

.post-divider {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 30px 0;
}

.comments-area {margin-bottom: 40px;}

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

.comment-list > li {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

#respond {
  margin-top: 30px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
}

#comment {
  width: 97.5%;
  min-height: 120px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: vertical;
  font-size: 16px;
  line-height: 1.5;
  background: #fff;
}

.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
  width: 97%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  margin-top: 5px;
  background: #fff;
}

.comment-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.form-submit input[type="submit"] {
  background: #2F76C1;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

.form-submit input[type="submit"]:hover {
  background: #2a6aad;
}

.search-form {
    display: flex;
    max-width: 400px;
    margin: 20px 0;
    border: 1px solid black;
    border-radius: 5px;
    align-items: center;
}

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

.search-form input[type="search"] {
    flex: 1;
    font-size: 1em;
    border: none;
    outline: none;
    padding: 7px;
    min-width: 0;
    background: transparent;
}

.search-form button.search-submit {
    background-color: black;
    border: none;
    padding: 5px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
    min-width: 40px;
    height: 100%;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.search-form button.search-submit:hover {
    background-color: #333;
}

.search-form button.search-submit img {
    width: 32px;
    height: 32px;
    display: block;
}

@media (max-width: 480px) {
    .search-form {
        max-width: 100%;
    }
    #comment,
    .comment-form-author input,
    .comment-form-email input,
    .comment-form-url input {
       width: 93%;
   }
}

table {
  width: 100%;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: Arial, sans-serif;
  font-size: 16px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  overflow: hidden;
  margin: 20px 0;
}

table tbody tr:first-child th {
  background-color: #f8f8f8;
}

table th {
  font-weight: bold;
  color: #333;
  padding: 12px;
  border-bottom: 1px solid #ddd;
}

tbody td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  color: #555;
}

pre {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 16px;
  overflow-x: auto;
  font-size: 15px;
  line-height: 1.5;
  margin: 20px 0;
  max-width: 100%;
}

code {
  font-family: Consolas, Menlo, Monaco, monospace;
  color: #333;
  white-space: pre-wrap;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 7px;
  margin: 20px 0;
}

.responsive-video {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 25px;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 3px;
}

.responsive-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.custom-ads, .custom-banner {
    text-align: center;
    margin: 20px 0;
}

.custom-banner img, .custom-ads img {
    max-width: 100%;
    height: auto;
}

/* Social buttons */
.share-buttons {
    display: flex;
    gap: 10px;
    margin: 30px 0;
	justify-content: center;
	border-top: 1px solid #ccc;
	padding-top: 30px;
}

div.share-buttons span {margin-top: 7px;}

.share-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 110px;
    height: 40px;
    background: white;
    color: #1165af;
    font-size: 18px;
    border-radius: 3px;
    border: 1px solid #1165af;
    transition: background 0.3s ease;
}
.share-btn:hover {
    background: #1165af;
    color: white;
}

.share-buttons a[target="_blank"]::after {
    content: none;
}

.share-buttons a[target="_blank"] {text-decoration: none;}

.related-posts-advanced {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid #ccc;
	font-family: Arial, sans-serif;
}
.related-posts-advanced h4 {
	margin-bottom: 15px;
}
.related-list {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	list-style: none;
	padding: 0;
	margin: 0;
}
.related-item {
	display: flex;
	align-items: flex-start;
	width: calc(50% - 10px);
}
.related-thumb img {
	max-width: 80px;
	height: 80px;
	object-fit: cover;
	margin-top: 5px;
	margin-right: 10px;
}
.related-title {
	font-weight: 600;
	display: block;
	margin-bottom: 4px;
	text-decoration: none;
	color: #333;
}
.related-title:hover {
	text-decoration: underline;
}
.related-excerpt {
	font-size: 0.9em;
	color: #666;
	margin: 0;
}
@media (max-width: 599px) {
	.related-item {
		width: 100%;
	}
}

.author-box {
  background-color: #fdfdfd;
  border: 1px solid #999;
  padding: 7px 10px;
  margin-top: 30px;
  border-radius: 4px;
}

.author-box h3 {
  margin-top: 11px;
  margin-bottom: 8px;
  color: #777;
}

.pagination {
    text-align: center;
    margin: 0.5em 0;
}

.pagination ul {
    list-style: none;
    padding: 0;
    display: inline-block;
}

.pagination li {
    display: inline;
    margin: 0 4px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 15px;
    background: #f1f1f1;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
	margin-bottom: 10px;
}

.pagination .current {
    background: #333;
    color: #fff;
    font-weight: bold;
}

blockquote {
  border-left: 4px solid #ccc;
  padding-left: 1em;
  margin: 1.5em 0;
  color: #333;
  font-style: italic;
  background: none;
}

.promo-block {padding:20px; margin:30px 0; background:rgba(47, 118, 193, 0.03); border:1px solid #2f76c1; border-radius:3px; text-align:center; font-size:17px; line-height:1.5; color:#2f76c1;}

.yearly-archives {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 19px;
}

.yearly-archives .archive-year a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding: 5px 13px;
    border: 1px solid #1165af;
    background: #1165af;
    transition: background 0.3s ease;
}

.yearly-archives .archive-year a:hover {
    border: 1px solid #1165af;
    background: #fff;
    color: #1165af;
}

article.sticky {
    position: relative;
}

article.sticky::before {
    content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='%23800020' viewBox='0 0 24 24'><path d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/></svg>");
    position: absolute;
    border-radius: 50px;
    background: white;
    left: 3px; 
    top: 15px;
    width: 35px;
    height: 35px;
}

a.viber-btn {
  display: inline-block;
  padding: 12px 17px;
  background: #2f76c1;
  color: #fff;
  font-weight: bold;
  text-decoration: none!important;
  border-radius: 6px;
  border: 1px solid #2f76c1;
  margin-bottom: 10px;
  transition: background 0.3s
}
a.viber-btn:hover {
  background: #fff;
  color: #000;
}

.subfooter-widgets {
    background-color: #1165af0d;
    padding: 30px 5px;
    font-size: 1em;
}

.subfooter-widgets .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.subfooter-column {
    flex: 1;
    min-width: 250px;
}

.subfooter-widget {
    margin-bottom: 20px;
}

.subfooter-widget .widget-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.subfooter-widget ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.subfooter-widget ul li::after {
    content: "";
    display: block;
    border-bottom: 1px solid #ddd;
    margin: 6px 0;
}

.subfooter-widget ul li:last-child::after {
    content: none;
}


footer {
    background: #1165af;
    padding: 5px;
    color: white;
	text-align: center;
}

@media (max-width: 400px) {
    .custom-logo-link img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .custom-logo-link img {
        width: 100%;
        height: auto;
        margin: 5px auto;
    }
    .custom-logo {
        max-height: 100%;
        aspect-ratio: 460 / 107;
        height: auto;
    }
    h1 {
    font-size: 1.70em;
    }
    h2 {
    font-size: 1.60em;
    }
	table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
    .search-form input[type="submit"] {
        width: 100%;
        padding: 0;
    }
}

/* Banners Widget */
.single-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin-top: 20px;
}

/* Sidebar банери */
.sidebar-left,
.sidebar-right {
    width: 160px;
    margin-right: 7px;
    margin-left: 7px;
}

/* Основно съдържание */
.content-area {
    max-width: 800px;
    flex: 1;
}

.sidebar-left .widget,
.sidebar-right .widget {
    margin-bottom: 20px;
}

/* Скриване на банерите на мобилни */
@media screen and (max-width: 1024px) {
    .single-layout {
        display: block;
    }

    .sidebar-left,
    .sidebar-right {
        display: none;
    }

    .content-area {
        max-width: 100%;
        padding: 0 15px;
    }
}

