/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
body{
    margin: 0;
    padding: 0;
}

.carousel-caption{
    bottom: unset;
    top: 25%;
    text-align: left;
}

/* Default transparent background */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;/* Change to your desired background color */
    z-index: 1000; /* Adjust the z-index as needed */
    transition: background-color 0.5s ease-in-out;
    transition: background-color 0.5s ease-in-out; /* Animation effect */
  }
  
  /* Red background on scroll */
  .stickys,
  .sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(8, 29, 62, 1);/* Change to your desired background color */
    z-index: 1000; /* Adjust the z-index as needed */
    transition: background-color 0.5s ease-in-out;
  }

  .stickyss {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;/* Change to your desired background color */
    z-index: 1000; /* Adjust the z-index as needed */
    transition: background-color 0.5s ease-in-out;
  }
  
  .carousel-indicators [data-bs-target]{
    width: 10px;
    height: 10px;
    border-radius: 50%;
  }

  .carousel-indicators{
    display: flex;
    align-items: center;
  }

  .carousel-indicators .active[data-bs-target]{
    width: 20px;
    height: 6px;
    border-radius: 10px !important;
  }

.navbar-nav li a{
    color: rgba(255, 255, 255, 1);
    font-size: 18px;
}

.navbar-nav{
    margin-left: auto;
}

.navbar-nav li a.active,
.navbar-nav li a:hover{
    color: #00F0FF;
}

.carousel-caption h2{
    font-weight: 700;
  font-size: 60px;
}

.carousel-caption h3{
    font-weight: 700;
  font-size: 40px;
}

.carousel-caption p{
    font-size: 24px;
      color: rgba(255, 255, 255, 1);
      margin: 25px 0 50px;
      float: left;
}

.msspan{
    width: 100%;
    float: left;
}

.carousel-caption a{
    border: 1px solid #FFFFFFB2;
    padding: 10px 35px;
    color: rgba(255, 255, 255, 1);
  text-decoration: none;
  font-size: 20px;
  border-radius: 6px;
}


.msmbtext{
    padding-bottom: 40px;
    margin: 0;
}

.msh2center{
    text-align: center;
}

.mscapital{
    text-transform: uppercase;
}

.as_bg{
    background: rgba(8, 29, 62, 1);
    padding: 6rem 0;
    }
    .container{
        max-width: 1140px;
    }
h2{   
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 0em;
    color: rgba(255, 255, 255, 1);
    margin-bottom: 0px;
}
.as_bg h2, .as_bg p{
    text-align: left;
}
.as_bgImg h2, .as_bgImg h5{
    text-align: center;
}
.as_bgImg h2{
    margin-bottom: 10px;
}
h2 span{
    font-family: 'Poppins';
    font-size: 42px;
    font-weight: 300;
    line-height: 63px;
    letter-spacing: 0em;
    text-align: left;
    color: rgba(255, 255, 255, 1);
}

h5{
font-family: 'Noto Sans Thai';
font-size: 20px;
font-weight: 500;
letter-spacing: 0em;
text-align: left;
color: rgba(255, 255, 255, 1);
}
p{
font-family: 'Sarabun';
font-size: 18px;
font-weight: 400;
line-height: 32px;
letter-spacing: 0em;
color: #949DAB;
}

.mswhite{
    color: rgba(255, 255, 255, 1);
}

.msblue{
font-size: 48px;
font-weight: 700;
line-height: 96px;
letter-spacing: 0em;
color: #1CCBD7;
position: relative;
}

.msbr{
    border-right: 1px solid #949DAB; 
    margin-right: 30px; 
    padding-right: 10px; 
}

.mssup{
    font-family: Noto Sans Thai;
font-size: 24px;
font-weight: 600;
line-height: 29px;
letter-spacing: 0em;
text-align: left;
position: absolute;
  top: 15px;
}

.as_bgImg{
    background-image: url('../images/stering_car.svg');
    background-repeat: no-repeat;
    width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  padding: 100px 0;
}

.msbgshadow{
    background-color: hsl(217, 28%, 13%);
    margin: 0;
      padding: 100px 0;
}

.card-title{
font-size: 22px;
font-weight: 700;
line-height: 33px;
letter-spacing: 0em;
text-align: center;
color: rgba(255, 255, 255, 1);
margin: 0;
}

.card-body{
    background-color: #1A3259;
}

.card-body img{
    margin-right: 20px;
}

.card:hover .card-body{
    background-color: #3A61A1;
}

.card:hover .card-text{
    color: rgba(255, 255, 255, 1);
}

.card-text{
    margin-bottom: 10px;
}

.card{
    border: none;
}

.card a{
    width: 100%;
border-radius: 0px 0px 5px 5px;
background: #446395;
color: rgba(255, 255, 255, 1);
text-decoration: none;
padding: 20px 0;
font-size: 20px;
}

.card:hover .as_hover{
    background: #3E7FFF !important;
}

.navbar-collapse{
    display: none;
}

/* new_sec start */
.new_sec{
    background: rgba(26, 50, 89, 1);
    padding: 5rem 0;
}
.new_sec .col-md-3{
    text-align: center;
}
.new_sec p{
    font-family: Noto Sans Thai;
font-size: 20px;
font-weight: 500;
line-height: 34px;
letter-spacing: 0em;
text-align: center;
color: rgba(255, 255, 255, 1);
margin-top: 1.5rem;
}
/* new_sec end */

/* cartomex */
.cartomex_bg{
    background-image: url('../images/bg-carbox-team.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-color: #E8E8E8;
    padding: 6rem 0;
}
.as_dualImage{
    position: relative;
}
.as_dualImage .image1{
    position: absolute;
  z-index: 100;
  right: -55px;
  top: -16;
}
.as_hh2 h2, .as_hh2 h5, .as_hh2 span{
    color: rgba(25, 27, 32, 1);
}
.as_dualImage .image2{
    position: absolute;
  z-index: 300;
  left: 20px;
}
/* article */
.as_articlebg{
    background: #E8E8E8;
    padding-bottom: 6rem;
}
.as_articlebg span{
    font-family: 'Sarabun';
font-size: 18px;
font-weight: 600;
line-height: 28px;
letter-spacing: 0em;
text-align: left;
color: rgba(25, 27, 32, 1);
padding: 1rem 0;
  width: 100%;
  float: left;
}
.as_articlebg h3{
    font-family: 'Sarabun';
font-size: 20px;
font-weight: 700;
line-height: 32px;
letter-spacing: 0em;
text-align: left;
color:rgba(25, 27, 32, 1);
}
.as_articlebg p{
    font-family: Sarabun;
font-size: 18px;
font-weight: 400;
line-height: 28px;
letter-spacing: 0em;
text-align: left;
color: rgba(25, 27, 32, 1);
}
.news_artical h2{
    /* font-family: Poppins; */
    font-size: 40px;
    font-weight: 700;
    line-height: 60px;
    letter-spacing: 0em;
    text-align: left;
    color: rgba(25, 27, 32, 1);   
    padding: 48px 0; 
    text-transform: uppercase;
}
/* footer */
.as_footer{
    background: linear-gradient(180deg, #1A3259 0%, #446395 100%);
    padding: 3rem 0;
}
.as_footer h3{
 font-family: 'Noto Sans Thai';
font-size: 20px;
font-weight: 700;
line-height: 34px;
letter-spacing: 0em;
text-align: left;
color: rgba(255, 255, 255, 1);
}
.as_footer li{
    list-style: none;
}
.as_footer a, .as_footer p{
    text-decoration: none;
    font-family: 'Sarabun';
font-size: 16px;
font-weight: 400;
line-height: 30px;
letter-spacing: 0em;
text-align: left;
color: rgba(255, 255, 255, 1);
}
.as_footer hr{
    color: rgba(255, 255, 255, 1);
}
.copyright p{
    text-align: right;
    font-weight: 600;
    margin-bottom: 0px;
}
.foo2{
padding-top: 2rem;
}
.foo2 p{
    margin-bottom: 0px;
    font-size: 15px;
    text-align: right;
}
.footer_last{
text-align: right;
}
.footer_last h3{
    text-align: right;
}
.footer_last img{
    margin-top: 10px;
}
.last_seection{
    background: rgba(73, 91, 184, 1);
    padding: 5rem 0;
}
.last_seection h2{
    /* font-family: Noto Sans Thai; */
font-size: 37px;
font-weight: 700;
text-align: left;
color:rgba(255, 255, 255, 1) ;
margin-bottom: 1rem;
}
.last_seection p{
    /* font-family: Sarabun; */
font-size: 20px;
font-weight: 500;
line-height: 33px;
letter-spacing: 0em;
text-align: left;
color: rgba(255, 255, 255, 1);
margin-bottom: 0;
}
.last_seection a{
    text-decoration: none;
    font-family: Poppins;
    font-size: 24px;
    font-weight: 700;
    line-height: 36px;
    letter-spacing: 0em;
    text-align: center;
    color: rgba(255, 255, 255, 1);
}
 .first_btn a{
    border: 1px solid rgba(62, 127, 255, 1);
  text-align: center;
  padding: .5rem 1.5rem;
}
.second_btn, .first_btn{
    text-align: center;
    width: 100%;
    float: left;
}
.second_btn a{
    padding:.5rem 3.2rem;
    border: 1px solid rgba(62, 127, 255, 1);
    text-align: center;
}
.second_btn{
    margin-top: 2rem;
}
.last_seection a:hover {
    background: rgba(62, 127, 255, 1);
}
.last_seection .col-md-3{
    margin-top: 2rem;
}
@media only screen and (min-width:200px) and (max-width:767px) {

    .navbar-collapse.show{
        display: block !important;
    }
    /* Custom CSS */
    .navbar {
        background-color: rgba(8, 29, 62, 1);
    }
    .navbar-toggler-icon {        
    font-size: 25px;
        color: #fff;
    }
    .navbar-collapse {
        position: fixed;
        top: 55px;
        right: 0; /* Initially hidden */
        height: 100%;
        width: 100%; /* Adjust the width as needed */
        background-color: rgba(8, 29, 62, 1);
        transition: right 0.7s ease;
        z-index: 9999;
    }
    .navbar-nav {
        flex-direction: column;
        text-align: center;
        padding-top: 50px; /* Adjust spacing as needed */
    }
    .navbar-nav .nav-item {
        margin: 10px 0;
    }
    button:focus:not(:focus-visible) {
        outline: unset;
          box-shadow: unset;
      }
      .as_carousel{
        margin-top: 4.3rem;
      }
      .as_bg, .as_bgImg, .msbgshadow, .new_sec, .cartomex_bg, .last_seection{
        padding: 2rem 0;
      }
      .as_articlebg{
        padding-bottom: 2rem;
      }
      h2, .news_artical h2{
        font-size: 28px;
      }
      h2 span{
        font-size: 28px;
      }
      .msmbtext{
        padding-bottom: 10px;
      }
      .msbgshadow .card{
        margin-bottom: 1rem;
      }
      .footer_last h3, .footer_last{
        text-align: left;
      }
      .aa{
        width: 50%;
        float: left;
      }
      .as_footer hr{
        margin: 1rem 0 !important;
      }
      .foo2 p{
        text-align: left;
      }
      .copyright p{
        text-align: center;
        font-size: 12px;
      }
      .msbr {
        border-right: none;
        margin-right: 0px;
        padding-right: 0px;
        flex: 100%;
        border-bottom: 1px solid #949DAB;
      }
      .as_dualImage .image1{
        right: 0px;
        top: 0px;
      }
      .as_dualImage .image2{
        left: 0px;
      }
      .as_dualImage .image1{
        position: relative;
      }
      .news_artical h2{
        padding: 1rem 0;
      }
      .msbgshadow .col{
        flex: 100%;
      }
      .bb{
        margin-top: 2rem;
      }
      .last_seection h2{
        font-size: 28px;
      }
      .last_seection a{
        font-size: 18px;
      }
}

@media only screen and (min-width:768px) and (max-width:1024px) {
    .as_bg, .as_bgImg, .msbgshadow, .new_sec, .cartomex_bg, .last_seection{
        padding: 3rem 0;
      }
      .msmbtext {
        padding-bottom: 8px;
      }
      .as_bg .row{
        display: flex;
        align-items: center;
      }
      .msbr{
        flex: 50%;
        margin-right: 0px;
        padding-right: 0px;
      }
      .as_flex{
        flex: 50%;
      }
      .as_mt{
        margin-top: 1rem;
      }
      .card-text{
        display: flex;
      }
      .card-body img {
        margin-right: 10px;
      }
      .as_dualImage{
        display: flex;
        align-items: center;
      }
      .as_dualImage .image1{
        bottom: 14px;
        right: 10px;
      }
      .as_dualImage .image2{
        left: 0px;
      }
      .image1{
        display: none;
      }
      .msbgshadow .row .col{
        display: flex;
      }
      .last_seection a{
        font-size: 18px;
      }
      .second_btn a {
        padding: .5rem 2.8rem;
      }
}

@media only screen and (min-width:1025px) and (max-width:1250px) {
    .as_dualImage .image1{
        right: 0px;
        top: 0px;
      }
      .as_dualImage .image2{
        left: 0px;
      }
}
