:root {
  --brand-red: #eb312f;
  --table-head: #1d1f23;
  --table-head-text: #fff;
}



@font-face {
  font-family: "Roboto";
  src: url("../../fonts/roboto-regular-webfont.woff2") format("woff2"),
    url("../../fonts/roboto-regular-webfont.woff") format("woff"),
    url("../../fonts/roboto-regular-webfont.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("../../fonts/roboto-medium-webfont.woff2") format("woff2"),
    url("../../fonts/roboto-medium-webfont.woff") format("woff"),
    url("../../fonts/roboto-medium-webfont.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("../../fonts/roboto-bold-webfont.woff2") format("woff2"),
    url("../../fonts/roboto-bold-webfont.woff") format("woff"),
    url("../../fonts/roboto-bold-webfont.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("../../fonts/roboto-black-webfont.woff2") format("woff2"),
    url("../../fonts/roboto-black-webfont.woff") format("woff"),
    url("../../fonts/roboto-black-webfont.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
}

/* .fonts-loaded body {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
} */

.dark-bg-color {
  background-color: #000;
}

.catalog-container .catalog-btn {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.primary_bg-color {
  background-color: #e63225;
}
.secondary_grey_bg {
  background-color: #e5e5e5;
}
a {
  color: #000;
  text-decoration: underline;
}
h1 {
  font-size: 5.2rem;
  font-weight: 900;
}
h2 {
  font-size: 3rem;
  font-weight: 700;
}
h3 {
  font-size: 1.625rem;
  font-weight: 700;
}
h4 {
  font-size: 2rem;
  font-weight: 700;
}
h5 {
  font-size: 1.7rem;
  font-weight: 700;
}
h6 {
  font-size: 1.5rem;
  font-weight: 700;
}
.color_white {
  color: #fff;
}
.color_black {
  color: #000;
}
p,
ul {
  font-size: 1.1rem;
}
ul {
  padding-left: 20px;
}
img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.text-gray {
  color: #4e4e4e;
}

.btn1 {
  color: #000;
  background-color: #fff;
  cursor: pointer;
  display: inline-block;
  padding: 6px 20px;
  border-radius: 8px;
  -webkit-transition: 0.2s ease-in-out;
  -moz-transition: 0.2s ease-in-out;
  -o-transition: 0.2s ease-in-out;
  transition: 0.2s ease-in-out;
  text-decoration: none;
}
.btn1:hover {
  color: #fff;
  background-color: #000;
  text-decoration: none;
}
.btn2:hover {
  color: #fff;
  background-color: #000;
  text-decoration: none;
}
.small_border {
  position: relative;
  margin-bottom: 40px;
  padding-bottom: 15px;
}
.small_border::after {
  position: absolute;
  content: "";
  width: min(120px, 20%); /* More consistent sizing across devices */
  height: 6px; /* Slightly thinner for better proportion */
  background: #e63225;
  bottom: -15px; /* Align directly with element bottom */
  left: 2px;
  border-radius: 2px; /* Subtle rounding for modern look */
}

@media (max-width: 576px) {
  .small_border::after {
    left: 0;
  }
}

.yt-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
}

.vid-placeholder {
  background-image: url("https://img.youtube.com/vi/2b0Dl9PLTBw/hqdefault.jpg");
  background-size: cover;
  background-position: center;
  cursor: pointer;
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

header {
  position: relative;
  position: sticky;
  top: 0;
  z-index: 9;
  background-color: #fff;
}
header strong {
  font-weight: 500;
}
.mobile-screen {
  position: fixed;
  top: 84px;
  right: -100%;
  max-width: 500px;
  height: 100vh;
  z-index: 99999;
  background-color: #e63225;
  display: none;
  width: 100%;
  transition: all 0.5s linear;
  padding: 20px;
}
.top_web_info {
  position: relative;
  word-break: break-word;
}
.top_phone .phone_grid:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}
.top_web_info.top_phone:after {
  display: none;
}
.top_web_info:after {
  position: absolute;
  content: "";
  width: 5px;
  background: #e63225;
  height: 80%;
  top: 10%;
  right: 0;
}
.top_web_info .header-icon {
  width: 30px;
  height: 30px;
  margin-inline-end: 10px;
}
.top_web_info .header-icon svg {
  width: 100%;
  height: 100%;
}
.top_web_info p {
  margin: 0;
  font-size: 13px;
  color: #000000;
  text-align: left;
}
.top_web_info p a {
  color: #000000;
  text-decoration: none;
}
.top_phone {
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.top_hours {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}
.grey,
.grey a {
  color: rgba(0, 0, 0, 0.64);
}
.title_social_inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
}
.title_social_inner .small_title_top a {
  color: #fff;
  border-bottom: 2px solid #ffffff;
  font-size: 18px;
  padding-bottom: 2px;
  display: inline-block;
  text-decoration: none;
}
.title_social_inner .top_order_social {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.social_media_wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}
.social_media_wrapper a {
  margin: 0 4px;
  font-size: 20px;
  position: relative;
  display: inline-block;
}
.social_media_wrapper > div {
  padding: 0 4px;
}
.social_media_wrapper a:hover {
  color: #000;
}
.primary_bg-color:hover {
  background-color: #e63225;
  color: #fff;
}

/* .banner-container {background-size:cover; background-repeat:no-repeat; background-position:center; background-color:#000; background-image: url('../images/terberg-shunt-trucks-for-sale-banner.webp');} */
.banner-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 630px; /* Ensure a minimum height for smaller screens */
  background-color: #000; /* Fallback color */
  contain: layout style paint; /* CSS containment for better performance */
}

/* // media queries for 4k 3840px */
@media (min-width: 3840px) {
  .banner-container {
    min-height: 810px; /* Adjust height for larger screens */
  }
}

.banner-container picture,
.banner-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform; /* Hint for GPU acceleration */
}

.banner-container .container {
  position: relative;
  z-index: 2;
  contain: layout style; /* Isolate reflows */
}
.banner-container h1 {
  font-size: 3.4rem;
  line-height: 1.2;
  will-change: auto;
  font-weight: black;
  letter-spacing: -1px;
  margin-top: 20px;
}

.banner-container h3 {
  font-weight: 400;
  position: relative;
  top: 10px;
  font-size: 1.4rem;
  line-height: 1.3;
  padding-top:2rem;

}
@media screen and (min-width: 3840px) {

   .banner-container h1 {
    font-size: 4.2rem;
  padding-top:2rem;

  }
  .banner-container h3 {
    font-size: 2rem;
  padding-top:3.5rem;

  }
}

@media (min-width: 2048px) and (max-width: 3839px) {
  .banner-container h1 {
    font-size: 3.8rem;
  }
  .banner-container h3 {
    font-size: 1.7rem;
  padding-top:1rem;

  }
}

@media screen and (max-width: 768px) {
  .banner-container h1 {
    font-size: 3.5rem;
  }
  .banner-container h3 {
    font-size: 1.8rem;
  }
}

@media screen and (max-width: 576px) {
  .banner-container picture,
.banner-container img {
    opacity: 0.7;

  }
  .banner-container {
    position: relative;
    min-height: 280px; /* Adjust for mobile */

  }
  .banner-container h1 {
    font-size: 1.5rem;
    opacity: 1;
    color: #fff !important;
    text-align: center;
  }
  .banner-container h3 {
    padding-top: 0;
    font-size: 1rem;
        color: #fff !important;
    text-align: center;


  }
    .desktop-break {
    display: none;
  }
}

/* Media queries with better performance */
/* @media (min-width: 768px) {
  .banner-container {
    min-height: 400px;
  }
  .banner-container h1 {
    font-size: 3rem;
  }
} */

/* Remove expensive operations from mobile */
/* @media (max-width: 576px) {
  .banner-container::before {
    content: "";
    background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0) 100%
    );
    width: 100%;
    position: absolute;
    height: 80%;
    bottom: 0;
    z-index: 1;
    will-change: transform;
  }
} */
.middle_locations ul,
.sub_heading ul {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}
.sub_heading ul li {
  text-transform: capitalize;
  float: left;
  padding-right: 15px;
  margin-right: 15px;
  font-size: 22px;
  font-weight: 700;
  position: relative;
}
.sub_heading ul li:not(:last-child):after {
  position: absolute;
  content: "";
  width: 7px;
  height: 7px;
  right: -5px;
  top: calc(50% - 3.5px);
  background: #fff;
  border-radius: 50%;
}
.testimonial_container {
  background-color: var(--brand-red);
  padding: 45px 0;
}
.testimonial_author {
  margin-bottom: 0;
  color: #fff;
  font-size: 23px;
  font-weight: 900;
}
.testimonial_star {
  margin-bottom: 0px;
  font-size: 14px;
  color: #fff;
}
.testimonial_list {
  position: relative;
}

.testimonial_list p {
  color: #fff;
}
.testimonial_list p::before {
  content: "";
  line-height: 35px;
  background-image: url("https://cropac.com/lp/manitex/images/manitex-crane-parts-for-sale-quote-left.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 30px;
  height: 30px;
  position: absolute;
  top: 0;
  left: 0;
}
.testimonial_list p::after {
  content: "";
  display: inline-block;
  font-size: 45px;
  line-height: 35px;
  background-image: url("https://cropac.com/lp/manitex/images/manitex-crane-parts-for-sale-quote-right.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 30px;
  height: 30px;
}
.fa-quote-right {
  font-weight: 700;
  color: #97bf26;
  left: 0;
  font-size: 45px;
}
.testimonial_list p {
  margin: 10px 0px;
  text-align: left;
  padding-left: 40px;
  position: relative;
}
.gallery_img_fill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.faq_colmn ul li {
  margin-bottom: 20px;
}
.faq_colmn {
  border: 1px solid #707070;
  padding: 20px;
  height: 100%;
}
.discover-performance li {
  margin-bottom: 10px;
}
.discover-performance li:last-child {
  margin-bottom: 0;
}
.discover-performance {
  padding: 3rem 0;
}

@media screen and (max-width: 576px) {
  .discover-performance {
    padding: 2rem 0 0 0 ;
  } 
  
}
.guarantee-img {
  width: 100%;
  height: auto;

  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 400px;
  margin: auto;
}
.underlin-txt {
  font-size: 22px;
  margin-bottom: 5px;
  display: block;
  text-decoration: underline;
}

.firewood_faq {
  /* padding: 87px 0 63px; */
  padding: 0 0 3rem 0;
}
.firewood_faq img {
  /* max-width: 340px; */
  width: 100%;
  margin: auto;
  display: block;
}
.truck-team .wrap {
  display: flex;
  gap: 15px;
  align-items: center;
}
.truck-team .wrap h5 {
  font-size: 26px;
  font-weight: 700;
  position: relative;
}
.truck-team .wrap h5::after {
  display: block;
  content: "";
  background-color: #e63225;
  max-width: 179px;
  width: 100%;
  height: 5px;
}
.truck-team span {
  display: block;
  font-size: 14px;
  font-weight: 500;
}
.truck-team small {
  display: block;
}
.truck-team .connection-link {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 10px;
}
.truck-team .connection-link a {
  color: #fa251e;
  font-size: 17px;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}
.truck-team .connection-link a svg {
  width: 20px;
  height: 20px;
}
.truck-team .team-profile {
  width: 130px;
  height: 130px;
  overflow: hidden;
  border-radius: 100%;
}
.truck-team .team-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.3) translate(5px, 15px);
}
.truck-team .truck-team-container {
  margin: 0px 0 60px;
  padding: 30px;
  border: 1px solid #707070;
  border-radius: 8px;
}

.truck-form .truck-form-wrapper {
  background-color: #e63225;
  padding: 26px;
  margin-block-end: 60px;
  border-radius: 8px;
}
.truck-form .truck-form-wrapper h2,
.truck-form .truck-form-wrapper p {
  color: #fff;
}
.truck-form .truck-form-wrapper input,
.truck-form .truck-form-wrapper textarea {
  padding: 16px;
  width: 100%;
  outline: none;
  border: 1px solid #fff;
  color: #000;
  margin-block-end: 20px;
  font-size: 18px;
  border-radius: 8px;
}
.truck-form .truck-form-wrapper textarea {
  margin-block-end: 0px;
  height: 100%;
}
textarea[name="message"] {
  min-height: 38px; /* Standard input height */
  max-height: 200px; /* Maximum height */
  overflow-y: auto; /* Add scrollbar when maximum height is reached */
  resize: none; /* Prevent manual resizing if desired */
  transition: height 0.1s ease; /* Smooth height transition */
}
.truck-form .truck-form-wrapper textarea:focus {
  box-shadow: none;
  border: 1px solid #ffd102;
  outline: 1px solid #ffd102;
}
.truck-form .truck-form-wrapper input:focus {
  box-shadow: none;
  border: 1px solid #ffd102;
  outline: 1px solid #ffd102;
}
.truck-form .truck-form-wrapper textarea::placeholder {
  font-size: 18px;
}
.truck-form .truck-form-wrapper button {
  width: 100%;
  padding: 16px;
  color: #000;
  background-color: #fff;
  border: 1px solid #fff;
  outline: none;
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
}
.truck-form .truck-form-wrapper button:hover {
  background-color: #000;
  border: 1px solid #fa251e;
  color: #fff;
}
@media screen and (max-width: 768px) {
  .truck-team .team-profile img {
    transform: none;
  }

  .message-ip {
    margin-top: 20px !important;
  }
  .truck-form .truck-form-wrapper {
     margin-block-end: 30px;

  }
}

.learn-more-bx.primary_bg-color {
  background: #000;
}

.contact-cropac {
  background-color: #000;
  color: #fff;
  padding: 30px 0;
  margin-bottom: 60px;
}
.contact-cropac h4 {
  font-size: 34px;
  text-align: center;
  color: #fff;
  font-weight: 400;
}
footer .footer-logo {
  text-align: center;
  max-width: 310px;
  margin: 0 auto 25px;
}
footer p {
  text-align: center;
}
footer h6 {
  text-align: center;
  font-size: 27px;
  margin: 40px 0 40px;
}
footer ul {
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}
footer ul li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 5px  ;
  width: calc((100% / 5) - 5px);

}
footer ul li img {
  max-width: 110px;
  height: auto;
}
footer ul li svg {
  min-width: 22px;
}
footer ul li i {
  font-size: 28px;
}
footer li p {
  text-align: left;
  font-size: 15px;
  margin-bottom: 10px;
}
footer li b {
  font-size: 16px;
}
/* footer .bottom-line {
  height: 72px;
  width: 100%;
  background-color: #222e36;
  margin-top: 50px;
} */
footer .bottom-line {
  background-color: #222e36;
  color: #ccc;
  height: 72px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  border-bottom: 5px solid var(--brand-red);
  font-size: 0.9rem;
  text-align: center;
  padding: 0 10px;
  margin-top: 30px;
}

footer .bottom-line a {
  color: #ccc;
  text-decoration: none;
}
footer .bottom-line span {
  margin: 5px 20px;
  white-space: nowrap;
}

footer .copyright-line {
  background-color: #222e36;
  color: #ccc;
  height: 72px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  border-bottom: 5px solid var(--brand-red);
  font-size: 0.9rem;
  text-align: center;
  padding: 0 10px;
}
.copyright-bar {
  background-color: #fff;
  color: #000;
  font-size: 0.85rem;

  padding: 20px 20px;
  border-top: 1px solid #ccc;
}
.copyright-bar .links a {
  color: #000;
  text-decoration: none;
  margin: 0 8px;
}
.copyright-bar .links a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
  footer .bottom-line {
    height: 102px;
  }

  .copyright-bar {
    padding: 5px 5px;
  }
}

@media screen and (max-width: 576px) {
  footer ul li {
    width: calc((100% / 2) - 5px);
    margin-bottom: 30px;
  }
  footer .bottom-line {
    margin-top:15px;
  }

  
}

/*  */
.burger {
  position: relative;
  width: 20px;
  height: 16px;
  background: transparent;
  cursor: pointer;
  display: block;
}
.burger input {
  display: none;
}
.burger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: black;
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}
.burger span:nth-of-type(1) {
  top: 0px;
  transform-origin: left center;
}
.burger span:nth-of-type(2) {
  top: 50%;
  transform: translateY(-50%);
  transform-origin: left center;
}
.burger span:nth-of-type(3) {
  top: 100%;
  transform-origin: left center;
  transform: translateY(-100%);
}
header.active .burger span:nth-of-type(1) {
  transform: rotate(45deg);
  top: 0px;
  left: 0px;
}
header.active .burger span:nth-of-type(2) {
  width: 0%;
  opacity: 0;
}
header.active .burger span:nth-of-type(3) {
  transform: rotate(-45deg);
  top: 14px;
  left: 0px;
}
.mobile-nav-wrap {
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
}
.mobile-nav-btn {
  width: auto;
  display: none;
}
.success-icon {
  height: 60px;
  width: 60px;
}
.modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* FAQ Start */

ul.faq-list-2 {
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
  margin-left: 1rem;
}
ul.faq-list-2 li span {
  display: block;
  margin-block-end: 10px;
  font-weight: 600;
}
.faq_colmn {
  border: 1px solid #707070;
  padding: 20px;
  height: 100%;
}
.faq_colmn-image {
  height: auto;
  width: 100%;
}
.faq_colmn-image img {
  height: auto;
  width: 100%;
  object-fit: contain;
}
.faq_colmn-image.cover img {
  object-fit: cover;
}
.faq_colmn-image table {
  width: 100%;
}
.faq_colmn-image table td {
  border: 1px solid #000;
  padding: 5px;
}
.faq_colmn-image table th {
  border: 1px solid #000;
  background-color: #000;
  color: #fff;
  padding: 5px;
}
.faq_colmn p {
  margin-bottom: 1rem;
}

@media (min-width: 992px) {
  /* Adjust breakpoint as needed */
  .faq_colmn p {
    margin-bottom: 1.5rem;
  }
}

ul.faq-list {
  margin-left: 1rem;
  list-style: disc;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-list li {
  margin-bottom: 0 !important;
}

/* FAQ End */

/* Gallery Start */

/* Gallery List/Grid Styles */
.unmatched-performance ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 25px;
  margin-block: 30px 45px;
  padding: 0;
  justify-content: center;
}

@media screen and (max-width: 576px) {
  .unmatched-performance ul {
    margin-block: 0;
    gap: 15px;
  }
  
}

.unmatched-performance ul li {
  width: calc(
    (100% - 100px) / 5
  ); /* Default for 5 items per row with 25px gap */
}

/* Individual Gallery Image/Thumbnail Styles */
/* Fix gallery images */
.gallery_image {
  border-radius: 5px;
  overflow: hidden;
  height: auto;
  width: 100%;
}

.gallery_image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.gallery_image.big {
  height: 290px;
}

.gallery_image.big + p {
  /* Caption for big gallery images */
  text-align: center;
  font-size: 18px;
  margin-block-start: 10px;
  font-weight: 600;
}

.gallery_image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}


@media screen and (max-width: 576px) {
 .parts-container{
  margin-top: 2rem !important;
 }
}
.unmatched-performance {
  margin-top: 1rem;
}

/* Popup Action (usually on the image/thumbnail) */
.unmatched-performance .popup_action {
  cursor: pointer;
}

/* Popup Modal Styles */
.unmatched-performance .popup-modal {
  display: none; /* Controlled by JS */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 15px;
}

.unmatched-performance .popup-image {
  /* Container for the large image and close button */
  position: absolute;
  max-width: 80%;
  max-height: 80%;
  width: auto;
  height: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.unmatched-performance .popup-image img {
  /* The large image itself */
  display: block;
  object-fit: contain;
  width: 100%;
  height: 100%;
  border: #fff solid 10px;
  border-radius: 8px;
  background-color: #fff;
  /* border-radius: 10px; /* Duplicate, can be removed */
}

.unmatched-performance .popup-text {
  /* Caption/text for the image in the modal */
  padding: 10px;
  color: #fff;
  text-align: center; /* Added for better default text display */
}

.unmatched-performance .close-btn {
  margin-left: auto;
  font-size: 15px; /* This might be small, consider increasing */
  cursor: pointer;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px; /* This is for the 'X' text, if using an icon, adjust */
  color: #000;
  height: 25px;
  border-radius: 100%;
  position: absolute;
  right: -30px; /* Adjust as needed for positioning */
  top: -30px; /* Adjust as needed for positioning */
  /* Ensure it's visually clear, e.g., by adding content: '×'; */
}

/* Responsive adjustments for gallery items */
@media (max-width: 1200px) {
  .unmatched-performance ul li {
    width: calc((100% - 75px) / 4); /* 4 items per row */
  }
}

@media (max-width: 992px) {
  .unmatched-performance ul li {
    width: calc((100% - 50px) / 3); /* 3 items per row */
  }
}

@media (max-width: 576px) {
  .unmatched-performance ul li {
    width: calc((100% - 25px) / 2); /* 2 items per row */
  }
  .gallery_image.big {
    height: auto; /* Adjust for smaller screens */
  }
}

/* Responsive adjustments for popup image */
@media (max-width: 767px) {
  .unmatched-performance .popup-image {
    max-width: 90%; /* Allow more width on smaller screens */
    max-height: 90%;
  }
  .unmatched-performance .close-btn {
    right: 5px; /* Bring close button more into view */
    top: 5px;
    width: 30px;
    height: 30px;
    font-size: 20px;
  }
}

.gallery_img_fill img {
  /* If you use a container with class gallery_img_fill */
  width: 100%;
  height: 100%;
  object-fit: cover; /* 'cover' vs 'contain' depends on desired effect */
}

.unmatched-performance .gallery_img_fill {
  /* When used within .unmatched-performance */
  margin-bottom: 30px; /* Or 90px depending on context */
  align-items: center; /* If it's a flex container */
}

.unmatched-performance .popup_action {
  cursor: pointer;
}
.unmatched-performance .popup-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 15px;
}
.unmatched-performance .popup-text {
  padding: 10px;
  color: #fff;
}
.unmatched-performance .popup-image img {
  display: block;
  object-fit: contain;
  width: 100%;
  height: 100%;
  border: #fff solid 10px;
  border-radius: 8px;
  background-color: #fff;
  border-radius: 10px;
}
.unmatched-performance .popup-image {
  position: absolute;
  max-width: 80%;
  max-height: 80%;
  width: auto;
  height: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.unmatched-performance .close-btn {
  margin-left: auto;
  font-size: 15px;
  cursor: pointer;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  color: #000;
  height: 25px;
  border-radius: 100%;
  position: absolute;
  right: -30px;
  top: -30px;
}

/* Responsive adjustments from this file */
@media (max-width: 767px) {
  .unmatched-performance .popup-image {
    width: 100%;
  }
}
@media (max-width: 576px) {
  .unmatched-performance .gallery_img_fill {
    /* If using this class */
    margin-bottom: 30px;
  }
}

/* Gallery End  */
/* Custom */

.footer-address-icon {
  width: 20px;
  height: 25px;
}
.footer-address-icon svg {
  width: 100%;
  height: 100%;
}

.video-responsive {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 1200px) {
  .truck-team .team-profile {
    width: 85px;
    height: 85px;
  }
  .truck-team .wrap h5 {
    font-size: 20px;
  }
}

@media (max-width: 992px) {
  .mobile-nav-btn {
    display: block;
  }
  header.active .mobile-screen {
    right: 0%;
  }
  header {
    box-shadow: rgba(0, 0, 0, 0.25) 0 0 30px;
  }

  footer ul li {
    width: calc((100% / 3) - 14px);
  }
  .top_web_info:after {
    display: none;
  }
  .mobile-hide {
    display: none;
  }
  .mobile-screen {
    display: block;
  }
  .top_hours,
  .top_phone {
    padding-left: 0;
    margin-bottom: 20px;
  }
  .top_web_info p {
    text-align: left;
  }
  .title_social_inner {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
  }
  .top_web_info p {
    color: #fff;
  }
  header .top_web_info p.grey,
  .top_web_info p a {
    color: #fff;
  }
  .top_phone .phone_grid:first-child {
    padding-left: 0;
  }
  .logo_container {
    width: 150px;
    height: auto;
  }

  .logo_container img {
    max-width: 150px;
    height: auto;
  }
  footer .footer-logo img {
    max-width: 180px;
  }
  .top_hours {
    padding-left: 0;
  }
}

@media (min-width: 768px) {
  .top_hours {
    padding-right: 27px;
  }
  .top_phone {
    display: flex;
  }
  .footer_logo {
    max-width: 360px;
  }
  .testimonial_list p {
    font-size: 30px;
  }
}

@media (max-width: 767px) {
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.125rem;
  }
  .social_media_wrapper {
    min-width: 78px;
  }
  .testimonial_list p {
    font-size: 24px;
  }
  .middle_locations ul li {
    font-size: 27px;
  }
  .gallery_secondary_col {
    padding-top: 24px;
  }
  footer ul li {
    width: calc((100% / 2) - 10px);
  }
}

@media (max-width: 576px) {
  .top_web_info .header-icon {
    width: 30px;
    height: 30px;
    margin-inline-end: 10px;
  }
  .small_border {
    margin-bottom: 20px;
    padding-bottom: 0;
  }
  .small_border::after {
    width: min(80px, 25%);
    height: 4px;
  }
  p,
  ul {
    font-size: 0.875rem;
  }
  ul li strong {
    font-size: 1.125rem;
  }
  .footer-address-icon {
    width: 15px;
    height: 20px;
  }
  .truck-team .wrap h5 {
    font-size: 18px;
  }
  .truck-team .connection-link {
    margin-top: 10px;
  }
  .truck-team .wrap h5::after {
    max-width: 119px;
  }
  .truck-team .connection-link a {
    font-size: 14px;
  }

  .testimonial_author,
  .testimonial_star {
    text-align: center;
  }
  .testimonial_list p {
    font-size: 16px;
  }
  .testimonial_list p::before,
  .testimonial_list p::after {
    width: 12px;
    height: 12px;
  }
  .testimonial_list p {
    padding-left: 20px;
  }
  h2,
  h4,
  .contact-cropac h4 {
    font-size: 1.375rem;
  }
  h1 {
    font-size: 1.625rem;
    font-weight: 700;
    margin-bottom: 20px;
  }
  .banner-container h3.color_white {
    font-size: 16px;
  }
  .sub_heading ul li {
    font-size: 16px;
  }

  .firewood_faq {
    padding-top: 0;
    padding-bottom: 1.5rem;
  }
  .truck-team{
    margin-top: 0 !important;
  }
  .mobile-screen {
    top: 83px;
  }

  .mobile-screen svg,
  .mobile-screen path {
    fill: #fff;
    width: 24px;
  }
  /* .banner-container::before {
    content: "";
    background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0) 100%
    );
    width: 100%;
    position: absolute;
    height: 80%;
    bottom: 0;
    z-index: 1;
  } */
  .banner-container .container {
    position: relative;
    z-index: 2;
  }

  .discover-performance li {
    margin-bottom: 20px;
  }
  .testimonial_container,
  .truck-team .truck-team-container {
    padding: 20px;
    margin-bottom: 20px;
  }
  footer h6 {
    font-size: 18px;
     margin: 20px;
  }

  .cr-mt-sm-1 {
    margin-top: 1rem;
  }

  .cr-mt-sm-2 {
    margin-top: 2rem;
  }
}

/* ===== Header / Callouts ===== */
.callout {
  position: relative;
  background: var(--brand-red);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 0.5rem;
  padding: 0.6rem 2.75rem 0.6rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.callout::after {
  content: "";
  position: absolute;
  right: -22px;
  top: 50%;
  translate: 0 -50%;
  width: 0;
  height: 0;
  border-left: 22px solid var(--brand-red);
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.08));
}

.callout::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
}

/* Search box */
.search-wrap {
  position: relative;
}

.search-wrap .form-control {
  padding-left: 2.5rem;
  height: 48px;
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  translate: 0 -50%;
  pointer-events: none;
  opacity: 0.7;
}

.clear-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  translate: 0 -50%;
  border-radius: 999px;
}

/* ===== Table ===== */
.parts-card {
  border: 0;
}

.parts-table thead th {
  background: var(--table-head);
  color: var(--table-head-text);
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: center;
}

.parts-table tbody td {
  width: 50%;
  vertical-align: middle;
  font-size: 0.95rem;
  text-align: center;
}

.parts-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.parts-table th {
  border-right: 1px solid #fff;
}
.parts-table td {
  border: 1px solid #dee2e6 !important;
}

.table-container {
  border-collapse: separate;
  border-spacing: 0;
}

/* scroll container w/ sticky header */
.table-scroll {
  max-height: 460px;
  overflow: auto;
  border: 2px solid #000;
}

@media (max-width: 576px) {
  .callout {
    padding-left: 2.25rem;
    font-size: 0.85rem;
  }

  .callout::after {
    right: -14px;
    border-left-width: 14px;
    border-top-width: 10px;
    border-bottom-width: 10px;
  }

  .search-wrap .form-control {
    height: 44px;
  }
}

/* Parts Banner  */

/* Banner shell */
.parts-banner {
  position: relative;
  background: #e63225;
  color: #fff;
  padding: 35px 0;
  /* responsive vertical padding */
}

/* Copy block */
.banner-copy {
  padding-block: 0.25rem;
}

.banner-title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.12;
  margin: 0 0 0.4rem 0;
  /* fluid type: min 22px, max 40px */
  font-size: clamp(1.375rem, 2.5vw + 0.6rem, 2.5rem);
}

.banner-sub {
  margin: 0;
  /* min 15px, max 20px */
  font-size: clamp(1.725rem, 1.1vw + 0.55rem, 1.25rem);
}

/* Decorative truck image */
.truck-wrap {
  position: absolute;
  bottom: -20px;
}

.truck-img {
  height: 200px;
}

.c-display {
  display: block;
}

.testimonial_star {
  margin-bottom: 8px;
}
/* Phone-first tweaks */
@media (max-width: 767.98px) {
  .c-display {
    display: none;
  }

  .truck-wrap {
    position: relative;
    bottom: 0;
  }

  .content-spacer {
    padding-left: 0;
  }
  .banner-title {
    text-align: center;
  }
  .banner-sub {
    text-align: center;
    font-size: 1rem !important;
  }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
  .content-spacer {
    padding-left: clamp(120px, 18vw, 220px);
  }
}

.cta-banner {
  background-color: #888888;
  padding: 1rem 0;
  color: #ffffff;
}
.cta-banner-red {
  background-color: #e63024;
  padding: 1rem 0;
  color: #ffffff;
}

.cta-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 110px;
}

@media screen and (max-width: 1024px) {
  .cta-container {
    flex-direction: column;
    height: auto;
    text-align: center;
  }
}



.cta-image {
  height: auto;
  width: auto;
  max-height: 210px;
  flex-shrink: 0;
  position: relative;
  bottom: 18px;
  /* Prevents image from shrinking */
}

.cta-text {
  flex-grow: 1;
  /* Allows text to take up remaining space */
  text-align: center;
}

.cta-text h2 {
  margin: 0 0 0.25rem 0;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  /* Responsive font size */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}



.cta-button {
  background-color: #000;
  color: #ffffff;
  padding: 0.5rem 2rem;
  text-decoration: none;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  border-radius: 10px;
  font-size: 1.2rem;
  /* Prevents button text from breaking into two lines */
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #333;
  /* Darker grey on hover */
}

/* --- Responsive Design for Mobile --- */
@media (max-width: 768px) {
  .cta-container {
    flex-direction: column;
    /* Stack items vertically */
    text-align: center;
  }

  .cta-text {
    margin: 1rem 0;
  }
}

@media (max-width: 540px) {
  .cta-container {
    padding: 0 1rem;
      gap: 0;
  height: auto;
  }

  .cta-button {
    width: 100%;
    /* Full width button on small screens */
    box-sizing: border-box;
  }
}


@media screen and (max-width: 576px) {
.c-pt-sm-1 {
    padding-top: 1rem !important;
  }
  .c-pt-sm-2 {
    padding-top: 2rem !important;
  }
  .c-pt-sm-3 {
    padding-top: 3rem !important;
  }
  .c-pt-sm-4 {
    padding-top: 4rem !important;
  }
  .c-pt-sm-5 {
    padding-top: 5rem !important;

  }
   .c-pb-sm-0 {
    padding-bottom: 0 !important;
  }
  .c-pb-sm-1 {
    padding-bottom: 1rem !important;
  }
  .c-pb-sm-2 {
    padding-bottom: 2rem !important;
  }
  .c-pb-sm-3 {
    padding-bottom: 3rem !important;
  }     
  .c-pb-sm-4 {
    padding-bottom: 4rem !important;
  }
  .c-pb-sm-5 {
    padding-bottom: 5rem !important;
  }
}