:root {
    --blue: #21368B;
    --red: #f20000;
    --light-white: #F2F0EF;
    --light-black: #393939;
}

* {
    margin: 0 auto;
    padding: 0;
}
html{
  height: 100%;
  margin: 0;
  overflow-y: scroll; /* Enable vertical scrolling */
  scroll-behavior: smooth; /* Optional: smooth scrolling effect */
  font-family: Arial, sans-serif;
}

/* Webkit browsers (Chrome, Safari, Edge) */
html::-webkit-scrollbar{
  width: 10px;
}

html::-webkit-scrollbar-track{
  background: #f0f0f0;
}

html::-webkit-scrollbar-thumb{
  background-color: #902d2d;
  border-radius: 20px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

html::-webkit-scrollbar-thumb:hover{
  background-color: #888;
}

/* Firefox */
html{
  scrollbar-width: thin;
  scrollbar-color: #902d2d #f0f0f0;
}

body{
  /* background-color: var(--light-white); */
  background-color: white;
  width: 100%;
  color: var(--light-black);
  font-family: "monserrat", sans-serif;
}


#loader {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: rgb(255, 255, 255);
  z-index: 9999;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease;
}

#loader.fade-out {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.loader-content img {
  width: 150px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.section{
  width: 1380px;
  max-width: 1536px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.section-list{
    width: 65%;
}

/* fonts */
.good-times-500{
  font-family: "good-times", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.good-times-900{
  font-family: "good-times", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.avenir{
  font-family: "avenir-lt-pro", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.avenir-medium{
  font-family: "monserrat", sans-serif;
  font-weight: 500;
}
/* end fonts */
h1, h2, h3, h4, h5, h6{
  font-family: "monserrat", sans-serif;
  font-weight: 500;
}
 
h2.title-header, h3.title-header, h4.title-header, h5.title-header, h6.title-header{
  font-family: "monserrat", sans-serif;
  font-weight: 500;
  font-style: normal;
    text-transform: uppercase;
}

h1.title-header{
  font-family: "monserrat", sans-serif;
  font-weight: 500;
  font-style: normal;
}


a{
  text-decoration: none;
  color: var(--light-white);
}

p{
  font-size: 1rem;
}

.p-width{
  width: 70%;
}

.bg-blue{
    background-color: var(--blue);
    color: var(--light-white) !important;
}

.bg-red{
    background-color: var(--red);
    color: var(--light-white) !important;
}

.bg-red-gradiant{
    background: #ed1515;
    background: radial-gradient(linear, rgba(237, 21, 21, 1) 100%, rgba(212, 44, 44, 1) 0%);
}

.bg-white{
  background-color: var(--light-white);
  color: var(--light-black) !important;
}

.text-blue{
  color: var(--blue);
}

.text-red{
  color: var(--red);
}

.text-justify{
  text-align: justify;
}

nav{
  z-index: 1;
}

.navbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  z-index: 1000;
  background: rgba(196, 0, 0, 0.6); 
  background-color: var(--red);
  backdrop-filter: blur(5px);
}

.navbar.scrolled{
  background: rgba(0, 0, 0, 0.6); 
  backdrop-filter: blur(5px);
  transition: background 0.3s ease-in-out;
}

.navbar .nav-item {
  color: white;
  text-decoration: none;
  margin: 0 5px;
  font-size: 16px;
  transition: color 0.3s;
  cursor: pointer;
}

.dropdown-item{
width: auto;
}
.logo {
  font-size: 24px;
  font-weight: bold;
  color: white;
}
/* Page Content */
.content {
  padding: 100px;
  color: white;
  text-align: center;
}

#header_nav{
    height: 70px;
}

/* #header_nav.scrolled{
    height:100px;
} */


a#logo-brand{
  margin-left: 50px;
}

.nav-link{
  /* text-transform: uppercase; */
  font-size: 1rem;
  color: var(--light-white);
  border-bottom: none;
  font-weight: 600;
}

.nav-link.active{
  border-bottom: 2px solid var(--light-white);
  color: var(--light-white) !important;
}

.nav-link:hover{
  border-bottom: 2px solid var(--light-white);
  color: var(--light-white) !important;
}



.masthead{
  background-size: cover;
  min-height: 100vh;
  color: var(--light-white);
}

.masthead .text-overlay{
  position: absolute;
  width: 100%;
  height: 100%;
  /* background-color: rgba(0, 0, 0, .2); */
  /* line-height: 80px; */
}

.masthead h1{
  font-size: 2.5rem;
  text-shadow: 0 0 1px #333;
  letter-spacing: 2px;
}

.masthead .logo{
  width: 18%;
  height: auto;
}

.space-between{
  height: 75px;
}

.btn-cover{
  background-color: var(--red);
  padding: 15px 12px 20px 12px;
  color: var(--light-white);
  border: none;
  line-height: 0px;
  border-radius: 5px;
}

.btn-cover:hover{
   color: var(--red);
   background-color: var(--light-white);
}

.btn-without-icon{
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.btn-without-icon-outline{
  padding: 10px 15px;
  border: 1.5px solid var(--light-white);
  border-radius: 8px;
  color: var(--light-white);
  background-color: transparent;
  font-size: 14px;
  font-weight: 600;
}


.btn-nav{
  background-color: var(--red);
  padding: 20px;
  color: var(--light-white);
  border: none;
  line-height: 0px;
  border-radius: 5px;
}

.btn-nav:hover{
   color: var(--red) !important;
   background-color: var(--light-white);
   border: none;
}

.masthead .logo-hybrid{
  width: 40%;
  height: auto;
}

#services-list-card{
  width: 75%;
}

.service-card {
  background-size: cover;
  background-position: center;
  height: 300px;
  position: relative;
  color: white;
  overflow: hidden;
  border-radius: 0.5rem;
  transition: transform 0.4s ease;
}

.service-card i{
  font-size: 2rem;
}

.service-card:hover {
  transform: scale(1.03);
}

.service-overlay {
  position: absolute;
  inset: 0;
  /* background-color: rgba(0, 0, 0, 0.55); */
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
  transition: background-color 0.4s ease;
  text-align: center;
}

.service-card:hover .service-overlay {
  background-color: rgba(0, 0, 0, 0.55);
}

.service-overlay h5 {
  font-size: 1.25rem;
  font-weight: bold;
  opacity: 1;
  transform: none;
  transition: none;
  text-shadow: 0 0 2px black;
}

.service-icon,
.service-overlay p {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.service-card:hover .service-icon,
.service-card:hover .service-overlay p {
  opacity: 1;
  transform: translateY(0);
}
.card-link{
  /* height: 60vh; */
  cursor: pointer;
}

.card-link .image-hover {
    opacity: 0;
    /* transform: scale(1.05); */
    transition: opacity 0.5s ease;
  }
  
.card-link:hover .image-hover {
    opacity: 1;
    /* transform: scale(1); */
}

.card-overlay{
  position: absolute;
  width: 100%;
  height: 100%;
  line-height: 60px;
  color: var(--light-white);
  text-align: center;
}

.card-overlay .card-title{
  font-size: 1.2rem;
  text-shadow: 0 0 3px black;
  /* font-weight: 700; */
}

.carousel-control-next, .carousel-control-prev{
  width: 5%;
}

.fa-star{
  font-size: 1rem;
}

.checked {
  color: orange;
}

.about-us-masthead{
    background-size: cover;
    min-height: 150vh;
    position: relative;
    color: var(--light-white);
}

.about-us-text{
  /* background-color: var(--red); */
  z-index: 2;
}

#about-us p{
  text-align: justify;
}

#why-choose-us p{
  text-align: justify;
}

#why-us-list h6{
    text-align: center;
    font-size: .8rem;    
}

.btn-primary{
  background-color: var(--light-white);
  padding: 15px 30px 15px 30px;
  color: var(--light-black);
  border: none;
}

.btn-red{
  background-color: var(--red);
  padding: 15px 30px 15px 30px;
  color: var(--light-white);
  border: none;
  border-radius: 5px;
}

.btn-red:hover{
  background-color: var(--light-white);
  color: var(--red);
}

.btn-red-contact{
  background-color: var(--red);
  padding: 8px 25px 8px 25px;
  color: var(--light-white);
  border: 1px solid;
  border-radius: 5px;
}

.btn-red-contact:hover{
  background-color: var(--light-white);
  color: var(--red);
  border: 1px solid var(--red);
}

.scroll-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    background:white;
    padding: 1rem 0;
  }
  
  .scroll-content {
    display: flex;
    animation: scroll-left 20s linear infinite;
  }
  
  .scroll-items {
    display: flex;
  }
  
  .scroll-items img {
    width: 140px; /* Adjust as needed */
    height: auto;
    /* margin-right: 2rem;  */
    border-radius: 8px;
    object-fit: cover;
  }
  
  @keyframes scroll-left {
    0% {
      transform: translateX(0%);
    }
    100% {
      transform: translateX(-50%);
    }
  }
  
  
.home-logo-brand {
    width: 90%;
    height: 200px; /* Adjust height as needed */
    background-image: url('images/HomePage/HP_Logos.png'); /* Replace with your image URL */
    background-repeat: repeat-x; /* Ensures the background repeats horizontally */
    background-size: cover; /* Adjusts the size of the background */
    animation: scrollBackground 10s linear infinite; /* Animation applied */
  }
  
  /* Keyframes for horizontal scrolling */
  @keyframes scrollBackground {
    0% {
      background-position: 0 0; /* Start position */
    }
    100% {
      background-position: -100% 0; /* End position for seamless scroll */
    }
  }



#expertise .card{ 
  height: 300px; 
  text-align: center;
}

#expertise .card .card-title{
  /* text-transform: uppercase; */
  padding: 5px;
  font-size: 1rem;
  color: var(--blue);
  /* font-weight: 700; */
}


.masthead-footer{
  background-size: cover;
  min-height: 30vh;
  position: relative;
  color: var(--light-white);
}

.masthead-footer .text-overlay{
  position: absolute;
  text-align: center;
  width: 100%;
  height: 100%;
}

.btn-footer{
  background-color: var(--red);
  color: var(--light-white);
  border: none;
  line-height: 0px;
  border-radius: 5px;
  font-size: 2rem;
}

.btn-footer:hover{
   color: var(--red);
   background-color: var(--light-white);
}

/* footer */

.footer {
  background: var(--blue);
  padding: 40px 0 20px;
  border-top: 1px solid #eee;
}

.footer p{
    font-size: .8rem;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 600;
  color: var(--light-white);
  /* text-transform: uppercase; */
}

.footer-text {
  color: var(--light-white);
  font-size: 1rem;
  /* max-width: 300px; */
}

.social-link {
  color: var(--light-white);
  margin-right: 10px;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--red);
}

.footer-links {
  display: block;
  line-height: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--light-white);
  text-decoration: none;
  font-size: .8rem;
  transition: color 0.3s ease;
}

.box-footer{
  color:var(--light-white);
}

.box-footer .icon-contact{
  width: 25px;
  height: 25px;
}

.box-footer .logo-img{
  width: 200px;
  /* height: 30px; */
}

.box-footer p{
  text-align: left;
}

.footer-links a:hover {
  color: var(--red);
}

.copyright {
  color: var(--light-white);
  font-size: 0.85rem;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}


/* service page */

.sm-card{
  height: 200px;
  /* background-color: var(--light-white); */
  text-align: center;
}

/* .sm-card h5{
  font-size: 1.2rem;
} */

.icon-card {
  transition: transform 0.3s, box-shadow 0.3s;
}

.icon-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.icon-card i {
  transition: color 0.3s;
}

.icon-card:hover i {
  color: #0a58ca; /* Darker blue on hover */
}

.card-hybrid{
  height: 250px;
  text-align: center;
}

.card-hybrid h5{
  font-weight: 700;
  font-size: 1rem;
  /* text-transform: uppercase; */
}

.hybrid-p{
  text-align: justify;
}

.accordion-item {
  border: none;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.accordion-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.accordion-button {
  height: 60px;
  padding: 20px 25px;
  color: #333;
  transition: all 0.3s ease;
}

.bg-red.accordion-button:not(.collapsed) {
  color: #ffffff;
  background-color: var(--red);
}

.bg-blue.accordion-button:not(.collapsed) {
color: #ffffff;
background-color: var(--blue);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0, 0, 0, .125);
}

.accordion-button::after {
  background-size: 20px;
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
  padding: 25px;
  background-color: #ffffff;
  text-align: justify;
}

.accordion-body p, li{
  font-size: .9rem;
}

.inspection-icon{
  color: var(--red);
  font-size: 1.2rem;
  margin-top: 2px;
}

/* our product */
/* .product-list{
 
} */

#product-list .card{
  box-shadow: 2px 2px 5px #c9c9c9;
}

#product-list .product-title{
  font-size: 1.1rem;
  font-weight: 700;
}

#product-list p.add-charges{
  font-size: .6rem !important;
}

.products-icon i{
  padding-right: 1px;
  font-size: 1.6rem;
  color: var(--red);
}

.product .accordion-item {
  border: none;
  margin-bottom: 16px;
  /* border-radius: 12px; */
  overflow: hidden;
  box-shadow: none;
}

.product .accordion-item:hover {
  transform: none;
  box-shadow: none;
}

.product .accordion-button {
  padding-left: 10px;
  font-weight: 100;
  font-size: .8rem;
  color: #333;
  transition: all 0.3s ease;
}

.bg-light.accordion-button:not(.collapsed) {
  color: var(--light-black);
  background-color: var(--light-white);
}

.products-icon .accordion-button:not(.collapsed){
  color:var(--light-white);
  background-color: rgb(11, 11, 11);
}


.product .accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0, 0, 0, .125);
}

.product .accordion-button::after {
  background-size: 20px;
  transition: all 0.3s ease;
  margin-left: 10px;
}

.product .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='black'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.product .accordion-body {
  background-color: #ffffff;
}



/* tyre alignment */
#tyre-alignment-service p{
  text-align: justify;
}

/* comprehensive */

.list-function{
  width: 500px;
}

.list-function li{
  padding:5px 30px;  
  border-bottom: 1px solid var(--light-black);
}


.list-function li:last-child{
  padding:5px 30px;  
  border-bottom: none;
}

/* insurance finance */
.insurance-card{
  padding:30px 0px;
}


/* contact us */
.contacts{
  width: 100%;
}

.icon-contact{
  width: 40px;
  height: 40px;
}

#other-contacts{
  width: 65%;
  margin: 0 auto;
}

#other-contacts i{
  font-size: 3rem;
}


/* transition scroll */

.reveal.active {
  opacity: 1;
}
.active.fade-top {
  animation: fade-top 1s ease-in;
}
.active.fade-bottom {
  animation: fade-bottom 1s ease-in;
}
.active.fade-left {
  animation: fade-left 1s ease-in;
}
.active.fade-right {
  animation: fade-right 1s linear;
}

.iframe-certs{
  width: 100%;
  height: 85vh;
}

@keyframes fade-top {
  0% {
    transform: translateY(-50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fade-bottom {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes fade-left {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fade-right {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.lazy-load .lazy-content {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.lazy-load.visible .lazy-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}



/* 2xl */
@media (max-width: 1536px) {
  .section {
    max-width: 1380px;
  }
}

/* xl */
@media (max-width: 1280px) {
  .section {
    max-width: 1124px;
  }
}

/* lg */
@media (max-width: 1024px) {
  .section {
    max-width: 768px;
  }
}

/* md */
@media (max-width: 768px) {
  .section {
    max-width: 640px;
  }
  .navbar{
    padding: 20px;
  }
  .navbar>.container-fluid{
    flex-direction: row-reverse;
  }
  .iframe-certs{
    height: 100vh;
  }
}

/* sm */
@media (max-width: 640px) {
  
  .navbar{
    padding: 0px;
    margin: 0px;
  }
  .container-fluid{
    padding: 0px;
    margin: 0px;
  }
  .navbar-collapse{
    background: var(--red);
  }
  .navbar-nav{
    padding-left: 10px;
  }

  .section {
    max-width: 475px;
  }

  .masthead{
    min-height: 80vh;
    color: var(--light-white);
  }
  
  #header_nav{
    height: 100px;
  }

  .masthead .text-overlay{
    position: absolute;
    width: 100%;
    height: 70%;
  }
  
  .masthead h1{
    font-size: 1.4rem;
  }
  
  .masthead .logo{
    width: 18%;
    height: auto;
  }

  .about-us-text{
    text-align: justify;
    margin-top: 25px;
    padding: 0px 15px;
  }

  #why-choose-us p{
    padding: 0px 10px;
  }
  h3.title-header{
    font-size: 1.3rem;
  }
  .end-border{
    border-right: 1px solid white;
  }

  #list-of-services{
    padding: 10px 10px;
  }
  #services-list-card{
    width: 100%;
  }
  .sm-card{
    height: 250px;
  }

  .section-list{
    width: 100%;
  }
  .btn-red{
    font-size: .8rem;
    padding: 5px 8px;
  }

  .accordion-body{
    padding: 5px;
  }
  .inspection-list{
    text-align: left;
  }
  /* tyre page */
  .tyre-list{
    padding: 0 20px;
  }
  .tyre-list .text-description{
    padding: 10px 0px;
  }

  .tyre-list img{
    margin:10px 0px;
  }
  .tyre-list .desktop-img{
    display: none;
  }
  .tyre-list .mobile-img{
    display: block;
  }

  /* ppi */

  #comprehensive-inspection{
    padding: 0px 10px;
  }

  .list-function{
    width: 90vw;
  }
  /* others */
  #tyre-alignment-service h4{
    text-align: center;
  }

  .accordion-item h5{
    padding-left: 1dvh;
  }
  .accordion-item ul{
    padding-left: 40px;
  }


  /* footer */
  .masthead-footer{
   min-height: 10vh;
  }
  .masthead-footer h4{
    font-size: 1rem;
  }

  .masthead2{
    background-position: center;
  }
  .masthead2 .text-overlay {
    width: 95% !important;
  }
  .card-limiter{
    width: 90% !important;
  }
   .iframe-certs{
    height: 110vh;
  }
}

/* xs */
@media (max-width: 475px) {
  .section {
    width: 100%;
  }
   .iframe-certs{
    height: 110vh;
  }
}