/*
Theme Name: Marute E Tractor
Theme URI: https://marutetractor.com
Author: Marute E Tractor
Author URI: https://marutetractor.com
Description: A custom WordPress theme for Marute E Tractor, featuring modern design and optimized performance.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: marute-tractor
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, e-commerce, wide-blocks, block-patterns, block-styles, full-site-editing, rtl-language-support, sticky-post, theme-options, editor-style, responsive-embeds, custom-colors, editor-color-palette, template-editing, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, accessibility-ready

This theme is licensed under the GPL.
*/

.primary {
  color: #FD5C15;
}

.text-underline {
  text-decoration: underline;
}

.entry-content {
  margin-top: 48px;
}
.single-model .entry-content, .single-post .entry-content {
  margin-top: 0px;
}

/* fill color */
.fill-primary svg path {
  fill: #FD5C15;
}

/* stroke */
.stroke-primary svg path {
  stroke: #FD5C15;
}

@media (max-width: 1023px) {
  .list-disc-inside {
    list-style-position: inside;
    padding-left: 0;
  }
}

ul {
  list-style: disc;
  padding-left: 20px;
  font-weight: var(--wp--custom--typography--font-weight--medium);
}

@media (max-width: 1024px) {
  ul {
    list-style-position: inside;
  }
}

li::marker {
  color: var(--color-primary);
}

ul li {
  margin-bottom: 10px;
}

/* Hide scrollbar in Chrome, Safari, and Opera */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar in IE, Edge, and Firefox */
.no-scrollbar {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.embla {
  overflow: hidden;
}

.embla__container {
  display: flex;
}

.embla__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.embla__prev.disabled,
.embla__next.disabled {
  pointer-events: none;
}


/* contact form css */

.wpcf7-form .contact-with-us input,
textarea {
  background-color: #ffffff18;
  border-color: #ffffff30;
  margin-bottom: var(--wp--preset--spacing--m-10-d-20);
}

.wpcf7-form .wpcf7-response-output {
  color: #dc3232;
  font-weight: var(--wp--custom--typography--font-weight--medium);
  border: 1px solid #dc3232 !important;
  line-height: var(--wp--custom--typography--line-height--small);
}

.wpcf7-form .contact-with-us .wpcf7-not-valid-tip,
.wpcf7-form .wpcf7-not-valid-tip,
.wpcf7-form .wpcf7-response-output {
  font-size: 16px;
  font-weight: var(--wp--custom--typography--font-weight--medium);
}

.wpcf7-form .contact-with-us .wpcf7-submit {
  padding: 13px 35px;
  margin-bottom: 0
}

.wpcf7-form .contact-with-us input:focus,
.wpcf7-form .contact-with-us textarea:focus {
  outline: none;
  border-color: white;
}

.wpcf7-form .contact-with-us .wpcf7-submit:focus {
  outline: none;
  border-color: var(--color-primary);
}

#wpcf7-f710-p403-o1 label {
  margin-bottom: 8px;
}


@media (min-width: 768px) {
  #wpcf7-f710-p403-o1 input {
    height: 56px;
  }
  .entry-content{
    margin-top: 50px;
  }
}

@media (min-width: 1024px) {
  .entry-content{
    margin-top: 87px;
  }
  .is--fixed-header nav img.site--logo{
    height: 47px;
  }
}

/* get in touch form */

#wpcf7-f1170-p409-o1 input,
select {
  border-color: #211C5418;
  margin-bottom: 25px;
}

#wpcf7-f1170-p409-o1 textarea {
  border-color: #211C5418;
  margin-bottom: 10px;
}

#wpcf7-f1170-p409-o1 textarea:focus {
  border-color: #211C5418;
}

#wpcf7-f1170-p409-o1 .wpcf7-not-valid-tip {

  margin-bottom: 20px;
}

#wpcf7-f1170-p409-o1 .wpcf7-submit {
  padding: 13px 35px;
  margin-bottom: 0px;
}

/* search form  */

.search-form {
  position: relative;
  max-width: 700px;
  width: 100%;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.search-field {
  width: 100%;
  padding: 16px;
  padding-right: 56px;
  /* space for icon button */
  border: 1px solid #ccc;
  font-size: 16px;
  color: #333;
  background-color: #fff;
  box-sizing: border-box;
}

.search-field::placeholder,
.get-in-touch-block-section input::placeholder {
  color: #aaa;
  font-weight: var(--wp--custom--typography--font-weight--medium);
}

.search-submit {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 46px;
  height: 46px;
  background-color: #FD5C15;
  border: none;
  cursor: pointer;
  padding: 0;
}

.search-icon img {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 25px;
  height: 25px;
  z-index: 1;
  cursor: pointer;
}

/* pagination css */

.latest-blogs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-family: sans-serif;
  margin-top: 0;
}

.latest-blogs .wp-block-query-pagination-previous .wp-block-query-pagination-previous-arrow,
.latest-blogs .wp-block-query-pagination-next .wp-block-query-pagination-next-arrow {
  font-size: var(--wp--preset--font-size--m-18-d-25);
  margin-right: 0 !important;
  margin-left: 0 !important;
  margin-bottom: 2px;
}

.latest-blogs a,
.latest-blogs span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #ddd;
  color: #333;
  text-decoration: none;
  font-size: var(--wp--preset--font-size--m-14-d-18);
  background-color: white;
  transition: all 0.2s ease;
}

.latest-blogs a:hover {
  background-color: #f0f0f0;
}

.latest-blogs .page-numbers.current {
  background-color: var(--color-primary);
  color: #fff;
  border-color: transparent;
}

@media (min-width: 320px) and (max-width: 768px) {

  .latest-blogs a,
  .latest-blogs span.page-numbers {
    width: 30px;
    height: 30px;
  }
}

/* hover css of blog */
.latest-blog {
  overflow: hidden;
}

/* Base styles with transitions */
.blog-img {
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blogpost-meta-info {
  color: var(--color-primary);
  text-transform: uppercase;
  gap: 0;
  margin-bottom: var(--wp--preset--spacing--m-10-d-18);
  font-size: var(--wp--preset--font-size--m-14-d-14);
  font-weight: var(--wp--custom--typography--font-weight--semi-bold);
}

.blogpost-meta-info .admin-info {
  gap: 5px;
  padding-right: 7px;
  border-right: 2px solid var(--color-primary);
}

.blogpost-meta-info .wp-block-post-date {
  padding-left: 7px;
}

.blog-title {
  transition: color 0.3s ease;
  color: var(--color-black);
  margin-top: 0;
  margin-bottom: 12px;
}

.blog-learn-more {
  margin-top: 0;
  transition: column-gap 0.2s ease-in-out;
  color: var(--color-primary);
  text-transform: uppercase;
  font-weight: var(--wp--custom--typography--font-weight--semi-bold);
  gap: 0;
}

.blog-learn-more img {
  width: 40px;
}

.blog-learn-more .wp-block-image {
  width: auto !important;
}

.latest-blog:hover .blog-img {
  transform: scale(1.05);
}

.latest-blog:hover .blog-title {
  color: var(--color-primary);
}

.latest-blog:hover .blog-learn-more {
  column-gap: 10px;
}

.blog-post-list li {
  border: 1px solid var(--color-gray-100);
}

.blog-post-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

@media (min-width: 320px) and (max-width: 600px) {
  .blog-post-list {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 601px) and (max-width: 1023px) {
  .blog-post-list {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* table of content css  */

@media (min-width:782px) {
  #single-post-toc {
    position: sticky;
    top: 80px;
    align-self: start;
    z-index: 100;
  }
}

.single-post-content .ez-toc-section {
  color: var(--text-heading);
}

#ez-toc-container {
  border: 0;
  -webkit-box-shadow: 0 0px 0px rgba(0, 0, 0, .05);
  box-shadow: 0 0px 0px rgba(0, 0, 0, .05);
  padding: 0;
}

.ez-toc-title-container {
  text-transform: uppercase;
}

.ez-toc-list {
  padding: 18px 0px 28px 0px !important;
  border-top: 1px solid var(--color-gray-200);
  border-bottom: 1px solid var(--color-gray-200);
}

.ez-toc-list li {
  padding: 9px 18px 9px 18px !important;
  border-left: 2px solid #FD5C1512;
  font-weight: var(--wp--custom--typography--font-weight--medium);
}

.ez-toc-list li:hover {
  border-left: 2px solid var(--color-primary);
}

.ez-toc-list li a:hover {
  text-decoration: none !important;
}

/* .ez-toc-list li a:visited {
  color: var(--wp--preset--color--gray-500) !important;
} */

.ez-toc-list li:hover a {
  color: var(--color-primary) !important;
}

.active {
  border-left: 2px solid var(--color-primary) !important;
}

.active a {
  color: var(--color-primary) !important;
}

/* single post social icon  */

#single-post-social-icon .social-share-icon svg path {
  fill: var(--wp--preset--color--black-200);
}

.social-share-icon {
  padding: 10px;
  border: 1px solid var(--color-gray-200);
}

/* single post  */
.single-post-banner {
  height: calc(100vh - 92px);
  display: flex;
  align-items: end;
  z-index: 22;
  position: relative;
}

@media (min-width: 320px) and (max-width: 768px) {
  .single-post-banner {
    height: calc(50vh - 92px);
  }

  .ez-toc-list li {
    padding: 4px 18px 4px 18px !important;
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .single-post-banner {
    height: calc(70vh - 92px);
  }
}

.post-title {
  z-index: 9;
}

.post-title .single-post-meta-info {
  color: var(--color-primary);
  text-transform: uppercase;
  gap: 0;
  margin-bottom: var(--wp--preset--spacing--m-10-d-18);
  font-size: var(--wp--preset--font-size--m-14-d-16);
  font-weight: var(--wp--custom--typography--font-weight--semi-bold);
}

.post-title .single-post-meta-info .admin-info {
  gap: 5px;
  padding-right: 15px;
  border-right: 2px solid var(--color-primary);
}

.post-title .single-post-meta-info .wp-block-post-date {
  padding-left: 15px;
}

.single-post-banner::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.8) 85%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 1;
}

/* Single post social icon */

.single-post-social-icon li {
  padding: 12px !important;
  border: 1px solid var(--color-gray-200);
  border-radius: 0;
}

/* blur bg  */

body.blurred {
  position: relative;
}

body.blurred::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(10px);
  background-color: var(--wp--preset--color--black-15);
  z-index: 20;
  pointer-events: none;
  transition: backdrop-filter 0.3s ease;
}


.wp-block-template-part {
  margin-top: 0;
}

/* header-sticky  */

.sticky-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  background-color: white;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--wp--preset--color--black);
}

.bottom-shadow {
  box-shadow: rgba(33, 35, 38, 0.1) 0px 10px 10px -10px;
  transition: all 0.3ms ease;
}

.bottom-shadow nav {
  padding: 6px 0px 6px 0px;
  transition: all 0.3ms ease-in-out;
}

.bottom-shadow nav ul {
  padding: 6px 0px 6px 0px;
  transition: all 0.3ms ease-in-out;
}

.nav-item ul {
  list-style: none;
  padding-left: 0;
  font-weight: var(--wp--custom--typography--font-weight--semi-bold);
}

header:has(.is-primary) {
  background-color: var(--wp--preset--color--primary-900);
}

header:has(.is-white) {
  background-color: var(--wp--preset--color--white);
}
.is--fixed-header nav img.site--logo {
    height: 35px;
}

@media (min-width: 1024px) {

  .nav-item ul li {
    margin-bottom: 0 !important;
  }
}

.nav-item .site-logo {
  transition: all 0.3s ease;
  height: 68px;
}


.bottom-shadow nav ul {
  padding: 6px 0px 6px 0px;
  transition: all 0.3ms ease-in-out;
}


@media (min-width: 320px) and (max-width:1023px) {
  .nav-item .site-logo {
    transition: all 0.3s ease;
    height: 45px;
  }

  .bottom-shadow nav a .site-logo {
    height: 45px;
  }

  .bottom-shadow nav {
    padding: 8px 0px 8px 0px;
    transition: all 0.3ms ease-in-out;
  }
}

.sticky-header {
  transition: all 0.3s ease-in-out;
}

.bottom-shadow nav ul li a::after {
  top: 41px;
}

.bottom-shadow nav a .site-logo {
  height: 45px;
}

.bottom-shadow nav ul li .sub-items {
  top: 63px;
}


@media (min-width: 981px) {

  .team-composition {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* svg icon hover  */

.tab-title:hover #icon-wrapper svg path {
  fill: var(--color-primary);
}

.active-tab #icon-wrapper svg path {
  fill: var(--color-primary);
}

.active-tab {
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-primary);
}

/* button icon  color */

#btn-icon:hover svg path {
  fill: black;
}


.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  color: white;
  background-color: var(--color-primary);
  border: 1px solid transparent;
  overflow: hidden;
  transition: color 0.4s ease, border 0.4s ease;
  z-index: 0;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: white;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  z-index: -1;
}

.btn:hover::before {
  transform: translateX(0);
}

.btn {
  position: relative;
  z-index: 1;
}

.btn:hover {
  color: black;
  border-color: var(--color-primary);
}

/* white btn */

.btn-white {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  color: black;
  background-color: white;
  overflow: hidden;
  transition: color 0.4s ease, border 0.4s ease;
  z-index: 0;
}

.btn-white::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: var(--color-primary);
  transform: translateX(100%);
  transition: transform 0.4s ease;
  z-index: -1;
}

.btn-white:hover::before {
  transform: translateX(0);
}

.btn-white svg,
.btn-white span,
.btn-white {
  position: relative;
  z-index: 1;
}

.btn-white:hover {
  color: white;
  border-color: var(--color-primary);
}

/* footer contact svg icon  */

.contact-svg svg {
  width: 20px;
  height: 20px;
}

.footer-contact:hover svg path {
  fill: var(--color-primary);
}

/* bottom footer  */

/* .custom-border {
  overflow-x: hidden;
  position: relative;
} */

.custom-border::before {
  content: "";
  position: absolute;
  box-sizing: border-box;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #ffffff33;
  width: 100%;
}

@media (min-width: 320px) and (max-width: 1600px) {

  .custom-border::before {

    width: calc(100% + var(--wp--style--root--padding-left) + var(--wp--style--root--padding-right) + 0.2em);
    transform: translateX(calc(-1 * (var(--wp--style--root--padding-left))));
  }
}

/* For Search result page */
.wp-block-post-excerpt__more-link {
  display: block;
}

/* FOr home page's about us block's css */
@media (max-width: 1024px) {
  .about-us-section ul {
    text-align: center;
  }
}


/* Search result page's css */
.search-result-item-box p {
  word-break: break-word;
}

/* For product hero banner */
.product-detail-hero-banner .product-detail-inner-block {
  margin-top: calc(var(--spacing) * 23) !important;
  padding-top: clamp(4rem, 2.55rem + 7.25vw, 11.25rem);
  padding-bottom: clamp(4rem, 2.55rem + 7.25vw, 11.25rem);
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.product-detail-hero-cover {
  min-height: auto;
}

@media (max-width: 1024px) {
  .product-detail-hero-banner {
    margin-top: 0;
  }
}



/* For Home page's Why Choose blocks's css */
.why-choose-us-section .overlap-images-wrapper {
  width: 512px;
}

.why-choose-us-section .overlap-first-img {
  position: relative;
  aspect-ratio: 1 / 1.1;
}

.why-choose-us-section .overlap-second-img {
  position: absolute;
  bottom: -84px;
  right: -76px;
}

@media (max-width: 1320px) {
  .why-choose-us-section .overlap-images-wrapper {
    width: 420px;
  }

  .why-choose-us-section .overlap-second-img {
    width: 220px;
    bottom: -46px;
    right: -70px;
  }
}

@media (max-width: 1024px) {
  .why-choose-us-section .overlap-images-wrapper {
    width: 350px;
    margin: 0 auto;
  }

  .why-choose-us-section .overlap-second-img {
    width: 180px;
    right: -30px;
  }
}

@media (max-width: 425px) {
  .why-choose-us-section .overlap-images-wrapper {
    width: 300px;
  }
}

@media (max-width: 374px) {
  .why-choose-us-section .overlap-images-wrapper {
    width: 250px;
  }

  .why-choose-us-section .overlap-second-img {
    width: 160px;
    bottom: -26px;
    right: -30px;
  }
}

/* products */
.products-query--lists .wp-block-post-featured-image img {
  max-height: 190px;
}


/* Gallery Block Styles */
.gallery-section {
  padding: 2rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.gallery-card { background:#fff; border-radius:16px; box-shadow:0 8px 22px rgba(0,0,0,.08); overflow:hidden; }
.gallery-card .gallery-caption { padding:12px 14px; font-size:14px; color:#111; }

.gallery-grid a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0.5rem;
  transition: transform 0.3s ease;
}

.gallery-grid a:hover {
  transform: scale(1.05);
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.gallery-grid a:hover img {
  opacity: 0.9;
}

/* Media card improvements */
.card-media { position: relative; display:block; overflow:hidden; border-radius: 12px; }
.card-media .media-aspect { display:block; width:100%; padding-top:56.25%; }
.card-media .media-img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.card-media .media-overlay { position:absolute; inset:0; background:linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.15)); opacity:.0; transition:opacity .3s ease; }
.card-media .media-play { position:absolute; left:50%; top:50%; width:66px; height:66px; transform:translate(-50%,-50%); border-radius:50%; border: 3px solid #FFFFFF; box-shadow:0 6px 16px rgba(0,0,0,.25);}
.card-media .media-play:after { content:""; position:absolute; left:50%; top:50%; transform:translate(-42%,-50%); width:0; height:0; border-left:18px solid #FFFFFF; border-top:12px solid transparent; border-bottom:12px solid transparent; }
.card-media:hover .media-overlay { opacity:1; }
.card-media:hover .media-play { transform:translate(-50%,-50%) scale(1.06); }

.glightbox-clean .gslide-title{margin-bottom: 0 !important;}

.gallery-list {
  list-style: none;
  padding: 0;
}

.gallery-list li {
  margin-bottom: 0.75rem;
}

.gallery-list a {
  color: #333;
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e5e5;
  display: block;
  transition: color 0.3s ease;
}

.gallery-list a:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Lightbox2 Custom Styles */
.lb-data .lb-caption {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.lb-data .lb-number {
  font-size: 12px;
  color: #ccc;
}

/* Responsive Gallery Grid */
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}