@media (min-width: 768px) {
  .border-md-end {
    border-right: 1px solid rgba(255, 255, 255, 0.25);
  }
}

@media (max-width: 1600px) and (min-width: 992px) {
  .support-form-card {
    left: 100px;
  }
}

@media (max-width: 1400px) and (min-width: 992px) {
  .support-form-card {
    margin-left: auto !important;
    margin-right: 0 !important;
    left: 50px;
  }
}

@media (max-width: 1300px) and (min-width: 992px) {
  .support-form-card {
    margin-left: auto !important;
    margin-right: 0 !important;
    left: 60px;
  }
}

@media (max-width: 1200px) {
  .header-container {
    padding: 0 25px;
  }

  .desktop-nav {
    margin-left: 30px;
  }

  .nav-menu {
    gap: 18px;
  }

  .nav-link {
    font-size: 13.5px;
  }

  .mega-menu-grid {
    padding: 40px 30px;
    gap: 20px;
  }

  .mega-menu-highlight {
    padding: 40px 25px;
    min-width: 240px;
  }
}

@media (max-width: 991.98px) {

  .sustainability .strip .wrap {
    grid-template-columns: repeat(2, 1fr);
  }

  .sustainability .strip-item {
    border-top: 1px solid rgba(226, 232, 240, 0.8);
  }

  .sustainability .strip-item:nth-child(odd) {
    border-left: none;
  }

  .sustainability .strip-item:nth-child(1),
  .sustainability .strip-item:nth-child(2) {
    border-top: none;
  }

  .sustainability .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sustainability .commitment .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sustainability .commitment-visual {
    max-width: 300px;
    margin: 0 auto;
  }

  .sustainability .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sustainability .process-item:nth-child(2) {
    border-right: none;
  }

  .sustainability .process-item:nth-child(3) {
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    border-right: 1px solid rgba(226, 232, 240, 0.8);
  }

  .sustainability .process-item:nth-child(4) {
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    border-right: none;
  }

  .browse-section {
    padding: 110px 0 60px 0;
  }

  .filter-card {
    position: static;
    padding: 20px;
    margin-bottom: 30px;
  }

  .filter-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
    gap: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .filter-item {
    white-space: nowrap;
    width: auto;
    scroll-snap-align: start;
    padding: 10px 16px;
    font-size: 0.88rem;
  }

  .clear-btn {
    margin-top: 15px;
  }

  .filter-subheader {
    margin-bottom: 15px;
  }

  #headerContainer {
    height: 70px !important;
  }

  /* Tablet and Mobile ONLY (<= 991.98px) - Centered layout with zero cutoff */
  .support-form-card {
    left: 0 !important;
    right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .request-info-card,
  .rep-contact-card {
    max-width: 560px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .main-header,
  .main-header:hover,
  .main-header.header--scrolled,
  .main-header.menu-active {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
  }

  /* Backdrop needs lower trigger zone */
  .header-backdrop {
    display: none;
    /* Controlled on mobile differently or completely disabled */
  }

  /* Hamburger transform when menu is open */
  .main-header.mobile-menu--open .mobile-toggle .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--text-dark);
  }

  .main-header.mobile-menu--open .mobile-toggle .hamburger-bar:nth-child(2) {
    opacity: 0;
  }

  .main-header.mobile-menu--open .mobile-toggle .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--text-dark);
  }

  .main-header.mobile-menu--open .navbar-brand .logo-link {
    color: var(--text-dark);
  }

  .main-header.mobile-menu--open {
    background-color: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  /* ==========================================================================
     MOBILE NAVIGATION SLIDING PANEL SYSTEM
     ========================================================================== */

  .mobile-menu {
    display: block;
    position: fixed;
    top: 70px;
    /* Height of the header on mobile */
    right: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: #ffffff;
    z-index: 1000;
    transition: right 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.05);
  }

  /* Active/Drawer opened state */
  .mobile-menu.open {
    right: 0;
  }

  /* Container viewport holding all panels */
  .mobile-menu-viewport {
    position: relative;
    width: 100%;
    height: 100%;
  }

  /* Panel basic styling */
  .mobile-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    padding: 25px 25px 80px 25px !important;
    /* bottom padding for scroll space */
    display: flex;
    flex-direction: column;
  }

  /* Multi-level slide states */
  /* Default: Panel resides to the right off-screen */
  .mobile-panel {
    transform: translateX(100%);
  }

  /* Active: Panel occupies the viewport center */
  .mobile-panel.active {
    transform: translateX(0);
  }

  /* Slide-out Left: Panel translates left when a child opens */
  .mobile-panel.slide-out-left {
    transform: translateX(-100%);
  }

  /* List & Links */
  .mobile-list {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .mobile-item {
    border-bottom: 1px solid #eeeeee;
    width: 100%;
  }

  .mobile-trigger,
  .mobile-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 0;
    font-size: 16px;
    font-family: var(--font-title);
    font-weight: 500;
    color: var(--text-dark);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: color 0.25s ease;
    text-decoration: none;
  }

  .mobile-trigger:hover,
  .mobile-link:hover,
  .mobile-trigger.active,
  .mobile-link.active {
    color: var(--theme-primary);
  }

  .mobile-trigger:hover .arrow,
  .mobile-trigger.active .arrow {
    color: inherit !important;
  }

  .mobile-trigger[data-division="our-company"]:hover,
  .mobile-trigger[data-division="our-company"].active {
    color: var(--color-our-company) !important;
  }

  .mobile-trigger[data-division="our-category"]:hover,
  .mobile-trigger[data-division="our-category"].active {
    color: var(--color-our-category) !important;
  }

  .mobile-trigger[data-division="blog"]:hover,
  .mobile-trigger[data-division="blog"].active {
    color: var(--color-blog) !important;
  }

  .mobile-link[data-division="about"]:hover,
  .mobile-link[data-division="about"].active {
    color: var(--color-about) !important;
  }

  .mobile-link[data-division="contact"]:hover,
  .mobile-link[data-division="contact"].active {
    color: var(--color-contact) !important;
  }

  .mobile-link[data-division="faq"]:hover,
  .mobile-link[data-division="faq"].active {
    color: var(--color-faq) !important;
  }

  .mobile-trigger .arrow {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    transition: color 0.25s ease;
  }

  /* Panel Back Navigation Button */
  .mobile-back-btn {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 5px 0 20px 0;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: transform 0.25s ease, color 0.25s ease;
  }

  .mobile-back-btn:hover {
    color: var(--theme-primary);
    transform: translateX(-4px);
  }

  .mobile-toggle:hover .hamburger-bar {
    background-color: var(--theme-primary);
  }

  /* Mobile banner */
  .mobile-panel-banner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border-radius: 4px;
    color: #ffffff;
    margin-bottom: 20px;
    width: 100%;
  }

  .mobile-panel-banner .banner-title {
    font-size: 18px;
    font-weight: 600;
  }

  .mobile-panel-banner .banner-btn {
    display: inline-block;
    padding: 6px 14px;
    border: 1.5px solid #ffffff;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    background: transparent;
    width: fit-content;
    text-decoration: none;
    transition: var(--transition-smooth);
  }

  .mobile-panel-banner .banner-btn:hover {
    background-color: #ffffff;
    color: var(--text-dark);
  }

  /* Footer responsive overrides */
  .g-footer {
    padding-top: 40px !important;
    padding-bottom: 30px !important;
  }

  .g-footer .locations-link {
    width: 100%;
    margin-bottom: 5px;
  }

  .g-footer .social-icons {
    width: 100%;
    margin-top: 5px;
  }

  .get-support-section {
    padding: 60px 0;
  }

  .support-left-img-wrap {
    display: none;
  }

  .clients-ticker-section {
    padding: 28px 0;
  }

  .clients-ticker-group {
    gap: 55px;
    padding-right: 55px;
  }

  .client-logo-item {
    height: 65px;
  }

  .client-logo-item img {
    max-height: 52px;
    max-width: 175px;
  }

  .about-image-wrapper {
    max-width: 440px;
    margin: 0 auto 40px auto;
    padding-left: 30px;
  }

  .about-dots-pattern {
    left: 0;
    top: 10%;
    width: 60px;
    height: 140px;
  }

  .about-small-img-box {
    right: -15px;
    bottom: 10%;
    width: 55%;
    border-width: 10px;
  }

  .work-process-line {
    display: none !important;
  }

  .work-process-section {
    padding: 60px 0;
  }

  .services-tabs-section {
    padding: 60px 0;
  }

  .services-tab-content-card {
    padding: 20px;
    min-height: auto;
  }

  .services-tab-btn.active {
    transform: translateX(0);
  }


  .aboutus-image-main {
    width: 100%;
  }

  .aboutus-image-secondary {
    bottom: 0;
  }

  .mission-item-img-2 {
    display: block;
  }

  .aboutus-mission-section {
    text-align: left;
  }

  .mission-image-area {
    margin-top: 25px;
    justify-content: center;
  }

  .mission-img {
    max-width: 85%;
    max-height: 380px;
    margin: 0 auto;
  }

  .text-slider-section {
    padding: 40px 0;
  }

  .slide-text {
    font-size: 18px;
  }

  .slide-star {
    margin: 0 18px;
  }

    .g-footer .social-icons {
    justify-content: end;
  }
}

@media (max-width: 767.98px) {

  /* 2-Column split list for footer links on mobile */
  .footer-split-links {
    display: flex;
    flex-wrap: wrap;
  }

  .footer-split-links li {
    flex: 0 0 50%;
    max-width: 50%;
  }

  /* Blog Detail page mobile responsive */
  body.blog-detail .sourcing-card {
    padding: 28px 20px;
  }

  body.blog-detail .related-swiper-wrapper {
    padding: 0;
  }

  body.blog-detail .related-nav-prev,
  body.blog-detail .related-nav-next {
    display: none;
  }

  body.blog-detail .blog-sticky-subnav {
    top: 65px;
  }

  body.blog-detail .subnav-item {
    padding: 12px 6px;
    font-size: 0.76rem;
    line-height: 1.25;
  }

  .news-section {
    padding: 60px 0;
  }

  .news-section .news-slider-container {
    padding: 0 20px;
  }

  .news-section .swiper-button-prev-custom,
  .news-section .swiper-button-next-custom {
    display: none;
  }

  .navbar-brand .logo-link img {
    height: 45px !important;
  }

  #highlightsSection .col-12 {
    justify-content: flex-start !important;
    padding-left: clamp(20px, calc(50% - 90px), 150px) !important;
  }

  .hero-section .hero-button-prev,
  .hero-section .hero-button-next {
    display: none !important;
  }


  .hero-section .carousel-caption-custom {
    padding: 0 20px;
  }

  .hero-section .carousel-item .carousel-caption-custom h1,
  .hero-section .swiper-slide .carousel-caption-custom h1 {
    font-size: 1.75rem !important;
    margin-bottom: 14px !important;
    line-height: 1.25 !important;
  }

  .hero-section .carousel-item .carousel-caption-custom p,
  .hero-section .swiper-slide .carousel-caption-custom p {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    margin: 0 auto 20px auto !important;
    max-width: 90% !important;
  }

  .hero-section .carousel-item .carousel-caption-custom .btn-group-custom,
  .hero-section .swiper-slide .carousel-caption-custom .btn-group-custom {
    gap: 10px !important;
    margin-bottom: 15px !important;
  }

  .hero-section .btn-hero-primary,
  .hero-section .btn-hero-secondary,
  .hero-section .btn-outline-white,
  .btn-outline-white {
    padding: 9px 20px !important;
    font-size: 0.85rem !important;
    margin: 0 !important;
  }

  .hero-swiper-pagination {
    bottom: 40px !important;
  }

  .hero-section .scroll-down-hint {
    bottom: 10px !important;
  }


  .aboutus-image-area {
    max-width: 480px;
    margin: 0 auto 30px auto;
  }

  .aboutus-dashed-box {
    padding: 16px;
    /* width: 92%; */
  }

  .aboutus-image-secondary {
    border-width: 5px;
  }

}

@media (max-width: 576px) {

  .sustainability .hero {
    padding: 80px 0 60px;
  }

  .sustainability .hero h1 {
    font-size: 2rem;
  }

  .sustainability .strip .wrap {
    grid-template-columns: 1fr 1fr;
  }

  .sustainability .pillar-grid {
    grid-template-columns: 1fr;
  }

  .sustainability .process-grid {
    grid-template-columns: 1fr;
  }

  .sustainability .process-item {
    border-right: none !important;
    border-top: 1px solid rgba(226, 232, 240, 0.8) !important;
  }

  .sustainability .process-item:first-child {
    border-top: none !important;
  }

  .sustainability .wrap {
    padding: 0 20px;
  }

  .header-container {
    padding: 0 15px;
  }

  .mobile-panel {
    padding: 20px 15px 80px 15px;
  }

  .header-logo .logo-link {
    font-size: 22px;
  }

  #followSection .follow-header-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  #followSection .follow-header-row h2 {
    margin-bottom: 0 !important;
    font-size: 1.8rem !important;
  }

  /* Extra Small Footer overrides */
  .g-footer .footer-logo {
    display: inline-flex;
    margin-bottom: 0;
  }

  .g-footer .social-icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .blog-masonry-grid {
    column-count: 1;
  }

  .about-image-wrapper {
    max-width: 100%;
    margin: 0 auto 30px auto;
    padding-left: 0;
  }

  .about-dots-pattern {
    display: none;
  }

  .about-main-img-box {
    border-radius: 0 80px 0 0;
  }

  .about-small-img-box {
    border-width: 8px;
    max-width: 180px;
    right: -5px;
    bottom: -5px;
  }

  .about-heading {
    font-size: 1.65rem;
  }

  .clients-ticker-section {
    padding: 22px 0;
  }

  .clients-ticker-group {
    gap: 40px;
    padding-right: 40px;
  }

  .client-logo-item {
    height: 55px;
  }

  .client-logo-item img {
    max-height: 42px;
    max-width: 145px;
  }

  .aboutus-cta-btn {
    width: 100%;
    justify-content: center;
  }

  .mission-icon-box {
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
  }

  .mission-img {
    max-width: 100%;
    max-height: 280px;
  }

  .defines-list-item {
    font-size: 0.9rem;
  }

  .approach-circle {
    width: 80px;
    height: 80px;
  }

  .text-slider-section {
    padding: 30px 0;
  }

  .slide-text {
    font-size: 16px;
    letter-spacing: 1.5px;
  }

  .slide-star {
    margin: 0 14px;
  }

  .slide-star svg {
    width: 18px;
    height: 18px;
  }

  .product-pills-bar .nav-link {
    font-size: 0.78rem !important;
    padding: 8px 6px !important;
  }

  /* Universal text sharpness fix for small devices */
  body,
  p,
  span,
  li,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  a,
  button,
  input,
  select,
  textarea {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

  .floating-whatsapp-btn {
    bottom: 18px !important;
    left: 18px !important;
    width: 46px !important;
    height: 46px !important;
    font-size: 22px !important;
  }
}