body {
    font-family: 'Lato', sans-serif;
}

body.site {
	background-color: #f4f6f7;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Lato:300,500,700,900', sans-serif;
  font-weight: 900 !important;
  color: rgb(22,122,223);
}

h1 { font-size: 26px; line-height: 28px; }
h2 { font-size: 22px !important; line-height: 24px; }
h3 { font-size: 18px; line-height: 20px; }
h4 { font-size: 10px; }

input.form-control.wide { width: 500px; }

.car-detail-nav {
  display: block;
}

.car-detail-nav-mobile {
  display: none;
}

.jshop_prod_description li {
    list-style: disc !important;
    margin-left: 35px !important;
    padding: 0 0 8px !important;
}

.clear { clear: both;}
  header.header {
      position: fixed;
      width: 100%;
      z-index: 9999999;
      top: 0;
  }

  .container-header {
      background-image: none;
      box-shadow: none; 
  }

  .header, .header .container {
      background-color: rgb(210,207,208);
  }

  .container-header .navbar-brand {
      margin: 0 auto;
  }

  .container-header .container-nav {
      flex-wrap: wrap;
      margin-left: auto;
      margin-right: auto;
      width: 100%;  
      align-items: center;
      justify-content: space-between;
      padding-bottom: 1em;
  }

  .container-header nav {
    margin-top: 0.5em;
    padding: 0;
    margin: auto;
  }

  .container-header .mod-list li > a {
      color: #000;
      text-transform:uppercase;
      text-decoration: none;
      padding: 0 25px;
  }

  .container-header .mod-list li:active  > a,
  .container-header .mod-list li:hover  > a {
      color: rgb(22,122,223);
  }

  .container-header .mod-menu > li a {
    font-weight:700;
    font-size: 12px;
  }

.contact-left { width: 25%; float: left; }
.contact-right { width: 70%; float: right; }

@media (min-width: 992px) {
  .container-header .mod-menu>li:after {
      height: 5px;
  }
}

  .container-header .mod-menu > li.active::after,
  .container-header .mod-menu > li:hover::after {
      height: 7px;
      right: 2px;
      left: 0;
      background: rgb(22,122,223);
      opacity: 1;
      margin-bottom: -15px;
  }

  .page-header h1  {
      text-align: center;
      margin-bottom: 32px;
  }

  div,p { color; #000; }

  .grid-child {
      max-width: 1080px;
  }

  a:not([class]) {
      text-decoration: none;
  }
  a { text-decoration: none; }
  a:hover { text-decoration: underline; }


  .site-grid { 
    margin-top: 175px;
    background: #f0f0f0;
    padding-bottom: 50px;
  }

  .rsform-input-box {
    width: 80% !important;
    height: 25px !important;    
  }

  .rsform-text-box {
    width: 80% !important;
  }
  .rmd-car-detail-mobile { display: none !important; }

  /* .list-filter-mobile { display: none !important; } */

  @supports (display: grid) {
    .site-grid {
      grid-template-columns: [full-start] minmax(0, 1fr) [main-start] repeat(4, minmax(0, 15.875rem)) [main-end] minmax(0, 1fr) [full-end];
    }
  }

  #banner-homepage-img img,
  #banner-news-img img,
  #banner-about-us-img img {
    width: 100% !important;
  }

  .homepage-banner img {
      border-bottom: 15px solid rgb(210,207,208);
  }

  #banner-homepage-txt {
      margin: 0 auto;
      width: 940px;
      height: 130px;
      padding: 25px 20px;
      background-repeat: no-repeat;
      margin-top: -76px;
      position: relative;
  }

  #banner-homepage-txt.new-arrival {
      background-image: url(/images/RMD-homepage-balk.png);
  }

#banner-homepage-txt.coming-soon {
      background-image: url(/images/RMD-homepage-balk-coming-soon.png);
  }

  #banner-homepage-txt h2 {
      font-size: 32px !important;
      color: #fff;
      font-weight: 900;
      line-height: 38px;
  }

  #banner-homepage-txt h2:first-child {
      color: rgb(22,122,223);
  }


  #banner-homepage-txt h4 {
      font-size: 14px;
      width: 100px;
      position: absolute;
      right: 188px;
      margin-top: -38px;
      color: #fff !important;
  }

  #banner-homepage-txt h4 a {
    color: #fff !important;
    font-weight: 700;
  }

  #banner-homepage-txt h5 {
      font-size: 14px;
      width: 150px;
      position: absolute;
      right: -12px;
      margin-top: -37px;
      color: #fff !important;
  }

  #banner-homepage-txt h5 a {
    color: #fff !important;
    font-weight: 700;
  }

  .card.our-services {
    border: none;
    padding-bottom: 25px;
    background: none;
  }

  .our-services img {
    display: inline-block;
    margin-bottom: 15px;
    margin-top: 25px;	
  }

  .our-services hr {
      border-top: 2px solid rgb(22,122,223);
      border-bottom: 2px solid rgb(22,122,223);
      width: 50%;
      margin-left: 25%;
      margin-top:  15px;
      margin-bottom: 15px;
      opacity: 1;
  }

  .container-pre-footer {
      background-color: rgb(210,207,208);
      background-image: none;
      margin-top: 0;
      padding-bottom: 35px;
  }

  .container-pre-footer .grid-child {
    display: table;
  }

  .pre-footer a {
      display: block;
      background-image: url(/images/enquire.png);
      background-repeat: no-repeat;
      height: 35px !important;
      min-width: 220px;
      padding-left: 15px;
      padding-top: 6px;
      color: #fff;
      text-transform: uppercase;
      font-weight: bold;
      margin: 15px 0;
  }

  #mc_embed_signup input {
      display: block;
      width: 80%;
      box-sizing: border-box;
      padding: 5px;
      border-radius: 4px;
      float: left;
      margin-right: 10px;
      margin: 10px 10px 5px 0;
      border: 1px solid #aaa;
  }

  #mc_embed_signup .button {
      background: #fff;
      color: #333 !important;
      border: 1px solid #333;
      border-radius: 4px;
      padding: 0px;
      font-weight: 700;
      display: block;
      width: 150px !important;
      clear: both;
      text-align: center;
      margin: 15px 0;
      padding: 4px;
      border: 1px solid #aaa;
  }

  .footer {
      background-color: white;
      background-image: none;
      margin-top: 0;
      margin-bottom: 35px;
      color: #000;
      border-top: 7px solid rgb(210,207,208);
  }

  .footer h3 { font-weight: 900; margin-bottom: 25px; }

  .footer .grid-child .mod-custom { width: 100%; }
  .footer .grid-child {
      max-width: 1100px;
  }

  h1.rmd-as-page-header {
    font-family: 'Lato:300,500,700,900', sans-serif;
    font-weight: 900 !important;
    color: rgb(22,122,223);
    font-size: 26px; 
    line-height: 28px;
    padding: 0 0 25px 0;
    text-align: center;
  }

  h2.rmd-car-item-name {
    font-family: 'Lato:300,500,700,900', sans-serif;
    font-weight: 900 !important;
    color: rgb(22,122,223);
    font-size: 18px !important; 
    line-height: 28px;
    padding: 8px 0;
    text-align: left;  
    min-height: 75px;
  }

  .rmd-car-item {
    width: 33.3333333%;
    padding: 0 10px;
    float: left;
  }
  .rmd-car-item-image-container {
      width: 100%;
      min-height: 180px;
      height: 180px;
    overflow: hidden;
  }

  .rmd-car-item-image {
      width: 100%;
      height: 180px;
      max-height: 180px;
      overflow: hidden;
  }

  .rmd-car-item-specs-container {

  }

  .rmd-car-item-specs-container .row {

  }

  .rmd-car-item-specs-container .row .item,
  .rmd-car-item-specs-container .row .item-value {
      width: 50%;
      float: left;
  }

  .rmd-align-right { text-align: right; }

  .btn-cat-more-details,
  .btn-cat-enquiry {
      display: block;
      background-image: url(/images/vehicle-enquiry.png);
      background-repeat: no-repeat;
      background-color: transparent !important;
      height: 30px !important;
      min-width: 115px;
      width: 115px;
      padding-left: 5px;
      padding-top: 6px;
      color: #fff !important;
      text-transform: uppercase;
      font-weight: bold;
      font-size: 12px;
      margin-top: 10px;
  }

  #btn-full-stocklist {
    display: block;
    background-image: url(/images/enquire.png);
    background-position: top center;
    background-repeat: no-repeat;
    font-size: 14px;
    margin-top: 35px;
    width: 300px;
    margin: 35px auto;
    padding: 6px;
    font-weight: 600;
    color: white;  
  }

  .pagination { clear: both; }

  .pagination_result_counter { display: none; }

  .rmd-car-detail h1 {
      font-size:24px;
      padding: 10px;
      border-left: 3px solid #000;
      margin: 0;
      background: #ffffff;
  }

  .rmd-car-detail h2 {
      font-size:18px !important;
      padding-left: 0px;
      border-left: none;
      margin: 0 0 20px 0;
  }

  .jb-cookie.rmd-cookie {
      position: fixed!important;
      z-index: 1035;
      width: 30%!important;
      height: auto;
      text-align: center;
      display: none;
      box-shadow: 0 0 40px #444;
      padding: 15px 10px;
      left: 0;
      right: 0;
      float: none!important;
      text-shadow: none;
      border-radius: 0!important;
      margin: 0 0 15px 69%!important;
  }

  .rmd-lb-thumb {
      width: 33.333333333%;
      float: left;
      padding: 2px;
  }

  .rmd-lb-hidden {
      display: none;
  }

  .gallery-thumbs ul .fa-search,
  ul.gallery .gallery-container .fa-search {
      position: relative;
      bottom: 35px;
      left: calc(100% - 35px);
      color: #fff;
      font-size: 24px;
  }

  .as-car-sold {
      margin-top: -53px;
      margin-left: 10px;
      width: 90px;
  }

  .custom-select, .form-select {
      width: 180px;
      max-width: 180px
  }

  .card.latest-cars {
    border: none;
    padding-bottom: 25px;
    background: none;
  }

  .card.latest-cars .card-body {
    background: none;
  }
  .rmd-latest-cars-container .rmd-lc-txt {
    padding: 10px; 
    background: #fff; 
    min-height: 100px;
  }

  .rmd-latest-cars-container .rmd-lc-txt h1 {
    font-size: 15px;
    line-height: 18px;
    min-height: 30px;
    color: #333; 
  }

  .rmd-latest-cars-container.row2 .rmd-lc-txt h1 {
    font-size: 15px;
    line-height: 18px;
    min-height: 50px;
    color: #333; 
  }

  .jshop_prod_description p {
    padding-bottom: 8px;
  }

  .rmd-car-detail .rmd-car-detail-left .car-detail-summary {
    display: none;
  }

}

@media (max-width: 767px) {

  .site-grid {
    margin-top: 5px;
  }

  a.brand-logo {
    display: inline-block;
    width: 80%;
    margin: 0 10%;
  }
  
  .container-banner { height: 280px; }

  #banner-homepage-img img, #banner-news-img img, #banner-about-us-img img {
    position: absolute;
    left: 50%;
    top: 47%;
    -webkit-transform: translateY(-10%) translateX(-57%);
    height: 312px;
    max-width: 200%;
    width: 200% !important;
  }

  #mod-custom100 div div { width: 100% !important; float:none !important; }
  #mod-custom98 div { width: 100% !important; float:none !important; }

  .container-header .mod-menu {
    display: flex;
    flex: 1 1 0%;
    flex-direction: row;
    justify-content: center;
  }

  .container-header .mod-menu > li::after {
    bottom: -16px;
    height: 7px;
    opacity: 1;
  }



}

/*Menu Fix - https://issues.joomla.org/tracker/joomla-cms/37926 */
@media (min-width: 768px) and (max-width: 991px) {

  .site-grid {
    margin-top: 20px;
  }

  .navbar-expand-md .navbar-collapse:not(.show) {
    display: none !important;
  }

  .rmd-car-detail .rmd-car-detail-right {
    display: none;
  }

  .rmd-car-detail .rmd-car-detail-left .car-detail-nav {
    display: inline-grid;
    width: 100%;
  }

  .rmd-car-detail .rmd-car-detail-left .car-detail-nav .row {
    flex: none;
    width: 100%
  }

  .rmd-car-detail .rmd-car-detail-left .car-detail-nav .row .col-lg-4 {
    flex: none;
    width: 33.33333333333%
  }

  .rmd-car-detail .rmd-car-detail-left .car-detail-summary {
    display: inline-grid;
    width: 100%;
  }

  .rmd-car-detail .rmd-car-detail-left .car-detail-summary .row {
    flex: none;
    width: 100%
  }

  .rmd-car-detail .rmd-car-detail-left .car-detail-summary .row .col-lg-3 {
    flex: none;
    width: 25%
  }

}
  
  @media (max-width: 991px) {
  .navbar-expand-md .navbar-toggler {
    display: block !important;
  }
}

/*Ipad Landscape*/
@media (max-width: 1024px) { 

  .site-grid {
    margin-top: 186px;
  }

  .container-banner {
    display: block;
    margin: 0 0 -1rem;
  }

  .formResponsive .formHorizontal textarea, 
  .formResponsive textarea, 
  .formResponsive input[type="text"], 
  .formResponsive input[type="number"], 
  .formResponsive input[type="email"], 
  .formResponsive input[type="tel"], 
  .formResponsive input[type="url"], 
  .formResponsive input[type="password"] {
    width: 90%;
  }
  .container-pre-footer {
    padding: 0 15px 35px 15px;
  }
  .footer {
    padding: 0 15px 35px 15px;
  }
  
  #mod-custom98 div {
    text-align: center;
  }
}

/*Ipad Portrait*/
@media (max-width: 768px) { 

  .site-grid {
    margin-top: 10px;
  }

  .container-banner {
    display: block;
    margin: 0 0 -3rem;
  }

  #banner-homepage-txt {
    margin: 0 auto;
    width: 90%;
    height: 150px;
    padding: 25px 20px;
    background-image: url(/images/RMD-homepage-balk.png);
    background-repeat: no-repeat;
    background-position-x: -262px;
    margin-top: -47px;
    position: relative;
  }
  
  #banner-homepage-txt h2 {
    font-size: 24px !important;
    color: #fff;
    font-weight: 900;
    line-height: 38px;
  }

  #banner-homepage-txt h2 span {
    font-size: 19px !important;
  }
  
  .rmd-latest-cars-container.cell1,
  .rmd-latest-cars-container.cell2,
  .rmd-latest-cars-container.cell3,
  .rmd-latest-cars-container.cell4 {
          width: 50% !important;
  }

  /* Cars for sale, cars sold */
  .rmd-car-item-image-container {
    width: 100%;
    min-height: 220px;
    height: 220px;
    overflow: hidden;
  }
 
  .rmd-car-item-image {
    width: 100%;
    height: 216px;
    max-height: 216px;
    overflow: hidden;
 }
  .rmd-car-item {
    height: 650px;
    width: 50%;
    padding: 0 10px;
    float: left;
  }
  
  /* About us, News and Contact us */
  .itemid-116 .grid-child.container-component,
  .itemid-117 .grid-child.container-component,
  .itemid-118 .grid-child.container-component {
    margin-top: 35px;
  }

  .rmd-car-detail-mobile { display: inline-block !important; width: 100%;}
  .rmd-car-detail-mobile { display: none !important;}
  .rmd-car-detail-right { display: none !important; }

  /* .list-filter-mobile { display: inline-block !important; width: 100%;} */
  /* .list-filter { display: none !important; } */


}

@media (max-width: 500px) {
  .site-grid {
    margin-top: 10px;
  }

  .container-banner {
    display: block;
    margin: 0 0 -3rem;
  }

  #banner-homepage-txt {
    margin: 0 auto;
    width: 90%;
    height: 150px;
    padding: 25px 20px;
    background-image: url(/images/RMD-homepage-balk.png);
    background-repeat: no-repeat;
    background-position-x: 0px;
    margin-top: -32px;
    position: relative;
  }
  
  #banner-homepage-txt h2 {
    font-size: 22px !important;
    color: #fff;
    font-weight: 900;
    line-height: 24px;
  }

  #banner-homepage-txt h2 span {
    font-size: 19px !important;
  }
  
  #banner-homepage-txt h4,
  #banner-homepage-txt h5 { 
    display: none;
  }
  
  .rmd-latest-cars-container.row1,
  .rmd-latest-cars-container.cell1,
  .rmd-latest-cars-container.cell2,
  .rmd-latest-cars-container.cell3,
  .rmd-latest-cars-container.cell4 {
          width: 100% !important;
  }
  
  .rmd-latest-cars-container div:nth-child(2) {margin-bottom: 0px;}
  
  #mod-custom100 div div { width: 100% !important }
  
  /* Newsletter */
  #mod-custom97 div { width: 100% !important; }
  
  
  /* Cars for sale, cars sold */
  .rmd-car-item-image-container {
    width: 100%;
    min-height: 230px;
    height: 230px;
    overflow: hidden;
  }
 
  .rmd-car-item-image {
    max-width: 100%;
    width: auto;
    height: 180px;
    max-height: 180px;
    overflow: hidden;
    margin: auto;
 }
  .rmd-car-item {
    height: 700px;
    width: 100%;
    padding: 0 10px;
    float: left;
  }
  
  /* About us, News and Contact us */
  .itemid-116 .grid-child.container-component,
  .itemid-117 .grid-child.container-component,
  .itemid-118 .grid-child.container-component {
    margin-top: 35px;
  }

  #mod-custom98 div {
    text-align: center;
    width: 100% !important;
  }

  .rmd-car-detail-left > div > h1 {
    width: 100% !important;
  }

  .btn-enquiry-in-title {
    display: none !important;
  }

  .fas.fa-chevron-circle-right,
  .fas.fa-chevron-circle-left {
    display: none;
  }

  .car-detail-nav .tag-description,
  .car-detail-nav .tag-enquiry,
  .car-detail-nav .tag-download {
    text-align: center !important;
  }

  .car-detail-nav .tag-download img {
    display: none;
  }

  .car-detail-nav {
    display: none;
  }

  .car-detail-nav-mobile {
    display: block;
  }

  .wrsform-block { margin-bottom: 0; }
  .wformBody {height:32px;}
  .wrsform-block-message .formBody { min-height:100px; } 
  
  .com-content-article__body img { margin-bottom: 15px; }

  .formResponsive .formHorizontal .rsform-block {
    margin-bottom: 0px !important;
  }
  
  .formResponsive .formHorizontal .formControls {
    line-height: 0px !important;
  }
  
}

@media (max-width: 767px) {
  .rmd-car-detail-mobile {
      display: inline-block !important;
      width: 100%;
  }
  .rmd-car-detail-summary {
    display: none !important;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .rmd-car-detail-mobile {
    display: none !important;
  }
  .rmd-car-detail-summary {
    display: inline-block !important;
    width: 100%;
  }
}

.moduletable.events-calendar {
  h3 {
      text-align: center;
      margin: 0 0 25px 0;
      font-size: 24px;    
  }
  h4.newsflash-title {
    text-align: left;
    margin: 0 0 15px 0;
    font-size: 18px;    
    color: #333;
  }
  .mod-list li a {
    text-decoration: underline;
    color:#333;
  }
}

.com-content-category-blog__item.blog-item {
  p.readmore a.btn,
  p.readmore .btn-secondary {
      background: none;
      border: none;
      color:#333;
      text-decoration: underline;
      font-size: inherit;
      padding: 0;
  }  

    span.icon-chevron-right:before {
      content: "";
    }
}

.com-content-article.item-page.mnu-news-dev {
  .page-header h1 {
    text-align: left;
    margin-bottom: 8px;
  }
}