/* ---- Hero: expand / shrink interaction (desktop pointer) ---- */
@media (hover: hover) and (min-width: 1025px) {
    .hero-row:hover .hero-card:not(:hover) { flex-grow: 1; }
    .hero-row:hover .hero-card:hover { flex-grow: 3; }

    /* reveal CTA on the active card */
    .hero-card:hover .btn-row {
        grid-template-rows: 1fr;
    }

    .hero-card:hover .hidden-content {
        opacity: 1;
        transform: translateY(0);
    }

    .hero-card:hover .hero-cta {
        /* opacity: 1;
        max-height: 49px;
        padding-top: 14px;
        padding-bottom: 14px;
        transform: translateY(0); */
    }

    /* hide text on the shrunk card */
    .hero-row:hover .hero-card:not(:hover) .hero-card-text {
        opacity: 0;
        transform: translateY(8px);
    }

    .hero-card:hover img { transform: scale(1.04); }
}

/* Hero: no-hover / stacked layouts always show the CTA and text */
@media (hover: none), (max-width: 1024px) {
    .hero-card:hover .btn-row {
        grid-template-rows: 1fr;
    }

    .hero-card:hover .hidden-content {
        opacity: 1;
        transform: translateY(0);
    }

    .hero-cta {
        opacity: 1;
        max-height: 49px;
        padding-top: 14px;
        padding-bottom: 14px;
        transform: none;
    }
}

/* ---- Reduced motion: stop the marquees ---- */
@media (prefers-reduced-motion: reduce) {
    .partners-track,
    .keyword-track,
    .manpower-track { animation: none; }
}

/* ============================================================
   BREAKPOINTS
   ============================================================ */
@media (max-width: 1680px) {
    .wrap { padding: 0 20px; }
    .footer-bottom { padding: 16px 40px; }
    .footer-inner { padding-left: 20px; padding-right: 20px; } 
}
 
@media (max-width: 1550px){
    .header-inner { padding: 16px 20px; }
    .header-actions { gap: 8px; }
    .header-left { gap: 20px; }
    .header-actions .button { padding: 12px 16px; }
    .main-nav a{ font-size: 14px; }
    .logo-icon, .logo-word{ height: 35px; }
    .lang-switch { padding: 12px 16px; }
    .sidebar-column { top : 6rem; }
    .category-sidebar { top: 6rem; }
}
 
@media (max-width: 1345px) {
    /* header → hamburger (language + Contact stay outside the menu) */
    .main-nav,
    .header-desktop-only { display: none; }
    .nav-toggle { display: flex; }
    .mobile-menu { display: flex; }
    .product-grid { grid-template-columns: 1fr 1fr 1fr; }
}
 
@media (max-width: 1440px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .sub-heading { font-size: 32px; }
    .product-detail-section .row{
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
        gap: 40px;
    }
    .section-row { padding: 80px 0; }
}
 
@media (max-width: 1280px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    /* .category-sidebar { position: static; top: auto; } */
    .product-overview-section{ padding: 70px 0; }
}
 
@media (max-width:1170px){
    .workforce-grid { flex-direction: column; height: auto; }
    .blogs-grid, .about-grid { display: grid; grid-template-columns: 1fr 1fr; }
    .image-area { min-height: 400px; }
    .content-card p:has(+ .keyword-marquee) { margin-bottom: 20px; }
    .content-card-overlay{ flex: 1 1 auto; }
    .logistics-section { flex-direction: column; }
    .logistics-section .image-area { min-height: 400px; }
    .workforce-col .image-area { min-height: 470px; }
    .blog-card .image-area { min-height: 470px; }
    .blogs-section2 .blog-card .image-area, .blogs-section .blog-card .image-area { min-height: unset; }
    .blog-list-grid .blog-card .image-area { min-height: 280px; }
    .footer-title { line-height: 28px; }
}
 
@media (max-width: 1024px) {
    .hero-row { flex-direction: column; }
    .hero-card { flex: 0 0 auto; }
    .products-layout { flex-direction: column; }
    .category-sidebar { width: 100%; position: static; top: auto; }
    .hero-section.hero-secondary .hero-box {
        padding: 30px;
        padding-top: 60px;
    }
    .product-list-block{ grid-template-columns: 1fr; }
    .product-list-block .category-sidebar{ width: 100%; }
    .product-grid{ gap: 16px; }
    /* .product-listing-section{ padding: 60px; } */
    .hero-section.hero-secondary .wrap { padding: 0 20px; }
    .product-detail-section{ padding: 60px 0; }
    /* .manpower-card .image-area { min-height: 350px; } */
    .about-grid{ flex-direction: column; height: auto; }
    .manpower-card:hover { scale: 1.13;}
}

@media (max-width: 1065px){
  .footer-links { flex-wrap: wrap; }
}
 
@media (max-width: 992px) {
    .product-slider-group,
    .product-detail-section .row{ grid-template-columns: minmax(0, 1fr); }
}
 
@media (max-width: 991px) {
    .footer-col:last-child { max-width: none; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; padding: 16px 24px; }
    .footer-col ul { gap: 8px; }
    .hero-cta { line-height: 20px; }
    .footer-inner { padding-bottom: clamp(6.25rem, -5.1449rem + 22.500vw, 26.0625rem);}
    .footer-watermark { bottom: -20px; }
    .product-detail-section{ padding: 50px 0; }
}

@media (max-width:821px) {
    .blogs-grid, .about-grid{ display: grid; grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .header-contact span { display: none; }
    .header-contact { padding: 14px; }
    .heading-inline { flex-direction: column; align-items: flex-start; gap: 24px; }
    .sub-heading { font-size: 28px; }
    .number-value { line-height: 42px; }
    .number-card { gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; padding: 16px 24px; }
    .footer-col:last-child { max-width: none; }
    .cta-block { flex-direction: column; align-items: flex-start; }
    .cta-deco { display: none; }
    /* .product-listing-section{ padding: 40px; } */
    .product-grid { grid-template-columns: 1fr 1fr; }
    .product-overview-section .row{ grid-template-columns: 1fr; gap: 24px; }
    .product-overview-section .cta-box{ margin-top: 40px; }
    .product-overview-section{ padding: 40px 0; }
    .section-row { padding: 50px 0; }
    .challenges-grid {gap : 20px;}
    .challenge-card { gap: 24px;}
    .logistics-section .image-area { min-height: unset; }
    .categories-toolbar .filter-select-wrap .select2-container--default .select2-selection--single .select2-selection__arrow { top: 3px !important; }
    .manpower-card:hover { scale: 1.10;}
    .product-detail-section{ padding: 40px 0; }
}

@media (max-width: 575px) {
  .logo-word { display: none; }
  .who-textbox h3,
  .sub-heading { font-size: 24px; }
  .footer-links { gap: 28px; }
  .footer-col { width: 100%; }
  .number-card { gap: 22px; }
  .number-meta { gap:8; }
  .workforce-card .sub-heading { line-height: 30px; }
  .accordion-item.open .accordion-desc{ line-height: 24px; }
  .workforce-card .btn-outline { margin-top: 20px; }
  .challenges-grid { gap : 16px;}
  .challenge-card { gap: 20px;}
  .process-track { row-gap: 24px;}
  .products-grid { grid-template-columns: 1fr; }
  .provide-section .wrap{ gap: 30px; }
  .workforce-col .image-area { min-height: 250px; }
  .product-detail-section{ padding: 35px 0; }
  .product-detail-section .content .product-metadata {
      display: grid;
      grid-template-columns: auto auto;
      gap: 12px;
      align-items: flex-start;
  }
  .product-detail-section .content .product-metadata li{
      padding-right: 0 !important;
      margin-right: 0 !important;
      border: none !important;
  }
  .highlight-box{ padding: 20px; }
  .highlight-box ul li {
      /* display: grid;
      grid-template-columns: 16px 1fr 1fr; */
      align-items: flex-start;
  }
  .requeste-quout-btn-box .button{
      min-height: 48px;
      padding: 10px 20px;
  }
  .footer-inner { padding-bottom: clamp(4.25rem, -5.1449rem + 32.500vw, 26.0625rem);}
  .footer-watermark { bottom: -10px; }
  .manpower-card:hover { scale: 1.07;}
}
 
@media (max-width: 480px){
  .product-grid { grid-template-columns: 1fr; }
  .cta-phone{ line-height: 20px; }
  .blog-content{ padding: 28px; }
  .logistics-section .image-area { min-height: 210px; }
  .number-label { font-size: 16px; } 
  .workforce-list li{ line-height: 24px; gap: 16px; } 
  .catalogue-card{ padding: 20px; gap: 20px; }
  .blogs-section2 .blog-card .image-area,.blog-list-grid .blog-card .image-area, .blogs-section .blog-card .image-area { max-height: 270px; }
  .accordion-item.open .accordion-desc{ line-height: 20px; }
}
 
.keyword-marquee {
  display: flex;
  align-items: center;
  overflow: hidden;
}
.keyword-track {
  display: flex;
  align-items: center;
}
.keyword-sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
.keyword-sep svg {
  display: block;
  width: 10px;
  height: 10px;
}

/* ============================================================
   Product Category Page
   ============================================================ */
@media (max-width: 1440px) { .categories-grid { grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-toolbar { flex-wrap: wrap; gap: 0.875rem; }
  .search-input-wrap { width: 16.25rem; }
}

@media (max-width: 768px) {
  .categories-toolbar { flex-direction: column; align-items: flex-start; }
  .categories-search-group { flex-direction: column; width: 100%; }
  .search-input-wrap { width: 100%; }
  .filter-select-wrap { width: 100%; }
  .filter-dropdown { width: 100%; }
}

@media (max-width: 575px) { .categories-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Contact Us Page
   ============================================================ */
@media (max-width: 1280px) {
  .whyus-grid { flex-direction: column; }
  .whyus-stats { flex: 1 1 auto; }
  .whyus-stat-card { min-height: auto; }
}

@media (max-width: 1024px) {
  .contact-layout { flex-direction: column; }
  .contact-info-card { min-height: 22rem; }
}

@media (max-width: 768px) {
  .whyus-stats { grid-template-columns: 1fr; }
  .contact-form-row { flex-direction: column; gap: clamp(1.25rem, 0.9462rem + 0.6329vw, 1.5rem); }
}

@media (max-width: 575px) { .whyus-intro-card .button { padding: 0.75rem 1rem; font-size: 0.875rem; } }

/* ============================================================
   Manpower Solutions Page
   ============================================================ */
@media (max-width: 1440px) {
  .provide-col-media .image-area { min-height: 18.75rem; }
  .process-track { gap: 1.25rem; }
}

@media (max-width: 1280px) { .challenges-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 1170px) {
  .provide-grid { flex-direction: column; }
  .provide-col-media .image-area { min-height: 25rem; }
}

@media (max-width: 1024px) { .process-track { gap: 0.625rem; } }

@media (max-width: 768px) {
  .challenges-grid { grid-template-columns: 1fr; }
  .manpower-marquee { margin-top: 2.5rem; }
}

@media (max-width: 575px) { .manpower-marquee { margin-top: 1.875rem; } }

@media (max-width: 991px) {
  .process-track { display: grid; grid-template-columns: 1fr 1fr; row-gap: 1.5rem; gap: 1.5rem; }
  .process-track::before { display: none; }
}
@media (max-width: 575px) { .process-track { grid-template-columns: 1fr; } }

@media (max-width: 1280px) {
  .registration-top,
  .registration-bottom { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .registration-intro,
  .registration-stat,
  .registration-photos { max-width: 100%; }
  .registration-photos .image-area { min-height: 20rem; }
}

@media (max-width: 575px) {
  .registration-photos { display: grid; grid-template-columns: 1fr; }
  .registration-photos .image-area { min-height: 18rem; }
  .registration-stat p { line-height: 1.5; }
}

/* ============================================================
   Industries We Serve Page
   ============================================================ */
@media (max-width: 1440px) { .industries-grid2 { grid-template-columns: repeat(3, 1fr); } .industry-card2 .image-area2 img { width: 100%;
    height: 100%;
    object-fit: cover; }}

@media (max-width: 1024px) { .industries-grid2 { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 575px) { .industries-grid2 { grid-template-columns: 1fr; } }

/* ============================================================
   Procurement Services Page
   ============================================================ */
/* Our Capabilities */
@media (max-width: 1600px) { .capabilities-col { flex: 1 1 0; min-width: 0; } }

@media (max-width: 1440px) { .capabilities-media { flex: 0 0 20rem; } }

@media (max-width: 1024px) {
  .capabilities-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "media media"
      "col1  col2";
    align-items: start;
  }
  .capabilities-media {
    grid-area: media;
    width: 100%;
    height: clamp(25rem, 20.5358rem + 30.0535vw, 38rem);
  }
  .capabilities-media img { width: 100%; height: 150%; object-fit: cover; }
  .capabilities-col:first-of-type { grid-area: col1; }
  .capabilities-col:last-of-type  { grid-area: col2; }
  .capabilities-col { width: 100%; }
}

@media (max-width: 991px) {
  .capabilities-media { min-height: 17rem; }
  .capability-card { padding: 1rem; gap: 1rem; }
}

@media (max-width: 768px) {
  .capabilities-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "col1"
      "col2";
  }
  .capabilities-media { min-height: 16rem; }
  .capabilities-media img { width: 100%; height: 130%; object-fit: cover; }
}

@media (max-width: 575px) {
  .capabilities-media { min-height: 13rem; }
  .capabilities-media img { width: 100%; height: 120%; object-fit: cover; }
}

/* Operational Challenges */
@media (max-width: 1600px) { .procurement-challenges-media { flex: 0 0 30rem; min-height: 28rem; } }

@media (max-width: 1400px) { .procurement-challenges-media { flex: 0 0 24rem; min-height: 24rem; } }

@media (max-width: 1024px) {
  .procurement-challenges-layout { flex-direction: column; }
  .procurement-challenges-media {
    flex: 1 1 auto;
    width: 100%;
    min-height: 20rem;
  }
  .procurement-challenges-grid { width: 100%; }
  .procurement-challenges-media img {
    aspect-ratio: 4 / 3;
    object-position: top center;
  }
}

@media (max-width: 768px) {
  .procurement-challenges-media { min-height: 16rem; }
  .procurement-challenges-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
  .procurement-challenges-media { min-height: 13rem; }
  .procurement-challenges-grid { gap: 1rem; }
  .pc-card { padding: 1rem; }
}

/* What We Do */
@media (max-width: 1600px) {
  .what-we-do-slider .swiper-slide { width: 28rem; }
  .wwd-card .image-area { height: 14.8rem; }
}

@media (max-width: 1280px) {
  .what-we-do-slider .swiper-slide { width: 24rem; }
  .wwd-card .image-area { height: 12.7rem; }
}

/* @media (max-width: 1365px) { .wwd-card-text { min-height: 17rem;} } */

@media (max-width: 1111px) {
  .what-we-do-section .heading-row { gap: 24px; }
  .what-we-do-section .heading-col { max-width: 100%; }

   .what-we-do-section .heading-inline {
    flex-direction: column;
    align-items: flex-start;
  }
  .what-we-do-intro {
    max-width: 100%;
  }
}

/* @media (max-width: 991px) {
  .wwd-card-text { padding: 1.5rem; }
  .wwd-card-text { min-height: 15rem;}
} */

@media (max-width: 768px) {
  
  .wwd-card-text p { font-size: 16px; }
  .wwd-card-text { min-height: 12rem;}
}

@media (max-width: 575px) {
  .wwd-card-text { padding: 1.25rem; gap: 0.75rem; }
  .wwd-card-text p { font-size: 14px; }
  .wwd-card-text { min-height: unset;}
}

/* Procurement Process Timeline */
@media (max-width: 1365px) { .pt-card { min-height: 10.625rem;}}

@media (max-width: 1280px) {
  .process-timeline-section { padding: 5rem 0; }
  .pt-card { min-height: 10rem;}
}

@media (max-width: 1024px) { .process-timeline-slider .swiper-slide { width: 20rem; } }

@media (max-width: 768px) {
  .process-timeline-section { padding: 4rem 0; }
  .process-timeline-slider .swiper-slide { width: 17rem; }
}


/* ============================================================
   Workforce Portal
   ============================================================ */
@media (max-width: 1280px) {
  .wf-shell { grid-template-columns: 232px 1fr; }
  .profile-layout { gap: 24px; }
  .profile-subnav { width: 240px; }
}

@media (max-width: 1024px) {
  .wf-shell { grid-template-columns: 1fr; }

  .wf-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px 24px;
    padding: 14px 18px;
  }

  .wf-sidebar-footer { display: contents; }

  /* Row 1: nav links first, logout last (right side) */
  .wf-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    order: 1;
    flex: 0 0 auto;
  }
  .wf-nav-label { display: none; }
  .wf-nav a { padding: 8px 10px; white-space: nowrap; }

  .wf-logout-btn {
    order: 2;
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    margin-left: auto;
  }

  /* Row 2: wf-help drops to its own full-width row below */
  .wf-help {
    order: 3;
    flex-basis: 100%;
    width: 100%;
    height: auto;
    min-height: auto;
    margin-top: 4px;
    box-sizing: border-box;
  }

  .profile-layout { flex-direction: column; padding: 24px 20px; }
  .profile-subnav { display: none; }
  .profile-main { max-width: 100%; }
  .profile-row { flex-wrap: wrap; }
  .profile-row > .profile-field { min-width: 220px; }
  .profile-field--fixed,
  .profile-field--certdate { flex: 1 1 220px; }
}

@media (max-width: 768px) {
  .wf-topbar { padding: 12px 16px; flex-wrap: wrap; gap: 12px; }
  .wf-topbar .wf-portal-label { display: none; }
  .wf-topbar .site-logo { padding-right: 12px; margin-right: 12px; }

  .wf-user-meta,
  .wf-user .name,
  .wf-user .role { display: none; }

  .profile-pageheader { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; }
  .profile-pageheader .actions { width: 100%; }
  .profile-pageheader .actions .button { flex: 1; }

  .cert-grid { grid-template-columns: repeat(2, 1fr); }

  .profile-card-header--split { flex-wrap: wrap; gap: 10px; align-items: flex-start; }
}

@media (max-width: 575px) {
  .profile-layout { padding: 20px 16px; }
  .profile-card-body { padding: 18px; gap: 16px; }
  .profile-card-header { padding: 14px 18px; }

  .profile-row { flex-direction: column; }
  .profile-row > .profile-field { min-width: 0; }
  .profile-field--fixed,
  .profile-field--certdate { flex: 1 1 auto; }

  .profile-field,
  .profile-card input:not(input[type="checkbox"], input[type="radio"]),
  .profile-card select,
  .phone-field,
  .date-field,
  .radio-group { width: 100%; }

  .cert-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .radio-group { gap: 16px; flex-wrap: wrap; }
  .doc-table-scroll { margin: 0 -18px; padding: 0 18px; width: calc(100% + 36px); }
  .btn-pill { width: auto; padding: 0 12px; }

  .date-field input { padding-right: 36px !important; }
  .date-field-icon { right: 10px; width: 18px; height: 18px; }

}

@media (max-width: 475px) {
  .wf-nav a span, .wf-logout-btn span { display: none; }

  .wf-nav a,
  .wf-logout-btn {
    padding: 10px;
    gap: 0;
  }
}

/* ============================================================
   Workforce Delivery Process
   ============================================================ */
@media (max-width: 1280px) {
  .process-section .pd-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    column-gap: 24px;
    margin: 0;
  }

  .process-section .pd-step {
    display: flex;
    flex-direction: column;
    flex: 0 0 calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
  }

  /* Force icon to the top of every card */
  .process-section .pd-step--text-top .pd-slot-bottom { order: -1; }
  .process-section .pd-step--text-top .pd-chevron { order: 1; }
  .process-section .pd-step--text-top .pd-slot-top { order: 2; }

  .process-section .pd-step--text-top .pd-slot-top,
  .process-section .pd-step--icon-top .pd-slot-bottom {
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    margin-bottom: -35px;
  }
  .process-section .pd-step--text-top .pd-slot-top::before,
  .process-section .pd-step--icon-top .pd-slot-bottom::before { content: none; }
  .process-section .pd-step--text-top .pd-slot-top .pd-text,
  .process-section .pd-step--icon-top .pd-slot-bottom .pd-text { padding: 0; }

  .process-section .pd-icon svg { width: 64px !important; height: 64px !important; }
  .process-section .pd-chevron-label { font-size: 15px; }
}

@media (max-width: 992px) {
  .process-section .pd-track { column-gap: 20px; }
  .process-section .pd-step {
    flex: 0 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }
  .process-section .pd-icon svg { width: 56px !important; height: 56px !important; }
}

@media (max-width: 575px) {
  .process-section .pd-track { column-gap: 16px; }
  .process-section .pd-step {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .process-section .pd-icon svg { width: 48px !important; height: 48px !important; }
  .process-section .pd-chevron-label { font-size: 14px; }
}

/* ============================================================
   Manpower RFQ Form Page
   ============================================================ */
@media (max-width: 1580px) {
  .wr-card { max-width: 100%; }
  .wr-intro { max-width: 28rem; }
}

@media (max-width: 1170px) {
  .wr-layout { flex-direction: column; }
  .wr-intro {
    position: static;
    max-width: 100%;
    padding-top: 0;
  }
  .wr-card { max-width: 100%; }
}

@media (max-width: 1024px) {
  .workforce-request-section { padding: 3rem 0; }
  .wr-card { padding: 1.75rem; }
}

@media (max-width: 768px) {
  .wr-row { flex-wrap: wrap; }
  .wr-field { flex: 1 1 100%; min-width: 100%; }

  .wr-card { padding: 1.5rem; border-radius: 20px; }
  .wr-title { font-size: 1.5rem; }
  .wr-form { gap: 24px; }
  .wr-basic-fields { gap: 16px; }
  
  .workforce-request-section .repeater-row .small-input{ width: 6.5rem; }
  .wr-checklist li:not(:last-child) { margin-bottom: 12px; }
}

@media (max-width: 575px) {
  .workforce-request-section { padding: 2.5rem 0; }
  .workforce-request-section::before,
  .workforce-request-section::after { display: none; }

  .wr-intro-head h2 { font-size: 1.5rem; }
  .wr-card { padding: 1.25rem; }

  .wr-basic-fields { gap: 14px; }
  .wr-row { gap: 12px; }

  .workforce-request-section .repeater-row { gap:10px; }
  .wr-checklist li:not(:last-child) { margin-bottom: 10px; }
  .workforce-request-section .repeater-row .small-input{ width: 4.5rem;}
  .wr-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .workforce-request-section .repeater-add { width: 100%; justify-content: center; }
  .custom-file-upload { padding: 16px; min-height: 150px; }
  .wr-submit { font-size: 0.9375rem; }
}


/* ============================================================
   Blogs Page
   ============================================================ */
@media (max-width: 1024px) {
    .blog-list-layout {
        flex-direction: column;
        gap: clamp(1.5rem, 0.8604rem + 2.4080vw, 3.75rem);
    }

    .blog-list-main { display: contents; }
    .blog-list-layout .blog-sidebar { order: 4; position: static; width: 100%; }
    .blog-list-main .blog-pagination {
        order: 3;
        width: 100%;
        align-self: stretch;
        justify-content: center;
        flex-wrap: wrap;
    }

    .blog-list-layout .blog-sidebar .search-input-wrap,
    .blog-list-layout .blog-sidebar .category-sidebar,
    .blog-list-layout .blog-sidebar .fav-blog-widget { width: 100%; min-width: 0; }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .blog-list-layout .blog-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
    .blog-list-layout .blog-sidebar .search-input-wrap { grid-column: 1 / -1; }
}

@media (max-width: 768px) { .blog-list-layout .blog-sidebar { display: flex; flex-direction: column; gap: 16px; } }

@media (max-width: 700px) { .blog-list-grid { grid-template-columns: 1fr; } .blog-list-grid .blog-card .image-area { min-height: 380px; }}

@media (max-width: 575px) { .blog-list-grid .blog-card .image-area { min-height: 320px; } }
@media (max-width: 480px) { .blog-list-grid .blog-card .image-area { min-height: 280px; } }


/* ============================================================
   Blogs Detail Page
   ============================================================ */
@media (max-width: 1024px) {
    .blog-detail-layout { flex-direction: column; gap: clamp(1.5rem, 0.8604rem + 2.4080vw, 3.75rem); }

    .blog-detail-layout .blog-sidebar { position: static; width: 100%; }

    .blog-detail-layout .blog-sidebar .search-input-wrap,
    .blog-detail-layout .blog-sidebar .category-sidebar,
    .blog-detail-layout .blog-sidebar .fav-blog-widget { width: 100%; min-width: 0; }
    .blog-detail-thumb{ min-height: unset; }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .blog-detail-layout .blog-sidebar {
        display: grid;
        grid-template-columns: 1fr;
        align-items: start;
    }
    .blog-detail-layout .blog-sidebar .search-input-wrap { grid-column: 1 / -1; }
}

@media (max-width: 768px) { .blog-detail-layout .blog-sidebar { display: flex; flex-direction: column; gap: 16px; } }

@media (max-width: 575px) {
    .blog-author-card { flex-direction: column; align-items: flex-start; text-align: left; }
    .blog-share-row { flex-direction: column; align-items: flex-start; }
    .blog-share-list a { gap: 0.35rem; padding: 0.50rem 1rem; }
    .blog-share-list a svg { width: 18px; height: 18px; }

    .hero-section.hero-secondary.blog-detail-hero .hero-box { padding: 20px; }
    .blog-detail-thumb{ max-height: 320px; }
}

@media (max-width: 500px) { .blog-detail-thumb{ max-height: 280px; } }

/* ============================================== 
   Other Responsive Styles
   ============================================== */
@media (max-width: 1024px) {
    .product-list-block .sidebar-column {
        position: static;
        top: auto;
        width: 100%;
    }
    .product-list-block .category-sidebar {
        position: static;
        width: 100%;
    }
    .product-list-block .manufacturer-sidebar {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
  .industries-track { animation: none; }
}

@media (max-width: 1280px) {
  .industries-section { padding: 80px 0; }
  
  .auth-header,
  .auth-body,
  .auth-footer {
    padding: 30px;
  }

  .who-we-are-section .row {
    grid-template-columns: 1fr 1fr;
  }

  .who-we-are-section .counter-boxes{
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .who-we-are-section .counter-box:not(:last-child) {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
  }

  .what-make-us-different-section .counter-boxes{
    padding: 30px 70px;
  }
  .what-make-us-different-section .challenge-card{
    min-height: 350px;
  }
  .who-we-are-section .inner-box h3{
    letter-spacing: -2px;
  }
}

@media (max-width: 1170px) {
  .what-we-do-section .workforce-col .image-area {
    order: -1;
  }
}

@media (max-width: 1024px) {
  .industry-card { width: 340px; height: 500px; }
  
  .auth-header .back-btn {
    padding: 12px;
  }
  .auth-header .logo {
    width: 180px;
  }

  .auth-header,
  .auth-body,
  .auth-footer,
  .auth-image {
    padding: 20px;
  }

  .auth-section .cols {
    flex-direction: column;
  }

  .auth-section .cols .col {
    flex: 1 1 100%;
  }
  
  .auth-header.sticky {
    box-shadow: 0px 0 10px rgba(0, 0, 0, 0.2);
  }

  .auth-section .cols .col:last-child {
    display: none;
  }

  .auth-form .form-group:not(:last-child) {
    margin-bottom: 16px;
  }

  .what-make-us-different-section .challenges-grid{
    grid-template-columns: 1fr 1fr;
  }

  .what-make-us-different-section .counter-boxes {
    padding: 30px 40px;
  }

  .who-we-are-section .inner-box h3{
    letter-spacing: -1.5px;
  }

  .who-we-are-section .row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 821px) {
  .what-drive-us-section .about-grid{
    gap: 52px;
  }

  .what-drive-us-section .about-col:nth-child(even) .image-area {
    order: revert;
  }
}

@media (max-width: 768px) {
  .industry-card { width: 300px; height: 460px; }
  
  [data-modal="request-a-quote-popup"] .modal-box .popup-head,
  [data-modal=request-a-quote-popup] .modal-box .popup-footer{
    padding: 15px 20px;
  }
  
  [data-modal="request-a-quote-popup"] .modal-box .popup-body {
    padding: 30px 20px;
  }

  [data-modal=request-a-quote-popup] .modal-box .popup-body .form-group-title:not(:first-child){
    padding-top: 24px;
    margin-top: 24px;
  }
  

  [data-modal=request-a-quote-popup] .modal-box .popup-body .form-grid{
    gap: 16px;
  }

  .what-make-us-different-section .counter-boxes {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: center;
  }

  .what-make-us-different-section .counter-box:not(:last-child)::after{
    display: none;
  }

  .what-make-us-different-section .challenge-card{
    min-height: 300px;
  }

  .who-we-are-section .inner-box h3{
    letter-spacing: 0;
    line-height: 1.2;
  }
}

@media (max-width: 575px) {
  .industry-card { width: 260px; height: 400px; }
  
  [data-modal=request-a-quote-popup] .modal-box .popup-body .form-grid{
    grid-template-columns: 1fr;
  }

  [data-modal=request-a-quote-popup] .modal-box .popup-body .form-grid .col-1,
  [data-modal=request-a-quote-popup] .modal-box .popup-body .form-grid .col-2,
  [data-modal=request-a-quote-popup] .modal-box .popup-body .form-grid .col-3 {
    grid-column: 1 / -1;
  }

  [data-modal=request-a-quote-popup] .modal-box .popup-body .form-grid .repeater-row{
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
  }
  [data-modal=request-a-quote-popup] .modal-box .popup-body .form-grid .repeater-row .small-input,
  [data-modal=request-a-quote-popup] .modal-box .popup-body .form-grid .repeater-row .large-input{
    width: 100%;
  }
  
  [data-modal=request-a-quote-popup] .modal-box .popup-body .form-grid .repeater-delete{
    margin-left: auto;
  }

  .who-we-are-section .counter-box{
    flex-wrap: nowrap;
  }

  .what-make-us-different-section .challenges-grid,
  .what-make-us-different-section .counter-boxes {
    grid-template-columns: 1fr;
  }

  .what-make-us-different-section .counter-box{
    justify-content: center;
    text-align: center;
  }

  .what-make-us-different-section .counter-box .counter-text{
    justify-content: center;
  }
}


/* Sidebar Column for products List */
@media (max-width: 1024px) and (min-width: 769px) {
    .sidebar-column {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: start;
    }
}

@media (max-width: 991px) {
  .wwd-card-text { padding: 1.5rem; }
}
@media (max-width: 768px) {
  .wwd-card-text p { font-size: 16px; }
}
@media (max-width: 575px) {
  .wwd-card-text { padding: 1.25rem; gap: 0.75rem; }
  .wwd-card-text p { font-size: 14px; }
}

/* Header Adjustments for Medium Screens */
@media (max-width: 1710px) and (min-width: 1345px) {
    .header-inner{
      padding: 24px;
    }
    .header-actions .button {
      padding: 12px 14px;
      font-size: 15px;
    }
    .lang-switch {
      padding: 12px 14px;
      gap: 7px;
    }
    .main-nav {
      gap: 14px;
    }
    .logo-word {
      height: 28px;
    }
}

@media (max-width: 1380px) and (min-width: 1345px) {
    .header-actions .button {
      font-size: 14px;
    }
}

/* About grid image-area — custom min-heights */
@media (max-width: 821px) {
    .about-grid .image-area { min-height: 330px; }
} 
@media (max-width: 575px) {
    .about-grid .image-area { min-height: 230px; }
}

/* Portuguese page — sw-tags: one item per line below 465px */
@media (max-width: 466px) {
    .portugues-page .sw-tags {
        flex-direction: column;
        align-items: flex-start;
        flex-wrap: nowrap;
        gap: 0.625rem;
        justify-content: flex-start;
    }

    .portugues-page .sw-tags li,
    .portugues-page .sw-tags li:not(:last-child) {
        position: relative;
        width: 100%;
        padding-left: 1rem;
        padding-right: 0;
        margin-right: 0;
        white-space: normal;
    }

    .portugues-page .sw-tags li:not(:last-child)::after {
        content: none;
    }

    .portugues-page .sw-tags li::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0.6em;
        width: 5px;
        height: 5px;
        transform: rotate(45deg);
        background: #ff6b1a;
        border-radius: 0;
    }
}

@media (max-width: 768px) {
    .blog-detail-content table:has(td img),
    .blog-detail-content table:has(td img) tbody,
    .blog-detail-content table:has(td img) tr,
    .blog-detail-content table:has(td img) td {
        display: block;
        width: 100% !important;
    }

    .blog-detail-content table:has(td img) td img {
        width: 100%;
        max-width: 420px;
        height: auto;
        margin: 0 auto 16px;
    }
}