@charset "UTF-8";
/*!
Theme Name: Demag_v07
Author: Luca C. Wistendahl
Author URI: http://lucacw.com/
Description: Theme for Demag Cranes blog. Version 7. This version adds a 'view all posts' page, as well as implementing flexbox in recent/related news sections, as well as a few other minor post display changes. style.css has also been autoprefixed
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: demag
*/
/**************************************************
Variables
**************************************************/
/*end variables*/
/**************************************************
Styles
**************************************************/
.test {
  outline: 1px solid aqua;
  padding: 50px;
}

.test::before {
  content: "test";
}

.box-shadow {
  -webkit-box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.2);
  box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.2);
}

.roboto {
  font-family: "Roboto", sans-serif;
}

.roboto-slab {
  font-family: "Roboto-Slab", serif;
}

.logo {
  width: 100%;
}

/* Text meant only for screen readers. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
  /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  -webkit-box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  -webkit-clip-path: none;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-size: 0.875rem;
  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. */
}

.module {
  background-color: #ffffff;
}

.blue-gradient {
  background-image: -webkit-gradient(linear, left top, left bottom, from(#0e2c56), to(#001430));
  background-image: -o-linear-gradient(top, #0e2c56, #001430);
  background-image: linear-gradient(to bottom, #0e2c56, #001430);
  color: #ffffff;
}

.yellow-gradient {
  background-image: -webkit-gradient(linear, left top, left bottom, from(#e9c839), to(#ecc20b));
  background-image: -o-linear-gradient(top, #e9c839, #ecc20b);
  background-image: linear-gradient(to bottom, #e9c839, #ecc20b);
}

.yellow-bar::after {
  content: "";
  display: block;
  height: 7px;
  width: 44px;
  background: #e9c839;
  position: relative;
  margin: 0 auto;
  top: 10px;
}

.cta-module {
  position: relative;
  color: #171717;
  -webkit-transition: -webkit-box-shadow 0.2s ease;
  transition: -webkit-box-shadow 0.2s ease;
  -o-transition: box-shadow 0.2s ease;
  transition: box-shadow 0.2s ease;
  transition: box-shadow 0.2s ease, -webkit-box-shadow 0.2s ease;
}
.cta-module h4 {
  font-size: 1.2rem;
  font-weight: 700;
}

.cta-module::after {
  content: "";
  padding: 4px 13px 4px 15px;
  font-size: 1.2rem;
  background: white;
  color: #e9c839;
  position: absolute;
  display: block;
  bottom: 12px;
  right: 12px;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  -webkit-transition: padding 0.2s ease;
  -o-transition: padding 0.2s ease;
  transition: padding 0.2s ease;
}

.cta-module.box-shadow:hover {
  -webkit-box-shadow: 0px 0px 15px 1px rgba(0, 0, 0, 0.4);
  box-shadow: 0px 0px 15px 1px rgba(0, 0, 0, 0.4);
}

.cta-module:hover::after {
  padding: 4px 7px 4px 21px;
}

/*end styles*/
/**************************************************
Bootstrap
**************************************************/
.container {
  padding: 0 !important;
}

/*end bootstrap*/
/**************************************************
General
**************************************************/
html, body {
  font-size: 18px;
}

body {
  background-color: #ededed !important;
  overflow-x: hidden !important;
}

a:hover {
  text-decoration: none !important;
  /*NOTE find workaround that doesn't involve !important?*/
}

p a {
  color: #0080f8;
  text-decoration: underline;
}
p a:hover {
  color: #0080f8;
  text-decoration: none;
}

ul, li {
  list-style: none;
}

h1, h2, h3, h4,
h1 a, h2 a, h3 a, h4 a {
  font-family: "Roboto Slab", serif;
  font-weight: 700;
}

/*end general*/
/**************************************************
Header
**************************************************/
header {
  background-color: #ffffff;
}

.logo.header {
  max-width: 250px;
}

form.search-form {
  margin-left: 30px;
  position: relative;
  float: right;
}
form.search-form input.search-field {
  margin-right: 55px;
  background-image: none;
  background-color: #f6f6f6;
  border: 0;
  border-radius: 30px 0px 0px 30px;
  padding: 10px 10px 10px 20px;
  -webkit-box-shadow: inset 0 3px 0 0 rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 3px 0 0 rgba(0, 0, 0, 0.1);
}
form.search-form button.search-submit {
  position: absolute;
  top: 0;
  right: 0;
  color: #ffffff;
  background-image: none;
  background-color: #0080f8;
  border: 1px solid #0080f8;
  border-radius: 0px 30px 30px 0px;
  padding: 10px 20px 10px 15px;
}
form.search-form button.search-submit:hover {
  background-color: #163c71;
  border: 1px solid #163c71;
}

.social-media-icons {
  float: right;
}
.social-media-icons .social-media-icon {
  float: left;
  display: block;
  background-color: #0080f8;
  margin: 5px;
}
.social-media-icons .social-media-icon a {
  display: block;
  padding: 4px 16px 4px 16px;
  color: #ffffff;
  height: 40px;
  font-size: 1.2rem;
}

.social-media-icon:hover {
  background-color: #163c71;
}

/*end header*/
/**************************************************
Navigation
**************************************************/
nav ul {
  margin: 0;
  padding: 0;
}
nav ul li {
  font-family: "Roboto Slab", serif;
  font-weight: 700;
  margin-bottom: 7px;
}
nav ul li a {
  color: #ffffff;
}
nav ul li:hover a {
  color: #ffffff;
}
nav ul li:not(.menu-item-has-children):hover {
  text-decoration: underline !important;
  /*NOTE fix to remove !important?*/
}
nav ul li.menu-item-has-children {
  margin-top: 27px;
  margin-bottom: 0;
}
nav ul li.menu-item-has-children:first-child {
  margin-top: 0;
}
nav ul li.menu-item-has-children > a {
  display: block;
  padding-bottom: 5px;
  border-bottom: 1px solid #0080f8;
  margin-bottom: 12px;
}
nav ul.sub-menu {
  padding-left: 25px;
}
nav ul.sub-menu li {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
}

/*end navigation*/
/**************************************************
Front Page
**************************************************/
.featured-post h1 a {
  color: #171717;
}

.featured-img {
  height: 350px;
  background-size: cover;
  background-position: center center;
}

.post-date {
  display: block;
  font-weight: 700;
}

.post-byline {
  display: block;
  font-weight: 400;
}

.read-more {
  display: inline-block;
  background: #0053a4;
  color: white;
  padding: 9px 20px;
  font-weight: bold;
  position: relative;
}

.read-more::after {
  content: "";
  display: block;
  position: absolute;
  padding: 7px 0px 0px 16px;
  font-size: 1.2rem;
  top: 0;
  right: -45px;
  height: 100%;
  width: 45px;
  background-color: #0080f8;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  -webkit-transition: padding 0.2s ease;
  -o-transition: padding 0.2s ease;
  transition: padding 0.2s ease;
}

.read-more:hover {
  color: #ffffff;
  text-decoration: underline !important;
  /*NOTE fix to remove !important?*/
}

.read-more:hover::after {
  color: #ffffff;
  text-decoration: none;
  padding: 7px 0px 0px 23px;
}

.contact-form h3 {
  text-align: center;
}

.post-topics {
  position: relative;
  max-height: 523px;
  overflow-y: auto;
}
.post-topics h3 {
  text-align: center;
}

#hamburger {
  display: none;
  font-size: 3rem;
  color: #e9c839;
  position: absolute;
  top: 7px;
  right: 15px;
  cursor: pointer;
}

.recent-news h2 {
  text-align: center;
  font-weight: 700;
  color: #0e2c56;
}
.recent-news .wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}
.recent-news .wrapper .post-card {
  position: relative;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  -moz-column-break-inside: avoid;
  break-inside: avoid-column;
  break-inside: avoid-column;
  max-width: calc((100% / 3) - (100px / 3));
}
.recent-news .wrapper .post-card p {
  margin-bottom: calc(1rem + 45px);
}
.recent-news .wrapper .post-card .read-more {
  position: absolute;
  bottom: 1rem;
}
.recent-news .wrapper .view-all-posts {
  width: calc((100% / 3) - (100px / 3));
}

.post-card {
  border: 1px solid #d9d9d9;
  -webkit-transition: -webkit-box-shadow 0.2s ease;
  transition: -webkit-box-shadow 0.2s ease;
  -o-transition: box-shadow 0.2s ease;
  transition: box-shadow 0.2s ease;
  transition: box-shadow 0.2s ease, -webkit-box-shadow 0.2s ease;
}
.post-card .featured-img {
  height: 240px;
}
.post-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0;
}
.post-card h3 a {
  color: #163c71;
}
.post-card h3 a:hover {
  text-decoration: underline !important;
  /*NOTE fix so that doesn't require !important?*/
}
.post-card p {
  color: #868685;
}
.post-card .post-byline,
.post-card .post-date {
  line-height: 1.2;
  color: #0080f8;
}

.post-card:hover {
  -webkit-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

/*end front page*/
/**************************************************
Inner Page
**************************************************/
article {
  background: #ffffff;
}
article h1, article h2, article h3 {
  font-weight: 700;
}
article .entry-content h2 {
  font-size: 1.8rem;
}
article .entry-content h3 {
  font-family: "Roboto", sans-serif;
  font-size: 1.2rem;
}
article .entry-content ul {
  overflow: visible;
  list-style-type: disc;
  margin-left: 1.5em;
}
article .entry-content ul li {
  overflow: visible;
  list-style-type: disc;
  display: list-item;
}
article #hamburger {
  right: 30px;
}

/*end inner page*/
/**************************************************
Search Results
**************************************************/
.search-results main,
.search-no-results main,
.archive.category main,
.blog main {
  background-color: #ffffff;
}

/*end search results*/
/**************************************************
Footer
**************************************************/
.logo.footer {
  max-width: 250px;
}

.footer-block ul {
  position: relative;
}
.footer-block ul ul {
  padding-left: 20px;
}
.footer-block ul ul li:first-child {
  margin-top: 10px;
}

.footer-block > ul::after {
  content: "";
  height: 1px;
  width: 100%;
  background-color: #0080f8;
  position: absolute;
  top: 30px;
}

.footer-info {
  text-align: right;
}
.footer-info p:last-child {
  margin-bottom: 0;
}

/*end footer*/
/**************************************************
Media Queries
**************************************************/
@media (max-width: 992px) {
  #hamburger {
    display: block;
  }

  .post-topics nav {
    display: none;
  }

  .recent-news .wrapper .post-card {
    max-width: calc(50% - 1.5rem);
  }
  .recent-news .wrapper .view-all-posts {
    width: calc(50% - 1.5rem);
  }

  .footer-block ul {
    padding-left: 0;
  }
}
@media (max-width: 768px) {
  form.search-form {
    position: relative;
    width: 273px;
    display: block;
    margin: 0 auto;
    float: none;
  }

  .recent-news .wrapper .post-card {
    max-width: 100%;
  }
  .recent-news .wrapper .view-all-posts {
    width: 100%;
  }

  .social-media-wrapper {
    overflow: hidden;
  }

  .social-media-icons {
    clear: left;
    float: left;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    left: 50%;
    text-align: center;
  }
  .social-media-icons .social-media-icon {
    display: block;
    float: left;
    list-style: none;
    padding: 0;
    position: relative;
    right: 50%;
  }

  .home .post-card:nth-child(5),
.home .post-card:nth-child(6) {
    display: none;
  }

  footer .social-media-icons {
    padding-left: 0;
    float: left;
  }

  .logo-a {
    display: block;
    width: 100%;
    text-align: center;
  }

  .logo {
    display: inline-block;
  }

  .footer-info {
    text-align: center;
  }
}
/*end media queries*/

/*# sourceMappingURL=style.css.map */
