/*
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: 25px 5px 20px;
}
.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: 10px 0;
    text-align: center;
  }
}

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

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

/* 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: 10px;
}

.menu-bar {
    background-color: #1165af;
    padding: 4px 0 7px;
    clear: both;
}
.main-nav a {
    color: #fff;
    font-size: 17px;
    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-left: 3px;
    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;
    }

    .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: 15px;
    }

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

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 */
}

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

.post-meta {
    font-size: 0.9em;
    color: #000;
    margin-bottom: 1em;
}

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

.icon {
    vertical-align: text-top;
    width: 20px;
    height: auto;
    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;
}

img[width="640"] {
  max-width: 960px;
  width: 100%;
  height: auto;
  display: block;
  margin: 10px auto 20px;
  border-radius: 4px;
}

.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;
}

.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%;
    }
}

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;
}

.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 {
    max-width: 100%;
    height: auto;
}

/* Social buttons */
.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
	margin-bottom: 20px;
}
.share-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 110px;
    height: 40px;
    background: white;
    color: #1165af;
    font-size: 18px;
    text-decoration: none;
    border-radius: 3px;
    border: 1px solid #1165af;
    transition: background 0.3s ease;
}
.share-btn:hover {
    background: #1165af;
    color: white;
}

.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-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-left: 4px solid #999;
  padding: 15px 7px;
  margin-top: 30px;
  border-radius: 4px;
}

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

.pagination {
    text-align: center;
    margin: 2em 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;
}

.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;
}

/* Forms
--------------------------------------------- */
.button, .button a {text-decoration: none; display: block; max-width: 450px; text-align: center; margin: 10px auto;}
.button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 1em 1.2em;
	cursor: pointer;
}

.button:hover,
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
	background: #eee;
	color: rgba(0, 0, 0, 0.6);
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 13px 3px;
	margin-right: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

select#cat.postform {
    padding: 7px;
    margin-left: 3px;
    font-size: 16px;
}

#contactForm {
    margin-top: 50px;
}

#contactForm .form {
    background-color: #f3f3f3;
    padding: 2px 5px;
}

#contactForm input[type="text"], #contactForm input[type="email"] {
    max-width: 320px;
    width: 100%;
	display: block;
}

.contact-ok {
    padding: 3px 7px;
    border-top: dotted 1px #ccc;
    border-bottom: dotted 1px #ccc;
}

.error {color: red}
#subscription {margin-top: 20px; margin-bottom: 40px;}

.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::before {
    content: "» ";
    margin-right: 0.1px;
    color: inherit;
}

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%;
    }
	table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

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