html {
  font-size: 16px;
}
body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}
p {
  margin: 0;
  padding: 0;
}
a {
  color: #c30001;
}
/* Pagination */
.theme-pagination {
  font-family: Arial, Helvetica, sans-serif !important;
  text-align: center;
  margin: 1.5em 0;
}
.theme-pagination ul {
  display: inline-block;
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.theme-pagination li {
  display: inline-block;
  vertical-align: top;
}
.theme-pagination li > * {
  display: block;
  padding: 0.5em 0.75em;
  text-decoration: none !important;
}
.theme-pagination li > a:hover {
  text-decoration: underline !important;
}
.theme-pagination .prev,
.theme-pagination .next {
  font-weight: bold;
}
.theme-pagination li.dots > * {
  font-weight: bold;
  cursor: default;
}
.theme-pagination li.disabled > * {
  cursor: not-allowed;
}
.theme-pagination .page.current > * {
  font-weight: bold;
}
.theme-pagination .page.current > *,
.theme-pagination .page:hover > * {
  text-decoration: underline;
}
@media only screen and (max-width: 1000px) {
  .theme-pagination ul {
    display: flex;
  }
  .theme-pagination li {
    flex: 1;
  }
  .theme-pagination li > * {
    padding-left: 0;
    padding-right: 0;
  }
}
/* Gallery */
.theme-gallery {
  margin: 1.5em 0;
  clear: both;
}
@media screen and (min-width: 1000px) {
  .theme-gallery-previews {
    display: flex;
    flex-wrap: wrap;
    margin: -0.25rem;
  }
  .theme-gallery-preview {
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin: 0.25rem;
    width: calc(100% / 3 - 0.5rem);
    padding-bottom: calc(100% / 3 - 0.5rem);
  }
  .theme-gallery-preview > img {
    position: absolute;
    display: block;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .theme-gallery-preview > img.horizontal {
    height: 100%;
  }
  .theme-gallery-preview > img.vertical {
    width: 100%;
  }
}
@media screen and (max-width: 1000px) {
  .theme-gallery-preview {
    cursor: pointer;
    margin: 0.5rem 0;
  }
  .theme-gallery-preview > img {
    width: 100%;
  }
}
/* Forms */
#contentPanel label {
  display: block;
  font-weight: bold;
  text-align: left;
}
#contentPanel input[type="text"],
#contentPanel input[type="email"],
#contentPanel input[type="tel"],
#contentPanel input[type="number"],
#contentPanel input[type="url"],
#contentPanel select,
#contentPanel textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 0.5em;
  margin: 0.5em 0 1em;
}
#contentPanel input[type="submit"] {
  cursor: pointer;
  padding: 0.5em 1em;
  font-weight: bold;
}
#contentPanel .theme-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1em;
}
#contentPanel .theme-form-footer p {
  margin: 0;
}
#contentPanel .theme-form-feedback {
  font-weight: bold;
}
#contentPanel .theme-form-feedback .glyphicon {
  font-size: 2em;
  float: left;
  margin: 0 0.5em 0.5em 0;
}
/* Flags */
.theme-flags {
  display: flex;
  align-items: center;
  margin-left: 1rem;
}
.theme-flags a.flag {
  display: block;
  margin: 0 4px;
}
.theme-flags a.flag:first-child {
  margin-left: 0;
}
.theme-flags a.flag:last-child {
  margin-right: 0;
}
.theme-flags img {
  display: block;
}
.theme-flags select {
  font-size: 20px;
  margin: 0;
  padding: 0;
  border: 1px solid #333;
}
/* FB */
.theme-facebookIcon {
  display: block;
  width: 44px;
  height: 44px;
  margin-left: 1rem;
  background: url('facebookIcon.png') center center;
}
/* Layout */
@media screen and (min-width: 1000px) {
  #mobileHeaderPanel {
    display: none;
  }
  #stickyTop {
    position: sticky;
    top: 0;
    z-index: 1;
  }
  #headerPanel {
    min-width: 1000px;
  }
  .theme-openNavBtn {
    display: none;
  }
  .theme-header {
    display: flex;
    width: 1000px;
    margin: 0 auto;
    align-items: center;
  }
  #logo {
    position: relative;
    min-width: 320px;
    width: 320px;
    min-height: 85px;
    display: flex;
    align-items: center;
    background-position: left center;
    background-repeat: no-repeat;
  }
  #logo .img {
    max-width: 100%;
    display: block;
  }
  #logo .content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
  }
  #logo .admin-richEditor {
    width: 100%;
  }
  #admin-siteContent-logo-editor {
    max-height: 100%;
    width: 100%;
    overflow: hidden;
  }
  #admin-siteContent-logo-editor * {
    vertical-align: middle;
  }
  #phone {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
  }
  #phone .admin-richEditor {
    width: 100%;
  }
  #admin-siteContent-phone-editor {
    max-height: 100%;
    width: 100%;
    overflow: hidden;
  }
  #admin-siteContent-phone-editor * {
    vertical-align: middle;
  }
  #navPanel {
    height: 60px;
    min-width: 1000px;
  }
  #nav {
    width: 1000px;
    height: 100%;
    margin: 0 auto;
  }
  #nav .togglePopupBtn {
    display: none;
  }
  #nav > ul {
    margin: 0;
    padding: 0;
    height: 100%;
    list-style-type: none;
    display: flex;
    justify-content: space-evenly;
  }
  #nav > ul > li {
    height: 100%;
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0;
  }
  #nav > ul > li > a {
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0 1.25em;
    font-size: 18px;
  }
  #nav > ul > li:first-child::before {
    content: "";
    left: -1px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    background-color: rgba(255,255,255,0.3);
    height: 27px;
    display: block;
    z-index: 1;
  }
  #nav > ul > li:last-child::after {
    content: "";
    right: -1px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    background-color: rgba(0,0,0,0.8);
    height: 27px;
    display: block;
    z-index: 1;
  }
  #nav > ul > li > a::before {
    content: "";
    left: 0px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    background-color: rgba(0,0,0,0.8);
    height: 27px;
    display: block;
  }
  #nav > ul > li > a::after {
    content: "";
    right: 0px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    background-color: rgba(255,255,255,0.3);
    height: 27px;
    display: block;
  }
  #nav > ul > li:hover .popup {
    display: block;
  }
  #nav ul.popup {
    display: none;
    margin: 0;
    padding: 0.5em 0 0;
    list-style-type: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 100%;
    z-index: 2;
  }
  #nav .popup a {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 0.75em;
    font-size: 1.25em;
    white-space: nowrap;
  }
  #body {
    min-width: 1000px;
    padding: 2em 0;
    z-index: 0;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center top;
  }
  #jumbotron {
    position: relative;
    width: 1000px;
    margin: 0 auto 2rem;
    min-height: 2rem;
    background-repeat: no-repeat;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #jumbotron .img {
    display: block;
    max-width: 100%;
  }
  #jumbotron .content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
  }
  #jumbotron.hasImg .content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
  }
  #jumbotron .admin-richEditor {
    width: 100%;
  }
  #admin-siteContent-jumbotron-editor {
    max-height: 100%;
    width: 100%;
    overflow: hidden;
    vertical-align: middle;
  }
  #contentPanel {
    margin: 0 auto;
    width: 1000px;
    display: flex;
  }
  #contentPanel > * {
    padding: 2em 2.5em 3em 2.5em;
    box-sizing: border-box;
  }
  #contentPanel h1 {
    font-size: 2.5em;
    margin: 0.75em 0;
    font-weight: bold;
  }
  #contentPanel h2 {
    font-size: 2em;
    margin: 0.75em 0;
    font-weight: bold;
  }
  #contentPanel h3 {
    font-size: 1.5em;
    margin: 0.75em 0;
    font-weight: bold;
  }
  #contentPanel p {
    line-height: 2;
    margin-bottom: 1.5em;
  }
  #contentPanel li {
    line-height: 2;
  }
  #contentPanel a {
    text-decoration: underline;
  }
  #sidebar {
    width: 30%;
  }
  #contentPanel .admin-richEditor .editor {
    min-height: 100px;
  }
  #main {
    flex: 1;
  }
  #footerPanel {
    min-width: 1000px;
  }
  .theme-footer {
    margin: 0 auto;
    width: 1000px;
    display: flex;
  }
  .theme-footer > * {
    width: 50%;
  }
  #footerPanel .copyright  {
    display: flex;
    align-items: center;
    height: 75px;
    text-align: left;
  }
  #footerPanel .copyright .admin-richEditor {
    width: 100%;
  }
  #admin-siteContent-copyright-editor {
    max-height: 100%;
    overflow: hidden;
  }
  #admin-siteContent-copyright-editor * {
    vertical-align: middle;
  }
  #footerPanel .author {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  /* Articles */
  .theme-articlePreview {
    display: block;
    clear: both;
    margin-bottom: 2em;
  }
  .theme-articlePreview-previewImage {
    float: right;
    max-width: 25%;
    margin: 0.5em 0 0 1.5em;
  }
  .theme-articlePreview-perex {
    margin: 0 !important;
  }
  .theme-articlePreview-previewImage img {
    width: 100%;
  }
  .theme-articlePreview-showMoreBtn {
    display: block;
    clear: both;
    text-align: right;
    margin-top: 0.5em;
  }
}
@media only screen and (max-width: 1000px) {
  #mobileHeaderPanel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem;
  }
  #stickyTop {
    display: flex;
    flex-direction: column;
  }
  .theme-header {
    position: relative;
  }
  .theme-openNavBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    cursor: pointer;
    border-radius: 50%;
    background: #fff;
    width: 44px;
    height: 44px;
    margin-right: auto;
  }
  /* TODO delete
  .theme-openNavBtn {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
    right: 0.5rem;
    font-size: 2.25rem;
    cursor: pointer;
    border-radius: 50%;
    background: #fff;
    width: 3.5rem;
    height: 3.5rem;
  }*/
  #logo {
    position: relative;
    min-height: 85px;
  }
  #logo .img {
    max-width: 100%;
    display: block;
  }
  #logo .content {
    padding-left: 1rem;
    /* navBtn width */
    padding-right: 4rem;
    position: absolute;
    box-sizing: border-box;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
  }
  #phone {
    display: none;
  }
  #flags {
    display: none;
  }
  #facebookIcon {
    display: none;
  }
  #navPanel {
    order: -1;
  }
  #navPanel[style] {
    height: auto !important;
    top: auto !important;
  }
  #nav {
    display: none;
  }
  #nav.opened {
    display: block;
  }
  #nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
  }
  #nav ul a {
    position: relative;
    padding: 1rem 1.5rem;
    display: block;
    text-decoration: none;
    font-weight: bold;
  }
  #nav a .togglePopupBtn {
    position: absolute;
    z-index: 1;
    height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    padding: 0 1.5rem;
  }
  #nav ul.popup {
    display: none;
  }
  #nav ul.popup.opened {
    display: block;
  }
  #nav ul.popup a {
    font-weight: normal;
    padding-left: 3rem;
  }
  #body[style] {
    margin-top: 0 !important;
  }
  #jumbotron {
    display: none;
  }
  #contentPanel {
    display: flex;
    flex-direction: column-reverse;
  }
  #contentPanel h1 {
    font-size: 2.5em;
    margin: 0.5em 0;
    font-weight: bold;
  }
  #contentPanel h2 {
    font-size: 2em;
    margin: 0.5em 0;
    font-weight: bold;
  }
  #contentPanel h3 {
    font-size: 1.5em;
    margin: 0.5em 0;
    font-weight: bold;
  }
  #contentPanel p {
    line-height: 1.75em;
    margin-bottom: 1.5em;
    text-align: justify;
  }
  #contentPanel li {
    line-height: 2;
  }
  #contentPanel a {
    text-decoration: underline;
  }
  #contentPanel img:not([src*="/ckeditor/plugins/smiley/images/"]):not([src*="/ckeditor/plugins/flag/images/"]),
  #contentPanel img[style]:not([src*="/ckeditor/plugins/smiley/images/"]):not([src*="/ckeditor/plugins/flag/images/"]) {
    width: 100% !important;
    height: auto !important;
  }
  #contentPanel iframe,
  #contentPanel iframe[style] {
    width: 100% !important;
  }
  #contentPanel table,
  #contentPanel table[style] {
    width: 100% !important;
  }
  #main, #sidebar {
    padding: 1rem;
  }
  #footerPanel {
    padding: 1em;
    text-align: center;
  }
  #footerPanel .copyright {
    margin-bottom: 1em;
  }
}
/* Custom */
/* Header */
.custom-header-background-color {
  background-color: #fff !important;
}
/* Logo */
/* Nav */
.custom-nav-background-color {
  background-color: #2a436b !important;
}
.custom-nav-navBtn-background-color {
  background-color: #2a436b !important;
}
.custom-nav-navBtn-background-color.active, .custom-nav-navBtn-background-color:hover {
  background-color: #2a436b !important;
}
.custom-nav-navBtn-border-color {
  border-color: #2a436b !important;
}
.custom-nav-navBtn-border-color.active, .custom-nav-navBtn-border-color:hover {
  border-color: #2a436b !important;
}
.custom-nav-navBtn-color {
  color: white !important;
}
.custom-nav-navBtn-color.active, .custom-nav-navBtn-color:hover {
  color: #ed0001 !important;
}
/* Jumbotron */
.custom-jumbotron-background-color {
  background-color: transparent !important;
}
.custom-jumbotron-background-image {
  background-image: url('jumbotron.jpg') !important;
}
/* Body */
.custom-body-background-color {
  background-color: #fff !important;
}
.custom-body-background-image {
  background-image: none;
}
/* Sidebar */
.custom-sidebar-background-color {
  background-color: #3b5276
}
.custom-sidebar-text-color {
  color: #fff;
}
.custom-sidebar-link-color a, .custom-sidebar-link-color a:visited, .custom-sidebar-link-color a:hover, .custom-sidebar-link-color a:active {
  color: #fff;
}
.custom-sidebar-h1-color h1 {
  color: #fff;
}
.custom-sidebar-h2-color h2 {
  color: #fff;
}
.custom-sidebar-h3-color h3 {
  color: #fff;
}
/* Main */
.custom-main-background-color {
  background-color: #f3f3f3;
}
.custom-main-text-color {
  color: #373737;
}
.custom-main-link-color a, .custom-main-link-color a:visited, .custom-main-link-color a:hover, .custom-main-link-color a:active {
  color: #c30001;
}
.custom-main-h1-color h1 {
  color: #2a436a;
}
.custom-main-h2-color h2 {
  color: #2a436a;
}
.custom-main-h3-color h3 {
  color: #2a436a;
}
/* Footer */
.custom-footer-background-color {
  background-color: #e6e6e6 !important;
}