/* variables */
:root {
  --primary: #ED1C24;
  --primary-0: #FDE6DB;
  --primary-200: #F79577;
  --primary-300: #F48465;
  --primary-400: #F15A40;
  --secondary: #BA1220;
  --primary-hover: #BA1220;
  --third-500: #890014;
  --text-50: #BDB9B9;
  --text-200: #756F6F;
  --text-300: #635D5D;
  --text-400: #423D3D;
  --text-500: #231F20;
  --fourth-0: #F3F3F5;
  --fourth-300: #caccd1;
  --fourth-500: #ACAFB5;
  --grey: #161313;
  --grey-2: #B9BCC0;
  --dark-grey: #595959;
  --dark-blue: #173559;
  --lighter-blue: #B3BECA;
  --red: #D8374A;
  --black: #000;
  --white: #fff;
  --inspection-result-green: #BCF2C4;
  --inspection-result-yellow: #FFFF8B;
  --inspection-result-red: #FF4F4F;
  --bs-body-font-weight: 100;
}

@font-face {
  font-family: 'DB Heavent';
  font-weight: 400;
  src: url('../fonts/DB\ Heavent\ v3.2.otf');
}

@font-face {
  font-family: 'DB Heavent';
  font-weight: 700; /*500*/
  src: url('../fonts/DB\ Heavent\ Med\ v3.2.otf');
}

@font-face {
  font-family: 'DB Heavent';
  font-weight: 700;
  src: url('../fonts/DB\ Heavent\ Blk\ Cond\ v3.2.1.otf');
}

@font-face {
  font-family: 'DB-Heavent';
  font-weight: 400;
  src: url('../fonts/DB\ Heavent\ v3.2.otf');
}

@font-face {
  font-family: 'DB-Heavent-Med-Cond';
  font-weight: 700; /*500*/
  src: url('../fonts/DB\ Heavent\ Med\ v3.2.otf');
}

@font-face {
  font-family: 'DB-Heavent-Black-Cond';
  font-weight: 700;
  src: url('../fonts/DB\ Heavent\ Blk\ Cond\ v3.2.1.otf');
}

@font-face {
	font-family: 'Sukhumvit';
  src: url('../fonts/sukhumvit-set/SukhumvitSet-Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'Sukhumvit';
  src: url('../fonts/sukhumvit-set/SukhumvitSet-Bold.ttf') format('truetype');
  font-weight: 700;
}

@font-face {
  font-family: 'Sukhumvit';
  src: url('../fonts/sukhumvit-set/SukhumvitSet-Light.ttf') format('truetype');
  font-weight: 700; /*300*/
}

@font-face {
  font-family: 'Sukhumvit';
  src: url('../fonts/sukhumvit-set/SukhumvitSet-SemiBold.ttf') format('truetype');
  font-weight: 700; /*600*/
}

@font-face {
  font-family: 'Sukhumvit';
  src: url('../fonts/sukhumvit-set/SukhumvitSet-Text.ttf') format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'Sukhumvit';
  src: url('../fonts/sukhumvit-set/SukhumvitSet-Thin.ttf') format('truetype');
  font-weight: 100;
}

@font-face {
  font-family: 'Ekachon';
  src: url('../fonts/ekachon/ekachon-extralight.woff') format('woff');
  font-weight: 100;
}

@font-face {
  font-family: 'Ekachon';
  src: url('../fonts/ekachon/ekachon-light.woff') format('woff');
  font-weight: 300;
}

@font-face {
  font-family: 'Ekachon';
  src: url('../fonts/ekachon/ekachon-light.woff') format('woff');
  font-weight: 700;
}

@font-face {
  font-family: 'Ekachon-Extralight';
  src: url('../fonts/ekachon/ekachon-extralight.woff') format('woff');
  font-weight: 100;
}

@font-face {
  font-family: 'Ekachon-Light';
  src: url('../fonts/ekachon/ekachon-light.woff') format('woff');
  font-weight: 300;
}

@font-face {
  font-family: 'Ekachon-Light2';
  src: url('../fonts/ekachon/ekachon-light.woff') format('woff');
  font-weight: 700;
}

a,
a:hover {
  text-decoration: none;
  color: inherit;
}

/* utilities */
.mt-10px{
  margin-top: 10px;
}
.mt-11px{
  margin-top: 10px;
}
.mt-30px{
  margin-top: 30px;
}
.mb-10px{
  margin-bottom: 10px;
}
.mb-30px{
  margin-bottom: 30px;
}
.mb-40px{
  margin-bottom: 40px;
}
.ml-10px{
  margin-left: 10px;
}
.mr-10px{
  margin-right: 10px;
}

.py-5px{
  padding-top: 5px;
  padding-bottom: 5px;
}

/* bootstrap custom */
.btn{
  font-size: 18px;
}

.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus{
  background-color: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
  color: var(--white) !important;
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--black) !important;
}

.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--black) !important;
}

.form-label {
  font-weight: 700; /*500*/
}

.form-select {
  border-color: var(--grey);
}

.form-select[value=""] {
  color: red;
}
.gx-3\.5{
  --bs-gutter-x: 1.325rem;
}
.gx-5\.5{
  --bs-gutter-x: 3.3375rem;
}
@media (min-width: 1200px){
  .container{
    max-width: 1320px;
  }
}

/* slick custom */
.slick-track {
  display: flex;
}

.slick-prev {
  left: 0;
}

.slick-next {
  right: 0;
}

/* swal */
div:where(.swal2-container) .swal2-html-container{
  font-size: 24px !important;
}

/* custom styles */
.page-section-title {
  font-size: 22px;
  font-weight: 700; /*600*/
}

.popular-car-section .slick-initialized .slick-slide {
  height: inherit !important;
}

/* vehicle card item might be used on another page */
.vehicle-card-item {
  background: white;
  border-radius: 10px;
  display: block;
  margin-bottom: 10px;
  height: 100%;
}

.vehicle-card-item .vehicle-card-body {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vehicle-card-item .vehicle-card-body .img-vehicle-card {
  max-width: 100%;
  max-height: 234px;
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 10px 10px 0px 0px;
}

.vehicle-card-item .vehicle-card-body .img-vehicle-card.no-picture{
  object-fit: contain;
}

.vehicle-card-item .vehicle-card-body .vehicle-grade-container{
  background: var(--primary);
  padding: 0px 12px;
  border-radius: 10px 0px 10px 0px;
  color: white;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.vehicle-card-item .vehicle-card-body .vehicle-grade-container .vehicle-grade{
  font-size: 22px;
  font-weight: bold;
  line-height: 40px;
}
.vehicle-card-item .vehicle-card-body .vehicle-grade-container .vehicle-grade-text{
  font-size: 14px;
  line-height: 1;
  position: relative;
  top: -5px;
}

.vehicle-card-item .vehicle-card-body .vehicle-info-container {
  border: 1px solid #E7E7E7; 
  padding: 10px 20px;
  border-radius: 0px 0px 10px 10px; 
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vehicle-card-item .vehicle-card-body .vehicle-info .vehicle-name {
  font-size: 18px;
  font-weight: 700; /*500*/
  text-align: center;
  line-height: 28px;
  display: block;
  color: black;
}

.vehicle-card-item .vehicle-card-body .vehicle-info .vehicle-price {
  color: var(--red);
  text-align: center;
  font-size: 22px;
}

.vehicle-card-item .vehicle-card-body .vehicle-auction-info {
  font-size: 12px;
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--text-400);
}

.vehicle-card-item .vehicle-card-body .vehicle-auction-info .vehicle-info-item {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: start;
  white-space: nowrap;
  font-size: 14px;
  color: var(--text-400);
}
.vehicle-card-item .vehicle-card-body .vehicle-auction-info .vehicle-info-item:not(:last-of-type){
  margin-right: 10px;
}

.vehicle-card-item .vehicle-card-body .vehicle-auction-info .vehicle-info-item .truncate {
  width: 60px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}

.vehicle-card-item .vehicle-card-footer {
  background: var(--primary);
  padding: 5px 10px;
  border-radius: 0px 0px 10px 10px;
  color: var(--black);
}

.vehicle-card-item .vehicle-card-footer .vehicle-score-title-wrapper {
  border-bottom: 1px solid white;
  padding-bottom: 5px;
  display: flex;
  font-size: 12px;
  font-weight: 700; /*300*/
}

.vehicle-card-item .vehicle-card-footer .vehicle-score-title-wrapper .vehicle-score-title {
  flex: 1 1 33%;
  text-align: center;
}

.vehicle-card-item .vehicle-card-footer .vehicle-score {
  display: flex;
  margin-top: 5px;
}

.vehicle-card-item .vehicle-card-footer .vehicle-score .vehicle-score-grade {
  text-transform: uppercase;
  font-weight: 700; /*600*/
  text-align: center;
  flex: 1 1 33%;
  font-size: 22px;
}

.vehicle-card-item .vehicle-card-footer .vehicle-score .vehicle-score-grade:not(:last-of-type) {
  border-right: 1px solid white;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
  color: var(--black);
  background-color: var(--bs-nav-pills-link-active-bg);
}

.page-link {
  color: var(--black) !important;
}

.active>.page-link,
.page-link.active {
  z-index: 3;
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.text-editor-content h1,
.text-editor-content h2,
.text-editor-content h3,
.text-editor-content h4,
.text-editor-content h5,
.text-editor-content h6{
  font-weight: 400;
}

.news-item {
  width: 100%;
  display: inline-flex;
  flex-direction: column;
  height: 100%;
  justify-content: start;
}

.news-item .news-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: start;
  height: 100%;
  flex: 1 1 100%;
}

.news-item .news-img-container {
  flex: 0 0 234px;
  display: inline-block;
  margin-bottom: 10px;
}

.news-item .news-img-container .img-news {
  width: 100%;
  border-radius: 10px;
  height: 100%;
  max-height: 234px;
  object-fit: cover;
  /* margin-bottom: 20px; */
}

.news-item .news-body .news-info {
  display: flex;
  font-weight: 700; /*500*/
  color: var(--primary);
  font-size: 14px;
  border-bottom: 1px solid var(--text-500);
  margin-bottom: 5px;
}

.news-item .news-body .news-info .news-info-item {
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.news-item .news-body .news-info .news-info-item img {
  margin-right: 5px;
  margin-bottom: 2px;
}

.news-item .news-title {
  font-weight: bold;
  font-size: 18px;
  line-height: 28px;
  margin-bottom: 10px;
}

.news-read-more {
  color: var(--primary);
  font-weight: bold;
  transition: .3s all;
  position: relative;
  display: flex;
}

.news-read-more:after{
  content: "";
  width: 88px;
  height: 2px;
  position: absolute;
  bottom: 4px;
  left: 0px;
  transition: .3s all;
}

.news-read-more:hover{
  color: var(--third-500);
}

.news-read-more:hover:after{
  background: var(--third-500);
}

.news-read-more .btn-plus-red {
  color: white;
  font-size: 18px;
  line-height: 33px;
  background: var(--primary);
  border-radius: 7px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-left: 10px;
  transition: .3s all;
}
.news-read-more:hover .btn-plus-red{
  background: var(--third-500);
}

/* search and catalog */
.table-main thead tr{
  position: sticky;
  top: 0;
  z-index: 10;
}
.table-main thead th{
  background: black;
  color: white;
  vertical-align: middle;
  text-align: center;
}
.table-main tbody tr:nth-child(odd) td{
  text-align: center;
}

.table-main .img-picture-column{
  min-width: 80px;
  min-height: 80px;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
}
.table-main .btn-view-vehicle{
  position: absolute;
  background: var(--primary);
  padding: 5px;
  right: 0px;
  top: 0px;
  border-radius: 5px;
}
.table-main .btn-favorite{
  background: var(--fourth-300);
  padding: 5px;  
}
.table-main .btn-favorite.active{
  background: var(--primary);
  border: 0px;
}