/* Consolidated variables moved to main.css */

@media screen and (min-width:1280px) {
  #navbarNavDropdown .dropdown:hover>.dropdown-menu {
    top: 38px !important;
  }
}

@media screen and (max-width:1279px) {
  .container {
    max-width: 100%;
  }

  .col-12 {
    padding-left: 1.6rem;
    padding-right: 1.6rem;
  }
}

@media screen and (min-width:992px) and (max-width:1199px) {
  .hs2-right-content {
    justify-content: space-between;
  }

  .qhse-content .qhse-content-left,
  .qhse-content .qhse-content-right {
    flex: 0 0 48%;
    max-width: 48%;
  }

  .pds2-pointer-item {
    max-width: 425px;
  }

  .pdg-item-img {
    height: 200px;
  }

  .fabtech-navigation .nav-link {
    margin: 0 0.2rem;
    padding: 0.5rem 1rem !important;
    font-size: 1.4rem;
    line-height: 1.8rem;
  }

  .dropdown-toggle::after {
    top: 6px;
    right: -3px;
    width: 12px;
    height: 12px;
  }

  .nav-icon-img {
    margin: 0 0.4rem;
  }

  .fabtech-navigation .nav-link.dropdown-toggle:hover::after,
  .fabtech-navigation .nav-link.dropdown-toggle:focus::after {
    top: 10px;
  }
}

@media screen and (min-width:992px) {
  .hs3-slider {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 1.6rem;
    grid-row-gap: 0;
  }

  .hs3-nav-block,
  .cs3-nav-block,
  .cs4-nav-block,
  .caps3-nav-block,
  .location-nav-block {
    display: none;
  }

  /*Initiative dropdown to open on hover*/
  #navbarNavDropdown .dropdown .dropdown-menu {
    display: none;
  }

  #navbarNavDropdown .dropdown:hover>.dropdown-menu {
    display: block;
    left: 0;
    top: 28px;
  }

  /*Initiative dropdown to open on hover*/
}

@media screen and (max-width: 991px) {
  .pt-80 {
    padding-top: 5.6rem;
  }

  .pb-80 {
    padding-bottom: 5.6rem;
  }

  .pt-56 {
    padding-top: 3.2rem
  }

  .pb-56 {
    padding-bottom: 3.2rem;
  }

  .navbar-toggler {
    padding: 1.6rem 1.6rem 0 0;
    border: 0px none;
  }

  .hamburger .line {
    width: 24px;
    height: 2px;
    background-image: none;
    background-color: #fff;
    display: block;
    margin: 4px auto;
    border: 0px none;
    -webkit-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
  }

  #hamburger-line.is-active .line:nth-child(2) {
    opacity: 0;
  }

  #hamburger-line.is-active .line:nth-child(1) {
    -webkit-transform: translateY(5px) rotate(45deg);
    -ms-transform: translateY(5px) rotate(45deg);
    -o-transform: translateY(5px) rotate(45deg);
    transform: translateY(5px) rotate(45deg);
  }

  #hamburger-line.is-active .line:nth-child(3) {
    -webkit-transform: translateY(-7px) rotate(-45deg);
    -ms-transform: translateY(-7px) rotate(-45deg);
    -o-transform: translateY(-7px) rotate(-45deg);
    transform: translateY(-7px) rotate(-45deg);
  }

  .fabtech-navigation {
    padding: 0;
  }

  .fabtech-navigation .container {
    padding-left: 0;
    padding-right: 0;
  }

  .top-nav.navbar {
    background-color: #131348 !important;
    background-image: none !important;
    position: relative;
    z-index: 1001;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .navbar-brand {
    padding: 1.6rem 0 0 1.6rem;
  }

  /* Ensure the collapsible area also has the blue background */
  .navbar-collapse {
    background-color: #131348 !important;
    border: none !important;
    text-align: left !important;
  }

  .navbar-nav {
    padding: 1.6rem !important;
    box-shadow: none !important;
    background-color: #131348 !important;
    border: none !important;
    text-align: left !important;
    align-items: flex-start !important;
  }

  /* List dividers */
  .top-nav .navbar-nav .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    width: 100% !important;
  }

  .top-nav .navbar-nav .nav-item:last-child {
    border-bottom: none !important;
  }

  .top-nav .navbar-nav .nav-link {
    margin: 0;
    padding: 1.2rem 0 !important;
    color: #fff !important;
    font-family: 'GeneralSans-Semibold';
    font-size: 1.6rem !important;
    line-height: 2.4rem !important;
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  /* Active/Expanded State - Yellow/Orange */
  .top-nav .navbar-nav .nav-item.show>.nav-link,
  .top-nav .navbar-nav .nav-link.show,
  .top-nav .navbar-nav .nav-link:active,
  .top-nav .navbar-nav .nav-link:focus {
    color: #F3A93C !important;
  }

  .top-nav .navbar-nav .dropdown-menu {
    padding: 0 0 0.8rem 1.6rem !important;
    box-shadow: none !important;
    background-color: #131348 !important;
    /* Ensure it stays blue */
    border: none !important;
    width: 100% !important;
    float: none !important;
  }

  .top-nav .navbar-nav .dropdown-menu li {
    border-bottom: none !important;
    width: 100% !important;
  }

  .top-nav .navbar-nav .dropdown-item {
    margin: 0 !important;
    padding: 1rem 0 !important;
    font-size: 1.4rem !important;
    line-height: 2rem !important;
    color: #fff !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    width: 100% !important;
    display: block !important;
  }

  .top-nav .navbar-nav .dropdown-item:last-child {
    border-bottom: none !important;
  }

  .top-nav .navbar-nav .dropdown-item:hover,
  .top-nav .navbar-nav .dropdown-item:focus {
    background: transparent !important;
    color: #F3A93C !important;
  }

  /* Chevron rotation and color */
  .top-nav .dropdown-toggle::after {
    display: inline-block !important;
    height: 12px !important;
    filter: brightness(0) invert(1) !important;
    transition: transform 0.3s ease !important;
    margin-left: auto !important;
  }

  .top-nav .nav-item.show .dropdown-toggle::after,
  .top-nav .dropdown-toggle.show::after {
    transform: scaleY(-1) !important;
    /* Color it yellow using filter */
    filter: brightness(0) saturate(100%) invert(80%) sepia(48%) saturate(926%) hue-rotate(340deg) brightness(101%) contrast(91%) !important;
  }

  .nav-item-icon {
    margin: 0;
    padding: 1.6rem 0;
    border-left: 0px none;
  }

  .hs2-right-content {
    justify-content: flex-end;
  }

  .hs2-right-block-1 {
    margin-right: 4%;
  }

  .hs3-item {
    margin-right: 1.6rem;
    width: 85%;
    display: block;
  }

  .cs3-bottom-item {
    width: 85%;
    display: block;
    margin-right: 1.6rem;
  }

  .cs4-history-item {
    width: 85%;
    display: block;
    margin-right: 1.6rem;
    padding-bottom: 0 !important;
  }

  .cs4-history-block {
    padding-left: 0 !important;
  }

  .cs4-history-block:before {
    display: none !important;
  }

  .cs4-history-item-content {
    display: block !important;
  }

  .cs4-item-month,
  .cs4-item-image,
  .cs4-item-text {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin-bottom: 1.6rem;
  }

  .cs4-item-text {
    padding-left: 0 !important;
  }

  .home-sec-3 {
    margin-top: -15rem;
  }

  .hs4-item {
    margin: 0 0.8rem;
  }

  .hs4-nav-block button svg {
    width: 40px;
    height: 40px;
  }

  .hs4-item {
    width: 45%;
  }

  .hs4-item-img {
    height: 400px;
  }

  .news-block-tags {
    margin: 0 0 0.8rem 0;
  }

  .news-block-tags a {
    font-size: 1.4rem;
    line-height: 1.8rem;
  }

  .hs6-title-block {
    margin: 0 0 2.4rem 0;
  }


  .seperator-horizontal {
    height: 5px;
  }

  .qhse-content-right .seperator-horizontal {
    margin: 0.8rem 0 1.2rem 0;
  }

  .caps2-item {
    width: 60%;
    aspect-ratio: 1/1;
  }

  .caps2-slider-img {
    height: 100%;
  }

  .caps2-nav-block button svg {
    width: 40px;
    height: 40px;
  }

  .caps2-nav-block .flickity-prev {
    left: 2rem
  }

  .caps2-nav-block .flickity-next {
    right: 2rem
  }

  .filter-option {
    font-size: 1.6rem;
    line-height: 2.4rem;
    margin: 0 1.6rem 1.6rem 0;
  }

  .dropdown-menu {
    padding: 0 0 0.8rem 1.6rem;
    box-shadow: none;
    background: transparent;
    border: none;
  }

  .dropdown-item {
    margin: 0;
    padding: 0.8rem 0;
    font-size: 1.4rem;
    line-height: 2rem;
    color: #fff !important;
  }

  .dropdown-item:hover,
  .dropdown-item:focus {
    background: transparent;
    color: #F3A93C !important;
  }

  .fabtech-navigation .nav-link {
    padding: 1.2rem 0 !important;
  }

  .top-nav .dropdown-toggle::after {
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
  }

  .nav-item.show .dropdown-toggle::after {
    transform: rotate(180deg);
    filter: brightness(0.6) sepia(1) hue-rotate(-10deg) saturate(5);
    /* Color it yellow-ish */
  }
}

@media screen and (min-width:768px) and (max-width:991px) {
  .fs-56 {
    font-size: 4rem;
    line-height: 4.8rem;
  }

  .section-title-block h2,
  .media-featured-block .featured-news-block-title h2 {
    font-size: 4rem;
    line-height: 4.8rem;
  }
	
  .section-title-block-large h2 {
    font-size: 4rem;
    line-height: 4.8rem;
  }

  .fcbm-content-block {
    grid-template-columns: repeat(3, 1fr);
  }

  .qhse-content .qhse-content-left,
  .qhse-content .qhse-content-right {
    flex: 0 0 48%;
    max-width: 48%;
  }

  .project-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2.4rem;
    row-gap: 2.4em;
  }

  .pds2-points-block {
    column-gap: 3.2rem;
  }

  .pds2-pointer-item {
    max-width: auto;
  }

  .project-detail-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .caps3-slider {
    display: block;
  }

  .caps3-item-description {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 1.6rem;
    padding-left: 0;
  }

  .caps3-item {
    width: 45%;
    margin: 0 1.6rem
  }

  .ctsec1-right-image {
    aspect-ratio: 2/3;
  }
}

@media screen and (max-width:767px) {
  body {
    font-size: 1.6rem;
    line-height: 2.4rem;
  }

  .fs-56 {
    font-size: 3.2rem;
    line-height: 4rem;
  }

  .section-title-block h2 {
    font-size: 3.2rem;
    line-height: 4rem;
  }
	
  .section-title-block-large h2 {
    font-size: 3.2rem;
    line-height: 4rem;
  }

  .accordion-fabtech-home {
    display: none;
  }

  .hs1-content {
    display: grid !important;
    grid-template-columns: repeat(1, 1fr);
  }

  .hs1-item-img {
    height: 40vh !important;
    max-height: none;
  }

  .hs1-item-name h3 {
    margin: 0 0 1.2rem 0;
    font-size: 1.8rem;
    line-height: 2.4rem;
  }

  .hs1-item a,
  .hs1-item a:hover {
    border-bottom: 0px none;
    height: 40vh !important;
  }

  /*  .hs1-item a:after,.hs1-item a:hover:after{
    border-bottom:0px none;
  } */
  .hs2-right-content {
    justify-content: flex-start;
  }

  .hs2-left,
  .hs2-right {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .hs2-right {
    margin-top: 2.4rem;
  }

  .hs2-right-item h2 {
    font-size: 4.8rem;
    line-height: 4.8rem
  }

  .hs2-right-item h3 {
    font-size: 2rem;
    line-height: 2rem;
  }

  .hs2-right-block .hs2-right-item:first-child:after {
    height: 5px;
  }

  .home-sec-3 .container,
  .home-sec-3 .col-12 {
    padding-left: 0;
    padding-right: 0;
  }

  .hs4-item {
    width: 80%;
  }

  .hs4-item-img {
    height: 450px;
  }

  .hs3-nav-block .flickity-prev,
  .hs4-nav-block .flickity-prev,
  .cs3-nav-block .flickity-prev {
    left: 2rem;
  }

  .hs3-nav-block .flickity-next,
  .hs4-nav-block .flickity-next,
  .cs3-nav-block .flickity-next {
    right: 2rem;
  }

  .cs4-nav-block .flickity-prev {
    left: 0;
  }

  .cs4-nav-block .flickity-next {
    right: 0;
  }

  .hs4-item h3 {
    margin: 0.8rem 0 0 0;
    font-size: 2rem;
    line-height: 2.6rem;
  }

  .hs6-title-block,
  .hs6-content {
    grid-template-columns: repeat(1, 1fr);
  }

  .hs6-viewall-block {
    display: none;
  }

  .hs6-left {
    margin: 0 0 2rem 0;
  }

  .fcbm-content-block {
    grid-template-columns: repeat(1, 1fr);
  }

  .fcbm-block {
    margin: 0 0 3.2rem 0
  }

  .fcbm-block:last-of-type {
    margin: 0;
  }

  .hs5-content {
    display: flex;
    flex-direction: column-reverse;
    grid-column-gap: 0;
    grid-row-gap: 2.4rem;
  }

  .hs5-left-img {
    height: 250px;
  }

  .hs5-right:before,
  .hs5-right:after {
    content: none;
  }

  .hs5-right-scroll {
    padding: 0 1.6rem 0 0;
  }

  .page-title-section {
    padding: 3.2rem 0;
  }

  .cs2-block-bottom {
    grid-template-columns: repeat(1, 1fr);
    grid-column-gap: 0;
    grid-row-gap: 2rem;
  }

  .cs2-item-left {
    flex: 0 0 54px;
    max-width: 54px;
    padding: 0;
  }

  .cs2-item-right {
    flex: 0 0 calc(100% - 54px);
    max-width: calc(100% - 54px)
  }

  .cs2-item-icon {
    width: 32px;
  }

  .cs2-item-right {
    padding-left: 1.2rem;
  }

  .cs2-item-right:before {
    width: 5px;
  }

  .cs2-item-right h3 {
    font-size: 1.8rem;
    line-height: 2.4rem;
  }

  .cs1-content-block h3 {
    margin: 0 0 1.2rem 0;
  }

  .cs1-content {
    margin: 0 0 1.6rem 0;
    font-size: 1.8rem;
    line-height: 2.4rem;
  }

  .cs2-content-block {
    margin: 0 0 2.4rem 0;
  }

  .cs3-title-left,
  .cs3-title-right {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .cs3-title-left {
    margin: 0 0 1.6rem 0;
  }

  .cs3tr-cta {
    margin-top: 1.6rem;
  }

  .cs3-bottom-block {
    display: block;
    margin-top: 2.4rem;
  }

  .cs3-bottom-item {
    width: 250px;
    margin-right: 1.6rem;
  }

  .cs3-bottom-item-image {
    aspect-ratio: 1 / 1;
  }

  .cs3-bottom-item-img {
    min-height: 110px;
    height: 100%;
  }

  .cs3-bottom-item-title h3 {
    font-size: 1.8rem;
    line-height: 2.4rem;
  }

  .cs4-history-block {
    padding-left: 1.6rem;
  }

  .cs4-item-month,
  .cs4-item-text {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .cs4-item-month {
    margin-bottom: 1.6rem;
  }

  .cs4-item-image {
    flex: 0 0 100%;
    max-width: 250px;
  }

  .cs4-item-text {
    margin-top: 1.6rem;
    padding-left: 0;
  }

  .cs4-history-block:before {
    width: 5px;
  }

  .cs4-history-item {
    width: 100%;
    max-width: 250px;
    margin-right: 1.6rem;
  }

  .ts2-content {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.6rem;
    row-gap: 1.6rem;
  }

  .ts3-content {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.6rem;
    row-gap: 1.6rem;
  }

  .qhse-content .qhse-content-left,
  .qhse-content .qhse-content-right {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .qhse-content {
    margin: 0 0 4.8rem 0;
  }

  .qhse-content .qhse-content-left {
    margin: 0 0 2.4rem 0;
  }

  .qhse-content:nth-child(even) .qhse-content-right {
    order: 2
  }

  .qhse-content:nth-child(even) .qhse-content-left {
    order: 1
  }

  .qhse3-certificates {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.6rem;
    row-gap: 1.6rem;
  }

  .media-featured-block .featured-news-block-title h2 {
    font-size: 3.2rem;
    line-height: 4rem;
  }

  .media-featured-block .featured-news-block-cta,
  .featured-news-banner {
    margin: 2.4rem 0 0 0;
  }

  .ms2-list {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.6rem;
    row-gap: 1.6rem;
  }

  .media-detail-content-block {
    margin: 4.8rem 0 0 0;
  }

  .media-detail-sec-2 .ms2-content .section-title-block {
    margin: 0 0 2.4rem 0;
  }

  .cls1-pointer-left,
  .cls1-pointer-right,
  .cls2-listing-left,
  .cls2-listing-right,
  .cls1-right-item {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .cls1-right-item {
    margin: 0 0 1.6rem 0;
  }

  .cls1-right-item:last-of-type {
    margin: 0;
  }

  .cls1-right-item .seperator-horizontal {
    margin: 1.2rem 0;
  }

  .cls1-pointer-left {
    margin: 0 0 2.4rem 0;
  }

  .cls1-right-item h3 {
    margin: 0 0 0.8rem 0;
  }

  .cls1-description {
    font-size: 1.8rem;
    line-height: 2.4rem;
    font-weight: 400;
  }

  .cls1-title {
    margin: 2.4rem 0 1.6rem 0;
  }

  .cls2-content .seperator-horizontal {
    margin: 2.4rem 0;
  }

  .career-list-item {
    padding: 2.4rem 1.6rem;
  }

  .career-form-block {
    padding: 2.4rem;
  }

  .project-list {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    column-gap: 2.4rem;
    row-gap: 2.4em;
  }

  .pli-content-description {
    margin: 1.2rem 0 2.4rem 0;
  }

  .project-detail-sec-1 {
    padding: 4.8rem 0;
  }

  .pds2-points-block {
    grid-template-columns: repeat(1, 1fr);
    column-gap: 0;
    row-gap: 2.4rem;
  }

  .pds2-pointer-item {
    max-width: auto;
  }

  .pds2-content .section-title-block {
    margin-bottom: 1.6rem;
  }

  .pds2-description {
    margin: 0 0 2.4rem 0;
    font-size: 1.8rem;
    line-height: 2.4rem;
  }

  .project-detail-gallery,
  .fs1-list-block {
    grid-template-columns: repeat(1, 1fr);
  }

  .fs1-list-block {
    row-gap: 2.4rem;
    column-gap: 0
  }

  .fs1-item-tags span {
    padding: 0.6rem 1.2rem;
    font-size: 1.8rem;
    line-height: 2.6rem;
  }

  .fs1-item-description {
    margin: 2.4rem 0 0 0;
  }

  .caps3-slider {
    display: block;
  }

  .caps3-item-image {
    flex: 0 0 100%;
    max-width: 240px;
  }

  .caps3-item-img {
    height: 180px;
  }

  .caps3-item-description {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 1.6rem;
    padding-left: 0;
  }

  .caps3-item {
    width: 80%;
    margin: 0 1.6rem
  }

  .caps1-content-image {
    margin-top: 4.8rem;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .caps1-banner-img {
    max-height: 400px;
  }

  .caps1-content-text {
    margin-top: 2.4rem;
    flex: 0 0 100%;
    max-width: 100%;
    font-size: 1.8rem;
    line-height: 2.4rem;
  }

  .sust2-content,
  .sust-detail-sec-2 .sust2-content {
    grid-template-columns: repeat(1, 1fr);
    column-gap: 0;
    row-gap: 2.4rem;
  }

  .sust-detail-sec-1 .cs1-image-block {
    margin: 0 0 2.4rem 0;
  }

  .career-detail-form-block {
    padding: 3.2rem 1.6rem;
  }

  .cds3-item {
    grid-template-columns: 100%;
  }

  .cds3-item-text {
    padding: 3.2rem 1.6rem;
  }

  .career-detail-title-content {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2.4rem;
    row-gap: 1.6rem;
  }

  .ctsec1-form-field input[type="text"],
  .ctsec1-form-field input[type="email"],
  .ctsec1-form-field textarea {
    padding: 1.6rem;
    font-size: 1.6rem;
    line-height: 2.4rem;
  }

  .ctsec1-left {
    padding: 0 0 4.8rem 0;
  }

  .ctsec1-left,
  .ctsec1-right {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .contact-sec-1.page-title-section {
    padding: 4.8rem 0 0 0;
  }

  .location-list-left,
  .location-list-right {
    flex: 0 0 100%;
    max-width: 100%;
    align-self: auto;
  }

  .location-list-right {
    margin-top: 1.6rem;
  }

  .location-list-right .location-map {
    height: 430px;
  }

  .location-item {
    width: 85%;
    margin-right: 1.6rem;
  }

  .ctsec2-content h2 {
    margin: 0 0 1.6rem 0;
  }

  .product-nav-block button svg {
    width: 40px;
    height: 40px;
  }

  .product-nav-block .flickity-prev {
    left: 2rem;
  }

  .product-nav-block .flickity-right {
    right: 2rem;
  }

  .product-list .project-list-item {
    width: 85%;
    margin: 0 0.4rem;
  }

  #tabSet {
    display: none;
  }

  .subproduct-tab-title-mobile {
    display: block;
    margin: 0 1.6rem 1.6rem 1.6rem;
  }

  .stt-item-name {
    position: relative;
    display: block;
    padding: 1.6rem;
    border: 1px solid var(--blue-2);
    font-size: 1.8rem;
    line-height: 2.4rem;
    font-family: 'GeneralSans-Semibold';
    font-weight: 600;
    color: var(--blue-2);
    border-radius: 3px;
  }

  .stt-item-arrow {
    position: absolute;
    right: 1.6rem;
    top: 1.6rem;
  }

  #myTabContent.tab-content>.tab-pane {
    display: block;
    opacity: 1;
  }

  #myTabContent.tab-content>.tab-pane .subproduct-tab-content {
    display: none;
  }

  #myTabContent.tab-content>.tab-pane .subproduct-tab-content.show-tab {
    display: block;
  }

  #myTabContent.tab-content>.tab-pane .subproduct-tab-title-mobile.active {
    background: var(--blue-2);
  }

  #myTabContent.tab-content>.tab-pane .subproduct-tab-title-mobile.active a {
    color: #fff;
  }

  #myTabContent.tab-content>.tab-pane .subproduct-tab-title-mobile.active a svg path {
    stroke: #fff;
  }

  #myTabContent.tab-content>.tab-pane .subproduct-tab-title-mobile.active a svg {
    transform: rotate(180deg);
  }

  .subproduct-slider-block {
    margin: 1.6rem;
  }

  .subproduct-slider-block button svg {
    width: 40px;
    height: 40px;
  }

  .subproduct-slider-block .flickity-next {
    right: 0;
  }

  .subproduct-slider-block .flickity-prev {
    left: 0;
  }

  .subproduct-slide-item {
    width: 66%;
    margin: 0 0.6rem;
  }

  .filter-block-options {
    flex: 0 0 100%;
    max-width: 100%;
    margin: 1.6rem 0 0 0;
    padding-left: 0;
  }

  .cs5-description {
    font-size: 1.8rem;
    line-height: 2.6rem;
  }

  .media-detail-image-grid {
    gap: 1.6rem !important
  }

  .mdi-item {
    grid-column: span 2 !important;
  }
}

@media screen and (max-width:560px) {
  .ts2-content {
    grid-template-columns: repeat(1, 1fr);
    column-gap: 0;
    row-gap: 1.6rem;
  }

  .ms2-list {
    grid-template-columns: repeat(1, 1fr);
    column-gap: 0;
    row-gap: 1.6rem;
  }

}

/* Responsive */
@media (max-width: 1024px) {
  .inner-banner-v2-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .inner-banner-v2-title {
    font-size: 4rem;
  }

  .inner-banner-v2-images-wrapper {
    max-width: 450px;
  }
}

@media (max-width: 768px) {
  .inner-banner-v2 {
    padding-top: 2rem;
  }

  .inner-banner-v2-left {
    padding: 0;
  }

  .inner-banner-v2-wrapper {
    gap: 2rem;
    padding: 0 1.5rem;
  }

  .inner-banner-v2-title {
    font-size: 3.2rem;
  }

  .inner-banner-v2-label {
    font-size: 1.2rem;
  }

  .inner-banner-v2-images-wrapper {
    max-width: 100%;
  }

  .inner-banner-v2-image-wrapper {
    max-width: 290px;
    aspect-ratio: 260 / 93;

    -webkit-mask-image: url('/wp-content/themes/fabtechtheme/assets/images/mobile-shape.svg');
    mask-image: url('/wp-content/themes/fabtechtheme/assets/images/mobile-shape.svg');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: bottom;
    mask-position: bottom;

    clip-path: none;
    -webkit-clip-path: none;
  }

  .inner-banner-v2-image {
    padding: 1.5rem;
    border-radius: 1.8rem;
  }

  /* Fix for Project Page Filter Overflow */
  .custom-margin-left {
    margin: 0px 20px 0px 20px;
  }
}

/* =========================================
   PROJECT FILTER REFACTOR (Desktop & Mobile)
   ========================================= */

/* Filter Header Row */
.filter-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

/* Filter Toggle Button */
.filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #C2C1C1;
  border-radius: 4px;
  padding: 8px 16px;
  font-family: 'GeneralSans-Regular';
  font-size: 1.6rem;
  color: #171717;
  cursor: pointer;
  height: 40px;
  /* consistent height */
}

/* Chips List */
.active-filters-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Individual Chip */
.filter-chip {
  display: inline-flex;
  align-items: center;
  background-color: #F3A93C;
  /* Orange/Yellow from design */
  color: #171717;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 1.4rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.filter-chip:hover {
  opacity: 0.9;
  color: #171717;
}

.chip-remove {
  display: inline-flex;
  margin-left: 8px;
  cursor: pointer;
}

/* Clear All Link */
.filter-clear-all {
  font-size: 1.6rem;
  font-weight: 600;
  /* bold like design */
  color: #22407C;
  /* Blue from design */
  text-decoration: none;
}

.filter-clear-all:hover {
  text-decoration: underline;
}

/* =========================================
   FILTER PANEL STYLING (Checkboxes on Right)
   ========================================= */

/* Panel Container */
.filter-panel {
  display: none !important;
  border: 1px solid #000;
  /* As per design (black border) */
  border-radius: 0;
  /* Sharp corners in design */
  padding: 0;
  /* Reset padding */
  overflow: hidden;
}

.filter-panel.is-open {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  /* Row layout for desktop */
}

@media screen and (max-width: 768px) {
  .filter-panel.is-open {
    display: flex !important;
    flex-direction: column !important;
    /* Column layout for mobile */
  }
}

/* Filter Box (Sector/Product) */
.filter-box {
  padding: 16px;
  border-bottom: 1px solid #E5E5E5;
}

.filter-box:last-child {
  border-bottom: none;
}

.filter-box h4 {
  font-size: 1.8rem;
  /* slightly bolder/larger */
  font-weight: 700;
  margin-bottom: 12px;
  border-bottom: none;
  /* remove old orange underline if present */
  color: #000;
}

/* Filter Option Row */
.filter-option {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  /* Text left, Checkbox right */
  padding: 8px 0;
  cursor: pointer;
  font-size: 1.6rem;
  color: #333;
}

/* Custom Checkbox Styling to match Orange Box */
.filter-option input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border: 1px solid #F3A93C;
  /* Orange border */
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  position: relative;
  background-color: #fff;
  transition: all 0.2s ease;
}

.filter-option input[type="checkbox"]:checked {
  background-color: #F3A93C;
}

/* Checkmark (using pseudo-element on input is tricky with appearance:none, 
   but works in modern browsers. Alternatively could use a span.) */
.filter-option input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 3px;
  width: 8px;
  height: 14px;
  border: solid #171717;
  /* Black checkmark */
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}