/*
Theme Name: SWKotor BS4 (WP Bootstrap Starter)
Theme URI: https://afterimagedesigns.com/wp-bootstrap-starter/
Author: Afterimage Designs
Author URI: https://afterimagedesigns.com/
Description:  The best WordPress starter theme based on the most powerful frameworks in the world: "_s" (by Automattic, the main people behind WordPress development), Twitter Bootstrap (the most popular HTML, CSS, and JS framework for developing responsive, mobile first projects on the web) and Font Awesome (or Fontawesome, a full suite of 675+ pictographic icons for easy scalable vector graphics on websites). This theme, like WordPress, is licensed under the GPL. You can use this theme as base for your next WordPress theme project and you are allowed to remove the link at the footer or do whatever you want. Your feedback on how we can continuously improve this WordPress Starter Theme Bootstrap will be highly appreciated. Page templates includes Right-sidebar (default page template), Left-Sidebar, Full-Width, Blank with container, Blank without container Page. Other features - Currently using Bootstrap v4.0.0 , Widgetized footer area, WooCommerce ready, Compatible with Contact Form 7, Compatible with Visual Composer, Compatible with Elementor Page Builder. This theme will be an active project which we will update from time to time. Check this page regularly for the updates.
Version: 3.3.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: wp-bootstrap-starter
Requires at least: 4.7
Requires PHP: 5.2.4
Tested up to: 5.4
Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready, right-sidebar, custom-background, e-commerce, theme-options, sticky-post, full-width-template
*/

@import url('https://fonts.googleapis.com/css?family=Roboto:100,200,300,400,500');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Montserrat:300,400,500,700&display=swap');
@import url('https://pro.fontawesome.com/releases/v5.10.0/css/all.css');

:root {
	--blue:			#0090ff;
	--darkblue:	#060d3b;
	--red:			#c00000;
	--gray: 		#dddddd;
	--darkgray:	#666666;
	--black:		#000000;
	--white:		#ffffff;
	--yellow:		#ffd155;
	--shadowbox: 0px 5px 10px rgba(0,0,0, 0.2);
} 

body 							{ font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
										font-weight: 300; color:var(--white);
										background: #000;
									}

h1, h2, h3, h4, h5	{ font-family: 'Montserrat', sans-serif; line-height: 120%; letter-spacing: -1px; word-spacing:0.2em; font-weight: 500; 
									margin: 0px 0px 0.5em 0px; }

@media (max-width: 640px) {
	h1, h2, h3, h4 { font-size: 1.6em; line-height: 110%; }
	h5 { font-size: 1.1em; line-height: 110%; }
}
b 								{ font-weight: 400; }

a									{ color:var(--white); text-decoration: underline; }
a:hover						{ color:var(--blue) !important; text-decoration: underline; }
a:visited					{ color:var(--white); text-decoration: underline; }
a:focus 					{ outline:none; }

i.fab							{ margin-right: 0.5em; }

.blue							{ color: var(--blue); }
.yellow						{ color: var(--yellow); }

/* ========= main world ========= */
body #page > header	{ height: 140px; margin-bottom: 60px; }
header .bg					{ height: 120px; background: url('images/title_bg01.jpg') repeat-x #111; }
header .bg-1				{ background-image: url('images/title_bg01.jpg'); }
header .bg-2				{ background-image: url('images/title_bg02.jpg'); }
header .bg-3				{ background-image: url('images/title_bg03.jpg'); }
header .bg-4				{ background-image: url('images/title_bg04.jpg'); }
header .border, footer .border	{ height: 25px;  background: url('images/border_bg.gif') repeat-x; border: none !important; font-size: 0.9em; }

nav, aside 				{ font-size: 1.0em; font-family: 'Roboto Condensed', sans-serif; }
nav	a, aside a		{ text-decoration: none; font-weight: 400; }
nav	.navs					{ padding:0px 0px 0px 15px; }
nav .portic, aside .portic	{ color:var(--yellow); height: 28px; width: 100%; display: block; padding:3px 0px 0px 15px; 
									background:url('images/button_bg.gif') repeat-x; background-position:top right; 
									line-height:24px; overflow:hidden; word-spacing:-1; letter-spacing:0; text-align:left; text-shadow: #000000 0px 2px 2px; }
nav section h3.widget-title, 
aside section h3.widget-title { font-size: 0.95em; font-family: inherit; color:var(--yellow); height: 28px; width: 100%; display: block; padding:3px 0px 0px 10px; 
									background:url('images/button_bg.gif') repeat-x; background-position:top right; 
									line-height:24px; overflow:hidden; word-spacing:-1; letter-spacing:0; text-align:left; text-shadow: #000000 0px 2px 2px; }

nav #custom_html-6 a:hover img { filter: brightness(100%) saturate(200%) contrast(200%); }

content .panel		{ background:var(--darkblue); border: 1px solid #102856; padding: 1.5em; margin: 10px 0 40px 0;
									border-top-left-radius: 15px; border-top-right-radius: 15px; border-top-width: 4px; --height: 100%; }
content .panel img	{ max-width: 100%; height: auto; }
content .panel .panel-header, main content .panel article.page header	h1.entry-title 
									{ font-size: 2.2em; text-transform: uppercase; color:var(--yellow); font-weight: 500;
									position: relative; top: -46px; margin-bottom: -20px; }
content #main a:visited { color:#bbb; text-decoration: underline; }
									
nav section, aside section { margin-bottom: 20px; }

body #page > footer 		{ margin-top: 40px; }
body #page > footer .bg	{ background: #111; padding-bottom: 60px; }
body #page > footer .bg	div[class*='col-']	{ padding: 1.0em; }

article.post			{ display: inline-block; border-bottom: 1px solid #102856; margin-bottom: 1em; padding-bottom: 1em; }
/* article.post .post-thumbnail .attachment-post-thumbnail { width: 20%; height: auto; float: left; margin: 0 1.0em 1.0em 0; } */
article.post .more-link	{ float: right; } 
article header					{ height: auto; margin: 0 0 10px 0; }
article.post .entry-meta, article.post footer	{ font-size: 0.8em; }
article.post.sticky:before	{ content:'⚡ '; font-size: 1.2em; margin: 0px 5px 0px 0px; color: red; display: inline; float: left; }

#comments dl dt										{ font-weight: 300; }
#comments .comment-author					{ font-size: 0.8em; }
#comments .comment-author p.name	{ font-size: 1.2em; font-weight: 500; margin-bottom: 0px; }
#comments .pull-left	{ float: left; margin-right: 10px; }
#comments .avatar	{ width: 48px; height: 48px; border-radius: 50%; }

.carousel-inner			{ height: 250px; border-radius: 15px; }
.carousel-item img	{ width: 100% !important; --height: auto; object-fit: cover; }
.carousel-caption		{ top: 20px; bottom: 0px; text-shadow: 0px 0px 11px rgba(0,0,0, 0.99); }

.table		{ color: inherit; }
.tab 			{ border: 0 solid #102856; border-collapse: collapse; }
.tab .top { background: #5f6c9a; }
.tab .top td { border-right: 1px dashed var(--darkblue); }
.tab td 	{ border-right: 1px dashed #5f6c9a; padding: 10px; }
.tab td:last-child { border-right: none; }

img[align="right"]	{ margin-left: 1.0em !important; }
img[align="left"]		{ margin-right: 1.0em !important; }

hr 							{ margin: 2.0em 0; }
.highslide img 	{ margin: 2.0em 0; border-radius: 3px; }

.columns-2	{ columns: 2; }
.columns-3	{ columns: 3; }

blockquote 	{ margin: 0 0 2em 2em; padding: 0 1em; border-left: 2px solid #fff; }
figure figcaption	{ text-align: center; font-size: 0.8em; color: gray; }
	
@media (max-width: 1200px) {
	nav, aside 			{ font-size: 0.9em; }
	/* article.post .post-thumbnail .attachment-post-thumbnail { width: 50%; } */
}

@media (max-width: 640px) {
	header .logo	{ width: 100%; }
	body #page > header	{ height: 100px; margin-bottom: 30px; }
	header .bg 		{ height: 80px; }
	content .panel { margin-left: -13px; margin-right: -13px; padding: 15px; }
	content .panel .panel-header, main content .panel article.page header	h1.entry-title { font-size: 1.6em; top: -32px; }
	.carousel-inner			{ height: 200px; }
	
	.columns-2	{ columns: 1 auto; }
	.columns-3	{ columns: 1 auto; }
	
	#archives-2 { display: none; }
}

/* ========= restyle ========= */
.burger						{ margin: 20px 0 0 10px; }
.burger-menu			{ columns: 2; background: #102856; border-radius: 15px; padding: 1em; }
.btn-primary			{ background-color: var(--blue); border-color: var(--blue); }

.rounded {
	border-radius: .9rem!important;
}

nav ul, aside .widget ul {
	list-style-type: none;
	padding: 0px;
}

aside .widget ul li {
	margin-bottom: 10px;
}
aside .widget.widget_archive ul li, aside .widget.widget_categories ul li {
	margin-bottom: 0px;
}
aside, aside .widget.widget_recent_entries ul li .post-date	{ color:var(--darkgray); }
aside .widget.widget_recent_entries ul li .post-date:before { content:' — '; }


aside #archives-2 ul, aside #categories-2 ul {
	max-height: 20em; overflow-y: auto;
}
aside #archives-2 ul::-webkit-scrollbar, aside #categories-2 ul::-webkit-scrollbar {
 width: 8px;
 height: 8px;
}
aside #archives-2 ul::-webkit-scrollbar-thumb, aside #categories-2 ul::-webkit-scrollbar-thumb {
 background: #102856;
 border-radius: 8px;
}
aside #archives-2 ul::-webkit-scrollbar-thumb:hover, aside #categories-2 ul::-webkit-scrollbar-thumb:hover{
 background: #0090ff;
}
aside #archives-2 ul::-webkit-scrollbar-track, aside #categories-2 ul::-webkit-scrollbar-track{
 background: var(--darkblue);
 border-radius: 8px;
 --box-shadow: inset 7px 10px 12px var(--darkblue);
}

content .site-main article.post header.entry-header h3.entry-title {
	font-size: 1.3rem;
}

.comment-list .comment cite {
	font-style: normal;
}
.comment-list .media-body {
	margin-left: 0px;
}
.comment-list .comment .comment-meta {
	font-size: 0.7em;
	text-align: right;
}

.post-navigation {
	display: none !important;
}
.navigation { 
	display: grid;
	margin-bottom: 2.0em;
}
.navigation h2, .navigation .screen-reader-text { 
	font-size: 1.4em;
  text-align: center;
}
.navigation .nav-links {
	margin-bottom: 10px;
}
.navigation .nav-previous {
	float: left;
}
.navigation .nav-next {
	float: right;
}

.jp-relatedposts {
	border-top: 1px solid #102856;
	margin: 3em 0;
}

#jp-relatedposts h3.jp-relatedposts-headline {
	font-size: inherit !important;
}


.downloads-short .dlm-downloads li { 
	--display: flex;
}
.downloads-short .dlm-downloads a.download-link img {
	--float: left; 
	width: 36px;
	height: 36px;
	border-radius: 3px;
	margin: 0 10px 10px 0;
}
.downloads-short [data-bs-toggle='collapse'] {
	display: none;
}
.dlm-downloads a.download-link img {
	width: 64px;
	height: 64px;
	border-radius: 6px;
	margin: 0 10px 10px 0;
}

.news-archive p strong {
	font-size:1.6em;
}

.alert.alert-dark a {
	color: #000;
}

article.post .post-thumbnail {
	display: block;
  float: left;
	--width: 150px;
	--height: 150px;
	overflow: hidden;
	border-radius: 10px;
}
article.post .post-thumbnail img.attachment-post-thumbnail {
	object-fit: cover;
	--max-width: none;
	width: 150px;
	height: 150px;
	margin: 0 1.5em 1.5em 0; 
	border-radius: 10px;
}

.tagcloud .tag-link-7 {
	display: none;
	font-size: 1.2em !important;
}
.tagcloud .tag-cloud-link {
	margin-right: 15px;
	white-space: nowrap;
}
.--tagcloud:after { content:'<hr/><a href="https://www.swkotor.ru/tags/old-news/">старые новости (8866 элементов)</a> '; font-size: 1.2em; margin: 0px 5px 0px 0px; }

.search-result ol li article.post {
	display: block !important;
}
.search-result ol li article.post .entry-header .entry-meta {
	opacity: 0.3;
}
.search-result ol li article.post .entry-footer {
	display: none; 
}
.search-result ol li article.post .entry-header h2 {
	font-size: 1.4rem;
}

.wp-calendar-table.table>:not(caption)>*>* {
	padding: .2rem .2rem;
}
.wp-calendar-table.table-striped>tbody>tr:nth-of-type(odd) {
	color: inherit;
}

@media (max-width: 640px) {
	article.post .post-thumbnail { width: 100%; height: auto; float: none; --margin-bottom: 1em; } 
	article.post .post-thumbnail img.attachment-post-thumbnail { object-fit: cover; width: 100%; height: auto; max-height: 150px; }
	.wp-block-embed iframe { height: auto; }
}
/* ========= tfn ========= */
#tfn	{ text-align: center; }

@media (max-width: 640px) {
	#tfn	{ text-align: center; margin-top: 2em; margin-bottom: 4em; }
}

/* ========= scroll-to-top ========= */
.scrollToTopButton		{ display: none; opacity:1.0; width:50px; height:50px; position:fixed; right: 30px; bottom: 40px; cursor:pointer; 
											text-align:center; color:#fff; text-transform:uppercase; background-color:var(--blue); font-size: 32px; font-family: "Tahoma"; 
											padding: 1px 14px 0px; border-radius: 50%; line-height: 1.4em; z-index: 999; 
											border: 2px solid #fff; 
											--box-shadow: 0px 0px 0px 1px var(--yellow);
											transition: box-shadow 300ms cubic-bezier(0.215, 0.61, 0.355, 1); }
.scrollToTopButton:hover	{ background-color:#0b5ed7; --box-shadow: 0px 5px 5px var(--yellow); }
.scrollToTopButton:focus, .scrollToTopButton:active 
											{ outline: 0; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.scrollToTopButton .fa { margin-right: 0px; }										
.modal-open .scrollToTopButton	{ right: 45px; }

@media (max-width: 640px) {
	.scrollToTopButton	{ bottom: 30px; }
}

/* ========= sidemenu ========= */
.sidemenu-open, .sidemenu-close	{ float: left; }

.sidemenu-close				{ float: right; }
.sidemenu-open .fa, .sidemenu-close .fa 
											{ margin: 0px; }
#sidemenu-panel				{ width: 80%; height: 100%; background: var(--darkblue); padding: 20px; z-index: 9999; position: fixed; top: 0px; left: -85%; 
											box-shadow: 5px 0px 15px rgba(0,0,0, 0.8); overflow: auto; }
											
#sidemenu-panel ul.menu 			{ padding-left: 0px; }
#sidemenu-panel ul.menu li		{ list-style: none; padding-bottom: 5px; --width: 75%; }
#sidemenu-panel ul.menu li	a	{ text-decoration: none; padding: 0px 0px 5px 0px; font-size: 1.1rem; }
#sidemenu-panel ul.menu li.devider	{ border-bottom: 2px solid #000; }

div.modal-backdrop.sidemenu	{ background: #333; opacity: 0.9; }

