/* Fonts */



@font-face {
    font-family: 'Toyota-Type-Regular';
    src: url('../fonts/ToyotaType-Regular.ttf');
    font-display: swap;

}

@font-face {
    font-family: "Toyota-Type-Light";
    src: url('../fonts/ToyotaType-Light.ttf'); 
    font-display: swap;

}
@font-face {
    font-family: "Toyota-Type-Book";
    src: url('../fonts/ToyotaType-Book.ttf'); 
    font-display: swap;

}
@font-face {
    font-family: "Toyota-Type-SemiBold";
    src: url('../fonts/ToyotaType-Semibold.otf'); 
    font-display: swap;

}
@font-face {
    font-family: "Toyota-Type-Black";
    src: url('../fonts/ToyotaType-Black.ttf'); 
    font-display: swap;

}
@font-face {
    font-family: "Toyota-Type-Bold";
    src: url('../fonts/ToyotaType-Bold.ttf'); 
    font-display: swap;
}


/* Fonts End */

/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Prevent font size inflation */
html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
   text-wrap: pretty;
    margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
    list-style: none;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    line-height: 1.5;
    margin: 0;
    font-family: "Toyota-Type";
}

/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
button,
input,
label {
    line-height: 1.1;
}

a{
    text-decoration: none;
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
    text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
    color: currentColor;
}

/* Make images easier to work with */
img,
picture {
    max-width: 100%;
    display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
    font: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
    min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
    scroll-margin-block: 5ex;
}

/* Mobile Styles */

.desktop-show {
    display: none;
}

.mobile-show {
    display: block;
}

.red-bar{
    width: 100%;
    height: 10px;
    background-color: #A20011;
}

.red-bar-space{
    margin-top: 30px;
    margin-bottom: 50px;
}

.red-bar-space-top{
  margin-top: 100px;
}
.red-bar-space-bottom{
  margin-bottom: 74px;
}

:root {
    /* Full grid area variable */
    --fullGrid: 1 / 1 / -1 / -1;
}

header{
    width: 100%;
    background-color: red;
    padding: 1%;
    display: flex;
    flex-flow: row;
}

header .logo{
    width: 300px;
}

#nav-hamburger-items {
    -webkit-transition: none;
    -moz-transition: none;
    -o-transition: none;
    transition: none;
    display: none;
  }

  #nav-hamburger-items a {
    display: block;
    padding: 10px 10px;
    font-family: "Toyota-Type-Regular";
    text-transform: uppercase;
  }
  #nav-hamburger-items > ul {
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }

  #nav-hamburger-items > ul.flex3 {
    display: flex;
    border-top: 3px solid #A20011
  }

  #nav-hamburger-items > ul.flex3 li{
    flex: auto;
    text-align: center;
  }

  #nav-hamburger-items > ul.flex3 li a:last-child{
    flex-flow: row;
    display: flex;
  }

  #nav-hamburger-items > ul > li {
    display: block;
    text-align: left;
    border-bottom: 1px solid #eee;
  }
  #nav-hamburger-items > ul > li:hover ul {
    display: none;
    overflow: hidden;
  }
  #nav-hamburger-items > ul > li.has-children .toggle {
    float: right;
    padding-left: 25px;
  }

  #nav-hamburger-items > ul > li > ul {
    padding: 0;
    display: none;
    list-style-type: none;
    position: relative;
    width: auto;
    right: 0;
    margin: 0;
    -webkit-transition: none;
    -moz-transition: none;
    -o-transition: none;
    transition: none;
  }

  #nav-hamburger-items > ul > li > ul.submenu {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    list-style: none;
    padding: 0;
    background-color: white;
    border-radius: 0 0 10px 10px;
    border-top: 3px solid #A20011;
    overflow: hidden;
}

  

  #nav-hamburger-items > ul > li > ul.submenu li.single{
    grid-column: span 2;
    border: 0;
  }
  
  #nav-hamburger-items > ul > li > ul.submenu.menu.visible {
      display: block;
  }
  #nav-hamburger-items > ul > li > ul.submenu.visible {
      display: grid;
  }

  #nav-hamburger-items > ul > li > ul > li {
    padding: 0;
    text-align: center;
    border: 1px solid #eee;
    overflow: hidden;
  }

  #nav-hamburger-menu {
    margin: 0 auto;
    width: 100%;
    background-color: white;
  }

  #nav-hamburger-stack {
    display: flex;
    align-items: flex-end;
    flex-flow: column;
    margin: 0 auto;
    padding: 25px;
    background: #fff;
  }

  .nav-hamburger-bar {
    height: 2px;
    width: 25px;
    background-color: #000;
    margin: 3px 0;
  }

  .open #nav-hamburger-menu {
    display: block;
  }
  .open #nav-hamburger-stack {
    border-radius: 0;
  }
  .open .nav-hamburger-bar {
    opacity: 0;
  }
  .open .nav-hamburger-bar:first-child {
    top: 8px;
    position: relative;
    -moz-transform: rotate3d(0, 0, 1, 45deg);
    -webkit-transform: rotate3d(0, 0, 1, 45deg);
    -o-transform: rotate3d(0, 0, 1, 45deg);
    -ms-transform: rotate3d(0, 0, 1, 45deg);
    transform: rotate3d(0, 0, 1, 45deg);
    opacity: 1;
  }
  .open .nav-hamburger-bar:last-child {
    top: -8px;
    position: relative;
    -moz-transform: rotate3d(0, 0, 1, -45deg);
    -webkit-transform: rotate3d(0, 0, 1, -45deg);
    -o-transform: rotate3d(0, 0, 1, -45deg);
    -ms-transform: rotate3d(0, 0, 1, -45deg);
    transform: rotate3d(0, 0, 1, -45deg);
    opacity: 1;
  }

  
  /* New styles for showing/hiding the navigation */
  #nav-hamburger-menu {
    transition: top 0.3s;
    position: fixed;
    width: 100%;
    z-index: 1000;
  }

  #nav-hamburger-menu.hidden {
    top: -100px; /* Adjust this value as needed */
  }

  #nav-hamburger-menu.visible {
    top: 0;
  }

.video-header {
    /* Create grid spanning viewport width & height */
    display: grid;
    grid-template-rows: 100vh;
    overflow: hidden;
}

.container {
    width: 100%;
    margin: 0 auto;
}

.video-bg {
    /* Span the full grid */
    grid-area: var(--fullGrid);

    /* Re-size video to cover full screen while maintaining aspect ratio */
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    max-width: 100%;
    height: auto;

    /* Display video below overlay */
    z-index: -1;
}

.video-bg::-webkit-media-controls {
    display: none !important;
}

.video-overlay {
    /* Span the full grid */
    grid-area: var(--fullGrid);

    /* Center Content */
    display: grid;
    justify-content: center;
    align-content: center;
    text-align: center;

    /* Semi-transparent background */
}

h1 {
    font-size: calc(1em + 2.5vw);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 5px;
    text-transform: uppercase;
}

section {
    margin: 0 auto;
    overflow: hidden;
}

.section-space{
    padding: 75px 0;
}

.tgs-button{
    margin: 20px 0;
    font-family: "Toyota-Type-SemiBold";
    border-radius: 5px;
    background: #135F67;
    display: inline-flex;
    padding: 10px 20px;
    color: #FFF;
    text-transform: uppercase;
    border: 0;
    cursor: pointer;
}


.tgs-quote{
    margin-top: -105px;
    left: 50%;
    margin-left: -125px;
    position: absolute;
    width: 250px;
    background: #ECECEC;
    padding: 35px 15px;
    border-radius: 25px;
    text-align: center;
}

.tgs-quote p{
    margin: 0;
    font-size: 12px;
    color: #000;
    font-family: "Toyota-Type-Bold";
}

.tgs-quote img{
    width: 80%;
    margin: 20px auto 0;
}

h2 {
    font-size: calc(2em + 0.2vw);
    font-weight: 600;
    text-align: left;
    margin: 1.2em 0;
    color: #111;
    font-family: "Toyota-Type-Light";
    text-transform: uppercase;

}

h2.long{
  font-size: calc(1.1em + 0.2vw);
}

p {
    font-size: calc(1em + 0.2vw);
    font-weight: 300;
    line-height: 1.5;
    color: #222;
    font-family: "Toyota-Type-Light";
}

p.longform{
  line-height: 1.3;
  letter-spacing: 0;
  margin-bottom: 40px;
}

.scroll-down-arrow {
    background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2hldnJvbl90aGluX2Rvd24iIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDIwIDIwIiBmaWxsPSJ3aGl0ZSIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHBhdGggZD0iTTE3LjQxOCw2LjEwOWMwLjI3Mi0wLjI2OCwwLjcwOS0wLjI2OCwwLjk3OSwwYzAuMjcsMC4yNjgsMC4yNzEsMC43MDEsMCwwLjk2OWwtNy45MDgsNy44M2MtMC4yNywwLjI2OC0wLjcwNywwLjI2OC0wLjk3OSwwbC03LjkwOC03LjgzYy0wLjI3LTAuMjY4LTAuMjctMC43MDEsMC0wLjk2OWMwLjI3MS0wLjI2OCwwLjcwOS0wLjI2OCwwLjk3OSwwTDEwLDEzLjI1TDE3LjQxOCw2LjEwOXoiLz48L3N2Zz4=);
    background-size: contain;
    background-repeat: no-repeat;
}

.scroll-down-link {
    position: absolute;
    z-index: 100;
    cursor: pointer;
    height: 60px;
    width: 60px;
    margin: 0px 0 0 -30px;
    line-height: 60px;
    left: 50%;
    bottom: 10px;
    color: #FFF;
    text-align: center;
    font-size: 70px;
    text-decoration: none;
    text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.4);
    -webkit-animation: fade_move_down 2s ease-in-out infinite;
    -moz-animation: fade_move_down 2s ease-in-out infinite;
    animation: fade_move_down 2s ease-in-out infinite;
    /*animated scroll arrow animation*/
}

@-webkit-keyframes fade_move_down {
    0% {
        -webkit-transform: translate(0, -20px);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        -webkit-transform: translate(0, 20px);
        opacity: 0;
    }
}

@-moz-keyframes fade_move_down {
    0% {
        -moz-transform: translate(0, -20px);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        -moz-transform: translate(0, 20px);
        opacity: 0;
    }
}

@keyframes fade_move_down {
    0% {
        transform: translate(0, -20px);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translate(0, 20px);
        opacity: 0;
    }
}


.where-we-are{
    display: flex;
    flex-flow: column-reverse;
    width: 100%;
}

.tgs-intro, .map-text{
    padding: 20px 25px;
}

.tgs-intro p, .map-text p{
    width: 80%;
    font-family: "Toyota-Type-Light";

}

/* Fleet Services Tabs */

.counter-wrapper{
    font-family: "Toyota-Type-light";
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 1.5rem;
    padding: 0px 0 50px;
    position: relative;
}
.counter-wrapper::before{
    position: absolute;
    content: '';
    content: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.counter{
    margin-top: 45px;
   text-align: center;   
   color: #000;
   z-index: 2;
   position: relative;
}
.counter::before{
    position: absolute;
    content: '';
    bottom: -1rem;
    left: 50%;
    width: 20%;
    height: .2rem;
    background: #A20011;
    border-radius: .5rem;
    -webkit-border-radius: .5rem;
    -moz-border-radius: .5rem;
    -ms-border-radius: .5rem;
    -o-border-radius: .5rem;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
}
.counter .count{
    font-size: 2.5rem;
}
.counter p{
    margin-top: 10px;
    font-size: 1.4rem;
    font-family: "Toyota-Type-light";
    font-weight: 700;
}

.model-title, .fleet-services, .site-map{
    text-align: center;
    font-family: "Toyota-Type-Bold";
    letter-spacing: 2px;
    color: #000;
}

/* Model Template */

.model-image{
  min-height: 400px;
  padding-top: 74px;
}

.background-alt{
    background: #ECECEC !important;
}
.model-intro p {
    width: 80%;
    text-align: left;
    margin: 30px auto;
}

.y-img{
    width: 80%;
    margin: 0 auto;
}

iframe{
    width: 80%;
    margin: 0 auto;
    display: block;
    height:230px;
}

.action{
  padding: 25px 0;
  text-align: center;
}

.action a{
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "Toyota-Type-SemiBold";
  padding: 10px;
}

.action a:hover{
  text-decoration: underline;
}

.mtab {
    background-color: #ECECEC;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
  
  /* Style the buttons that are used to open the tab content */
  .mtab button {
    display: block;
    background-color: inherit;
    color: black;
    padding: 10px 16px;
    width: 100%;
    border: none;
    outline: none;
    text-align: left;
    cursor: pointer;
    transition: 0.3s;
    filter: opacity(0.5);
    will-change: transform;
  }

  .mtab button p{
    text-align: center;
    font-family: "Toyota-Type-SemiBold";
    text-transform: uppercase;
  }

  .mtab button p.code{
    margin: 0 auto;
  }
  
  /* Change background color of buttons on hover */
  .mtab button:hover {
    background-color: #ddd;
  }
  
  /* Create an active/current "tab button" class */
  .mtab button.active {
    background-color: #fff;
    border-bottom: 5px solid #A20011;
    filter: none;
  }

  .mtab .mtablinks1.active,   .mtab .mtablinks2.active,   .mtab .mtablinks3.active,   .mtab .mtablinks4.active{
    border-bottom: 0;
  }

  
  /* Style the tab content */
  .mtabcontent {
    float: left;
    padding: 0px 12px;
    background: #fff;
    width: 100%;
    border-left: none;
  }

  .mtabcontent h2,  .mtabcontent1 h2,  .mtabcontent2 h2,  .mtabcontent3 h2{
    text-align: center;
    text-transform: uppercase;
    margin-top: 0; /* Changed from 10px */
    margin-bottom: 0;
    font-family: "Toyota-Type-Bold";
    font-size: calc(1.2em + 0.2vw)
  }


  .mtabcontent p,  .mtabcontent1 p,  .mtabcontent2 p,   .mtabcontent3 p{
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
  }

  .mtabcontent1 a button, .mtabcontent2 a button, .mtabcontent3 a button, .mtabcontent4 a button{
    margin: 30px auto;
    text-decoration: none;
    display: flex;
  }

  .mtabcontent img,  .mtabcontent2 img, .mtabcontent2 img, .mtabcontent3 img{
    margin: 0 auto 30px;
  }



  .variant-banner{
    font-family: "Toyota-Type-Regular";
    margin: 0 auto; 
    width:95%; 
    padding: 50px 0;
    text-align: center;
    background: #ffffff;
  }

  .mtabcontent .single-engine{  
    margin-top: 30px;
    width: 80%;
  }


  /* Model Template End */


.tab {
    float: left;
    background-color: #ECECEC;
    width: 23%;
}
  
  /* Style the buttons that are used to open the tab content */
  .tab button {
    display: block;
    background-color: inherit;
    color: black;
    padding: 10px 16px;
    width: 100%;
    border: none;
    outline: none;
    text-align: left;
    cursor: pointer;
    transition: 0.3s;
  }
  
  /* Change background color of buttons on hover */
  .tab button:hover {
    background-color: #ddd;
  }
  
  /* Create an active/current "tab button" class */
  .tab button.active {
    background-color: #fff;
    border-bottom: 1px solid #A20011;
  }
  
  /* Style the tab content */
  .tabcontent {
    float: left;
    padding: 0px 12px;
    background: #fff;
    width: 77%;
    border-left: none;
  }

  .tabcontent h2{
    text-align: center;
    text-transform: uppercase;
  }


  .tabcontent p{
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
  }

  .tabcontent a button{
    margin: 30px auto;
    text-decoration: none;
    display: flex;
  }

  .tabcontent img{
    margin: 0 auto 30px;
  }

  .rospa-image{
    background: #fff;
  }

  .rospa-image img{
    width: 60%;
    margin: 40px auto;
    padding: 0 20px 20px
  }


  .models-by-usage h2{
    text-align: center;
    text-transform: uppercase;
    font-size: calc(1em + 0.2vw);
    margin: 10px 0 0;
    font-family: "Toyota-Type-Bold";

  }

  .models-by-usage button{
    padding: 20px 20px;
  }

  /* Style the tab content */
  .mbutabcontent {
    float: left;
    padding: 0px 12px;
    background: #fff;
    width: 100%;
    border-left: none;
  }

 .mbutabcontent h2{
    text-align: center;
    text-transform: uppercase;
    margin: 75px 0 30px;
    font-family: "Toyota-Type-regular";
    font-size: calc(1.2em + 0.2vw)
  }

  .mbutabcontent .model-group h2{
    grid-column: span 2;
  }
  .mbutabcontent .model-group.mbu h2{
    grid-column: span 2;
    margin-bottom: 0;
  }

  .mbutabcontent .model-group.conv h2{
    margin-bottom: 20px;
  }

  .mbutabcontent .model-group.mbu p{
    margin-top: 0;
  }

  .mbutabcontent .model-group p{
    grid-column: span 2;
    text-align: center;
    font-size: calc(1em + 0.2vw);
    margin-bottom: 30px;
  }

  .mbutabcontent .model-group{
    display: grid;
    grid-template-columns: repeat(2, 2fr);
    font-family: "Toyota-Type-light";
    margin: 5px;


  }

  .sustabcontent .model-group{
    display: grid;
    grid-template-columns: repeat(3, 2fr);
    font-family: "Toyota-Type-light";

  }

  .sustabcontent .model-card{
    margin: 5px;
    border: 0;
    border-radius: 5px;
  }

  .mbutabcontent .model-card{
    margin: 5px;
    border: 1px solid #b9b9b9;
    border-radius: 5px;
  }

  .mbutabcontent .model-card-details{
    padding: 10px;
    text-transform: uppercase;
  }

  .mbutabcontent .model-card-details h3{
    font-family: "Toyota-Type-bold";
    margin: 0 0 10px;
    padding-bottom: 17px;
  }

  .mbutabcontent .conv .model-card-details h3{
    font-family: "Toyota-Type-regular";
    font-size: 16px;
    margin: 0 0 10px;
  }

  .mbutabcontent .model-card-details p{
    font-family: "Toyota-Type-regular";
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
    text-align: left;
  }

  .mbutabcontent .model-card-details p:last-child{
    font-family: "Toyota-Type-bold";
  }

  .mbutabcontent .conv .model-card-details p:last-child{
    font-family: "Toyota-Type-regular";
  }

  .white-main-header-short h1{
    position: absolute;
    left: 50%;
    top: 20%;
    transform: translate(-50%,-50%);
    -webkit-transform: translate(-50%,-50%);
    color: #fff;
    text-align: center;
    font-family: "Toyota-Type-Bold";
    letter-spacing: 15px;
  }

  .white-main-header h1{
    position: absolute;
    left: 50%;
    top: 20%;
    transform: translate(-50%,-50%);
    -webkit-transform: translate(-50%,-50%);
    color: #fff;
    text-align: center;
    font-family: "Toyota-Type-Bold";
    letter-spacing: 10px;
  }

  .site-map-list ul{
    list-style-type: none;
    line-height:1.5;
    font-family: "Toyota-Type-light";
    padding: 20px;
  }
  .site-map-list ul li{
    list-style-type: none;
    font-family: "Toyota-Type-semiBold";
    font-size: 32px;
  }

  .site-map-list ul li ul li{
    list-style-type: none;
    font-family: "Toyota-Type-light";
    font-size: 18px;
  }

  .site-map-list ul li a:hover, .site-map-list ul li ul li a:hover{
    text-decoration: underline;
    cursor: pointer;
  }

.engine-title{
  margin-top: 50px;
  text-align: center;
}

.engine-image{
  margin: 0 auto;
  width: 100%;
}

.engine-table h3{
  font-family: "Toyota-Type-light";
}

ul.engine-list{
  font-family: "Toyota-Type-Regular";
  list-style-type: none;
  line-height: 2;
}

.engine-details{
  width: 100%;
  display: flex;
  flex: 1 1;
  flex-flow: column-reverse;
  align-items: center;
  justify-content: center;
}

.models-container{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.models{
  display: grid;
}
.mtabcontent .technical-specs{
  font-family: "Toyota-Type-light";
  margin: 0 0 50px;
}
.highlight-container{

  margin-top: 50px;
}
  .highlight-article{
    margin: 12.5px;
    display: flex;
    flex-flow: column;
    font-family: "Toyota-Type-light";
    position: relative;
    padding: 10px;
    background: #fff;
  }

  .highlight-text{
    background:rgba(255,255,255,0.7);
    padding: 10px;
    position: absolute;
    bottom: 0;
    right: 0;
  }

  .highlight-text p{
    font-size: 12px;
  }

  .highlight-text h3{
    font-size: 14px;
  }

.side-announcement-container{
  display: flex;
   flex-flow: row;
   margin: 7.5px;
  }

  .side-announcement{
    background-color: #fff;
    font-family: "Toyota-Type-light";
    text-wrap: balance;
    color:#000;
    margin: 6.25px;
    padding: 12.5px;
  }

  .side-announcement{
    font-size: 12px;

  }

  .news-container{
    margin-top: 50px;
    margin-bottom: 50px;
  }

  .news-box {
    display: flex;
    flex-flow: column;
    font-family: "Toyota-Type-light";
    grid-gap: 15px;
    margin: 15px;
 }

  .article{ 
    background-color: #fff;
    display: flex;
    flex-flow: row;
    flex: 1 1 0;
    
  }
  .article-image{ 
    width: 50%;
    min-width: 50%;
  }

  .article-text{
    align-self: center;
    flex-flow: column;
    display: flex;
    padding: 0 10px 0 30px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  
  .article-text p{
    font-size: 10px;
  }

  .article-text h3{
    font-size: 14px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .amb-grid .model-group{
    display: grid;
    grid-template-columns: repeat(2, 2fr);
    font-family: "Toyota-Type-light";
  }

  .amb-grid img{
    border-radius: 5px;
  }

  .amb-grid .model-card{
    margin: 5px;
    border-radius: 5px;
    position: relative;
  }

  /* .amb-grid .amb-card-details{
    position: absolute;
    bottom:30px;
    padding: 10px;
  } */

  .amb-grid h3{
    width: 100%;
    position: absolute;
    color: #fff;
    font-family: "Toyota-Type-Light";
    margin: 20px 0 10px;
    text-align: center;
    left: 50%;
    transform: translate(-50%, 0);
    letter-spacing: 5px;
    text-transform: uppercase;
    font-size: 22px;
  }

  /* .amb-grid .conv .amb-card-details h3{
    font-family: "Toyota-Type-Light";
    font-size: 16px;
    margin: 0 0 10px;
  } */

  .amb-grid .amb-card-details p{
    width: 100%;
    position: absolute;
    color: #fff;
    font-family: "Toyota-Type-Light";
    margin: 20px 0 10px;
    text-align: center;
    left: 50%;
    transform: translate(-50%, 0);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 12px;
    bottom: 20px;
    max-inline-size: 50ch;
    text-wrap: balance;
  }

  /* .amb-grid .conv .amb-card-details p:first-child{
    margin-bottom: 25px;
    font-family: "Toyota-Type-regular";
  } */

.contact-text{
  padding-top: 100px;
}

.contact-dropdown{
  margin: 50px auto;
  display: block;
}

.contact-dropdown select{
  margin: 0 auto;
  display: block;
  padding: 15px 30px;
  border-radius: 5px;
  font-family: "Toyota-Type-Semibold";
  color: #000;
  text-decoration: none;
}

.contact-dropdown select:focus-visible{
  border: 1px solid #000;
}

.contact-text h1{
  font-size: calc(1.4em + 0.2vw);
  font-weight: 600;
  text-align: center;
  margin: 1.2em 0;
  color: #111;
  font-family: "Toyota-Type-Bold";
  text-transform: uppercase;
}

.contact-text h2{
  text-align: center;

}
.contact-text p {
  text-align: center;
  line-height: 0.5;
  width: 100%;
}

.contacttabcontent {
  float: left;
  padding: 0px 12px;
  background: #fff;
  width: 100%;
  border-left: none;
}

.contacttabcontent h2{
  text-align: center;
  text-transform: uppercase;
  margin: 0px 0 30px;
  padding-top: 50px;
  letter-spacing: 1.5px;
  font-family: "Toyota-Type-regular";
  font-size: calc(1.2em + 0.2vw)
}

.contacttabcontent .model-group h2{
  grid-column: span 2;
}
.contacttabcontent .model-group.mbu h2{
  grid-column: span 2;
  margin-bottom: 0;
}

.contacttabcontent .model-group.conv h2{
  margin-bottom: 20px;
}

.contacttabcontent .model-group.mbu p{
  margin-top: 0;
}

.contacttabcontent .model-group p{
  margin-top: 0;
  grid-column: span 2;
  text-align: left;
  font-size: calc(1em + 0.2vw);
  font-family: "Toyota-Type-light";
}

.contacttabcontent .model-group p.title{
  font-family: "Toyota-Type-Regular";
}


.contacttabcontent .model-group{
  display: grid;
  grid-template-columns: repeat(2, 2fr);
  font-family: "Toyota-Type-light";
}

.contacttabcontent .model-card{
  margin: 5px;
  border-radius: 5px;
  text-align: left;
}

.contacttabcontent .model-card-details{
  padding: 10px;
  text-transform: uppercase;
}

.contacttabcontent .model-card-details h3{
  font-family: "Toyota-Type-bold";
  margin: 0 0 10px;
}

.contacttabcontent .model-group.conv h3{
  font-family: "Toyota-Type-Bold";
  text-transform: uppercase;

}

.contacttabcontent .conv .model-card-details h3{
  font-family: "Toyota-Type-Bold";
  font-size: 14px;
  margin: 0 0 10px;
}

.contacttabcontent .model-card-details p{
  font-family: "Toyota-Type-Light";
  font-size: 12px;
  line-height: 1.2;
  margin: 0;
  text-align: left;
}

.contacttabcontent .model-card-details p:last-child{
  font-family: "Toyota-Type-bold";
}

.contacttabcontent .conv .model-card-details p:last-child{
  font-family: "Toyota-Type-regular";
}

.model-card:hover .overlay{
  width: 100%;
  height: 100%;
background:rgba(0,0,0,0.6);
position:absolute;
top:0;
left:0px;
display:flex;
justify-content: space-around;
flex-flow: column;
-webkit-box-sizing:border-box;
-moz-box-sizing:border-box;
box-sizing:border-box;
text-align:center;
color:white;
padding:12px;
font-size:20px;
cursor: pointer;
}

.dropdown-container {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  flex-flow: column;
}
.label-container{
  display: flex;
  flex-flow: column;
}
#copyButton, #resetButton{
margin: 20px 0;
font-family: "Toyota-Type-SemiBold";
border-radius: 5px;
background: 0;
display: inline-flex;
padding: 10px 20px;
color: #000;
text-transform: uppercase;
border: 1px solid #135F67;
cursor: pointer;
}

#copyButton:hover, #resetButton:hover{
  margin: 20px 0;
font-family: "Toyota-Type-SemiBold";
border-radius: 5px;
background: #135F67;
display: inline-flex;
padding: 10px 20px;
color: #FFF;
text-transform: uppercase;
border: 1px solid #135F67;
cursor: pointer;
}

#copyButton{
  float: right;
}

.dropdown-container select {
  margin: 0 0px;
  padding: 20px 10px;
  display: inline-block;
  /* 1 */
  position: relative;
  /* 2 */
  vertical-align: middle;
  /* 3 */
  overflow: hidden;
  /* 5 */
  background: #fff;
  color: #000;
  border: 1px solid #aaa;
  text-shadow: none;
  border-radius: 4px;
  transition: box-shadow 0.25s ease;
  font-family: "Toyota-Type-semiBold";
  font-size: 12px;

}

.dropdown-container select:hover {
  box-shadow: 0 1px 4px rgba(#000, 0.15);
}


footer{
  width: 100%;
  padding: 30px;
}

.footer-container {
  display: flex;
  flex-flow: column;
  font-family: "Toyota-Type-light";
}
.footer-container ul{
  flex-flow: column;
  display: flex;
  padding: 0;
}

.footer-container ul li{
  text-align: center;
  flex-flow: column;
  display: inline-flex;
}

.footer-container .sm-icons{
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  flex-flow: row;
  display: inline-flex;
  justify-content: center;
}

.footer-container .sm-icons a{
  width: 100%;
  display: inline-flex;
  justify-content: center;
  flex-flow: row;
  margin: 10px;
}

.copyright{
  text-align: center;
  font-size: 12px;
}

.mtabcontent .disclaimer-tag{
  font-size: 10px;
  margin: 0 auto;
  padding-bottom: 50px;
}
/* Mobile Styles END*/


/* Mid Styles */

@media (min-width: 600px) and (max-width: 1200px) {


    .container {
        width: 100%;
        max-width: 1280px;
    }

    h2.long{
      font-size: calc(1.5em + 0.2vw);
    }


    .desktop-show {
        display: none;
    }

    .mobile-show {
        display: block;
    }

    .map img{
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    
    .tgs-intro, .map-text{
        padding: 20px 25px;
    }
    
    .tgs-intro p, .map-text p{
        width: 80%;
        font-family: "Toyota-Type-Light";
    
    }

    .tab {
        float: left;
        border: 1px solid #ccc;
        background-color: #f1f1f1;
        width: 100%;
        display: inline-flex;
    }

      /* Style the tab content */
  .tabcontent {
    float: left;
    padding: 0px 12px;
    border: 1px solid #ccc;
    width: 100%;
    border-left: none;
  }

  .tabcontent h2{
    text-align: center;
    text-transform: uppercase;
  }


  .tabcontent p{
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
  }

  .engine-details{
    flex-flow: column-reverse;
  }

  .highlight-container{
    display: flex;
    flex-flow: column;
  }

  .highlight-article{
    margin: 12.5px;
    flex: 4;
    display: flex;
    flex-flow: row;
    font-family: "Toyota-Type-light";
    position: relative;
  }

  .highlight-text{
    background:rgba(255,255,255,0.7);
    position: absolute;
    bottom: 40px;
    right: 0px;
    padding: 0 20px 20px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .highlight-text p{
    font-size: 10px;
    text-align: right;
  }

  .highlight-text h3{
    font-size: 24px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }


.side-announcement-container{
  display: flex;
   flex-flow: row;
   margin: 7.5px;
   flex: 1;
  }

  .side-announcement{
    background-color: #fff;
    font-family: "Toyota-Type-light";
    color:#000;
    margin: 6.25px;
    padding: 12.5px;
  }

  .side-announcement{
    font-size: 12px;
  }

  .news-box {
    display: block;
    font-family: "Toyota-Type-light";
 }
  
  .article{ 
    background-color: #fff;
    display: inline-flex;
    flex-flow: row;
    width: 47%;
    margin: 1%;
    justify-content: space-between;
  }
  .article-image{ 
    width: 40%;
    min-width: 40%;
  }

  .article-text{
    padding: 0 10px 0 10px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  
  .article-text p{
    font-size: 10px;
  }

  .article-text h3{
    font-size: 14px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }


  .contacttabcontent .model-group{
    display: grid;
    grid-template-columns: repeat(4, 2fr);
    font-family: "Toyota-Type-light";
  }

  .contacttabcontent h2{
    text-align: center;
    text-transform: uppercase;
    margin: 10px 0 30px;
    padding-top: 50px;
    font-family: "Toyota-Type-regular";
    font-size: calc(1.2em + 0.2vw)
  }
    
}

/* Mid Styles END*/

/* Desktop Styles */

@media (min-width: 1201px) {

  
  h2.long{
    font-size: calc(2em + 0.2vw);
  }

    #nav-hamburger-menu{
        padding: 0 25px;
        border-bottom: 3px solid #A20011;
    }

    #nav-hamburger-stack{
        display: none;
    }

    #nav-hamburger-items {
        display: flex !important;
        flex-flow: row;
        font-size: 15px;
      }

      #nav-hamburger-items .logo{
        align-self: center;
        min-width: 200px;
        max-width: 200px;
      }

      #nav-hamburger-items a:link, #nav-hamburger-items a:visited {
        text-decoration: none;
        color: #444;
      }
      #nav-hamburger-items a:hover, #nav-hamburger-items a:active {
        color: #A20011;
      }
      #nav-hamburger-items > ul {
        display: flex;
        justify-content: flex-start;
        list-style: none;
      }

      #nav-hamburger-items ul >li > a {
        padding: 15px 15px;
      }

      #nav-hamburger-items > ul.sub {
        justify-content: end;
      }
      #nav-hamburger-items > ul > li {
        position: relative;
        display: table-cell;
        padding: 20px 0;
        text-align: center;
        border-top: 0;
        border-bottom: 0;
      }
      #nav-hamburger-items > ul > li:hover > a {
        color: #ff5858;
      }
      #nav-hamburger-items > ul > li:hover ul {
        display: none;
        overflow: hidden;
      }

      #nav-hamburger-items > ul > li > ul.submenu {
        display: none;
        grid-template-columns: repeat(2, 1fr);
        list-style: none;
        position: absolute;
        left: 50%;
        margin-left: -100px;
        margin-top: 20px;
        width: 400px;
        padding: 0;
        background-color: white;
        border-radius: 0 0 10px 10px;
        border-top: 3px solid #A20011;
        border-left: 1px solid #444;
        border-right: 1px solid #444;
        border-bottom: 1px solid #444;
        overflow: hidden;
}
#nav-hamburger-items > ul > li > ul.submenu li.single{
  grid-column: span 2;
  border: 1px;
}

#nav-hamburger-items > ul > li > ul.submenu.menu.visible {
    display: block;
}
#nav-hamburger-items > ul > li > ul.submenu.visible {
    display: grid;
    z-index: 1000;
}


      #nav-hamburger-items > ul > li > ul.submenu.menu {
        display: none;
        list-style: none;
        position: absolute;
        left: 50%;
        margin-left: -139px;
        margin-top: 20px;
        width: 200px;
        padding: 0;
        background-color: white;
      }

      #nav-hamburger-items > ul > li > ul > li {
        /* padding: 10px 10px; */
        text-align: center;
      }
      #nav-hamburger-items > ul > li > ul > li:last-child {
        border-bottom: none;
      }

      .flex2{
        flex:  1 1 auto;
      }

      #nav-hamburger-items > ul.flex3 {
        border-top: 0;
      }

      .flex3{
         flex: 0 0 200px;
      }


      .red-bar-space-bottom{
        margin-bottom: 87px;
      }
    .container {
        width: 100%;
        max-width: 1280px;
    }

    .desktop-show {
        display: block;
    }

    .mobile-show {
        display: none;
    }

    .white-main-header-short h1{
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%,-50%);
      -webkit-transform: translate(-50%,-50%);
      color: #fff;
      text-align: center;
      font-family: "Toyota-Type-Bold";
      letter-spacing: 15px;
    }

    .white-main-header h1{
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%,-50%);
      -webkit-transform: translate(-50%,-50%);
      color: #fff;
      text-align: center;
      font-family: "Toyota-Type-Bold";
      letter-spacing: 15px;
    }

    .model-image{
      margin-top: 0;
    }

    .tgs-who-we-are{
        display: flex;
        flex-flow: row-reverse;
        margin: 100px 0;

    } 
    .tgs-capabilities{
        display: flex;
        flex-flow: row;
        margin: 100px 0;
    }
    .tgs-capabilities .tgs-intro{
        width: 60%;
        display: flex;
        align-items: center;
    }

    .tgs-capabilities .tgs-intro h2,
    .tgs-who-we-are .tgs-intro h2{
    text-align: left;
    }

    .tgs-who-we-are img{
        width: 40%;
    }

    .where-we-are{
        display: flex;
        flex-flow: row;
        width: 100%;
        line-height: 0;
    }

    .map img{
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    
    .map-text{
        padding: 120px 0px;
        margin-left: 100px;
    }


    .map-text h2{
        width: 60%;
        margin-left: 90px;
    }
        .map-text p{
        width: 50%;
        margin-left: 90px;
    }

    .tgs-intro h2{
        text-align: center;
    }


    .model-intro p {
        width: 60%;
    }


    .y-img{
      width: 60%;
      margin: 0 auto;
  }

  iframe{
    width: 60%;
    margin: 0 auto;
    display: block;
    height:430px;
}

    .mtab {
        float: none;
        border: 0;
        width: 95%;
        display:flex;
        margin: 0 auto;
    }

    .mtab button {
        display: block;
        background-color: inherit;
        color: black;
        padding: 22px 22px;
        width: 70%;
        border: none;
        outline: none;
        text-align: left;
        cursor: pointer;
        transition: 0.3s;
      }

      /* Style the tab content */
  .mtabcontent {
    float: none;
    padding: 0px 12px;
    border: 0;
    width: 95%;
    border-left: none;
    margin: 0 auto 50px;
    background: #fff;
  }

  .mbutabcontent {
    float: none;
    padding: 0px 12px;
    border: 0;
    width: 95%;
    border-left: none;
    margin: 0 auto 50px;
    background: #fff;
  }

  .models-by-usage h2{
    text-align: center;
    text-transform: uppercase;
    font-size: calc(1.3em + 0.2vw);
    margin: 10px 0 0;
    font-family: "Toyota-Type-Bold";
  }

  .models-by-usage button{
    padding: 22px 118px;
  }
  .mtabcontent h2{
    text-align: center;
    text-transform: uppercase;
  }

  .mtabcontent h2,  .mtabcontent1 h2,  .mtabcontent2 h2,  .mtabcontent3 h2{
    font-size: calc(2.2em + 0.2vw);
  }

  .mtabcontent p{
    text-align: center;
    margin-bottom: 30px;
    width: 65%;
    text-align: center;
    margin: 40px auto 40px;
    font-size: 16px;
  }

  .mtabcontent img{
    width: 90%;
    margin: 0 auto 30px;
  }

  
  .mbutabcontent .model-group{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    font-family: "Toyota-Type-light";
  }

  .sustabcontent .model-group{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    font-family: "Toyota-Type-light";
  }

  .mbutabcontent .model-card{
    margin: 10px;
    border: 1px solid #b9b9b9;
    border-radius: 5px;
  }

  .mbutabcontent .model-card-details{
    padding: 20px;
    text-transform: uppercase;
  }

  .mbutabcontent .model-group h2{
    grid-column: span 4;
    font-size: calc(2em + 0.2vw);
  }

  .mbutabcontent .model-group.mbu h2{
    grid-column: span 4;
    margin-bottom: 0;
  }

  .mbutabcontent .model-group.conv h2{
    margin-bottom: 20px;
  }

  .mbutabcontent .model-group.mbu p{
    margin-top: 0;
    grid-column: span 4;
  }


  .mbutabcontent h2{
    margin-top: 75px;
  }

  .mtabcontent .single-engine{  
    width: 50%;
  }

  .logistics-wrapper{
      grid-template-columns: repeat(3, 1fr) !important;
  }

.counter-wrapper{
  padding: 100px 0 150px;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1280px;
    margin: 0 auto;
}
.counter-wrapper::before{
    position: absolute;
    content: '';
    content: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.counter{
    margin-top: 0;
    text-align: center;   
    color: #000;
    z-index: 2;
    position: relative;
 }
 .counter::before{
    display: none;
     position: absolute;
     content: '';
     bottom: -2rem;
     left: 50%;
     width: 20%;
     height: .2rem;
     background: #A20011;
     border-radius: .5rem;
     -webkit-border-radius: .5rem;
     -moz-border-radius: .5rem;
     -ms-border-radius: .5rem;
     -o-border-radius: .5rem;
     transform: translateX(-50%);
     -webkit-transform: translateX(-50%);
     -moz-transform: translateX(-50%);
     -ms-transform: translateX(-50%);
     -o-transform: translateX(-50%);
 }
 .counter .count{
    margin-top: 10px;
     font-size: 5rem;
     margin-bottom: 1rem;    
 }
 .counter p{
     font-size: 1.4rem;
     font-family: "Toyota-Type-light";
     font-weight: 700;
     color: #CD122E;
 }
 

    .tab {
        float: none;
        border: 0;
        width: 70%;
        display:flex;
        margin: 0 auto;
    }

    .tab button {
        display: block;
        background-color: inherit;
        color: black;
        padding: 22px 22px;
        width: 70%;
        border: none;
        outline: none;
        text-align: left;
        cursor: pointer;
        transition: 0.3s;
      }

      /* Style the tab content */
  .tabcontent {
    float: none;
    padding: 10px 12px;
    border: 0;
    width: 77%;
    border-left: none;
    margin: 0 auto 50px;
    background: #fff;
  }

  .tabcontent h2{
    text-align: center;
    text-transform: uppercase;
  }


  .tabcontent p{
    text-align: center;
    margin-bottom: 30px;
    width: 65%;
    text-align: center;
    margin: 10px auto 30px;
    font-size: 16px;
  }

  .tabcontent img{
    width: 70%;
    margin: 0 auto 30px;
  }

  .tgs-rospa{
    display: flex;
    flex-flow: row;
    margin: 100px 0;
    justify-content: right;
}
.tgs-rospa .tgs-intro{
    width: 50%;
    display: flex;
    flex-flow: column;
    align-items: end;
}

.tgs-rospa .tgs-intro h2,.tgs-rospa .tgs-intro p,.tgs-rospa .tgs-intro a{
    text-align: right;
    width: 70%;
}

  .rospa-image{
    width: 35%;
    background: #ECECEC;
  }

  .rospa-image img{
    width: 60%;
    margin: 40px auto;
    padding: 20px
  }

  .tgs-ol{
    display: flex;
    flex-flow: row;
    margin: 100px 0;
    justify-content: left;
}
.tgs-ol .tgs-intro{
    width: 45%;
    display: flex;
    flex-flow: column;
    align-items: start;
}

.tgs-ol .tgs-intro h2,.tgs-ol .tgs-intro p,.tgs-ol .tgs-intro a{
    text-align: left;
    width: 80%;
}

  .tgs-ol-image{
    width: 40%;
    background: #ECECEC;
  }

  .tgs-ol-image img{
    width: 100%;
    margin: 0 auto;
  }


  
  .contacttabcontent {
    float: none;
    padding: 0px 12px;
    border: 0;
    width: 95%;
    border-left: none;
    margin: 0 auto 50px;
    background: #fff;
  }

  .contacttabcontent h2{
    text-align: center;
    text-transform: uppercase;
    margin: 50px 0 30px;
    padding-top: 50px;
    font-family: "Toyota-Type-regular";
    font-size: calc(1.2em + 0.2vw)
  }
  
  .contacttabcontent .model-group{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    font-family: "Toyota-Type-light";

  }

  .contacttabcontent .model-card{
    text-align: center;
    margin: 0 auto;
    margin: 10px;
    border-radius: 5px;
  }

  .contacttabcontent .model-group p {
    text-align: center;
    font-family: "Toyota-Type-regular";
  }

  .contacttabcontent .model-card img{
    margin: 0 auto;
    width: 70%;
  }


  .contacttabcontent .model-card-details{
    padding: 20px;
    text-transform: uppercase;
  }

  .contacttabcontent .model-group h2{
    grid-column: span 4;
    font-size: calc(2em + 0.2vw);
  }

  .contacttabcontent .model-group.mbu h2{
    grid-column: span 4;
    margin-bottom: 0;
  }

  .contacttabcontent .model-group.conv h3{
    margin-bottom: 5px;
  }

  .contacttabcontent .model-group p{
    font-size: 1em;
    margin-top: 0px;
    grid-column: span 4;
  }
  
  .model-card:hover .overlay{
    width: 194px;
    height: 292px;
  background:rgba(0,0,0,0.7);
  position:absolute;
  top:0;
  left:42px;
  display:flex;
  justify-content: space-around;
  flex-flow: column;
  -webkit-box-sizing:border-box;
  -moz-box-sizing:border-box;
  box-sizing:border-box;
  text-align:center;
  color:white;
  padding:12px;
  font-size:20px;
  cursor: pointer;
  }

  .model-card a{
    font-size: 80px;
  }
  .engine-details{
    flex-flow: row;
  }

  .engine-image{
    margin: 0 auto;
    width: 70%;
  }

  .highlight-container{
    display: flex;
    flex-flow: row;
  }

  .highlight-article{
    margin: 12.5px;
    flex: 3;
    display: flex;
    flex-flow: row;
    font-family: "Toyota-Type-Regular";
    position: relative;
  }

  .highlight-text{
    background:rgba(255,255,255,0.7);
    position: absolute;
    bottom: 40px;
    right: 0px;
    padding: 0 20px 20px;
  }

  .highlight-text p{
    font-size: 10px;
    text-align: right;
  }

  .highlight-text h3{
    font-size: 24px;
  }

.side-announcement-container{
  display: flex;
   flex-flow: column;
   margin: 7.5px;
   flex: 1;
   border: 0
  }

  .side-announcement{
    background-color: #fff;
    font-family: "Toyota-Type-light";
    color:#000;
    margin: 6.25px;
    padding: 12.5px;
  }

  .announcement-title p{
    font-size: 12px;
  }
  
  .news-box {
    display: block;
    flex-flow: row;
    font-family: "Toyota-Type-light";
    margin: 0px;
    justify-content: space-between;
 }
  
  .article{ 
    background-color: #fff;
    display: inline-flex;
    flex-flow: row;
    width: 47%;
    margin: 1%;
  }
  .article-image{ 
    width: 40%;
    min-width: 40%;
  }

  .article-text{
    padding: 0px 10px 10px 30px;
    display: flex;
    align-self: center;
    flex-flow: column;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  
  .article-text p{
    font-size: 12px;
  }

  .article-text h3{
    font-size: 16px;
    line-height: 1.5;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .amb-grid .model-group{
    display: grid;
    grid-template-columns: repeat(5, 2fr);
    font-family: "Toyota-Type-light";
    margin-top: 45px;
  }

  .amb-grid .model-card{
    margin: 5px;
    border-radius: 5px;
  }

  .amb-grid .model-card:hover{
    transform: scale(0.99);
    transition: all .2s ease-in-out;

  }


  .amb-grid .amb-card-details{
    padding: 10px;
  }

  .amb-grid  h3{
    position: absolute;
    color: #fff;
    font-family: "Toyota-Type-Light";
    margin: 30px 0 10px;
    left: 50%;
    transform: translate(-50%, 0);
    letter-spacing: 5px;
    text-transform: uppercase;
    font-size: 26px;
  }

  /* .amb-grid .conv .amb-card-details h3{
    font-family: "Toyota-Type-bold";
    font-size: 16px;
    margin: 0 0 10px;
  } */

    .amb-grid .amb-card-details p{
      width: 80%;
      position: absolute;
      color: #fff;
      font-family: "Toyota-Type-Light";
      margin: 20px 0 10px;
      text-align: center;
      left: 50%;
      transform: translate(-50%, 0);
      letter-spacing: 1px;
      text-transform: uppercase;
      font-size: 18px;
      bottom: 70px;
      max-inline-size: 40ch;
      text-wrap: balance;
    }

  /* .amb-grid .amb-card-details p:first-child{
    margin-bottom: 25px;
    position: absolute;
    font-family: "Toyota-Type-light";
    left: 50%;
    transform: translate(-50%, 0);
  } */

  .dropdown-container {
    flex-flow: row;
  }


  footer{
    width: 100%;
    padding: 30px;
  }
  
  .footer-container {
    display: flex;
    flex-flow: row;
    align-items: center;
  }
  .footer-container ul{
    flex-flow: row;
    display: flex;
    padding: 0;
    width: 100%;
  }
  
  .footer-container ul li{
    font-family: "Toyota-Type-light";
    text-align: center;
    flex-flow: column;
    display: inline-flex;
    border-right: 1px solid #000;
    padding:  0 10px;
  }

  
  .footer-container ul li:first-child{
    padding-left: 0;
  }

  .footer-container ul li:last-child{
    border-right: 0;
  }
  
   .footer-container .sm-icons{
    width: 100%;
    max-width: 300px;
    flex-flow: row;
    display: inline-flex;
    justify-content: right;
  }
  .footer-container .sm-icons a img{
    width: 100%;

  }

  .copyright{
    text-align: left;
    font-size: 10px;
  }
}

/* Desktop Styles END*/

/* Training Map Styles */
.training-map-container {
    position: relative;
    width: 100%;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center; /* Center the button */
}

.training-map-container .tgs-button {
    margin: 30px auto 10px;
    display: inline-block;
}

.map-filters {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-group h4 {
    font-family: "Toyota-Type-Bold";
    color: #333;
    margin: 0;
    text-align: center;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* Update filter button styles */
.filter-btn {
    padding: 8px 16px;
    border: 2px solid #A20011;
    border-radius: 4px;
    background: transparent;
    color: #A20011;
    font-family: "Toyota-Type-Regular";
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

/* Active state for all buttons */
.filter-btn.active {
    background: #A20011;
    color: white;
}

/* Remove course-specific colors */
.filter-btn[data-value="ASDT"],
.filter-btn[data-value="QDT"],
.filter-btn[data-value="SMRT"],
.filter-btn[data-value="DCE"],
.filter-btn[data-value="EDE"] {
    border-color: #A20011;
    color: #A20011;
}

.filter-btn[data-value="ASDT"].active,
.filter-btn[data-value="QDT"].active,
.filter-btn[data-value="SMRT"].active,
.filter-btn[data-value="DCE"].active,
.filter-btn[data-value="EDE"].active {
    background: #A20011;
    color: white;
}

/* Hover state */
.filter-btn:hover:not(.active) {
    background: rgba(162, 0, 17, 0.1);
}

/* Mobile styles */
@media (max-width: 768px) {
    .filter-buttons {
        display: none; /* Hide buttons on mobile */
    }

    .mobile-filters {
        display: block; /* Show dropdowns on mobile */
    }

    .filter-group {
        margin-bottom: 15px;
    }

    .filter-group select {
        width: 100%;
        padding: 8px 16px;
        border: 2px solid #A20011;
        border-radius: 4px;
        font-family: "Toyota-Type-Regular";
        background: #fff;
        color: #A20011;
        font-size: 14px;
        cursor: pointer;
    }
}

@media (min-width: 769px) {
    .mobile-filters {
        display: none; /* Hide dropdowns on desktop */
    }

    .filter-buttons {
        display: flex; /* Show buttons on desktop */
    }
}

.map-view {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

.world-map {
    width: 100%;
    height: auto;
    display: block;
}

.map-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.map-marker.filtered {
  display: none;    
  pointer-events: none;
}

.marker-dot {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.map-marker:hover .marker-dot {
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Adjust tooltip positioning and display */
.marker-tooltip {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    background: white;
    padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    min-width: 250px;
    display: none;
    border: 1px solid #A20011;
    transition: transform 0.2s ease;
    pointer-events: none;
}

/* Restore text styling */
.marker-tooltip h4 {
    margin: 0 0 8px;
    color: #A20011;
    font-family: "Toyota-Type-Bold";
    font-size: 16px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.marker-tooltip p {
    margin: 5px 0;
    font-size: 13px;
    font-family: "Toyota-Type-Regular";
    white-space: nowrap;
    color: #333;
}

/* Keep the arrow and other improvements */
.marker-tooltip::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #fff transparent transparent;
}

/* Ensure tooltips are always on top when visible */
.map-marker:hover {
    z-index: 1000;
}

.map-marker:hover .marker-tooltip {
    display: block;
    z-index: 1001;
    transform: translateX(-50%) scale(1);
}

/* Adjust marker positioning for different course types */
.map-marker[data-course="ASDT"] { transform: translate(-50%, -50%) translateY(-8px) translateX(-8px); }
.map-marker[data-course="QDT"] { transform: translate(-50%, -50%) translateY(-8px) translateX(8px); }
.map-marker[data-course="SMRT"] { transform: translate(-50%, -50%) translateY(8px) translateX(-8px); }
.map-marker[data-course="DCE"] { transform: translate(-50%, -50%) translateY(8px); }
.map-marker[data-course="EDE"] { transform: translate(-50%, -50%) translateY(8px) translateX(8px); }

/* Update legend positioning */
.map-legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 300px;
    font-family: "Toyota-Type-Regular";
    z-index: 999; /* Keep legend above map but below tooltips */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .marker-tooltip {
        min-width: 200px;
        font-size: 12px;
        bottom: calc(100% + 10px);
    }

    /* Stack markers vertically on mobile */
    .map-marker[data-course="ASDT"] { transform: translate(-50%, -50%) translateX(-15px); }
    .map-marker[data-course="QDT"] { transform: translate(-50%, -50%) translateX(-7px); }
    .map-marker[data-course="SMRT"] { transform: translate(-50%, -50%); }
    .map-marker[data-course="DCE"] { transform: translate(-50%, -50%) translateX(7px); }
    .map-marker[data-course="EDE"] { transform: translate(-50%, -50%) translateX(15px); }
}

/* View Toggle Styles */
.view-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.toggle-btn {
    padding: 10px 20px;
    border: 2px solid #A20011;
    background: transparent;
    color: #A20011;
    font-family: "Toyota-Type-Regular";
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: #A20011;
    color: white;
}

.toggle-btn:hover:not(.active) {
    background: rgba(162, 0, 17, 0.1);
}

/* View Container Styles */
.view-container {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.view-container.active {
    display: block;
    opacity: 1;
}

/* Add styles for the no results message */
.no-results-message {
    text-align: center;
    padding: 20px;
    margin: 20px 0;
    background: #f8f8f8;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
}

.no-results-message.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.no-results-message p {
    margin: 0;
    color: #A20011;
    font-family: "Toyota-Type-Regular";
    font-size: 16px;
}

/* Adjust marker positioning for different course types */
.map-marker[data-course="ASDT"] { transform: translate(-50%, -50%) translateY(-8px) translateX(-8px); }
.map-marker[data-course="QDT"] { transform: translate(-50%, -50%) translateY(-8px) translateX(8px); }
.map-marker[data-course="SMRT"] { transform: translate(-50%, -50%) translateY(8px) translateX(-8px); }
.map-marker[data-course="DCE"] { transform: translate(-50%, -50%) translateY(8px); }
.map-marker[data-course="EDE"] { transform: translate(-50%, -50%) translateY(8px) translateX(8px); }

/* Mobile adjustments */
@media (max-width: 768px) {
    .map-marker[data-course="ASDT"] { transform: translate(-50%, -50%) translateX(-15px); }
    .map-marker[data-course="QDT"] { transform: translate(-50%, -50%) translateX(-7px); }
    .map-marker[data-course="SMRT"] { transform: translate(-50%, -50%); }
    .map-marker[data-course="DCE"] { transform: translate(-50%, -50%) translateX(7px); }
    .map-marker[data-course="EDE"] { transform: translate(-50%, -50%) translateX(15px); }
}

/* Cookie Consent Styles */
.fixed {
  position: fixed !important;
}

.bottom-8 {
  bottom: 32px !important;
}

.right-8 {
  right: 32px !important;
}


.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.z-50 {
  z-index: 5000;
}

/* Cookie Consent Modal Styles */
.cookie-consent-content {
    padding: 15px;
    position: relative;
}

.cookie-text {
    font-size: 16px;
}

@media (max-width: 640px) {
    .cookie-buttons {
        flex-direction: row;
    }

    .cookie-text {
        font-size: 14px;
    }

    #cookie-consent {
        padding: 15px;
        right: 15px !important;
        bottom: 15px !important;
        max-width: calc(100% - 30px) !important;
    }

    #cookie-consent h2 {
        font-size: 18px;
    }
}

/* Fade in animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#cookie-overlay, #cookie-consent {
    animation: fadeIn 0.5s ease-in-out;
    background: white;
}

/* Close button hover animation */
#close-consent {
    transition: transform 0.2s ease, color 0.2s ease;
}

#close-consent:hover {
    transform: scale(1.2);
}

/* Cookie Consent and Preferences Styles */
.cookie-consent {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 50;
    max-width: 400px;
}

.cookie-consent__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #484848;
    cursor: pointer;
    padding: 0.3125rem;
    line-height: 1;
    transition: color 0.3s ease;
}

.cookie-consent__close:hover {
    color: #A20011;
}

.cookie-consent__title {
    color: #484848;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.9375rem;
    text-align: center;
    letter-spacing: 0.0625rem;
}

.cookie-consent__description {
    color: #484848;
    line-height: 1.4;
    margin-bottom: 0.9375rem;
    text-align: center;
    font-size: 0.875rem;
}

.cookie-consent__links {
    text-align: center;
    margin-bottom: 0.9375rem;
    font-size: 0.875rem;
}

.cookie-consent__link {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cookie-consent__link:hover {
    color: #A20011;
}

.cookie-consent__separator {
    margin: 0 0.625rem;
    color: #484848;
}

.cookie-consent__buttons {
    display: flex;
    justify-content: center;
    gap: 0.625rem;
    margin-top: 0.9375rem;
}

.cookie-consent__button {
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    cursor: pointer;
}

.cookie-consent__button--decline {
    border: 1px solid #000;
    color: #000;
    background: transparent;
    font-family: "Toyota-Type-Regular";
}

.cookie-consent__button--decline:hover {
    background: #000;
    color: white;
}

.cookie-consent__button--accept {
    border: 1px solid #000;
    color: #000;
    background: transparent;
    font-family: "Toyota-Type-Regular";
}

.cookie-consent__button--accept:hover {
    opacity: 0.9;
}

/* Cookie Preferences Styles */
.cookie-preferences {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.cookie-group {
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.cookie-group:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cookie-preferences h1 {
    color: #000;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 1.5em;
}

.cookie-group h2 {
    margin: 0 0 1rem 0;
    font-weight: 600;
    color: #000;
    font-size: 1.25rem;
}

.cookie-description {
    color: #4b5563;
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cookie-list {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.cookie-list ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 0;
}

.cookie-list li {
    color: #374151;
    margin-bottom: 0.75rem;
    font-weight: 400;
    font-family: 'Toyota-Type-Regular';
    font-size: 0.95rem;
}

.cookie-list li:last-child {
    margin-bottom: 0;
}

.toggle-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    padding: 0.5rem 0;
    font-family: 'Toyota-Type-Regular';
}

/* Custom checkbox styling */
.toggle-switch input[type="checkbox"] {
    position: relative;
    width: 50px;
    height: 26px;
    appearance: none;
    background-color: #e5e7eb;
    border-radius: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-switch input[type="checkbox"]:checked {
    background-color: #A20011;
}

.toggle-switch input[type="checkbox"]:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.toggle-switch input[type="checkbox"]::before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    background-color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch input[type="checkbox"]:checked::before {
    transform: translateX(24px);
}

.toggle-switch input[type="checkbox"]:disabled::before {
    background-color: #f3f4f6;
}

#save-preferences {
    padding: 12px 24px;
    background: #A20011;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'ToyotaType-Regular';
}

#save-preferences:hover {
    background: #8a000e;
    transform: translateY(-1px);
}

.notification {
    padding: 1rem 1.5rem;
    background-color: #059669;
    color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    z-index: 1000;
    margin-top: 1rem;
    width: 100%;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    font-weight: 500;
    font-family: "Toyota-Type-Regular";
}

.notification.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 640px) {
    .cookie-preferences {
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .cookie-group {
        padding: 1rem;
    }

    .cookie-preferences h1 {
        font-size: 24px;
    }

    .cookie-consent {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}
