/*
Theme Name: Allmotorcycles
Theme URI: https://wpastra.com/
Author: 1232Web
Author URI: https://1232web.com.au/
Description: Theme for Allmotorcycles
Template: astra
Version: 1.6.2
*/
@media (min-width: 922px){
  #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu{width:100%;}
}
@media (max-width: 921px){
  #ast-mobile-popup-wrapper .ast-builder-menu-mobile .main-navigation .main-header-menu .menu-item > .ast-menu-toggle{border: 0;outline: none;}
  .ast-builder-menu-mobile .main-navigation .main-header-menu .menu-item > .menu-link {
    background-color: inherit;
  }
  
  .ast-builder-menu-mobile .main-navigation .main-header-menu .menu-item.current-menu-item > .menu-link,.ast-builder-menu-mobile .main-navigation .main-header-menu .menu-item.current-menu-parent > .menu-link , .ast-hfb-header .ast-builder-menu-mobile .main-navigation .menu-item.current-menu-item .sub-menu .menu-link,
  .ast-builder-menu-mobile .main-navigation .main-header-menu .ast-submenu-expanded>.menu-link,
  .ast-builder-menu-mobile .main-navigation .main-header-menu .ast-submenu-expanded .sub-menu .menu-item .menu-link {
    color: #0a0a0a;
    font-weight: bold;
    background-color: #e4ecff;
  }
  #ast-mobile-popup-wrapper .ast-builder-menu-mobile .main-navigation .main-header-menu .ast-submenu-expanded>.menu-link{border: 0;}
  #ast-mobile-popup-wrapper .ast-builder-menu-mobile .main-navigation .menu-item.ast-submenu-expanded .ast-menu-toggle, #ast-mobile-popup-wrapper .ast-builder-menu-mobile .main-navigation .menu-item.current-menu-item .ast-menu-toggle{
    color: #0a0a0a!important;
  }
  
  #ast-mobile-popup-wrapper .ast-builder-menu-mobile .main-navigation .menu-item.current-menu-ancestor > .ast-menu-toggle{background-color: transparent;}
  #ast-mobile-popup-wrapper .ast-builder-menu-mobile .main-navigation .main-header-menu .menu-item.current-menu-item.ast-submenu-expanded > .ast-menu-toggle,
  #ast-mobile-popup-wrapper .ast-builder-menu-mobile .main-navigation .main-header-menu .menu-item.current-menu-item.ast-submenu-expanded > .menu-link{
    color: #084af3!important;
  }
  #ast-mobile-popup-wrapper .ast-mobile-popup-drawer .ast-mobile-popup-header .menu-toggle-close:focus{border: 0; outline: none;}
}


@media (max-width: 544px){
  .ast-builder-menu-mobile .main-navigation .main-header-menu{background-color: inherit;}
}

/* grid subcategories */
.ast-archive-description .cattop-info .desc-wrap img.cat-banner{margin-bottom: 20px;}
@media (min-width: 769px){
  .ast-archive-description .cattop-info{
    display: flex;
    flex-wrap: wrap;
    margin-top: 30px;  
  }
  /* .ast-archive-description .cattop-info>div {
    display: flex;
    width: 48%;
    margin: 0 1%;
  } */
  .ast-archive-description .cattop-info>div, .ast-archive-description .cattop-info>div p{font-size: 19px;}
  .ast-archive-description .cattop-info .desc-wrap img.cat-banner{
    width: 49%;
    text-align: left;
    float: left;
    margin-right: 3%;
  }
}

.ast-archive-description .sub-cats {
  display: inline-block;
  width: 100%;
}
.ast-archive-description .cattop-info>div{margin-bottom: 20px;}
.cat-title{margin: 30px 0;}
.sub-cats-grid {
  display: flex;
  flex-wrap: wrap;
}
.sub-cats-item {
  display: flex;
  width: 31.3%;
  margin: 0 1%;
  margin-bottom: 20px;
}
.sub-cats-wraper {
  width: 100%;
}
.sc-info .scat-title {
  font-size: 16px;
  margin-top: 10px;
}
#post-categories{width: 100%;}
#post-categories .site-main .ast-row {
  display: flex;
  flex-wrap: wrap;
}
#post-categories .ast-article-post {
  width: 32%!important;
  display: flex;
  margin: 0 0.6%;
  padding: 0;
  margin-bottom: 20px;
}
#post-categories .ast-article-post .entry-title{
  font-size: 18px;
}
#post-categories .ast-article-post>div{
  -webkit-box-shadow: 0px 6px 12px rgba(0,0,0,0.175);
  -moz-box-shadow: 0px 6px 12px rgba(0,0,0,0.175);
  box-shadow: 0px 6px 12px rgba(0,0,0,0.175);
}
#post-categories .ast-article-post .entry-header, #post-categories .ast-article-post .entry-content{padding: 10px 15px;}
@media (max-width: 768px){  
  .sub-cats-item, #post-categories .ast-article-post{width: 48%!important;margin: 15px 1%;} 
  body.archive #post-categories .ast-archive-description{padding-left: 0; padding-right: 0;}
  #post-categories .site-main .ast-row{margin-left: 0; margin-right: 0;}
}

@media (max-width: 480px){
  .sub-cats-grid, #post-categories .site-main .ast-row {
    display: block;
  }
    
  .sub-cats-item, #post-categories .ast-article-post{width: 100%!important;}
}
.type-post .post-content> :not(.post-thumb){
  padding: 0 20px;
}

/* START - Customer language switcher  */
.toogle_language-switcher{cursor: pointer;}
body.show-language-switcher {overflow: hidden;}
.toogle_language-switcher.closeicon{
    displaY:none;
    position: fixed;
    z-index: 90000;
    top: 50px;
    right: 100px;
}
body.show-language-switcher .toogle_language-switcher.closeicon {
    display: block;    
}
.toogle_language-switcher>.ast-lswitcher-item-header{
    float:left;
}
.ast-lswitcher-item-header.ast-builder-language-switcher-native-name{height: 20px;line-height: 20px;}
.ast-header-language-switcher-element  .ast-builder-language-switcher-element{
    display:none;
    width: 100%;
}
.ast-builder-language-switcher-element.open{
    display: block;
    width: 100%;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: #f2f2f2;
    z-index: 1000;
    overflow: scroll;
}
body.admin-bar .ast-builder-language-switcher-element.open{top:33px;}
.ast-header-language-switcher-element ul.ast-builder-language-switcher-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding: 20px;
}
li.ast-builder-language-switcher-menu-item-header {
    width: 25%;
    flex: 0 0 auto;
    margin: 20px;
}
.ast-lswitcher-item-header.dashicons.dashicons-arrow-down-alt2{
  font-size: 16px;
    display: inline-block;
    margin-top: 3px;
}
.ast-builder-language-switcher-item[aria-label="Finnish"]{
      height: 14px;
    background-image: url('data:image/svg+xml,<svg width="20px" height="14px" viewBox="0 0 20 14" xmlns="http://www.w3.org/2000/svg"><rect width="20" height="14" fill="%23fff"/><rect width="2" height="14" x="6" fill="%23003580"/><rect width="20" height="2" y="6" fill="%23003580"/></svg>');
    background-size: 20px 14px;
    background-repeat: no-repeat;
    padding-left: 26px;
}
.ast-builder-language-switcher-item[aria-label="Finland"]{
      height: 14px;
    background-image: url('data:image/svg+xml,<svg width="20px" height="14px" viewBox="0 0 20 14" xmlns="http://www.w3.org/2000/svg"><rect width="20" height="14" fill="%23fff"/><rect width="2" height="14" x="6" fill="%23003580"/><rect width="20" height="2" y="6" fill="%23003580"/></svg>');
    background-size: 20px 14px;
    background-repeat: no-repeat;
    padding-left: 26px;
}
.ast-builder-language-switcher-item[aria-label="Tagalog"]{
      height: 14px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 9 5"><rect width="9" height="5" fill="%23CE1126"/><polygon points="0,0 3.6,2.5 0,5" fill="%23FFF200"/><rect width="9" height="2.5" y="0" fill="%23000"/><polygon points="0,0 3.6,2.5 0,5" fill="%23FFFFFF"/><circle cx="1.5" cy="2.5" r="0.75" fill="%23F2C500"/><polygon points="1.5,2.5 1.2,1.5 1.8,1.5" fill="%23F2C500"/><polygon points="1.5,2.5 1.2,3.5 1.8,3.5" fill="%23F2C500"/><polygon points="1.5,2.5 0.5,2.2 0.5,2.8" fill="%23F2C500"/><polygon points="1.5,2.5 2.5,2.2 2.5,2.8" fill="%23F2C500"/></svg>');
    background-size: 20px 14px;
    background-repeat: no-repeat;
    padding-left: 26px;
}
.ast-builder-language-switcher-item[aria-label="Flemish"]{
      height: 14px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 10"><rect width="16" height="10" fill="%23FFD700"/><path d="M5.5,3.5 c0,-1 1,-1.5 1,-1.5 s0.5,-1 1.5,-1 s1.5,1 1.5,1 s1,-0.5 1,-1.5 s1.5,-1 1.5,-1.5 c0,0 0.5,0 0.5,0.5 s-0.5,1 -0.5,1 s0.5,0.5 0.5,1 s-0.5,1 -0.5,1 s0.5,0.5 0.5,1 s-0.5,1 -0.5,1 s0.5,0.5 0.5,1 s-0.5,1 -0.5,1 s0.5,0.5 0.5,1 s-0.5,1 -0.5,1 s0.5,0.5 0.5,1 s-0.5,1 -0.5,1 s-0.5,-0.5 -0.5,-1 s-0.5,-1 -0.5,-1 s-0.5,0.5 -0.5,1 s-1,-0.5 -1,-1 s-1.5,-1.5 -1.5,-1.5 s-1,-1 -1.5,-1.5 s-0.5,0 -0.5,-0.5 Z" fill="%23000000"/></svg>');
    background-size: 20px 14px;
    background-repeat: no-repeat;
    padding-left: 26px;
}
.ast-builder-language-switcher-item[aria-label="Danish"]{
      height: 14px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 12"><rect width="16" height="12" fill="%23C60C30"/><rect x="5" width="2" height="12" fill="%23FFF"/><rect y="5" width="16" height="2" fill="%23FFF"/></svg>');
    background-size: 20px 14px;
    background-repeat: no-repeat;
    padding-left: 26px;
}
.ast-builder-language-switcher-item[aria-label="Tagalog"]>.ast-lswitcher-item-header:not(.ast-builder-language-switcher-native-name),
.ast-builder-language-switcher-item[aria-label="Flemish"]>.ast-lswitcher-item-header:not(.ast-builder-language-switcher-native-name),
.ast-builder-language-switcher-item[aria-label="Danish"]>.ast-lswitcher-item-header:not(.ast-builder-language-switcher-native-name){display: none;}
@media (max-width: 480px){
  .ast-theme-transparent-header #masthead {
    position: initial;
  }
  .ast-header-language-switcher-element ul.ast-builder-language-switcher-menu{
    padding: 40px 20px;
  }
  .toogle_language-switcher.closeicon{
    right: 20px;
  }

  .elementor-element[data-widget_type="uael-posts.news"] .uael-post__inner-wrap {
    flex-wrap: wrap;
  }
  .elementor-element[data-widget_type="uael-posts.news"] .uael-post__thumbnail{width: 100%;}
}
/* END - Customer language switcher  */

/* CompanyLookup */
.search-container { margin-bottom: 20px; }

.pagination-nav {
  margin-top: 1rem; 
  display: flex;
  width: 100%;
  justify-content: center;
}

.pagination-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 9999px; 
  background-color: #1f2937; 
  padding: 0.5rem; 
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); 
}


.pagination-item {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff; 
  outline: none; 
  border-radius: 9999px; 
  width: 2.25rem; 
  height: 2.25rem; 
  transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; 
  transition-duration: 150ms; 
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 
}

/* Hiệu ứng focus */
.pagination-item:focus-visible {
  box-shadow: 0 0 0 2px #3b82f6; 
}

.pagination-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #374151; 
}

.pagination-item:not(.active):hover {
  background-color: #374151; 
}
.pagination-item:not(.active):active {
  background-color: #4b5563; 
}


.pagination-item.active {
  background-color: #2563eb; 
  font-weight: 700; 
}

.pagination-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none; 
  color: inherit; 
  margin: 0 0.25rem;
}
.pagination-item svg {
  width: 1.25rem; 
  height: 1.25rem; 
  color: currentColor; 
}

.pagination-item .dots-text {
  font-size: 0.875rem;
}

.company-detail-section .ast-archive-description {
  padding: 4em 2em;
}
.company-detail{margin-top: 40px;}
.note_company{
  color: #8d8d8d;
  font-style: italic;
}
#company-table th, #company-table td {
  text-align: left;
}
.box-content {
  background-color: #fafafa;
  padding: 20px;
  border-radius: 10px;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  margin-bottom: 30px;
}
.box-content .button{margin: 20px 0;display: inline-block;}
.text-center{text-align: center;}
.box-note, .box-note p, .box-note *{font-size: 0.95rem;text-align: center;}

.data-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 10px 0;
}

.com-item {
  flex: 0 0 calc(50% - 16px); /* Hai cột, trừ khoảng cách gap */
}

.com-item strong {
  display: inline-block;
  width: 140px;
  color: #333;
}

/* Mobile responsive: 1 cột */
@media (max-width: 767px) {
  .com-item {
      flex: 0 0 100%;
  }
}
/* END - CompanyLookup */