@media (min-width: 992px) {
  .header-top > .container-fluid > .row {
    flex-wrap: nowrap;
    align-items: center;
  }

  .header-top .col-lg-8 {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
  }

  .header-top .col-lg-4 {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
  }

  .header-top .topbar-link ul.list-inline {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
  }

  .header-top .topbar-link li {
    white-space: nowrap;
    padding-left: 14px;
    padding-right: 14px;
  }
}

.header-media li {
  font-size: 18px;
  padding-left: 58px;
}

.header-media h6 {
  font-size: 16px;
  line-height: 22px;
}

.header-media i {
  font-size: 48px;
  color: #1e2903;
}

.topbar-link i,
.footer h5,
.media-icon li i {
  color: #ffffff;
}

.secondary-bg,
.secondary-bg h1,
.secondary-bg h2,
.secondary-bg h3,
.secondary-bg h4,
.secondary-bg h6,
.secondary-bg p,
.secondary-bg span,
.secondary-bg a,
.secondary-bg .text-black,
.secondary-bg .text-white {
  color: #1e2903 !important;
}

.theme-icon-box.secondary-bg > i,
.theme-icon-box.secondary-bg .icon-right-lg,
.theme-icon-box.secondary-bg .icon-right-lg i {
  color: #1e2903 !important;
}

.secondary-bg .dark-btn,
.secondary-bg .dark-btn span {
  background: #ffffff;
  color: #1e2903 !important;
}

.secondary-bg .dark-btn span {
  background: transparent;
}

.secondary-bg .white-btn,
.secondary-bg .white-btn span {
  background: transparent;
  color: #1e2903 !important;
  border: 1px solid #1e2903;
}

a.primary-btn,
.primary-btn {
  background: #1e2903;
  color: #ffffff;
}

/* Logo sits on the site's dark green so the white wordmark stays visible on the white header. */
.navbar-brand.logo {
  background: #1e2903;
  border-radius: 12px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  line-height: 0;
  margin-right: 28px;
}

#header-wrap .navbar-brand.logo img {
  max-height: 62px;
  width: auto;
}

.footer-logo.logo img {
  max-height: 78px;
  width: auto;
}

@media (max-width: 992px) {
  #header-wrap .navbar-brand.logo img {
    max-height: 50px;
  }
}

@media (max-width: 767px) {
  .navbar-brand.logo {
    margin-right: 8px;
    padding: 6px 8px;
  }

  #header-wrap .navbar-brand.logo img {
    max-height: 44px;
  }
}

@media (min-width: 992px) {
  #header-wrap .navbar-nav {
    column-gap: 8px;
  }

  #header-wrap .navbar-nav .nav-link {
    padding: 10px 14px !important;
    font-size: 13px;
  }

  #header-wrap .navbar-nav .nav-link.dropdown-toggle::after {
    margin-left: 6px;
  }

  #header-wrap .navbar-nav .dropdown-menu {
    max-height: 70vh;
    overflow-y: auto;
  }
}

/* HTTrack rewrote the breadcrumb slash into a theme URL. Keep a plain divider on every page. */
:root {
  --bs-breadcrumb-divider: "/";
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/" !important;
}

/* About page lines name the two supply groups. They are not percentage scores. */
.shi-meter {
  height: 6px;
  margin-top: 12px;
  background: rgba(30, 41, 3, 0.12);
  border-radius: 100px;
  overflow: hidden;
}

.shi-meter .progress-bar {
  width: 100%;
  height: 6px;
  background: #1e2903;
}

.shi-meter .progress-parcent {
  display: none;
}

/* White wordmark needs the brand green on the white preloader. */
#ht-preloader .loader img {
  background: #1e2903;
  border-radius: 12px;
  padding: 12px 16px;
  max-width: 280px;
}

/* Palette switcher stays in the template, hidden from visitors. Brand colors stay locked. */
.color-customizer {
  display: none !important;
}

/* Dark testimonial: same header SHI logo, transparent, no circle crop */
.dark-bg .testimonial.style-2 .testimonial-img {
  width: 240px;
  height: auto;
  min-height: 56px;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dark-bg .testimonial.style-2 .testimonial-img img {
  border-radius: 0;
  width: 100%;
  height: auto;
  max-height: 56px;
  object-fit: contain;
  filter: none;
}

/* Who We Supply: premium equal-height photo cards, no social clutter */
.shi-supply-section .shi-supply-card {
  background: transparent;
}

.shi-supply-section .shi-supply-card .team-images {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #1e2903;
}

.shi-supply-section .shi-supply-card .team-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

.shi-supply-section .shi-supply-card:hover .team-images img {
  transform: scale(1.04);
}

.shi-supply-section .shi-supply-card .team-description {
  padding-top: 22px;
}

.shi-supply-section .shi-supply-card .team-description h4 {
  margin-bottom: 6px;
  font-size: 22px;
}

.shi-supply-section .shi-supply-card .team-description span {
  letter-spacing: 0.04em;
}

/* Image-only Facebook post gallery — title/nav kept; no letterbox bars on photos */
.shi-gallery-slider {
  padding: 3.5rem 0 4.5rem;
  background: transparent;
}

.shi-gallery-slider .theme-title {
  margin-bottom: 1.75rem;
}

.shi-gallery-slider .theme-title h6 {
  margin-bottom: 0;
  color: #1e2903;
}

.shi-gallery-swiper {
  padding: 0 2.5rem 3rem;
}

.shi-gallery-slide {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  width: 100%;
  background: #eef2e6;
  box-shadow: 0 12px 32px rgba(30, 41, 3, 0.12);
}

/* Absolute fill. Do NOT use theme class "popup" here — it forces opacity:0 / 50px circle. */
.shi-gallery-slide > a.popup-img {
  position: absolute;
  inset: 0;
  display: block;
  width: auto;
  height: auto;
  line-height: normal;
  border-radius: 0;
  background: transparent;
  opacity: 1;
  z-index: 1;
  cursor: zoom-in;
  font-size: inherit;
  color: inherit;
}

.shi-gallery-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
  transition: transform 0.6s ease;
}

.shi-gallery-swiper .swiper-slide:hover .shi-gallery-slide img {
  transform: scale(1.03);
}

.shi-gallery-swiper .swiper-nav-arrow {
  bottom: 0;
}

.shi-gallery-swiper .swiper-button-next,
.shi-gallery-swiper .swiper-button-prev {
  color: #1e2903;
  background: #b2dd4c;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-top: 0;
}

.shi-gallery-swiper .swiper-button-next::after,
.shi-gallery-swiper .swiper-button-prev::after {
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 767px) {
  .shi-gallery-swiper {
    padding: 0 1rem 2.5rem;
  }
}

/* Artwork-only homepage hero — full poster visible, no text overlay crop */
.shi-artwork-banner.banner-slider {
  overflow: hidden;
  height: auto !important;
  background: #1e2903;
}

.shi-artwork-banner .swiper-wrapper,
.shi-artwork-banner .swiper-slide {
  height: auto !important;
}

.shi-artwork-banner-img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

/* Keep slides sharp during fade (avoid soft/blurry look) */
.shi-artwork-banner .swiper-slide {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

.shi-artwork-banner .swiper-slide-active .shi-artwork-banner-img,
.shi-artwork-banner .swiper-slide-duplicate-active .shi-artwork-banner-img {
  opacity: 1;
}

/* Equal banner-two height — shorter slides were leaving the previous image visible underneath. */
.banner-two.banner-slider {
  overflow: hidden;
  height: 760px;
}

.banner-two .swiper-wrapper,
.banner-two .swiper-slide {
  height: 100% !important;
}

.banner-two .slider-img {
  background-size: cover;
  background-position: center center;
}

.banner-two .banner-content {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 120px 0;
}

@media (max-width: 991px) {
  .banner-two.banner-slider {
    height: 580px;
  }

  .banner-two .banner-content {
    padding: 80px 0;
  }
}

/* Contact page map */
.shi-contact-map-frame {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: #eef2e6;
}

.shi-contact-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 767px) {
  .shi-contact-map-frame {
    height: 320px;
  }
}

/* Market buyer pages (hospitals, pharmacies, …) page-title hero */
.page-title.shi-market-title,
.page-title.shi-hospitals-title {
  background-color: #1e2903;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.page-title.shi-market-title::before,
.page-title.shi-hospitals-title::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(30, 41, 3, 0.88) 0%, rgba(30, 41, 3, 0.55) 100%);
  border-radius: inherit;
  z-index: 0;
}

.page-title.shi-market-title > .container-fluid,
.page-title.shi-hospitals-title > .container-fluid {
  position: relative;
  z-index: 1;
}

.page-title.shi-market-title h1,
.page-title.shi-market-title .shi-market-title-lead,
.page-title.shi-market-title .breadcrumb-item,
.page-title.shi-market-title .breadcrumb-item a,
.page-title.shi-market-title .breadcrumb-item.active,
.page-title.shi-market-title .breadcrumb-item + .breadcrumb-item::before,
.page-title.shi-hospitals-title h1,
.page-title.shi-hospitals-title .shi-hospitals-title-lead,
.page-title.shi-hospitals-title .breadcrumb-item,
.page-title.shi-hospitals-title .breadcrumb-item a,
.page-title.shi-hospitals-title .breadcrumb-item.active,
.page-title.shi-hospitals-title .breadcrumb-item + .breadcrumb-item::before {
  color: #ffffff;
}

.page-title.shi-market-title .shi-market-title-lead,
.page-title.shi-hospitals-title .shi-hospitals-title-lead {
  max-width: 34rem;
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.9;
}

.page-title.shi-market-title .breadcrumb-item a:hover,
.page-title.shi-hospitals-title .breadcrumb-item a:hover {
  color: #b2dd4c;
}


.footer .shi-footer-intro {
  color: #ffffff;
}

/* Office Hours: day list stays inside original box height */
.shi-office-hours-box.theme-icon-box > i {
  margin-bottom: 14px;
  font-size: 48px;
}

.shi-office-hours-box.theme-icon-box h4 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.shi-office-hours-list .working-hours-item {
  padding: 7px 0 6px;
  font-size: 14px;
  line-height: 1.3;
}

.shi-about-hours-inline .working-hours-item {
  padding: 6px 0 5px;
  border-bottom-color: rgba(30, 41, 3, 0.25);
  color: #1e2903;
  font-size: 15px;
}

.shi-about-quote-panel .border-top {
  border-top-width: 1px !important;
}

/* Products page: Bootstrap Icons match service-icon size */
.service-item.style-4 .service-icon .bi {
  font-size: inherit;
  line-height: 1;
}

/* Why SHI: team photo in original frame, cover without cutting heads */
.shi-why-team-frame {
  min-height: 400px;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

@media (min-width: 992px) {
  .shi-why-team-frame {
    min-height: 100%;
    align-self: stretch;
  }
}

/* About: rotating badge sized for brand + company name with single . separators */
.shi-about-round-text.round-text {
  width: 260px;
  height: 260px;
}

.shi-about-round-text.round-text text {
  font-size: 11px;
  letter-spacing: 1.2px;
  font-weight: 600;
}

@media (max-width: 991px) {
  .shi-about-round-text.round-text {
    width: 220px;
    height: 220px;
  }

  .shi-about-round-text.round-text text {
    font-size: 10px;
  }
}

@media (max-width: 767px) {
  .shi-about-round-text.round-text {
    width: 170px;
    height: 170px;
  }

  .shi-about-round-text.round-text text {
    font-size: 9px;
    letter-spacing: 1px;
  }
}

/* Footer: divider above copyright bar */
.footer .secondary-footer {
  border-top: 1px solid #b2dd4c;
}

.footer .secondary-footer .copyright {
  text-transform: capitalize;
}

.footer .secondary-footer .copyright a {
  color: #b2dd4c;
  text-decoration: none;
  text-transform: capitalize;
}

.footer .secondary-footer .copyright a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ------------------------------------------------------------
   Unified page title (the box under the header) – all inner pages
   Same height, padding, title/subtitle/breadcrumb placement on
   every page; full width with a sensible height on mobile.
------------------------------------------------------------ */
.page-title {
  display: flex;
  align-items: center;
  min-height: 220px;
  padding: 50px;
  margin: 0 70px;
  border-radius: 20px;
}

.page-title > .container-fluid {
  width: 100%;
}

.page-title h1 {
  font-size: 40px;
  line-height: 50px;
  margin-bottom: 0;
}

.page-title.shi-market-title .shi-market-title-lead,
.page-title.shi-hospitals-title .shi-hospitals-title-lead,
.page-title .shi-market-title-lead,
.page-title .shi-hospitals-title-lead {
  max-width: 42rem;
}

@media (min-width: 992px) {
  .page-title > .container-fluid > .row {
    flex-wrap: nowrap;
  }

  .page-title > .container-fluid > .row > [class*="col-lg-"]:first-child {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
  }

  .page-title > .container-fluid > .row > [class*="col-lg-"]:last-child {
    flex: 0 0 auto;
    width: auto;
    max-width: 50%;
    margin-top: 0 !important;
  }
}

@media (max-width: 991px) {
  .page-title {
    margin: 0 20px;
    padding: 44px 36px;
    min-height: 0;
  }
}

@media (max-width: 767px) {
  .page-title {
    padding: 32px 24px;
    border-radius: 16px;
  }

  .page-title h1 {
    font-size: 30px !important;
    line-height: 38px !important;
  }

  .page-title.shi-market-title .shi-market-title-lead,
  .page-title.shi-hospitals-title .shi-hospitals-title-lead,
  .page-title .shi-market-title-lead,
  .page-title .shi-hospitals-title-lead {
    max-width: none;
    font-size: 15px;
    line-height: 1.6;
    margin-top: 12px !important;
  }

  .page-title .page-breadcrumb {
    padding: 8px 18px;
    max-width: 100%;
  }

  .page-title .breadcrumb {
    font-size: 14px;
    line-height: 24px;
  }

  .page-title .breadcrumb-item {
    line-height: 24px;
  }
}

/* Dark / photo title boxes: lime breadcrumb pill so it stays visible */
.page-title.shi-market-title .page-breadcrumb,
.page-title.shi-hospitals-title .page-breadcrumb {
  background: #b2dd4c;
}

.page-title.shi-market-title .page-breadcrumb .breadcrumb-item,
.page-title.shi-market-title .page-breadcrumb .breadcrumb-item a,
.page-title.shi-market-title .page-breadcrumb .breadcrumb-item.active,
.page-title.shi-market-title .page-breadcrumb .breadcrumb-item + .breadcrumb-item::before,
.page-title.shi-hospitals-title .page-breadcrumb .breadcrumb-item,
.page-title.shi-hospitals-title .page-breadcrumb .breadcrumb-item a,
.page-title.shi-hospitals-title .page-breadcrumb .breadcrumb-item.active,
.page-title.shi-hospitals-title .page-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: #1e2903;
}

.page-title.shi-market-title .page-breadcrumb .breadcrumb-item a:hover,
.page-title.shi-hospitals-title .page-breadcrumb .breadcrumb-item a:hover {
  color: #ffffff;
}

/* ------------------------------------------------------------
   Mobile / tablet spacing pass (desktop ≥992px unchanged)
   Tighter section rhythm, heading-to-content gaps, full-width
   cards with sensible inner padding, smaller decorative bits.
------------------------------------------------------------ */
@media (max-width: 991px) {
  section { padding-top: 80px; padding-bottom: 80px; }

  .row.mb-7, .row.mb-lg-7 { margin-bottom: 2rem !important; }

  /* Feature cards with the round corner icon */
  .service-item.style-4 {
    padding: 32px 28px 34px;
    border-bottom-right-radius: 20px;
    border: 1px solid rgba(30, 41, 3, 0.08);
  }
  .light-bg .service-item.style-4 { border-color: transparent; }
  .service-item.style-4 .service-title h4 { margin-bottom: 12px; padding-right: 60px; }
  .service-item.style-4 p { margin-bottom: 20px; }
  .service-item.style-4 .service-icon {
    top: 22px;
    right: 22px;
    bottom: auto;
    width: 56px;
    height: 56px;
    font-size: 24px;
    border-width: 5px;
  }

  .featured-item.style-3 { padding: 40px 28px; }
  .theme-icon-box { padding: 40px 32px; }
}

@media (max-width: 767px) {
  section { padding-top: 56px; padding-bottom: 56px; }

  /* Heading row → content */
  .row.mb-7, .row.mb-lg-7, .mb-7 { margin-bottom: 1.5rem !important; }
  .mt-7, .my-7 { margin-top: 2rem !important; }
  .mt-10, .my-10 { margin-top: 2.5rem !important; }
  .mb-10, .my-10 { margin-bottom: 2.5rem !important; }
  .theme-title { margin-bottom: 24px; }
  .theme-title.mb-0 { margin-bottom: 0; }

  /* Big desktop paddings used on coloured panels / images */
  .p-10 { padding: 32px 24px !important; }
  .pt-7, .py-7 { padding-top: 1.5rem !important; }
  .pt-6, .py-6 { padding-top: 1.5rem !important; }
  .box-shadow.p-5 { padding: 24px !important; }

  /* Feature cards: full width, readable line length */
  .service-item.style-4 {
    padding: 28px 24px 30px;
    border-radius: 18px;
    border-bottom-right-radius: 18px;
  }
  .service-item.style-4 .service-title h4 { padding-right: 56px; }
  .service-item.style-4 .service-icon { top: 20px; right: 20px; width: 52px; height: 52px; font-size: 22px; }

  .featured-item.style-3 { padding: 28px 24px; }
  .featured-item.style-3 .featured-icon { font-size: 46px; margin-bottom: 16px; }
  .featured-item.style-3 .featured-title { margin-bottom: 10px; }
  .featured-item.style-3 p { margin-bottom: 0; }

  .theme-icon-box { padding: 32px 24px; }
  .theme-icon-box > i { font-size: 46px; margin-bottom: 18px; }
  .theme-icon-box .icon-right-lg { font-size: 80px; }

  /* Scrolling marquee strip: smaller text so it doesn't eat a screen */
  .marquee-text span { font-size: 48px; line-height: 64px; -webkit-text-stroke-width: 1.5px; }
  .marquee-text i { margin: 0 22px; font-size: 36px; }

  /* Scroll-to-top: smaller and tucked into the corner */
  .scroll-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
  .scroll-top::after,
  .scroll-top::before { width: 42px; height: 42px; line-height: 42px; font-size: 20px; }
  .scroll-top svg { width: 42px; height: 42px; }
}
