/* Reset */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: "Open Sans", sans-serif; font-size: 1rem; line-height: 1.5; color: #212529; background: #fff; overflow-x: hidden; }
a { color: #0f74a8; text-decoration: none; transition: color 0.3s; }
a:hover, a:focus { color: #0a5a85; text-decoration: underline; }
strong { font-weight: 700; }
ul { margin: 0; padding: 0; }
img { border: 0; }
button { cursor: pointer; outline: none; }

/* Typography */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 700; line-height: 1.1; margin-bottom: 1rem; color: inherit; }
h1, .h1 { font-size: 2.5rem; }
h2, .h2 { font-size: 2rem; }
h3, .h3 { font-size: 1.75rem; }
h4, .h4 { font-size: 1.5rem; }
.small { font-size: 80%; }
.text-big { font-size: 1.4em; font-weight: 300; line-height: 1.8em; color: #111; }

/* Grid */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.col, [class*="col-"] { position: relative; width: 100%; padding: 0 15px; }
.col { flex: 1; max-width: 100%; }
@media (min-width: 768px) {
  .col-md-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
}
@media (min-width: 992px) {
  .col-lg-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
  .col-lg-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }
  .col-lg-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
}

/* Utilities */
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.align-items-stretch { align-items: stretch; }
.justify-content-between { justify-content: space-between; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-auto { margin-left: auto; }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1.5rem; }
.pb-5 { padding-bottom: 3rem; }
.img-fluid { max-width: 100%; height: auto; }
.no-padding-top { padding-top: 0 !important; }

/* Navbar */
.navbar { background: #fff; padding: 20px 0; border-bottom: 1px solid #ddd; z-index: 100; }
.navbar > .container { display: flex; flex-wrap: wrap; align-items: center; }
.navbar-brand { font-size: 1rem; font-weight: 700; color: #333; margin-right: 1rem; }
.navbar-brand:hover { text-decoration: none; color: #333; }
.navbar-toggler { padding: 0.25rem 0.75rem; border: 1px solid transparent; background: none; }
.navbar-toggler span { width: 20px; height: 2px; background: #222; margin-bottom: 4px; display: block; }
.navbar-toggler span:last-child { margin-bottom: 0; }
.navbar-collapse { flex-basis: 100%; flex-grow: 1; }
.navbar-collapse:not(.show) { display: none; }
.navbar-nav { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
.navbar-nav .nav-link { display: block; padding: 0.5rem 0; color: #333; font-size: 0.95em; }
.navbar-nav .nav-link:hover { color: #999; text-decoration: none; }
@media (min-width: 992px) {
  .navbar-collapse, .navbar-collapse:not(.show) { display: flex !important; justify-content: flex-end; flex-basis: auto; }
  .navbar-nav { flex-direction: row; }
  .navbar-nav .nav-link { padding: 0.5rem; }
  .navbar-toggler { display: none; }
  .navbar-header { flex: 0 0 auto; width: auto; }
}
@media (max-width: 991px) {
  .navbar-header { width: 100%; }
}

/* Hero */
section { padding: 70px 0; }
section.hero { padding: 0; color: #fff; }
section.hero .container { padding: 80px 20px 100px; }
section.hero h1 { line-height: 1.2em; }

/* Intro */
section.intro { padding: 70px 0; }

/* Featured posts */
section.featured-posts .row:nth-of-type(odd) .text { background: #fafafa; }
section.featured-posts .text-inner { padding: 70px 30px; height: 100%; }
section.featured-posts p { font-weight: 400; color: #777; font-size: 0.95em; }
section.featured-posts p { color: inherit; }
section.featured-posts a { color: #0f74a8; }
section.featured-posts h2 { line-height: 1.1em; color: #333; }
section.featured-posts .post-header { margin-bottom: 10px; }
section.featured-posts .image { overflow: hidden; padding: 0; max-height: none; }
section.featured-posts .image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 991px) {
  section.featured-posts .image { order: 1; max-height: 300px; width: 100%; }
  section.featured-posts .image img { height: auto; }
  section.featured-posts .text { order: 2; }
}
@media (max-width: 350px) {
  section.featured-posts .text-inner { padding: 15px; }
}

/* Footer */
footer.main-footer { background: #0e0e0e; padding: 100px 0 0; color: #fff; }
footer.main-footer p { font-weight: 300; color: #fff; margin-bottom: 5px; font-size: 0.95em; }
footer.main-footer a { color: inherit; font-weight: 300; margin-bottom: 7px; text-decoration: underline; }
footer.main-footer a:hover { color: #999; }
@media (max-width: 767px) {
  footer.main-footer [class*="col-"] { margin-bottom: 40px; }
  footer.main-footer [class*="col-"]:last-child { margin-bottom: 0; }
}
