/* ==========================================================================
   VIRMED - Common Global Stylesheet
   ========================================================================== */

/* 1. Footer Links hidden as per design */
.footer-links {
  display: none !important;
}

/* 1.1 Global Header Logo Sizing */
.site-header .logo img {
  height: 50px !important;
  width: auto !important;
  display: block;
  transition: height .2s ease;
}
@media (max-width: 576px) {
  .site-header .logo img {
    height: 36px !important;
  }
}

/* 2. CTA Banner ("LET'S WORK TOGETHER") */
.cta-banner {
  padding: 80px 0;
  background: #11140e;
  position: relative;
  overflow: hidden;
  width: 100%;
}
.cta-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  position: relative;
  z-index: 2;
}
.cta-left h2 {
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.2;
  color: #ffffff;
}
.cta-mid { max-width: 420px; }
.cta-mid p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #8c9384;
  margin-bottom: 24px;
}
.cta-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cta-motif { color: rgba(255,255,255,0.25); }

/* 3. Site Footer */
.site-footer {
  background: #ffffff;
  border-top: 1px solid #e7e9e2;
  padding: 28px 0;
  width: 100%;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
}
.footer-copy {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: #888d83;
  margin-left: auto;
}
.footer-copy a { color: #888d83; transition: color .2s ease; }
.footer-copy a:hover { color: #4a8f26; }

/* ==========================================================================
   4. NEW LIGHT HERO BANNER (Pure CSS - No Raster Images, No SVG BG)
   ========================================================================== */
.light-hero {
  position: relative;
  background: #ffffff;
  background-image:
    radial-gradient(ellipse 70% 60% at 85% 15%, rgba(74,143,38,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 92% 85%, rgba(74,143,38,0.10) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 50% 100%, rgba(100,170,60,0.05) 0%, transparent 70%),
    linear-gradient(135deg, #ffffff 0%, #fbfdf9 55%, #f2f7ec 100%);
  border-bottom: 1px solid #e7e9e2;
  min-height: 380px;
  display: flex;
  align-items: center;
  padding: 68px 0;
  overflow: hidden;
  width: 100%;
  color: #161814;
}
.light-hero::before {
  content: "";
  position: absolute;
  right: -5%; bottom: -30%;
  width: 55%; height: 140%;
  background: radial-gradient(circle at 60% 60%, rgba(74,143,38,0.07) 0%, rgba(120,180,80,0.03) 50%, transparent 75%);
  border-radius: 46% 54% 60% 40% / 40% 45% 55% 60%;
  pointer-events: none; z-index: 1;
}
.light-hero::after {
  content: "";
  position: absolute;
  right: 12%; top: -20%;
  width: 38%; height: 90%;
  background: radial-gradient(circle, rgba(74,143,38,0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none; z-index: 1;
}
.light-hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}
.light-hero-content { display: flex; flex-direction: column; align-items: flex-start; }
.lh-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: #888d83; margin-bottom: 18px; flex-wrap: wrap;
}
.lh-breadcrumb a { color: #888d83; transition: color .2s ease; }
.lh-breadcrumb a:hover { color: #4a8f26; }
.lh-breadcrumb span.sep { color: #e7e9e2; }
.lh-breadcrumb span.current-crumb { color: #161814; font-weight: 500; }
.lh-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: #4a8f26; margin-bottom: 16px;
}
.lh-label::after {
  content: ""; display: inline-block; width: 36px; height: 2px;
  background: #4a8f26; opacity: 0.6;
}
.light-hero h1 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.14; font-weight: 700; letter-spacing: -.03em;
  color: #161814; margin-bottom: 16px;
}
.light-hero h1 .accent-green { color: #4a8f26; }
.lh-desc {
  font-size: 14px; line-height: 1.65; color: #4a4d47;
  max-width: 540px; margin-bottom: 26px;
}
.lh-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.lh-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; background: #ffffff;
  border: 1px solid #e7f1dc; color: #161814;
  padding: 6px 14px; border-radius: 999px;
  box-shadow: 0 2px 6px rgba(74,143,38,0.06);
  letter-spacing: .02em; transition: all .2s ease;
}
.lh-tag:hover { border-color: #4a8f26; background: #f0f6e8; transform: translateY(-1px); }
.lh-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: #4a8f26; flex: none; }
.light-hero-right {
  display: flex; flex-direction: column; align-items: flex-start;
  padding-left: 44px; border-left: 1px solid #e7e9e2;
}
.lh-right-eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: #888d83; margin-bottom: 8px; line-height: 1.5;
}
.lh-right-line { width: 32px; height: 2px; background: #4a8f26; margin-bottom: 18px; }
.lh-right-headline {
  font-size: clamp(22px, 2.4vw, 32px); line-height: 1.18;
  font-weight: 700; letter-spacing: -.03em; color: #161814; margin-bottom: 28px;
}
.lh-right-headline .accent-green { color: #4a8f26; }
.lh-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%; }
.lh-feature-item { display: flex; flex-direction: column; gap: 6px; }
.lh-feature-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: #f0f6e8; border: 1px solid #e7f1dc;
  display: grid; place-items: center; color: #4a8f26; margin-bottom: 4px;
}
.lh-feature-icon svg { width: 18px; height: 18px; }
.lh-feature-label { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #161814; }
.lh-feature-desc { font-size: 11.5px; line-height: 1.4; color: #888d83; }

@media (max-width: 1024px) {
  .light-hero-layout { grid-template-columns: 1fr; gap: 36px; }
  .light-hero-right { padding-left: 0; border-left: none; border-top: 1px solid #e7e9e2; padding-top: 32px; width: 100%; }
  .cta-grid { flex-direction: column; align-items: flex-start; gap: 28px; }
  .cta-motif { display: none; }
}
@media (max-width: 768px) {
  .light-hero { padding: 48px 0; }
  .lh-features { grid-template-columns: 1fr; gap: 16px; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-copy { margin-left: 0; }
}
@media (max-width: 576px) {
  .light-hero h1 { font-size: 26px; }
  .cta-buttons { flex-direction: column; align-items: stretch; width: 100%; gap: 12px; }
  .cta-buttons .btn { width: 100%; }
}

/* ==========================================================================
   5. UNIVERSAL DESKTOP SITE HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--line, #e7e9e2);
  z-index: 1000;
  transition: box-shadow .25s ease;
  width: 100%;
}
.site-header.scrolled {
  box-shadow: 0 8px 24px rgba(20,25,12,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 20px;
  width: 100%;
}
.logo {
  display: flex;
  align-items: center;
  flex: none;
}
.logo img {
  height: 38px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list li {
  position: relative;
}
.nav-list a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text, #4a4d47);
  padding: 8px 0;
  position: relative;
  transition: color .2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  text-decoration: none;
}
.nav-list a:hover {
  color: var(--green, #4a8f26);
}
.nav-list a.active {
  color: var(--ink, #161814);
  font-weight: 600;
}
.nav-list a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--green, #4a8f26);
  border-radius: 2px;
}
.has-sub {
  padding-bottom: 8px;
  margin-bottom: -8px;
}
.sub-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 270px;
  background: #ffffff;
  border: 1px solid var(--line, #e7e9e2);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(18,22,14,.09);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .2s ease;
  z-index: 110;
  list-style: none;
}
.has-sub:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sub-menu a {
  display: block;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text, #4a4d47);
  transition: background .15s, color .15s;
  text-decoration: none;
}
.sub-menu a:hover {
  background: var(--green-tint, #f0f6e8);
  color: var(--green, #4a8f26);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.header-actions .btn svg {
  width: 14px;
  height: 14px;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
  width: 38px;
  height: 38px;
  flex: none;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink, #161814);
  display: block;
  border-radius: 2px;
  transition: all .25s ease;
}

/* ==========================================================================
   6. UNIVERSAL MOBILE NAVIGATION & HEADER STYLES
   ========================================================================== */
@media (max-width: 1024px) {
  .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    background: #ffffff !important;
  }
  .header-inner {
    height: 64px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    gap: 10px !important;
  }
  .logo { flex: none !important; display: flex !important; align-items: center !important; }
  .logo img { height: 28px !important; width: auto !important; max-width: 130px !important; }
  .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: none !important;
    margin-left: auto !important;
  }
  .header-actions .btn {
    padding: 7px 14px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    flex: none !important;
  }

  /* Hide desktop nav */
  .main-nav { display: none !important; }

  /* ---- HAMBURGER BUTTON ---- */
  .menu-toggle {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    background: transparent !important;
    border: 1.5px solid #c8ccc4 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    padding: 0 !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    flex: none !important;
    z-index: 10002 !important;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: transparent !important;
    touch-action: manipulation !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    box-sizing: border-box !important;
  }
  /* span-bars style */
  .menu-toggle span {
    width: 20px !important;
    height: 2px !important;
    background: #161814 !important;
    display: block !important;
    border-radius: 2px !important;
    transition: transform 0.25s ease, opacity 0.2s ease !important;
    transform-origin: center !important;
    flex: none !important;
    pointer-events: none !important;
  }

  /* Nav panel when menu is open */
  .site-header.nav-open .main-nav {
    display: flex !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 16px 24px 32px !important;
    border-bottom: 1px solid #e7e9e2 !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12) !important;
    max-height: calc(100vh - 64px) !important;
    overflow-y: auto !important;
    z-index: 10000 !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .site-header.nav-open .nav-list {
    display: flex !important; flex-direction: column !important;
    align-items: flex-start !important; gap: 0 !important;
    width: 100% !important; list-style: none !important;
    padding: 0 !important; margin: 0 !important;
  }
  .site-header.nav-open .nav-list li {
    width: 100% !important;
    border-bottom: 1px solid rgba(231,233,226,0.7) !important;
  }
  .site-header.nav-open .nav-list li:last-child { border-bottom: none !important; }
  .site-header.nav-open .nav-list a {
    display: flex !important; width: 100% !important;
    justify-content: space-between !important; align-items: center !important;
    padding: 14px 4px !important; font-size: 15px !important;
    font-weight: 500 !important; color: #161814 !important; text-decoration: none !important;
  }
  .site-header.nav-open .nav-list a.active,
  .site-header.nav-open .nav-list a:hover { color: #4a8f26 !important; }

  /* Submenu accordion */
  .site-header.nav-open .sub-menu {
    position: static !important; box-shadow: none !important; border: none !important;
    padding: 0 0 10px 14px !important; opacity: 1 !important; visibility: visible !important;
    transform: none !important; display: none !important;
    width: 100% !important; background: transparent !important; list-style: none !important;
  }
  .site-header.nav-open .has-sub.open > .sub-menu { display: block !important; margin-top: 8px; }
  .site-header.nav-open .sub-menu li { border-bottom: none !important; }
  .site-header.nav-open .sub-menu a {
    display: block !important; padding: 9px 12px !important;
    font-size: 13.5px !important; color: #4a4d47 !important; border-radius: 8px !important;
  }
  .site-header.nav-open .sub-menu a:hover,
  .site-header.nav-open .sub-menu a.current {
    background: #f0f6e8 !important; color: #4a8f26 !important; font-weight: 600 !important;
  }

  /* Span-bars to X animation when open */
  .site-header.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg) !important; }
  .site-header.nav-open .menu-toggle span:nth-child(2) { opacity: 0 !important; }
  .site-header.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg) !important; }
}

/* Hide CTA button on small phones — menu has Contact link */
@media (max-width: 576px) {
  .header-actions .btn { display: none !important; }
  .header-actions { display: flex !important; align-items: center !important; margin-left: auto !important; }
}

@media (max-width: 420px) {
  .header-inner { padding-left: 12px !important; padding-right: 12px !important; }
 /* .logo img { height: 25px !important; max-width: 105px !important; }*/
}
@media (min-width: 768px) and (max-width: 1024px) {
	    .related-cards {
        grid-template-columns: repeat(3, 1fr);
    }
	.lh-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 16px;
  }
  .partner-pillars {
    display: flex;
    flex-direction: row;
    gap: 18px;
}
.why-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px 28px;
}
}
@media (max-width: 576px) {
    .related-cards {
        display: flex;
        align-items: center;
        flex-direction: column;
    }
	.related-card {
    width: 85%;
}
.lh-features {
    grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 768px) {
.footer-row {
        flex-direction: row;
        align-items: center;
        gap: 20px;
        flex-wrap: nowrap;
}
  .footer-copy {
    margin-left: 0;
  }
  .footer-copy {
    flex-wrap: wrap;
}
}
div#delivery-container .delivery-top {
    display: flex;
    flex-direction: column;
    width: auto;
    align-items: flex-start;
}
div#delivery-container {
    display: flex;
    width: auto;
    gap: 32px;
}
div#delivery-container .delivery-top-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-align: start;
}
@media (min-width: 768px) and (max-width: 1024px) {
div#delivery-container {
    flex-direction: column;
}
div#delivery-container .delivery-top {
    margin: 0;
}
}
@media (max-width: 576px) {
div#delivery-container {
    flex-direction: column;
}
div#delivery-container .delivery-top {
    margin: 0;
}
}.cases-grid .case-metrics {
    display: none;
}

/* ==========================================================================
   7. CASE STUDIES INNER PAGE PAGINATION
   ========================================================================== */
.case-pagination {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line, #e7e9e2);
  width: 100%;
}
.case-page-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--line, #e7e9e2);
  background: var(--white, #ffffff);
  text-decoration: none;
  color: var(--ink, #161814);
  flex: 1;
  max-width: calc(50% - 8px);
  transition: all .25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  box-sizing: border-box;
}
.case-page-btn.prev-btn {
  text-align: left;
}
.case-page-btn.next-btn {
  text-align: right;
  justify-content: flex-end;
  margin-left: auto;
}
.case-page-btn:hover {
  border-color: var(--green, #4a8f26);
  background: var(--green-tint, #f0f6e8);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(74,143,38,0.12);
}
.case-page-btn .page-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-pale, #e7f1dc);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--green, #4a8f26);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.case-page-btn:hover .page-icon {
  background: var(--green, #4a8f26);
  color: #ffffff;
}
.case-page-btn.prev-btn:hover .page-icon svg {
  transform: translateX(-3px);
}
.case-page-btn.next-btn:hover .page-icon svg {
  transform: translateX(3px);
}
.case-page-btn .page-icon svg {
  width: 16px;
  height: 16px;
  transition: transform .2s ease;
}
.case-page-btn .btn-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.case-page-btn .btn-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted, #888d83);
  transition: color .2s ease;
}
.case-page-btn:hover .btn-label {
  color: var(--green, #4a8f26);
}
.case-page-btn .btn-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink, #161814);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
@media (max-width: 640px) {
  .case-pagination {
    flex-direction: column;
    gap: 12px;
  }
  .case-page-btn {
    max-width: 100%;
    width: 100%;
  }
  .case-page-btn.next-btn {
    justify-content: space-between;
    flex-direction: row;
    text-align: left;
  }
  .case-page-btn.prev-btn {
    justify-content: space-between;
  }
}