/*
 Theme Name:   Jatiina
 Description:  Jatiina OÜ koduleht
 Author:       Tõnis Vaimann | Digikäpp OÜ
 Template:     onepress
 Version:      1.0.0
 Text Domain:  onepress-child
*/

.fa-stack {
  width: 2.5em;
  height: 2.5em;
  line-height: 2.5em;
}

.fa-stack-2x {
  font-size: 2.5em;
}

.site-brand-inner {
  position: relative;
}

.site-brand-inner::after {
  content: "";
  position: absolute;
  left: 40px;
  width: 100%;
  height: 100%;
  border-right: 5px solid #ff6f0b;
  transform: skewX(-15deg);
  background-color: #417619;
  z-index: -10;
}

#page .site-branding .site-title,
#page .site-branding .site-text-logo {
  color: #ffffff;
}

.site-brand-inner {
  position: relative;
  background-color: #417619;
}

.site-header {
  position: relative;
}

.site-header::before {
  content: " ";
  position: absolute;
  background-color: #417619;
  height: 100%;
  width: calc(50% - 410px);
  display: block;
}

@media (max-width: 990px) {
  .site-header::before {
    width: 25%;
  }
}

/* Front page slider */

.g-zoom-in .g-item:hover img {
  -ms-transform: scale(1.05, 1.05);
  /* IE 9 */
  -webkit-transform: scale(1.05, 1.05);
  /* Safari */
  transform: scale(1.05, 1.05);
}

.campaign-pdf-wrapper {
  width: 100%;
  height: 80vh;
  background: url("https://www.jatiina.eu/wp-content/plugins/use-your-drive/css/images/loader_loading.gif") center center no-repeat;
  background-size: 150px;
  position: relative;
}

.pdf-post-links {
  position: absolute;
  bottom: 0px;
}

@media (max-width: 768px) {
  .pdf-post-links {
    bottom: -47px;
  }

  .pdf-post-links a {
    background: #3e434e !important;
    color: #fff !important;
    border: 1px solid #525252 !important;
  }
}

.gallery-carousel.owl-theme .owl-nav [class*="owl-"] {
  padding: 15px 10px;
}

.gallery-grid .g-item,
.gallery-masonry .g-item .inner {
  padding: 1px;
}

.home .all-gallery {
  padding-bottom: 70px;
}

.campaign-btn {
  background: #417619;
}

/* Campaign */
.campaign-wrapper {
  position: relative;
}

.campaign-over-text {
  position: absolute;
  color: #fff;
  font-weight: bold;
  padding: 10px 20px;
  background: #777777;
  z-index: 200;
}

.campaign-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #989898;
  opacity: 0.6;
  z-index: 100;
}

.campaign-not-active img {
  filter: blur(3px);
}

.full-width-campaign .entry-images,
.full-width-campaign .entry-images .entry-image img {
  width: 100% !important;
  margin-right: 0px !important;
}

.full-width-campaign .entry-content {
  width: 100% !important;
}

@media (max-width: 768px) {

  .gallery-grid .g-item,
  .gallery-masonry .g-item .inner {
    margin-bottom: 10px;
  }

  .gallery-grid .g-item {
    margin-bottom: 10px;
  }

  .gallery-grid .g-item:last-child {
    margin-bottom: 40px;
  }
}



/* Page Main Content Area */

.content-area {
  min-height: 500px;
}

/* Tabs */

.section-team .tab-links {
  text-align: center;
  margin-bottom: 60px;
}

.tabs .tab-link {
  text-transform: uppercase;
  color: #333333;
  text-decoration: none;
  background-color: #ffffff;
  padding: 15px 25px;
  display: inline-block;
  border-top: 1px solid #e9e9e9;
  border-left: 1px solid #e9e9e9;
  border-right: 1px solid #e9e9e9;
}

.tab-title {
  padding: 0 25px;
}

.tab-content {
  padding: 0 25px;
}

.tab-contacts {
  padding: 0 15px;
}

.section-team .tabs .tab-link {
  border-bottom: 1px solid #e9e9e9;
  background-color: #f8f8f8;
}

.tabs .tab-link:not(:first-child) {
  margin-left: 3px;
}

.tabs .tab-link.active {
  color: #ffffff;
  background-color: #ff6f0b;
}

.tabs .tab {
  display: none;
}

.tabs .tab.active {
  display: block;
  border-top: 1px solid rgb(248, 248, 248);
}

.tabs.page-tabs .tab.active {
  border: 1px solid rgb(233, 233, 233);
  padding-top: 25px;
  background-color: #f8f9f9;
  margin-bottom: 40px;
}

.tab-contacts {
  margin-top: 25px;
  margin-bottom: 5px;
}

@media only screen and (max-width: 768px) {
  .tab-links {
    margin-bottom: 25px;
  }

  .tabs .tab-link {
    font-size: 14px;
    padding: 10px 15px;
    width: 100%;
    border-bottom: 1px solid #e9e9e9;
  }

  .tabs .tab-link:not(:first-child) {
    margin-left: 0px;
    margin-top: 3px;
  }

  .hero-content-style1 h2 {
    font-size: 30px;
  }
}

/* Team members */

.team-member,
.section-team .team-member {
  padding: 0 10px;
}

.team-member:hover .member-name {
  background-color: #ff6f0b;
  color: #fff;
}

.team-member .member-info {
  border-bottom: 1px solid #e9e9e9;
  padding-bottom: 20px;
  background: #fff;
  min-height: 210px;
}

.team-member .member-thumb {
  margin-bottom: 0px;
}

.team-member .member-name {
  background: #417619;
  padding: 15px;
  color: #fff;
  font-size: 16px;
}

.team-member .member-name:after {
  content: none;
}

.team-member .member-position {
  font-size: inherit;
  margin-bottom: 5px;
  border-bottom: 1px solid #f8f9f9;
  font-weight: 600;
  padding-bottom: 10px;
}

.team-member .member-description {
  margin-bottom: 10px;
}

.team-member span {
  display: block;
}

.team-member span a {
  color: #417619;
  font-size: initial;
}

.company-name {
  font-size: 2rem;
}

/* News feed */

.article-date,
.article-author {
  margin-right: 20px;
}

/* Metabox forms */

.rwmb-button {
  text-transform: uppercase;
  border-radius: 2px;
  box-shadow: 0 -1px 0 0 rgba(0, 0, 0, 0.1) inset;
  font-size: 13px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: #ff6900;
  color: #ffffff;
  display: inline-block;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease-in-out;
}

.rwmb-input input[type="text"],
.rwmb-input input[type="email"] {
  width: 100%;
  max-width: 100%;
}

.rwmb-heading-wrapper h4 {
  font-size: inherit !important;
  line-height: inherit !important;
}

p.rwmb-error {
  color: #dc3232;
  margin: 0px !important;
  border: none;
  padding: 0;
  margin-top: -10px !important;
  background: transparent;
}

.rwmb-confirmation,
.rwmb-error {
  border-radius: 0 !important;
}

input[type="checkbox"] {
  line-height: 20px;
  height: 20px;
  width: 20px;
  margin: 0;
  vertical-align: text-bottom;
  margin-right: 5px;
}

/* WpForms */

div.wpforms-container .wpforms-form .wpforms-field textarea {
  min-height: 150px;
}

.wpforms-confirmation-container-full,
div[submit-success]>.wpforms-confirmation-container-full:not(.wpforms-redirection-message) {
  border: 1px solid #d0e9c6;
  background-color: #dff0d8;
  color: #3c763d;
}

@media only screen and (max-width: 960px) {

  .rwmb-label,
  .rwmb-input {
    float: none !important;
    width: 100% !important;
  }
}

/* Posts */

.section-news .entry-title,
.archive .entry-title,
.blog .entry-title,
.section-news .list-article-meta,
.archive .list-article-meta,
.blog .list-article-meta {
  margin-bottom: 5px;
}

.single .entry-header .entry-title {
  margin-bottom: 15px;
}

.single .entry-images {
  width: calc(40% - 20px);
  display: inline-flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-right: 20px;
  margin-bottom: 20px;
}

.single .entry-meta {
  margin-bottom: 15px;
  padding-bottom: 10px;
}

.single .entry-videos,
.single .entry-header {
  width: 100%;
}

.single .entry-video {
  margin-bottom: 20px;
}

.single .post-single {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  align-items: flex-start;
}

.single .entry-content {
  width: 60%;
  display: inline-block;
}

.single .entry-content:nth-child(2) {
  width: 100%;
}

.entry-footer {
  width: 100%;
}

.post-links {
  display: flex;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
}

.post-links a {
  display: block;
  padding: 5px 20px;
  background: #fbfbfb;
  margin-bottom: 15px;
  color: #000;
  border: 1px solid #e9e9e9;
}

.post-links a:hover {
  text-decoration: none;
  background-color: #f1f1f1;
}

@media only screen and (max-width: 768px) {

  .single .entry-images,
  .single .entry-content {
    width: 100%;
    margin-right: 0;
  }
}

.single .entry-images::after {
  content: "";
  display: table;
  clear: both;
}

.single .entry-image {
  position: relative;
  width: 100%;
}

.single .entry-image-thumb {
  width: calc(25% - 3px);
  margin-right: 4px;
  margin-top: 4px;
}

.single .entry-image-thumb:last-child {
  margin-right: 0px;
}

.jt-gallery-item {
  width: 25%;
}

.jt-gallery {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

@media screen and (max-width: 768px) and (min-width: 576px) {
  .g-col-2 .g-item {
    width: auto;
    float: none;
  }
}

@media screen and (max-width: 576px) {
  .g-col-2 .g-item {
    width: auto;
  }
}

/* Newsletter page*/

.page-template-newsletter .site-content {
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 80vh;
  background-size: cover;
}

.page-template-newsletter .footer-subscribe {
  display: none;
}

.newsletter-content {
  width: 70%;
  margin: 10vh auto;
}

.newsletter-heading {
  font-size: 42px;
  letter-spacing: 3.5px;
  font-weight: 800;
}

.dark .newsletter-heading {
  color: #fff;
}

.light .newsletter-heading {
  color: #417619;
}

.newsletter-form {
  padding: 40px;
}

.dark .newsletter-form {
  border: 1px solid #4176194a;
  background-color: #1e2127;
}

.light .newsletter-form {
  border: 1px solid #a5a5a5;
  background-color: #ffffff;
}

.newsletter-description {
  font-size: large;
}

.dark .newsletter-description {
  color: #bfbfbf;
}

.subs-button {
  width: 100%;
  background: #ff6900;
  cursor: pointer;
  border: none;
  display: inline-block;
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
  text-align: center;
  padding: 15px 23px 15px 23px;
  border-radius: 2px;
  box-shadow: 0 -1px 0 0 rgba(0, 0, 0, 0.1) inset;
  margin: 3px 0;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

a.subs-button {
  width: inherit;
  color: #ffffff !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
  text-align: center;
  padding: 15px 23px 15px 23px;
  border-radius: 2px;
  box-shadow: 0 -1px 0 0 rgba(0, 0, 0, 0.1) inset;
  margin: 3px 0;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

.newsletter-form .subs-input {
  border-bottom: none;
  box-shadow: none;
  padding: 12px 15px 12px;
  border-radius: 2px;
  width: 100%;
  margin-bottom: 10px;
}

.newsletter-form .subs-input:focus {
  border: none !important;
}

.dark .newsletter-form .subs-input {
  background-color: rgba(255, 255, 255, 0.145) !important;
  color: #cccccc;
}

.light .newsletter-form .subs-input {
  background-color: #e8e8e8 !important;
  color: #585858;
}

input:-internal-autofill-selected {
  -webkit-appearance: menulist-button;
  background-color: rgb(232, 240, 254) !important;
  background-image: none !important;
  color: -internal-light-dark-color(black, white) !important;
}

.newsletter-form label {
  display: block;
  cursor: pointer;
  color: #9e9e9e;
}

.newsletter-form input[type="checkbox"],
.newsletter-form input[type="radio"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: none;
}

.newsletter-form input[type="radio"]+label:before,
.newsletter-form input[type="checkbox"]+label:before {
  display: inline-block;
  height: 25px;
  margin: 0 10px 0 0;
  padding: 2px;
  vertical-align: top;
  width: 25px;
  border-radius: 2px;
}

.dark .newsletter-form input[type="radio"]+label:before,
.dark .newsletter-form input[type="checkbox"]+label:before {
  background: #3f4146;
}

.light .newsletter-form input[type="radio"]+label:before,
.light .newsletter-form input[type="checkbox"]+label:before {
  background: #e8e8e8;
  border: 1px solid #d8d8d8;
}

.newsletter-form input[type="checkbox"]:checked+label:before {
  border-color: transparent;
  content: "\2713";
  text-align: center;
  font-weight: bold;
  line-height: 20px;
}

.dark .newsletter-form input[type="checkbox"]:checked+label:before {
  background: #417619;
  color: #000000;
}

.light .newsletter-form input[type="checkbox"]:checked+label:before {
  background: #5ab118;
  color: #e8e8e8;
}

.newsletter-form input[type="radio"]+label:before,
.newsletter-form input[type="checkbox"]+label:before {
  content: "\00a0";
}

@media only screen and (max-width: 768px) {
  .newsletter-heading {
    font-size: 30px;
  }

  .newsletter-content {
    width: 100%;
    margin: 10vh auto;
  }

  .newsletter-form {
    padding: 20px;
  }
}

/* Cookie Notice */

.cn-text-container {
  font-size: 14px;
}

#cookie-notice .cn-button {
  border: 1px solid #fff;
}

/* Social icons */

.social-icons {
  display: flex;
  justify-content: flex-start;
  padding-top: 10px;
}

.social-icons a {
  display: block;
  padding-right: 10px;
}

.social-icons a i {
  font-size: xx-large;
}

/* Widget Footer */

.footer-widgets {
  background: #3e434e;
  border-top: 1px solid #2e3138;
}

.footer-widgets .sidebar .widget a {
  color: #f8f9f9;
}

.footer-widgets .sidebar .widget a .fa-check:before {
  content: "\f00c";
  color: #ff6900;
}

.site-footer .btt a {
  background: #2e3138;
}

.site-footer .site-info {
  background: #2e3138;
}

/* Footer widget menu*/

.footer-widget.widget_nav_menu a::before {
  display: inline-block;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  content: "\f00c";
  color: #ff6900;
  margin-right: 5px;
}

/* Footer social menu and newslatter */

.site-footer .footer-connect {
  padding: 3rem 0px;
  text-align: left;
}

.site-footer .footer-social {
  text-align: left;
}

.site-footer .footer-social a:first-child {
  margin-left: 0px;
}

.success,
.error {
  color: #fff;
  font-weight: bold;
  padding: 12px 15px 12px;
  border-radius: 2px;
}

.success {
  background-color: #417619;
  border: 1px solid #539025;
}

.error {
  background-color: #911013;
  border: 1px solid #a92427;
}

@media only screen and (max-width: 768px) {
  .footer-widget.widget_nav_menu a::before {
    display: none;
  }

  .footer-widgets,
  .footer-connect,
  .footer-social {
    text-align: center !important;
  }
}