/*   
Theme Name: KRG Poland
Theme URI: http://safard.tut.su
Description: Custom WordPress theme for KRG
Author: Artur Efimov
Author URI: http://safard.tut.su
Version: 0.1
*/

@import url(http://fonts.googleapis.com/earlyaccess/droidarabicnaskh.css);

@font-face {
  font-family: openSansReg;
  src: url('fonts/OpenSans/OpenSans-Regular.ttf');
}

@font-face {
  font-family: openSansBold;
  src: url('fonts/OpenSans/OpenSans-Bold.ttf');
}

@font-face {
  font-family: robotoReg;
  src: url('fonts/Roboto/Roboto-Regular.ttf');
}

@font-face {
  font-family: robotoBold;
  src: url('fonts/Roboto/Roboto-Bold.ttf');
}

@font-face {
  font-family: RobotoSlabReg;
  src: url('fonts/RobotoSlab/RobotoSlab-Regular.ttf');
}

@font-face {
  font-family: RobotoSlabBold;
  src: url('fonts/RobotoSlab/RobotoSlab-Bold.ttf');
}

/* Reset */
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,
h6,pre,form,fieldset,input,p,blockquote,table,
th,td { margin: 0; padding: 0; }
ul,ol { list-style: none; }
fieldset,img,abbr { border: 0; }
caption,th { text-align: left; }
q:before,q:after { content: ''; }
a { text-decoration: none; }

/* General */

html, body, #wrap {height: 100%; position: relative;}
body > #wrap {height: auto; min-height: 100%; overflow: hidden;}
#footer {
  position: relative;
  clear: both;
  overflow: hidden;
}

.rafixed {
  max-width: 980px;
  margin: 0 auto;
}

/* Footer height */
/*#footer { margin-top:  -40px; }*/
#footer-inner { height: 40px; }

.preload-img {
  display: none;
}

.clear {
  clear: both;
  float: none !important;
  width: 0 !important;
  height: 0 !important;
  background: none !important;
  opacity: 0;
  visibility: hidden;
  margin: 0 !important;
  padding: 0 !important;
}
.clearfix:before, .clearfix:after { content: " "; display: table; }
.clearfix:after { clear: both; }
.clearfix { *zoom: 1;}

.alignleft {
  float: left;
  margin: 0 0.5em 0.5em 0;
}

.alignright {
  float: right;
  margin: 0 0 0.5em 0.5em;
}

.aligncenter {
  margin: auto;
}

img.aligncenter {
  display: block;
}

/* Design */
body {
  font-size: 15px;
  font-family: robotoReg, openSansReg, arial;
  line-height: 1.5;
  color: #000;
  background: #fff;
}

a {
    color: #a21e22;
}

a:hover {
    color: #3b3b3b;
    text-decoration: underline;
}

h1,h2,h3,h4,h5,h6 { font-weight: bold; }

h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }

/* Header */

#header {
  background-color: #f2f2f2;
  background-image: url(images/header_bg.png);
  background-repeat: no-repeat;
  background-position: top right;
}

#header .left-side {
	float: left;
}

#header .right-side {
	float: right;
	margin-top: 20px;
}

#header .left-side .site-logo {
  display: block;
  float: left;
  margin: 5px 0;
}

#header .left-side .site-info {
	float: right;
	margin: 20px 0 0 20px;
}

#header .left-side .site-info .site-title {
	font-size: 25px;
	font-weight: bold;
}

#header .left-side .site-info .site-subtitle {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

#header .left-side .site-info a {
	text-decoration: none;
	color: #000;
}

#header .left-side .site-info .date {
  float: left;
  margin-top: 28px;
  margin-left: 20px;
  text-transform: uppercase;
  font-size: 12px;
  color: #000;
}

#header .left-side .site-info .social-media {
  float: left;
  margin-top: 22px;
}

#header .left-side .site-info .social-media a {
  display: block;
  float: left;
  margin: 2px 5px 0 0;
  width: 26px;
  height: 27px;
  background-repeat: no-repeat;
  transition: opacity 0.2s;
}

#header .left-side .site-info .social-media a:hover {
  opacity: 0.8;
}

#header .left-side .site-info .social-media-fb {
  background: url('images/fb.png');
}

#header .left-side .site-info .social-media-tw {
  background: url('images/tw.png');
}

#header .lang-bar li {
	height: 30px;
	float: left;
	margin: 0 5px 0 0;
	line-height: 30px;
}

#header .lang-bar li a {
	display: block;
	cursor: pointer;
	color: #000;
	text-decoration: none;
}

#header .lang-bar li a:hover {
	text-decoration: underline;
	color: #a21e22;
}

#nav {
  background: #C00;
  border-top: 4px solid #490303;
}

#nav .top-menu li {
  float: left;
  cursor: default;
  position: relative;
}

#nav .top-menu li a {
  display: block;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  font-family: robotoBold, openSansBold, arial;
  padding: 5px 5px;
  margin: 4px 6px 6px;
  line-height: 20px;
  height: 20px;
  transition: background 0.2s;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
}

#nav .top-menu li a:hover {
  background: #790000;
  color: #f5f5f5;
}

#nav .top-menu .menu-navigation-menu-container {
	width: 100%;
	margin: 0 auto;
}

#nav .top-menu .sub-menu {
  display: none;
  position: absolute;
  top: 40px;
  left: 0;
  min-width: 315px;
  z-index: 1000;
}

#nav .top-menu li:hover .sub-menu {
  display: block;
}

#nav .top-menu .sub-menu li {
  background: #C00;
  float: none;
  margin: 0;
}

#nav .top-menu .sub-menu li a:hover {
  background: #790000;
}

#nav .top-menu .sub-menu li a {
  margin: 0;
  padding-left: 7px;
  padding-right: 5px;
  border-radius: 0;
}

#main {
  padding: 20px 0px 40px;
  background: #FFF;
}
/* logo */ 
.logo_description{
    height: 250px;
    width: 250px;
    float: left;
    margin-right: 5px;
    margin-left: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.logo_image{
    background: url('images/15.png');
}

.logo_button {
    background-color: #ff0000;
    border: none;
    border-radius: 5px;
    color: white;
    padding: 20px 34px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 20px;
    margin: 4px 2px;
    cursor: pointer;
    opacity: 0.6;
}

.logo_button:hover {
    color: white;
    opacity: 1;
    box-shadow:0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.logo_15 {
    height: 300px;
    width: 600px;
    float: left;
    margin-right: 5px;
    margin-left: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
    opacity: 1;
}
/* Slider */

.slider {
	width: 980px;
	height: 300px;
	background: #ebebeb;
}

.slider .slider-navigation {
	float: left;
	border: 1px solid #000;
}

.slider .slider-navigation a {
	display: block;
	cursor: pointer;
	text-decoration: none;
	color: #FFF;
}

.slider .slider-navigation a:hover {
	text-decoration: underline;
}

.slider .slider-navigation .slide {
	width: 254px;
	height: 98px;
	background: #BBB;
	border: 1px solid #000;
	text-align: center;
	line-height: 98px;
}

.slider .slider-navigation .slide:hover {
	background: #000;
	opacity: 0.7;
  filter: alpha(Opacity=70);
	transition: background 0.3s ease;
}

.slider .slideshow {
	width: 720px;
	height: 300px;
	float: right;
	border: 1px solid #000;
	line-height: 300px;
	text-align: center;
}

/* Content */

.homepage-news {
	clear: both;
	padding: 0;
	margin: 20px auto 0;
}

.homepage-news:before,
.homepage-news:after { content:""; display:table; }
.homepage-news:after { clear:both;}
.homepage-news { zoom:1; }

.homepage-news .news-block {
	float: left;
	width: 23.5%;
	margin: 1% 0 1% 2%;
}

.homepage-news .news-block:first-child { 
	margin-left: 0;
}

.homepage-news .news-block .block-title {
  font-size: 18px;
  font-family: robotoBold, openSansBold, arial;
  text-align: center;
  padding: 0 5px 10px;
  text-transform: uppercase;
  color: #a21e22;
}

.homepage-news .news-block li {
  margin: 0 0 20px;
  border: 1px solid #ddd;
  -webkit-box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.2);
     -moz-box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.2);
          box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.2);

}

.homepage-news .news-block li img {
	width: 100%;
	height: auto;
}

.homepage-news .news-block .news-title {
	font-weight: bold;
	padding: 0 10px 5px;
}

.homepage-news .news-block li .entry-date {
    color: #a21e22;
    padding: 0 10px;
}

.homepage-news .news-block li p {
	padding: 5px 10px 10px;
  text-align: justify;
}

.homepage-news .news-block li .more-link {
  display: block;
  text-align: right;
}

.home #content {
  float: none;
}

.archive #content {
  width: 74.5%;
}

.archive .no-sidebar#content {
	width: auto;
	float: none;
}

#page-title {
	font-size: 22px;
	font-family: robotoBold, openSansBold, arial;
	line-height: 32px;
	padding: 0 0 15px 10px;
  color: #5c5c5c;
  text-transform: uppercase;
}

.post {
  margin: 20px 0 15px 0;
  min-height: 168px;
  color: #5c5c5c;
}

.post-image img {
  float: left;
  margin: 5px 15px 10px 10px;
  max-width: 230px;
  height: auto;
  border: 4px solid #FFF;
  box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.5);	
}

.post .entry {
	float: none;
	margin: 10px;
}

.post .entry .post-title {
    font-size: 18px;
}

.post .entry p {
	margin-bottom: 10px;
}

.post.no-thumb .entry {
	float: none;
	margin: 10px;
}

.post .entry-date {
	padding: 5px 0;
	display: block;
}

.single #content {
	width: 100%;
	float: none;
}

.single .post {
	background: none;
	min-height: 0;
	margin: 0;
}

.single .post-image {
	float: right;
	margin: 0 0 10px 10px;
}

.single .post-image img {
  border: 4px solid #FFF;
  box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.5);
	min-width: 400px;
}

.single.cat-our-articles .post-image,
.single.cat-press-articles .post-image,
.single.cat-press-releases .post-image {
  float: none;
  margin: 0;
}

.single.cat-our-articles .post-image img,
.single.cat-press-articles .post-image img,
.single.cat-press-releases .post-image img {
  border: none;
  box-shadow: none;
  min-width: 100%;
  max-width: 100%;
  margin: 0;
  float: none;
}

.single .post .entry {
	float: none;
	margin: 0;
}

.single .entry-date {
	display: none;
}

.page .post {
  margin: 0 0 30px 0;
}

.page .post .entry .post-title,
.single .post .entry .post-title {
	font-size: 20px;
	padding: 0 0 10px;
}

.back-button input {
  border: none;
  padding: 7px 10px;
  background: #f5f5f5;
  text-transform: uppercase;
  color: #a21e22;
  cursor: pointer;
  transition: all 0.3s;
}

.back-button:hover input {
  background: #a21e22;
  color: #fff;
}


/* Sidebar */

#category-sidebar {
	float: right;
	width: 23.5%;
	margin: 20px 0 0 0;
}

#category-sidebar .widget {
	padding: 0px 8px;
}

#category-sidebar h3 {
	font-weight: normal;
}

#category-sidebar ul.subcategories li {
	margin: 0 0 0 15px;
}

#category-sidebar ul.subcategories li a {
  color: #5c5c5c;
}

#category-sidebar ul.subcategories li a:hover {
  color: #a21e22;
}

ul.sidebar-inner {
  background: #f5f5f5;
  padding: 10px 5px 15px;
}

ul.sidebar-inner > li {
  margin: 0;
}

.widget_raf_cat_widget {
	margin: 0 0 5px 0;
}

#gallery-sidebar {
  background: #f5f5f5;
  width: 24%;
  float: left;
  margin-right: 1%;
}

.page .entry-date,
.page .latest-galleries {
  display: none;
}

.events-nav .event {
  padding: 10px;
  cursor: default;
  transition: background 0.3s;
}

.events-nav .event.cur,
.events-nav .event:hover {
  background: #ddd;
}

.events-nav img {
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
  height: auto;
  border: 4px solid #FFF;
  box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.5);  
}

.post ul.events li.event {
  width: 170px;
}

.gallery-thumb {
  display: block;
  line-height: 0;
  padding: 5px 10px 5px 5px;
}

.gallery-item {
  max-width: 23.5%;
  margin-left: 1.5%;
}

.gallery-item img {
  border: 2px solid #FFF !important;
  box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.5);
  height: auto;
  width: auto;
  max-width: 100%;
}

.gallery-thumb img {
  line-height: 14px;
}

.single-raf_gallery #content {
  width: 75%;
  float: left;
}

.single-raf_gallery #content-inner {
  margin: 25px 0 0 0;
}

.latest-galleries {
  display: block;
  padding: 7px 10px;
  background: #5c5c5c;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  transition: all 0.3s;
}

.latest-galleries:hover {
  background: #a21e22;
  color: #fff;
  text-decoration: none;
}

.event-group-year {
  background: #a21e22;
  color: #fff;
  padding: 5px;
  text-align: center;
}

time {
  color: #a21e22;
}

.ms-slide-info {
  bottom: 0;
}

.ms-info {
  text-align: center;
  font-size: 18px;
  color: #000;
  background: rgba(255,255,255,0.7);
  text-shadow: 0 0 1px rgba(255,255,255,0.7);
  transition: 0.5s ease;
  webkit-transition: 0.5s ease;  
}

.ms-info:hover {
  background: rgba(255,255,255,1);
}


/* Footer */

#footer {
	background: #C00;
  color: #fff;
	text-align: center;
	line-height: 40px;
}


/* Language-specific */
body:lang(ckb),
#page-title:lang(ckb),
#nav .top-menu li a:lang(ckb),
.homepage-news .news-block .block-title:lang(ckb) {
  font-family: "Droid Arabic Naskh", serif;
}

#header:lang(ckb) {
  background-position: top left;
}

#nav .top-menu li a:lang(pl) {
  margin-left: 5px;
  margin-right: 5px;
}

#nav .top-menu li a:lang(ckb) {
  margin-left: 1px;
  margin-right: 1px;
  font-size: 14px;
  line-height: 12px;
}

#nav .top-menu .sub-menu li a:lang(ckb) {
  margin: 0;
}

#nav .top-menu li a:lang(ar) {
  margin-left: 16px;
  margin-right: 16px;
  font-size: 16px;
}

#nav .top-menu .sub-menu li a:lang(ar) {
  margin: 0;
}

#header .left-side:lang(ckb) {
  float: right;
}

#header .right-side:lang(ckb) {
  float: left;
}

#nav .top-menu li:lang(ckb) {
  float: right;
}

#nav .top-menu .sub-menu:lang(ckb) {
  min-width: ;
}

#nav .top-menu .sub-menu li:lang(ckb) {
  float: none;
  text-align: right;
}

#header .left-side .site-logo:lang(ckb) {
  float: right;
}

#header .left-side .site-info:lang(ckb) {
  float: left;
}

#header .left-side .site-info .social-media:lang(ckb) {
  float: right;
  margin-right: 20px;
}

#header .left-side .site-info .date:lang(ckb) {
  float: right;
  margin-right: 20px;
}

#header .left-side .site-info .site-title:lang(ckb) {
  text-align: right;
}

.master-slider:lang(ckb)  {
  margin: 0px 140px 0px 0px !important;
}

.ms-thumb-list:lang(ckb) {
  left: auto !important;
  right: -140px !important;
}

.ms-thumb-frame:lang(ckb) {
  float: right !important;
}

.homepage-news .news-block .news-title:lang(ckb) {
  text-align: right;
}

.single .post-image:lang(ckb) {
  float: left;
}

.page .post .entry .post-title:lang(ckb),
.single .post .entry .post-title:lang(ckb) {
  text-align: right;
}

.single .post-image:lang(ckb) {
  float: left;
}

.post .entry p:lang(ckb) {
  text-align: right;
}

.back-button input:lang(ckb) {
  float: right;
}

.homepage-news .news-block .block-title:lang(ckb) {
  font-size: 20px;
}

.homepage-news .news-block .block-title:lang(pl) {
  font-size: 16px;
  padding: 0px 0px 10px;
}

#gallery-sidebar:lang(ckb) {
  float: right;
  margin-right: 0;
  margin-left: 1%;
}

.gallery-item:lang(ckb) {
  margin-left: 0;
  margin-right: 1.5%;
}

#gallery-1 .gallery-item:lang(ckb) {
  float: right;
}

.events-nav .event:lang(ckb) {
  text-align: right;
}

#page-title:lang(ckb) {
  text-align: right;
}

#category-sidebar:lang(ckb) {
  float: left;
  text-align: right;
}

.archive #content:lang(ckb) {
  float: right;
}

.post-image img:lang(ckb) {
  float: right
}

.post:lang(ckb) {
  text-align: right;
}

.single.cat-our-articles .post-image:lang(ckb) ,
.single.cat-press-articles .post-image:lang(ckb) ,
.single.cat-press-releases .post-image:lang(ckb)  {
  float: none;
  margin: 0;
}

.single.cat-our-articles .post-image img:lang(ckb) ,
.single.cat-press-articles .post-image img:lang(ckb) ,
.single.cat-press-releases .post-image img:lang(ckb) {
  border: none;
  box-shadow: none;
  min-width: 100%;
  max-width: 100%;
  margin: 0;
  float: none;
}

#category-sidebar ul.subcategories li:lang(ckb) {
  margin: 0px 15px 0px 0px;
}

#mobile-menu-btn {
  display: none;
  background: url('images/mobilemenubutton.png') no-repeat 50% 50%;
  width: 38px;
  height: 44px;
  margin: 0 auto;
}

@media screen and (max-width:1024px) {
  .single .post-image img {
    min-width: 260px;
  }
}

#nav .top-menu.mobile li .sub-menu {
  display: none;
}
#nav .top-menu.mobile .sub-menu {
  position: static;
}
#nav .top-menu.mobile .sub-menu li {
  background: red;
}
#nav .top-menu.mobile .sub-menu li a {
  padding: 0;
}

@media screen and (max-width:875px) {
  #nav .top-menu {
    display: none;
  }
  #nav .top-menu li {
    float: none;
    text-align: center;
  }
  #mobile-menu-btn {
    display: block;
  }
  #nav .top-menu li a {
    margin: 4px 0 0 0;
    border-radius: 0;
  }
  #nav .top-menu.mobile .sub-menu li a {
    padding: 4px 0;
  }   
}

@media screen and (max-width:930px) {
  #nav .top-menu:lang(pl) {
    display: none;
  }
  #nav .top-menu li:lang(pl) {
    float: none;
    text-align: center;
  }
  #mobile-menu-btn:lang(pl) {
    display: block;
  }
  #nav .top-menu li a:lang(pl) {
    margin: 4px 0 0 0;
    border-radius: 0;
  }
  #nav .top-menu.mobile .sub-menu li a:lang(pl) {
    padding: 4px 0;
  }
}

@media screen and (max-width:1000px) {
  #nav .top-menu:lang(ckb) {
    display: none;
  }
  #nav .top-menu li:lang(ckb) {
    float: none;
    text-align: center;
  }
  #nav .top-menu li a:lang(ckb) {
    margin: 4px 0 0 0;
    border-radius: 0;
  }
  #mobile-menu-btn:lang(ckb) {
    display: block;
  }
  #nav .top-menu .sub-menu li:lang(ckb) {
    text-align: center;
  }
  #nav .top-menu.mobile .sub-menu li a:lang(ckb) {
    padding: 4px 0;
  }  
}

@media screen and (max-width:980px) {
  .homepage-news .news-block:first-child {
      margin-left: 1%;
  }
  .homepage-news .news-block {
    width: 23.7%;
    margin: 1% 0px 1% 1%; 
  }
}

@media screen and (max-width:800px) {
  .rafixed {
    max-width: 800px;
  }
  .homepage-news .news-block .news-title {
    font-size: 14px;
  }
  .homepage-news .news-block .block-title {
    font-size: 16px;
  }
  .homepage-news .news-block li p,
  .homepage-news .news-block li .entry-date {
    font-size: 14px;
  }  
  #nav .top-menu li a {
    padding: 2px;
    font-size: 11px;
  }
  .events-nav .event h4 {
    font-size: 14px;
  }
  #category-sidebar .widget h3 {
    font-size: 16px;
  }
}

@media screen and (max-width:768px) {
  .rafixed {
    max-width: 768px;
  }
  .homepage-news .news-block .news-title,
  .homepage-news .news-block .block-title {
    font-size: 14px;
  }
  .homepage-news .news-block li p,
  .homepage-news .news-block li .entry-date {
    font-size: 12px;
  }
  #nav .top-menu li a {
    padding: 0;
    font-size: 11px;
}

@media screen and (max-width:600px) {
  #header .left-side .site-logo {
    display: none;
  }
  .post-image img {
    float: none;
  }
  .homepage-news .news-block .news-title {
    font-size: 13px;
  }
}

@media screen and (max-width:380px) {
  .rafixed {
    max-width: 380px;
  }
  .homepage-news .news-block:first-child {
    margin-left: 0;
  }
  .homepage-news .news-block {
    float: none;
    width: 100%;
    margin: 0;
  }
  .homepage-news .news-block .news-title {
    font-size: 12px;
  }
  .master-slider:lang(ckb),
  .master-slider {
    margin: 0 !important;
  }
  .site-info,
  .ms-info,
  .ms-thumb-list {
    display: none;
  }
  .site-logo img {
    width: 64px;
    height: 64px;
  }
  #page-title {
    font-size: 14px;
    padding: 0 0 0 10px;
  }
  .archive #content {
    width: 100%;
  }
  #category-sidebar {
    display: none;
  }
  .post-image img {
    width: 90%;
  }
}

@media screen and (max-width:320px) {
  .rafixed {
    max-width: 320px;
  }
}
