@media (min-width: 1200px) {

  .navbar-expand-xl .navbar-toggler {
    display: none;
  }

}


@media(max-width: 1199px) {

  #main-navbar-collapse {
    position: fixed;
    top: 51px;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.2);
    overflow: auto;
  }
  #main-navbar-collapse.show {
    height: calc(var(--dynamic-height) - 51px);
  }

  #main-navbar .navbar-nav {
    align-items: flex-start;
  }

  #main-navbar .main-nav-item {
    padding: 8px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    border-right: 1px solid rgba(0,0,0,0.2);
    width: 50%;
    justify-content: space-between;
  }
  #main-navbar .main-nav-item .toggle-menu[aria-expanded="true"] svg path {
    fill: red;
  }
  #main-navbar .nav-link {
    padding: 0.5rem 0;
    font-size: 12px;
  }
  .dropdown-menu {
    padding: 0;
    box-shadow: none;
    border-top: 1px solid rgba(0,0,0,0.2);
  }
  .navbar-nav .dropdown-menu.show {
    /*height: 100%;*/
    overflow: auto;
  }
  .dropdown-menu .nav-item {
     padding: 8px 20px; 
    border-bottom: 1px solid rgba(0,0,0,0.2);
  }
  .dropdown-menu:before {
    display: none;
  }
  .dropdown-menu .nav-item .nav-link {
    padding: 0.5rem 0 !important;
  }
  #main-navbar .main-nav-item.dropdown svg {
    width: 15px;
  }

  .navbar-toggler {
    top: 0;
    right: 0;
  }
  .navbar-toggler .icon-bar {
    width: 31px !important;
  }
  .header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    padding: 5px 0;
  }
  #main-navbar {
    grid-column: 1/2;
    grid-row: 1/2;
  }
  .header-brand {
    grid-column: 2/3;
    grid-row: 1/2;
    margin-right: 0;
  }
  .extra-content {
    grid-column: 3/4;
    grid-row: 1/2;
    justify-content: flex-end;
  }
}

@media(max-width: 990px) {

  :root {
    --margin-top: 30px;
  }

  .container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
  }

  .item-search .search-toggle {
    padding: 5px;
  }

  .navbar-nav .dropdown-menu {
    position: fixed;
  }
  .navbar-nav .dropdown-menu.show {
    position: fixed;
    right: 0;
    top: 0;
    width: 50%;
    left: auto;
    top: 51px;
  }
  .dropdown-menu .nav-item .nav-link {
    white-space: normal;
  }

  .section-title h2 {
    margin-bottom: 20px;
  }
  .section-2-homepage .news-grid {
    flex-direction: column;
  }
  .section-2-homepage .content .news-grid .news-item-wrapper {
    max-width: 100%;
    height: 100%;
  }
  /* .section-2-homepage .content .news-grid .news-item-wrapper:after {
    content: '';
    position: absolute;
    bottom: 0;
    display: block;
    width: calc(100% - 30px);
    height: 1px;
    background: rgba(0,0,0,0.2);
  } */
  .section-2-homepage .content .news-title a {
    min-height: 100%;
  }
  .section-3-homepage .news-item-wrapper,
  .inline-homepage-section .news-item-wrapper {
    padding: 0 15px;
  }
  .section-3-homepage .news-item-wrapper .news-item .news-title a {
    min-height: 100%;
  }
  .content-news-row {
    margin-top: 3rem;
  }
  .banner-wide {
    padding-bottom: 15px;
  }
  .inline-homepage-section .view-category-button,
  .section-3-homepage .view-category-button {
    float: left;
  }

  .news-post-top-wrapper .news-post-title h1:before {
    margin-top: 2px;
  }

  .news-post-section .news-post-content-wrapper .news-post-tags-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
  .news-post-section .news-post-content-wrapper .news-post-content {
    padding-right: 0;
  }
  .news-post-section .news-post-content-wrapper .news-post-content h1,
  .news-post-section .news-post-content-wrapper .news-post-content h2,
  .news-post-section .news-post-content-wrapper .news-post-content h3 {
    font-size: 18px;
  }
  .news-post-section .news-post-content-wrapper .news-post-tags-wrapper .news-post-tags {
    flex-wrap: wrap;
  }
  .news-post-section .news-post-content-wrapper .news-post-tags-wrapper .news-post-tags a {
    white-space: nowrap;
  }
  .news-post-section .news-post-content-wrapper .news-post-comment-wrapper .news-post-comment-content h3 {
    align-items: flex-start;
  }
  .news-post-section .news-post-content-wrapper .news-post-comment-wrapper .news-post-comment-content h3:before {
    margin-top: 3px;
  }
  .news-post-section .latest-news-wrapper .latest-news-content {
    padding-left: 0;
    padding-right: 0;
  }
  .news-post-section .latest-news-wrapper .news-item-wrapper .news-item {
    gap: 15px;
  }
  .dynamic-category-wrapper .news-item-wrapper .news-item .news-title a {
    min-height: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
  .footer-content .dropdown-menu {
    display: none;
  }
  .footer-categories-menu ul {
    flex-direction: column;
  }
  .footer-categories-menu ul > li {
    position: relative;
    border-bottom: 1px solid #ffffff12;
    margin-bottom: 5px;
    padding-bottom: 5px;
  }
  .footer-content .secondary-menu .has-submenu svg {
    position: absolute;
    top: 2px;
    right: 0;
  }
  .footer-content .secondary-menu .has-submenu > a {
    display: flex;
    justify-content: space-between;
  }



}


@media(max-width: 640px) {

  main {
    padding-top: 52px;
  }
  .extra-icon.youtube {
    display: none;
  }

  .search-results {
    margin-left: 0;
  }
  .result-image {
    width: 120px;
  }

  .section-1-homepage {
    padding-top: 50px;
  }
  .section-title-xl > * {
    margin-bottom: 10px;
  }
  .section-subtitle > * {
    font-size: 18px;
  }
  .intro-title-col p:after {
    margin-top: 15px;
  }
  .section-1-homepage .content .news-grid {
    grid-template-columns: 1fr;
    row-gap: 15px;
  }
  .section-1-homepage .news-item-wrapper:first-of-type {
    grid-column: 1/2;
    padding-left: 15px;
  }
  .news-grid {
    row-gap: 15px;
  }
  .section-1-homepage .news-item-wrapper:first-of-type .news-item {
    width: 100%;
    height: 40vh;
    min-height: 250px;
  }
  .section-1-homepage .news-item-wrapper:first-of-type .news-item .news-title a {
    font-size: 25px;
  }

  .news-post-section {
    margin-top: 15px;
  }

  .news-post-top-wrapper {
    height: 60vh;
    min-height: 300px;
  }
  .news-post-top-wrapper .news-post-image .news-social-share {
    flex-direction: column;
    padding-right: 0;
  }
  .news-post-top-wrapper .news-post-title h1 {
    font-size: 22px;
  }
  .news-post-top-wrapper .news-post-title {
    flex-direction: column;
  }
  .news-post-top-wrapper .news-post-title .extra-info-title {
    padding-left: 30px;
    margin-top: 10px;
    text-align: left;
  }
  .news-post-top-wrapper .news-post-title .extra-info-title span {
      margin-top: 0;
  }
  .header-brand {
      max-width: 80px;
  }
  .team .module-image {
      margin-bottom: 20px;
  }
  .team.reverse {
      flex-direction: column-reverse;
  }
  .padding {
      padding-left: 5px;
      padding-right: 5px;
  }
  .reverse {
      flex-direction: column-reverse;
  }
  
  .inline-homepage-section .news-item-wrapper .news-item .news-title a {
      min-height: 100%;
  }
}
