/*
 Theme Name:   Portal - TechJuice
 Theme URI:    https://techjuice.pk/
 Description:  Use this child theme to extend Bricks.
 Author:       Digital Perception
 Author URI:   https://perceptiond.com/
 Template:     bricks
 Version:      1.2
 Text Domain:  bricks
*/

h4.wpgb-facet-title a::after {
  content: "→";
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin-left: 8px;
}

h4.wpgb-facet-title a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

h4.wpgb-facet-title:before{
	content: "";
    position: absolute;
    left: 0;
    bottom: -11px;
    height: 5px;
    width: 55px;
    background-color: #0094df;
  z-index: 1;
}

h4.wpgb-facet-title:after {
	    content: "";
    position: absolute;
    left: 0;
    bottom: -9px;
    height: 1px;
    width: 100%;
    max-width: 100%;
    background-color: var(--clr-base);
}


.d-none {
	display: none !important;
}

/* Align text to the left */
.text-start {
  text-align: left;
}

/* Align text to the center */
.text-center {
  text-align: center;
}

/* Align text to the right */
.text-end {
  text-align: right;
}

/* Default text alignment */
.text-start {
  text-align: left;
}

/* On small screens (width <= 576px), text is aligned to the left */
@media (max-width: 576px) {
  .text-sm-start {
    text-align: left;
  }
}

/* On medium screens (width > 576px), text is centered */
@media (min-width: 576px) {
  .text-md-center {
    text-align: center;
  }
}

/* On large screens (width > 992px), text is aligned to the right */
@media (min-width: 992px) {
  .text-lg-end {
    text-align: right;
  }
}

body:not(.post-type-archive-mobiles):not(.tax-brand) #filters-toggle {
    display: none;
}


/* Brands Widget */

.brands-list {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: auto auto auto;
    text-align: center;
    border: 1px solid #e1e1e1;
}

.brands-list--item {
  border: 1px solid #e1e1e1;
  font-size: 14px;
  text-align: center;
  font-weight: 500;
}

.brands-list--item:hover {
  border: 1px solid #3098dd;
}

.brands-list--item a {
    display: block;
    padding: 2px 5px;
}

.brands-list--item:hover a {
    background: #3098dd;
    color: #fff;
}


/* Quick Specs - Single */

.quick-specs {
    flex-direction: row;
    align-items: center;
    column-gap: 10px;
    background-color: #f5f5f5;
    width: calc(50% - 5px);
    font-size: 15px;
    line-height: 1.2;
}

.quick-specs svg {
    padding: 8px;
    height: 48px;
    width: 48px;
    background: #2196f3;
    fill: #fff;
}

.quick-specs > div {
    width: calc(100% - 45px);
}

.quick-specs svg.no-fill, .quick-specs svg.no-fill *{
	fill: none !important;
}

.grid-key-specs > div {
    padding: 5px 10px !important
}

.grid-key-specs > div:nth-child(odd) {
/*    background: #fff;*/
    border-top: 1px solid #e1e1e1 !important;
    border-bottom: 1px solid #e1e1e1 !important;
}

.truncate-text {
  white-space: nowrap !important;     
  overflow: hidden;        
  text-overflow: ellipsis; 
}

.line-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.wpgb-card-media:has(.wpgb-card-media-content-top div) .wpgb-card-media-thumbnail {
    margin-top: 30px !important;
}

.phones-outer-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

/* WebKit (Chrome, Safari) */
.phones-outer-wrap::-webkit-scrollbar {
  height: 6px;
}

.phones-outer-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.phones-outer-wrap::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

/* Hide scroll arrows */
.phones-outer-wrap::-webkit-scrollbar-button {
  width: 0;
  height: 0;
  display: none;
}


.wp-grid-builder .wpgb-prev-button, .wp-grid-builder .wpgb-next-button {
    margin-bottom: 25px !important;
}

.wp-grid-builder .wpgb-area-left, .wp-grid-builder .wpgb-area-right {
   justify-content: flex-start !important;
}

.wp-grid-builder .wpgb-area-left {
    left: unset !important;
    right: 35px;
}

.wp-grid-builder .wpgb-prev-button, .wp-grid-builder .wpgb-next-button {
    margin-top: -48px !important;
}

/* Product Ribbons - START */

.has-ribbon {
    position: relative;
    overflow: hidden;
}

.wpgb-main .wpgb-card .ribbon, .ribbon {
  position: absolute;
  top: 20px;
  left: -35px;
  transform: rotate(-45deg);
  width: 140px;
  text-align: center;
  padding: 5px 0;
  color: white;
  font-size: 12px;
  font-weight: 400;
  z-index: 1;
  text-transform: uppercase;
}

/* Ribbon Types */
.ribbon.discontinued {
  background-color: #d9534f;
}

.ribbon.featured {
  background-color: #f0ad4e;
}

.ribbon.upcoming {
  background-color: #5bc0de;
}

.ribbon.available {
  background-color: #5cb85c;
}

/* UI */

/* .footer-about {
    font-size: clamp(1.4rem, 0.191vw + 1.339rem, 1.6rem);
    font-weight: 400;
    color: #fff;
    line-height: 23px;;
} */

.footer .nav-item a {
    font-size: clamp(1.4rem, 0.191vw + 1.339rem, 1.6rem);
    color: #fff;
    font-weight: 400;
    line-height: 2.25;
    font-family: outfit;
	border-bottom:2px solid transparent;
}

.footer .nav-item a:hover {
   border-bottom:2px solid #006ADC;
}

.copyright {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 400;
    font-family: outfit
}

.footer-h {
    color: #fff;
    font-family: DM Sans;
    font-weight: 600;
    font-size: var(--footer-heading)
}

h4.wpgb-facet-title {
    position:relative;
}

@media (min-width: 768px){
    #filters-toggle {
        display: none;
    }
}

/* Responsive CSS */

@media (max-width: 767px){
    .quick-specs {
        width: 100%;
        font-size: 14px;
    }
    .quick-specs svg {
        height: 35px;
        width: 35px;
    }

    .quick-specs > div {
        width: calc(100% - 45px);
    }
    .wp-grid-builder .wpgb-prev-button, .wp-grid-builder .wpgb-next-button {
        margin-bottom: 100px !important;
    }
}


@media (min-width: 992px) {
/*   .navigation_menu li a {
    border-bottom: 2px solid transparent;
  }

  .navigation_menu li a:hover {
    border-bottom: 2px solid white;
    transition: 0.2s;
    display: inline;
  } */
	
	.navigation_menu li a {
  
  padding-bottom: 2px; 
}

.navigation_menu li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to bottom, white 50%, #006ADC 50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.navigation_menu li a:hover::after {
  opacity: 1;
}

	
  .navigation_menu li.current-menu-item a:after{
   opacity:1;
  }
}

.bricks-nav-menu li a {
    text-decoration: none;
    color: inherit;
    display: inline !important;
    position: relative;
    transition: 0.5s;
}


/* Hide Header on scroll */
.scrolling-header {
    position: fixed;
    top: 0;
    width: 100%;
    transition: top 0.3s ease;
    z-index: 100;
}
@media (min-width: 992px) {
  	.header__nav li a {
       padding: 3.25px 10px;

}
	
	.header__nav .current-menu-item a {
		  background: #0094df;
          border-radius: 5px;
          color: #fff;
	}

	
/* 	.header__nav .current-menu-item a::after {
		content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(to bottom, #009ed8 50%, #009ed8 50%);
        opacity: 1;
        pointer-events: none;
        transition: opacity 0.2s ease;
	} */
	
.header__nav li a:hover {
       background: #0094df;
       border-radius: 5px;
       color: #fff;
	   transition:0.3s;
    }
}

@media (max-width: 991px) {
	  td, th {
    font-size: 1.2rem;
    min-width: 130px;
  }

}

/* Dark Light Mode */
[data-theme="dark"] {
	--clr-base: white !important;
	--clr-secondary: #222222 !important;
	--clr-meta: #A1A19D !important;
	--progress-bg: #206299 !important;
	--progress-handler: #3098DD !important;
	--bricks-color-gsnacu: #0A375F !important;
	--bricks-color-ddtsll: #0A375F !important;
	--bricks-color-letghi: #282828 !important;
	--table-bg: #1c1c1c !important;
	--primary-table: #0A375E !important;
	--sec-header-bg: #222222 !important;
	
}

[data-theme="dark"] .header__logo img {
	filter: brightness(0) invert(1);
}

.wpgb-facet-title {
   color:var(--clr-base);  
}

.wpgb-checkbox-label,
.wpgb-range-values{
  color:var(--clr-meta);
}

.wpgb-checkbox-control {
  border:2px solid var(--clr-base) !important;
}

.wp-grid-builder .wpgb-card-5 .wpgb-card-inner {
  box-shadow: none !important;
}


.wp-grid-builder .wpgb-card-2 .wpgb-card-inner,
.wp-grid-builder .wpgb-card-6 .wpgb-card-inner{
	box-shadow: none !important;
}

.compare-main-block h1 {
	position: relative;
	line-height:1;
	margin-bottom: 20px;
	color:var(--clr-base) !important;
	font-size:clamp(2.5rem, .7609vw + 2.2565rem, 3.2rem);
}

.compare-main-block h1:before {
	content: "";
    position: absolute;
    left: 0;
    bottom: -11px;
    height: 5px;
    width: 55px;
    background-color: #00B2FF;
    z-index: 1;
}

.compare-main-block h1:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -9px;
    height: 1px;
    width: 100%;
    max-width: 100%;
    background-color: var(--clr-base);
}

.footer_bar .bricks-nav-menu .bricks-menu-item:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: -18px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 16px;
}

.wpgb-facet.wpgb-style-1 .wpgb-pagination .wpgb-page > a:not([aria-current="true"]) {
	color: var(--clr-base) !important;
	border-color: var(--clr-base) !important;
}

.wpgb-facet .wpgb-pagination li span{
	color:var(--clr-base) !important;
}