/*
Theme Name: KBD1
Description: KBD1 site theme
Author: Volodymyr Yeryomin
Version: 1.0
Text Domain: kbd1
License: n/a
License URI: n/a
*/

/*------------------------------------------------
>>> TABLE OF CONTENTS
1.	- Global
2.	- Layout
3.	- Header
3.1	- Main menu
3.2	- Social menu
3.3	- Header logo
4.	- Main content
4.1	- Last news block
4.2	- Actual block
4.3	- News widgets
4.4	- Useful info widgets
4.5	- Last gallery block
4.6	- Video widgets
4.7	- Charity block
4.8	- About widget
5.	- Footer
6.	- Category page
7.	- Gallery page
8.	- Pagination
9.	- Charity
9.1	- Charity widget
10.	- Post or single page
0.	- Wordpress core
------------------------------------------------*/

/*------------------------------------------------
1.	- Global
------------------------------------------------*/

html {
	font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 24px;
	color: #000000;
}

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

body {
	background-color: #FFFFFF;
	margin: 0;
}

img {
	border: none;
}

a {
	color: #525D09;
}

a:hover {
	color: #65B016;
	text-decoration: underline;
}

a:active {
	text-decoration: underline;
}

a:visited {
	text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	padding: 0;
	color: #525D09;
}

h1 {
	font-size: 20px;
	line-height: 30px;
	font-weight: bold;
}

h2 {
	font-size: 18px;
	line-height: 30px;
	font-weight: bold;
}

h3 {
	font-size: 16px;
	line-height: 24px;
	font-weight: bold;
}

h4,
h5,
h6 {
	font-size: 16px;
	line-height: 24px;
	font-weight: normal;
}

#to-top-button {
	width: 30px;
	height: 30px;
	position: fixed;
	bottom: 10px;
	right: 50%;
	margin-right: -15px;
	z-index: 20;
}

#to-top-button:hover {
	width: 50px;
	height: 50px;
	margin-right: -25px;
}

/*------------------------------------------------
2.	- Layout
------------------------------------------------- */
html {
	display: flex;
	flex-flow: column wrap;
	min-height: 100%;
}

#body {
	display: flex;
	flex-flow: column wrap;
	flex: auto;
}

#header {
	display: flex;
	flex-flow: column wrap;
	width: 100%;
	min-width: 1240px;
	max-width: 1920px;
	height: 400px;
	margin: 0 auto;
}

#main {
	display: flex;
	flex-flow: column wrap;
	flex-grow: 1;
	width: 100%;
	min-width: 1240px;
	max-width: 1920px;
	margin: 0 auto;
}

#footer {
	display: flex;
	flex-flow: column wrap;
	width: 100%;
	min-width: 1240px;
	max-width: 1920px;
	margin: 20px auto 0 auto;
	background: #FF6A00;
}

.footer-wrapper {
	width: 1200px;
	margin: auto;
}

/*------------------------------------------------
3.	- Header
------------------------------------------------- */
.header-bg {
	width: 100%;
	min-width: 1240px;
	max-width: 1920px;
	height: 400px;
	overflow: hidden;
	position: absolute;
	z-index: -999;
}

.header-bg img {
	width: 100%;
	min-width: inherit;
	max-width: inherit;
	height: auto;
}

.header-menu-wrapper {
	width: 100%;
	min-width: 1240px;
	max-width: 1920px;
}

.header-menu {
	display: flex;
	flex-flow: row nowrap;
	justify-content: space-between;
	background: #FF6A00;
	width: 1200px;
	height: auto;
	margin: auto;
	border-radius: 0 0 10px 10px;
}

.header-logo-wrapper {
	display: flex;
	flex-flow: row nowrap;
	width: 1200px;
	margin: auto;
}

/*------------------------------------------------
3.1	- Main menu
------------------------------------------------- */
#main-menu {
	width: 1000px;
}

#main-menu > ul {
	display: flex;
	flex-flow: row nowrap;
	list-style: none;
	margin: 0;
	padding: 0;
}

#main-menu > ul > li > a {
	display: block;
	line-height: 50px;
	padding: 0 20px;
	border-right: solid 1px #FFF;
	text-transform: uppercase;
	text-decoration: none;
	color: #FFF;
	transition: background 0.5s;
}

#main-menu > ul > li > a:hover {
	background: #FFB62A;
	transition: background 0.3s;
}

#main-menu > ul > li:first-child > a {
	border-radius: 0 0 0 10px;
}

#main-menu .sub-menu {
	display: none;
	position: absolute;
	background: #FF6A00;
	list-style: none;
	margin: 0;
	padding: 0;
}

#main-menu .sub-menu li > a {
	display: block;
	line-height: 50px;
	padding: 0 20px;
	border-top: solid 1px #FFF;
	color: #FFF;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.6s;
}

#main-menu .sub-menu li > a:hover {
	background: #FFB62A;
	transition: background 0.3s;
}

#main-menu > ul > li:hover > .sub-menu {
	display: block;
}

/*------------------------------------------------
3.2	- Social menu
------------------------------------------------- */
#social-menu {
	display: flex;
	flex-flow: row nowrap;
	justify-content: flex-end;
	width: 200px;
}

#social-menu .widget-body {
	margin: 0;
	width: auto;
	height: auto;
}

#social-menu .widget-body > a {
	display: block;
	height: 50px;
	width: auto;
	padding: 0 10px;
	transition: background 0.3s;
}

#social-menu .widget-body:last-child > a {
	border-radius: 0 0 10px 0;
}

#social-menu .widget-body > a:hover {
	background: #FFB62A;
	transition: background 0.3s;
}

#social-menu .widget-body img {
	height: 30px;
	width: auto;
	padding: 10px 0;
}

#social-menu .widget-title {
	display: none;
}

/*------------------------------------------------
3.3	- Header logo
------------------------------------------------- */
#site-logo img {
	height: 250px;
	width: auto;
	padding: 0;
	margin: 50px 20px 0 0;
	border: none;
}

#site-title {
	font-size: 20px;
	font-weight: bold;
	font-style: italic;
	color: #65B016;
	text-shadow: -0 -1px 0 #FFFFFF,
	0 -1px 0 #FFFFFF,
	-0 1px 0 #FFFFFF,
	0 1px 0 #FFFFFF,
	-1px -0 0 #FFFFFF,
	1px -0 0 #FFFFFF,
	-1px 0 0 #FFFFFF,
	1px 0 0 #FFFFFF,
	-1px -1px 0 #FFFFFF,
	1px -1px 0 #FFFFFF,
	-1px 1px 0 #FFFFFF,
	1px 1px 0 #FFFFFF,
	-1px -1px 0 #FFFFFF,
	1px -1px 0 #FFFFFF,
	-1px 1px 0 #FFFFFF,
	1px 1px 0 #FFFFFF;
	margin: 50px 0 0 0;
}

#site-title:first-line {
	font-size: 38px;
	line-height: 50px;
	font-style: normal;
}

/*------------------------------------------------
4.	- Main content
------------------------------------------------- */
#main section {
	width: 100%;
	height: auto;
	min-width: 1240px;
	max-width: 1920px;
	margin: 20px 0 0 0;
}

#main section .wrapper {
	width: 1200px;
	height: auto;
	margin: auto;
}

h1.section-title {
	color: #FF6A00;
	border-bottom: solid 2px #FF6A00;
}

.section-link {
	display: block;
	width: 100%;
	border-top: solid 2px #FF6A00;
	margin-top: 20px;
	text-align: right;
}

.section-link a {
	line-height: 30px;
	font-style: italic;
	color: #FF6A00;
}

.section-link a:hover {
	color: #65B016;
}

/*------------------------------------------------
4.1	- Last news block
------------------------------------------------- */
#last-news .news-list {
	display: flex;
	flex-flow: row wrap;
	margin-top: 20px;
}

#last-news .article-body {
	display: flex;
	flex-flow: row nowrap;
	align-items: flex-start;
	width: 360px;
	padding: 20px;
}

#last-news .article-thumbnail {
	flex: 0 0 150px;
	width: 150px;
	height: 150px;
	margin: 0 10px 0 0;
}

#last-news .article-body h2 {
	font-size: 16px;
	font-weight: normal;
	flex-grow: 0;
	transition: color 0.6s;
}

#last-news .article-body:hover h2 {
	color: #65B016;
	transition: color 0.3s;
}

#last-news .article-body {
	text-decoration: none;
	transition: background 0.6s;
}

#last-news .article-body:hover {
	text-decoration: none;
	background: rgba(156, 183, 187, 0.1);
	transition: background 0.3s;
}

/*------------------------------------------------
4.2	- Actual block
------------------------------------------------- */
#actual-news .wrapper {
	background: #FF6A00;
}

.actual-header {
	color: #FFF;
	text-decoration: none;
}

.actual-header h1 {
	color: #FFF;
}

.actual-header:hover {
	color: #FFF;
	text-decoration: none;
}

.actual-header h1 {
	margin: 0;
	padding: 10px 0;
	border-bottom: solid 2px #FFF;
	text-align: center;
}

.actual-wrapper {
	display: flex;
	flex-flow: row nowrap;
	padding: 20px;
}

.actual-thumb img {
	width: 150px;
	height: 150px;
	margin: 0 20px 0 0;
	flex: 0 0 150px;
}

.actual-content :first-child {
	margin-top: 0;
}

/*------------------------------------------------
4.3	- News widgets
------------------------------------------------- */
#widget-news .wrapper {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
}

#widget-news .widget-body {
	width: 360px;
	height: auto;
	margin: 20px;
}

#widget-news .widget-title {
	background: #FF6A00;
	font-size: 1em;
	line-height: 30px;
	text-align: center;
	color: #FFF;
	padding: 0 10px;
}

#widget-news .textwidget {
	margin: 0;
	padding: 10px;
	background: rgba(156, 183, 187, 0.1);
}

#widget-news .textwidget :first-child {
	margin: 0;
}

#widget-news .widget-content img {
	width: 360px;
	height: auto;
}

/*------------------------------------------------
4.4	- Useful info widgets
------------------------------------------------- */
#widget-info {
	background: #65B016;
}

#widget-info h1 {
	color: #FFF;
	border-bottom: solid 2px #FFF;
	padding: 10px 0;
}

#widget-info .widget-list {
	display: flex;
	flex-flow: row wrap;
	justify-content: space-around;
	margin: 20px 0;
}

#widget-info .widget-body {
	display: flex;
	flex-flow: column-reverse;
	flex: 0 0 200px;
	width: 200px;
	height: auto;
}

#widget-info .widget-title {
	color: #FFF;
	text-align: center;
	font-size: 18px;
	line-height: 30px;
}

#widget-info a {
	display: block;
}

#widget-info a > img {
	width: 200px;
	height: 200px;
	border-radius: 100px;
	transition: border-radius 0.2s;
}

#widget-info a:hover > img {
	border-radius: 5px;
	transition: border-radius 0.1s;
}

/*------------------------------------------------
4.5	- Last gallery block
------------------------------------------------- */
#last-gallery .gallery-list {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	margin-top: 20px;
}

#last-gallery .article-body {
	display: flex;
	flex-flow: column nowrap;
	align-items: center;
	width: 360px;
	padding: 20px;
}

#last-gallery .article-thumbnail {
	flex: 0 0 150px;
	width: 150px;
	height: 150px;
	margin: 0 10px 0 0;
}

#last-gallery .article-body h2 {
	font-size: 1em;
	font-weight: normal;
	flex-grow: 0;
	transition: color 0.6s;
}

#last-gallery .article-body:hover h2 {
	color: #65B016;
	transition: color 0.3s;
}

#last-gallery .article-body {
	text-decoration: none;
	transition: background 0.6s;
}

#last-gallery .article-body:hover {
	text-decoration: none;
	background: rgba(156, 183, 187, 0.1);
	transition: background 0.3s;
}

/*------------------------------------------------
4.6	- Video widgets
------------------------------------------------- */
#widget-video .wrapper {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
}

#widget-video .widget-body {
	display: flex;
	flex-flow: column-reverse nowrap;
	justify-content: flex-end;
	width: 360px;
	height: auto;
	margin: 20px;
}

#widget-video .widget-title {
	background: #FF6A00;
	font-size: 1em;
	line-height: 30px;
	text-align: center;
	color: #FFF;
	padding: 0 10px;
}

#widget-video .textwidget {
	margin: 0;
	padding: 10px;
	background: rgba(156, 183, 187, 0.1);
}

#widget-video .textwidget :first-child {
	margin: 0;
}

#widget-video .widget-content img {
	width: 360px;
	height: auto;
}

/*------------------------------------------------
4.7	- Charity block
------------------------------------------------- */
#last-charity {
	background: #65B016;
}

#last-charity h1 {
	color: #FFF;
	border-bottom: solid 2px #FFF;
	padding: 10px 0;
}

#last-charity .charity-list {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	margin: 20px 0;
}

#last-charity .section-link {
	border-top: solid 2px #FFF;
	margin: 20px 0;
}

#last-charity .section-link > a {
	color: #F0F0F0;
}

#last-charity .article-body {
	display: flex;
	flex-flow: row nowrap;
	width: 360px;
	margin: 20px;
	color: #FFF;
	text-decoration: none;
}

#last-charity h2 {
	color: #FFF;
}

#last-charity .article-thumbnail {
	width: 100px;
	height: 100px;
	flex: 0 0 100px;
	border-radius: 50px;
	margin-right: 20px;
	transition: border-radius 0.2s;
}

#last-charity .article-body:hover {
	text-decoration: underline;
}

#last-charity .article-body:hover .article-thumbnail {
	border-radius: 5px;
	transition: border-radius 0.1s;
}

#last-charity h2 {
	font-size: 16px;
	line-height: 24px;
	font-weight: normal;
}

/*------------------------------------------------
4.8	- About widget
------------------------------------------------- */
#widget-about h1 {
	color: #FF6A00;
	border-bottom: solid 2px #FF6A00;
}

#widget-about .section-content {
	width: 1200px;
}

#widget-about img {
	margin: 0 10px 10px 0;
	padding: 0;
}

/*------------------------------------------------
5.	- Footer
------------------------------------------------- */
#footer .footer-wrapper {
	display: flex;
	flex-flow: row nowrap;
	justify-content: space-between;
	color: #FFF;
	font-size: 14px;
	line-height: 21px;
}

#footer p,
#footer ul {
	margin: 0 0 5px 0;
}

#widget-footer {
	width: 759px;
	border-right: solid 1px #FFF;
	padding: 20px;
}

#widget-footer .widget-title {
	display: none;

}

#footer-author {
	width: 400px;
	padding: 20px;
}

#go-up {
	position: fixed;
	z-index: 999;
	top: 90%;
	left: 90%;
	width: 48px;
	height: 48px;
}

/*------------------------------------------------
6.	- Category page
------------------------------------------------- */
#category h1 {
	color: #FF6A00;
	border-bottom: solid 2px #FF6A00;
}

.category-body {
	display: flex;
	flex-flow: row nowrap;
	padding: 20px;
	transition: background 0.6s;
}

.category-body:hover {
	background: rgba(156, 183, 187, 0.1);
	transition: background 0.3s;
}

.category-thumb {
	flex: 0 0 150px;
	margin-right: 20px;
}

.category-thumb img {
	width: 150px;
	height: 150px;
	margin: 0;
	padding: 0;
}

.category-inner {
	width: 100%;
}

.category-header {
	display: flex;
	flex-flow: row nowrap;
	justify-content: space-between;
	border-bottom: solid #525D09 1px;
}

.category-header a {
	text-decoration: none;
}

.category-date {
	line-height: 30px;
	font-size: 14px;
	color: #FF6A00;
	margin-left: 20px;
}

.category-content {
	margin: 20px 0;
}

.category-list {
	display: flex;
	flex-flow: column wrap;
	margin-top: 20px;
}

/*------------------------------------------------
7.	- Gallery page
------------------------------------------------- */
#gallery h1 {
	color: #FF6A00;
	border-bottom: solid 2px #FF6A00;
}

.gallery-list {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	margin-top: 20px;
}

.gallery-body {
	display: flex;
	flex-flow: column nowrap;
	flex: 0 0 360px;
	padding: 20px;
	transition: background 0.6s;
}

.gallery-body:hover {
	background: rgba(156, 183, 187, 0.1);
	transition: background 0.3s;
}

.gallery-body a {
	text-decoration: none;
}

.gallery-thumb {
	width: 200px;
	height: 200px;
	margin: auto;
}

.gallery-thumb img {
	width: 200px;
	height: 200px;
}

.gallery-date {
	display: block;
	width: 190px;
	background: #65B016;
	color: #FFF;
	font-size: 14px;
	line-height: 21px;
	text-align: right;
	padding: 0 5px;
	margin: auto;
}

.gallery-title {
	font-size: 16px;
	line-height: 24px;
	font-weight: bold;
	text-align: center;
	transition: color 0.6s;
}

.gallery-body:hover .gallery-title {
	color: #65B016;
	transition: color 0.3s;
}

/*------------------------------------------------
8.	- Pagination
------------------------------------------------- */
.pagination {
	border-top: solid 2px #FF6A00;
	margin-top: 20px;
}

.nav-links {
	display: flex;
	flex-flow: row nowrap;
	justify-content: center;
	margin-top: 20px;
}

.page-numbers {
	background: #FF6A00;
	display: inline-block;
	height: 40px;
	min-width: 20px;
	line-height: 40px;
	padding: 0 10px;
	margin: 0 2px;
	text-align: center;
	color: #FFF;
	text-decoration: none;
	border-radius: 5px;
	transition: background 0.6s;
}

.page-numbers:hover {
	background: #FFB62A;
	transition: background 0.3s;
	color: #FFF;
	text-decoration: none;
}

.nav-links .current {
	background: #FFB62A !important;
}

/*------------------------------------------------
9.	- Charity
------------------------------------------------- */
#charity h1 {
	color: #FF6A00;
	border-bottom: solid 2px #FF6A00;
}

.charity-list {
	display: flex;
	flex-flow: row wrap;
	margin-top: 20px;
}

.charity-body {
	display: flex;
	flex-flow: row nowrap;
	flex: 0 0 560px;
	padding: 20px;
	transition: background 0.6s;
}

.charity-body:hover {
	background: rgba(156, 183, 187, 0.1);
	transition: background 0.3s;
}

.charity-thumb {
	flex: 0 0 100px;
	margin: 0 20px 0 0;
}

.charity-thumb img {
	height: 100px;
	width: 100px;
	border-radius: 50px;
	transition: border-radius 0.2s;
	margin: 0;
}

.charity-body:hover img {
	border-radius: 5px;
	transition: border-radius 0.1s;
}

.charity-inner {
	display: flex;
	flex-flow: column wrap;
}

.charity-header h2 {
	color: #525D09;
}

.charity-content :first-child {
	margin-top: 0;
}

/*------------------------------------------------
9.1	- Charity widget
------------------------------------------------- */
#widget-charity {
	display: flex;
	flex-flow: column wrap;
	margin-top: 20px;
}

#widget-charity .widget-body {
	padding: 0 20px;
}

#widget-charity .widget-title {
	display: none;
}

#widget-charity .textwidget :first-child {
	margin-top: 0;
}

/*------------------------------------------------
10.	- Post or single page
------------------------------------------------- */
.post-body {
	display: flex;
	flex-flow: column wrap;
	width: 1200px;
}

.post-header {
	border-bottom: solid 2px #FF6A00;
	display: flex;
	flex-flow: row nowrap;
}

.post-thumb {
	flex: 0 0 50px;
}

.post-thumb img {
	width: 50px;
	height: 50px;
	margin: 0 10px 0 0;
}

.post-inner {
	display: flex;
	flex-flow: column wrap;
}

.post-inner h1 > a {
	color: #FF6A00;
	text-decoration: none;
}

.post-date {
	color: #525D09;
	font-size: 14px;
	line-height: 20px;
	font-style: italic;
}

.post-content {
	margin-top: 20px;
}

.post-content p:first-of-type,
.post-content ul:first-of-type {
	margin-top: 0;
}

.post-no-content {
	text-align: center;
	font-weight: bold;
	margin: 50px 0;
}

/*------------------------------------------------
0.	- WordPress Core
------------------------------------------------- */
figure {
	margin: 0;
}

iframe {
	display: block;
	margin: 0 auto;
	border: none;
}

.wp-block-table {
	border-spacing: 0;
	border-collapse: collapse;
}
.wp-block-table td {
	border: solid 1px #000;
	padding: 10px;
}

.wp-block-quote {
	background: rgba(156, 183, 187, 0.1);
	border-left: solid 2px #FF6A00;
	padding-left: 20px;
}

.wp-block-code {
	border-left: solid 2px #FF6A00;
	padding-left: 20px;
}

.wp-block-pullquote {
	border-top: solid 2px #FF6A00;
	border-bottom: solid 2px #FF6A00;
}

.wp-block-verse {
	border-right: solid 2px #FF6A00;
	padding-right: 20px;
	font-style: italic;
}

.wp-block-separator {
	border: solid 1px #FF6A00;
	margin-left: 10%;
	margin-right: 10%;
}

.alignleft {
	float: left;
	margin-right: 20px;
}

.alignright {
	float: right;
	margin-left: 20px;
}

.wp-block-image {
	margin: 0 !important;
}

.wp-caption {
	background: #FFFFFF;
	border: 1px solid #F0F0F0;
	max-width: 96%; /* Image does not overflow the content area */
	padding: 5px 3px 10px;
	text-align: center;
}

.wp-caption.alignnone {
	margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
	margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
	margin: 5px 0 20px 20px;
}

.wp-caption img {
	border: 0 none;
	height: auto;
	margin: 0;
	max-width: 98.5%;
	padding: 0;
	width: auto;
}

.wp-caption p.wp-caption-text {
	font-size: 11px;
	line-height: 17px;
	margin: 0;
	padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	white-space: nowrap;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.screen-reader-text:focus {
	background-color: #F1F1F1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759B;
	display: block;
	font-size: 14px;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar. */
}